var isDOM1 = (document.getElementById ? true : false); 
var isIE41 = ((document.all && !isDOM1) ? true : false);
var isNS141 = (document.layers ? true : false);
var isNS1 = navigator.appName == "Netscape";

function getRef1(id) {
 if (isDOM1) return document.getElementById(id);
 if (isIE41) return document.all[id];
 if (isNS141) return document.layers[id];
}
function moveRightEdge1() {
 var yMenuFrom1, yMenuTo1, yOffset1, timeoutNextCheck1;
 if (isDOM1) {
  yMenuFrom1   = parseInt (divFloat1.style.top, 0);
  yMenuTo1     = (isNS1 ? window.pageyOffset1 : document.body.scrollTop) + 150;
 }
 timeoutNextCheck1 = 500;
 if (yMenuFrom1 != yMenuTo1) {
  yOffset1 = Math.ceil(Math.abs(yMenuTo1 - yMenuFrom1) / 20);
  if (yMenuTo1 < yMenuFrom1)
   yOffset1 = -yOffset1;
  if (isNS141)
   divFloat1.top += yOffset1;
  else if (isDOM1)
   divFloat1.style.top = parseInt (divFloat1.style.top, 0) + yOffset1;
   timeoutNextCheck1 = 10;
 }
 setTimeout ('moveRightEdge1()', timeoutNextCheck1);  
}

var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
 if (isDOM) return document.getElementById(id);
 if (isIE4) return document.all[id];
 if (isNS4) return document.layers[id];
}
function moveRightEdge() {
 var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
 if (isDOM) {
  yMenuFrom   = parseInt (divFloat.style.top, 0);
  yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 150;
 }
 timeoutNextCheck = 500;
 if (yMenuFrom != yMenuTo) {
  yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
  if (yMenuTo < yMenuFrom)
   yOffset = -yOffset;
  if (isNS4)
   divFloat.top += yOffset;
  else if (isDOM)
   divFloat.style.top = parseInt (divFloat.style.top, 0) + yOffset;
   timeoutNextCheck = 10;
 }
 setTimeout ('moveRightEdge()', timeoutNextCheck);  
}


if (isDOM) {
 var divFloat = getRef('divFloat');
  divFloat.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 190;
  divFloat.style.visibility = "visible";
  moveRightEdge();
}

if (isDOM1) {
 var divFloat1 = getRef1('divFloat1');
  divFloat1.style.top = (isNS1 ? window.pageyOffset1 : document.body.scrollTop) + 190;
  divFloat1.style.visibility = "visible";
  moveRightEdge1();
}

