	
function getType() {
	//For Opera :
	var type;
	if (navigator.userAgent.indexOf("Opera")!=-1
	    && document.getElementById) return "OP"; 
	//Internet Explorer e.g. IE4 upwards :
	if (document.all) return "IE"; 
	//For Netscape version 4 :
	if (document.layers) return "NN"; 
	//Mozila e.g. Netscape 6 upwards
	if (!document.all && document.getElementById) return "MO";
	
}



function ChangeContent(id, str) {
	  
	 var type=getType();
	 if (type=="IE") {
	  	alert(document.all[id]);
	    document.all[id].innerHTML = str;
	  }
	  if (type=="NN") {
	    document.layers[id].document.open();
	    document.layers[id].document.write(str);
	    document.layers[id].document.close();
	  }
	  if (type=="MO") {
	    document.getElementById(id).innerHTML = str;
	  }
}


function mappa(p1){
//
// p1 = percorso della cartella dove sono le immagini
//
pathcartella=p1;
document.writeln("<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=0 BGCOLOR=#0a0a0a WIDTH="+"\""+"700"+"\""+"ALIGN="+"\""+"CENTER"+"\""+">");
document.writeln("  <TR>");
document.writeln("	<TD>");
document.writeln("	  <TABLE BORDER="+"\""+"0"+"\""+"WIDTH="+"\""+"100%"+"\""+"BGCOLOR="+"\""+"#ffffff"+"\""+"CELLSPACING="+"\""+"0"+"\""+"CELLPADDING="+"\""+"0"+"\""+">");
document.writeln("		<TR>");
document.writeln("		  <TD>");
document.writeln("			<OBJECT CLASSID="+"\""+"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"+"\""+" CODEBASE="+"\""+"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"+"\""+" WIDTH="+"\""+"850"+"\""+" HEIGHT="+"\""+"550"+"\""+" ID="+"\""+"theMovie"+"\""+">");
document.writeln("			<PARAM NAME="+"\""+"FlashVars"+"\""+" VALUE="+"\""+"zoomifyImagePath="+ pathcartella +"\""+">");
document.writeln("			<PARAM NAME="+"\""+"MENU"+"\""+"VALUE="+"\""+"FALSE"+"\""+">");
document.writeln("			<PARAM NAME=" + "\"" + "SRC" + "\"" + "VALUE=" + "\"" + "ptc\\cartografia\\ZoomifyViewer.swf"+"\"" +">");
document.writeln("			<EMBED FlashVars="+"\""+"zoomifyImagePath="+ pathcartella + "\""+"SRC="+"\""+"util\\ZoomifyViewer.swf"+"\""+"MENU="+"\""+"false"+"\""+"PLUGINSPAGE="+"\""+"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"+"\""+"WIDTH="+"\""+"850"+"\""+"HEIGHT="+"\""+"550"+"\""+"NAME="+"\""+"theMovie"+"\""+"></EMBED>");
document.writeln("			</OBJECT>");
document.writeln("		   </TD>");
document.writeln("		</TR>");
document.writeln("	  </TABLE>");
document.writeln("	</TD>");
document.writeln("  </TR>");
document.writeln("</TABLE>");
document.writeln("<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=0 BGCOLOR=#FFFFFF WIDTH="+"\""+"850"+"\""+"ALIGN="+"\""+"CENTER"+"\""+">");
document.writeln("  <TR>");
document.writeln("    <TD align="+"\""+"Right"+"\""+">");
document.writeln("      <Font size="+"\""+"1"+"\""+"face="+"\""+"arial"+"\""+"color="+"\""+"#1A4658"+"\""+">Powered by <a href="+"\""+"http://www.zoomify.com/"+"\""+"target="+"\""+"_blank"+"\""+">Zoomify</a></Font>");
document.writeln("    </TD>");
document.writeln("  </TR>");
document.writeln("</TABLE>");
document.close();
}


