// Drop-in content box - By Dynamic Drive
// For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
// This credit MUST stay intact for use
// Modified with cookie by Japigia.com, http://www.japigia.com

var ie=document.all ;
var dom=document.getElementById ;
var ns4=document.layers ;
var bouncelimit=32 ; 
var PosTop=150 ;
function initbox(){if (!dom&&!ie&&!ns4){return ;}cen=(ie)?document.body.clientWidth/2-205:(dom)?window.innerWidth/2-205:window.innerWidth/2-205;crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin;scroll_top=(ie)? document.body.scrollTop:window.pageYOffset;crossobj.top=scroll_top-250;crossobj.width=410;crossobj.left=cen;crossobj.visibility=(dom||ie)?"visible":"show";dropstart=setInterval("dropin()",70);}
function dropin(){scroll_top=(ie)? document.body.scrollTop:window.pageYOffset;if(parseInt(crossobj.top)<PosTop+scroll_top){crossobj.top=parseInt(crossobj.top)+40;}else{clearInterval(dropstart);bouncestart=setInterval("bouncein()",50);}}
function bouncein(){crossobj.top=parseInt(crossobj.top)-bouncelimit;if (bouncelimit<0){ bouncelimit+=8;}bouncelimit=bouncelimit*-1;if (bouncelimit==0){clearInterval(bouncestart)}}
function chiudibox(){if(window.bouncestart){clearInterval(bouncestart)}crossobj.visibility="hidden";}
function beccaCookie(name){if(document.cookie == '') {return false;}else{var firstChar, lastChar; var theBigCookie = document.cookie; firstChar = theBigCookie.indexOf(name); var NN2Hack = firstChar + name.length;if((firstChar != -1) && (theBigCookie.charAt(NN2Hack) == '=')) { firstChar += name.length + 1; lastChar = theBigCookie.indexOf(';', firstChar); if(lastChar == -1) lastChar = theBigCookie.length; return unescape(theBigCookie.substring(firstChar, lastChar));}else{return false;}}}
function doPopup(){
  var giavisto = beccaCookie('dropin');
  if (!giavisto) {
     document.cookie = 'dropin' + '=' + '1;' ;
     var info='<table width=410 bgcolor="#990000" cellpadding=4 cellspacing=0><tr><td><table bgcolor="#FFFFCC" cellspacing=0 cellpadding=5 width=410><tr><td class=art>'
     + '<H1>SalentoAntico.it si rinnova!</H1><H2 class=titoloblu>Nuova veste grafica per SalentoAntico.it<BR></H2><P><B>SalentoAntico.it</B>, il portale di <A href="javascript:newWin(\'/cgi-bin/web/load.cgi/http://www.japigia.com/\');">Japigia.com</A> si <B>rinnova completamente</B>, con una veste grafica pi&ugrave; attraente e pronta per ospitare nuovi ed innovativi servizi!</P><P><B>Buona navigazione</B>, dunque, sul nostro nuovo sito e, se avete suggerimenti, consigli, richieste, non esitate ad usare il <A href="http://www.salentoantico.it/contatto.shtml?A=MOD">modulo di contatto</A>.<BR></P>'
     + '<P align=right><a class=ln href=javascript:chiudibox();><b>Chiudi</b></a></P>'
     + '</td></tr></table></td></tr></table>';
     if(ie){document.all.dropin.innerHTML=info;document.all.dropin.left='200';}else if(ns4){document.layers['dropin'].document.open();document.layers['dropin'].document.write(info);document.layers['dropin'].document.close();}else if(dom){document.getElementById('dropin').innerHTML=info;}
     initbox();}}


