if (top != self && document.referrer.indexOf( 'google' ) == -1 && document.referrer.indexOf( 'yahoo' ) == -1 && document.referrer.indexOf( 'msn' ) == -1 && document.referrer.indexOf( 'alice' ) == -1)
	{
	top.location.href = "https://www.gommonauti.it/";
	}

var PreloadFlag = false;
var expDays = 90;
var exp = new Date(); 
var tmp = '';
var tmp_counter = 0;
var tmp_open = 0;
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function SetCookie(name, value) 
{
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}

function getCookieVal(offset) 
{
var endstr = document.cookie.indexOf(";",offset);
if (endstr == -1)
{
endstr = document.cookie.length;
}
return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie(name) 
{
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) 
{
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal(j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;
} 
return null;
}

function ShowHide(id1, id2, id3) 
{
var res = expMenu(id1);
if (id2 != '') expMenu(id2);
if (id3 != '') SetCookie(id3, res, exp);
}

function expMenu(id) 
{
var itm = null;
if (document.getElementById) 
{
itm = document.getElementById(id);
}
else if (document.all)
{
itm = document.all[id];
} 
else if (document.layers)
{
itm = document.layers[id];
}
if (!itm) 
{
// do nothing
}
else if (itm.style) 
{
if (itm.style.display == "none")
{ 
itm.style.display = ""; 
return 1;
}
else
{
itm.style.display = "none"; 
return 2;
}
}
else 
{
itm.visibility = "show"; 
return 1;
}
}


function hide_com(id) 
{
var itm = null;
if (document.getElementById) 
{
itm = document.getElementById(id);
}
else if (document.all)
{
itm = document.all[id];
} 
else if (document.layers)
{
itm = document.layers[id];
}
if (!itm) 
{
// do nothing
}
else if (itm.style) 
{
if (itm.style.display == "none")
{ 
itm.style.display = ""; 
}
else
{
itm.style.display = "none"; 
}
}
else 
{
itm.visibility = "show"; 
}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}


////////////////////////////////////////////////////////////////////

var posx;var posy;
function getMouse(e)
	{
	posx=0;posy=0;
	var ev=(!e)?window.event:e;//Moz:IE
	if (ev.pageX){posx=ev.pageX;posy=ev.pageY}//Mozilla or compatible
	else if(ev.clientX){posx=ev.clientX;posy=ev.clientY}//IE or compatible
	else{return false}//old browsers
	}


function showtt(id){
	var nomediv = "tt"+id;
	document.getElementById(nomediv).style.left = document.body.scrollLeft + posx  + "px";
	document.getElementById(nomediv).style.top =  document.body.scrollTop +  posy  + "px";
	MM_showHideLayers(nomediv,'','show');
}
function hidett(id){
	nomediv = "tt"+id;
	MM_showHideLayers(nomediv,'','hide');
}

function MM_findObj(n, d) { //v4.01
  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&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}


var DH = 0;var an = 0;var al = 0;var ai = 0;if (document.getElementById) {ai = 1; DH = 1;}else {if (document.all) {al = 1; DH = 1;} else { browserVersion = parseInt(navigator.appVersion); if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {an = 1; DH = 1;}}} function fd(oi, wS) {if (ai) return wS ? document.getElementById(oi).style:document.getElementById(oi); if (al) return wS ? document.all[oi].style: document.all[oi]; if (an) return document.layers[oi];}
function pw() {return window.innerWidth != null? window.innerWidth: document.body.clientWidth != null? document.body.clientWidth:null;}
function mouseX(evt) {if (evt.pageX) return evt.pageX; else if (evt.clientX)return evt.clientX + (document.documentElement.scrollLeft ?  document.documentElement.scrollLeft : document.body.scrollLeft); else return null;}
function mouseY(evt) {if (evt.pageY) return evt.pageY; else if (evt.clientY)return evt.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop); else return null;}
function popUp(evt,oi) {if (DH) {var wp = pw(); ds = fd(oi,1); dm = fd(oi,0); st = ds.visibility; if (dm.offsetWidth) ew = dm.offsetWidth; else if (dm.clip.width) ew = dm.clip.width; if (st == "visible" || st == "show") { ds.visibility = "hidden"; } else {tv = mouseY(evt) + 20; lv = mouseX(evt) - (ew/4); if (lv < 2) lv = 2; else if (lv + ew > wp) lv -= ew/2; if (!an) {lv += 'px';tv += 'px';} ds.left = lv; ds.top = tv; ds.visibility = "visible";}}}


function radio_gc()
	{
	MM_openBrWindow('radio_gc.php','Radio_GC','width=640,height=145,titlebar=0,status=0,directories=0');
   }