<!--
if (document.images){

// Main Rollovers
   Tradition_on = new Image(142,30);Tradition_on.src = "/images/nav/Tradition/rollover.gif";
   Tradition_off = new Image(142,30);Tradition_off.src = "/images/nav/Tradition/off.gif";
   Products_on = new Image(142,30);Products_on.src = "/images/nav/Products/rollover.gif";
   Products_off = new Image(142,30);Products_off.src = "/images/nav/Products/off.gif";
   Recipes_on = new Image(142,30);Recipes_on.src = "/images/nav/Recipes/rollover.gif";
   Recipes_off = new Image(142,30);Recipes_off.src = "/images/nav/Recipes/off.gif";
   Health_on = new Image(142,30);Health_on.src = "/images/nav/Health/rollover.gif";
   Health_off = new Image(142,30);Health_off.src = "/images/nav/Health/off.gif";
   JustForYou_on = new Image(142,30);JustForYou_on.src = "/images/nav/JustForYou/rollover.gif";
   JustForYou_off = new Image(142,30);JustForYou_off.src = "/images/nav/JustForYou/off.gif";
   AskUs_on = new Image(142,30);AskUs_on.src = "/images/nav/AskUs/rollover.gif";
   AskUs_off = new Image(142,30);AskUs_off.src = "/images/nav/AskUs/off.gif";

// Tradition Rollovers
   Family_on = new Image(142,18);Family_on.src = "/images/nav/Tradition/Family_rollover.gif";
   Family_off = new Image(142,18);Family_off.src = "/images/nav/Tradition/Family_off.gif";
   Grove_on = new Image(142,18);Grove_on.src = "/images/nav/Tradition/Grove_rollover.gif";
   Grove_off = new Image(142,18);Grove_off.src = "/images/nav/Tradition/Grove_off.gif";
   HowWeMake_on = new Image(142,18);HowWeMake_on.src = "/images/nav/Tradition/HowWeMake_rollover.gif";
   HowWeMake_off = new Image(142,18);HowWeMake_off.src = "/images/nav/Tradition/HowWeMake_off.gif";
   History_on = new Image(142,18);History_on.src = "/images/nav/Tradition/History_rollover.gif";
   History_off = new Image(142,18);History_off.src = "/images/nav/Tradition/History_off.gif";

// Products Rollovers
   ExtraVirgin_on = new Image(142,18);ExtraVirgin_on.src = "/images/nav/Products/ExtraVirgin_rollover.gif";
   ExtraVirgin_off = new Image(142,18);ExtraVirgin_off.src = "/images/nav/Products/ExtraVirgin_off.gif";
   OliveOil_on = new Image(142,18);OliveOil_on.src = "/images/nav/Products/OliveOil_rollover.gif";
   OliveOil_off = new Image(142,18);OliveOil_off.src = "/images/nav/Products/OliveOil_off.gif";
   ExtraLight_on = new Image(142,18);ExtraLight_on.src = "/images/nav/Products/ExtraLight_rollover.gif";
   ExtraLight_off = new Image(142,18);ExtraLight_off.src = "/images/nav/Products/ExtraLight_off.gif";
   Specialty_on = new Image(142,18);Specialty_on.src = "/images/nav/Products/Specialty_rollover.gif";
   Specialty_off = new Image(142,18);Specialty_off.src = "/images/nav/Products/Specialty_off.gif";
   OurLabel_on = new Image(142,18);OurLabel_on.src = "/images/nav/Products/OurLabel_rollover.gif";
   OurLabel_off = new Image(142,18);OurLabel_off.src = "/images/nav/Products/OurLabel_off.gif";
   UsageChart_on = new Image(142,18);UsageChart_on.src = "/images/nav/Products/UsageChart_rollover.gif";
   UsageChart_off = new Image(142,18);UsageChart_off.src = "/images/nav/Products/UsageChart_off.gif";

// Recipes Rollovers
   FindRecipe_on = new Image(142,18);FindRecipe_on.src = "/images/nav/Recipes/FindRecipe_rollover.gif";
   FindRecipe_off = new Image(142,18);FindRecipe_off.src = "/images/nav/Recipes/FindRecipe_off.gif";
   Tips_on = new Image(142,18);Tips_on.src = "/images/nav/Recipes/Tips_rollover.gif";
   Tips_off = new Image(142,18);Tips_off.src = "/images/nav/Recipes/Tips_off.gif";
   SubstitutionChart_on = new Image(142,18);SubstitutionChart_on.src = "/images/nav/Recipes/SubstitutionChart_rollover.gif";
   SubstitutionChart_off = new Image(142,18);SubstitutionChart_off.src = "/images/nav/Recipes/SubstitutionChart_off.gif";
   Chef_on = new Image(142,18);Chef_on.src = "/images/nav/Recipes/Chef_rollover.gif";
   Chef_off = new Image(142,18);Chef_off.src = "/images/nav/Recipes/Chef_off.gif";
   RecipeBox_on = new Image(142,18);RecipeBox_on.src = "/images/nav/Recipes/RecipeBox_rollover.gif";
   RecipeBox_off = new Image(142,18);RecipeBox_off.src = "/images/nav/Recipes/RecipeBox_off.gif";
  

// Health Rollovers
   Mediterranean_on = new Image(142,18);Mediterranean_on.src = "/images/nav/Health/Mediterranean_rollover.gif";
   Mediterranean_off = new Image(142,18);Mediterranean_off.src = "/images/nav/Health/Mediterranean_off.gif";
   protectyourheart_on = new Image(142,18);protectyourheart_on.src = "/images/nav/Health/protectyourheart_rollover.gif";
   protectyourheart_off = new Image(142,18);protectyourheart_off.src = "/images/nav/Health/protectyourheart_off.gif";
   factsaboutfat_on = new Image(142,18);factsaboutfat_on.src = "/images/nav/Health/factsaboutfat_rollover.gif";
   factsaboutfat_off = new Image(142,18);factsaboutfat_off.src = "/images/nav/Health/factsaboutfat_off.gif";
   readourlabel_on = new Image(142,18);readourlabel_on.src = "/images/nav/Health/readourlabel_rollover.gif";
   readourlabel_off = new Image(142,18);readourlabel_off.src = "/images/nav/Health/readourlabel_off.gif";
   inthenews_on = new Image(142,18);inthenews_on.src = "/images/nav/Health/inthenews_rollover.gif";
   inthenews_off = new Image(142,18);inthenews_off.src = "/images/nav/Health/inthenews_off.gif";
   

// JustForYou Rollovers
   Brochures_on = new Image(142,18);Brochures_on.src = "/images/nav/JustForYou/Brochures_rollover.gif";
   Brochures_off = new Image(142,18);Brochures_off.src = "/images/nav/JustForYou/Brochures_off.gif";
   CompanyStore_on = new Image(142,18);CompanyStore_on.src = "/images/nav/JustForYou/CompanyStore_rollover.gif";
   CompanyStore_off = new Image(142,18);CompanyStore_off.src = "/images/nav/JustForYou/CompanyStore_off.gif";
   SpecialOffers_on = new Image(142,18);SpecialOffers_on.src = "/images/nav/JustForYou/SpecialOffers_rollover.gif";
   SpecialOffers_off = new Image(142,18);SpecialOffers_off.src = "/images/nav/JustForYou/SpecialOffers_off.gif";
   Upromise_on = new Image(142,18);Upromise_on.src = "/images/nav/JustForYou/Upromise_rollover.gif";
   Upromise_off = new Image(142,18);Upromise_off.src = "/images/nav/JustForYou/Upromise_off.gif";
   goodseason_on = new Image(142,18);goodseason_on.src = "/images/nav/JustForYou/goodseason_rollover.gif";
   goodseason_off = new Image(142,18);goodseason_off.src = "/images/nav/JustForYou/goodseason_off.gif";	
   KitchenTraditions_Form_on = new Image(142,18);KitchenTraditions_Form_on.src = "/images/nav/JustForYou/KitchenTraditions_Form_rollover.gif";
   KitchenTraditions_Form_off = new Image(142,18);KitchenTraditions_Form_off.src = "/images/nav/JustForYou/KitchenTraditions_Form_off.gif";
   McCormickGrinders_on = new Image(142,18);McCormickGrinders_on.src = "/images/nav/JustForYou/McCormickGrinders_rollover.gif";
   McCormickGrinders_off = new Image(142,18);McCormickGrinders_off.src = "/images/nav/JustForYou/McCormickGrinders_off.gif";
   CavitWine_on = new Image(142,18);CavitWine_on.src = "/images/nav/JustForYou/CavitWine_rollover.gif";
   CavitWine_off = new Image(142,18);CavitWine_off.src = "/images/nav/JustForYou/CavitWine_off.gif";

// AskUs Rollovers
   FAQs_on = new Image(142,18);FAQs_on.src = "/images/nav/AskUs/FAQs_rollover.gif";
   FAQs_off = new Image(142,18);FAQs_off.src = "/images/nav/AskUs/FAQs_off.gif";
   ContactUs_on = new Image(142,18);ContactUs_on.src = "/images/nav/AskUs/ContactUs_rollover.gif";
   ContactUs_off = new Image(142,18);ContactUs_off.src = "/images/nav/AskUs/ContactUs_off.gif";

}

function imgOn(name) 
{ if (document.images){ document.images[name].src=eval(name + "_on.src");}}

function imgOff(name) { if (document.images){document.images[name].src=eval(name + "_off.src"); } }


//Bookmark Script

function addfavorite () { 

	if (navigator.appName == "Microsoft Internet Explorer") { 

		 window.external.AddFavorite (parent.location.href, document.title); 
	} 

	else if (navigator.appName=="Netscape") { 

		 alert ("Netscape Users hit CTRL+D to add a bookmark to this site."); 
	} 
} 

function TimelineWin(url,windowName) {
agent = navigator.userAgent;
params  = "";
params += "toolbar=0,";
params += "location=0,";
params += "directories=0,";
params += "status=0,";
params += "menubar=0,";
params += "scrollbars=0,";
params += "resizable=0,";
params += "width=550,";
params += "height=336";  
   
win = window.open(url, windowName , params);
if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
	win = window.open(url, windowName , params);
}
if (!win.opener) {
	win.opener = window;
}
}


//Email A Friend Popup
function Popup(url) {
        agent = navigator.userAgent;
        windowName = "moduleWin";
        params  = "";
        params += "toolbar=0,";
        params += "location=0,";
        params += "directories=0,";
        params += "status=0,";
        params += "menubar=0,";
        params += "scrollbars=0,";
        params += "resizable=0,";
        params += "width=512,";
        params += "height=540";   
        win = window.open(url, windowName , params);
        if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
                win = window.open(url, windowName , params);
        }
        if (!win.opener) {
                win.opener = window;
        } 
}
//Add to Recipe Box Popup
function AddToBox(url) {
        agent = navigator.userAgent;
        windowName = "moduleWin";
        params  = "";
        params += "toolbar=0,";
        params += "location=0,";
        params += "directories=0,";
        params += "status=0,";
        params += "menubar=0,";
        params += "scrollbars=0,";
        params += "resizable=0,";
        params += "width=300,";
        params += "height=224";   
        win = window.open(url, windowName , params);
        if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
                win = window.open(url, windowName , params);
        }
        if (!win.opener) {
                win.opener = window;
        } 
}


function InteractWin(url,windowName) {
agent = navigator.userAgent;
params  = "";
params += "toolbar=0,";
params += "location=0,";
params += "directories=0,";
params += "status=0,";
params += "menubar=0,";
params += "scrollbars=0,";
params += "resizable=0,";
params += "width=550,";
params += "height=350";  
   
win = window.open(url, windowName , params);
if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
	win = window.open(url, windowName , params);
}
if (!win.opener) {
	win.opener = window;
}
}


//Med Diet Popup
function MedDietPop(url) {
        agent = navigator.userAgent;
        windowName = "moduleWin";
        params  = "";
        params += "toolbar=0,";
        params += "location=0,";
        params += "directories=0,";
        params += "status=0,";
        params += "menubar=0,";
        params += "scrollbars=0,";
        params += "resizable=0,";
        params += "width=362,";
        params += "height=415";   
        win = window.open(url, windowName , params);
        if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
                win = window.open(url, windowName , params);
        }
        if (!win.opener) {
                win.opener = window;
        } 
}


//Nutritional Comparison Popup
function nutcomp(url) {
        agent = navigator.userAgent;
        windowName = "moduleWin";
        params  = "";
        params += "toolbar=0,";
        params += "location=0,";
        params += "directories=0,";
        params += "status=0,";
        params += "menubar=0,";
        params += "scrollbars=0,";
        params += "resizable=0,";
        params += "width=420,";
        params += "height=350";   
        win = window.open(url, windowName , params);
        if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
                win = window.open(url, windowName , params);
        }
        if (!win.opener) {
                win.opener = window;
        } 
}

//Fat Comparision Popup
function FatsPop(url) {
        agent = navigator.userAgent;
        windowName = "moduleWin";
        params  = "";
        params += "toolbar=0,";
        params += "location=0,";
        params += "directories=0,";
        params += "status=0,";
        params += "menubar=0,";
        params += "scrollbars=0,";
        params += "resizable=0,";
        params += "width=412,";
        params += "height=358";   
        win = window.open(url, windowName , params);
        if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
                win = window.open(url, windowName , params);
        }
        if (!win.opener) {
                win.opener = window;
        } 
}

//Store Details Popup
function StorePop(url) {

        agent = navigator.userAgent;
        windowName = "moduleWin";
        params  = "";
        params += "toolbar=0,";
        params += "location=0,";
        params += "directories=0,";
        params += "status=0,";
        params += "menubar=0,";
        params += "scrollbars=0,";
        params += "resizable=0,";
        params += "width=412,";
        params += "height=358";   
        win = window.open(url, windowName , params);
        if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
                win = window.open(url, windowName , params);
        }
        if (!win.opener) {
                win.opener = window;
        } 
}



function StorePop2(url,imgpath,prodno,height) {
        agent = navigator.userAgent;
        windowName = "moduleWin";
        params  = "";
        params += "toolbar=0,";
        params += "location=0,";
        params += "directories=0,";
        params += "status=0,";
        params += "menubar=0,";
        params += "scrollbars=1,";
        params += "resizable=0,";
        params += "width=367,";
        
        if(height == 'inc')
        {
			params +="height=565";
        } 
        else
         {
			params += "height=465";   
		 }
              
        
        strURL = url+"?imgpath="+imgpath+"&prodno="+ prodno
  
        win = window.open(strURL, windowName , params);
        if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
                win = window.open(url, windowName , params);
        }
        if (!win.opener) {
                win.opener = window;
        } 
}

function PrintWindowPop(url) {
	
	
	if (totalPrice.innerHTML == "$0.00")
	{
		alert("No Product Found in the shopping cart.");
		return false;
	}
	
		strValTest = ValidateForm();
	    if (strValTest == false)
		{
			return false;
		}

        agent = navigator.userAgent;
        windowName = "moduleWin";
        params  = "";
        params += "toolbar=0,"; 
        params += "location=0,";
        params += "directories=0,";
        params += "status=0,";
        params += "menubar=0,";
        params += "scrollbars=1,";
        params += "resizable=0,";
        params += "width=700,";
        params += "height=500";   
        
     
        strURL = url+"?fname="+document.getElementById("fname").value
        strURL = strURL  + "&lname="+ document.getElementById("lname").value
        strURL = strURL  + "&address="+document.getElementById("address").value
        strURL = strURL  + "&address2="+ document.getElementById("address2").value
        strURL = strURL  + "&city="+document.getElementById("city").value 
		strURL = strURL  + "&state="+ document.getElementById("state").value
        strURL = strURL  + "&zip="+document.getElementById("zip").value
		strURL = strURL  + "&email="+ document.getElementById("email").value
		strURL = strURL  + "&phone="+ document.getElementById("phone").value


        win = window.open(strURL, windowName , params);

        if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
                win = window.open(url, windowName , params);
        }
        if (!win.opener) {
                win.opener = window;
        } 
       
}


//Print Recipe Version
function PrintPopup(url) {
var  myHeight = 0;
	if( typeof( window.outerHeight ) == 'number' ) {
		myHeight = window.outerHeight;
	} else {
		if( document.documentElement && ( document.documentElement.clientHeight ) ) {
			myHeight = document.documentElement.clientHeight;
		} else {
			if( document.body && ( document.body.clientHeight ) ) {
				myHeight = document.body.clientHeight;
			}
		}
	}
	
if (navigator.userAgent.indexOf('Gecko') == -1)
		{	
       window.open(url, "PrintWindow",  " 'height=' + myHeight + ',width=600 ,toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0' ");
		}
else if ((document.layers && (parseInt(navigator.appVersion) <5 )) ||  ((navigator.appName=="AOL") && (parseInt(navigator.appVersion)<=5)))
		{	
       window.open(url, 'PrintWindow',  'height=' + screen.height+ ',width=550 ,toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0');
		}
		
else
		{	
       window.open(url, 'PrintWindow',  'height=' + myHeight + ',width=600 ,toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0');
		}

}

//*********** check spaces****************

function ValidateForm()

{

      
// Validate first Name
  	if ((document.getElementById("fname").value == "") |(IgnoreChar(document.getElementById("fname").value, " ") == "")){
		alert("Please enter your First Name.")
		document.getElementById("fname").focus()
		return false
	}

	if ((document.getElementById("lname").value == "") |(IgnoreChar(document.getElementById("lname").value, " ") == "")){

		alert("Please enter your Last Name.")
		document.getElementById("lname").focus()
		return false
	}

	if ((document.getElementById("address").value == "") |(IgnoreChar(document.getElementById("address").value, " ") == "")){
		alert("Please enter your Address.")
		document.getElementById("address").focus()
		return false
	}
	
	if ((document.getElementById("city").value == "") |(IgnoreChar(document.getElementById("city").value, " ") == "")){
		alert("Please enter your City.")
		document.getElementById("city").focus()
		return false
	}
	
	
	
	if ((document.getElementById("state").value == "") |(IgnoreChar(document.getElementById("state").value, " ") == "")){
			
			
		alert("Please select your State.")
		document.getElementById("state").focus()
		return false
	}
	strStateLen = document.getElementById("state").value
			if (strStateLen.length < 2)
					{
						alert("State must be length of 2.")
						document.getElementById("state").focus()
						return false;
					}
		
				if (strStateLen.length > 2)
					{
						alert("State must be length of 2.")
						document.getElementById("state").focus()
						return false;
					}
	//Zip
	if (document.getElementById("zip").value == ""){
		alert("Zip code must be a 5 digit number")		
		document.getElementById("zip").focus()
		return false
	}
	if (document.getElementById("zip").value != "" && isNaN(document.getElementById("zip").value)){
		alert("Zip code must be a 5 digit number")		
		document.getElementById("zip").focus()
		return false
	}
	//To Check the decimal point
	if (document.getElementById("zip").value != "" && !(isNaN(document.getElementById("zip").value)))	{
		
		if (!(CheckNumber(document.getElementById("zip"))))
			{
					//		if(((Math.round(aForm.zip.value).toString()).length) < 4){
			alert("Zip code must be 5 Digit number")
			document.getElementById("zip").focus()
			return false
		}
	}	

	if (document.getElementById("zip").value != "" && document.getElementById("zip").value.length != 5){
		alert("Zip code must be a 5 digit number")
		document.getElementById("zip").focus()
		return false
	}
	
	if (document.getElementById("phone").value == ""){
		alert("Please enter your Phone Number")		
		document.getElementById("phone").focus()
		return false
	}
	if (document.getElementById("phone").value != "" && isNaN(document.getElementById("phone").value)){
		alert("Phone Number must be digits")		
		document.getElementById("phone").focus()
		return false
	}
	if (document.getElementById("phone").value != "" && document.getElementById("phone").value.length != 10){
		alert("Phone Number must be a 10 digit number")
		document.getElementById("phone").focus()
		return false
	}
		
	if (document.getElementById("email").value != "")
		{
			if (!validateEmail(document.getElementById("email"))){
				document.getElementById("email").focus();
				alert("Please enter valid Email Address")
				return false;
		}
	}
 
	return true;
}
function validateEmail(obj){
	var email=obj.value.toLowerCase();
	//alert(email);
	if (email.length == 0 || SpacesOnly(email))	{				
		return false;
	}
		
	if (email.indexOf("@")==-1) {			
		//obj.email.value="";				
		return false;
	}
	if (email.indexOf(".")==-1) {			
		//obj.email.value="";		
		return false;
	}		
	if (email.indexOf("..")!=-1){			
		//obj.email.value="";		
		return false;
	}	
	if (email.indexOf("@.")!=-1){			
		//obj.email.value="";				
		return false;
	}	
	if (email.charAt(0)=="@"){			
		//obj.email.value="";		
		return false;
	}
	if (email.charAt(email.length-1)=="."){			
		//obj.email.value="";		
		return false;
	}
		
		return true;
	
}
function IgnoreChar(string, ch) 
{
	var temp = "";
	string = '' + string;
	splitstring = string.split(ch);
	for(i = 0; i < splitstring.length; i++)
	temp += splitstring[i];
	return temp;
}

function SpacesOnly(field){	
	if (field.length != 0){
		
	  foundchar = false
	  for (i = 0; i <= field.length - 1; i++){
	   
	    if (field.substring(i,1) != ' ')
	    //alert ('in loop');
		 {			
		  foundchar = true;
		  break;
		 }
	   }
	   if (foundchar)
		return false;
	 }
	return true;
}
function CheckNumber(field){

	var sValue;
	var iDigits;
	var GoodChars = "0123456789";
	var i = 0;

	sValue=field.value;
	
	iDigits = (sValue.toString()).length;		
	
	for (i =0; i <= iDigits -1; i++){
		if (GoodChars.indexOf(sValue.charAt(i)) == -1){
			return false;
		} 
	} 
	return true;
}



function readValue(lnk)
{
	strTest = lnk
	
	
	if (document.location.href.indexOf("form.asp") != -1)
	{
		document.location.href=lnk
		return false;
	}
	
											
	document.form1.action =lnk
	document.form1.submit();
											
}


function popWindow()
{
pwin=window.open("printChart.asp","","height=400,width=475,left=200,top=200,toobar=no,scrollbars=auto,status=no,resizable=no");
}

function popWindowU()
{
pwin=window.open("printUsageChart.asp","","height=650,width=475,left=200,top=200,toobar=no,scrollbars=auto,status=no,resizable=no");
}
//-->