var no='cerca con <b>nonsoloCAP</b>&nbsp;(<i>nome localit&agrave;, cap, prefisso,&nbsp;...</i>)&nbsp;[<a href="http:\x2F\x2Fblog.tuttitalia.it\x2F2008\x2F03\x2Ffunzioni-di-ricerca-di-nonsolocap.html">?</a>]';function sg(a){document.getElementById('yk').innerHTML=((a.selectedIndex==0 || a.selectedIndex==42)?no:'<b>via</b>, <b>piazza</b>,&nbsp;...');}function mv(){if(document.getElementById('_goo_').style.display=='block'){document.getElementById('q').focus();}else{document.getElementById('k').focus();}}function kh(a,b){document.cookie=a+'='+b+';path=/;domain=.tuttitalia.it;';}function dm(a){var start=document.cookie.indexOf(a+"=");var len=start+a.length+1;if((!start) &&(a !=document.cookie.substring(0, a.length))){return null;}if(start==-1){return null;}var end=document.cookie.indexOf(';', len);if(end==-1){end=document.cookie.length;}return unescape(document.cookie.substring(len, end));}function oa(a){var dw=a._from.value;if(!a._mem.checked){dw='';}kh("myemail", dw);}function wv(a){var image=new Image();image.src='http://images.tuttitalia.it/lib/it/'+a+'.gif';}function nl(a){var uc=document.getElementById("us");var gw=document.getElementById(a);uc.style.backgroundImage='url(http://images.tuttitalia.it/lib/it/'+a+'.gif)';gw.style.textDecoration="underline";gw.style.backgroundColor="#FFEAB3";return true;}function mt(a){var uc=document.getElementById("us");var gw=document.getElementById(a);uc.style.backgroundImage='url(http://images.tuttitalia.it/lib/pxt.gif)';gw.style.textDecoration="none";gw.style.backgroundColor="#FFFFFF";return true;}function uk(){if(window.external &&("AddSearchProvider" in window.external)){window.external.AddSearchProvider("http://www.tuttitalia.it/osd.xml");}else{alert("No search engine support");}}function cr(){var agt=navigator.userAgent.toLowerCase();var osd=document.getElementById('osd');if(agt.indexOf("firefox") !=-1){osd.style.display="block";osd.innerHTML=osd.innerHTML.replace(/dal tuo browser/g,"da <b>Firefox</b>");if(document.bsi){document.bsi.src="http://images.tuttitalia.it/ti/browser_ff3.gif";}}else{osd.style.display="none";}}function gt(a,b){if(a.value==b){a.value='';a.style.color='#333333';}}function oi(a,b){if(a.value.replace(/\s+/g, '')==''){a.value=b;a.style.color='#999999';}}function hs(a){window.open(a,'_blank','scrollbars=yes,menubar=no,width=760,height=540,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100');return false;}function nz(){return window.open(this.href);}function cx(a){document.getElementById(a).style.display='block';}function sq(a){document.getElementById(a).style.display='none';}function pn(a){if(a=='_goo_'){document.getElementById('_nsc_').style.display='none';}else{document.getElementById('_goo_').style.display='none';}document.getElementById(a).style.display='block';}function kt(a){pn(a);if(a=='_goo_'){document.getElementById('q').value=document.getElementById('k').value;document.getElementById('q').focus();}else{document.getElementById('k').value=document.getElementById('q').value;document.getElementById('k').focus();}kh("srch", a);}function su(){if(self.k){document.getElementById('k').value=k;}if(self.sm){document.getElementById('sm').checked=sm;}}function cl(){var cs=document.getElementById('_goo_');var sp=cs.getElementsByTagName('span');sp[0].onclick=function(){return kt('_nsc_');};cs=document.getElementById('_nsc_');sp=cs.getElementsByTagName('span');sp[0].onclick=function(){return kt('_goo_');};var sel=document.getElementById('c');sel.onchange=function(){return sg(this);};var csm=dm('srch');if(csm===null){csm='_goo_';}pn(csm);}function ji(){var cs=document.getElementById('sx');sp=cs.getElementsByTagName('span');sp[0].onclick=function(){cx('ts');return zy();};sp[1].onclick=function(){cx('ts');return cy();};cs=document.getElementById('ts');sp=cs.getElementsByTagName('span');sp[0].onclick=function(){return sq('ts');};}function vl(){if(self.k!==undefined && self.c){var _c=document.getElementById('c');for(i=0;i<_c.options.length;i++){if(_c.options[i].value==c){_c.options[i].selected=true;break;}}document.getElementById('yk').innerHTML=((_c.selectedIndex==0 || _c.selectedIndex==42)?no:'<b>via</b>, <b>piazza</b>,&nbsp;...');}else{document.getElementById('yk').innerHTML=no;}}var sw='';function uw(a){var xmlHttp=false;if(window.XMLHttpRequest){xmlHttp=new XMLHttpRequest();}else if(window.ActiveXObject){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}if(xmlHttp){xmlHttp.open("POST", "/feedback/", true);xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length", a.length);xmlHttp.setRequestHeader("Connection", "close");xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState < 4){document.getElementById('ws').innerHTML=' <span style="background-color:#D49B00;color:#ffffff">&nbsp;Invio email in corso ... &nbsp;</span>';}else if(xmlHttp.readyState==4){if(xmlHttp.status==200){x=xmlHttp.responseText;if(x==0){document.getElementById('ta').innerHTML=sw;}else if(x==1){document.getElementById('ws').innerHTML='inserisci l\'indirizzo di email';}else if(x==2){document.getElementById('ws').innerHTML='inserisci il testo del messaggio';}else if(x==3){document.getElementById('ws').innerHTML='indirizzo di email non valido';}}else{document.getElementById('ta').innerHTML='Si &egrave;&nbsp;verificato un ERRORE nell\'invio dell\'email.';}}};xmlHttp.send(a);}else{alert("Attenzione! Il tuo browser non supporta questa funzionalita'.");}}function lk(){var ue='_op=sa&_from='+encodeURI(document.getElementById("_from").value)+'&_msg='+encodeURIComponent(document.getElementById("_msg").value.substring(0, 700));sw='<form>Abbiamo ricevuto la tua segnalazione e ti daremo una risposta il prima possibile.<br /><br />Grazie per il tempo che ci hai dedicato.<span style="float:right;"><input type="button" value="Chiudi" onClick="document.getElementById(\'ta\').innerHTML=\'\';sq(\'ts\')" name="button"></span><div id="ws">&nbsp;</div></form>';uw(ue);}function zy(){document.getElementById('mm').innerHTML='<img src="http://images.tuttitalia.it/lib/pagedit.gif" width="16" height="16"> Modifica i dati di questa pagina';document.getElementById('ta').innerHTML='<form method="post" onsubmit="return false;" action="#"><b>Rif:</b> <small>'+window.location.href+'</small><br /><br />La tua email:<br /><input class="fn" name="_from" id="_from" size="50" maxlength="64" type="text" /> &nbsp;<input type="checkbox" name="_mem" id="_mem" /> <span style="font-size:90%">Ricordami su questo PC</span><br /><br />Cosa vuoi modificare o aggiungere in questa pagina?<br /><textarea class="fn" style="width:98%" name="_msg" id="_msg" rows="5" cols="55"></textarea><br /><br /><span style="float:right;"><input type="button" onclick="document.getElementById(\'ta\').innerHTML=\'\';sq(\'ts\')" value="&nbsp;Annulla&nbsp;" />&nbsp;&nbsp;<input type="button" class="jc" onclick="oa(this.form);lk();" value="&nbsp;Invia &#187;&nbsp;" /></span><div id="ws">&nbsp;</div></form>';var uname=dm('myemail');if(uname){document.getElementById('_from').value=uname;document.getElementById('_mem').checked=true;document.getElementById('_msg').focus();}else{document.getElementById('_from').focus();}}function pf(){var ue='_op=ia&_to='+encodeURI(document.getElementById("_to").value)+'&_t='+encodeURIComponent(document.title)+'&_msg='+encodeURIComponent(document.getElementById("_msg").value.substring(0, 500));sw='<form>Abbiamo inviato la tua segnalazione all\'email <b>'+document.getElementById("_to").value+'.</b><br /><br /><span style="float:right;"><input type="button" value="Chiudi" onClick="document.getElementById(\'ta\').innerHTML=\'\';sq(\'ts\')" name="button"></span><div id="ws">&nbsp;</div></form>';uw(ue);}function cy(){var cv='';if(document.getElementById('wr')){cv=document.getElementById('wr').innerHTML;}else{cv='Ti segnalo questo link perche potrebbe interessarti.';}document.getElementById('mm').innerHTML='<img src="http://images.tuttitalia.it/lib/mailout.gif" width="16" height="16"> Invia questa pagina ad un amico';document.getElementById('ta').innerHTML='<form method="post" onsubmit="return false;" action="#"><b>Rif:</b> <small>'+window.location.href+'</small><br /><br />Inserisci l\'email del tuo amico<br /><input class="fn" name="_to" id="_to" size="50" maxlength="64" type="text" /><br /><br />Testo del messaggio&nbsp;<small>(includi la tua firma)</small><br /><textarea class="fn" style="width:98%" name="_msg" id="_msg" rows="3" cols="55">'+cv+"\n"+'</textarea><br /><br /><span style="float:right;"><input type="button" onclick="document.getElementById(\'ta\').innerHTML=\'\';sq(\'ts\')" value="&nbsp;Annulla&nbsp;" />&nbsp;&nbsp;<input type="button" class="jc" onclick="pf();" value="&nbsp;Invia &#187;&nbsp;" /></span><div id="ws">&nbsp;</div></form>';document.getElementById('_to').focus();}
