$(document).ready(function() {//Set opacity on each span to 0%    $(".rollover_1").css({'opacity':'0'});	$(".rollover_2").css({'opacity':'0'});	$(".rollover_3").css({'opacity':'0'});	$('a.social_1').hover(		function() {			$(this).find('.rollover_1').stop().fadeTo(200, 1);		},		function() {			$(this).find('.rollover_1').stop().fadeTo(200, 0);		}	)		$('a.social_2').hover(		function() {			$(this).find('.rollover_2').stop().fadeTo(200, 1);		},		function() {			$(this).find('.rollover_2').stop().fadeTo(200, 0);		}	)		$('a.social_3').hover(						  		function() {			$(this).find('.rollover_3').stop().fadeTo(200, 1);		},		function() {			$(this).find('.rollover_3').stop().fadeTo(200, 0);		}	)	});/*HOME IMG ROTATOR*/$('#preloader').show();$('#preloader').delay(1750).fadeOut('fast');$('.first').delay(1700).fadeIn(600);$('#header_image_textblock').delay(1700).fadeIn(600);$(window).load(setTimeout(function() {	//start after HTML, images have loaded	var InfiniteRotator =	{		init: function()		{			//initial fade-in time (in milliseconds)			var initialFadeIn = 600;			//interval between items (in milliseconds)			var itemInterval = 5000;			//cross-fade time (in milliseconds)			var fadeTime = 1400;			//count number of items			var numberOfItems = $('.rotating_item').length;			//set current item			var currentItem = 1;			//show first item			$('.rotating_item').eq(currentItem).fadeIn(initialFadeIn);			//loop through the items			var infiniteLoop = setInterval(function(){				$('.rotating_item').eq(currentItem).fadeOut(fadeTime);				if(currentItem == numberOfItems -1){					currentItem = 0;				}else{					currentItem++;				}				$('.rotating_item').eq(currentItem).fadeIn(fadeTime);			}, itemInterval);		}	};	InfiniteRotator.init();},6700));
