// parametri TRUE e FALSE  -- TRUE apre levanto_territorio_ok.htm  - FALSE apre levanto_comune_ok.htm

coordinate_array = new Array();
coordinate_array[1] = new Array("160.0", "307.0", false);
coordinate_array[2] = new Array("172.5", "307.0", false);
coordinate_array[14] = new Array("264.0", "317.0", false);
coordinate_array[18] = new Array("265.0", "360.0", false);
coordinate_array[19] = new Array("207.0", "339.0", false);
coordinate_array[25] = new Array("199.0", "337.0", false);
coordinate_array[26] = new Array("214.0", "342.0", false);
coordinate_array[15] = new Array("197.0", "293.0", false);
coordinate_array[17] = new Array("248.0", "343.0", false);
coordinate_array[16] = new Array("223.0", "343.0", false);
coordinate_array[23] = new Array("281.0", "323.0", false);

coordinate_array[4] = new Array("149.0", "348.0", false);
coordinate_array[27] = new Array("195.0", "314.0", false);
coordinate_array[12] = new Array("120.0", "100.0", true);
coordinate_array[22] = new Array("202.0", "110.0", true);
coordinate_array[28] = new Array("226.0", "180.0", true);
coordinate_array[8] = new Array("186.0", "196.0", true);
coordinate_array[13] = new Array("272.0", "184.0", true);
coordinate_array[5] = new Array("195.0", "225.0", true);
coordinate_array[3] = new Array("233.0", "232.0", true);
coordinate_array[9] = new Array("248.0", "279.0", true);
coordinate_array[10] = new Array("270.0", "312.0", true);
coordinate_array[24] = new Array("292.0", "328.0", true);
coordinate_array[20] = new Array("296.0", "330.0", true);
coordinate_array[29] = new Array("292.0", "329.0", true);
coordinate_array[11] = new Array("361.0", "340.0", true);
coordinate_array[21] = new Array("346.0", "288.0", true);
coordinate_array[7] = new Array("376.0", "79.0", true);
coordinate_array[6] = new Array("380.0", "86.0", true);
coordinate_array[30] = new Array("315.0", "256.0", true);
coordinate_array[31] = new Array("140.0", "375.0", false);


function apriPDF(nomefile)
{
	nuova_window=window.open(nomefile);
	nuova_window.focus();
}

function apriRequisiti(id)
{
		var Top = Math.floor((screen.height-550)/2);
		var Left = Math.floor((screen.width-600)/2);
		finestra_specifiche=window.open('popup_standard/pop' + id + '.htm', 'Requisiti', 'scrollbars=yes, width=600, height=550, top=' + Top + ', left=' + Left);
		finestra_specifiche.focus();
}

function apriMappa(id,descrizione,id_loc,valore)
{
//alert(coordinate_array[id_loc][2])
if( coordinate_array[id_loc][2] == true )
		Path="levanto_territorio_ok.htm";
else
		Path="levanto_comune_ok.htm";		

		top.parametri= "?coordinata_x=" + escape(coordinate_array[id_loc][0])+ "&coordinata_y=" + escape(coordinate_array[id_loc][1]) + "&descrizione=" + escape(descrizione); 
		finestra_mappa = window.open(Path, "levanto", "width=650, height=460");
		finestra_mappa.focus();
	
}

function apriMappa2(id,descrizione,id_loc,valore)
{
//alert(coordinate_array[22][2])
		Path="levanto_comune_ok.htm";		
		top.parametri= ""
		finestra_mappa = window.open(Path, "levanto", "width=650, height=460");
		finestra_mappa.focus();
	
}

function apriSchedaProdotto(id)
{
	alert(id);
}

function percorsoFiles(fileTxt)
{
	var file = prompt('file:', fileTxt);
}

function creaNews(data,titolo,descrizione,link_url,id_lingua)
{
	news_win = window.open("news.htm", "news", "width=500,height=500,scrollbars=yes, status=yes,resizable=yes");
	news_win.focus();
}

function apriComeArrivare(id_lingua)
{

	mappa= window.open("mappa"+ id_lingua +".htm", "mappa", "width=800	, height=500,scrollbars=yes,resizable=yes,status=yes")
	mappa.focus();
}

function startFullScreen()
{
	finestraSapori=window.open("index_fullscreen.htm","sapori","fullscreen=yes,scrollbars=no");
}

function ApriBanner()
{
		window.open( 'banner_votaci.htm', 'Banner', 'width=320, height=320, top=200, left=300'); 
}

function bannerVincitore()
{
	finestra_banner = window.open("banner_award.htm", "banner_award", "width=300, height=400")
	finestra_banner.focus()
}

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];}
}