$(document).ready(function(){
	$("#tab2").css("left",30);
	$("#tab3").css("left",60);
	$("#tab4").css("left",90);
	$("#tab2").click(function() {
		$("#tab2").stop().animate({left: '30px'},1000, "easeOutExpo");
		$("#tab3").stop().animate({left: '740px'},1000, "easeOutExpo");
		$("#tab4").stop().animate({left: '770px'},1000, "easeOutExpo");
	});
	$("#tab1").click(function() {
		$("#tab2").stop().animate({left: '710px'},1000, "easeOutExpo");
		$("#tab3").stop().animate({left: '740px'},1000, "easeOutExpo");
		$("#tab4").stop().animate({left: '770px'},1000, "easeOutExpo");
	});
	$("#tab3").click(function() {
		$("#tab2").stop().animate({left: '30px'},1000, "easeOutExpo");
		$("#tab3").stop().animate({left: '60px'},1000, "easeOutExpo");
		$("#tab4").stop().animate({left: '770px'},1000, "easeOutExpo");
	});
	$("#tab4").click(function() {
		$("#tab2").stop().animate({left: '30px'},1000, "easeOutExpo");
		$("#tab3").stop().animate({left: '60px'},1000, "easeOutExpo");
		$("#tab4").stop().animate({left: '90px'},1000, "easeOutExpo");
	});

	$("#tab1").click(function() {
		setTimeout(function() {	window.location.href = 'index.html'; }, 1000);
		return false;
	});
	$("#tab2").click(function() {
		setTimeout(function() {	window.location.href = 'services.html'; }, 1000);
		return false;
	});
	$("#tab3").click(function() {
		setTimeout(function() {	window.location.href = 'vendors.html'; }, 1000);
		return false;
	});
	$("#tab4").click(function() {
		setTimeout(function() {	window.location.href = 'contact.html'; }, 1000);
		return false;
	});
	/*
	$(".over1").hover(
			function() {
				$("#map").attr("src","images/map_1.gif");
			},
			function() {
				$("#map").attr("src","images/map.gif");
			});
	$(".over2").hover(
			function() {
				$("#map").attr("src","images/map_2.gif");
			},
			function() {
				$("#map").attr("src","images/map.gif");
			});
	$(".over3").hover(
			function() {
				$("#map").attr("src","images/map_3.gif");
			},
			function() {
				$("#map").attr("src","images/map.gif");
			});
	$(".over4").hover(
			function() {
				$("#map").attr("src","images/map_4.gif");
			},
			function() {
				$("#map").attr("src","images/map.gif");
			});
	$(".over5").hover(
			function() {
				$("#map").attr("src","images/map_5.gif");
			},
			function() {
				$("#map").attr("src","images/map.gif");
			});
	$(".over6").hover(
			function() {
				$("#map").attr("src","images/map_6.gif");
			},
			function() {
				$("#map").attr("src","images/map.gif");
			});
	*/
		$(".over1").click(
			function() {
				$("#map").attr("src","images/map_1.gif");
//				$("table.over1 tr td, table.over2 tr td, table.over3 tr td, table.over4 tr td, table.over5 tr td, table.over6 tr td, table.over1, table.over2, table.over3, table.over4, table.over5, table.over6").attr("bgcolor","ffffff");
//				$("table.over1, table.over1 tr td").attr("bgcolor","d6daca");
				$("table.over1, table.over1").attr("bgcolor","d6daca");				
				$("table.over2, table.over3, table.over4, table.over5, table.over6").attr("bgcolor","ffffff");
				return false;
			});
		$(".over2").click(
			function() {
				$("#map").attr("src","images/map_2.gif");
				$("table.over2").attr("bgcolor","e7d0b9");
				$("table.over1, table.over3, table.over4, table.over5, table.over6").attr("bgcolor","ffffff");
				return false;
			});
		$(".over3").click(
			function() {
				$("#map").attr("src","images/map_3.gif");
				$("table.over3").attr("bgcolor","d6daec");
				$("table.over2, table.over1, table.over4, table.over5, table.over6").attr("bgcolor","ffffff");
				return false;
			});
		$(".over4").click(
			function() {
				$("#map").attr("src","images/map_4.gif");
				$("table.over4").attr("bgcolor","e2d1e0");
				$("table.over2, table.over3, table.over1, table.over5, table.over6").attr("bgcolor","ffffff");
				return false;
			});
		$(".over5").click(
			function() {
				$("#map").attr("src","images/map_5.gif");
				$("table.over5").attr("bgcolor","f3ecc1");
				$("table.over2, table.over3, table.over4, table.over1, table.over6").attr("bgcolor","ffffff");
				return false;
			});
		$(".over6").click(
			function() {
				$("#map").attr("src","images/map_6.gif");
				$("table.over6").attr("bgcolor","fde3bd");
				$("table.over2, table.over3, table.over4, table.over5, table.over1").attr("bgcolor","ffffff");
				return false;
			});

	$("#name").focus(function() { if (this.value == "Name") {	this.value = ""; } });
	$("#name").blur(function() { if (this.value == "") {	this.value = "Name"; } });	
	$("#email").focus(function() { if (this.value == "Email") {	this.value = ""; } });
	$("#email").blur(function() { if (this.value == "") {	this.value = "Email"; } });	
	$("#message").focus(function() { if (this.value == "Message") {	this.value = ""; } });
	$("#message").blur(function() { if (this.value == "") {	this.value = "Message"; } });	
			
});