var maskTime = ""
var fadeCount = 0
var fadeCount2 = 100
var xc = false

var tempAjaxGet = ""

	function getWay(route){
		
		window.location.href="http://www.italiadeivalori.tn.it/index.asp?urlp="+route+"&n=1"		
		
	}
	
	function getWayBLANK(route){
				
		window.open("http://www.italiadeivalori.tn.it/index.asp?urlp="+route+"&n=1","_blank");
	}
	
	function signPage(){
		
		var stringURL = window.location.href
		
		
		
	}
	
	
	var tmt1
	var tmt2
	var tmt
	var c 
	
	function resize(id,tOf){

		if(tOf){
	
			openUp(id)
			
			
		}else{
			
			closeUp(id)
		}
		
		
	}
	
	function closeUp(id){
			
			document.getElementById(id).style.height =118+"px"
			document.getElementById(id).style.overflow="hidden";	
		
		
	}
	
	
	function openUp(id,l){
	
			document.getElementById(id).style.height ="auto"
			document.getElementById(id).style.overflow="hidden";	
		
		
	}
	
	function show(id){
		
		document.getElementById(id).style.display="block";
		
	}
	
	function hide(id){
		
		document.getElementById(id).style.display="none";
		
	}

	/*function getWay(route){
		
		doubleTime = true

		clearTimeout(TotalSlide);
		
		
		
		tempAjaxGet = ""
		fadeCount = 0
		fadeCount2 = 100
		xmlHttp3=GetXmlHttpObject();
		if (xmlHttp3==null)
		  {
		 // alert ("il tuo browser non supporta ajax!");
		  var error_str = "Il tuo browser non supporta ajax!"
		  SVopenWin_lvl2('include_App/varie/error_str.asp?erro='+error_str,320,205,false,true);
		  return;
		  
		  } 
	
		var url_s='ASP/filler.asp'
		
		var parameters = route+""
		
		xmlHttp3.open('POST', url_s, true);
		xmlHttp3.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
		xmlHttp3.setRequestHeader("Content-length", parameters.length);
		xmlHttp3.setRequestHeader("Connection", "close");
	
		xmlHttp3.onreadystatechange=function()
		{if(xmlHttp3.readyState==4){
				
				
				//alert()
				
				if(xc){
					
					preFadeOut(xmlHttp3.responseText)
												
				}else{
					
					CutAndPaste(xmlHttp3.responseText)
					
				}
		
				xc = true
				
				//
		}}
		
		xmlHttp3.send(parameters);
		
		
	}*/
	

	
	
	/*function CutAndPaste(string){
		
		
		string = string.split("#")
		
		document.getElementById("centerColumn").innerHTML = '';
	
		for(i=0;i<string.length-1;i++){
			
			var start = string[i].indexOf("<h1>")
			var fine = string[i].indexOf("</h1>")
			var title = string[i].substring(start+4,fine)
			
			/*string[i] = string[i].replace("'","&rsquo;")
			string[i] = string[i].replace('"',"&quot;")*/
			
			
			/*if(i == 0){
		
			document.getElementById("centerColumn").innerHTML += '<div class="contentBox" id="content'+i+'"><div class="frecciaSu" onclick="resize(\'content'+i+'\',false)"></div><div class="frecciaGiu" onclick="resize(\'content'+i+'\',true)"></div><div class="miniBarra"></div><div class="innerContentBox">'+string[i]+'<span class="st_email"></span><span class="st_facebook"></span><span class="st_twitter"></span><span class="st_sharethis" displayText="ShareThis"></span></div></div>'
			
		}else{
			
			document.getElementById("centerColumn").innerHTML += '<div class="contentBox" style="height:210px;overflow:hidden;" id="content'+i+'"><div class="frecciaSu" onclick="resize(\'content'+i+'\',false)"></div><div class="frecciaGiu" onclick="resize(\'content'+i+'\',true)"></div><div class="miniBarra"></div><div class="innerContentBox">'+string[i]+'</div><span class="st_email"></span><span class="st_facebook"></span><span class="st_twitter"></span><span class="st_sharethis" displayText="ShareThis"></span></div>'
		}
	
		}
	
	//maskTime = setInterval("fadeContent()",5)
	document.getElementById("centerColumn").style.display = "block";
	alert()
	}*/
	
	

	
	/*function getParams(){
			
		var t = document.getElementById("centerColumn").offsetHeight;
		
		ajaxLoader(t)
		
	}*/
	
	
	/*function ajaxLoader(t){
		
		//document.getElementById("mask").style.height=t+"px"
		
		maskTime = setInterval("fadeContent()",15) 
			
	}*/
	
	
	/*function fadeContent(){
		
		if(fadeCount >= 100){
			
			clearInterval(maskTime);
			document.getElementById("centerColumn").style.filter='Alpha(Opacity='+(100)+')'; 
			document.getElementById("centerColumn").style.opacity=1;
			document.getElementById("centerColumn").style.display = "block";
			doubleTime = false
			
			if(login_set_test){
				
			}
			
			//alert("ora visibile")
		}
		
		fadeCount = fadeCount+5
		document.getElementById("centerColumn").style.filter='Alpha(Opacity='+(fadeCount+10)+')'; 
		document.getElementById("centerColumn").style.opacity=((parseFloat(fadeCount/100)+0.01));
		
	}*/
	
	
	/*function fadeContentOut(){
		
		if(fadeCount2 <= 0){
			document.getElementById("centerColumn").style.filter='Alpha(Opacity=0)';
			//alert()
			document.getElementById("centerColumn").style.opacity=0;
			CutAndPaste(tempAjaxGet)
			clearInterval(maskTime2);//alert()
			

		}
		
		fadeCount2 = fadeCount2-5
		document.getElementById("centerColumn").style.filter='Alpha(Opacity='+(parseInt(fadeCount2-10))+')'; 
		document.getElementById("centerColumn").style.opacity=((parseFloat(fadeCount2/100)-0.01));
		//alert(document.getElementById("centerColumn").style.filter)
		
	}*/
	
	
	
	/*function preFadeOut(string){

		tempAjaxGet = string
		maskTime2 = setInterval('fadeContentOut()',15);	

		
		
	}*/
