<!--
function e_mail(){
	args=e_mail.arguments; document.MM_returnValue = false;
	eval("parent.location='mailto:"+args[0]+"@"+args[1]+"'");
}
  
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

function winopen(){
	args=winopen.arguments;
    ind="foto.php?foto="+args[0];
	if (args.length>1){
		ind=ind+"&d="+args[1];
	}
	window.open(ind,'','toolbar=no, directories=no, location=no, status=no, menubar=no, resizable=yes, scrollbars=yes, width=50, height=50,,,,');
}
		
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function set_lang(){
	args=set_lang.arguments
	ind="set_lang.php?lang="+args[0];
	location=ind;
}


function getEl(id)
{
    element = document.getElementById(id);

    return element;
}

function hideEl(id)
{
    var element = getEl(id);

    element.style.display = 'none';
}

function showEl(id)
{
    var element = getEl(id);

    element.style.display = '';
}

function ShowHide(sid, last)
{
    //var p = document.images['plus_minus_' + sid];
    var el = 'info_' + sid;

    if(getEl(el).style.display == 'none') {

        var class_name = (last == true) ? 'meno_info ultimo' : 'meno_info';

        showEl(el);
        getEl('p_' + sid).className = class_name;
        //getEl('href_' + sid).innerHTML = 'Meno Informazioni';

    } else {

        var class_name = (last == true) ? 'piu_info ultimo' : 'piu_info';

        hideEl(el);
        getEl('p_' + sid).className = class_name;
        //getEl('href_' + sid).innerHTML = 'Pi&ugrave; Informazioni';

    }
}

// funzioni base per Ajax

function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}

//-->