 
  //check to see if the browser supports DHTML
var objectVisible, objectVisible1, objectDefault,objectDefault1;
  var NS4 = (document.layers);
  var IE4 = (document.all);
  var ver4 = (NS4 || IE4);   
  var isMac = (navigator.appVersion.indexOf("Mac") != -1);
 var browserType = navigator.appName.charAt(0)+navigator.appVersion.charAt(0)
var win=null;
function init(object,object1) {
    objectDefault=object;
    objectDefault1 = object1;
    show(object);
    show1(object1);
}

function show(object) {
    if (document.getElementById && document.getElementById(object) != null) {
         document.getElementById(object).style.visibility='visible';
         document.getElementById(object).style.display='block';
    }
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'visible';
    else if (document.all && document.all[object] != null) {
        document.all[object].style.zIndex = 100;
        document.all[object].style.visibility = 'visible';
    }
    objectVisible=object;
}
function show1(object) {
    if (document.getElementById && document.getElementById(object) != null) {
         document.getElementById(object).style.visibility='visible';
         document.getElementById(object).style.display='block';
    }
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'visible';
    else if (document.all && document.all[object] != null) {
        document.all[object].style.zIndex = 100;
        document.all[object].style.visibility = 'visible';
    }
    objectVisible1=object;
}
function hide(object) {
    if (document.getElementById && document.getElementById(object) != null) {
         document.getElementById(object).style.visibility='hidden';
         document.getElementById(object).style.display='none';
    }
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'hidden';
    else if (document.all && document.all[object] != null) {
        document.all[object].style.zIndex = 100;
        document.all[object].style.visibility = 'hidden';
       document.all[object].style.display = 'none';    
    }
}


function swap(object) {

    hide(objectVisible);
    show(object);
}

function swap1(object) {

    hide(objectVisible1);
    show1(object);
}
function swapDefault() {
    hide(objectVisible);
    show(objectDefault);
    objectVisible = objectDefault;
}
function swapDefault1() {
    hide(objectVisible1);
    show1(objectDefault1);
    objectVisible1 = objectDefault1;
}
function swapVisible() {
    hide(objectVisible);
    show(objectDefault);
    objectVisible = objectDefault;
}
function popupPrint(myURL){
	myWidth=700;
	myHeight=300;
	if (browserType=="N2") {
siteWindow=window.open("","","toolbar=0,location=0,directories=0,status=0,menubar=1, scrollbars=1,resizable=1,width="+myWidth+",height="+myHeight);
			siteWindow.opener=self;		
			siteWindow=myURL;
			
	}
	if (browserType.charAt(0)=="M") {
siteWindow=window.open(myURL,"","toolbar=0,location=0,directories=0,status=0,menubar=1, scrollbars=1,resizable=1,width="+myWidth+",height="+myHeight);
			siteWindow.opener=self;		
	}
	else {
siteWindow=window.open(myURL,"","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width="+myWidth+",height="+myHeight);
			siteWindow.opener=self;
	}
setTimeout("siteWindow.focus();",200);

}
	function popwin(popfile) {
	//added by Bob to open window on 11/28/01
	 myFloater = window.open('', 'myWindow', 'scrollbars=yes, resizable=no, status=no, width=600, height=800, top=100, left=120, screenx=100, screeny=120')
	 myFloater.location.href = popfile;
	}

   function popup(myURL, myWidth, myHeight){

	  if (browserType=="N2") {
          siteWindow=window.open("","","toolbar=0,location=0,directories=0,status=0,menubar=1, scrollbars=1,resizable=1,left=" + (screen.width-myWidth)/2 + ", top="+ (screen.height-myHeight)/2+",width="+myWidth+",height="+myHeight);
		  siteWindow.opener=self;
		  siteWindow=myURL;
	  }
	if (browserType.charAt(0)=="M") {
      siteWindow=window.open(myURL,"","toolbar=0,location=0,directories=0,status=0,menubar=0, scrollbars=1,resizable=1,left=" + (screen.width-myWidth)/2 + ", top="+ (screen.height-myHeight)/2+", width="+myWidth+",height="+myHeight);
	  siteWindow.opener=self;
	}
	else {
      siteWindow=window.open(myURL,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,left=" + (screen.width-myWidth)/2 + ", top="+ (screen.height-myHeight)/2+",width="+myWidth+",height="+myHeight);
	  siteWindow.opener=self;
	}

}
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}


function createTarget(t){
window.open("", t, "width=600,height=550,location=no,toolbar=no");
return true;
}


