 switch1on  = new Image(); 
 switch1on.src ='img/n_sviluppo2.gif';
 switch1off = new Image();  
 switch1off.src = 'img/n_sviluppo1.gif';
  
 switch2on  = new Image(); 
 switch2on.src ='img/n_formazione2.gif';
 switch2off = new Image();  
 switch2off.src = 'img/n_formazione1.gif';

 switch3on  = new Image(); 
 switch3on.src ='img/n_consulenza2.gif';
 switch3off = new Image();  
 switch3off.src = 'img/n_consulenza1.gif';

 switch4on  = new Image(); 
 switch4on.src ='img/n_info2.gif';
 switch4off = new Image();  
 switch4off.src = 'img/n_info1.gif';

 switch5on  = new Image(); 
 switch5on.src ='img/n_links2.gif';
 switch5off = new Image();  
 switch5off.src = 'img/n_links1.gif';

 switch6on  = new Image(); 
 switch6on.src ='img/n_web2.gif';
 switch6off = new Image();  
 switch6off.src = 'img/n_web1.gif';

 switch7on  = new Image(); 
 switch7on.src ='img/n_area51b.gif';
 switch7off = new Image();  
 switch7off.src = 'img/n_area51.gif';

 switch0on  = new Image(); 
 switch0on.src ='img/n_home2.gif';
 switch0off = new Image();  
 switch0off.src = 'img/n_home1.gif';

function HighLight(musswitch)

 {
	switchnavn = eval(musswitch + "on");
      	document [musswitch].src = switchnavn.src;
        document [musswitch].style.cursor="hand"; 
 }

function UndoHighLight(musswitch)

 {
	switchnavn = eval(musswitch + "off");
	document [musswitch].src = switchnavn.src;
 }


function colora(obj, col1, col2)
{
obj.style.color=col1
obj.style.backgroundColor=col2
obj.style.cursor='hand'
}

function scolora(obj,col1,col2)
{
obj.style.color=col1
obj.style.backgroundColor=col2
}

function infobox(testo,colore)
{
     x_pos = (document.layers) ? e.pageX : event.clientX
     y_pos = (document.layers) ? e.pageY+15 : (event.clientY+15) + document.body.scrollTop
     box_info.style.visibility="visible";
     box_info.style.pixelLeft = x_pos;
     box_info.style.pixelTop = y_pos;
     box_info.innerHTML="<table bgcolor="+colore+" border=1 cellpadding=1 cellspacing=0  bordercolordark='#000000' bordercolorlight='#000000'><tr><td align=center style='font-family:verdana; font-size:11px;'><b>"+testo+"</b><br></td></tr></table>"
}

function noinfobox()
{

     box_info.style.visibility="hidden";

}


function linkbox(n)
{

     link_box.style.visibility="visible";
     link_box.style.pixelTop = n;

}

function nolinkbox()
{

     link_box.style.visibility="hidden";

}

function juke_box()
{

    
     jukebox.style.visibility="visible";
     mp3title.mp3filename.value=parent.player.playermp3.mp3name.value

     
}


function nojuke_box()
{
     
     mp3title.mp3filename.value=""
     jukebox.style.visibility="hidden";

}

function testo3d(testo)

{

document.write("<td valign=top class='Hometext'>&nbsp;"+testo+"<div class='Hometext2'>&nbsp;"+testo+"</div></td>")

}

function vai(link)

{

window.location=link;

}

function CloseParent()
  {
     figlio = window.parent;
     figlio.opener = window.parent;
     figlio.close()
  }

function openBase()
  {
     
     window.open("IE6_index.asp")
  }

function openBase2()
  {
     
     window.open("default.asp")
  }




function playloop()
{

parent.player.loop.play();

}

function stoploop()
{

parent.player.loop.stop();
parent.player.playermp3.mp3name.value=""


}

function web_design()
{

webdesign.style.visibility="visible";

setTimeout("apri1(0)",0) 

}

function apri1(op)
{

if (op <=100)
{
webdesign.filters.alpha.opacity = op
valore=op
setTimeout("apri1(valore+2)",25) 
}



}

function noweb_design()
{
     
setTimeout("chiudi1(webdesign.filters.alpha.opacity)",0) 

  
}

function chiudi1(up)
{
     
   if (up > 0)
   {
      webdesign.filters.alpha.opacity = up
      valore2=up
      setTimeout("chiudi1(valore2-2)",25) 
   }

   if (up <= 0)
   {
     webdesign.style.visibility="hidden";

   }
}

function pro_getti()
{

progetti.style.visibility="visible";

 setTimeout("apri2(0)",0) 

}

function apri2(opx)
{

if (opx <=100)
{
progetti.filters.alpha.opacity = opx
valore3=opx
setTimeout("apri2(valore3+2)",25) 
}



}

function no_progetti()
{
     
setTimeout("chiudi2(progetti.filters.alpha.opacity)",0) 

}

function chiudi2(upx)
{
     
   if (upx > 0)
   {
      progetti.filters.alpha.opacity = upx
      valore4=upx
      setTimeout("chiudi2(valore4-2)",25) 
   }

   if (upx <= 0)
   {
     progetti.style.visibility="hidden";

   }
}
