var ModeLivDessus=false, ModeLivX, ModeLivY, ModeLivCodePDV, ModeLivChaine;preloadFlag=false;var e = navigator.appVersion;var browser = "other" ;if (document.all && e.indexOf ("Macintosh") == -1){browser = "IE";var t = e.indexOf ("MSIE") + 5;var version = parseFloat(e.substr (t,3),10);if(version > 5.5) browser = "IE6";}else{browser = "other";}
var leftphoto, modecolor, topphoto, pickcolorx, pickcolory, yapickcolor;pickcolorx=0;pickcolory=0;yapickcolor=0;
var miniature_x=90, miniature_y=60;
if (browser == 'IE') ptr='hand'; else ptr='pointer';

function disableselect(E){return false;}
function reEnable(){return true;}

function GriseObjet(o, p){if (p){if (browser == 'IE') o.style.cursor='hand';else o.style.cursor='pointer';}o.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity=50)';o.style.opacity=0.5;}
function DeGriseObjet(o){o.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity=100)';o.style.opacity=1;}
function include(fichier){
       // Si notre variable globale (rattachee a  l'objet window)
       // n'existe pas, on la cree.
       if(window.includeFiles == undefined)  {
           window.includeFiles = new Array();
        }
       try {
           var script = document.createElement("script" );
           script.type = "text/javascript";
           script.src  = fichier;
           document.getElementsByTagName("head" )[0].appendChild(script);
           window.includeFiles.push(fichier);
       }
       catch(e)    {
           document.write('$lt;script type="text/javascript" src="' + fichier + '"><\/script>');
           window.includeFiles.push(fichier);
       }
}

// RECADRAGE DE PHOTOS
function Photo_MoveDown(){if (pos_y+hauteur+10<hauteurmax) Photo_DeplaceCadre(pos_x, pos_y+10);Photo_UpdateCompteur();}
function Photo_MoveUp(){if (pos_y-10>0) Photo_DeplaceCadre(pos_x, pos_y-10);Photo_UpdateCompteur();}
function Photo_MoveRight(){if (pos_x+largeur+10<largeurmax) Photo_DeplaceCadre(pos_x+10, pos_y);Photo_UpdateCompteur();}
function Photo_MoveLeft(){if (pos_x-10>0) Photo_DeplaceCadre(pos_x-10, pos_y);Photo_UpdateCompteur();}
function Photo_DeplaceCadre(x, y){var top,right,bottom,left;top=y;right=x+largeur;bottom=y+hauteur;left=x;pos_x=x;pos_y=y;DIVPhoto.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=20)";DIVPhoto.style.opacity=0.2;DIVPhoto2.style.clip="rect(" + y + " " + right + " " + bottom + " " + left + ")";DIVCadre.style.top=y + parseInt(DIVPhoto.style.top)-1;DIVCadre.style.left=x + parseInt(DIVPhoto.style.left)-1;DIVCadre.style.width=right-left+decalage;DIVCadre.style.height=bottom-top+decalage;return false;}
function Photo_MouseMove(e){var x,y;var sourisx, sourisy;var positx, posity;if (navigateur == "microsoft"){positx=event.clientX;posity=event.clientY;}else{positx=e.clientX;posity=e.clientY;}sourisx=positx;sourisy=posity;x=positx + document.body.scrollLeft-offset_x;y=posity + document.body.scrollTop-offset_y;positx=positx;posity=posity;if (y+hauteur > hauteurmax) y=hauteurmax-hauteur;if (y<ymini) y=ymini;if (x<xmini) x=xmini;if (x+largeur>largeurmax) x=largeurmax-largeur;if (AClick == true){if (ARedimensionne == true){if (sourisx-oldsourisx>0 || sourisy-oldsourisy>0) Photo_ZoomCadre(5);else Photo_ZoomCadre(-5);}else Photo_DeplaceCadre(x, y);}else{if (parseInt(positx-parseInt(DIVPhoto.style.left)-pos_x) < parseInt(largeur - 20) && parseInt(posity-parseInt(DIVPhoto.style.top)-pos_y) < parseInt(hauteur-20)){if (browser == 'IE') DIVPhoto2.style.cursor='hand'; else DIVPhoto2.style.cursor='pointer';}else DIVPhoto2.style.cursor='SE-resize';}Photo_UpdateCompteur();oldsourisx=sourisx;oldsourisy=sourisy;return false;}
function Photo_MouseDown(e){var positx, posity;if (navigateur == "microsoft"){positx=event.clientX;posity=event.clientY;}else{positx=e.clientX;posity=e.clientY;}if (parseInt(positx-parseInt(DIVPhoto.style.left)-pos_x) > parseInt(largeur - 20)||parseInt(posity-parseInt(DIVPhoto.style.top)-pos_y) > parseInt(hauteur - 20) ){ARedimensionne=true;DIVPhoto2.style.cursor='SE-resize';}else{ARedimensionne=false;if (browser == 'IE')DIVPhoto2.style.cursor='hand';else DIVPhoto2.style.cursor='pointer';offset_x=positx + document.body.scrollLeft-start_x;offset_y=posity + document.body.scrollTop-start_y;start_x=offset_x;start_y=offset_y;}oldsourisx=positx;oldsourisy=posity;AClick=true;return true;}
function Photo_MouseUp(e){var positx, posity;if (navigateur == "microsoft"){positx=event.clientX;posity=event.clientY;}else{positx=e.clientX;posity=e.clientY;}if (ARedimensionne == false){start_x=positx - offset_x;start_y=posity - offset_y;}AClick=false;ARedimensionne=false;if (browser == 'IE') DIVPhoto2.style.cursor='hand';else DIVPhoto2.style.cursor='pointer';return true;}
function Photo_UpdateCompteur(){Photo_TrouveCouleurQualite();cadrage_x=parseInt(pos_x*ratio_largeur)+old_cadrage_x;cadrage_y=parseInt(pos_y*ratio_hauteur)+old_cadrage_y;cadrage_largeur=parseInt(largeur*ratio_largeur);cadrage_hauteur=parseInt(hauteur*ratio_hauteur);var qualite=parseInt(largeur*ratio_largeur) * parseInt(hauteur*ratio_hauteur) / 1000000;var chaineInfo="Taille : " + parseInt(largeur*ratio_largeur) + "x" + parseInt(hauteur*ratio_hauteur) + "<br>Qualité : " + qualite.toFixed(3) + " Megapixels";if (document.all) document.all.infoimage.innerHTML=chaineInfo; else document.getElementById('infoimage').innerHTML=chaineInfo; return true;}
function Photo_Init(){var taille=document.body.clientWidth;var positionimage;if (taille>765) positionimage=(taille-765)/2+2;ns4 = (document.layers)? true:false;ie4 = (document.all)? true:false;AClick = false;ARecadrage = true;DIVPhoto = document.getElementById("DIVPhotoORIG");DIVPhoto.style.position="absolute";DIVPhoto.style.top=parseInt(document.getElementById('DIVPhotoORIG').style.top);DIVPhoto.style.left=positionimage;DIVPhoto2 = DIVPhoto.cloneNode(true);DIVPhoto2.style.position="absolute";DIVPhoto2.style.top=parseInt(DIVPhoto.style.top);DIVPhoto2.style.left=parseInt(DIVPhoto.style.left);DIVCadre=document.createElement("DIV");DIVCadre.style.position="absolute";DIVCadre.style.top=parseInt(DIVPhoto.style.top);DIVCadre.style.left=parseInt(DIVPhoto.style.left);DIVCadre.style.width=largeur;DIVCadre.style.height=hauteur;DIVCadre.style.border="1px solid #FF0000";DIVCadre.innerHTML="";if (browser == 'IE') DIVPhoto2.onmouseover=DIVPhoto2.style.cursor='hand'; else DIVPhoto2.onmouseover=DIVPhoto2.style.cursor='pointer';DIVPhoto2.onmousemove=Photo_MouseMove;DIVPhoto2.onmousedown=Photo_MouseDown;DIVPhoto2.onmouseup=Photo_MouseUp;document.body.appendChild(DIVCadre);document.body.appendChild(DIVPhoto2);document.body.style.cursor='';click_x=start_x;click_y=start_y;Photo_DeplaceCadre(start_x, start_y);Photo_UpdateCompteur();cadrage_rotation=rotation;return false;}
function Photo_TrouveCouleurQualite(){var tailleimage;if (ARecadrage == false) tailleimage=parseInt(largeur) * parseInt(hauteur);else tailleimage=parseInt(largeur*ratio_largeur) * parseInt(hauteur*ratio_hauteur);trouve=false;couleurqualite=tabcouleur[0];for (i=0; i<tailletab; i++){if (tailleimage<tabpixel[i]){couleurqualite=tabcouleur[i-1];trouve=true;break;}}if (trouve==false) couleurqualite=tabcouleur[i];document.getElementById("fondqualite").innerHTML="<img src=/images/mini_smiley_" + couleurqualite + ".gif>";}
function Photo_Reposition(){var taille=document.body.clientWidth;var positionimage;if (taille>765) positionimage=(taille-765)/2+2;DIVPhoto.style.top=parseInt(document.getElementById('DIVPhotoORIG').style.top);DIVPhoto.style.left=positionimage;DIVPhoto2.style.top=parseInt(DIVPhoto.style.top);DIVPhoto2.style.left=parseInt(DIVPhoto.style.left);DIVCadre.style.top=parseInt(DIVPhoto.style.top);DIVCadre.style.left=parseInt(DIVPhoto.style.left);DIVCadre.style.width=largeur;DIVCadre.style.height=hauteur;Photo_DeplaceCadre(start_x, start_y);}
function Photo_PickColor(e){if (navigateur == "microsoft"){positx=event.clientX;posity=event.clientY;}else{positx=e.clientX;posity=e.clientY;}sourisx=positx;sourisy=posity;x=positx - leftphoto;y=posity - topphoto;pickcolorx=x;pickcolory=y;yapickcolor=modecolor;if (modecolor=="luxe")finition="luxe";else finition="ex";Photo_LaunchURL(false, false);}
function Photo_InitPickColor(mode){var taille=document.body.clientWidth;var positionimage;if (taille>765) positionimage=(taille-765)/2+2;DIVPhoto = document.getElementById("DIVPhotoORIG");DIVPhoto.style.position="absolute";DIVPhoto.style.top=parseInt(document.getElementById("DIVPhotoORIG").style.top);DIVPhoto.style.left=positionimage;DIVPhoto.onmouseover=DIVPhoto.style.cursor='crosshair';DIVPhoto.onclick=Photo_PickColor;leftphoto=parseInt(DIVPhoto.style.left);topphoto=parseInt(DIVPhoto.style.top);modecolor=mode;}

// MODE DE LIVRAISON
function ModeLiv_GetMouse(e){if (browser == "other"){x=e.pageX;y=e.pageY;document.getElementById("topdeck").style.left=x-450;document.getElementById("topdeck").style.top=y+15;}else{x=event.x+document.body.scrollLeft;y=event.y+document.body.scrollTop;document.all.topdeck.style.left=x-450;document.all.topdeck.style.top=y+15;}}
function ModeLiv_AffichePopUp(check){if ( ((document.formulaire.livraison[0].checked == true && check) || !check) && ModeLivDessus == true){document.onmousemove = ModeLiv_GetMouse;chaine2="<table cellspacing=0 cellpadding=0 bgcolor=#FFFFFF width=650 style='border-style:solid; border-width:1px; border-color:#FDD872;'><tr><td><table width=100% cellspacing=0 cellpadding=0 height=230><tr height=20><td bgcolor=#D70019 align=center colspan=20><small><small><b><font color=#FFFFFF>Horaires d'ouvertures</td></tr><tr><td rowspan=50 width=300><table cellspacing=0 cellpadding=0 align=center><tr><td rowspan=2 colspan=2><img src="+URL_SITE_IMAGE+"/images/moyen-pdv-"+ModeLivCodePDV+".jpg></td><td><img src=/images/ombre/ombre_1_b.gif></td></tr><tr><td><img src=/images/ombre/ombre_2_b.gif height="+(ModeLivY-8)+" width=6></td></tr><tr><td><img src=/images/ombre/ombre_3_b.gif></td><td><img src=/images/ombre/ombre_4_b.gif height=8 width="+(ModeLivX-7)+"></td><td><img src=/images/ombre/ombre_5_b.gif></td></tr></table></td>" + ModeLivChaine + "</table></td></tr></table>";if (browser == "other"){x=e.pageX;y=e.pageY;document.getElementById("topdeck").style.left=x-450;document.getElementById("topdeck").style.top=y+15;}else{x=event.x+document.body.scrollLeft;y=event.y+document.body.scrollTop;document.all.topdeck.style.left=x-450;document.all.topdeck.style.top=y+15;}if (browser == "other"){document.getElementById("topdeck").innerHTML=chaine2;document.getElementById("topdeck").style.visibility = "visible";}else{document.all.topdeck.innerHTML = chaine2;document.all.topdeck.style.visibility = "visible";}}}
function ModeLiv_ChangeAdresse(num){var id;if (num == -1){document.formulaire.nomliv.value="";document.formulaire.prenomliv.value="";document.formulaire.adresse1liv.value="";document.formulaire.adresse2liv.value="";document.formulaire.cpliv.value="";document.formulaire.villeliv.value="";document.formulaire.societeliv.value="";document.formulaire.civiliteliv[0].checked=true;document.formulaire.titreliv.value="";}else{id=-1;for (i=0; i<numidadresseliv; i++){if (idadresseliv[i] == num){id=i;break;}}document.formulaire.nomliv.value=nom[id];document.formulaire.prenomliv.value=prenom[id];document.formulaire.adresse1liv.value=adresse1[id];document.formulaire.adresse2liv.value=adresse2[id];document.formulaire.cpliv.value=cp[id];document.formulaire.villeliv.value=ville[id];document.formulaire.societeliv.value=societe[id];document.formulaire.titreliv.value=titre[id];for (p=0; p<3; p++){if (document.formulaire.civiliteliv[p].value==civilite[id]){document.formulaire.civiliteliv[p].checked=true;break;}}}if (num!=-1 && id==0)etat=true;else etat=false;document.formulaire.nomliv.disabled=etat;document.formulaire.prenomliv.disabled=etat;document.formulaire.adresse1liv.disabled=etat;document.formulaire.adresse2liv.disabled=etat;document.formulaire.cpliv.disabled=etat;document.formulaire.villeliv.disabled=etat;document.formulaire.societeliv.disabled=etat;document.formulaire.civiliteliv[0].disabled=etat;document.formulaire.civiliteliv[1].disabled=etat;document.formulaire.civiliteliv[2].disabled=etat;document.formulaire.titreliv.disabled=etat;}
function ModeLiv_Kill(){if (browser == "other") document.getElementById("topdeck").style.visibility = "hidden";else document.all.topdeck.style.visibility = "hidden";document.onmousemove = null;}

// DIAPORAMA
diapoencours=false;
function Diapo_InitializeTimer() { secs=document.formulairediaporama.nbsec.value;Diapo_StopTheClock();Diapo_StartTheTimer(); }
function Diapo_StopTheClock() { if(timerRunning) clearTimeout(timerID);timerRunning = false; }
function Diapo_StartTheTimer() { if (secs==0) { Diapo_StopTheClock();Diapo_NextPhoto();Diapo_InitializeTimer(); } else { self.status = "Changement de diapo dans " + secs + " seconde(s)"; secs = secs - 1; timerRunning = true; timerID = self.setTimeout("Diapo_StartTheTimer()", delay); } }
function Diapo_newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } }
function Diapo_AfficheTitre() { if (diapoencours==true) document.getElementById('status').innerHTML="<small>Diapo " + (index+1) + " / " + maxindex + " : " + tabtitre[index] + " -  Diaporama en cours ..."; else document.getElementById('status').innerHTML="<small>Diapo " + (index+1) + " / " + maxindex + " : " + tabtitre[index] + " - Diaporama arrêté"; }
function Diapo_NextPhoto() { Diapo_AfficheTitre(); document.getElementById('diapo').src=imgpreload.src; document.getElementById('ombre2').height=tabhauteur[index]-5; document.getElementById('ombre4').width=tablargeur[index]-6; index++; if (index>=maxindex) index=0; imgpreload=Diapo_newImage(URL_SITE_IMAGE + "/images/moyenne-photo-"+ud+"-"+tabphotod[index]+"-"+ad+"-"+tabtrait[index]+"-1-0-ff.jpg"); }
function Diapo_PrevPhoto() { index-=2; if (index<0) index=maxindex-1; imgpreload=Diapo_newImage(URL_SITE_IMAGE+"/images/moyenne-photo-"+ud+"-"+tabphotod[index]+"-"+ad+"-"+tabtrait[index]+"-1-0-ff.jpg"); Diapo_AfficheTitre(); document.getElementById('diapo').src=imgpreload.src; document.getElementById('ombre2').height=tabhauteur[index]-5; document.getElementById('ombre4').width=tablargeur[index]-6; index++; imgpreload=Diapo_newImage(URL_SITE_IMAGE+"/images/moyenne-photo-"+ud+"-"+tabphotod[index]+"-"+ad+"-"+tabtrait[index]+"-1-0-ff.jpg"); }
function Diapo_StopDiapo() { diapoencours=false;Diapo_StopTheClock(); Diapo_AfficheTitre(); }

// MENU
function newImage(arg) {if (document.images) {	rslt = new Image();	rslt.src = arg;	return rslt;} }
function changeImages() {if (document.images && (preloadFlag == true)) {for (var i=0; i<changeImages.arguments.length; i+=2) {	document[changeImages.arguments[i]].src = changeImages.arguments[i+1];} } }

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		top_10_over = newImage("/images/v3/top/top_10-over.gif");
		top_12_over = newImage("/images/v3/top/top_12-over.gif");
		top_14_over = newImage("/images/v3/top/top_14-over.gif");
		top_16_over = newImage("/images/v3/top/top_16-over.gif");
		top_18_over = newImage("/images/v3/top/top_18-over.gif");
		top_20_over = newImage("/images/v3/top/top_20-over.gif");
		haut_accueil_v3_19_over = newImage("/images/v3/haut-accueil/haut-accueil-v3_19-over.jpg");
		haut_accueil_v3_21_over = newImage("/images/v3/haut-accueil/haut-accueil-v3_21-over.jpg");
		haut_accueil_v3_23_over = newImage("/images/v3/haut-accueil/haut-accueil-v3_23-over.jpg");
		haut_accueil_v3_25_over = newImage("/images/v3/haut-accueil/haut-accueil-v3_25-over.jpg");
		haut_accueil_v3_27_over = newImage("/images/v3/haut-accueil/haut-accueil-v3_27-over.jpg");
		haut_accueil_v3_29_over = newImage("/images/v3/haut-accueil/haut-accueil-v3_29-over.jpg");
		preloadFlag = true;
	}
}

/*
function newImage(arg){if (document.images) {rslt = new Image();rslt.src = arg;return rslt;}}
function changeImages(){if (document.images && (preloadFlag == true)){for (var i=0; i<changeImages.arguments.length; i+=2){document[changeImages.arguments[i]].src = "/images/site/top"+changeImages.arguments[i+1];}}}
function preloadImages(){if (document.images){menu_01_down = newImage("/images/site/top/topm01o.gif");menu_02_down = newImage("/images/site/top/topm02o.gif");menu_03_down = newImage("/images/site/top/topm03o.gif");menu_04_down = newImage("/images/site/top/topm04o.gif");menu_05_down = newImage("/images/site/top/topm05o.gif");menu_06_down = newImage("/images/site/top/topm06o.gif");preloadFlag = true;}}
*/
function ICONEA_SelectColor(divname, fonction, param)
{
	var chaine="";
	
	var tabcolor=new Array(9);
	
	tabcolor[0]="00";
	tabcolor[1]="33";
	tabcolor[2]="66";
	tabcolor[3]="99";
	tabcolor[4]="CC";
	tabcolor[5]="FF";
	
	chaine="<table cellspacing=0 cellpadding=0 width=180 height=140 style='border:2px solid #000000'><tr><td bgcolor=#000000 align=center><span class=vr8><font color=#FFFFFF><input type=button name=\"FERMER\" value=\"FERMER\" class=\"submit\" onclick=\"javascript:document.getElementById('" + divname + "').style.visiblity='hidden';document.getElementById('" + divname + "').style.display='none';return true\"></td></tr><tr><td align=center bgcolor=#FFFFFF>";
	chaine+="<table border=0 cellspacing=0 cellpadding=0><tr>";
	
	for (i=0; i<6; i++)
	{
		chaine+="<td><table cellspacing=0 cellpadding=0 border=0><tr>";
	
		for (j=0; j<6; j++)
		{
			chaine+="<tr>";
	
			for (k=0; k<6; k++)
			{
				color=tabcolor[i]+tabcolor[j]+tabcolor[k];
				chaine+="<td bgcolor='#" + color + "'><a href='#' onClick=\""+fonction+"('" + color + "', '" + param + "');\"><img src='http://www.iconea.fr/images/dummy.gif' width='10' height='10' border='0'></a></td>";
	
	
			}
			chaine+="</tr>";
		}
		chaine+="</table></td>";
		
		if (i==2)
			chaine+="</tr><tr>";
		
	}
	
	chaine+="</table><table cellspacing=0 cellpadding=0 border=0><tr>";
	
	tabcolor[0]="FFFFFF";
	tabcolor[1]="EEEEEE";
	tabcolor[2]="DDDDDD";
	tabcolor[3]="CCCCCC";
	tabcolor[4]="BBBBBB";
	tabcolor[5]="AAAAAA";
	tabcolor[6]="999999";
	tabcolor[7]="969696";
	tabcolor[8]="888888";
	tabcolor[9]="808080";
	tabcolor[10]="777777";
	tabcolor[11]="666666";
	tabcolor[12]="555555";
	tabcolor[13]="444444";
	tabcolor[14]="333333";
	tabcolor[15]="222222";
	tabcolor[16]="111111";
	tabcolor[17]="000000";
	
	for (i=0; i<18; i++)
	{
		chaine+="<td bgcolor='#" + tabcolor[i] + "' width=10 height=10><a href='#' onClick=\""+fonction+"('" + tabcolor[i] +"', '" + param + "');\"><img src='http://www.iconea.fr/images/dummy.gif' width='10' height='10' border='0'></a></td>";
	}
	
	chaine+="</tr></table></td></tr></table>";
	
	document.getElementById(divname).innerHTML=chaine;
}

function getPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}

function GFInit()
{
	objOverlay.setAttribute('id','overlay');
	objOverlay.style.display = 'none';
	objOverlay.style.position = 'absolute';
	objOverlay.style.top = '0';
	objOverlay.style.left = '0';
	objOverlay.style.zIndex = '4000';
 	objOverlay.style.width = '100%';
	objBody.insertBefore(objOverlay, objBody.firstChild);

	arrayPageSize = getPageSize();
	objOverlay = document.getElementById('overlay');
}

function GFStart()
{
	arrayPageSize = getPageSize();
	objOverlay.style.height = (arrayPageSize[1] + 'px');
	objOverlay.style.display = 'block';
}

function GFStop()
{
	objOverlay.style.display = 'none';
}

function AfficheFenetrePopUp(nomfenetre, taille, y)
{
	if (GFFenetreEnCours == null)
	{
	        GFStart();
	        document.getElementById(nomfenetre).style.left=document.body.offsetWidth/2-taille/2+document.body.scrollLeft + "px";
	        document.getElementById(nomfenetre).style.display='block';
	        document.getElementById(nomfenetre).style.zIndex=8000;
	        document.getElementById(nomfenetre).style.top=y;
		GFFenetreEnCours=nomfenetre;
	}
}

function FermeFenetrePopUp()
{
	if (GFFenetreEnCours != null)
	{
	        document.getElementById(GFFenetreEnCours).style.display='none';
	        GFStop();
		GFFenetreEnCours=null;
	}
}

GFFenetreEnCours=null;
var objBody = document.getElementsByTagName("body").item(0);
var objOverlay = document.createElement("div");

var arrayPageSize = null;

GFInit();

