// JavaScript Document
$(document).ready(function(){
	
	$buildingup = false;
	
	$("#sliders>*").show();
			
	
	//Blurs all links when clicked
	$("a").click(function(){
		$(this).blur();
	});



	$(this).delay(3000,function(){
		$("#titlebar:hidden:first").fadeIn(1000);
	});
	$(this).delay(3000,function(){
		$("#toph1:hidden:first").fadeIn(1000);
	});
	$(this).delay(3000,function(){
		$("#toplogo:hidden:first").fadeIn(1000);
	});


	$(this).delay(5000,function(){
		$(".index1:hidden:first").fadeIn(1000);
	});
	$(this).delay(9000,function(){
		$(".index2:hidden:first").fadeIn(1000);
	});
	$(this).delay(13000,function(){
		$(".index3:hidden:first").fadeIn(1000);
	});
	$(this).delay(17000,function(){
		$(".index4:hidden:first").fadeIn(1000);
	});
	$(this).delay(21000,function(){
		$(".index5:hidden:first").fadeIn(1000);
	});

	
	$("a").click(function(){
		$(this).blur();
	});


	$(this).delay(700,function(){
		
		//Show the elements	
		$(".Object01").stop().animate({top:'0px'}, {queue:false, duration:1000, easing: 'easeInOutBack'});
		$buildingup = true;	
		
    });

	$(this).delay(700,function(){
		
		//Show the elements	
		$(".Object02").stop().animate({top:'0px'}, {queue:false, duration:1500, easing: 'easeInOutBack'});
		$buildingup = true;	
		
    });

	$(this).delay(700,function(){
		
		//Show the elements	
		$(".Object03").stop().animate({top:'0px'}, {queue:false, duration:2000, easing: 'easeInOutBack'});
		$buildingup = true;	
		
    });

	$(this).delay(700,function(){
		
		//Show the elements	
		$(".Object04").stop().animate({top:'0px'}, {queue:false, duration:2700, easing: 'easeInOutBack'});
		$buildingup = true;	
		
    });


	
	//Change background color of body
	$("a.change").click(function(){
		$('body').css('background-color','#FFF');				 
	});
	 
});
