		function globalTabOver(tabNumber){
			if (document.body.className != 'navscheme' + (tabNumber + 1)) {
				document.getElementById('globaltab'+tabNumber).className = 'on';
			}
		}
		
function globalTabOut(tabNumber){							   
	if (document.body.className != 'navscheme' + (tabNumber + 1)) {
		document.getElementById('globaltab'+tabNumber).className = '';
	}
}

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_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  if ((obj=MM_findObj(args[i]))!=null) { 
     v=args[i+2];
    if (obj.style) { 
    obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; 
    }
    obj.visibility=v; 
    }
   }
//-->

function openLinkMenu(page,index){
 for(i=1; i<=6; i++){
    if( i!=index ) 
      document.getElementById(i).style.color="#FF9900";
    else 
     document.getElementById(i).style.color="#9A0000";
 }
 top.frames["mainFrame"].location.href=page;							   
}


function openLinkSottoMenu(page,index,indexSottoMenu){
 for(i=1; i<=6; i++){
    if( i!=index ) 
      document.getElementById(i).style.color="#FF9900";
    else 
     document.getElementById(i).style.color="#9A0000";
 }
  for(ii=7; ii<=11; ii++){
    if( ii!=indexSottoMenu ) 
      document.getElementById(ii).style.color="#FF9900";
    else 
     document.getElementById(ii).style.color="#9A0000";
 }
 top.frames["mainFrame"].location.href=page;							   
}

function openLinkEventi(page,index){
  for(i=1; i<6; i++){
    if( i!=index ) 
     top.frames["topFrame"].document.getElementById(i).style.color="#FF9900";
    else 
     top.frames["topFrame"].document.getElementById(i).style.color="#9A0000";
 }
 top.frames["mainFrame"].location.href=page;
}


function openLinkGallery(page,index){
  for(i=7; i<=11; i++){
    if( i!=index ) 
     top.frames["topFrame"].document.getElementById(i).style.color="#FF9900";
    else 
     top.frames["topFrame"].document.getElementById(i).style.color="#9A0000";
 }
 top.frames["mainFrame"].location.href=page;
}


function sendmail(){
 var mailTo =document.info.recipient.value;
 var senderMail =document.info.visitor_email.value; 
 var subjectMail = document.info.argomento.options[document.info.argomento.options.selectedIndex].value;
 var bodyText =document.info.messaggio.value; 
 var url = 'mailto:'+mailTo +'?FROM='+senderMail+'&SUBJECT='+subjectMail +'&BODY='+bodyText ;
 var sendOk = false;
 if( checkbodytxt(bodyText)){
     document.info.action=url;
     document.info.submit();
     sendOk = true;
 } 
 if(sendOk == true){
  alert("La mail è stata inviata");
  return false;
 }
}

function checkbodytxt(txt){
	if( txt == "" ){
	    alert("Attenzione devi inserire la tua mail");
	    return false;
	}else return true;
}





					


