﻿// JavaScript Document

$(document).ready(function() {
	$("#topMenu ul li:last-child").css("margin-right", "0");
	$("#footerLegal ul li:last-child").css("margin-right", "0").css("border-right", "0");
	
	$("#topMenu ul li ul li").hover(
	  function () {
		  //alert("here");
		$(this).parent().parent().children("a").addClass("hover");
	  }, 
	  function () {
		$(this).parent().parent().children("a").removeClass("hover");
	  }
	);
	var email=$("#v65-subscribeWidget input[name='email']");
		email.focus(function(){
			email.val('');
	});
	email.blur(function() {
		if ($(this).val() == "") {
			$(this).val($(this)[0].defaultValue);
		}
	});
	var email=$("#v65-subscribeWidget-store input[name='email']");
		email.focus(function(){
			email.val('');
	});
	email.blur(function() {
		if ($(this).val() == "") {
			$(this).val($(this)[0].defaultValue);
		}
	});
	var searchText=$("#v65-searchWidgetInput input[name='searchText']");
		searchText.focus(function(){
			searchText.val('');
	});
	searchText.blur(function() {
		if ($(this).val() == "") {
			$(this).val($(this)[0].defaultValue);
		}
	});
		var searchStore=$("#v65-searchWidgetInputStore input[name='searchText']");
		searchStore.focus(function(){
			searchStore.val('');
	});
	searchStore.blur(function() {
		if ($(this).val() == "") {
			$(this).val($(this)[0].defaultValue);
		}
	});
	
});
