<!--
function highlightNavigation(obj, onoff)
{
	highlight(obj, onoff, 'navon', 'navoff');
}

function highlightLeftBoxes(obj, onoff)
{
	highlight(obj, onoff, 'leftboxon', 'leftboxoff');
}

function highlightLista(obj, onoff)
{
	highlight(obj, onoff, 'listaon', 'listaoff');
}

function highlightDiv(obj, onoff)
{
	highlight(obj, onoff, 'divon', 'divoff');
}

function highlight(obj, onoff, classon, classoff)
{
	if(obj.id == currenttab) return;
	
	if(onoff == 1){obj.className = classon;}
	else {obj.className = classoff;}
}

function changeBackgroundColor(obj, bgcolor)
{
	obj.style.backgroundColor = bgcolor;
}

function changeSelection(obj, url)
{
	if(obj.id == currenttab) return;
	curobj = document.getElementById(currenttab);
	curobj.className = 'navoff';
	
	obj.className = 'SELECTED_PAGE';
	currenttab = obj.id;
	
	//loadContentTab(storingdiv, url);
}


/*
* Instanziazione del componente XMLHttpRequest usato per il caricamento dei frammenti HTML
*/
var xmlhttp;
function getXMLHTTP()
{
    xmlhttp=false;
    /*@cc_on @*/
    /*@if (@_jscript_version >= 5)
    // JScript gives us Conditional compilation, we can cope with old IE versions.
    // and security blocked creation of the objects.
     try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
     } catch (e) {
      try {
       xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
       xmlhttp = false;
      }
     }
    @end @*/
    if (!xmlhttp && typeof XMLHttpRequest!='undefined')
    {
    	xmlhttp = new XMLHttpRequest();
    }
    

    return xmlhttp;
}

//
// trim function
//
function trim(s)
{
  var x = s;
  var reg1 = /^\s*(.*)/g;
  var reg2 = /(.?)\s*$/g;

  x=x.replace(reg1, "$1");
  x=x.replace(reg2, "$1");

  return x;
}

window.onload=function(){
    
	if(window['Nifty']){Nifty("div#footer","big bottom");}
	//Nifty(".news .boxetichetta", "middle top");	    
	if(document.getElementById(currenttab))document.getElementById(currenttab).className='SELECTED_PAGE';
	else{currenttab = null;}
    if(window['localonload']){localonload();}
}

window.onunload=function(){
    if(window['localonunload']){localonunload();}    
}

//-->

