// simple nav. fade
function navigationeffects(){
jQuery(" ul#nav ul ").css({display: "none"}); 
jQuery("ul#nav li").hover(function(){
  jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).fadeIn(333);
 },function(){
    jQuery(this).find('ul:first').css({visibility: "hidden"});
   });
}



// init.
jQuery(document).ready(function(){

	jQuery('.fadeThis').append('<span class="hover"></span>').each(function () {
	var jQueryspan = jQuery('> span.hover', this).css('opacity', 0);
		jQuery(this).hover(function () {
		jQueryspan.stop().fadeTo(333, 1);
		}, function () {
		jQueryspan.stop().fadeTo(333, 0);
		});
		});

	navigationeffects();

	if (document.all && !window.opera && !window.XMLHttpRequest && jQuery.browser.msie) { var isIE6 = true; }
	else { var isIE6 = false;} ;
	jQuery.browser.msie6 = isIE6;

//	if (isIE6)
//		{
//		alert ('IE6 detected - fixing PNGs!');
//		$(document).pngFix();
//		}

	$('a.lightbox').lightBox();
});

