dd=document;NS=(dd.layers)?1:0;IE=(dd.all)?1:0;DOM=(dd.getElementById)?1:0 
		function showLayer(L){
		if(L == "BuyNow"){
			setListBoxStyle('n');
			setListBoxStyle('y');
		}
		if(L == "ExitSite"){
			setListBoxStyle('n');
			setListBoxStyle('y');
		}
		if(NS)dd.layers[L].display='show'; 
		else if (IE)obg=dd.all[L]; 
		else obg=dd.getElementById(L); 
		if(!NS)obg.style.display='block' 
		}
		
		function hideLayer(L){ 
		if(L == "BuyNow"){
			setListBoxStyle('n');
		}
		if(L == "ExitSite"){
			setListBoxStyle('n');
		}
		if(NS)dd.layers[L].display='hide'; 
		else if (IE)obg=dd.all[L]; 
		else obg=dd.getElementById(L); 
		if(!NS)obg.style.display='none' 
		}

function change(id, newClass) {
		identity=document.getElementById(id);
		identity.className=newClass;
		}
		
		function SubNavBack0()	
		{
		showLayer ('SubNav0')
		hideLayer ('SubNav1')
		hideLayer ('SubNav2')
		hideLayer ('SubNav3')
		hideLayer ('SubNav4')
		}
		
		function SubNavBack1()	
		{
		hideLayer ('SubNav0')
		showLayer ('SubNav1')
		hideLayer ('SubNav2')
		hideLayer ('SubNav3')
		hideLayer ('SubNav4')
		showLayer ('Section1SubNav1')
		hideLayer ('Section1SubNav2')
		hideLayer ('Section1SubNav3')
		hideLayer ('Section1SubNav4')
		}
		
		function SubNavBack2()	
		{
		hideLayer ('SubNav0')
		hideLayer ('SubNav1')
		showLayer ('SubNav2')
		hideLayer ('SubNav3')
		hideLayer ('SubNav4')
		showLayer ('Section1SubNav2')
		hideLayer ('Section1SubNav1')
		hideLayer ('Section1SubNav3')
		hideLayer ('Section1SubNav4')
		}
		
		function SubNavBack3()	
		{
		hideLayer ('SubNav0')
		hideLayer ('SubNav1')
		hideLayer ('SubNav2')
		showLayer ('SubNav3')
		hideLayer ('SubNav4')
		showLayer ('Section1SubNav3')
		hideLayer ('Section1SubNav2')
		hideLayer ('Section1SubNav1')
		hideLayer ('Section1SubNav4')
		}
		
		function SubNavBack4()	
		{
		hideLayer ('SubNav0')
		hideLayer ('SubNav1')
		hideLayer ('SubNav2')
		hideLayer ('SubNav3')
		showLayer ('SubNav4')
		showLayer ('Section1SubNav4')
		hideLayer ('Section1SubNav2')
		hideLayer ('Section1SubNav3')
		hideLayer ('Section1SubNav1')
		}
		
		/*THIS CONTROLS THE LINKS ON THE DAIRY DIGESTION TEST PAGES HEALTH_4A.INC*/
		function showTestDivs(_whichDiv){
			closeTestDivs();
			document.getElementById(_whichDiv).style.display = "block";
			document.getElementById('testHeaderImg').src = "/images/lactaid/newsite/"+_whichDiv+"_top.gif";
		}
		
		function closeTestDivs(){
			document.getElementById('day1').style.display = "none";
			document.getElementById('day2').style.display = "none";
			document.getElementById('results').style.display = "none";
		}
		
		function op_lgpr(url){	
			window.open(url,'prtopen','width=645,height=600,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no');
		}
		//THIS CONTROLS THE MAPS SHOWING UP WHEN SOMEONE SELECTS IT WITH THE DROPDOWN MENU
		function showDiv(divName) {
			jQuery('.productMap').hide();
			jQuery('#' + divName).show();
			return;
		}
		
		function validateEmail(email)
		{
			var splitted = email.match("^(.+)@(.+)$");
			if(splitted == null) return false;
			if(splitted[1] != null )
			{
			  var regexp_user=/^\"?[\w-_\.]*\"?$/;
			  if(splitted[1].match(regexp_user) == null) return false;
			}
			if(splitted[2] != null)
			{
			  var regexp_domain=/^[\w-\.]*\.[A-Za-z]{2,4}$/;
			  if(splitted[2].match(regexp_domain) == null) 
			  {
				var regexp_ip =/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;
				if(splitted[2].match(regexp_ip) == null) return false;
			  }// if
			  return true;
			}
		return false;
		}
		
		function MM_preloadImages() { //v3.0
				  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
					var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
					if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
				}
				
		var currentDate = new Date();
		var currentYear = currentDate.getFullYear();