
iens6=document.all||document.getElementById
ns4=document.layers
var thename;var theobj;var thetext;var winHeight=18;var winWidth=150;var boxPosition;var headerColor;var tableColor;var timerID;var seconds=0;var x=0;var y=0;var offsetx=2;var offsety=2;if(ns4)
{document.captureEvents(Event.MOUSEMOVE)}
document.onmousemove=getXY;function buildText(value,tcolor,bcolor){text="<table width='"+(winWidth-4)+"' height='"+(winHeight-4)+"' border='0' bgcolor='"+tableColor+"' cellspacing='0' cellpadding=1>"
text+="<tr><td width='"+(winWidth-4)+"' height='20' align='center' valign='top' bgcolor='"+headerColor+"'>"
text+="<font face='arial,helvetica' color='"+tcolor+"' SIZE='-1'><nobr>"+titleArray[value]+"</nobr></font>"
text+="</td></tr>"
text+="<tr><td width='"+winWidth+"' align='left' valign='top'>"
text+="<font face='verdana,helvetica' color='"+bcolor+"' SIZE='-2'><nobr>"+linkArray[value]+"</nobr></font>"
text+="</td></tr></table>"
alert(text);return text}
function buildPopUpElement(stateText)
{element="<span class=\"statePopup\"><nobr>"+stateText+"</nobr></span>";return element;}
function setObj(boxpos,stateText)
{clearTimeout(timerID)
boxPosition=boxpos
popupElement=buildPopUpElement(stateText);if(boxPosition=="bottomR"){x=x+offsetx
y=y+offsety}
if(boxPosition=="bottomL"){x=x-(offsetx+2)-winWidth
y=y-offsety}
if(boxPosition=='topR')
{x=x+offsetx;y=y+offsety-winHeight;}
if(boxPosition=="topL"){x=x-(offsetx+2)-winWidth
y=y+offsety-winHeight}
if(iens6){thename="viewer"
theobj=(document.getElementById?document.getElementById(thename):document.all.thename);theobj.style.width=winWidth+'px'
theobj.style.height=winHeight+'px'
theobj.style.left=x+'px';theobj.style.top=y+'px';if(iens6&&document.all){theobj.innerHTML=""
theobj.innerHTML=popupElement;}
if(iens6&&!document.all){theobj.innerHTML=""
theobj.innerHTML=popupElement;}}
if(ns4){thename="nsviewer"
theobj=eval("document."+thename)
theobj.left=x
theobj.top=y
theobj.width=winWidth
theobj.clip.width=winWidth
theobj.height=winHeight
theobj.clip.height=winHeight
theobj.document.write(popupElement);theobj.document.close()}
viewIt()}
function viewIt(){if(iens6){theobj.style.visibility="visible"}
if(ns4){theobj.visibility="visible"}}
function stopIt(){if(iens6){theobj.innerHTML=""
theobj.style.visibility="hidden"}
if(ns4){theobj.document.write("")
theobj.document.close()
theobj.visibility="hidden"}}
function timer(sec){seconds=parseInt(sec)
if(seconds>0){seconds--
timerID=setTimeout("timer(seconds)",1000)}else{stopIt()}}
function getXY(e){x=0;y=0;if(ns4)
{x=e.pageX;y=e.pageY;}
if(iens6&&document.all)
{x=document.documentElement.scrollLeft+event.x;y=document.documentElement.scrollTop+event.y;}
if(iens6&&!document.all)
{x=e.pageX;y=e.pageY;}}
if(iens6)
{document.write('<div id="viewer" style="width: 0; height: 0;"></div>');}
if(ns4)
{hideobj=eval("document.nsviewer")
hideobj.visibility="hidden"}