logoW = 50;                         // logo's pixels width
logoH = 40;                         // logo's pixels height
logoX = 100;                        // percentage to right
logoY = 100;                        // percentage to bottom
logoRefresh = 50;                   // logo's refresh rate in milliseconds

// setup a reference point
if (!document.all) {
 document.all = document;
}
if (!document.all.bcastLogo.style) {
 document.all.bcastLogo.style = document.all.bcastLogo;
}

bLogo = document.all.bcastLogo.style;
bLogo.width = logoW;
bLogo.height = logoH;
clientWIN = window.innerHeight;     // Client WIN flag
 
function setCoor() {
 sBarW = 0;                         // scrollbar width compensation
 sBarH = 0;
 if (clientWIN) {
  if (document.height > innerHeight) {
   sBarW = 20;
  }
  if (document.width > innerWidth) {
   sBarH = 20;
  }
 }
 else {
  innerWidth = document.body.clientWidth;
  innerHeight = document.body.clientHeight;
 }
 posX = ((innerWidth - logoW)-sBarW) * (logoX/100);
 posY = ((innerHeight - logoH)-sBarH) * (logoY/100);
}

function bRefresh() {
 bLogo.left = posX + (clientWIN?pageXOffset:document.body.scrollLeft);
 bLogo.top = posY + (clientWIN?pageYOffset:document.body.scrollTop);
}

function logoSelf() {
 setCoor();
 window.onresize=setCoor;
 logoID = setInterval ("bRefresh()",logoRefresh);
}

window.onload=logoSelf;             // protect from Mac IE4.5
