<!-- GESTORE DI PAGINE AVULSE -->

var urlFrmSetOut="../dentarius.htm";
var urlFrmSetIn="../frameset/home.htm"; 
var myLoc=window.document.location;
var winPointer=window;
var myParentLoc=window.parent.document.location;

	function doAvHandler(){
		if (myLoc==myParentLoc){
			//pagina avulsa	
			document.body.innerHTML="<iframe border=0 frameborder=no framespacing=0 scrolling=no width='100%' height='100%' src='"+urlFrmSetOut+"'></iframe> ";
			document.body.scroll="no";
			winPointer=frames[0];
			setTimeout("step1()",10);
		}
	}
	
	function step1(){//attende il caricamento del frameset piu esterno
		
		if (winPointer.frames.length==0){setTimeout("step1()",10);}
		else {
			//alert("step 1: "+winPointer.document.location+" load with:"+winPointer.frames.length+" frames");
			winPointer=winPointer.frames[2]; setTimeout("step2()",10);
			}
	}
	
	function step2(){//attende il caricamento dell'ultimo frameset
		if (winPointer.frames.length==0){setTimeout("step2()",10);}
		else {
			//alert("step 2: "+winPointer.document.location+" load");
			winPointer=winPointer.frames[0];winPointer.navigate(myLoc);}
	}
	