
//animated preloader
 jQuery(document).ready(function () {
	jQuery('.fadeIn').hide();//hide all the images on the page
	});

	var i = 0;//initialize
	var int=0;//Internet Explorer Fix
	$(window).bind("load", function() {//The load event will only fire if the entire page or document is fully loaded
		int = setInterval("doThis(i)",500);
	});

	function doThis() {
		var images = $('.fadeIn').length;//count the number of images on the page
		if (i >= images) {// Loop the images
			clearInterval(int);//When it reaches the last image the loop ends
			delete int;
		}
		$('.fadeIn:hidden').eq(0).fadeIn(500);//fades in the hidden images one by one
		i++;//add 1 to the count
	}
//Image Rollover Fade Effect
jQuery(document).ready(
	function(){
		jQuery('.fade').hover(
			function(){
				$(this).children().first().children().first().stop(true);
				$(this).children().first().children().first().fadeTo('slow', .65);
			},
			function(){
				$(this).children().first().children().first().stop(true);
				$(this).children().first().children().first().fadeTo('slow', 0);
			}
		)
	}
)


//top menu
jQuery(document).ready(function(){
jQuery(" .nav ul ").css({display: "none"}); // Opera Fix
jQuery(" .nav li ").hover(function(){
    $(this).find('ul:first').css({visibility: "visible",display: "none"}).fadeIn('3000');
    },function(){
    $(this).find('ul:first').css({visibility: "hidden"});
    });   
});