
   simsandcohomeon = new Image();
   simsandcohomeon.src = "images/nav_home.gif";
   simsandcohomeoff = new Image();
   simsandcohomeoff.src = "images/nav_home_f2.gif";
   
   serviceson = new Image();
   serviceson.src = "images/nav_services.gif";
   servicesoff = new Image();
   servicesoff.src = "images/nav_services_f2.gif";
   
   customercareon = new Image();
   customercareon.src = "images/nav_customercare.gif";
   customercareoff = new Image();
   customercareoff.src = "images/nav_customercare_f2.gif";
   
   referralson = new Image();
   referralson.src = "images/nav_referrals.gif";
   referralsoff = new Image();
   referralsoff.src = "images/nav_referrals_f2.gif";
   
   agentson = new Image();
   agentson.src = "images/nav_agents.gif";
   agentsoff = new Image();
   agentsoff.src = "images/nav_agents_f2.gif";
   
   buyers_sellerson = new Image();
   buyers_sellerson.src = "images/nav_buyers-sellers.gif";
   buyers_sellersoff = new Image();
   buyers_sellersoff.src = "images/nav_buyers-sellers_f2.gif";
   
   companyon = new Image();
   companyon.src = "images/nav_company.gif";
   companyoff = new Image();
   companyoff.src = "images/nav_company_f2.gif";
   
   buyerson = new Image();
   buyerson.src = "images/nav_buyers.gif";
   buyersoff = new Image();
   buyersoff.src = "images/nav_buyers_f2.gif";

   sellerson = new Image();
   sellerson.src = "images/nav_sellers.gif";
   sellersoff = new Image();
   sellersoff.src = "images/nav_sellers_f2.gif";
   
   faqon = new Image();
   faqon.src = "images/nav_faq.gif";
   faqoff = new Image();
   faqoff.src = "images/nav_faq_f2.gif";

   
   abouton = new Image();
   abouton.src = "images/nav_about.gif";
   aboutoff = new Image();
   aboutoff.src = "images/nav_about_f2.gif";

   contacton = new Image();
   contacton.src = "images/nav_contact.gif";
   contactoff = new Image();
   contactoff.src = "images/nav_contact_f2.gif";


/*
ID's from HTML for rollover:
home
services
customercare
referrals
agents
buyers_sellers
company
buyers
sellers
faq
about
contact"
*/


function control(page_) {
  if(document[page_]){
    document[page_].src = eval(page_+"on.src")
    eval(page_+"off.src ="+page_+"on.src")
  }
}

   
function on(image) {
   if (parseInt(navigator.appVersion.substring(0,1))>=3) {
		document[image].src = eval(image + "on.src");
   }
}

function off(image) {
   if (parseInt(navigator.appVersion.substring(0,1))>=3) {
		document[image].src = eval(image + "off.src");
   }
}


function writeVar(page_) {
	document.write (page_);
}
/*
function setPhoto(page_) {
  if(document[page_]){
	document.topPhoto.src = eval("photo"+page_+".src");
  }
}
*/

function popup(url, name, winheight, winwidth, winscroll) {
	var popwin;
	var opts = "toolbar=no,status=no,location=no,menubar=no,resizable=no,height=" + winheight + ",width=" + winwidth + ",scrollbars=" + winscroll;
	popwin = window.open("", name, opts);
	popwin.focus();
	popwin.location = url;
	
}
