function ReposItIE(){
if (document.all){
//staticbanner.style.left = parseInt(document.body.scrollLeft)+
// parseInt(document.body.clientWidth)-205;
if ((parseInt(document.body.scrollLeft) + parseInt(document.body.clientWidth)) > 770){
staticbanner.style.left = parseInt(document.body.scrollLeft)+
parseInt(document.body.clientWidth)-205;
}else{
staticbanner.style.left =770-205;
}
if (document.body.scrollTop < 100) {
staticbanner.style.top = 100;
}else{
staticbanner.style.top = document.body.scrollTop;
}
//staticbanner.style.top = 20;
}
}
function positionit()
{
var check=0;
var newX=0;
var clientWidth=0;
var scrollLeft=0;
var scrollTop=0;
var clientHeight=0;
if(lNS4==true)
{
clientWidth=parseInt(window.innerWidth);
clientHeight=parseInt(window.innerHeight);
scrollLeft=parseInt(window.pageXOffset)-44;
scrollTop=parseInt(window.pageYOffset);
} else {
if(lNS5==true)
{
clientWidth=parseInt(window.innerWidth);
clientHeight=parseInt(window.innerHeight);
scrollLeft=parseInt(window.pageXOffset)-14;
scrollTop=parseInt(window.pageYOffset);
} else {
clientWidth=parseInt(document.body.clientWidth)
scrollLeft=parseInt(document.body.scrollLeft)
scrollTop=parseInt(document.body.scrollTop);
}
}
// Define the left positioning of the slideshow window
if ((scrollLeft + clientWidth) > 770)
{
newX=(scrollLeft+clientWidth)-293;
}else{
if(lNS5==true){
newX= clientWidth-205;
if(newX<390) {
newX=390;
} } else {
newX= clientWidth-205;
if(newX<394) newX=394;
}
}
setX('staticbanner',newX);
// Define the top positioning of the slideshow window
if (scrollTop < 205) {
setY('staticbanner',5)
}else{
//alert(scrollTop)
//scrollTop=scrollTop-175;
setY('staticbanner',scrollTop-150);
}
}
function posNs4()
{
if ((pageXOffset+window.innerWidth)> 770)
{
document.staticbanner.left= pageXOffset+window.innerWidth-259;
}else{
document.staticbanner.left= 770-259;
}
if (pageYOffset < 100) {
document.staticbanner.top = 100;
}else{
document.staticbanner.top = pageYOffset;
}
}
if(lNS4==false) setInterval("positionit()",250);
