window.Libero = new Object();
window.Libero.Stash = new Object();
Libero.Stash.HF = { version: '8.2.07', cksrv: { a: 'HF8.2', b: 'turistipercaso.it' } };

// V4.2.2-301110
var ckSrvUrl="";
var ckTarget="";
var ckTo=null;
var ckFrm=null;

function frmCkSrv(frmobj,a,b,c,continueRequest) {
	if(continueRequest==false) return false;
	if(ckFrm==null) {
	  ckFrm=frmobj;
		ckSrvUrl=goCkSrv(frmobj.action,a,b,c,undefined);
		x=new Image();
		x.onload=ckGoFrm;
		x.onerror=ckGoFrm;
		x.src=ckSrvUrl;
		ckTo=window.setTimeout("ckFrm.submit();",2000);
		return false;
	} else {
	  ckFrm=null;
	  return true;
	}
}
function ckGoFrm() { if(ckFrm!=null) ckFrm.submit(); window.clearTimeout(ckTo); }

function clickServer(url,a,b,c) {
	if(url.indexOf("://")<0) return goCkSrv('http://'+url,a,b,c,null);
	return goCkSrv(url,a,b,c,null);
}
function ckSrv(lnk,a,b,c,target) {
	if(lnk.href !== undefined) {
		urlHref=lnk.href;
		if(target == null && lnk.target !== undefined && lnk.target !== "") {
			target=lnk.target;
		}
	} else urlHref=lnk;
	return goCkSrv(urlHref,a,b,c,target);
}
function goCkSrv(url,a,b,c,target) {
	ckSrvUrl=url;
	ckTarget=self;
	bse=document.getElementsByTagName("BASE");
	if(url.indexOf("://")<0) {
		if(bse[0]) {
			url=bse[0].href+url;
		} else {
			pathname = window.location.pathname;
			pathname = pathname.substring(0, pathname.lastIndexOf('/')+1 );
			if(pathname.charAt(0)=='/') url=window.location.protocol+'//'+window.location.host+'/'+url;
			else url=window.location.protocol+"//"+window.location.host+pathname+url;
		}
	}
	if(bse[0]) {
		if(target==null) {
			if(bse[0].target) {
				target=bse[0].target;
			}
		}
	}

	if (url.substring(0,7) == "http://") { url = url.substring(7); }
	else if (url.substring(0,8) == "https://") { url = url.substring(8); }
	dt=new Date();
	nloc="http://clickserver.libero.it/ck/"+dt.getTime()+"/"+encodeURI(a)+"/"+encodeURI(b)+"/"+encodeURI(c)+"/_f_/"+encodeURI(location.host+location.pathname)+"/_t_/"+url;
	if(target===undefined) return nloc;
	if(target!==null && target.toLowerCase()=='_ajax') {
		x=new Image();
		x.src=nloc;
	} else if(target!==null && target.toLowerCase()!='_top' && target.toLowerCase()!='_parent') {
		x=new Image();
		x.src=nloc;
		w=window.open(ckSrvUrl, target);
	} else {
		w=self;
		cnt=0;
		if(target!==null) {
			if(target.toLowerCase()=='_parent') {
				w=w.parent;
			} else {
				while(w.parent !== w && ++cnt<10) w=w.parent;
			}
		}
		ckTarget=w;
		x=new Image();
		x.onload=ckGo;
		x.onerror=ckGo;
		x.src=nloc;
		ckTo=window.setTimeout("ckTarget.document.location='"+ckSrvUrl+"';",2000);
	}
	return false;
}
function ckGo() { ckTarget.document.location=ckSrvUrl; window.clearTimeout(ckTo); }

function LHToggle() {
  var el =  document.getElementById('lh_other')
  var s = el.style.display;
  el.style.display = (el.style.display == "block") ? "none" : "block";
  if (window.LHTimeout) clearTimeout(window.LHTimeout);
  window.LHTimeout = 0;
  return false;
}


document.write('<style type="text/css">');
document.write('#lh_header_top { 	margin-bottom: 0px; 	width: 100%; 	background: url(http://static.turistipercaso.it/static/libero/img_top.png) repeat-x 0px -4px; 	height: 46px; 	position: relative; 	z-index: 1000; }  #lh_header_top div, #lh_header_top span { 	font-family: Arial,sans-serif; 	color: #115aa3; }  #lh_header_top #lh_area05 { 	float: left; 	padding-top: 7px; 	padding-left: 14px; 	height: 24px; 	overflow: visible; 	font: 12px Arial, sans-serif; 	color: #FFF; 	position: relative; }  #lh_header_top a, #lh_header_top a:visited, #lh_header_top a:active { 	background-color: transparent; 	color: #FFFFFF; 	font-family: Arial,sans-serif; 	font-weight: normal; 	text-decoration: none; }  #lh_header_top a.lh_menu { 	float: left; 	display: block; 	padding: 0px 9px; 	border-right: 1px solid #a6b0c3; 	height: 16px; 	font: normal 13px Arial,sans-serif; 	line-height: 16px; } #lh_header_top a.lh_on { font-weight: bold !important; } #lh_header_top a.lh_expand { 	padding-right: 22px !important; 	background: url(http://static.turistipercaso.it/static/libero/expand.png) no-repeat center right; }  #lh_header_top a:hover { 	text-decoration: underline; }  #lh_header_top .lh_popup { 	padding: 0px 0px 0px 0px; 	background-color: #ffffff; 	border: 1px solid #dddddd; 	border-top: 0px; 	text-align: left; 	position: absolute; 	z-index: 100; 	top: 28px; 	right: -51px; }  #lh_header_top .lh_popup a { 	display: block; 	background-color: #0f377f; 	color: #FFFFFF; 	border-bottom: 1px solid #2a5290; 	width: 100px; 	padding: 3px 0px 3px 8px; 	text-align: left; 	text-decoration: none; } #lh_header_top .lh_popup a:hover { text-decoration: underline; }  #lh_header_top .lh_logo_small { 	background: url(http://static.turistipercaso.it/static/libero/img_hf.gif) no-repeat scroll -137px -87px transparent; 	width:59px; 	height: 19px; 	padding-right: 10px; 	margin-top: -2px; 	margin-left: 3px; 	display: block; 	float: left; }  #lh_area_edm { clear: both; text-align: right; width: 100%; height: 16px; } #lh_area_edm img { margin-right: 15px; }  ');
document.write('</style>');

function ShowLiberoBar() {
  document.write('<div id="lh_header_top">   <div style="float: left" id="lh_area05"> 	  <a class="lh_logo_small" rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_libero\',null);" href="http://www.libero.it/"></a> 	  <a class="lh_menu" rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_mail\',null);" href="http://liberomail.libero.it/" style="border-left: 1px solid #a6b0c3;">Mail</a> 	  <a class="lh_menu" rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_news\',null);" href="http://notizie.libero.it/">News</a> 	  <a class="lh_menu" rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_share\',null);" href="http://share.libero.it/">Share</a> 	  <div class="lh_popup" id="lh_other" style="display: none;" onmouseout="if (window.LHTimeout) { window.clearTimeout(window.LHTimeout); } window.LHTimeout = setTimeout(\'document.getElementById(\\\'lh_other\\\').style.display=\\\'none\\\'\',2000);" onmouseover="if (window.LHTimeout) { window.clearTimeout(window.LHTimeout); } window.LHTimeout=0;"> 		<a rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_mobile\',null);" href="http://liberomobile.libero.it/">Mobile</a> 		<a rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_adsl\',null);" href="http://internet.libero.it/?utm_source=News&amp;utm_medium=Header&amp;utm_campaign=ADSL%20e%20Internet">Adsl</a> 		<a rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_community\',null);" href="http://digiland.libero.it/">Community</a> 		<a rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_blog\',null);" href="http://blog.libero.it/">Blog</a> 		<a rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_video\',null);" href="http://video.libero.it/">Video</a> 		<a rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_foto\',null);" href="http://foto.libero.it/">Foto</a> 		<a rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_chat\',null);" href="http://digiland.libero.it/chat.php">Chat</a> 		<a rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_magazine\',null);" href="http://magazine.libero.it/">Magazine</a> 		<a rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_sport\',null);" href="http://sport.libero.it/">Sport</a> 		<a rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_donna\',null);" href="http://donna.libero.it/">Donna</a> 		<a rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_viaggi\',null);" href="http://viaggi.libero.it/">Viaggi</a> 		<a rel="nofollow" onclick="return ckSrv(this,\'HF8.2\',\'turistipercaso.it\',\'h_tutti_i_servizi\',null);" style="border-bottom: none" href="http://www.libero.it/servizi/">Tutti i servizi</a> 	  </div> 	  <a class="lh_menu lh_expand" rel="nofollow" onclick="return LHToggle();" href="http://affaritaliani.libero.it/mediatech/index.html#" style="border-right: 0px">Altro</a>   </div>   <div id="lh_area_edm"> 	<a href="http://www.masteradv.it/" rel="nofollow" target="_blank"><img src="http://static.turistipercaso.it/static/libero/edmaster.png" alt=""></a>   </div> </div>');
}

