/////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// MOSTRI E PIRATI ////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
function wallpaperMostriPirati(quale){

	var altezza = window.screen.height;
	var larghezza = window.screen.width;
	
	if ((larghezza == 1024) && (altezza == 768))
	{
	//alert('1024');
	document.location.href = "mostriepirati/site/online/gadget/wall_"+quale+"_1024x768.zip";
	return false;
	}
	else if ((larghezza == 1280) && (altezza == 1024))
	{
	//alert('1280');
	document.location.href = "mostriepirati/site/online/gadget/wall_"+quale+"_1280x1024.zip";
	return false;
	}
	else
	{
	//alert('1024');
	document.location.href = "mostriepirati/site/online/gadget/wall_"+quale+"_1024x768.zip";
	
	}
}
function morraBucanieri()
{
            var xCrd=(screen.availWidth-500-xGap)/2;
            var yCrd=(screen.availHeight-400-yGap)/2;
            windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
            newWindow=window.open("mostriepirati/site/online/gioco_morra.html", "morra", windowFeatures);
}

function treMappe()
{
            var xCrd=(screen.availWidth-800-xGap)/2;
            var yCrd=(screen.availHeight-600-yGap)/2;
            windowFeatures = 'width=800,height=600,status=no,top='+yCrd+',left='+xCrd
            newWindow=window.open("mostriepirati/site/online/gioco_tremappe.html", "mappe", windowFeatures);
}

function screensaverMostriPirati(quale){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "mostriepirati/site/online/gadget/mostri_e_pirati_screensaver_0"+quale+"_setup.sit";
	}else{
	document.location.href= "mostriepirati/site/online/gadget/mostri_e_pirati_screensaver_0"+quale+"_setup.zip";
	}	
}



/////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// STRASPEED MAGLIETTA ////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
function FCCreamaMaglietta()
{
	var xCrd=(screen.availWidth-600-xGap)/2;
	var yCrd=(screen.availHeight-400-yGap)/2;
	windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open('creamaglietta.php', 'maglietta', windowFeatures);
}


/////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// STRASPEED ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
function wallpaperStraspeed(quale){

	var altezza = window.screen.height;
	var larghezza = window.screen.width;
	
	if ((larghezza == 800) && (altezza == 600))
	{
	//alert('800');
	document.location.href = "straspeed/site/online/gadget/wallpaper_"+quale+"_800x600.zip";
	return false;
	}
	else if ((larghezza == 1024) && (altezza == 768))
	{
	//alert('1024');
	document.location.href = "straspeed/site/online/gadget/wallpaper_"+quale+"_1024x768.zip";
	return false;
	}
	else
	{
	//alert('dipiu');
	document.location.href = "straspeed/site/online/gadget/wallpaper_"+quale+"_1024x768.zip";
	
	}
}

function screensaverStraspeed(quale){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "straspeed/site/online/gadget/gli_straspeed_"+quale+"_OSX.sit";
	}else{
	document.location.href= "straspeed/site/online/gadget/gli_straspeed_"+quale+"_setup.zip";
	}	
}

function crazy_puzzle()
{
	var xCrd=(screen.availWidth-800-xGap)/2;
	var yCrd=(screen.availHeight-600-yGap)/2;
	windowFeatures = 'width=800,height=600,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open("straspeed/site/online/giochi/crazypuzzle.php", "crazypuzzle", windowFeatures);
}
function piste_planetarie()
{
	var xCrd=(screen.availWidth-800-xGap)/2;
	var yCrd=(screen.availHeight-600-yGap)/2;
	windowFeatures = 'width=800,height=600,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open("straspeed/site/online/giochi/pisteplanetarie.php", "pisteplanetarie", windowFeatures);
}
function gioca_con_loro()
{
	var xCrd=(screen.availWidth-600-xGap)/2;
	var yCrd=(screen.availHeight-400-yGap)/2;
	windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open("straspeed/site/online/giochi/giocaconloro.php", "giocaconloro", windowFeatures);
}

/////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// PALLASTRIKE ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
function wallpaperPallastrike(quale){

	var altezza = window.screen.height;
	var larghezza = window.screen.width;
	
	if ((larghezza == 800) && (altezza == 600))
	{
	//alert('800');
	document.location.href = "pallastrike/site/online/gadget/wall0"+quale+"800.zip";
	return false;
	}
	else if ((larghezza == 1024) && (altezza == 768))
	{
	//alert('1024');
	document.location.href = "pallastrike/site/online/gadget/wall0"+quale+"1024.zip";
	return false;
	}
	else
	{
	//alert('dipiu');
	document.location.href = "pallastrike/site/online/gadget/wall0"+quale+"1024.zip";
	
	}
}

function screensaverPallastrike(quale){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "pallastrike/site/online/gadget/screen0"+quale+"_osx.sit";
	}else{
	document.location.href= "pallastrike/site/online/gadget/screen0"+quale+"_setup.zip";
	}	
}

function pallastrikeAllenamento()
{
	var xCrd=(screen.availWidth-640-xGap)/2;
	var yCrd=(screen.availHeight-479-yGap)/2;
	windowFeatures = 'width=640,height=479,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open('pallastrike/site/online/giochi/allenamento.html', 'allenamento', windowFeatures);
}

function pallastrikeMosseTifoso()
{
	var xCrd=(screen.availWidth-600-xGap)/2;
	var yCrd=(screen.availHeight-400-yGap)/2;
	windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open('pallastrike/site/online/giochi/mosse.html', 'mosse', windowFeatures);
}



/////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// SMILE AND GO ///////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
function creaSmileandgo(){
	var xCrd=(screen.availWidth-750-xGap)/2;
	var yCrd=(screen.availHeight-625-yGap)/2;
	windowFeatures = 'width=750,height=625,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open('sag_gotchi.html', 'game', windowFeatures);
}

function cercaSmileandgo(){
	var xCrd=(screen.availWidth-945-xGap)/2;
	var yCrd=(screen.availHeight-500-yGap)/2;
	windowFeatures = 'width=945,height=500,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open('sandg/site/online/my_smile_and_go.html', "cercasandg", windowFeatures);
}


function wallpaperSmileandgo(quale){

	var altezza = window.screen.height;
	var larghezza = window.screen.width;
	
	if ((larghezza == 800) && (altezza == 600))
	{
	//alert('800');
	document.location.href = "sandg/site/online/wallpaper/"+quale+"_800.zip";
	return false;
	}
	else if ((larghezza == 1024) && (altezza == 768))
	{
	//alert('1024');
	document.location.href = "sandg/site/online/wallpaper/"+quale+"_1024.zip";
	return false;
	}
	else
	{
	//alert('dipiu');
	document.location.href = "sandg/site/online/wallpaper/"+quale+"_1024.zip";
	
	}
}

function screensaverSmileandgo(quale){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "sandg/site/online/screensaver/"+quale+"_macosx.sit";
	}else{
	document.location.href= "sandg/site/online/screensaver/"+quale+".zip";
	}	
}

function FCopenSmileGioco(par)
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('sandg/site/online/giochi/'+par+'.html', 'gioco', windowFeatures);
	}
	
/////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////// SKATENINI //////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////

function wallpaperSkatenini(quale){

	var altezza = window.screen.height;
	var larghezza = window.screen.width;
	
	if ((larghezza == 800) && (altezza == 600))
	{
	//alert('800');
	document.location.href = "skatenini/site/online/gadget/"+quale+"_800x600.zip";
	return false;
	}
	else if ((larghezza == 1024) && (altezza == 768))
	{
	//alert('1024');
	document.location.href = "skatenini/site/online/gadget/"+quale+"_1024x768.zip";
	return false;
	}
	else
	{
	//alert('dipiu');
	document.location.href = "skatenini/site/online/gadget/"+quale+"_1024x768.zip";
	
	}
}	

function screensaverSkatenini(quale){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "skatenini/site/online/gadget/"+quale+"_osx.sit";
	}else{
	document.location.href= "skatenini/site/online/gadget/"+quale+".zip";
	}	
}

function openSkateniniGioco(par)
		{
			var xCrd=(screen.availWidth-600-xGap)/2;
			var yCrd=(screen.availHeight-400-yGap)/2;
			windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
			newWindow=window.open('skatenini/site/online/'+par+'.html', par, windowFeatures);
		}

/////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////// NUT NUT //////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////

function wallpaperNutnut(quale){

	var altezza = window.screen.height;
	var larghezza = window.screen.width;
	
	if ((larghezza == 800) && (altezza == 600))
	{
	//alert('800');
	document.location.href = "nutnut/site/online/gadget/"+quale+"_800x600.zip";
	return false;
	}
	else if ((larghezza == 1024) && (altezza == 768))
	{
	//alert('1024');
	document.location.href = "nutnut/site/online/gadget/"+quale+"_1024x768.zip";
	return false;
	}
	else
	{
	//alert('dipiu');
	document.location.href = "nutnut/site/online/gadget/"+quale+"_1024x768.zip";
	
	}
}	

function screensaverNutnut(){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "nutnut/site/online/gadget/allegriaquantita_osx.sit";
	}else{
	document.location.href= "nutnut/site/online/gadget/allegriaquantita_win.zip";
	}	
}

function nutnutGiocoFacce()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('nutnut/site/online/gioco_facce_fr.html', 'video', windowFeatures);
	}
function nutnutGiocoMaglietta()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('nutnut/site/online/faimaglietta.html', 'faimaglietta', windowFeatures);
	}
function nutnutApriNutMixer()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('nutnut/site/online/nutmixer.html', 'nutmixer', windowFeatures);
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////// LAMPACLIMA //////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////

function wallpaperLampaclima(quale){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "lampaclima/site/online/gadget/"+quale+".sit";
	}else{
	document.location.href= "lampaclima/site/online/gadget/"+quale+".zip";
	}	
}

function screensaverLampaclima(quale){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "lampaclima/site/online/gadget/"+quale+"OX.sit";
	}else{
	document.location.href= "lampaclima/site/online/gadget/"+quale+".zip";
	}	
}

function LampaclimaOpenMulti()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('lampaclima/site/online/multiplayer_scelta.html', 'game', windowFeatures);
	}
function LampaclimaPerfetto()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('lampaclima/site/online/clima_perfetto.html', 'game', windowFeatures);
	}

function Lampallenamento()
		{
			var xCrd=(screen.availWidth-600-xGap)/2;
			var yCrd=(screen.availHeight-400-yGap)/2;
			windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
			newWindow=window.open('lampaclima/site/online/lampallenamento.html', 'game', windowFeatures);
		}
function LampaclimaMeteosport()
		{
			var xCrd=(screen.availWidth-600-xGap)/2;
			var yCrd=(screen.availHeight-400-yGap)/2;
			windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
			newWindow=window.open('lampaclima/site/online/memory.html', 'game', windowFeatures);
		}

/////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////// ANIMOTOSI //////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////

function wallpaperAnimotosi(quale){

	var altezza = window.screen.height;
	var larghezza = window.screen.width;
	
	if ((larghezza == 800) && (altezza == 600))
	{
	//alert('800');
	document.location.href = "animotosi/online/gadgets/"+quale+"_800.zip";
	return false;
	}
	else if ((larghezza == 1024) && (altezza == 768))
	{
	//alert('1024');
	document.location.href = "animotosi/online/gadgets/"+quale+"_1024.zip";
	return false;
	}
	else
	{
	//alert('dipiu');
	document.location.href = "animotosi/online/gadgets/"+quale+"_1024.zip";
	
	}
}

function screensaverAnimotosi(quale){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "animotosi/online/gadgets/"+quale+"_osX.sit";
	}else{
	document.location.href= "animotosi/online/gadgets/"+quale+".zip";
	}	
}

//Moto a porter
	function openMotoaPorter()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/moto_apor.html', 'motoporter', windowFeatures);
	}
//faccia sprint
	function openFacciaSprint()
	{
		var xCrd=(screen.availWidth-480-xGap)/2;
		var yCrd=(screen.availHeight-320-yGap)/2;
		windowFeatures = 'width=480,height=320,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/pop_maschere.html', 'maschere', windowFeatures);
	}
//Motomoda
	function openMotomoda()
	{
		var xCrd=(screen.availWidth-480-xGap)/2;
		var yCrd=(screen.availHeight-320-yGap)/2;
		windowFeatures = 'width=480,height=320,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/motomoda.html', 'motomoda', windowFeatures);
	}
//Stampa Sprintosi
	function openStampaColoraSprintosi()
	{
		var xCrd=(screen.availWidth-480-xGap)/2;
		var yCrd=(screen.availHeight-320-yGap)/2;
		windowFeatures = 'width=480,height=320,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/stampacolorasprintosi.html', 'stampaEcoloraSprint', windowFeatures);
	}
//Stampa Sgasati
	function openStampaColoraSgasati()
	{
		var xCrd=(screen.availWidth-480-xGap)/2;
		var yCrd=(screen.availHeight-320-yGap)/2;
		windowFeatures = 'width=480,height=320,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/stampacolorasgasati.html', 'stampaEcoloraSgas', windowFeatures);
	}
//motopassaporto
	function openMotopassaporto()
	{
		var xCrd=(screen.availWidth-480-xGap)/2;
		var yCrd=(screen.availHeight-320-yGap)/2;
		windowFeatures = 'width=480,height=320,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/motopassp.html', 'motopassaporto', windowFeatures);
	}
//motopiste
	function openMotopiste()
	{
		var xCrd=(screen.availWidth-480-xGap)/2;
		var yCrd=(screen.availHeight-320-yGap)/2;
		windowFeatures = 'width=480,height=320,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/pop_pista.html', 'pista', windowFeatures);
	}
//mappa
	function openMotomappa()
	{
		var xCrd=(screen.availWidth-480-xGap)/2;
		var yCrd=(screen.availHeight-320-yGap)/2;
		windowFeatures = 'width=480,height=320,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/pop_mappa.html', 'mappa', windowFeatures);
	}
//poti gag
	function openPotiGag()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/potipotigag.html', 'potigag', windowFeatures);
	}
//Fai il tuo fumetto
	function openTuoFumetto()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/fai_fumetto.html', 'fumetto', windowFeatures);
	}
//Animotart
	function openAnimotArt()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/animot_art.html', 'art', windowFeatures);
	}
//Motorace
	function openMotoRace()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/moto_race.html', 'motorace', windowFeatures);
	}
//Motolavaggio
	function openMotoLavaggio()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/motolavaggio.html', 'lavaggio', windowFeatures);
	}
//Pesca ai bulloni
	function openPescaBulloni()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/pesca_bulloni.html', 'pesca', windowFeatures);
	}
//Tracce oleose
	function openTracceOleose()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/macchie_olio.html', 'tracce', windowFeatures);
	}
//Gioco MPL
	function AnimotosiMultiplayer()
	{	var cas = Math.round(Math.random()*1000)
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('animotosi/online/multiplayer.html', 'mpl'+cas, windowFeatures);
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// ROTEO //////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////

function wallpaperRoteo(quale){

	var altezza = window.screen.height;
	var larghezza = window.screen.width;
	
	if ((larghezza == 800) && (altezza == 600))
	{
	//alert('800');
	document.location.href = "roteo/online/gadgets/"+quale+"_800.zip";
	return false;
	}
	else if ((larghezza == 1024) && (altezza == 768))
	{
	//alert('1024');
	document.location.href = "roteo/online/gadgets/"+quale+"_1024.zip";
	return false;
	}
	else
	{
	//alert('dipiu');
	document.location.href = "roteo/online/gadgets/"+quale+"_1024.zip";
	
	}
}

function screensaverRoteo(quale){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "roteo/online/gadgets/"+quale+"_osX.sit";
	}else{
	document.location.href= "roteo/online/gadgets/"+quale+".zip";
	}	
}

//Ultima ruota
function openUltimaRuota()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('roteo/online/ultimaruota.html', 'UltimaRuota', windowFeatures);
	}
//Per chi suona la campana
function openSuonaCampana()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('roteo/online/suona_campana.html', 'campana', windowFeatures);
	}
//Spruzzatina polverina
function openSpruzzatina()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('roteo/online/spruzzatina.html', 'spruzzatina', windowFeatures);
	}
//Ruota svegli
function openRuotaSvegli()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('roteo/online/ruotasvegli.html', 'svegli', windowFeatures);
	}
//Ruota svegli
function openLanciaTorta()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('roteo/online/lancia_torta.html', 'torta', windowFeatures);
	}
//Ruota svegli
function openNascondiRoteo()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('roteo/online/multiplayer_scelta.html', 'nascondi', windowFeatures);
	}
//Gira mondo
function openGiraMondo()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('roteo/online/giramondo.html', 'giramondo', windowFeatures);
	}
//Fatale sciagura
function openFataleSciagura()
	{
		var xCrd=(screen.availWidth-600-xGap)/2;
		var yCrd=(screen.availHeight-400-yGap)/2;
		windowFeatures = 'width=600,height=400,status=no,top='+yCrd+',left='+xCrd
		newWindow=window.open('roteo/online/fatale_sciagura.html', 'fatalesciagura', windowFeatures);
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////// MAGICANTI //////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////

function wallpaperMagicanti(quale){

	var altezza = window.screen.height;
	var larghezza = window.screen.width;
	
	if ((larghezza == 800) && (altezza == 600))
	{
	//alert('800');
	document.location.href = "magicanti/fase2/magischermo/"+quale+"800.zip";
	return false;
	}
	else if ((larghezza == 1024) && (altezza == 768))
	{
	//alert('1024');
	document.location.href = "magicanti/fase2/magischermo/"+quale+"1024.zip";
	return false;
	}
	else
	{
	//alert('dipiu');
	document.location.href = "magicanti/fase2/magischermo/"+quale+"1024.zip";
	
	}
}	

function screensaverMagicanti(quale){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "magicanti/fase2/magischermo/"+quale+"_osX.sit";
	}else{
	document.location.href= "magicanti/fase2/magischermo/"+quale+".zip";
	}	
}

//Torneo 3 elementi
function openMagicantiTorneo() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/torneo_home.html', 'Torneo', windowFeatures);
}

//Pozioni
function openPozioni() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/magipozioni_bianca.html', 'Pozioni', windowFeatures);
}

//Magimusica Bianca
function openMagimusicaBianca() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/magimusica_bianca.html', 'musicab', windowFeatures);
}

//Magimusica Nera
function openMagimusicaNera() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/magimusica_nera.html', 'musican', windowFeatures);
}
//Magicalambiccus
function openMagicalambiccus() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/magicalambiccus_nera.html', 'alambiccus', windowFeatures);
}

//MedaglioniFlamba
function openMedaglioniFlamba() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/medaglioni_flamba.html', 'MedaglioniFlamba', windowFeatures);
}
//MedaglioniStizza
function openMedaglioniStizza() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/medaglioni_stizza.html', 'MedaglioniStizza', windowFeatures);
}
//MagisparalancioRubio
function openMagisparalancioRubio() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/magisparalancio_rubio.html', 'MagisparalancioRubio', windowFeatures);
}
//MagisparalancioCiva
function openMagisparalancioCiva() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/magisparalancio_civa.html', 'MagisparalancioCiva', windowFeatures);
}
//CappamagicaLepo
function openCappamagicaLepo() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/magicorsa_lepo.html', 'CappamagicaLepo', windowFeatures);
}
//CappamagicaTragotto
function openCappamagicaTragotto() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/magicorsa_lepo.html', 'CappamagicaTragotto', windowFeatures);
}
//MagimemoryIki
function openMagimemoryIki() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/magimemory_iki.html', 'MagimemoryIki', windowFeatures);
}
//MagimemoryZabu
function openMagimemoryZabu() {
var xCrd=(screen.availWidth-502-xGap)/2;
var yCrd=(screen.availHeight-402-yGap)/2; 
windowFeatures = 'width=500,height=400,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magicanti/fase2/magimemory_zabu.html', 'MagimemoryZabu', windowFeatures);
}

/////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// LUNES //////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////

function screensaverLunes(quale){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "lunes/f3game/wwwroot/desk_screen/"+quale+"_mac_suono.zip";
	}else{
	document.location.href= "lunes/f3game/wwwroot/desk_screen/"+quale+"_pc_suono.zip";
	}	
}


function LunesGiochi(quale) {
var xCrd=(screen.availWidth-577-xGap)/2;
var yCrd=(screen.availHeight-344-yGap)/2; 
windowFeatures = 'width=577,height=344,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('lunes/f3game/wwwroot/giochi/'+quale+'.html', 'MagimemoryZabu', windowFeatures);
}

/////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// MAGOTTI ////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////

function screensaverMagotti01(){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "magotti/fase2/wwwroot/screensaver/MacSounds/magottiadi.zip";
	}else{
	document.location.href= "magotti/fase2/wwwroot/screensaver/windowsSounds/magottiadi.zip";
	}	
}

function screensaverMagotti02(){
	
	if(navigator.userAgent.indexOf('Mac') != -1){
	document.location.href= "magotti/fase2/wwwroot/screensaver/MacSounds/mac.zip";
	}else{
	document.location.href= "magotti/fase2/wwwroot/screensaver/windowsSounds/win.zip";
	}	
}

//Vanvar
function openVanvar() {
var xCrd=(screen.availWidth-691-xGap)/2;
var yCrd=(screen.availHeight-301-yGap)/2; 
windowFeatures = 'width=691,height=301,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magotti/fase2/wwwroot/magottiadi.html', 'vanvar', windowFeatures);
}

//Test
function openMagottiTest() {
var xCrd=(screen.availWidth-600-xGap)/2;
var yCrd=(screen.availHeight-500-yGap)/2; 
windowFeatures = 'width=600,height=500,status=no,top='+yCrd+',left='+xCrd
newWindow=window.open('magotti/fase2/wwwroot/consolle_new.html?caller=0', 'magottitest', windowFeatures);
}