
function LC_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=LC_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function voirpanorama(fichierproperties,cheminanimation,largeurapplet,hauteurapplet,largeuranimation,hauteuranimation,layeranimation,layervuepanorama) {
	if (!largeurapplet) largeurapplet="270";
	if (!hauteurapplet) hauteurapplet="161";
	if (!largeuranimation) largeuranimation="496";
	if (!hauteuranimation) hauteuranimation="161";
	if (!layeranimation) layeranimation="animation";
	if (!layervuepanorama) layervuepanorama="panorama";
sanimation="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\""+largeuranimation+"\" height=\""+hauteuranimation+"\">";
sanimation+="<param name=movie value=\""+cheminanimation+"\">";
sanimation+="<param name=quality value=high><param name=\"LOOP\" value=\"false\">";
sanimation+="<embed src=\""+cheminanimation+"\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\""+largeuranimation+"\" height=\""+hauteuranimation+"\" loop=\"false\">";
sanimation+="</embed>";
sanimation+="</object>";
objet=LC_findObj(''+layeranimation+'');

if (navigator.appName=='Netscape') {objet.document.write(sanimation); objet.document.close();}
else objet.innerHTML = sanimation;
resultat="<applet name=\"Logiprorama\" code=\"Logipropanorama.class\" archive=\"applet/panorama.jar\" width=\""+largeurapplet+"\" height=\""+hauteurapplet+"\">";
resultat+="<param name=\"properties\" value=\""+fichierproperties+"\">";
resultat+="</applet>";
objet=LC_findObj(''+layervuepanorama+'');

if (navigator.appName=='Netscape') {objet.document.write(resultat); objet.document.close();}
else objet.innerHTML = resultat;

}
function LC_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.LC_p) d.LC_p=new Array();
    var i,j=d.LC_p.length,a=LC_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.LC_p[j]=new Image; d.LC_p[j++].src=a[i];}}
}
