view1=0;
view2=0;
view3=0;

isNS4 = (document.layers) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;

function checka(){
	if(view1==0) {
	hide('Layer1');
	di20('reg','images/btn_register.gif');
	}
}
function checkb(){
	if(view2==0) {
	hide('Layer2');
	di20('adv','images/btn_advantage.gif');
	}
}
function checkc(){
	if(view3==0) {
	hide('Layer3');
	di20('search','images/btn_search.gif');
	}
}


/* This is the start of the code for the layers */
function show(object){
   if (isIE5 || isNS6)
      document.getElementById(object).style.visibility = "visible";
   if (isNS4)
      eval('document.' + object + '.visibility = "visible"');
}
function hide(object){
   if (isIE5 || isNS6){
   document.getElementById(object).style.visibility = "hidden";}
   if (isNS4){
      eval('document.' + object + '.visibility = "hidden"');}
}

/* Function that swaps images. */

function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}

/* Functions that track and set toggle group button states. */

function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    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];}}
}
function popIntro(source){
	newView = window.open(source,"popup","width=800,height=600,resizable=1,scrollbars=1,toolbar=1,menubar=1,location=1")
	newView.focus();
}
function popBio(source){
	newViewa = window.open(source,"popupa","width=400,height=430,resizable=0,scrollbars=0,toolbar=no,menubar=0,location=0")
	newViewa.focus();
}
function popTemp(source){
	newViewa = window.open(source,"popupa","width=400,height=300,resizable=0,scrollbars=0,toolbar=no,menubar=0,location=0")
	newViewa.focus();
}
function popArch(source){
	newView = window.open(source,"popup","width=600,height=600,resizable=1,scrollbars=1,toolbar=0,menubar=0,location=0")
	newView.focus();
}