
// JavaScript Document

//Apertura FullScreen 
/*var popUpWinFullScreen=0;
	function popUpWindowFullScreen(sector,page,canale){
	
	  if(popUpWinFullScreen){
		if(!popUpWinFullScreen.closed) popUpWinFullScreen.close();
	  }
	  popUpWinFullScreen = open('index_uno.cfm?sector='+sector+'&page='+page+'&canale='+canale+'', 'popUpWinFullScreen', 'toolbar=no,location=no,directories=no,status=no,fullscreen=1,menubar=yes,scrollbars=yes,resizable=no,copyhistory=no,top=0,screenX=0,screenY=0');
	}*/
	
	//Apertura finestra index 
var popUpWinFullScreen=0;
	function popUpWindowFullScreen(sector,page,canale,width,height){
	var winl = (screen.width - width) / 2; 
	var wint = (screen.height - height) / 2; 
	  if(popUpWinFullScreen){
		if(!popUpWinFullScreen.closed) popUpWinFullScreen.close();
	  }
	  popUpWinFullScreen = open('index_uno.cfm?sector='+sector+'&page='+page+'&canale='+canale+'', 'popUpWinFullScreen', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+',left='+winl+', top=0,screenX=0,screenY=0');
	}
	
	//Apertura finestra 
var popUpWinApriFinestraIndex=0;
	function popUpWindowApriFinestraIndex(sector,page,width,height){
	var winl = (screen.width - width) / 2; 
	var wint = (screen.height - height) / 2; 
	  if(popUpWinApriFinestraIndex){
		if(!popUpWinApriFinestraIndex.closed) popUpWinApriFinestraIndex.close();
	  }
	  popUpWinApriFinestraIndex = open('index.cfm?sector='+sector+'&page='+page+'', 'popUpWinApriFinestraIndex', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+',left='+winl+', top=15,screenX=15,screenY=15');
	}


//Apertura canale 
var popUpWinApriPlayerCanali=0;
	function popUpWindowApriPlayerCanali(sector,page,canale,width,height){
	var winl = (screen.width - width) / 2; 
	var wint = (screen.height - height) / 2; 
	  if(popUpWinApriPlayerCanali){
		if(!popUpWinApriPlayerCanali.closed) popUpWinApriPlayerCanali.close();
	  }
	  popUpWinApriPlayerCanali = open('index-3.cfm?sector='+sector+'&page='+page+'&canale='+canale+'', 'popUpWinApriPlayerCanali', 'toolbar=no,location=no,directories=no,status=no,fullscreen=1,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width='+width+',height='+height+',left='+winl+', top=15,screenX=15,screenY=15');
	}

//Apertura carica video 
var popUpWinApriCaricaVideo=0;
	function popUpWindowApriCaricaVideo(sector,page,canale,width,height){
	var winl = (screen.width - width) / 2; 
	var wint = (screen.height - height) / 2; 
	  if(popUpWinApriCaricaVideo){
		if(!popUpWinApriCaricaVideo.closed) popUpWinApriCaricaVideo.close();
	  }
	  popUpWinApriPlayerCanali = open('canali/caricaVideo.cfm?sector='+sector+'&page='+page+'&canale='+canale+'', 'popUpWinApriCaricaVideo', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+width+',height='+height+',left='+winl+', top=15,screenX=15,screenY=15');
	}
//Apertura segnalazione 
var popUpWinSegnalaCanaleVideo=0;
	function popUpWindowSegnalaCanaleVideo(sector,page,paCodiceID,width,height){
	var winl = (screen.width - width) / 2; 
	var wint = (screen.height - height) / 2; 
	  if(popUpWinSegnalaCanaleVideo){
		if(!popUpWinSegnalaCanaleVideo.closed) popUpWinSegnalaCanaleVideo.close();
	  }
	  popUpWinSegnalaCanaleVideo = open('Canali-index/ca_SegnalaPagina.cfm?sector='+sector+'&page='+page+'&paCodiceID='+paCodiceID+'', 'popUpWinSegnalaCanaleVideo', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+width+',height='+height+',left='+winl+', top=15,screenX=15,screenY=15');
	}

