function MyFontSize(dimensione){

theStyle = null;

if(dimensione=="p")theStyle = "11px";

if(dimensione=="m")theStyle = "12px";

if(dimensione=="g")theStyle = "14px";

if(dimensione=="h")theStyle = "16px";

if(theStyle)

//document.getElementsByTagName("p")[0].style.fontSize = theStyle;

document.getElementById('blocco_principale').style.fontSize = theStyle;

}



function precaricaimmagini(){

if (document.images){

var filediimmagini = precaricaimmagini.arguments;

var matriceprecaricate = new Array();

for (var i=0; i<filediimmagini.length; i++){

matriceprecaricate[i] = new Image;

matriceprecaricate[i].src = filediimmagini[i];}}}



function cambiaInfotumore() 

{

window.location=document.getElementById("menu_infotumore").value;

}



function cambiaInfoambulatori() 

{

window.location=document.getElementById("menu_infoambulatori").value;

}



function cambiaInfoaiutarci() 

{

window.location=document.getElementById("menu_aiutarci").value;

}



function cambiaRegioneSezioni() 

{

window.location=document.getElementById("tendina_regioni").value;

}



function cambiaRegioneAmbulatori() 

{

window.location=document.getElementById("tendina_ambulatori").value;

}


// script per variare lo sfondo

var sfondi = new Array();

sfondi[sfondi.length] = "img/background_logo.jpg";
//sfondi[sfondi.length] = "http://www.lilt.it/img/nastro-bianco.jpg";
//sfondi[sfondi.length] = "http://www.lilt.it/img/sfondo_nastrorosa.jpg";

var random = Math.round(Math.random()*(sfondi.length-1));

document.write("<body style=\" background: url("+sfondi[random]+") no-repeat fixed top center #eeeeee \">");

