function bookmarkit(){ window.external.addFavorite('http://www.ble.pl','Darmowe Aliasy BLE.pl') } function pop(url, h, w) { var winl = (screen.width-w)/2; var wint = (screen.height-h)/2; newwindow=window.open(url, 'name', 'height='+h+',width='+w+',left='+winl+',top='+wint+',screenX='+winl+',screeny='+wint+''); if (window.focus) { newwindow.focus() } return false; } function findObj(n, d) { var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d = parent.frames[n.substring(p+1)].document; n=n.substring(0,p); } if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&id.layers.length;i++) { x = findObj(n,d.layers[i].document); } if(!x && document.getElementById) x=document.getElementById(n); return x; } function placeAds() { var c = findObj('adv'); if (!c) return false; if (c.style) c = c.style; if (window.innerHeight) { ih = window.innerHeight; iw = window.innerWidth; sl = window.pageXOffset; st = window.pageYOffset; if (window.opera) of = 0; else of = 16; } else if (document.documentElement && document.documentElement.clientHeight) { ih = document.documentElement.clientHeight; iw = document.documentElement.clientWidth; sl = document.documentElement.scrollLeft; st = document.documentElement.scrollTop; of = 0; } else if (document.body) { ih = document.body.clientHeight; iw = document.body.clientWidth; sl = document.body.scrollLeft; st = document.body.scrollTop; of = 0; } ll = 0 + sl; lt = ih + st -36 -of; if (c.pixelLeft) c.pixelLeft = ll; else if (window.opera) c.left = ll; else c.left = ll + 'px'; if (c.pixelTop) c.pixelTop = lt; else if (window.opera) c.top = lt; else c.top = lt + 'px'; c.visibility = _visible_bottom; } function _bottom(what) { var c = findObj('adv'); if (!c) return false; if (c.style) c = c.style; switch(what) { case 'close': _visible_bottom = 'hidden'; placeAds(); window.clearInterval(_timerid_bottom); break; case 'open': _visible_bottom = 'visible'; placeAds(); _timerid_bottom = window.setInterval('placeAds()', 1); break; } } var _timerid_bottom; var _visible_bottom;