
<!--

/* Contructeur layer */
function Dmc_Layer(){
/* Version 1.0 */
/* Marc */
	this.variable=false;
	this.navigateur="ie";

	this.type="document.all.";
	this.fintype="";
	this.is_style="style";
	if(typeof(document.all)=="object"){
		this.navigateur="ie";
		this.type="document.all.";
		this.fintype="";
	}
	
	if(typeof(document.layers)=="object"){
		this.navigateur="net";
		this.type="document.layers.";
		this.is_style="style";
		this.fintype="";
	}
	if((typeof(document.getElementById)=="function")&&(typeof(document.all)!="object")){
		this.navigateur="net6";
		this.type="document.getElementById('";
		this.fintype="')";
	}
	this.is_object=Dmc_object;
	this.is_sousobject=Dmc_sousobject;
	
	/* this.f_visible=Dmc_visible; */
	/* this.f_cacher=Dmc_cacher; */
	
	/* this.set_width=Dmc_setwidth; */
	/* this.set_height=Dmc_setheight; */
	/* this.get_width=Dmc_getwidth; */
	/* this.get_height=Dmc_getheight; */
	
	/* this.set_posx=Dmc_setposx; */
	/* this.set_posy=Dmc_setposy; */
	/* this.get_posx=Dmc_getposx; */
	/* this.get_posy=Dmc_getposy; */
	
	/* this.set_url=Dmc_seturl; */
	/* this.get_url=Dmc_geturl; */
	
	/* this.set_texte=Dmc_settexte; */
	
	/* this.getfond=Dmc_getfond; */
	/* this.setfond=Dmc_setfond; */
	
	/* ne pas utiliser  */
	/* this.getBack=Dmc_getback; */
	/* this.setback=Dmc_setback; */

}

/* +++++++++++++++++++++++++++++++++++++++ */
/* Test si le layer existe  */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_object(nom){
	/* Version 1.0 */
	/* Marc */
	var texte=this.type+nom+this.fintype;
	var resultat=((typeof(eval(texte))=="object") && (typeof(eval(texte)) !=null))? eval(texte):false;
	return resultat;
}

/* +++++++++++++++++++++++++++++++++++++++ */
/* Test si le layer dans un layer  existe  */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_sousobject(parent,fils){
	/* Version 1.0 */
	/* Marc */
	var resultat=false;
	var texte=this.type+fils+this.fintype;
	if(this.navigateur=="net" && typeof(this.is_object(parent))=="object"){
		if(typeof(this.is_object(parent).eval(texte))=="object"){
			resultat=this.is_object(parent).eval(texte);
		}
		else{
			alert("pas un sous object");
		}
	}
	else{
		if(typeof(eval(texte))=="object"){
			resultat=eval(texte);
		}
		else{
			alert("pas un sous object");
		}
	}
	return resultat;
}

/* +++++++++++++++++++++++++++++++++++++++ */
/* déclaration de l'objet Dmc_Layer        */
/* Bien declarer en variable my_layer      */
/* Car utilisé dans d'autre objet          */
/* +++++++++++++++++++++++++++++++++++++++ */




/* +++++++++++++++++++++++++++++++++++++++ */
/* Recupère la couleur de fond */
/* @nom un objet layer */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_getfond(nom){
	/* Version 1.0 */
	/* Marc */
	var resultat=false;
	if(typeof(nom)=="object"){
		if(this.navigateur=="net"){
			 resultat=nom.bgColor;
		}
		else{
			resultat=nom.style.backgroundColor;
		}
	}
	return resultat;
}

/* Associer au constructeur */
Dmc_Layer.prototype.getfond=Dmc_getfond;
/* appel  : my_layer.getfond()  */


/* +++++++++++++++++++++++++++++++++++++++ */
/* Change la couleur de fond */
/* @nom un objet layer */
/* @couleur #000000 */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_setfond(nom,couleur){
	/* Version 1.0 */
	/* Marc */
	if(typeof(nom)=="object"){
		if(this.navigateur=="net"){
			nom.bgColor=couleur;
		}
		else{
			nom.style.backgroundColor=couleur;
		}
	}
}
/* Associer au constructeur */
Dmc_Layer.prototype.setfond=Dmc_setfond;
/* appel  : my_layer.setfond()  */

/* +++++++++++++++++++++++++++++++++++++++ */
/* Ecriture dans un layer */
/* @nom un objet layer */
/* @texte texte */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_settexte(nom,texte){
	/* Version 1.0 */
	/* Marc */
	/* a tester */
	if(this.is_object(nom))	{
		if(this.navigateur=="net"){
			this.is_object(nom).document.open();
			this.is_object(nom).document.write(texte);
			this.is_object(nom).document.close();
		}
		else{
			this.is_object(nom).innerHTML=texte;
		}
	}
}
/* Associer au constructeur */
Dmc_Layer.prototype.set_texte=Dmc_settexte;
/* appel  : my_layer.set_texte()  */


/* +++++++++++++++++++++++++++++++++++++++ */
/* Récupère l'url d'un layer */
/* @nom un objet layer */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_geturl(nom){
	/* Version 1.0 */
	/* Marc */
	/* a tester */
	var resultat=false;
	if(this.is_object(nom)){
		if(this.navigateur=="net"){
			resultat=false;
		}
		else{
			resultat=this.is_object(nom).src;
		}
	}
	return resultat;
}
/* Associer au constructeur */
Dmc_Layer.prototype.get_url=Dmc_geturl; 
/* appel  : my_layer.get_url()  */

/* +++++++++++++++++++++++++++++++++++++++ */
/* Change l'url d'un layer*/
/* @nom un objet layer */
/* @url nouvelle url */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_seturl(nom,url){
	/* Version 1.0 */
	/* Marc */
	/* a tester */
	if(this.is_object(nom) && (url !="")){
		if(this.navigateur=="net"){
			this.is_object(nom).src=url;
		}
		else{
			this.is_object(nom).style.src=url;
		}
	}
}
/* Associer au constructeur */
Dmc_Layer.prototype.set_url=Dmc_seturl;
/* appel  : my_layer.set_url()  */


/* +++++++++++++++++++++++++++++++++++++++ */
/* Cache un layer */
/* @nom un objet layer */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_cacher(nom){
	/* Version 1.0 */
	/* Marc */
	if(typeof(nom)=="object"){
		if(this.navigateur=="net"){
			nom.visibility='hide';
		}
		else{
			nom.style.visibility='hidden';
		}
	}
}
/* Associer au constructeur */
Dmc_Layer.prototype.f_cacher=Dmc_cacher; 
/* appel  : my_layer.f_cacher()  */


/* +++++++++++++++++++++++++++++++++++++++ */
/* Rend visible un layer */
/* @nom un objet layer */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_visible(nom){
	/* Version 1.0 */
	/* Marc */
	if(typeof(nom)=="object"){
		if(this.navigateur=="net"){
			nom.visibility='show';
		}
		else{
			nom.style.visibility='visible';
		}
	}
}
/* Associer au constructeur */
Dmc_Layer.prototype.f_visible=Dmc_visible; 
/* appel  : my_layer.f_visible()  */


/* +++++++++++++++++++++++++++++++++++++++ */
/* Change la position y*/
/* @nom un objet layer */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_setposy(nom,pos){
	/* Version 1.0 */
	/* Marc */
	if((typeof(nom)=="object") && (!isNaN(pos))){
		var position=parseInt(pos);
		if(this.navigateur=="net"){
			nom.pageY=position
		}
		else{
			nom.style.top=position
		}
	}
}
/* Associer au constructeur */
Dmc_Layer.prototype.set_posy=Dmc_setposy;
/* appel  : my_layer.set_posy()  */


/* +++++++++++++++++++++++++++++++++++++++ */
/* Change la position x*/
/* @nom un objet layer */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_setposx(nom,pos){
	/* Version 1.0 */
	/* Marc */
	if((typeof(nom)=="object") && (!isNaN(pos))){
		var position=parseInt(pos);
		if(this.navigateur=="net"){
			nom.pageX= position;
		}
		else{
			nom.style.left= position;
		}
	}
}
/* Associer au constructeur 							*/
Dmc_Layer.prototype.set_posx=Dmc_setposx;
/* appel  : my_layer.set_posx()  */

/* +++++++++++++++++++++++++++++++++++++++ */
/* Récupère la position y d'un layer */
/* @nom un objet layer */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_getposy(nom){
	/* Version 1.0 */
	/* Marc */
	var resultat=false;
	if(typeof(nom)=="object"){
		if(this.navigateur=="net"){
			resultat=parseInt(nom.pageY);
		}
		else
		{
			resultat=parseInt(nom.style.top);
		}
	}
	return resultat;
}
/* Associer au constructeur */
Dmc_Layer.prototype.get_posy=Dmc_getposy;
/* appel  : my_layer.get_posy()  */


/* +++++++++++++++++++++++++++++++++++++++ */
/* Récupère la position x du layer */
/* @nom un objet layer */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_getposx(nom){
	/* Version 1.0 */
	/* Marc */
	var resultat=false;
	if(typeof(nom)=="object"){
		if(this.navigateur=="net"){
			resultat=parseInt(nom.pageX);
		}
		else{
			resultat=parseInt(nom.style.left);
		}
	}
	return resultat;
}
/* Associer au constructeur 							*/
Dmc_Layer.prototype.get_posx=Dmc_getposx;
/* appel  : my_layer.get_posx() 					 */

/* +++++++++++++++++++++++++++++++++++++++ */
/* Récupère la longueur d'un layer */
/* @nom un objet layer */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_getwidth(nom){
	/* Version 1.0 */
	/* Marc */
	var resultat=false;
	if(typeof(nom)+""=="object"){
		if(this.navigateur=="net"){
			resultat=parseInt(nom.clip.width);
		}
		else{
			resultat=parseInt(nom.style.width);
		}
	}
	return resultat;
}
/* Associer au constructeur */
Dmc_Layer.prototype.get_width=Dmc_getwidth;
/* appel  : my_layer.get_width()  */

/* +++++++++++++++++++++++++++++++++++++++ */
/* Récupère la hauteur d'un layer */
/* @nom un objet layer */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_getheight(nom){
	/* Version 1.0 */
	/* Marc */
	var resultat=false;
	if(typeof(nom)=="object"){
		if(this.navigateur=="net"){
			resultat=parseInt(nom.clip.height);
		}
		else{
			resultat=parseInt(nom.style.height);
		}
	}
	return resultat;
}
/* Associer au constructeur */
Dmc_Layer.prototype.get_height=Dmc_getheight;
/* appel  : my_layer.get_height()  */

/* +++++++++++++++++++++++++++++++++++++++ */
/* Change la longueur d'un layer */
/* @nom un objet layer */
/* @pos nouvelle position */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_setwidth(nom,pos){
	/* Version 1.0 */
	/* Marc */
	if(typeof(nom)=="object" && (!isNaN(pos))){
		var longueur=parseInt(pos);
		if(this.navigateur=="net"){
			nom.width=longueur;
		}
		else{
			nom.style.width=longueur;
		}
	}
}
/* Associer au constructeur */
Dmc_Layer.prototype.set_width=Dmc_setwidth;
/* appel  : my_layer.set_width()  */

/* +++++++++++++++++++++++++++++++++++++++ */
/* Change la hauteur d'un layer */
/* @nom un objet layer */
/* @pos nouvelle position */
/* +++++++++++++++++++++++++++++++++++++++ */
function Dmc_setheight(nom,pos){
	/* Version 1.0 */
	/* Marc */
	if((typeof(nom)=="object") && (!isNaN(pos))){
		var hauteur=parseInt(pos);
		if(this.navigateur=="net"){
			nom.height=hauteur;
		}
		else{
			nom.style.height=hauteur;
		}
	}
}
/* Associer au constructeur */
Dmc_Layer.prototype.set_height=Dmc_setheight;
/* appel  : my_layer.set_height()  */


//-->
