
   homeon = new Image();
   homeon.src = "_images/nav_home_f2.jpg";
   homeoff = new Image();
   homeoff.src = "_images/nav_home.jpg";
   
   testson = new Image();
   testson.src = "_images/nav_tests_f2.jpg";
   testsoff = new Image();
   testsoff.src = "_images/nav_tests.jpg";
   
   parentageon = new Image();
   parentageon.src = "_images/nav_parentage_f2.jpg";
   parentageoff = new Image();
   parentageoff.src = "_images/nav_parentage.jpg";
   
   abouton = new Image();
   abouton.src = "_images/nav_about_f2.jpg";
   aboutoff = new Image();
   aboutoff.src = "_images/nav_about.jpg";

   contacton = new Image();
   contacton.src = "_images/nav_contact_f2.jpg";
   contactoff = new Image();
   contactoff.src = "_images/nav_contact.jpg";
  
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;
	
}
