		/*******************************************************************
		*	Recupere les proprietes CSS definient dans une feuille de style
		* cf. http://www.quirksmode.org/dom/getstyles.html#link7
		*******************************************************************/
		function getStyle(el,styleProp){
			var x = document.getElementById(el);
			if (window.getComputedStyle) {
				var y = window.getComputedStyle(x,null).getPropertyValue(styleProp);
			}
			else if (x.currentStyle){
				var y = eval('x.currentStyle.' + styleProp);
			}
			return y;
		}

		/*******************************************************************
		*	Supprime la terminaison en px d'une chaine
		*
		*	PARAMETRES
		*	chaine : la chaine a traiter
		*
		*	RESULTAT
		*	La chaine d'entrée moins 2 cractères
		*******************************************************************/
		function strip_px(chaine){
			return(chaine.slice(0,-2));
		}
					
		
		
		/*******************************************************************
		********************************************************************		
		* Objet : Objet
		********************************************************************
		*******************************************************************/		
		var Objet= function(id) {
			/******************************************************************
			* ATTRIBUTS
			******************************************************************/
			var self = this; //ruse pour pouvoir faire document.onX=monobjet.mafunction, pbm de contexte
			this.link = (typeof(id) == 'string') ? document.getElementById(id) : id;
			this.id = this.link.id;

			
			/*******************************************************************
			* METHODES
			*	Parametres :	
			*		la coordonnée
			*
			*	resultat :
			*		Modifie la coordonnée via le style CSS
			*******************************************************************/
			this.setX = function(x) {
				document.getElementById(self.id).style.left = x+'px';
			}
			
			this.setY = function(y) {
				document.getElementById(self.id).style.top = y+'px';
			}
			
			this.getX = function() {
				return parseInt(strip_px(getStyle(self.id,'left')));
			}
			
			this.getY = function() {
				return parseInt(strip_px(getStyle(self.id,'top')));
			}
			
			this.getL = function() {
				return self.link.offsetWidth;
			}
			
			this.getH = function() {
				return self.link.offsetHeight;
			}
			
			this.show = function() {
				self.link.style.visibility = 'visible';
			}	
			
			this.hide = function() {
				self.link.style.visibility = 'hidden';
			}							
		}					