/////////////////////////////////////PARAMS/////////////////////////////////////////
var LA_path="../la/";
var LA_tbl1bgcolor="#626262";//Couleur de la bordure
var LA_page=LA_path+"installLAEN.html";//Page pour l'iframe
var LA_width=260;//Largeure
var LA_height=230;//Hauteur
var LA_left=(screen.width*30/100);//X
var LA_left=25;
var LA_top=(screen.height*20/100);//Y
var LA_top=5;
var LA_titleinstall="Installation of LivingActor&#153;";//Titre de la fenêtre
var LA_classtitleisnt="titleINSTALL";//Class du titre de la fenêtre
var LA_pathsupprimg=LA_path+"pics/suppr.png";//Image de la croix
var LA_txtclose="Close";//Texte Alt de la croix
var LA_css="<style type=\"text/css\">"
			+".titleINSTALL {"
			+"font: bolder normal 14px Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF;"
			+"}";

/////////////////////////////////////GESTION DU LAYER///////////////////////////////
function ShowDiv(){
	document.getElementById('idframinst').src=LA_page;
	document.getElementById('idframinst').style.width=LA_width;
	document.getElementById('idframinst').style.height=LA_height;
	document.getElementById('dvinfuser').style.width=(LA_width-60);
	document.getElementById('dvinfuser').style.height=(LA_height-20);
	document.getElementById('dvinfuser').style.top=LA_top;
	document.getElementById('dvinfuser').style.left=LA_left;
	document.getElementById('dvinfuser').style.visibility="visible";
	//parent.content.location="../../screen/?screen=error&data[origin]=la&data[errorcode]="+fError;

}

function HideDiv() {
	document.getElementById('dvinfuser').style.visibility="hidden";
}

<!--
var dx = 0, dy = 0;

function init() { // démarrage appelé dans la ligne body
	try{
		document.getElementById('dvinfuser').onmousedown = startDrag;
		document.getElementById('dvinfuser').onmouseup = endDrag;
	}catch(e){
		setTimeout("init()",500);
	}
}

function tryShowDiv() {
	//alert("ja");
	try{
		parent.content.ShowDiv();
	}catch(e){
		setTimeout("tryShowDiv()",500);
	}
}



function startDrag(e) { // démarrage du suivi de la souris quand la souris est enfoncée

if (IE) { // cas d'Internet Explorer
    if(onmodivinf==0){endDrag();}
    dx = window.event.clientX - document.getElementById('dvinfuser').style.pixelLeft;
    dy = window.event.clientY - document.getElementById('dvinfuser').style.pixelTop;

    document.onmousemove = drag;
    return false;

}
else if (NAV6) { // Netscape 6 et Mozilla
    if(onmodivinf==0){endDrag();}
    current=document.getElementById('dvinfuser').style;
    dx = e.clientX - parseInt(current.left);
    dy = e.clientY - parseInt(current.top);

    document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = drag;
    return false;
}

return false;
}


function drag(e) { // déplacement du calque sélectionné
  if (IE) { // cas d'internet Explorer
    if(onmodivinf==0){endDrag();}
    document.getElementById('dvinfuser').style.pixelTop = window.event.clientY - dy;
    document.getElementById('dvinfuser').style.pixelLeft = window.event.clientX - dx;
    hauteur = document.getElementById('dvinfuser').style.pixelTop;
    gauche = document.getElementById('dvinfuser').style.pixelLeft;
  }
  else if (NAV6) { //IE5 ou Netscape 6
    if(onmodivinf==0){endDrag();}
	document.getElementById('dvinfuser').style.top = parseInt(e.clientY) - dy;
    document.getElementById('dvinfuser').style.left = parseInt(e.clientX) - dx;
    hauteur = document.getElementById('dvinfuser').style.top.substr(0,current.top.length - 2);
    gauche = document.getElementById('dvinfuser').style.left.substr(0,current.left.length - 2);
  }

return false;
}

function endDrag(e) { // fin du déplacement
  if (NAV6) { // netscape 4 et 6, Mozilla
  document.releaseEvents(Event.MOUSEMOVE);
  }
  document.onmousemove = null;
  return false;
}

// -->

//LAYER/////////////////////

document.write(""
+LA_css
+"</style>"
+"<div align=\"center\" id=\"dvinfuser\" style=\"width:0; height:0; visibility:hidden; position:absolute; z-index:1;\">"
+"<table border=\"0\" bgcolor=\""+LA_tbl1bgcolor+"\" cellspacing=\"0\" cellpadding=\"2\">"
+"<tr><td width=\"100%\">"
+"	<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"titleINSTALL\">"
+"		<tr bgcolor=\""+LA_tbl1bgcolor+"\" onMouseOver=\"javascript: onmodivinf=1\" onMouseOut=\"javascript: onmodivinf=0\">"
+"			<td height=\"20\" align=\"left\" nowrap class=\""+LA_classtitleisnt+"\" style=\"cursor: move;\"> "
+"			<strong>&nbsp;"+LA_titleinstall+"</strong>"
+"			</td>"
+"</td>"
+"	<td height=\"20\" align=\"right\">"
+"	<a href=\"javascript: HideDiv();\"><img src=\""+LA_pathsupprimg+"\" align=\"right\" border=\"0\" alt=\""+LA_txtclose+"\"></a>"
+"	</td></tr>"
+"	<tr><td colspan=\"2\">"
+"	<iframe align=\"middle\" name=\"instfram\" id=\"idframinst\" width=\"0\" marginwidth=\"0\" height=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\" noresize border=\"0\" framespacing=\"0\"></iframe>"
+"	</td></tr></table>"
+"</td></tr></table>"
+"</div>"
+"");
init();//Chargement des fonctions
