var ns4=document.layers?1:0;var ie=document.all?1:0;var ns6=document.getElementById&&!document.all?1:0;function sliderdiv(divobj)
{this.divobj=divobj;this.divobj.style.position="absolute";this.divobj.style.zindex=5;this.offsetleft=this.divobj.offsetLeft;this.offsettop=this.divobj.offsetTop;}
sliderdiv.prototype.makestatic=function()
{this.applystyle();setTimeout(function(){objsd.makestatic();},0);}
sliderdiv.prototype.applystyle=function()
{if (ie){this.divobj.style.pixelTop=document.documentElement.scrollTop+this.offsettop;this.divobj.style.pixelLeft=document.documentElement.scrollLeft+this.offsetleft;}
else if (ns6){this.divobj.style.top=window.pageYOffset+offsettop;}
}
function rotatediv(divobj,direction)
{this.divobj=divobj;this.direction=direction;this.delaytime=10;this.shift=1;this.winv=1;this.hinv=1;if (this.direction==1)
{this.divobj.style.left=0;this.divobj.style.top=200;}
else  if (this.direction==2)
{this.divobj.style.left=500;this.divobj.style.top=0;}
this.left=0;this.top=0;this.cheight=(document.body.clientHeight-this.divobj.height);this.cwidth=(document.body.clientWidth-this.divobj.width);this.divobj.style.position="absolute";this.divobj.style.zIndex=25;}
rotatediv.prototype.loopfunc=function()
{this.reloc1();setTimeout(function(){objrd.loopfunc()},objrd.delaytime);}
rotatediv.prototype.reloc1=function()
{if (this.direction==1)
{if (ie)
{if ((this.left+(this.shift*this.winv))>this.cwidth)
this.winv=-1;else  if ((this.left+(this.shift*this.winv))<0)
this.winv=1;this.left= (this.left+(this.shift*this.winv));this.divobj.style.left=this.left;}
}
else if (this.direction==2)
{if (ie)
{if ((this.top+(this.shift*this.hinv))>this.cheight)
this.hinv=-1;else  if ((this.top+(this.shift*this.hinv))<0)
this.hinv=1;this.top= (this.top+(this.shift*this.hinv));this.divobj.style.top=this.top;}
}
else if (this.direction==3)
{if (ie)
{if ((this.left+(this.shift*this.winv))>this.cwidth)
this.winv=-1;else  if ((this.left+(this.shift*this.winv))<0)
this.winv=1;this.left= (this.left+(this.shift*this.winv));if ((this.top+(this.shift*this.hinv))>this.cheight)
this.hinv=-1;else  if ((this.top+(this.shift*this.hinv))<0)
this.hinv=1;this.top= (this.top+(this.shift*this.hinv));this.divobj.style.left=this.left;this.divobj.style.top=this.top;}  
}
}


