if (document.images)	{

/* First-level images */

	resourceson = new Image(); resourceson.src = "images/resources_on.gif";
	resourcesoff = new Image(); resourcesoff.src = "images/resources_off.gif";

	companyon = new Image(); companyon.src = "images/company_on.gif";
	companyoff = new Image(); companyoff.src = "images/company_off.gif";	

	contacton = new Image(); contacton.src = "images/contact_on.gif";
	contactoff = new Image(); contactoff.src = "images/contact_off.gif";		

	homeon = new Image(); homeon.src = "images/home_on.gif";
	homeoff = new Image(); homeoff.src = "images/home_off.gif";		

/* Second-level images */	

	quotehon = new Image(); quotehon.src = "images/quote_home_on.gif";
	quotehoff = new Image(); quotehoff.src = "images/quote_home_off.gif";		

	quoteaon = new Image(); quoteaon.src = "images/quote_auto_on.gif";
	quoteaoff = new Image(); quoteaoff.src = "images/quote_auto_off.gif";		

	quotelon = new Image(); quotelon.src = "images/quote_life_on.gif";
	quoteloff = new Image(); quoteloff.src = "images/quote_life_off.gif";				
			
	quoteheon = new Image(); quoteheon.src = "images/quote_health_on.gif";
	quoteheoff = new Image(); quoteheoff.src = "images/quote_health_off.gif";		
	
	quotecon = new Image(); quotecon.src = "images/quote_commercial_on.gif";
	quotecoff = new Image(); quotecoff.src = "images/quote_commercial_off.gif";		
  
  personalInsThirdOff =new Image();  personalInsThirdOff.src="images/personalins_off.gif";
  personalInsThirdOn =new Image();  personalInsThirdOn.src="images/personalins_on.gif";
  
/* Third-level images */	  

  commercialInsThirdOff =new Image();  commercialInsThirdOff.src="images/commercialins_off.gif";
  commercialInsThirdOn =new Image();  commercialInsThirdOn.src="images/commercialins_on.gif";
  
  
  financialThirdOff =new Image();  financialThirdOff.src="images/financial_off.gif";
  financialThirdOn =new Image();  financialThirdOn.src="images/financial_on.gif";
  
  claimsThirdOff =new Image();  claimsThirdOff.src="images/claims_off.gif";
  claimsThirdOn =new Image();  claimsThirdOn.src="images/claims_on.gif";
  
  linksThirdOff =new Image();  linksThirdOff.src="images/links_off.gif";
  linksThirdOn =new Image();  linksThirdOn.src="images/links_on.gif";
  
  specialtyThirdOff =new Image();  specialtyThirdOff.src="images/specialty_off.gif";
  specialtyThirdOn =new Image();  specialtyThirdOn.src="images/specialty_on.gif";
  
  
  groupHomeAutoThirdOff =new Image();  groupHomeAutoThirdOff.src="images/grouphomeauto_off.gif";
  groupHomeAutoThirdOn =new Image();  groupHomeAutoThirdOn.src="images/grouphomeauto_on.gif";
  
  
  contactPlanningThirdOff =new Image();  contactPlanningThirdOff.src="images/contractplanning_off.gif";
  contactPlanningThirdOn =new Image();  contactPlanningThirdOn.src="images/contractplanning_on.gif";

  specAdvancedTechOff =new Image();  specAdvancedTechOff.src="images/spec_advancedtech_off.gif";
  specAdvancedTechOn =new Image();  specAdvancedTechOn.src="images/spec_advancedtech_on.gif";
  
  
  specLifeSciencesOff =new Image();  specLifeSciencesOff.src="images/spec_lifesciences_off.gif";
  specLifeSciencesOn =new Image();  specLifeSciencesOn.src="images/spec_lifesciences_on.gif";
  
  
  specManufacturingOff =new Image();  specManufacturingOff.src="images/spec_specmanufacturing_off.gif";
  specManufacturingOn =new Image();  specManufacturingOn.src="images/spec_specmanufacturing_on.gif";
  
  
  specRiskManageOff =new Image();  specRiskManageOff.src="images/spec_riskmanage_off.gif";
  specRiskManageOn =new Image();  specRiskManageOn.src="images/spec_riskmanage_on.gif";
  
  
  specEnviroLiabilityOff =new Image();  specEnviroLiabilityOff.src="images/spec_enviroliability_off.gif";
  specEnviroLiabilityOn =new Image();  specEnviroLiabilityOn.src="images/spec_enviroliability_on.gif";
	
}

function change(imgname,onoff)	{
	if (document.images)	{
		if ( (imgname == "quoteh") || (imgname == "quotea") || (imgname == "quotel") || (imgname == "quotehe") || (imgname == "quotec")   )	{
					document.images[imgname].src = eval(imgname + onoff + ".src");
		
				if (onoff == "on")	{ 
					document.images['quote'].src = "images/quote_on.gif"; 
					}
				else { 
					document.images['quote'].src = "images/quote_off.gif"; 
					}	
			}
		else { document.images[imgname].src = eval(imgname + onoff + ".src"); }
	}
}
	var f;
	function pop(page,close_only) {
			if ( f && !f.closed && f.close ) {
				f.close();
			}
			if ( !close_only ) {
   	    winX=(screen.width-700)/2
  	    winY=(screen.height-600)/2      
        f = window.open(page, "Window", "width=700,height=600,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,top="+winY+",left="+winX);

		}
	}

	var popF;
	function centeredPopup(page, popWidth, popHeight, close_only) {
			
			if ( popF && !popF.closed && popF.close ) {
				popF.close();
			}
			if ( !close_only ) {
				if (popWidth==null) { popWidth=400 }
				if (popHeight==null) { popHeight=400 }
   	    winX=(screen.width-popWidth)/2
  	    winY=(screen.height-popHeight)/2      
        popF = window.open(page, "Window", "width="+ popWidth + ",height=" + popHeight + ",resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,top="+winY+",left="+winX);

		}
	}	
	
	var f2;
	function popq(page,close_only) {
			if ( f2 && !f2.closed && f2.close ) {
				f2.close();
			}
			if ( !close_only ) {
   	    winX=(screen.width-700)/2
  	    winY=(screen.height-600)/2   
      
        f2 = window.open(page, "Window2", "width=700,height=600,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,top="+winY+",left="+winX);

		}
	}			
