// JavaScript Document
function ingrandisci(pippo) {
//alert(i);
window.open(pippo,'','left=100, top=100, width=800,height=600, resizable, scrollbars');
}
function apri(sito){
window.open(sito, '');
}
//////////////////

//////colora le celle///////////////////

function colora(){
	this.style.color= "#04018A";
	this.style.backgroundColor="#FFFFFF"
	this.style.borderTop="solid #EEEEEE 1px";
	this.style.borderLeft="solid #EEEEEE 1px";
	this.style.borderBottom="solid #0D0D0D 1px";
	this.style.borderRight="solid #0D0D0D 1px";
	}
/////////////////////
function torna(){
	this.style.color= "#202020";
	this.style.backgroundColor="#FFFFFF"
	this.style.borderTop="solid #FFFFFF 1px";
	this.style.borderLeft="solid #FFFFFF 1px";
	this.style.borderBottom="solid #FFFFFF 1px";
	this.style.borderRight="solid #FFFFFF 1px";
	}
///////////////////////////
function clic(pag,pippo){
	location.href=pag;
	pippo.style.color= "#04018A";
	pippo.style.backgroundColor="#F8F8F8"
	pippo.style.borderBottom="solid #FFFFFF 1px";
	pippo.style.borderRight="solid #FFFFFF 1px";
	pippo.style.borderTop="solid #0D0D0D 1px";
	pippo.style.borderLeft="solid #0D0D0D 1px";
			
	}
/////////////////////////
		function inserisci_immagine(indice_pag) {  
    //indice_pag;
    if(document.getElementById && document.createElement) {   
    // Creiamo il nuovo elemento IMG e   
    // settiamo l'attributo src, che recupera l'immagine  
    if(indice_pag == 2){ 
    immagine = document.createElement('IMG');   
    immagine.setAttribute('src','../IMG/titoli/struttura.jpg');    
    // inseriamola quindi nel nostro paragrafo   
    document.getElementById('im').appendChild(immagine);   
      } else if (indice_pag == 4) {
          immagine = document.createElement('IMG');   
    immagine.setAttribute('src','../IMG/titoli/scuola.jpg');    
    // inseriamola quindi nel nostro paragrafo   
    document.getElementById('im').appendChild(immagine);
    
        }
      }
    } 
///////////////////////////////////////////////////////
function scopri(pippo){

if (pippo.style.display == 'none')
{
pippo.style.display = '';
}
else
{
pippo.style.display = 'none';
}
}

//////////////////////////////ONLOAD//////////////////////////////////////////////////////////
function pulsanti()
  {

  preloadImages();//per i pulsanti rossi

	T1 = document.getElementById('TB01');
	T2 = document.getElementById('TB02');
	T3 = document.getElementById('TB03');
	T4 = document.getElementById('TB04');
	T5 = document.getElementById('TB05');
	T6 = document.getElementById('TB06');
	T7 = document.getElementById('TB07');
	T8 = document.getElementById('TB08');
	T9 = document.getElementById('TB09');
	T10 = document.getElementById('TB10');
	//T11 = document.getElementById('TB11');
	//T12 = document.getElementById('TB12');
	//T13 = document.getElementById('TB13');
	//T14 = document.getElementById('TB14');
/////////////////////////////////////////////
  per = document.getElementById('PER');
  ling= document.getElementById('LING');
  tec = document.getElementById('TEC');
//corsi = new Array(per,ling,tec);
/////////////////////////////////////////////	
	
	tutti = new Array(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10,per,ling,tec);

 for (f=0; f<(tutti.length-3); f++) 
  {
	tutti[f].onmouseover = colora;
	tutti[f].onmouseout = torna;
	tutti[f].style.cursor = "pointer";
	}
/*for(i=12;i<(tutti.length-12);i++)
{
tutti[i].style.display = 'none';
}*/

//  scopri(pippo);
  }
//  window.onload = pulsanti();

/////////////////////////////////////////////////////////////////////////////////
//////funzioni per i link
///////////////////
function apri(pag,pippo){
	location.href=pag;
}
//////////////////
function aprifinestra(nuovo){
if(document.all){
	window.open(nuovo,'','left=50,top=50,height=550,width=700,resizable,scrollbars');
	}else{
	window.open(nuovo, '','screenX=50,screenY=50,height=550,width=700,resizable,scrollbars');
	}	
}
///////////
function nuova_finestra(nuovo){
if(document.all){
	window.open(nuovo,'','left=50,top=50,height=550,width=700,resizable,scrollbars,titlebar,toolbar,status,location,directories');
	}else{
	window.open(nuovo, '','screenX=50,screenY=50,height=550,width=700,resizable,scrollbars,titlebar,toolbar,status,location,directories');
	}	
}
//////////////////
function hide(){
 for(m=0;m<tabelle.length;m++){
 tabelle[m].style.display = 'none';
 	}
 }
 ///////////////////
 //window.onload=function(){
 men01=document.getElementById('menu01');
 //}
function aprichiudi(pippo){
	if(pippo.style.display ==  'none'){
	for(i=0; i<pippo.lenght; i++){
	pippo.style.display='block';
	}
		}else{
		for(i=0; i<pippo.length; i++){
			pippo.style.display='none';
			}
		}
}

//    <!--  Preload Script NON UTILIZZATO-->

// Preload Script
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
pulsante_01_normal_over = newImage("IMG/pulsanti/pulsante_01_normal-over.jpg");
pulsante_01_normal_down = newImage("IMG/pulsanti/pulsante_01_normal-down.jpg");
//	pulsante_02_normal_over = newImage("IMG/pulsanti/pulsante_01_over.jpg");
//	pulsante_02_normal_down = newImage("IMG/pulsanti/pulsante_01_down.jpg");
preloadFlag = true;
}
}
// -->

    <!-- End Preload Script -->
    

    

