		function Is() {
				var agent   = navigator.userAgent.toLowerCase();
				this.major  = parseInt(navigator.appVersion);
				this.minor  = parseFloat(navigator.appVersion);
				this.ns     = ((agent.indexOf('mozilla')   != -1) &&
											(agent.indexOf('spoofer')    == -1) &&
											(agent.indexOf('compatible') == -1) &&
											(agent.indexOf('opera')      == -1) &&
											(agent.indexOf('webtv')      == -1));
				this.ns4    = (this.ns && (this.major      ==  4));
				this.ns6    = (this.ns && (this.major      >=  5));
				this.ie     = (agent.indexOf("msie")       != -1);
				this.ie3    = (this.ie && (this.major      <   4));
				this.ie4  	= (this.ie && (this.major >= 4));
				this.ie5    = (this.ie && (this.major      ==  4) &&
											(agent.indexOf("msie 5.0")   != -1));
				this.ieX    = (this.ie && !this.ie3 && !this.ie4);
		}
				
		var is = new Is();

		function ajusteWidth(id) {
			if (is.ie5||is.ns6){
				this.obj = document.getElementById(id).style;
				this.obj.left = 0;
				this.obj.marginLeft = 0;
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ie4) {
				this.obj = document.all[id].style;
				this.obj.left = 0;
				this.obj.marginLeft = 0;
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ns4) {
				this.obj = document.layers[id];
				this.obj.left = 0;
				this.obj.marginLeft = 0;
				this.obj.visibility="show";
				return this.obj;
			}  
		}
		function ajusteHeight(id) {
			if (is.ie5||is.ns6){
				this.obj = document.getElementById(id).style;
				this.obj.top = 0;
				this.obj.marginTop = 0;
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ie4) {
				this.obj = document.all[id].style;
				this.obj.top = 0;
				this.obj.marginTop = 0;
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ns4) {
				this.obj = document.layers[id];
				this.obj.top = 0;
				this.obj.marginTop = 0;
				this.obj.visibility="show";
				return this.obj;
			}  
		}
		function retablirWidth(id) {
			if (is.ie5||is.ns6){
				this.obj = document.getElementById(id).style;
				this.obj.left = "50%";
				this.obj.marginLeft = "-"+parseInt(documentWidth/2)+"px";
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ie4) {
				this.obj = document.all[id].style;
				this.obj.left = "50%";
				this.obj.marginLeft = "-"+parseInt(documentWidth/2)+"px";
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ns4) {
				this.obj = document.layers[id];
				this.obj.left = "50%";
				this.obj.marginLeft = "-"+parseInt(documentWidth/2)+"px";
				this.obj.visibility="show";
				return this.obj;
			}  
		}
		function retablirHeight(id) {
			if (is.ie5||is.ns6){
				this.obj = document.getElementById(id).style;
				this.obj.top = "50%";
				this.obj.marginTop = "-"+parseInt(documentHeight/2)+"px";
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ie4) {
				this.obj = document.all[id].style;
				this.obj.top = "50%";
				this.obj.marginTop = "-"+parseInt(documentHeight/2)+"px";
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ns4) {
				this.obj = document.layers[id];
				this.obj.top = "50%";
				this.obj.marginTop = "-"+parseInt(documentHeight/2)+"px";
				this.obj.visibility="show";
				return this.obj;
			}  
		}
		function resizing() {
			if (centrageX==1) {
				if (document.body.clientWidth<documentWidth) ajusteWidth("container"); else retablirWidth("container");
			}
			if (centrageY==1) {
				if (document.body.clientHeight<documentHeight) ajusteHeight("container"); else retablirHeight("container");
			}
		}

