function initFloatBanner() { document.write('
'); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write('
'); } initFloatBanner(); var Nav = navigator, Ag = Nav.userAgent; var bIE = (Ag.indexOf('MSIE') >= 0), bMacIE = false; var bNC = (navigator.appName == "Netscape"); var bOpera = (Ag.indexOf('Opera') >= 0); var nVer = 0, sTmp = ""; var sFloatId = ""; if (bIE) { document.getElementById("dFloatIE").style.display = ""; sFloatId = "dFloatIE"; sTmp = Ag.substring(Ag.indexOf("MSIE") + 5, Ag.length); nVer = Math.floor (sTmp.substring(0, sTmp.indexOf(";"))); if (nVer >= 4 && !document.all) nVer = 0; if (Ag.indexOf("Mac") >= 0) bMacIE = true; } else { document.getElementById("dFloatMoz").style.display = ""; sFloatId = "dFloatMoz"; } if (bNC) nVer = Math.floor (Nav.appVersion.substring (0, Nav.appVersion.indexOf (" ") ) ); bDynamic = (document.all || document.layers) ? true : false; var iStartCounter = 500; var iResetCounter = iStartCounter; nMenuYPos = 123; nYDelta = 25; nPrevScrollPos = 0; function populateFloatLayer() { if (bNC && nVer >= 4) { if (window.pageYOffset < nMenuYPos - nYDelta) nNeededPos = nMenuYPos; else nNeededPos = window.pageYOffset + nYDelta; nCurrentPos = document.getElementById(sFloatId).offsetTop; if (nNeededPos == nCurrentPos) return; nCurrentPos += Math.round ( (nNeededPos - nCurrentPos) / 4); document.getElementById(sFloatId).style.top = nCurrentPos+'px'; } else if (bIE && nVer >= 4 && !bMacIE) { if (document.body.scrollTop < nMenuYPos - nYDelta) nNeededPos = nMenuYPos; else nNeededPos = document.body.scrollTop + nYDelta; nCurrentPos = document.all[sFloatId].offsetTop; if (nNeededPos == nCurrentPos){ iResetCounter--; if (iResetCounter < 0 ) { clearInterval(iInt); iResetCounter = iStartCounter; loadFloatLayer(); } return; } nDelta = (nNeededPos - nCurrentPos)/6; if (nDelta>0 && nDelta<0.5) nCurrentPos += nNeededPos - nCurrentPos; else{ if (nDelta<0 && nDelta>=-0.5) nCurrentPos--; else nCurrentPos += Math.round(nDelta); } pnt = document.all[sFloatId].style.top = nCurrentPos; } } function loadFloatLayer() { if (bNC && nVer >= 4) iInt = setInterval("populateFloatLayer()", 20); else if (bIE && nVer >= 4 && !bMacIE) iInt = setInterval("populateFloatLayer()", 20); } loadFloatLayer();