	var agt=navigator.userAgent.toLowerCase();
	var is_major = parseInt(navigator.appVersion);
	var is_minor = parseFloat(navigator.appVersion);
	var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
	var is_ie3    = (is_ie && (is_major < 4));
	var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
	var is_ie4up  = (is_ie && (is_major >= 4));
	function positionne(){
			var top = 0;
			var left = 0;
		if (document.layers){ //NS
			page_width=innerWidth;
			page_height=innerHeight;
			milieu_width = (page_width/2-100);
			milieu_height = (page_height/2-12);
			if (page_width<760){
				left = 10;
			}else{
				left = milieu_width;
			}
			if (page_height<430){
				top = 10;
			}else{
				top = milieu_height - 220;
			}
			//document['principal'].left = left;
			//document['principal'].top = top;
		}else{
			if(document.all) { // IE
				page_width=document.body.clientWidth;
				page_height=document.body.clientHeight;
				var left = 0;
				var top = 0;
				milieu_width = (page_width/2-100);
				milieu_height = (page_height/2-12);
				if (!is_ie4){
					if (page_width<780){
						left =9;
					}else{
						left = milieu_width-280;
					}
					if (page_height<430){
						top = 9;
					}else{
						// Test de vérification sur le contexte. Si l'utilisateur se trouve sur le back, alors logge a une valeur Ã  true et la position par rapport au haut de la page est modifiÃ©e. Ceci n'est valable que pour IE
						if (logge == true)
						{
							milieu_height = 320;
							top = milieu_height-posH;
						}
						else
						{
							top = milieu_height-217;
						}
					}
					//document.all['principal'].style.left = left;
					//document.all['principal'].style.top = top;
				}else{
					if (page_width<780){
						left = 9;
					}else{
						left = milieu_width-390;
					}
					if (page_height<430){
						top = 9;
					}else{
						// Test de vÃ©rification sur le contexte. Si l'utilisateur se trouve sur le back, alors logge a une valeur Ã  true et la position par rapport au haut de la page est modifiÃ©e
						if (logge == 'true')
						{
							top = milieu_height-150;
						}
						else
						{
							top = milieu_height-217;
						}
					}
					//document.all['principal'].style.left = left;
					//document.all['principal'].style.top = top;
				}
			}else{
				if (document.getElementById){ // NS 6
					page_width=innerWidth;
					page_height=innerHeight;
					milieu_width = (page_width/2-100);
					milieu_height = (page_height/2-12);
					if (page_width<760){
						left = 10;
					}else{
						left = milieu_width-280;
					}
					if (page_height<430){
						top = 10;
					}else{
						top = milieu_height - 220;
					}
				}
			}
		}
	init(4,top);
	}
