 var jewelsOn = new Image();	jewelsOn.src = "/images/jewels.gif"; 
 var jewelsOff = new Image();	jewelsOff.src = "/images/jewels1.gif"; 

 var collectionsOn = new Image();	collectionsOn.src = "/images/collections.gif"; 
 var collectionsOff = new Image();	collectionsOff.src = "/images/collections1.gif"; 

 var bridalOn = new Image();	bridalOn.src = "/images/Bridal_head.gif"; 
 var bridalOff = new Image();	bridalOff.src = "/images/Bridal_head1.gif"; 

 var diamondOn = new Image();	diamondOn.src = "/images/kwiatdiamond.gif"; 
 var diamondOff = new Image();	diamondOff.src = "/images/kwiatdiamond1.gif"; 

 var discoverOn = new Image();	discoverOn.src = "/images/discover.gif"; 
 var discoverOff = new Image();	discoverOff.src = "/images/discover1.gif"; 
 var howOn = new Image();	howOn.src = "/images/how.gif"; 

 var howOff = new Image();	howOff.src = "/images/how1.gif"; 

 var professionalsOn = new Image();	professionalsOn.src = "/images/professionals.gif"; 
 var professionalsOff = new Image();	professionalsOff.src = "/images/professionals1.gif"; 

 var blogOn = new Image();	blogOn.src = "/images/blog.gif"; 
 var blogOff = new Image();	blogOff.src = "/images/blog1.gif"; 

 var contact_usOn = new Image();	contact_usOn.src = "/images/contact_us.gif"; 
 var contact_usOff = new Image();	contact_usOff.src = "/images/contact_us1.gif"; 

 var locateOn = new Image();	locateOn.src = "/images/locate.gif"; 
 var locateOff = new Image();	locateOff.src = "/images/locate1.gif"; 

 var submitOn = new Image();	submitOn.src = "/images/SUBMIT_on.gif"; 
 var submitOff = new Image();	submitOff.src = "/images/SUBMIT_off.gif"; 

function boutiquePopup2() {
	var popupUrl = "http://hosted.where2getit.com/kwiat";
	if (document.lab.addressline.value !='Zip Code')
		popupUrl += "?form=locator_search&addressline="+document.lab.addressline.value+"&search=Search";
	popWidth = 880;
	popHeight = 615;
	popLeft = (screen.width - popWidth) / 4;
	popTop = (screen.height - popHeight) / 4;
	popup = window.open(popupUrl,
						'boutiquePopup',
						'width=' + popWidth +
						',height=' + popHeight +
						',left=' + popLeft +
						',top=' + popTop +
						',menubar=no,toolbar=no,directories=no,location=no,status=no,scrollbars=no,resizable=yes');
	popup.focus();
}

function clearField(field){
  if (field.value == field.defaultValue) {
    field.value = "";
  }
}

function boutiquePopup() {
	var popupUrl = "http://hosted.where2getit.com/kwiat";
	popWidth = 880;
	popHeight = 615;
	popLeft = (screen.width - popWidth) / 4;
	popTop = (screen.height - popHeight) / 4;
	popup = window.open(popupUrl,
						'boutiquePopup',
						'width=' + popWidth +
						',height=' + popHeight +
						',left=' + popLeft +
						',top=' + popTop +
						',menubar=no,toolbar=no,directories=no,location=no,status=no,scrollbars=no,resizable=yes');
	popup.focus();
}

function submitForm(){
	var errorMsg = "";
	if (document.contactUs.message.value=="") errorMsg +="Message\n";
	if (document.contactUs.firstName.value=="") errorMsg +="First Name\n";
	if (document.contactUs.lastName.value=="") errorMsg +="Last Name\n";
	if (document.contactUs.phone.value=="" && document.contactUs.email.value=="") errorMsg +="Telephone or Email\n";
	if (document.contactUs.zip.value=="") errorMsg +="Zip Code\n";

	if (errorMsg=="")
		document.contactUs.submit();
	else 
		alert("The following fields are required :\n" + errorMsg);
}

function productPopup() {
	var popupUrl = "/popup.jsp?comp=3&product="+prodId+"&title="+prodTitle+"&collection="+collection;
//	alert(popupUrl);
	popWidth = prodWidth;
	popHeight = prodHeight;
	popLeft = (screen.width - popWidth) / 4;
	popTop = (screen.height - popHeight) / 4;
	popup = window.open(popupUrl,
						'productPopup',
						'width=' + popWidth +
						',height=' + popHeight +
						',left=' + popLeft +
						',top=' + popTop +
						',menubar=no,toolbar=no,directories=no,location=no,status=no,scrollbars=no,resizable=yes');
	popup.focus();
}
function contactPopup() {
	var popupUrl = "/contact.jsp?product="+prodId;
	popWidth = 630;
	popHeight = 550;
	popLeft = (screen.width - popWidth) / 4;
	popTop = (screen.height - popHeight) / 4;
	popup = window.open(popupUrl,
						'contactPopup',
						'width=' + popWidth +
						',height=' + popHeight +
						',left=' + popLeft +
						',top=' + popTop +
						',menubar=no,toolbar=no,directories=no,location=no,status=no,scrollbars=no,resizable=yes');
	popup.focus();
}
function printPopup() {
	var popupUrl = "/print.jsp?content=print&comp=3&product="+prodId+"&title="+prodTitle+"&collection="+collection;//vr dec 19 08 - changed to print.jsp
//	alert(popupUrl);
	popWidth = 700;
	popHeight = 500;
	popLeft = (screen.width - popWidth) / 4;
	popTop = (screen.height - popHeight) / 4;
	popup = window.open(popupUrl,
						'printPopup',
						'width=' + popWidth +
						',height=' + popHeight +
						',left=' + popLeft +
						',top=' + popTop +
						',menubar=no,toolbar=no,directories=no,location=no,status=no,scrollbars=no,resizable=yes');
	popup.focus();
}

//vr mar 5 2009 added category and collection name for out bound seo url
function emailPopup() {
	var popupUrl = "/email.jsp?version=print&comp=3&product="+prodId+"&title="+prodTitle
		+"&collection="+collection+"&categoryName="+categoryName+"&collectionName="+collectionName;
//	alert(popupUrl);
	popWidth = 440;
	popHeight = 433;
	popLeft = (screen.width - popWidth) / 3;
	popTop = (screen.height - popHeight) / 3;
	popup = window.open(popupUrl,
						'emailPopup',
						'width=' + popWidth +
						',height=' + popHeight +
						',left=' + popLeft +
						',top=' + popTop +
						',menubar=no,toolbar=no,directories=no,location=no,status=no,scrollbars=no,resizable=yes');
	popup.focus();
}


function isEmail(who) {
	var email=/^[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*@[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*\.([A-Za-z]){2,4}$/i;
	return(email.test(who));
}

var ccWindow;
function ccPopup(val) {
	var popupUrl = "/constantContact.jsp?email="+val;
//	alert(popupUrl);
	popWidth = 870;
	popHeight = 533;
	popLeft = (screen.width - popWidth) / 3;
	popTop = (screen.height - popHeight) / 3;
	popup = window.open(popupUrl,
						'ccPopup',
						'width=' + popWidth +
						',height=' + popHeight +
						',left=' + popLeft +
						',top=' + popTop +
						',menubar=no,toolbar=no,directories=no,location=no,status=no,scrollbars=yes,resizable=yes');
	ccWindow=popup.focus();
}
