$(window).load(
	function(){
		$("#splashpage, .contentfade").fadeIn(1000);
		setTimeout("$(\".anywhere\").fadeIn(\"slow\");",3000);		
	}
);

$(document).ready(
	function(){
		$("#splashpage, .contentfade").css("display", "none");
		$(".anywhere").css("display", "none");

	
		$("a.navselected, a.navanimate").click(
			function(event){
				event.preventDefault();
				linkLocation = this.href;
				$(".navselected").css("backgroundPosition", "-200px");
				$("#splashpage, .contentfade").fadeOut(500, redirectPage);
			}
		);
 
		function redirectPage() {
			window.location = linkLocation;
		};
		
		$('.navanimate')
			.css( {backgroundPosition: "-200px 0"} )
			.mouseover(
				function(){
					$(this).stop().animate(
						{backgroundPosition:"(-21px 0)"}, 
						{duration:130})
				})
			.mouseout(function(){
					$(this).stop().animate(
						{backgroundPosition:"(-200px 0)"}, 
						{duration:600})
				}
		);
		
		$(".logo").click(function(event){
					event.preventDefault();
					linkLocation = 'index.html';
					$("body").fadeOut(500, redirectPage);
				}
		);
		
		$("#address").Watermark("Enter your location");

	
	}
	

	
);


