
if (document.images)
{
var arloff = new Image();
arloff.src = "../../images/nav/xgtrileft0.gif";
var arlon=new Image();
arlon.src =  "../../images/nav/xgtrileft1.gif";

var arroff = new Image();
arroff.src = "../../images/nav/xgtriright0.gif";
var arron=new Image();
arron.src = "../../images/nav/xgtriright1.gif";

var aruoff = new Image();
aruoff.src = "../../images/nav/xgtriup0.gif";
var aruon=new Image();
aruon.src = "../../images/nav/xgtriup1.gif";
}

function switchimage(num)
{ if (document.images)
   {  if (num == 1) document.images.arleft.src    = arlon.src;
      if (num == 2) document.images.arleft.src    = arloff.src;
      if (num == 3) document.images.arright.src = arron.src;
      if (num == 4) document.images.arright.src = arroff.src;
      if (num == 5) document.images.arup.src      = aruon.src;
      if (num == 6) document.images.arup.src      = aruoff.src;
    }
}

var wndw = "" 

function new03window(fname, wname, ht, wd) 
{   var attrib= "HEIGHT="+ht+" WIDTH="+wd+" scrollbars=1,resizable";
    wndw = window.open(fname, wname, attrib) 
    wndw.window.focus();
}


/******** the next e functions are needed for the common menu to drift under all browsers, including NT6
This replaces drift.js **************/

function setVariables(fobject, fLRRelativeLoc, fLRvalue, fTBRelativeLoc, fTBvalue)
{	if (navigator.appName == "Netscape") 
	{ v=".top=";
	  h=".left=";
	  dS="document.";
	  sD="";
	  y="window.pageYOffset";
	  x="window.pageXOffset";
	  iW="window.innerWidth";
	  iH="window.innerHeight"
	}
	else 
	{ h=".pixelLeft=";
	  v=".pixelTop=";
	  dS="";
	  sD=".style";
	  y="document.body.scrollTop";
	  x="document.body.scrollLeft";
	  iW="document.body.clientWidth";
	  iH="document.body.clientHeight"	
	}
	object = fobject;

flrr = fLRRelativeLoc;
flrv = fLRvalue;
ftbr = fTBRelativeLoc;
ftbv = fTBvalue;
	checkLocationA()
}	/****************** setVariables ***********************/

movex=0, movey=0, xdiff=0, ydiff=0, ystart=0, xstart=0
function checkLocation()
{
	if (flrr)
		innerX=eval(iW) - fLRvalue // place to the right
	else innerX = flrv; // controls the horizontal from the left side of the page

	if (ftbr)
		innerY=eval(iH) - fTBvalue; // place at the bottom
	else innerY = ftbv // controls the vertical from the top of the page
	if (document.layers)
	{ innerY-=10;
	  innerX-=10
	}	
	yy=eval(y);
	xx=eval(x);
	ydiff=ystart-yy;
	xdiff=xstart-xx;
	if ((ydiff<(-1))||(ydiff>(1))) movey=Math.round(ydiff/10),ystart-=movey
	if ((xdiff<(-1))||(xdiff>(1))) movex=Math.round(xdiff/10),xstart-=movex

	N = (document.layers)?1:0
	V = (N) ? 4:5
	if (V==4)
	{ eval(dS+object+sD+v+(ystart+innerY));
	  eval(dS+object+sD+h+(xstart+innerX));
					//eval(dS + objectX + sD + v + y);
	}
	else
	{ object = document.getElementById('container');		// ('container')
	  object.style.top=ystart+innerY-30
	  object.style.left=xstart+innerX-30
	}

	setTimeout("checkLocation()",10)
}	/*********************** checkLocation ********************/

function checkLocationA()
{	ystart=eval(y);
	xstart=eval(x);
}	/*********************** checkLocationA ******************/

