$(document).ready(function(){

						   

	  var myDate = new Date();

      $("#time").html(myDate.format('l F j, Y')); 	

	

      $("#salon_service ul li a").click(function(){

			$("#salon_service ul li a").find(".ser_b").show();

			$("#salon_service ul li a").find(".ser_a").hide();

		    $(this).find(".ser_b").hide();

			$(this).find(".ser_a").show();

			index = $("#salon_service ul li a").index(this);

			$("#salon_service #text p").fadeOut('slow');

			$("#salon_service #text p").eq(index).fadeIn('slow');

		    $("#salonImg img").fadeOut('slow');

			$("#salonImg img").eq(index).fadeIn('slow');

			this.blur();

			$(".bridal_hide").slideUp();

			if(index!=8)return false;

	  });

	  

	  $("#spa_service ul li a").click(function(){

			$("#spa_service ul li a").find(".ser_b").show();

			$("#spa_service ul li a").find(".ser_a").hide();

		    $(this).find(".ser_b").hide();

			$(this).find(".ser_a").show();

			index = $("#spa_service ul li a").index(this);

			$("#spa_service #text p").fadeOut('slow');

			$("#spa_service #text p").eq(index).fadeIn('slow');

			$("#spaImg img").fadeOut('slow');

			$("#spaImg img").eq(index).fadeIn('slow');

			this.blur();

			$(".af_hide").slideUp();

			$(".mp_hide").slideUp();

			$(".ahr_hide").slideUp();

			$(".pa_hide").slideUp();

			$(".bridal2_hide").slideUp();

			if(index!=9)return false;

	  });

	  

	  

	  $(".bridal").mouseover(function(){

			$(".bridal_hide").slideUp();

			index = $(".bridal").index(this);

			if($(".bridal_hide").eq(index).css("display") == "none")

			$(".bridal_hide").eq(index).slideDown();

	  });

	  

	  

	  $(".af").mouseover(function(){

			$(".af_hide").slideUp();

			index = $(".af").index(this);

			if($(".af_hide").eq(index).css("display") == "none")

			$(".af_hide").eq(index).slideDown();

	  });

	  

	  $(".mp").mouseover(function(){

			$(".mp_hide").slideUp();

			index = $(".mp").index(this);

			if($(".mp_hide").eq(index).css("display") == "none")

			$(".mp_hide").eq(index).slideDown();

	  });

	  

	  $(".ahr").mouseover(function(){

			$(".ahr_hide").slideUp();

			index = $(".ahr").index(this);

			if($(".ahr_hide").eq(index).css("display") == "none")

			$(".ahr_hide").eq(index).slideDown();

	  });

	  

	  $(".pa").mouseover(function(){

			$(".pa_hide").slideUp();

			index = $(".pa").index(this);

			if($(".pa_hide").eq(index).css("display") == "none")

			$(".pa_hide").eq(index).slideDown();

	  });

	  

	  $(".bridal2").mouseover(function(){

			$(".bridal2_hide").slideUp();

			index = $(".bridal2").index(this);

			if($(".bridal2_hide").eq(index).css("display") == "none")

			$(".bridal2_hide").eq(index).slideDown();

	  });

	  

	  	
		

	$('#booknow').click(function() {

			$('#dialog').dialog('open');

	})



});