
/* java_library.js */



/* popup window for about listing */

function displayMenuWindow(url,pos,width,height,resizable,scrollbars,menubar,status,toolbar) 
{
var MenuWin=null;
if(pos=="random"){
   LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-width)):100;
   TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-height)-75)):100;}
if(pos=="center"){
   LeftPosition=(screen.width)?(screen.width-width)/2:100;
   TopPosition=(screen.height)?(screen.height-height)/2:100;}
if(pos=="right"){
   LeftPosition=(screen.width)?(screen.width-width-20):100;
   TopPosition=40}
else 
if((pos!="center" && pos!="random") || pos==null){
   LeftPosition=10;TopPosition=20}
 
  MenuWin = window.open(url,"displayMenuWindow",'width='+width+',height='+height+',resizable='+resizable+',scrollbars='+scrollbars+',menubar='+menubar+',status='+status+',toolbar='+toolbar+',location='+location+',top='+TopPosition+',left='+LeftPosition+'');
  MenuWin.focus();
if (navigator.appName == "Netscape") {
self.focus ();
}
 
}



/* popup window for output of remote window */

function displayRemWindow(url,pos,width,height,resizable,scrollbars,menubar,status,toolbar) 
{
var Remwin=null;
if(pos=="random"){
   LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-width)):100;
   TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-height)-75)):100;}
if(pos=="center"){
   LeftPosition=(screen.width)?(screen.width-width-260)/2:100;
   TopPosition=(screen.height)?(screen.height-height-165)/2:100;}
if(pos=="right"){
   LeftPosition=(screen.width)?(screen.width-width-20):100;
   TopPosition=40}
else 
if((pos!="center" && pos!="random") || pos==null){
   LeftPosition=10;TopPosition=20}
 
Remwin = window.open(url,"displayRemWindow",'width='+width+',height='+height+',resizable='+resizable+',scrollbars='+scrollbars+',menubar='+menubar+',status='+status+',toolbar='+toolbar+',location='+location+',top='+TopPosition+',left='+LeftPosition+'');
Remwin.focus();
if (navigator.appName == "Netscape") {
self.focus ();
}
}


/* popup window for output of remote2  */

function displayRem2Window(url,pos,width,height,resizable,scrollbars,menubar,status,toolbar) 
{
var Rem2win=null;
if(pos=="random"){
   LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-width)):100;
   TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-height)-75)):100;}
if(pos=="center"){
   LeftPosition=(screen.width)?(screen.width-width)/2:100;
   TopPosition=(screen.height)?(screen.height-height)/2:100;}
if(pos=="right"){
   LeftPosition=(screen.width)?(screen.width-width-20):100;
   TopPosition=125}
else 
if((pos!="center" && pos!="random") || pos==null){
   LeftPosition=10;TopPosition=20}
 
Rem2win = window.open(url,"displayRem2Window",'width='+width+',height='+height+',resizable='+resizable+',scrollbars='+scrollbars+',menubar='+menubar+',status='+status+',toolbar='+toolbar+',location='+location+',top='+TopPosition+',left='+LeftPosition+'');
Rem2win.focus();
if (navigator.appName == "Netscape") {
self.focus ();
}
}


/* popup window for  */


function displayWindow(url,width,height) {
var win=null;
    win=window.open(url,"displayWindow",'width='+width+',height='+height+',resizable=0,scrollbars=no,menubar=no,status=no');
win.focus();
if (navigator.appName == "Netscape") {
self.focus ();
}
}


/* LIST.JS */
	
  function GetChildElem(eSrc,sTagName)
  {
    var cKids = eSrc.children;
    for (var i=0;i<cKids.length;i++)
    {
      if (sTagName == cKids[i].tagName) return cKids[i];
    }
    return false;
  }
  
  function document.onclick()
  {
    var eSrc = window.event.srcElement;
    if ("clsHasKids" == eSrc.className && (eChild = GetChildElem(eSrc,"UL")))
    {
      eChild.style.display = ("block" == eChild.style.display ? "none" : "block");
    }
  }

  function ShowAll(sTagName)
  {
   
    var cElems = document.all.tags(sTagName) 
    var iNumElems = cElems.length;
    for (var i=1;i<iNumElems;i++) cElems[i].style.display = "block";
  }
  
  function HideAll(sTagName)
  {
    var cElems = document.all.tags(sTagName);
    var iNumElems = cElems.length;
    for (var i=1;i<iNumElems;i++) cElems[i].style.display = "none";
  }


/* scrollbars popup window for  */


function displaySWindow(url,width,height,scrollbars) {
var wins=null;

   LeftPosition=(screen.width)?(screen.width-width-40):100;
   TopPosition=40;

    wins=window.open(url,"displaySWindow",'width='+width+',height='+height+',resizable=0,scrollbars='+scrollbars+',menubar=no,status=no,top='+TopPosition+',left='+LeftPosition+'');
wins.focus();
if (navigator.appName == "Netscape") {
self.focus ();
}
}