
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,largeurapplet,hauteurapplet,layervuepanorama) {
	if (!largeurapplet) largeurapplet="372";
	if (!hauteurapplet) hauteurapplet="240";
	
	if (!layervuepanorama) layervuepanorama="panorama";

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];}}
}

