var destTop, destLeft, curTop, curLeft, stepNo, stepMax; function go (p) { if (p == '1') window.open('/skidoo/index.php'); /*if (!stepNo) moveSkidooBanner();*/ } function getClientHeight() { return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight; } function getClientWidth() { return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth; } function getOffsetHeight(layer) { try { var olayer = document.getElementById(layer); var oheight = olayer.offsetTop; while (olayer.tagName!="BODY") {oheight += olayer.offsetTop; olayer = olayer.offsetParent; } } catch(e) { } return oheight; } /* var showSkidooBanner = function () { var obj; var eDIV = document.createElement("div"); eDIV.setAttribute("id","skidoo"); try { obj = document.createElement(''); obj.setAttribute("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"); var p_m = document.createElement('param'); p_m.setAttribute('name','movie'); p_m.setAttribute('value','skidoo/skidoo.swf'); p_m.setAttribute('allowScriptAccess','sameDomain'); p_m.setAttribute('allowFullScreen','false'); obj.appendChild(p_m); } catch (e) { obj = document.createElement('object'); obj.setAttribute('type','application/x-shockwave-flash'); obj.setAttribute('data','skidoo/skidoo.swf'); obj.setAttribute('allowScriptAccess','sameDomain'); obj.setAttribute('allowFullScreen','false'); } obj.setAttribute('width',438); obj.setAttribute('height',284); obj.setAttribute('id','skidooobj'); obj.setAttribute('align', 'middle'); eDIV.appendChild(obj); stepNo = 0; stepMax = 2; document.getElementById("LeftColumn").appendChild(eDIV); document.getElementById("skidoo").style.top = (curTop = (getClientHeight()-284)/2) +'px'; document.getElementById("skidoo").style.left = (curLeft = (getClientWidth()-438)/2) +'px'; document.getElementById("skidoo").style.height = '284px'; document.getElementById("skidoo").style.width = '438px'; try { document.getElementById("skidoo").style.setExpression("top","eval((getClientHeight()-284)/2+document.documentElement.scrollTop) + 'px'"); document.getElementById("skidoo").style.position = "absolute"; } catch(e) { document.getElementById("skidoo").style.position = "fixed"; } document.getElementById("skidoo").style.zIndex = "9000"; document.getElementById("skidoo").style.visibility = "visible"; d//estTop = getOffsetHeight("LeftColumn")+33; destLeft = document.getElementById("MainBlock").offsetLeft+ document.getElementById("Container").offsetLeft ; //window.setTimeout(moveSkidooBanner, 5000); } var moveSkidooBanner = function () { if (stepNo <= stepMax) { if (!stepNo) { document.getElementById("skidoo").style.position = "absolute"; try {document.getElementById("skidoo").style.removeExpression("top");} catch(e) {} //curTop = document.getElementById("skidoo").style.top; curTop = curTop.replace(/px/i,''); //curLeft = document.getElementById("skidoo").style.left; curLeft = curLeft.replace(/px/i,''); } document.getElementById("skidoo").style.top = (curTop + (destTop-curTop)/stepMax*stepNo) +'px'; document.getElementById("skidoo").style.left = (curLeft + (destLeft-curLeft)/stepMax*stepNo) +'px'; document.getElementById("skidoo").style.width = 438-219/stepMax*stepNo +'px'; document.getElementById("skidoo").style.height = 284-142/stepMax*stepNo +'px'; document.getElementById("skidooobj").style.width = 438-219/stepMax*stepNo +'px'; document.getElementById("skidooobj").style.height = 284-142/stepMax*stepNo +'px'; window.setTimeout(moveSkidooBanner, 20); stepNo++; } } showSkidooBanner(); */