jQuery(function($){
    $('.lightbox-link').fancybox({
        scrolling: 'no',
        autoScale: true
    });
    initNav();
})

$(function() {
// OPACITY OF BUTTON SET TO 50%
$(".floatright").css("opacity","0.5");
 
// ON MOUSE OVER
$(".floatright").hover(function () {
 
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 1.0
}, "fast");
},
 
// ON MOUSE OUT
function () {
 
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.5
}, "fast");
});
});

function initNav()
{
	var nav = document.getElementById("nav");
	if(nav)
	{
		var lis = nav.getElementsByTagName("li");
		for (var i=0; i<lis.length; i++)
		{
			lis[i].onmouseover = function()
			{
				this.className += " hover";
			}
			lis[i].onmouseout = function()
			{
				this.className = this.className.replace(" hover", "");
			}
		}
	}
}
