// JavaScript Document


// animates the menu into place
/*
$(function() {
	
	 		$('#subMenu').animate({
			top:00		
			 },500); 
			 
			 

             $('#logo').delay(500).animate({
				top:00		
				},500); 
			
			 
			 $('#menu').delay(500).animate({
				top:00		
				},500); 
			
		
		    
			 
			   $('#orange').delay(800).animate({
		top:10		
		},500); 
		
		 
		
		 $('#discover').delay(1000).animate({
		top:00		
		},500); 
		
		//$('#slideShow').delay(1300).animate({
		//top:00		
		//},500); 
		
		$('#white').delay(1600).animate({
		top:00		
		},500); 
		
		
		$('#maincontent').delay(2000).animate({
		marginLeft:00		
		},500); 
	
		
	
	
});*/

//Main menu hover effect

/*
$(function() {
	
	$("#header #menu li").hover(function(){
		
		
	$(this).animate({backgroundPosition: '20px 20px'},1000)
	
	},function(){
	
	$(this).animate({
   
    backgroundPosition:'0px 0px'
  }, 1000);

});
});





function redirectPage() {
		window.location = linkLocation;
	}
	
	$("#partners li").hover(function(){
		$(this).children("span").css("display","block");
		
		
	},function(){
		
		$(this).children("span").css("display","none");
		
	});
		
		// Fade in and out across pages.	
		
		$("body").css("display","none");
		
		$("body").fadeIn(1000);
		
		
		
		//$("#outerwrapper #ibeam").fadeIn(1000);
	
		$(".menu li a").click(function(event){
		event.preventDefault();
		linkLocation = this.href;
		$("body").fadeOut(1000, redirectPage);
	});

	
		

*/



$(function() {
	
	//code to call twitter feed after page load to prevent slideshow images appearing due to the delay.
               
	    var str="<script type=\"text/javascript\" src=\"http://twitter.com/statuses/user_timeline/indiadives.json?callback=twitterCallback2&amp;count=3\">";
        str+="<";
        str+="/script>";

        $("#twitterHeader").append(str);
		
	
		
		
});
			
