
var popWin = null    // use this when referring to pop-up window
 var winCount = 0
 var winName = "popWin"
function openPopWin(winURL, winWidth, winHeight, winFeatures, winLeft, winTop){
   var d_winLeft = 20  // default, pixels from screen left to window left
   var d_winTop = 20   // default, pixels from screen top to window top
   winName = "popWin" + winCount++ //unique name for each pop-up window
   closePopWin()           // close any previously opened pop-up window
   if (openPopWin.arguments.length >= 4)  // any additional features?
     winFeatures = "," + winFeatures
   else
     winFeatures = ""
   if (openPopWin.arguments.length == 6)  // location specified
     winFeatures += getLocation(winWidth, winHeight, winLeft, winTop)
   else
     winFeatures += getLocation(winWidth, winHeight, d_winLeft, d_winTop)
   popWin = window.open(winURL, winName, "width=" + winWidth
            + ",height=" + winHeight + winFeatures)
   }
 function closePopWin(){    // close pop-up window if it is open
   if (navigator.appName != "Microsoft Internet Explorer"
       || parseInt(navigator.appVersion) >=4) //do not close if early IE
     if(popWin != null) if(!popWin.closed) popWin.close()
   }
 function getLocation(winWidth, winHeight, winLeft, winTop){
   return ""
   }


function popup_frame(name,link,w,h,s,t,l,d,st,m,r,x,y)
	
{
eval("var "+name+" = window.open('"+link+"','"+name+"','width="+w+",height="+h+",scrollbars="+s+",toolbar="+t+",location="+l+",directories="+d+",status="+st+",menubar="+m+",resizable="+r+",left="+x+",top="+y+"')");	
if (navigator.appVersion.indexOf('MSIE 4')==-1)		
{		eval(name+".focus()");
		}	}




NS4 = (document.layers);
IE4 = (document.all);
ver4 = (NS4 || IE4);
isMac = (navigator.appVersion.indexOf("Mac") != -1);
isW3C = (NS4?false:((document.getElementById)?true:false));
isMenu = (NS4 || (IE4 && !isMac));
isMenu = (NS4 || (IE4 && !isMac) || (isW3C && !(navigator.appName == 'Netscape')));

if (isW3C && !(IE4 && !isMac)) {
document.all=document.getElementById;
}	
var platform = navigator.appVersion;
isUNIX = (platform.indexOf("X11") != -1) ||
(platform.indexOf("Linux") != -1) ||
(platform.indexOf("SunOS") != -1) ||
(platform.indexOf("IRIX") != -1) ||
(platform.indexOf("HP-UX") != -1);

function popUp(){return};
function popDown(){return};
function startIt(){return};
if (!ver4) event = null;
var formOn = true;
if (isUNIX) formOn = false;




if (isMenu) {
  menuVersion = 3;
  menuWidth = 0;
  childOverlap = 15;
  childOffset = 10;
  perCentOver = null;
  secondsVisible = 0;
  fntCol = "#ee5624";
  fntSiz = "7";
  fntBold = true;
  fntItal = false;
  fntFam = "Verdana, Arial";
  backCol = "#ffffff";
  if (NS4) {overCol = null; overFnt = "#ffffff";}
  else { overCol = "#000000"; overFnt = "#ffffff";}
  borWid = 1;
  borCol = "#000000";
  borSty = "outset";
  itemPad = 2;
  imgSrc = "images/triangle.gif";
  imgSiz = 8;
  separator = 1;
  separatorCol = "#000000";
  isFrames = false;
  navFrLoc =  "left";
  mainFrName = "main";
  clickStart = false;
  clickKill = false;
  keepHilite = true;
  NSfontOver = false;
  showVisited = "#666666";
}


document.preloadArray = new Array();


if (isMenu) {
  document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='menu.js'><\/SCRIPT>");
  document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='code.js'><\/SCRIPT>");
}
