// IR.JS

var dT=true;   
var cR=false;
var cT=true;
var w_y, w_x, nX, bj, bv;
var iH=false;
var iL=false;
var iP=0;
var iD=0;
var NS4 = (navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? true : false;
var IE4 = (document.all && !document.getElementById)? true : false;
var IE5 = (document.getElementById && document.all)? true : false;
var NS6 = (document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var W3C = (document.getElementById)? true : false;





function Hw(){
w_y=(NS4||NS6)? window.innerHeight : (IE5||IE4)? document.body.clientHeight : 0;
w_x=(NS4||NS6)? window.innerWidth : (IE5||IE4)? document.body.clientWidth : 0;
}
function Bw(){
if(NS4)bv=(nX.document.width)? nX.document.width : nX.clip.width;
if(IE5||IE4)bv=(nX.style.pixelWidth)? nX.style.pixelWidth : nX.offsetWidth;
if(NS6)bv=(nX.style.width)? parseInt(nX.style.width) : parseInt(nX.offsetWidth);
}
function Bh(){
if(NS4)bj=(nX.document.height)? nX.document.height : nX.clip.height;
if(IE4||IE5)bj=(nX.style.pixelHeight)? nX.style.pixelHeight : nX.offsetHeight;
if(NS6)bj=parseInt(nX.offsetHeight);
}
function Tx(x,y){
if(NS4)nX.moveTo(x,y);
if(W3C||IE4){
nX.style.left=x+'px';
nX.style.top=y+'px';
}}
function Sy(){
if(NS4||NS6)return window.pageYOffset;
if(IE5||IE4)return document.body.scrollTop;
}
function Sx(){
if(NS4||NS6)return window.pageXOffset;
if(IE5||IE4)return document.body.scrollLeft;
}
function Sd(text){
if(NS4){
nX.document.open();
nX.document.write(text);
nX.document.close();
}
if(W3C||IE4)nX.innerHTML=text;
}
function St(text){
if(iL){
if(text!=0){
iH=true;
if(NS4)text=((cT)?'<center>':'')+text+((cT)?'</center>':'');
Sd(text);
Bh();
if((W3C || IE4) && dT){
iP=0;
Oy();
}}else{
if(NS4)nX.visibility="hide";
if(IE4||W3C){
if(dT)clearTimeout(iD);
nX.style.visibility="hidden";
}
Sd('');
iH=false;
}}}
function Oy(){
if(iP<=100){
iP+=15;
if(IE4 || IE5)nX.style.filter="alpha(opacity="+iP+")";
if(NS6)nX.style.MozOpacity=iP/100;
iD=setTimeout('Oy()', 50);
}}
function Ro(evt){
if(iL && iH){
margin=(IE4||IE5)? 1 : 23;
if(NS6)if(document.height+27-window.innerHeight<0)margin=15;
if(NS4)if(document.height-window.innerHeight<0)margin=10;
if (NS4){
mx=evt.pageX
my=evt.pageY
}
else if (NS6){
mx=evt.clientX
my=evt.clientY
}
else if (IE5){
mx=event.clientX
my=event.clientY
}
else if (IE4){
mx=0
my=0
}
if(NS4){
mx-=Sx();
my-=Sy();
}
xoff=(cR)? mx-bv/2 : mx+5;
yoff=(my+bj+30-Sy()+margin>=w_y)? -15-bj: 30;
Tx( Math.min(w_x-bv-margin , Math.max(2,xoff))+Sx() , my+yoff+Sy());
if(NS4)nX.visibility="show";
if(W3C||IE4)nX.style.visibility="visible";
}}
if(NS4)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=Ro;

function Starta(){
nX=(NS4)? document.layers['nX'] : (IE4)? document.all['nX'] : (W3C)? document.getElementById('nX') : null;
Bw();
Bh();
Hw();
iL=true;
if((W3C || IE4) && cT)nX.style.textAlign="center";
if(W3C)nX.style.padding='4px';
if(IE4 || IE5 && dT)nX.style.filter="alpha(opacity=0)";
}

window.onresize=Hw;
