var jseyeso=document.getElementById("jseyeslayer");var jseye1=document.getElementById("jseye1");browsername=navigator.appName;if(browsername.indexOf("Netscape")!=-1)
{browsername="NS";}
else
{if(browsername.indexOf("Microsoft")!=-1)
{browsername="MSIE";}}
if(browsername=="NS")
{document.captureEvents(Event.MOUSEMOVE);document.onmousemove=function jseyesmousemoveNS(e){jseyesmove(e.pageX-findPosX("jseye1"),e.pageY-findPosY("jseye1"));};}
else if(browsername=="MSIE")
{document.onmousemove=function jseyesmousemoveIE(){jseyesmove(event.clientX-findPosX("jseye1")+document.body.scrollLeft,event.clientY-findPosY("jseye1")+document.body.scrollTop);};}
function eyemove(x2,y2,a,b){cont1=7;const2=10000;var tanteeta,opp,adj;var fx,fy;if(jseyeso&&jseye1&&jseyeso.style){if((x2>a)&&(y2>b))
{tanteeta=Math.atan((y2-b)/(x2-a));opp=Math.round(Math.sin(tanteeta)*cont1*const2)/const2;adj=Math.round(Math.cos(tanteeta)*cont1*const2)/const2;fx=a+adj;fy=b+opp;if((x2<fx)&&(y2<fy))
{fx=x2;fy=y2;}}
if((x2>a)&&(y2<b))
{tanteeta=Math.atan((b-y2)/(x2-a));opp=Math.round(Math.sin(tanteeta)*cont1*const2)/const2;adj=Math.round(Math.cos(tanteeta)*cont1*const2)/const2;fx=a+adj;fy=b-opp;if((x2<fx)&&(y2>fy))
{fx=x2;fy=y2;}}
if((x2<a)&&(y2<b))
{tanteeta=Math.atan((b-y2)/(a-x2));opp=Math.round(Math.sin(tanteeta)*cont1*const2)/const2;adj=Math.round(Math.cos(tanteeta)*cont1*const2)/const2;fx=a-adj;fy=b-opp;if((x2>fx)&&(y2>fy))
{fx=x2;fy=y2;}}
if((x2<a)&&(y2>b))
{tanteeta=Math.atan((y2-b)/(a-x2));opp=Math.round(Math.sin(tanteeta)*cont1*const2)/const2;adj=Math.round(Math.cos(tanteeta)*cont1*const2)/const2;fx=a-adj;fy=b+opp;if((x2>fx)&&(y2<fy))
{fx=x2;fy=y2;}}
var xx=new Array();xx[0]=fx;xx[1]=fy;return xx;}}
function jseyesmove(x2,y2){d=eyemove(x2,y2,0,0);jseye1.style.left=d[0]+74+"px";jseye1.style.top=d[1]+69+"px";}
function findPosX(objName)
{var curleft=0;var obj=document.getElementById(objName);if(obj.offsetParent)
while(1)
{curleft+=obj.offsetLeft;if(!obj.offsetParent)
break;obj=obj.offsetParent;}
else if(obj.x)
curleft+=obj.x;return curleft;}
function findPosY(objName)
{var curtop=0;var obj=document.getElementById(objName);if(obj.offsetParent)
while(1)
{curtop+=obj.offsetTop;if(!obj.offsetParent)
break;obj=obj.offsetParent;}
else if(obj.y)
curtop+=obj.y;return curtop;}