// JS function for uncrypting spam-protected emails:
function UnCryptMailto(s) { //
    var n=0;
    var r="";
    for(var i=0; i < s.length; i++) {
        n=s.charCodeAt(i);
        if (n>=8364) {n = 128;}
        r += String.fromCharCode(n-(1));
    }
    return r;
}
// JS function for uncrypting spam-protected emails:
function linkTo_UnCryptMailto(s)    {   //
    location.href=UnCryptMailto(s);
}

$(document).ready(function() {
    $("ul.tabs>li").hover(
        function() {
            //$(this).find(">a").css({'background-color': '#000000', 'color':'#ffffff'});
            $(this).find(">a").addClass("selected");
            $(this).find("div").show();
            //alert(obj);
            //obj.addClass("selected");
            //alert($(this));
            //$(this).addClass("selected");
        },
        function () {
            $(this).find(">a").removeClass("selected");
            $(this).find("div").hide();
            //$(this).removeClass("selected");
        }
    );
	//$('#gallery a').lightBox();
	$('a.lightbox').lightBox();
});

/*
$(function() {
	$('#gallery a').colorbox({photo:true, transition:"none", width:"75%", height:"75%"});
});
*/

function hidevideo(code) {
	//alert(myytplayer);
	myytplayer.stopVideo();
	$('#videol').hide();
	$('div.prod-text').show();
}
function showvideo(code) {
	$('div.prod-text').hide();
	$('#videol').show();
/*
	alert(code);
	$('videol').innerHTML = '
       <div id="jquery-video-overlay"></div>
            <div id="jquery-video-lightbox">
				<iframe width="560" height="315" src="http://www.youtube.com/embed/' + code + '?rel=0" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
			</div>
       </div>';
*/

}

function showimagevideo() {
	$('#imagevideolink').hide();
	$('#imagevideo').show();
/*
	alert(code);
	$('videol').innerHTML = '
       <div id="jquery-video-overlay"></div>
            <div id="jquery-video-lightbox">
				<iframe width="560" height="315" src="http://www.youtube.com/embed/' + code + '?rel=0" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
			</div>
       </div>';
*/

}

