ti ringrazio davvero della risposta...
ho preso esempio da un altro script che utilizzava la funzione settimout ...però il codice nn funziona...
cioè non da nessun errore... per quando richiamo hide('prova1')
non fa nulla...

ecco il codice modificato

codice:
var delay_hide=500


function switch(id){

	 if (document.getElementById){
                        document.getElementById("prova").style.display = 'none';
                        document.getElementById("prova2").style.display = 'none';
      			document.getElementById(id).style.display = 'block';   
  	}
}
function hide(id){
	 if (document.getElementById)
            delayhide=setTimeout("hide2()",delay_hide, id)
}

function hide2(id){
	 if (document.getElementById)
            document.getElementById(id).style.display = 'none'
}


function display(id){


	 if (document.getElementById){
                        clear_delayhide();
                        document.getElementById(id).style.display = 'block'
  	 }
}

function clear_delayhide(){
         if (window.delayhide)
            clearTimeout(delayhide)
}
ciauz e grazie