<!--
// Copyright (c) GraphicWeb Interactive Solutions

var nav_IE=document.all;var gwmodule_index=1000;var gwpopupobj=window.top.window.document;var gwpopupwin=window.top.window;var gwcursor_x=0;var gwcursor_y=0;
gwpopupobj.body.style.margin="0px";document.onmousemove=GWModule_CursorPosition;

function GW_LightBox(gwlb_id,gwlb_type,gwlb_size,gwfile,gwtype,gwpath)
	{
	var gwsizetest=gwlb_size.split("x");
	if(parseInt(gwsizetest[0]<50) || parseInt(gwsizetest[1])<50) {return false;}
	if(gwlb_type=="cursor") {gwpopupobj=document;} else {gwpopupobj=window.top.window.document;}
	
	GWModule_Object("hide",gwpath);
	
	switch(gwlb_type)
		{
		case "cursor" : GW_LightBox_Cursor(gwlb_id,gwsizetest[0],gwsizetest[1],gwfile,gwpath);break;
		default : GW_LightBox_Zoom(gwlb_id,gwsizetest[0],gwsizetest[1],gwfile,gwtype,gwpath);break;
		}
	
	if(nav_IE) {gwpopupobj.frames[gwlb_id+'_Frame'].location.href=gwfile;}
	else {gwpopupobj.getElementById(gwlb_id+'_Frame').contentDocument.location.href=gwfile+'?'+(new Date()).getTime();}
	}

function GW_LightBox_Zoom(gwlb_id,gwlb_width,gwlb_height,gwfile,gwtype,gwpath)
	{
	var gwlb_objet="";var gwtemp=navigator.appVersion.split("MSIE");
	gwlb_width=parseInt(gwlb_width);gwlb_height=parseInt(gwlb_height);
	var gwlb_Wmax=gwlb_width+26;var gwlb_Hmax=gwlb_height+26;
	
	gwbodywidth=gwpopupwin.innerWidth;gwbodywidth=(gwbodywidth)?gwbodywidth:gwpopupobj.documentElement.offsetWidth;gwbodywidth=(gwbodywidth)?gwbodywidth:gwpopupobj.body.offsetWidth;
	gwbodyheight=gwpopupwin.innerHeight;gwbodyheight=(gwbodyheight)?gwbodyheight:gwpopupobj.documentElement.offsetHeight;gwbodyheight=(gwbodyheight)?gwbodyheight:gwpopupobj.body.offsetHeight;
	
	var gwbodyscrollwidth=gwpopupobj.documentElement.scrollLeft;gwbodyscrollwidth=(gwbodyscrollwidth)?gwbodyscrollwidth:gwpopupobj.body.scrollLeft;
	var gwbodyscrollheight=gwpopupobj.documentElement.scrollTop;gwbodyscrollheight=(gwbodyscrollheight)?gwbodyscrollheight:gwpopupobj.body.scrollTop;
	
	var gwdiv_mask=gwpopupobj.createElement("div");gwdiv_mask.id="gwss_mask_"+gwlb_id;gwdiv_mask.style.display="block";gwdiv_mask.style.backgroundColor="#000000";
	gwdiv_mask.style.opacity="0.6";gwdiv_mask.style.filter="alpha(opacity=60)";gwdiv_mask.style.width="100%";
	
	if(!gwpopupobj.gwmodule_index) {gwpopupobj.gwmodule_index="34500";}
	if(nav_IE && parseFloat(gwtemp[1])<=6)
		{
		var gwheightdom=gwpopupobj.documentElement.clientHeight;var gwheightbody=gwpopupobj.body.clientHeight;
		if(gwheightdom>gwheightbody) {gwdiv_mask.style.height=gwheightdom+"px";} else {gwdiv_mask.style.height=gwheightbody+"px";}
		
		gwdiv_mask.style.position="absolute";gwdiv_mask.style.top=gwpopupobj.documentElement.scrollTop+gwpopupobj.body.scrollTop+"px";
		gwdiv_mask.style.left=gwpopupobj.documentElement.scrollLeft+gwpopupobj.body.scrollLeft+"px";
		
		gwlb_objet='<iframe width="100%" height="'+gwpopupobj.documentElement.clientHeight+'" frameborder="0" scrolling="no" src="about:blank" style="filter:alpha(opacity=0);'
			+'position:absolute;top:0px;left:0px;" id="GWLightBox_MasqueIE"></iframe>';
		}
	else {gwdiv_mask.style.position="fixed";gwdiv_mask.style.left="0px";gwdiv_mask.style.top="0px";gwdiv_mask.style.height="100%";}
	
	gwdiv_mask.style.zIndex=gwpopupwin.gwmodule_index++;gwdiv_mask.innerHTML=gwlb_objet;gwpopupobj.body.appendChild(gwdiv_mask);
	
	gwlb_objet=GW_LightBox_Popup(gwlb_id,gwlb_width,gwlb_height,gwlb_Wmax,gwlb_Hmax,"zoom",10,3,gwtype,gwpath);
	var gwobjLightBox=gwpopupobj.getElementById("gwss_"+gwlb_id);gwobjLightBox.innerHTML=gwlb_objet;
	gwobjLightBox.style.left=gwbodyscrollwidth+((gwbodywidth-gwlb_Wmax-10)/2)+'px';
	gwobjLightBox.style.top=gwbodyscrollheight+((gwbodyheight-gwlb_Hmax-10)/2)+'px';
	}

function GW_LightBox_Cursor(gwlb_id,gwlb_width,gwlb_height,gwfile,gwpath)
	{
	var gwlb_objet="";gwlb_width=parseInt(gwlb_width);gwlb_height=parseInt(gwlb_height);var gwlb_Wmax=gwlb_width+8;var gwlb_Hmax=gwlb_height+8;
	
	if(!gwpopupobj.gwmodule_index) {gwpopupobj.gwmodule_index="34500";}
	if(!gwpopupobj.getElementById('gwss_'+gwlb_id))
		{
		gwlb_objet=GW_LightBox_Popup(gwlb_id,gwlb_width,gwlb_height,gwlb_Wmax,gwlb_Hmax,"cursor",3,1,"image",gwpath);
		gwpopupobj.getElementById("gwss_"+gwlb_id).innerHTML=gwlb_objet;
		}
	
	var gwobjLightBox=gwpopupobj.getElementById("gwss_"+gwlb_id);
	gwobjLightBox.style.left=(gwcursor_x+15)+'px';gwobjLightBox.style.top=(gwcursor_y+15)+'px';
	
	gwlb_timeout=setTimeout("GW_LightBox_Cursor(\'"+gwlb_id+"\',"+gwlb_width+","+gwlb_height+",\'"+gwfile+"\',\'"+gwpath+"\')",15)
	}

function GW_LightBox_Popup(gwlb_id,gwlb_width,gwlb_height,gwlb_Wmax,gwlb_Hmax,gwlb_type,gwlb_border,gwlb_spacing,gwtype,gwpath)
	{
	var gwlb_objet="";var gwdiv=gwpopupobj.createElement("div");gwdiv.id="gwss_"+gwlb_id;gwdiv.style.position="absolute";gwdiv.style.display="block";
	gwdiv.style.zIndex=gwpopupobj.gwmodule_index++;gwdiv.onselectstart=new Function("return false");gwpopupobj.body.appendChild(gwdiv);
	
	for(i=0;i<3;i++)
		{gwlb_objet+='<div id="'+gwlb_id+'_Ombre['+i+']" style="width:'+gwlb_Wmax+'px;height:'+gwlb_Hmax+'px;top:'+(7-(2*i))+'px;left:'+(7-(2*i))+'px;" class="GWPopup_Ombre"></div>';}
	
	gwlb_objet+='<div style="position:relative;width:'+gwlb_Wmax+'px;height:'+gwlb_Hmax+'px;top:0px;left:0px;"><table width="'+gwlb_Wmax+'" height="'+gwlb_Hmax+'" '
		+'border="0" cellpadding="0" cellspacing="'+gwlb_spacing+'" style="border:'+gwlb_border+'px solid;border-color:#ffffff;"><tr><td align="center" valign="middle">'
	
	gwlb_objet+='<div id="'+gwlb_id+'_DivFrame" style="position:relative;width:'+gwlb_width+'px;height:'+gwlb_height+'px;top:0px;left:0px;"><iframe width="100%" height="100%" '
		+'id="'+gwlb_id+'_Frame" name="'+gwlb_id+'_Frame" class="GWLightBox_Cadre" onload="document.getElementById(\''+gwlb_id+'_Loading\').style.display=\'none\';" '
		+'frameborder="0" '+((gwtype!='')?' scrolling="no" marginwidth="0" marginheight="0"':'')+' ></iframe></div>\n';
	
	gwlb_objet+='<table id="'+gwlb_id+'_Loading" border="0" cellspacing="0" cellpadding="0" class="GWLightBox_Cadre" style="position:absolute;left:'+((gwlb_type=="zoom")?'13':'4')+'px;'
		+'top:'+((gwlb_type=="zoom")?'13':'4')+'px;display:block;"><tr><td width="'+gwlb_width+'" height="'+gwlb_height+'" align="center" valign="middle"><table border="0" '
		+'cellspacing="0" cellpadding="0"><tr><td width="20" align="left"><img src="'+gwpath+'Design/GW_Loading.gif" border="0"></td><td width="'+((gwlb_width<200)?'100':'180')+'" '
		+'align="left" class="GWPopup_Loading">Chargement en cours ...</td></tr></table></td></tr></table>';
	
	gwlb_objet+='</td></tr></table></div>';
	
	if(gwlb_type=="zoom")
		{
		gwlb_objet+='<div style="position:absolute;width:30px;height:30px;top:0px;left:'+(gwlb_Wmax-37)+'px;cursor:pointer;" onclick="GW_LightBox_Close(\''+gwlb_id+'\''
		+',\''+gwlb_type+'\');"><img src="'+gwpath+'Design/Bouton_Fermer.gif" width="37" height="37" alt="Fermer le Popup et retourner &agrave; la page active" title="Fermer le Popup et retourner &agrave; la page active"></div>';
		}
	
	return gwlb_objet;
	}

function GW_LightBox_Close(gwlb_id,gwlb_type)
	{
	gwpopupobj.body.removeChild(gwpopupobj.getElementById("gwss_"+gwlb_id));GWModule_Object("show","");
	if(gwlb_type=="zoom") {gwpopupobj.body.removeChild(gwpopupobj.getElementById("gwss_mask_"+gwlb_id));} else {clearTimeout(gwlb_timeout);}
	}

function GWModule_CursorPosition(e)
	{
	if(e) {gwcursor_x=e.pageX;gwcursor_y=e.pageY;}
	else
		{
		gwcursor_x=event.clientX;gwcursor_y=event.clientY;
		if(gwpopupobj.documentElement && gwpopupobj.documentElement.clientWidth) {var gwdocdom=gwpopupobj.documentElement;} else {var gwdocdom=gwpopupobj.body;}
		gwcursor_x+=gwdocdom.scrollLeft;gwcursor_y+=gwdocdom.scrollTop;
		}
	}

function GWModule_Object(gwview,gwpath)
	{
	var gwobj=new Array("OBJECT","EMBED","APPLET");var gwobjhtml=null;var gwobjid="";var gwframeobjid;
	
	for(i=0;i<gwobj.length;i++)
		{
		gwobjhtml=gwpopupobj.body.getElementsByTagName(gwobj[i]);
		
		for(j=0;j<gwobjhtml.length;j++)
			{
			gwobjid=gwobjhtml.item(j).getAttribute("id");gwframeobjid=gwpopupobj.getElementById(gwobjid);
			
			if(gwview=="hide" && gwobjid) {GWModule_ObjectAlert(gwobjid,gwpath,gwpopupobj);gwframeobjid.style.visibility="hidden";}
			else if(gwobjid) {gwframeobjid.style.visibility="visible";gwpopupobj.body.removeChild(gwpopupobj.getElementById(gwobjid+"_DIV"));}
			}
		}
		
	if(gwpopupwin.frames.length>0) {GWModule_ObjectFrame(gwpopupwin.frames,gwview,gwpath);}
	}

function GWModule_ObjectFrame(gwdocument,gwview,gwpath)
	{
	var k=0;
	
	while(k<gwdocument.length)
		{
		var gwobj=new Array("OBJECT","EMBED","APPLET");var gwobjhtml=null;var gwobjid="";var gwframeobjid;var gwframecontent=gwdocument[k].window.document;
		
		for(i=0;i<gwobj.length;i++)
			{
			gwobjhtml=gwframecontent.body.getElementsByTagName(gwobj[i]);
			
			for(j=0;j<gwobjhtml.length;j++)
				{
				gwobjid=gwobjhtml.item(j).getAttribute("id");gwframeobjid=gwframecontent.getElementById(gwobjid);
				
				if(gwview=="hide" && gwobjid) {GWModule_ObjectAlert(gwobjid,gwpath,gwframecontent);gwframeobjid.style.visibility="hidden";}
				else if(gwobjid) {gwframeobjid.style.visibility="visible";gwframecontent.body.removeChild(gwframecontent.getElementById(gwobjid+"_DIV"));}
				}
			}
		
		if(gwdocument[k].frames.length>0) {GWModule_ObjectFrame(gwdocument[k].frames,gwview);}
		k++
		}
	}

function GWModule_ObjectAlert(gwid,gwpath,gwwindow)
	{
	var gwposleft=gwpostop=0;var gwobjpos=gwwindow.getElementById(gwid);var gwobjet=gwobjpos;
	
	if(gwobjpos.offsetParent) {do {gwposleft+=gwobjpos.offsetLeft;gwpostop+=gwobjpos.offsetTop;} while (gwobjpos=gwobjpos.offsetParent);}
	
	var gwdiv=gwwindow.createElement("div");gwdiv.id=gwid+"_DIV";gwdiv.style.position="absolute";gwdiv.style.top=gwpostop+"px";gwdiv.style.left=gwposleft+"px";
	gwdiv.style.width=parseInt(gwobjet.width)+"px";gwdiv.style.height=parseInt(gwobjet.height)+"px";
	
	var gwobjetalert="<div style='width:"+gwobjet.width+"px;height:"+gwobjet.height+"px;' class='GWModule_AlertObject'>";
	
	if(gwobjet.height>90)
		{
		gwobjetalert+="<table border='0' align='left' cellpadding='0' cellspacing='0'><tr><td align='center' valign='middle' width='"+gwobjet.width+"' height='"+gwobjet.height+"'>\n"
			+"<table width='75%' border='0' cellpadding='0' cellspacing='0'>\n<tr><td height='60' valign='top' align='center'><img src='"+gwpath+"Design/GWModule_Error_BW.gif' "
			+"width='50' height='50' border='0' alt='' title='' /></td></tr>\n<tr><td align='center'><i>Cet El&eacute;ment multim&eacute;dia a &eacute;t&eacute; d&eacute;sactiv&eacute; "
			+"pour assurer une totale compatibilit&eacute; avec le Popup que vous venez d'ouvrir ...</i></td></tr>\n</table></td></tr></table>";
		}
	
	gwobjetalert+="</div>";gwdiv.innerHTML=gwobjetalert;gwwindow.body.appendChild(gwdiv);
	}
-->
