$(document).ready(function(){
	$("#home_menuitem").hover(function(){
							  	$(this).attr('src',"/images/menu/home_on.jpg");
							  },
							  function(){
								$(this).attr('src',"/images/menu/home_off.jpg");
							  }
							 );
	$("#shipping_menuitem").hover(function(){
							  	$(this).attr('src',"images/menu/shipping_info_on.jpg");
							  },
							  function(){
								$(this).attr('src',"/images/menu/shipping_info_off.jpg");
							  });	
	$("#academic_menuitem").hover(function(){
							  	$(this).attr('src',"/images/menu/academic_on.jpg");
							  },
							  function(){
								$(this).attr('src',"/images/menu/academic_off.jpg");
							  }
							 );
	$("#faq_menuitem").hover(function(){
							  	$(this).attr('src',"/images/menu/faq_on.jpg");
							  },
							  function(){
								$(this).attr('src',"/images/menu/faq_off.jpg");
							  }
							 );	
	$("#contact_us_menuitem").hover(function(){
							  	$(this).attr('src',"/images/menu/contact_us_on.jpg");
							  },
							  function(){
								$(this).attr('src',"/images/menu/contact_us_off.jpg");
							  }
							 );
	$("#hovermenu").hover(function(){$("#logo").find("#hovermenu li ul").removeClass('hidden');},function(){$("#logo").find("#hovermenu li ul").addClass('hidden');});
	$("#date").datepicker({ dateFormat: 'yy-mm-dd' });
	$("#date2").datepicker({ dateFormat: 'yy-mm-dd' });
	$("#checkoutShipping form").submit(function(){
											  if( $("#date").val() != "" && $("#date").val() == $("#date2").val() ){
											  	alert("The date your order is needed cannot be the same as the ceremony date");
												return false;
											  }												
											  else if($("#date").val() != "" && $("#date2").val() != ""){
												 return true;
											  }
											  else{
												//$(this).attr("disabled",true);
											  	 alert("You must specify a ceremony date and a order needed date");
												 return false;
											  }
										});
											  
});