 <!--
 
 function loadjscssfile(filename, filetype){
	 if (filetype=="js"){ //if filename is a external JavaScript file
		var fileref=document.createElement('script')
		fileref.setAttribute("type","text/javascript")
		fileref.setAttribute("src", filename)
	 }
	 else if (filetype=="css"){ //if filename is an external CSS file
		var fileref=document.createElement("link")
		fileref.setAttribute("rel", "stylesheet")
		fileref.setAttribute("type", "text/css")
		fileref.setAttribute("href", filename)
	 }
	 if (typeof fileref!="undefined")
		document.getElementsByTagName("head")[0].appendChild(fileref)
	}

 
 
//Restituisce un valore con inseriti i punti alle migliaia

var Finito = false

	function migliaia (stringanumerica)
	{
	var stringanumerica=stringanumerica.toString()
	var testa=""
	if (stringanumerica.substring(0,1)=="-")
		{testa="-"
		stringanumerica=stringanumerica.substring(1,stringanumerica.length)
		}
	if (stringanumerica>0)
		{
		contator=0
		ins=0
		for (var i = 1 ; i < stringanumerica.length-ins ; i++)
			{
				contator= ++contator
					if (contator==3)
							{
							stringanumerica=
							stringanumerica.substring(0,(stringanumerica.length-i-ins))
							+"."+
							stringanumerica.substring(stringanumerica.length-i-ins,stringanumerica.length)
							contator=0
							ins=++ins
							
							} 
			}
		}
	return testa+stringanumerica}

//Formattazione Prezzo in Euro
	function euroformat(Valore)
	{
	    	Valore=Valore+""
	    	if (Valore.substring(0,1)==",")
	    		{Valore="0"+Valore}
	    	testa=Valore.substring(0,Valore.indexOf(","))
	    		if (testa==""){return migliaia(Valore)+","+"00"}
	    	testa=migliaia(testa)
	    	coda=Valore.substring(Valore.indexOf(",")+1,Valore.length)
	    		if (coda.length==1){coda=coda+"0"}
	     	Valore=testa+","+coda
	return Valore}


 	function GetCookie(Name){
	var search = Name + "="
		if (document.cookie.length > 0) 
			{offset = document.cookie.indexOf(search);
				if (offset != -1)
					{offset += search.length;
					 end = document.cookie.indexOf(";", offset);
						if (end == -1)
							{end = document.cookie.length;
							}
					return unescape(document.cookie.substring(offset, end))
					}
			}
	}
	
	function Finestra (Indirizzo,Titolo,Dim){
	finestra= open(Indirizzo,Titolo,Dim)
	    }
	
	function AreaRis(){	
	if (GetCookie('GlobalStatus')=='login'){
			Mostra('arlogout')
			document.getElementById('Tarlogin').style.width="0px"
			}
		else {
			Mostra('arlogin')
			Mostra('arpw')
			document.getElementById('Tarlogin').style.width="74px"			
			}
	}	

	function Dimensioni (){
		if (document.body.clientWidth < 970){
			Nascondi('CorpoDx')
			Nascondi('CorpoTopDx')
			Nascondi('NavRap')
			Mostra('NavRapGiu')
			Nascondi('NavRapSu')
			Nascondi('PiuViste')
			Nascondi('Addthis')
		}
		else {
			Mostra('CorpoDx')
			Mostra('CorpoTopDx')
			Mostra('Addthis')
//				if (document.getElementById('NavRap').style.display=="none"){
			Mostra('PiuViste')
//				}
			if (document.getElementById('InfoSezione')) {
				Mostra('InfoSezione')
				Mostra2('InfoSezione')
			}
			if (document.getElementById('Music')) {
				Mostra2('Music')
			}
		}	
	} 	

	function DisplayMail(Server, Login, Display) {
		if ((Display.length == 0) || (Display.indexOf('@')+1)) {
		document.write("<A HREF=" + "'mai" + "lto:" + Login + "@" + Server + "'>" + Login + "@" + Server + "</A>"); }
		else  {
		document.write("<A HREF=" + "'mai" + "lto:" + Login + "@" + Server + "'>" + Display + "</A>"); }
	}

	function MM_preloadImages() { //v3.0
		var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	
	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	
	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_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}	

	function getById(attr_id) { return(document.all[attr_id]) }
		
	if(document.all && !document.getElementById) document.getElementById = getById
	
	function getByTagName(tag) { 
		tag = tag.toUpperCase(); 
		if(!this["lista"+tag]) { 
			this["lista"+tag] = new Array() 
				for(jtag=0,itag=0; jtag<this.all.length; jtag++) { 
				if(this.all[jtag].tagName == tag) 
				this["lista"+tag][itag++] = this.all[jtag] 
				} 
			} 
		return(this["lista"+tag]) 
	}

	if(document.all && !document.getElementsByTagName) {
		document.getElementsByTagName = getByTagName 
			for(ind=0; ind<document.all.length; ind++) {
				if(!document.all[ind].getElementsByTagName) document.all[ind].getElementsByTagName = getByTagName  
			}
	}
	
	function PosNavRap () {
	document.getElementById('NavRap').style.top=parseInt(document.getElementById('LeaderBoardTop').height)+29
	}
	
	function Nascondi(obj) {
		document.getElementById(obj).style.display="none"
	}
	
	function Mostra(obj) {
		document.getElementById(obj).style.display="block"
	}

	
	function Nascondi2(obj) {
		document.getElementById(obj).style.visibility="hidden"
	}
	
	function Mostra2(obj) {
		document.getElementById(obj).style.visibility="visible"
	}	

	function MostraNascondi(id1,id2) {
		if(document.getElementById){
		    elem1=document.getElementById(id1);
		    elem2=document.getElementById(id2);
		    if(elem1.style.display=="none"){
		        elem1.style.display="block";
		        elem2.style.display="none";
	        }
		    else{
		        elem1.style.display="none";
		        elem2.style.display="block";
	        }
	    }
	}
	
	function getXMLHttp() {
	var xmlhttp = null;
	if (window.ActiveXObject) {
	  if (navigator.userAgent.toLowerCase().indexOf("msie 5") != -1) {
	  xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } else {
	    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	  }
	}
	if (!xmlhttp && typeof(XMLHttpRequest) != 'undefined') {
	  xmlhttp = new XMLHttpRequest()
	}
	return xmlhttp
	}
	
	objHTTP = getXMLHttp();

	function Validate(){
	var labels=document.getElementsByTagName("label");
	var validationOK=true;
		for(var i=0;i<labels.length;i++){
		    var lab=labels[i];
		    if(lab.className=="req2") lab.className="req";
		    if(lab.className=="req"){
		        var inp=lab.getElementsByTagName("input");
		        if(inp.length>0 && inp[0].value==""){
		            lab.className="req2";   //input vuoto
		            validationOK=false;
		        }
		        if(inp.length>0 && inp[0].id=="InfoEmail"){
			        if(!ControllaMail(inp[0].value)){
			            lab.className="req2";   //email non valida
			            validationOK=false;
			        }
			    }
		        if(inp.length>0 && inp[0].type=="checkbox" && inp[0].checked==false){
		            lab.className="req2";   //checkbox non selezionato
		            validationOK=false;
		        }
		        var sel=lab.getElementsByTagName("select");
		        if(sel.length>0 && sel[0].selectedIndex==0){
		            lab.className="req2";  //select con indice a zero
		            validationOK=false;
		        }
	   	        var inp=lab.getElementsByTagName("textarea");
		        if(inp.length>0 && inp[0].value==""){
		            lab.className="req2"; 
		            validationOK=false;
		        }    
			}
		}
	return(validationOK);
	}

	function ControllaMail(str){
	   Filtro = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
	   return (Filtro.test(str))
	   }	   

	function FuocoOn (Obj) {
		Obj.style.backgroundColor="#EEE"
	}	
	
	function FuocoOut (Obj) {
		Obj.style.backgroundColor="#FFF"
	}	

/*
	function CaricaHC()
	{
	   var e = document.createElement("script");
	   e.src = "http://hc2.humanclick.com/hc/42032603/x.js?cmd=file&amp;file=chatScript3&amp;site=42032603&amp;imageUrl=http://www.globalitalia.it/humanclick";
	   e.language="JavaScript";
	   e.type="text/javascript";
	   document.getElementsByTagName("head")[0].appendChild(e);
	}


function HC(){
		document.getElementById('hcIconChat').src="http://hc2.humanclick.com/hc/42032603/?rnd="+Math.random()+"&amp;cmd=repstate&amp;site=42032603&amp;imageUrl=http://www.globalitalia.it/humanclick&amp;ver=1&amp;AEPARAMS"	
	}

*/
	function Avvio(Sez,SezDx,SezC){

		Calendario();
		Dimensioni();
			if (Sez != "") NetOver2(Sez,SezDx,SezC);
		//window.onresize=Dimensioni
		Mostra2('TabellaMenuNet');
		Mostra2('MenuNet');
		AreaRis();
		MM_preloadImages('/images/LogoOver.jpg','/images/GlobalNetworkO.gif','/images/LeaderTop_Hosting.gif','/images/LeaderTop_WebDesign.gif','/images/LeaderTop_Sms.gif','/images/LeaderTop_Voip.gif','/images/LeaderTop_DialUp.gif','/images/SfondoNetDx.gif','/images/Stile_Sfondo.jpg','/images/PallinoOver.gif','images/Hosting_Centro.gif','images/Hosting_Left.gif','images/Hosting_Right.gif','/images/WebDesign_Centro.gif','/images/WebDesign_Left.gif','/images/WebDesign_Right.gif','/images/Sms_Centro.gif','/images/Sms_Left.gif','/images/Sms_Right.gif','/images/Voip_Centro.gif','/images/Voip_Left.gif','/images/Voip_Right.gif','/images/DialUp_Centro.gif','/images/DialUp_Left.gif','/images/DialUp_Right.gif','/images/Adsl_Centro.gif','/images/Adsl_Left.gif','/images/Adsl_Right.gif');
		if (GetCookie('GICarr')>0){
			Mostra2('Carrello1')
			Mostra2('Carrello2')
			}
		Finito=true
		
		//HC();
		//document.getElementById('hcIconChat').src="http://hc2.humanclick.com/hc/42032603/?rnd="+Math.random()+"&amp;cmd=repstate&amp;site=42032603&amp;imageUrl=http://www.globalitalia.it/humanclick&amp;ver=1&amp;AEPARAMS"	
		
		//if (navigator.appName.indexOf("Microsoft") != -1){
		//	CaricaHC();
		//}
	}

//Network

var iPromo = 0
var iStile = 0
var Bordo2OutTime
var Bordo2OverTime
var BordoStyleOverTime
var BordoStyleOutTime
var SepSx
var SepDx
var BordoTop = "#C0C4CB"
var CGrigio = "#888888"
var CHosting = "#352C72"
var CWebDesign = "#02A6A8"
var CSms = "#F2991C"
var CDialUp = "#6CA949"
var CVoip = "#C93030"
var CAdsl = "#2574AD"

	function NascondiLeaders (Elemento)	{
		if (Elemento!="PromoHosting") {Nascondi('PromoHosting')}
		if (Elemento!="PromoWebDesign") {Nascondi('PromoWebDesign')}
		if (Elemento!="PromoSms") {Nascondi('PromoSms')}
		if (Elemento!="PromoDialUp") {Nascondi('PromoDialUp')}
		if (Elemento!="PromoVoip") {Nascondi('PromoVoip')}
		if (Elemento!="PromoAdsl") {Nascondi('PromoAdsl')}		
		}

	function BordoStyleOver () {
		clearTimeout (BordoStyleOutTime)
		Mostra('Stile')
		Mostra('Corpo4')
		if ( iStile <=500 ){
			if (iStile < 0) {iStile = 0}
			document.getElementById('Corpo4').style.height=iStile
			iStile = iStile + 20
			BordoStyleOverTime = window.setTimeout("BordoStyleOver()",30)
		}
		else {
			document.getElementById('Stile').style.zIndex=1
		}
	}

	function BordoStyleOut () {
		clearTimeout (BordoStyleOverTime)
		document.getElementById('Stile').style.zIndex=-1
		if ( iStile >=0 ){
			document.getElementById('Corpo4').style.height=iStile
			iStile = iStile - 20
			BordoStyleOutTime = window.setTimeout("BordoStyleOut()",30)		
		}
		else {
			Nascondi('Stile')
			Nascondi('Corpo4')
		}	
	}

	function Bordo2Over () {
		clearTimeout (Bordo2OutTime)
		if ( iPromo <=90 ){
			if (iPromo < 0) {iPromo = 0}
			document.getElementById('Corpo2').style.top=iPromo+"px"
			if (iPromo ==0){
				Sec = 200
			}
			else {
				Sec = 30			
			}
			iPromo = iPromo + 10
			Bordo2OverTime = window.setTimeout("Bordo2Over()",Sec)
		}
	}
	
	function Bordo2Out (Sezione,SezioneDx) {
		clearTimeout (Bordo2OverTime)
		if ( iPromo >=0 ) {
			if (iPromo <=90) {
				document.getElementById('Corpo2').style.top=iPromo+"px"
				Sec = 30
			}
			else {
				Sec = 1000
			}	
		iPromo = iPromo - 10
		Bordo2OutTime = window.setTimeout("Bordo2Out('" + Sezione + "','" + SezioneDx + "')",Sec)		
		}
		else {
			 NascondiLeaders ()
			 document.getElementById('BordoTopL').style.background=BordoTop
			 document.getElementById('BordoTopR').style.background=BordoTop		 
		}	
	}
	
	function NetOver3(Sezione,SezioneDx,Colore) {
		document.getElementById(Sezione +'_Centro').style.backgroundImage='url(/images/' + Sezione + '_Centro.gif)'
		document.getElementById(Sezione +'_Left').style.backgroundImage='url(/images/' + Sezione + '_Centro.gif)'	
		SepSx=document.getElementById(Sezione +'_Sep_Left').style.backgroundImage
		SepDx=document.getElementById(SezioneDx +'_Sep_Left').style.backgroundImage
		document.getElementById(Sezione +'_Sep_Left').style.backgroundImage='url(/images/' + Sezione + '_Left.gif)'
		document.getElementById(SezioneDx +'_Sep_Left').style.backgroundImage='url(/images/' + Sezione + '_Right.gif)'	
		document.getElementById(Sezione +'_Pallino').src='/images/PallinoOver.gif'	
		document.getElementById('BordoTopL').style.background=Colore
		document.getElementById('BordoTopR').style.background=Colore
	}
		
	function NetOver2(Sezione,SezioneDx,Colore) {
		NetOver3 (Sezione,SezioneDx,Colore)
		Nascondi(Sezione +'_Link')
		document.getElementById(Sezione +'Over').style.display="inline"
		BordoTop = Colore
		document.getElementById('BordoBottomL').style.background=Colore
		document.getElementById('BordoBottomR').style.background=Colore
		if (document.getElementById(Sezione+'BG')) document.getElementById(Sezione+'BG').selected=true		
	}
	
	function NetOver(Sezione,SezioneDx,Colore) {
		NetOver3 (Sezione,SezioneDx,Colore)
		document.getElementById('Grigio'+Sezione).style.color='#FFFFFF'
		document.getElementById(Sezione).style.color='#FFFFFF'
		NascondiLeaders ("Promo"+Sezione)		
		Mostra('Promo'+Sezione)
		document.getElementById('Promo'+Sezione).style.top=parseInt(document.getElementById('LeaderBoardTop').height)+33
		Bordo2Over()
	}	
	
	function NetOut (Sezione,SezioneDx,Colore) {
		document.getElementById(Sezione +'_Centro').style.backgroundImage=""
		document.getElementById(Sezione +'_Left').style.backgroundImage=""
		document.getElementById(Sezione +'_Sep_Left').style.backgroundImage=SepSx
		document.getElementById(SezioneDx +'_Sep_Left').style.backgroundImage=SepDx
		document.getElementById(Sezione +'_Pallino').src='/images/Pallino.gif'
		document.getElementById('Grigio'+Sezione).style.color=CGrigio
		document.getElementById(Sezione).style.color=Colore		 
		Bordo2Out (Sezione,SezioneDx)
	}


//Calendario
var gg = new Array("Domenica","Lunedi","Martedi","Mercoledi","Giovedi","Venerdi","Sabato");
var months=new Array(13);
	months[1] = "Gen";
	months[2] = "Feb";
	months[3] = "Mar";
	months[4] = "Apr";
	months[5] = "Mag";
	months[6] = "Giu";
	months[7] = "Lug";
	months[8] = "Ago";
	months[9] = "Set";
	months[10] = "Ott";
	months[11] = "Nov";
	months[12] = "Dic";
var aggiorna=0

		function Calendario(){
		var ora = new Date();
		var aa = ora.getDate();
		var mm = ora.getMonth() + 1;
		var yy = ora.getFullYear();
		var oo = ora.getHours();
		var mn = ora.getMinutes();
		var sec = ora.getSeconds();
		var dd = ora.getDay();
		var aa2  = ((aa < 10) ? "0" : "");
		var mm2  = ((mm < 10) ? ".0" : ".");
		var oo2  = ((oo < 10) ? "0" : "");
		var mn2  = ((mn < 10) ? ":0" : ":");
		var sec2  = ((sec < 10) ? ":0" : ":");
		var Data = aa2 + aa + mm2 + mm  + "." + yy;
		var hh = oo2 + oo + mn2 + mn + sec2 + sec;
		aggiorna++;
		
		//if (sec==0){HC()}
		
		if(document.all){
		   	if ((sec > 14 && sec <21) || (sec > 44 && sec <51)){
		   		document.all.dataora.innerHTML = "<div style='width:100%; text-align:left; padding-left:78px'><div style='padding:0px; width:80px; text-align:center; font-size:10px; color:#000080'><div style='padding-top:6px'>" + gg[dd] + "</div><div style='font-size:18px'>" + aa +"</div><div style='color:#000080; padding-top:2px'>" + months[mm] + " " + yy + "</div></div></div>";
			}
			else {
		   		document.all.dataora.innerHTML = "<div style='width:100%; text-align:left; padding-left:78px'><div style='padding:0px; width:80px; text-align:center; font-size:10px; color:#000080'><div style='padding-top:6px'>" + gg[dd] + "</div><div style='font-size:18px'>" + aa +"</div><div style='color:#EA7B24; padding-top:2px'>" + hh + "</div></div></div>";
			}
		}
		else
			if(document.getElementById){
			   	if ((sec > 14 && sec <21) || (sec > 44 && sec <51)){
		        	document.getElementById('dataora').innerHTML  = "<div style='width:100%; text-align:left; padding-left:78px'><div style='padding:0px; width:80px; text-align:center; font-size:10px; color:#000080'><div style='padding-top:0px'>" + gg[dd] + "</div><div style='font-size:16px'>" + aa +"</div><div style='color:#000080; padding-top:2px'>" + months[mm] + " " + yy + "</div></div></div>";
				}
				else {
			        document.getElementById('dataora').innerHTML  = "<div style='width:100%; text-align:left; padding-left:78px'><div style='padding:0px; width:80px; text-align:center; font-size:10px; color:#000080'><div style='padding-top:0px'>" + gg[dd] + "</div><div style='font-size:16px'>" + aa +"</div><div style='color:#EA7B24; padding-top:2px'>" + hh + "</div></div></div>";
				}			
			}   
	   window.setTimeout("Calendario()",1000);
	}
//-->

