		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 ajusteHeightBande(id) {
			if (is.ie5||is.ns6){
				this.obj = document.getElementById(id).style;
				this.obj.top = 0;
				this.obj.marginTop = "386px";
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ie4) {
				this.obj = document.all[id].style;
				this.obj.top = 0;
				this.obj.marginTop = "386px";
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ns4) {
				this.obj = document.layers[id];
				this.obj.top = 0;
				this.obj.marginTop = "386px";
				this.obj.visibility="show";
				return this.obj;
			}  
		}
		function ajusteHeightFond(id) {
			if (is.ie5||is.ns6){
				this.obj = document.getElementById(id).style;
				this.obj.top = 0;
				this.obj.marginTop = 0;
				this.obj.height = "580px";
				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.height = "580px";
				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.height = "580px";
				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 = "-500px";
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ie4) {
				this.obj = document.all[id].style;
				this.obj.left = "50%";
				this.obj.marginLeft = "-500px";
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ns4) {
				this.obj = document.layers[id];
				this.obj.left = "50%";
				this.obj.marginLeft = "-500px";
				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 = "-290px";
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ie4) {
				this.obj = document.all[id].style;
				this.obj.top = "50%";
				this.obj.marginTop = "-290px";
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ns4) {
				this.obj = document.layers[id];
				this.obj.top = "50%";
				this.obj.marginTop = "-290px";
				this.obj.visibility="show";
				return this.obj;
			}  
		}
		function retablirHeightBande(id) {
			if (is.ie5||is.ns6){
				this.obj = document.getElementById(id).style;
				this.obj.top = "50%";
				this.obj.marginTop = "96px";
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ie4) {
				this.obj = document.all[id].style;
				this.obj.top = "50%";
				this.obj.marginTop = "96px";
				this.obj.visibility="visible";
				return this.obj;
			} else if(is.ns4) {
				this.obj = document.layers[id];
				this.obj.top = "50%";
				this.obj.marginTop = "96px";
				this.obj.visibility="show";
				return this.obj;
			}  
		}
		function retablirHeightFond(id) {
			if (is.ie5||is.ns6){
				this.obj = document.getElementById(id).style;
				this.obj.top = 0;
				this.obj.marginTop = 0;
				this.obj.height = "100%";
				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.height = "100%";
				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.height = "100%";
				this.obj.visibility="show";
				return this.obj;
			}  
		}
		function resizing() {
			if (document.body.clientWidth<documentWidth) {
				ajusteWidth("container"); 
			} else {
				retablirWidth("container");
			}
			if (document.body.clientHeight<documentHeight) {
				ajusteHeight("container"); 
				ajusteHeightBande("bande-verte"); 
				ajusteHeightFond("fond-site"); 
			} else { 
				retablirHeight("container");
				retablirHeightBande("bande-verte");
				retablirHeightFond("fond-site");
			}
		}
