jQuery(function()
{
	jQuery(".lightbox").lightbox();
	
	if (!window.ActiveXObject || navigator.appVersion.indexOf("MSIE 6") > 0)
	{
		jQuery("body").removeClass("noscript");
		
		jQuery("#whole li").children("span.message").css({opacity: 0, display: "none"});
		
		jQuery("#whole li").children("p").css({opacity: 0});
		
		jQuery("#whole li").hover(function() {
			jQuery("#whole li").children("a").stop().animate({opacity: 0}, 500);
			
			jQuery("#whole li").children("p").stop().animate({opacity: 1}, 500);
			
			jQuery(this).children("span.message").css({display: "block", opacity: 0});
			
			jQuery("#whole > h3").stop().animate({opacity: 0}, 500);
			
			jQuery("#whole > h4").stop().animate({opacity: 0}, 500);
			
			jQuery(this).children("p").stop().animate({opacity: 0}, 500);
			
			jQuery(this).children("span.message").stop().animate({opacity: 1}, 500);
			
			jQuery(this).children("a").stop().animate({opacity: 1}, 500);
		},
		function() {
			jQuery("#whole > h3").stop().animate({opacity: 1}, 500);
			
			jQuery("#whole > h4").stop().animate({opacity: 1}, 500);
			
			jQuery(this).children("p").stop().animate({opacity: 1}, 500);
			
			jQuery(this).children("span.message").stop().animate({opacity: 0}, 500, function(){jQuery(this).css({display: "none"});});
			
			jQuery(this).children("a").stop().animate({opacity: 0}, 500, checkActive);
		});
	}
}
);

function checkActive()
{
		jQuery("#whole li").children("p").each(function(){jQuery(this).animate({opacity: 0}, 500);});
		
		jQuery("#whole li").children("a").each(function(){jQuery(this).animate({opacity: 1}, 500);});
}