

/*     CSM: /scripts/item_id.js    */

function faux$(id){var _element=false;if(typeof id=='object'){_element=id;}else{if(document.getElementById){_element=document.getElementById(id);}else{if(document.all){_element=document.all[id];}else{if(document.layers){_element=document.layers[id];}}}}
return _element;}
if(((typeof($)).toLowerCase()!='function')&&((typeof($)).toLowerCase()!='object')){$=faux$;};

/*     CSM: /scripts/LayoutMaker.class.js    */

function LayoutMaker(_items){this.items=_items;this.itemsCount=_items.length;this.itemHeight=30;this.newsItems=new Array;LayoutMaker.prototype.createLoader=function(_marginLeftOffset){var marginLeftOffset=230;if((typeof(_marginLeftOffset)=='number')&&(_marginLeftOffset>0)){marginLeftOffset=_marginLeftOffset;}
var loader='<div id="waitsearch" style="position:absolute;left:'+marginLeftOffset+'px;top:125px;height:100%;z-index:100;text-align:center">\n'+'         <font size="2">'+Trad_1004+'</font>\n'+'         <br/>'+'         <img src="'+HeadGlobalJsVar_BaseUrlImage+'/2ai/wait.gif" alt="" />\n'+'     </div>\n';if($('waitsearch_container'))$('waitsearch_container').innerHTML=loader;}
LayoutMaker.prototype.createFlags=function(){var html=new Array;for(var ln in LangUrls){if(ln!='toJSONString'){var url=LangUrls[ln]['url'];var alt=LangUrls[ln]['alt'];var border=((ln==HeadGlobalJsVar_l)?'1px solid white':'none');var link='<a style="margin:2px;" onclick="changeLangue(\''+url+'\', \''+ln+'\');" href="'+url+'">\n'+'       <img style="width:22px;height:14px;border:'+border+'" alt="'+alt+'" src="'+HeadGlobalJsVar_BaseUrlImage+'/2ai/flag-'+ln+'.gif" />\n'+'   </a>'
html.push(link);}}
html=html.join('')+'<br/>';return html;}
LayoutMaker.prototype.createMenuLeft=function(_container){if(window.innerWidth){height_px=(window.innerHeight)?window.innerHeight:(720);}
else{height_px=(document.documentElement&&document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight;height_px=(height_px)?height_px:(720);}
var html='\n'+' <table id="tab_nav" cellpading="0" cellspacing="0" style="text-align:center;border:none;background-image:url('+HeadGlobalJsVar_BaseUrlImage+'/2ai/barre-g.jpg);background-repeat:no-repeat;width:198px; height:'+height_px+'">\n'+'     <tr>\n'+'         <td style="height:85px;width:194px;cursor:pointer" onclick="goHome();">\n'+'             &nbsp;\n'+'         </td>\n'+'         <td style="width:4px"></td>\n'+'     </tr>\n'+'     <tr>\n'+'         <td style="height:10px;cursor:pointer;valign:top" onclick="goHome();">\n'+'             <img src="'+HeadGlobalJsVar_BaseUrlImage+'/2ai/base-line-'+HeadGlobalJsVar_l+'.gif" alt="'+Trad_146+'"/>\n'+'         </td>\n'+'         <td style="width:4px"></td>\n'+'     </tr>\n'+'     <tr>\n'+'         <td style="height:25px;text-align:center;">';html+=this.createFlags();html+='     </td>\n'+'         <td style="width:4px"></td>\n'+'     </tr>\n'+'     <tr>\n'+'         <td style="height:30px;"></td>\n'+'     </tr>\n'+'     <tr>\n'+'         <td style="text-align:left;valign:bottom;color:#FFFFFF;font-size:10px;height:20px;width:194px">\n'+'             '+Trad_1060+'         </td>\n'+'         <td style="width:4px"></td>\n'+'     </tr>\n';for(var i=0;i<this.itemsCount;i++){var item=this.items[i];if(item=='separator'){html+='<tr>\n'+'         <td style="height:2px;background-image:url('+HeadGlobalJsVar_BaseUrlImage+'/2ai/fond-separ-menu.gif);"></td> \n'+'         <td style="width:4px"></td> \n'+'     </tr> \n'+'     <tr> \n'+'         <td colspan="2"></td> \n'+'     </tr>\n';}
else{if(item.newItem){html+='<tr>\n'+'     <td class="td_menu" align="center" style="height:15px">\n'+'         <div id="new_'+item.id+'"></div>\n'+'     </td>\n'+'  </tr>\n';this.newsItems.push("new_"+item.id);}
html+=' <tr>\n'+'     <td style="height:2px;background-image:url('+HeadGlobalJsVar_BaseUrlImage+'/2ai/fond-separ-menu.gif);"></td> \n'+'     <td style="width:4px"></td> \n'+' </tr>\n'+' <tr>\n';var urlInArray=item.url.split('/');urlInArray="['"+urlInArray.join("', '")+"']";var positionning=(item.nb?'padding-left:8px;text-align:left;':'text-align:center;');html+='       <td class="td_menu" style="height:'+this.itemHeight+'px;'+positionning+'cursor:pointer;" onmouseover="rIn(\''+item.id+'\')" onmouseout="rOut(\''+item.id+'\')" onclick="oClic(\''+item.id+'\');goto_page_direct('+urlInArray+');return false;">\n'+'                 <a id="'+item.id+'" class="a_recherche" href="'+item.url+'">\n'+'                     <font id="'+item.id+'_font" style="position:relative;">'+item.text+'</font>\n'+'                 </a>\n';if(item.nb){html+='       <font style="position:relative;">\n'+'                 <a class="a_recherche_maigre" href="'+item.url+'">\n'+'                     ('+item.nb+')\n'+'                 </a>\n'+'             </font>\n';}
html+='       </td>\n'+'             <td width="4"></td>\n'+'         </tr>';}}
html+='           <tr>\n'+'                 <td colspan="2"></td>\n'+'             </tr>\n'+'           <tr>\n'+'                 <td align="center" height="110"> ';if(HeadGlobalJsVar_c!=8318){html+='               <font color="#FFFFFF" size=1>\n'+'                         '+Trad_50+'\n'+'                         <br/>\n'+'                         <a href="'+HeadGlobalJsVar_lien_loc+'" >\n'+'                             <img src="'+HeadGlobalJsVar_BaseUrlImage+'/2ai/terre.gif" border="0" />\n'+'                         </a>\n'+'                         <br/>\n'+'                         <b>'+HeadGlobalJsVar_countryName_notState+'</b>\n'+'                     </font>';}else{html+='               <a href="'+HeadGlobalJsVar_lien_loc+'">\n'+'                         <img src="'+HeadGlobalJsVar_BaseUrlImage+'/2ai/terre.gif" border="0" />\n'+'                     </a>';}
html+='               </td>\n'+'                 </tr>\n'+'             </table>';if($(_container))$(_container).innerHTML=html;if(this.newsItems.length>0){var so=new SWFObject('/scripts/new.swf','animNew','40','15','#FFFFFF','','8');so.addParam('scale','noscale');so.addParam('wmode','transparent');for(var i=0;i<this.newsItems.length;i++){so.write(this.newsItems[i]);}}}
LayoutMaker.prototype.createPubForm=function(_container){var html='<center>\n'+'<div id="pub2" style="z-index:100;margin-top:2px;display:none;width:468px;text-align:center;"></div>\n'+'<form name="redirect_pub" target="_blank" action="/scripts/ClicPub.php" method="POST" style="margin:0px">\n'+'   <input type="hidden" name="lang" value="">'+'   <input type="hidden" name="loc" value="">'+'   <input type="hidden" name="Pub" value="">'+'   <input type="hidden" name="Contexte" value="">'+'   <input type="hidden" name="typePub" value="">'+'</form>'+'</center>\n';if($(_container))$(_container).innerHTML=html;}
LayoutMaker.prototype.createRechercheBar=function(_container){var html=''+'  <center>'+'      <form name="Recherche" style="margin:0px;padding:0px;" action="javascript:UrlRecherche( document.forms.Recherche, &#39;produit&#39; , false);">'+'          <div style="background-image:url('+HeadGlobalJsVar_searchBarBackground+'); width:530px; text-align:center;">'+'              <table border="0" cellspacing="0" cellpadding="0" style="font-size:13px;" align="center">'+'                  <tr>'+'                      <td height="34" align="right">'+'                          <font style="font-size:12px;font-weight:bold;color:#FFFFFF">'+HeadGlobalJsVar_searchBarTitle+'</font>'+'                      </td>'+'                      <td width="7">&nbsp;</td>'+'                      <td align="center">'+'                          <select id="TypeRecherche" name="TypeRecherche" style="font-size:13px;font-family:Verdana,helvetica,sans-serif;" onchange="change_type_recherche()">'+'                              <option value="produit" style="font-size:13px;font-family:Verdana,helvetica,sans-serif;">'+HeadGlobalJsVar_ProductText+'</option>'+'                              <option value="exposant" style="font-size:13px;font-family:Verdana,helvetica,sans-serif;">'+HeadGlobalJsVar_ExposantsText+'</option>'+'                              <option value="pdf" style="font-size:13px;font-family:Verdana,helvetica,sans-serif;">'+HeadGlobalJsVar_CataloguesText+'</option>'+'                              <option value="news" style="font-size:13px;font-family:Verdana,helvetica,sans-serif;">'+HeadGlobalJsVar_NewsText+'</option>';if(HeadGlobalJsVar_video_available>400){html+='                    <option value="video" style="font-size:13px;font-family:Verdana,helvetica,sans-serif;">'+HeadGlobalJsVar_VideoText+'</option>';}
if(HeadGlobalJsVar_SITE_ID=="ne"){html+='                    <option value="petites_annonces" style="font-size:13px;font-family:Verdana,helvetica,sans-serif;">'+HeadGlobalJsVar_PetitesAnnoncesText+'</option>';}
html+='                    </select>'+'                      </td>'+'                      <td width="7">&nbsp;</td>'+'                      <td align="left">'+'                          <input type="text" name="kw" value="" size="40" style="font-size:13px;width:190px;" id="text_kw" width="40"/>'+'                      </td>'+'                      <td width="7">&nbsp;</td>'+'                      <td>'+'                          <font style="font-size:12px;font-weight:bold;color:#FFFFFF;cursor:pointer" onclick="document.Recherche.submit()">'+HeadGlobalJsVar_searchBarButtonText+'</font>'+'                      </td>'+'                  </tr>'+'                  <tr>'+'                      <td height="5" colspan="7"></td>'+'                  </tr>'+'              </table>'+'          </div>'+'      </form>'+'  </center>';if($(_container))$(_container).innerHTML=html;}};

/*     CSM: /scripts/json.js    */

toJsonString=function(arg){return toJsonStringArray(arg).join('');}
toJsonStringArray=function(arg,out){out=out||new Array();var u;switch(typeof arg){case'object':if(arg){if(arg.constructor==Array){out.push('[');for(var i=0;i<arg.length;++i){if(i>0)
out.push(',\n');toJsonStringArray(arg[i],out);}
out.push(']');return out;}else if(typeof arg.toString!='undefined'){out.push('{');var first=true;for(var i in arg){var curr=out.length;if(!first)
out.push(',\n');toJsonStringArray(i,out);out.push(':');toJsonStringArray(arg[i],out);if(out[out.length-1]==u)
out.splice(curr,out.length-curr);else
first=false;}
out.push('}');return out;}
return out;}
out.push('null');return out;case'unknown':case'undefined':case'function':out.push(u);return out;case'string':out.push('"')
out.push(arg.replace(/(["\\])/g,'\\$1').replace(/\r/g,'').replace(/\n/g,'\\n'));out.push('"');return out;default:out.push(String(arg));return out;}};

/*     CSM: /scripts/cookies.fun.js    */

function GetCookie(name){var arg=name+'=';var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg)
return getCookieVal(j);i=document.cookie.indexOf(' ',i)+1;if(i==0)break;}
return null;}
function SetCookie(name,value){var argv=SetCookie.arguments;var argc=SetCookie.arguments.length;var expires=(argc>2)?argv[2]:null;var path=(argc>3)?argv[3]:null;var domain=(argc>4)?argv[4]:null;var secure=(argc>5)?argv[5]:false;document.cookie=name+'='+escape(value)+
((expires==null)?'':('; expires='+expires.toGMTString()))+
((path==null)?'':('; path='+path))+
((domain==null)?'':('; domain='+domain))+
((secure==true)?'; secure':'');}
function create_domain(){return HeadGlobalJsVar_myDomain;}
function getCookieVal(offset){var endstr=document.cookie.indexOf(';',offset);if(endstr==-1)
endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}
function ajouter_cookie_prod_visite(idProd){var _oldCookie=(GetCookie('produits_visites')||false);if(_oldCookie){_oldCookie=_oldCookie.split(',');_alreadySet=false;for(var i=0;i<_oldCookie.length;i++){if(_oldCookie[i]==idProd){_alreadySet=true;break;}}
if(!_alreadySet){_oldCookie.push(idProd);}}else{_oldCookie=[idProd];}
SetCookie('produits_visites',_oldCookie,null,'/',create_domain());};

/*     CSM: /restricted/XmlHttpGen.js    */

function xmlhttp_gen(){var xmlhttp;try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined'){xmlhttp=new XMLHttpRequest();}
return xmlhttp;};

/*     CSM: /scripts/UrlRecherche.js    */

function UrlRecherche(item,genre,nomsociete){var typeRecherche='';var kw=item.kw.value;var motRecherche=kw;kw=traitement(kw);var motNettoye=kw;item.kw.value=kw;while(kw.indexOf(' ')>=0){kw=kw.replace(' ','-');}
document.getElementById('form_goto_page_direct').target='_self';switch(genre){case'exposant':url=HeadGlobalJsVar_searchBaseUrlProduit+'/soc/tab/'+kw+'.html#seExh';typeRecherche='Exhibitor';break;case'produit':url=HeadGlobalJsVar_searchBaseUrlProduit;if(kw.length>0){url+='/tab/'+kw+'.html#seProd';}
typeRecherche='Prod';break;case'pdf':url=HeadGlobalJsVar_searchBaseUrlPdf;if(kw.length>0){url+='/pdf/tab/'+kw+'.html#sePDF';}
typeRecherche='Pdf';break;case'pdf_soc':url=HeadGlobalJsVar_searchBaseUrlPdf;url+='/pdf/incatsoc/'+nomsociete+'/'+kw+'-'+item.s.value+'.html#sePDF';typeRecherche='Pdf';break;case'news':url=HeadGlobalJsVar_searchBaseUrlNews;if(kw.length>0){url+='/press/tab/'+kw+'.html#seNews';}
typeRecherche='News';break;case'petites_annonces':url=HeadGlobalJsVar_searchBaseUrlAdd;if(kw.length>0){url+='/'+HeadGlobalJsVar_nomUrlAdd+'/tab/'+kw+'.html#seAds';}
typeRecherche='Add';break;case'video':url=HeadGlobalJsVar_searchBaseUrlProduit;if(kw.length>0){url+='/video/tab/'+kw+'.html#seVdo';}
else{url=HeadGlobalJsVar_searchBaseUrlProduit+'/video/index.html#seVdo';}
typeRecherche='Prod';break;}
if(kw.length>0){RecupereSaisieMoteur(motRecherche,typeRecherche,motNettoye);}
goto_page_direct(url.split('/'));}
function RecupereSaisieMoteur(motRecherche,typeRecherche,motNettoye){xmlhttp_div=xmlhttp_gen();var data='motRecherche='+motRecherche+'&typeRecherche='+typeRecherche+'&motNettoye='+motNettoye;url_ajax='/scripts/RecupereSaisieMoteur.php?'+data;xmlhttp_div.open('GET',url_ajax,false);xmlhttp_div.send(null);if(xmlhttp_div.readyState==4){res=xmlhttp_div.responseText;}}
function traitement(mot){if(HeadGlobalJsVar_l=='De'){mot=mot.replace(/ä/g,'ae');mot=mot.replace(/ü/g,'ue');mot=mot.replace(/ö/g,'oe');mot=mot.replace(/Ä/g,'AE');mot=mot.replace(/Ü/g,'UE');mot=mot.replace(/Ö/g,'OE');mot=mot.replace(/ß/g,'ss');}
for(i=0;i<HeadGlobalJsVar_CharNo.length;i++){while(mot.indexOf(HeadGlobalJsVar_CharNo.charAt(i))>=0){mot=mot.replace(HeadGlobalJsVar_CharNo.charAt(i),HeadGlobalJsVar_CharOk.charAt(i));}}
mot=' '+mot;var tmp='';var j=-1;var quoteRegExp=new RegExp('\'');var alphaNumRegExp=new RegExp('([a-zA-Z0-9 ]+)');for(i=0;i<mot.length;i++){if(mot.charAt(i).match(quoteRegExp)){if(tmp.charAt(j)!=' '){tmp+=' ';j++;}}else{if(mot.charAt(i).match(alphaNumRegExp)){if(mot.charAt(i)==' '){if(tmp.charAt(j)!=' '){tmp+=mot.charAt(i);j++;}}else{tmp+=mot.charAt(i);j++;}}else{tmp+=' ';j++;}}}
tmp=tmp+' ';for(i=0;i<HeadGlobalJsVar_article.length;i++){while(tmp.indexOf(HeadGlobalJsVar_article[i])>=0){tmp=tmp.replace(HeadGlobalJsVar_article[i],' ');}}
if(tmp.charAt(0)==' '){tmp=tmp.substr(1,tmp.length);}
while(tmp.charAt(tmp.length-1)==' '){tmp=tmp.substr(0,(tmp.length-1));}
return tmp;};

/*     CSM: /scripts/header_function.js    */

function page_content_div_resize(){if(window.innerWidth){width_px=(window.innerWidth)?window.innerWidth:(1024);height_px=(window.innerHeight)?window.innerHeight:(720);}
else{width_px=(document.documentElement&&document.documentElement.clientWidth)?document.documentElement.clientWidth:document.body.clientWidth;width_px=(width_px)?width_px:(1024);height_px=(document.documentElement&&document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight;height_px=(height_px)?height_px:(720);}
document.getElementById('page_content_div').style.width=width_px-198;document.getElementById('page_content_div').style.height=height_px-117;document.getElementById('page_navigation_div').style.height=height_px;document.getElementById('page_pub_div').style.width=width_px-198;document.getElementById('page_search_div').style.width=width_px-198;resize_footer();affiche_pub();if(self.placeVideoPlayer&&self.videoPlayerShown){placeVideoPlayer();}}
function resize_onglet(height_px){if(document.getElementById('entete')){var hauteur_entete=document.getElementById('entete').offsetHeight;}
if(document.getElementById('footer')){var hauteur_footer=document.getElementById('footer').offsetHeight;}
if(document.getElementById('onglets')){var hauteur=height_px-110-hauteur_entete-hauteur_footer-20;var hauteur_contenu=hauteur-47;document.getElementById('onglets').style.height=hauteur+'px';document.getElementById('contenu').style.height=hauteur_contenu+'px';document.getElementById('main').style.height=hauteur_contenu+'px';}}
function resize_footer(){if(document.getElementById('footer')){document.getElementById('footer').style.width='100%';var largeur_footer=document.getElementById('footer').offsetWidth;if(document.getElementById('main')){var largeur_main=document.getElementById('main').offsetWidth;}
if(document.getElementById('footer_cell_1')){var largeur_cell1=document.getElementById('footer_cell_1').offsetWidth;}
if(document.getElementById('footer_cell_2')){var largeur_cell2=document.getElementById('footer_cell_2').offsetWidth;}
var largeur_txt=largeur_cell1+largeur_cell2;var reste=largeur_main-largeur_txt;if(largeur_footer<largeur_main){document.getElementById('footer').style.width=largeur_main+'px';}
if(reste>=28){var a_rajouter=Math.floor((reste-28)/2);if(document.getElementById('footer_cell_1')){document.getElementById('footer_cell_1').style.width=(largeur_cell1+a_rajouter)+'px';}
if(document.getElementById('footer_cell_2')){document.getElementById('footer_cell_2').style.width=(largeur_cell2+a_rajouter)+'px';}}}};

/*     CSM: /scripts/change_langue.js    */

function changeLangue(domaine,lv,suffixe){var allCookies=document.cookie.split('; ');var my_cookies=new Object();var i=0;var cookieNameRe=new RegExp('^([^=]*)=(.*)$');var cookieInfo,cookieName,cookieValue,url;for(i=0;i<allCookies.length;i++){cookieInfo=allCookies[i].match(cookieNameRe);cookieName=cookieInfo[1];cookieValue=cookieInfo[2];eval('my_cookies.'+cookieName+'=\''+cookieValue+'\';');}
jsonEscapedCookies=escape(toJsonString(my_cookies));url=domaine+"?my_cookies=+"+jsonEscapedCookies+"&lv="+lv;if(suffixe){url+="&suffix="+escape(suffixe);}
top.document.location.href=url;};

/*     CSM: /scripts/Detect_Flash.js    */

var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion()
{var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.9");version=axo.GetVariable("$version");}
catch(e){}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.8");version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}
catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}}
return version;}
function GetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];if(descArray[3]!=""){tempArrayMinor=descArray[3].split("r");}else{tempArrayMinor=descArray[4].split("r");}
var versionRevision=tempArrayMinor[1]>0?tempArrayMinor[1]:0;var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)flashVer=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)flashVer=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=2;else if(isIE&&isWin&&!isOpera){flashVer=ControlVersion();}
return flashVer;}
function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{versionStr=GetSwfVer();if(versionStr==-1){return false;}else if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}
var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}
else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer))
return true;else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision))
return true;}}
return false;}}
function AC_AddExtension(src,ext)
{if(src.indexOf('?')!=-1)
return src.replace(/\?/,ext+'?');else
return src+ext;}
function AC_Generateobj(objAttrs,params,embedAttrs)
{var str='';if(isIE&&isWin&&!isOpera)
{str+='<object ';for(var i in objAttrs)
str+=i+'="'+objAttrs[i]+'" ';for(var i in params)
str+='><param name="'+i+'" value="'+params[i]+'" /> ';str+='></object>';}else{str+='<embed ';for(var i in embedAttrs)
str+=i+'="'+embedAttrs[i]+'" ';str+='> </embed>';}
document.write(str);}
function AC_FL_RunContent(){var ret=AC_GetArgs
(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_GetArgs(args,ext,srcParamName,classid,mimeType){var ret=new Object();ret.embedAttrs=new Object();ret.params=new Object();ret.objAttrs=new Object();for(var i=0;i<args.length;i=i+2){var currArg=args[i].toLowerCase();switch(currArg){case"classid":break;case"pluginspage":ret.embedAttrs[args[i]]=args[i+1];break;case"src":case"movie":args[i+1]=AC_AddExtension(args[i+1],ext);ret.embedAttrs["src"]=args[i+1];ret.params[srcParamName]=args[i+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":ret.objAttrs[args[i]]=args[i+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":ret.embedAttrs[args[i]]=ret.objAttrs[args[i]]=args[i+1];break;default:ret.embedAttrs[args[i]]=ret.params[args[i]]=args[i+1];}}
ret.objAttrs["classid"]=classid;if(mimeType)ret.embedAttrs["type"]=mimeType;return ret;};

/*     CSM: /scripts/swfobject.js    */

if(typeof deconcept=="undefined")var deconcept=new Object();if(typeof deconcept.util=="undefined")deconcept.util=new Object();if(typeof deconcept.SWFObjectUtil=="undefined")deconcept.SWFObjectUtil=new Object();deconcept.SWFObject=function(swf,id,w,h,c,flashvar,ver,quality,xiRedirectUrl,redirectUrl,detectKey){if(!document.getElementById){return;}
this.allowedVariableTypes=new Array('string','number','boolean');this.DETECT_KEY=detectKey?detectKey:'detectflash';this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(swf){this.setAttribute('swf',swf);}
if(id){this.setAttribute('id',id);}
if(w){this.setAttribute('width',w);}
if(h){this.setAttribute('height',h);}
if(ver){this.setAttribute('version',new deconcept.PlayerVersion(ver.toString().split(".")));}
if(flashvar){var flashSplit=flashvar.split("&");for(var it=0;it<flashSplit.length;it++){flashValue=flashSplit[it].split("=");this.addVariable(flashValue[0],flashValue[1]);}}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}
if(c){this.addParam('bgcolor',c);}
var q=quality?quality:'high';this.addParam('quality',q);this.setAttribute('useExpressInstall',false);this.setAttribute('doExpressInstall',false);var xir=(xiRedirectUrl)?xiRedirectUrl:window.location;this.setAttribute('xiRedirectUrl',xir);this.setAttribute('redirectUrl','');if(redirectUrl){this.setAttribute('redirectUrl',redirectUrl);}}
deconcept.SWFObject.prototype={useExpressInstall:function(path){this.xiSWFPath=!path?"expressinstall.swf":path;this.setAttribute('useExpressInstall',true);},setAttribute:function(name,value){this.attributes[name]=value;},getAttribute:function(name){return this.attributes[name];},addParam:function(name,value){this.params[name]=value;},getParams:function(){return this.params;},addVariable:function(name,value){this.variables[name]=value;},getVariable:function(name){return this.variables[name];},getVariables:function(){return this.variables;},isAllowedVariableType:function(type){var itc;for(itc=0;itc<this.allowedVariableTypes.length;itc++){if(type==this.allowedVariableTypes[itc]){return true;}}
return false;},getVariablePairs:function(){var variablePairs=new Array();var key;var variables=this.getVariables();var currentType
for(key in variables){if(this.isAllowedVariableType(typeof(variables[key]))){variablePairs[variablePairs.length]=key+"="+variables[key];}}
return variablePairs;},getSWFHTML:function(){var swfNode="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute('swf',this.xiSWFPath);}
swfNode='<embed type="application/x-shockwave-flash" src="'+this.getAttribute('swf')+'" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'" style="'+this.getAttribute('style')+'"';swfNode+=' id="'+this.getAttribute('id')+'" name="'+this.getAttribute('id')+'" ';var params=this.getParams();for(var key in params){swfNode+=[key]+'="'+params[key]+'" ';}
var pairs=this.getVariablePairs().join("&");if(pairs.length>0){swfNode+='flashvars="'+pairs+'"';}
swfNode+='/>';}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute('swf',this.xiSWFPath);}
swfNode='<object id="'+this.getAttribute('id')+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'" style="'+this.getAttribute('style')+'">';swfNode+='<param name="movie" value="'+this.getAttribute('swf')+'" />';var params=this.getParams();for(var key in params){swfNode+='<param name="'+key+'" value="'+params[key]+'" />';}
var pairs=this.getVariablePairs().join("&");if(pairs.length>0){swfNode+='<param name="flashvars" value="'+pairs+'" />';}
swfNode+="</object>";}
return swfNode;},write:function(elementId){if(this.getAttribute('useExpressInstall')){var expressInstallReqVer=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(expressInstallReqVer)&&!this.installedVer.versionIsValid(this.getAttribute('version'))){this.setAttribute('doExpressInstall',true);this.addVariable("MMredirectURL",escape(this.getAttribute('xiRedirectUrl')));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute('doExpressInstall')||this.installedVer.versionIsValid(this.getAttribute('version'))){var n=(typeof elementId=='string')?document.getElementById(elementId):elementId;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute('redirectUrl')!=""){document.location.replace(this.getAttribute('redirectUrl'));}}
return false;}}
deconcept.SWFObjectUtil.getPlayerVersion=function(){var PlayerVersion=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){PlayerVersion=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var counter=3;while(axo){try{counter++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+counter);PlayerVersion=new deconcept.PlayerVersion([counter,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");PlayerVersion=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(PlayerVersion.major==6){return PlayerVersion;}}
try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}
if(axo!=null){PlayerVersion=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
return PlayerVersion;}
deconcept.PlayerVersion=function(arrVersion){this.major=arrVersion[0]!=null?parseInt(arrVersion[0]):0;this.minor=arrVersion[1]!=null?parseInt(arrVersion[1]):0;this.rev=arrVersion[2]!=null?parseInt(arrVersion[2]):0;}
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major)return false;if(this.major>fv.major)return true;if(this.minor<fv.minor)return false;if(this.minor>fv.minor)return true;if(this.rev<fv.rev)return false;return true;}
deconcept.util={getRequestParameter:function(param){var q=document.location.search||document.location.hash;if(param==null){return q;}
if(q){var pairs=q.substring(1).split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return pairs[i].substring((pairs[i].indexOf("=")+1));}}}
return"";}}
deconcept.SWFObjectUtil.cleanupSWFs=function(){var objects=document.getElementsByTagName("OBJECT");for(var i=objects.length-1;i>=0;i--){objects[i].style.display='none';for(var x in objects[i]){if(typeof objects[i][x]=='function'){objects[i][x]=function(){};}}}}
if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);}
window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}
if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];}}
var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;;

/*     CSM: /scripts/Wait_JS.js    */

function hide_waitsearch(){if(wait=$('waitsearch')){wait.style.display='none';}}
function hide_wait_div(){if(wait=$('wait_div')){wait.style.display='none';}};

/*     CSM: /scripts/header_nav.js    */

var old_o=null;function rIn(id){o=document.getElementById(id);if(o){o.style.color=SITE_FGCOLOR;}}
function rOut(id){if(id!=on_page){o=document.getElementById(id);if(o){o.style.color='#FFFFFF';}}}
function oClic(id){if(old_o!=null){old_o.style.color='#FFFFFF';}
o=document.getElementById(id);if(o){o.style.color=SITE_FGCOLOR;old_o=o;}
on_page=id;}
function o_over(o){if(typeof(o.style)!='undefined'){o.style.backgroundColor='#F2F3F7';}}
function o_move(o){}
function o_out(o){if(typeof(o.style)!='undefined'){o.style.backgroundColor='';}}
function goHome(){document.location=HeadGlobalJsVar_searchBaseUrlProduit;}
function resize_tabnav(){var o=document.getElementById('tab_nav');if(o){o.style.height=document.body.clientHeight;}}
function goto_page_direct(tabLien){if(typeof(tabLien)=='string'){lien=tabLien;}else{lien=tabLien.join('/');}
document.getElementById('form_goto_page_direct').action=lien;document.getElementById('form_goto_page_direct').submit();}
function goto_page_direct_lien(lien){goto_page_direct(lien);}
function create_input_hidden(url){var tab_url=url.split('?');if(tab_url.length>1){tab_var=tab_url[1].split('&');first_elem=document.getElementById('insert_recherche_position_input')
for(var i=0;i<tab_var.length;i++){tab_val=tab_var[i].split('=');var newInputHidden=document.createElement('Input');newInputHidden.type='hidden';newInputHidden.name=tab_val[0];newInputHidden.value=tab_val[1];document.form_goto_page_direct.insertBefore(newInputHidden,first_elem);}
return tab_url[0];}
else{return url;}}
window.setInterval('resize_tabnav()',1000);;

/*     CSM: /scripts/header_pub.js    */

var onscreen=-1;var old_onscreen=0;var interval_id=0;var tab_pub_vues=new Array;function start_rotate(){}
function pub_rotate(){if(onscreen++>1)return'';var idpub=GetCookie('banniere'+onscreen);var typepub=GetCookie('banniereType'+onscreen);var contexte=GetCookie('contexte');if(idpub>0){affiche_pub(idpub,contexte,typepub);old_onscreen=onscreen;}
else{var idpub=GetCookie('pub'+onscreen);var typepub=GetCookie('pubType'+onscreen);if(idpub>0){old_onscreen=onscreen;}
else{pub_rotate();}}}
function getLeft(l)
{if(l.offsetParent)return(l.offsetLeft+getLeft(l.offsetParent));else return(l.offsetLeft);}
function getTop(l)
{if(l.offsetParent)return(l.offsetTop+getTop(l.offsetParent));else return(l.offsetTop);}
function affiche_pub()
{if(document.getElementById('pub2')&&document.getElementById('page_pub_div'))
{document.getElementById('pub2').style.display='block';}}
function go_to_pub(lang,loc,pub,contexte,type){if(document.redirect_pub){document.redirect_pub.lang.value=lang;document.redirect_pub.loc.value=loc;document.redirect_pub.Pub.value=pub;document.redirect_pub.Contexte.value=contexte;document.redirect_pub.typePub.value=type;document.redirect_pub.submit();}}
function stop_rotate(){window.clearInterval(interval_id);interval_id=0;}
function init_rotate(){onscreen=-1;old_onscreen=0;pub_rotate();restart_rotate();}
function change_pub(new_content){var o=document.getElementById('all_pub');new_content=new_content.replace(/&lt;/g,'<');new_content=new_content.replace(/&gt;/g,'>');o.innerHTML=new_content;init_rotate();}
function change_pub2(){init_rotate();}
function restart_rotate(){if(interval_id){stop_rotate();}
start_rotate();}
function SetDivPosition(){var intY=document.getElementById('page_content_div').scrollTop;document.cookie='yPos=!~'+intY+'~!'+'url=?~'+document.location.href+'~?';};

/*     CSM: /scripts/header_recherche.js    */

function change_type_recherche(){var index_rech=document.forms.Recherche.TypeRecherche.selectedIndex;if(index_rech!=-1){document.forms.Recherche.action='javascript:UrlRecherche( document.forms.Recherche, "'+document.forms.Recherche.TypeRecherche.options[index_rech].value+'" , false)';}};

/*     CSM: /scripts/div_detail.js    */

var timer;var divx;var divy;var decalx;var decaly;var contenerw;var contenerh;var contenersl;var contenerst;var currentDivDetail;function afficheDetail(ladiv){if(document.getElementById(ladiv)==null)return;var d=document.getElementById(ladiv);if((document.URL.indexOf('/FicheSociete_RechercheCat.php')!=-1)||(document.URL.indexOf('/FicheSociete_RechercheSousCat.php')!=-1)){d.style.top=45;d.style.left=200;d.style.display="inline";}
else{d.style.left=divx;d.style.top=divy;d.style.display="inline";if((divx-contenersl+d.clientWidth)>contenerw)d.style.left=contenerw-d.clientWidth+contenersl;if((divy-contenerst+d.clientHeight)>contenerh)d.style.top=contenerh-d.clientHeight+contenerst;}}
function restartDetail(ladiv,event,time){if(document.getElementById(ladiv)==null)return;stopDetail(ladiv);startDetail(ladiv,event,time);}
function startDetail(ladiv,event,time){if(document.getElementById(ladiv)==null)return;var td_info=ladiv.replace("div_info","td_info");if(document.getElementById(td_info).innerHTML==""||document.getElementById(td_info).innerHTML=="VIDE")return;stopDetail(ladiv);currentevent=event;var contener=document.getElementById('page_content_div');if(contener==null){contener=document.body;decalx=0;decaly=0;}else{decalx=-168;decaly=-110;}
divx=decalx+currentevent.clientX+contener.scrollLeft+15;divy=decaly+currentevent.clientY+contener.scrollTop+15;contenerw=contener.clientWidth;contenerh=contener.clientHeight;contenersl=contener.scrollLeft;contenerst=contener.scrollTop;if(!time){timer=setTimeout("afficheDetail('"+ladiv+"')",1000);}
else{timer=setTimeout("afficheDetail('"+ladiv+"')",time);}}
function stopDetail(ladiv){if(document.getElementById(ladiv)==null)return;if(timer!=null){clearTimeout(timer);}
var d=document.getElementById(ladiv);d.style.display="none";};

/*     CSM: /scripts/HabilleText.js    */

function supprime_liens(){while(document.getElementsByName('lien_KWREF')[0]){var noeud_courant=document.getElementsByName('lien_KWREF')[0];var txt=noeud_courant.getAttribute('title');var noeud_texte=document.createTextNode(txt);var noeud_parent=noeud_courant.parentNode;noeud_parent.replaceChild(noeud_texte,noeud_courant);}}
function maquille_liens(){var nbliens=document.getElementsByName('lien_KWREF').length;for(var i=0;i<nbliens;i++){var noeud_courant=document.getElementsByName('lien_KWREF')[i];var txt=noeud_courant.getAttribute('title');var noeud_texte=document.createTextNode(txt);noeud_courant.innerHTML=txt;}};

/*     CSM: /scripts/win_utils.js    */

function windowHeight(){return window.innerHeight!=null?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:null;}
function centered_param(w,h){var win_left=(screen)?(screen.width-w)/2:0;var win_top=(screen)?((screen.height-h)/2-40):0;return" left="+win_left+",top="+win_top+",width="+w+", height="+h+" ";}
function mini_popup_param(){return"toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=1";}
function centered_x(w,h){var myversionInfo=detectDoctype();if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)&&typeof(myversionInfo)!=null&&myversionInfo=='XHTML'){return((document.documentElement.clientWidth-w)/2)+document.documentElement.scrollLeft;}
else{var innerWidth=document.body.clientWidth;var win_top=(window)?(innerWidth-w)/2:0;return win_top+document.body.scrollLeft;}}
function centered_y(w,h){var myversionInfo=detectDoctype();if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)&&typeof(myversionInfo)!=null&&myversionInfo=='XHTML'){return((document.documentElement.clientHeight-h)/2)+document.documentElement.scrollTop;}
else{var innerHeight=document.body.clientHeight;var win_top=(window)?(innerHeight-h)/2:0;return win_top+document.body.scrollTop;}}
function max_height(h){var screen_height=(screen)?(screen.height):(800);var wished_h=screen_height*0.85;if(wished_h<h)wished_h=h;return wished_h;}
function max_size(w_percent,h_percent){var screen_height=(screen)?(screen.height):(800);var screen_width=(screen)?(screen.width):(600);wished_w=screen_width*w_percent;wished_h=screen_height*h_percent;return centered_param(wished_w,wished_h);}
function plein_ecran(){window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight-3);}
function setMaxHeight(id,diff){var height_px=700;if(window.innerHeight){height_px=window.innerHeight;}
else{if(document.body.offsetHeight){height_px=document.body.offsetHeight;}
else{if(document.body.clientHeight){height_px=document.body.clientHeight;}}}
height_px-=diff+5;document.getElementById(id).style.height=height_px+'px';}
function retaille(nomDiv){var x_div=document.getElementById(nomDiv).offsetWidth;var y_div=document.getElementById(nomDiv).offsetHeight;var x=Math.min(x_div+50,screen.availWidth);var y=Math.min(y_div+110,screen.availHeight);window.resizeTo(x,y);window.focus();}
function surchargerEvenement(obj,type,fn){if(obj.attachEvent){obj['e'+type+fn]=fn;obj[type+fn]=function(){obj['e'+type+fn](window.event);}
obj.attachEvent('on'+type,obj[type+fn]);}
else{obj.addEventListener(type,fn,false);}}
function dechargerEvenement(obj,type,fn){if(obj.detachEvent){obj.detachEvent('on'+type,obj[type+fn]);obj[type+fn]=null;}
else{obj.removeEventListener(type,fn,false);}}
function surchargerEvenement_old(conteneur,evenement,maFonction){if(typeof conteneur.attachEvent!="undefined"){conteneur.attachEvent("on"+evenement,maFonction);}
else if(typeof conteneur.addEventListener!="undefined"){conteneur.addEventListener(evenement,maFonction,false);}
else{var oldon=eval('conteneur.on'+evenement);if(eval('typeof conteneur.on'+evenement+' != "function"')){eval('conteneur.on'+evenement+' = maFonction');}
else{eval('conteneur.on'+evenement+' = function(){oldon();maFonction();}');}}}
function detectDoctype(){var re=/\s+(X?HTML)\s+([\d\.]+)\s*([^\/]+)*\//gi;if(typeof document.namespaces!="undefined"){if(document.all[0].nodeType==8)
re.exec(document.all[0].nodeValue);else
return null;}
else{if(document.doctype!=null)
re.exec(document.doctype.publicId);else
return null;}
return RegExp.$1;};

/*     CSM: /scripts/lightbox.js    */

var loadingImage=HeadGlobalJsVar_lightBoxloadingImage;var maxSizeRatio=0.85;function getPageScroll(){var yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;}else if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;}else if(document.body){yScroll=document.body.scrollTop;}
arrayPageScroll=new Array('',yScroll)
return arrayPageScroll;}
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){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight){windowWidth=self.innerWidth;windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}
if(xScroll<windowWidth){pageWidth=windowWidth;}else{pageWidth=xScroll;}
arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight)
return arrayPageSize;}
function pause(numberMillis){var now=new Date();var exitTime=now.getTime()+numberMillis;while(true){now=new Date();if(now.getTime()>exitTime)
return;}}
function getKey(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
key=String.fromCharCode(keycode).toLowerCase();if(key=='x'){hideLightbox();}}
function listenKey(){document.onkeypress=getKey;}
function showLightbox(objLink,src_big){if(document.getElementById('lightbox')){var objOverlay=document.getElementById('overlay');var objLightbox=document.getElementById('lightbox');var objCaption=document.getElementById('lightboxCaption');var objImage=document.getElementById('lightboxImage');var objLoadingImage=document.getElementById('loadingImage');var objLightboxDetails=document.getElementById('lightboxDetails');var arrayPageSize=getPageSize();var arrayPageScroll=getPageScroll();if(objLoadingImage){objLoadingImage.style.top=(arrayPageScroll[1]+((arrayPageSize[3]-35-objLoadingImage.height)/2)+'px');objLoadingImage.style.left=(((arrayPageSize[0]-20-objLoadingImage.width)/2)+'px');objLoadingImage.style.display='block';}
objOverlay.style.height=(arrayPageSize[1]+'px');objOverlay.style.display='block';imgPreload=new Image();imgPreload.onload=function(){objImage.src=src_big;var imageHeight=imgPreload.height;var maxHeight=arrayPageSize[3]*maxSizeRatio;var imageWidth=imgPreload.width;var maxWidth=arrayPageSize[0]*maxSizeRatio;var resizeRatio=1;if(imageHeight>maxHeight){resizeRatio=maxHeight/imageHeight;imageHeight=maxHeight;imageWidth=imageWidth*resizeRatio;}
if(imageWidth>maxWidth){resizeRatio=maxWidth/imageWidth;imageWidth=maxWidth;imageHeight=imageHeight*resizeRatio;}
objImage.style.height=imageHeight;objImage.style.width=imageWidth;var lightboxTop=arrayPageScroll[1]+((arrayPageSize[3]-35-imageHeight)/2);var lightboxLeft=((arrayPageSize[0]-20-imageWidth)/2);objLightbox.style.top=(lightboxTop<0)?"0px":lightboxTop+"px";objLightbox.style.left=(lightboxLeft<0)?"0px":lightboxLeft+"px";objLightboxDetails.style.width=imageWidth+'px';if(objLink.getAttribute('title')){objCaption.style.display='block';objCaption.innerHTML=objLink.getAttribute('title');}else{objCaption.style.display='none';}
if(navigator.appVersion.indexOf("MSIE")!=-1){pause(250);}
if(objLoadingImage){objLoadingImage.style.display='none';}
selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="hidden";}
objLightbox.style.display='block';arrayPageSize=getPageSize();objOverlay.style.height=(arrayPageSize[1]+'px');listenKey();return false;}
imgPreload.src=src_big;}}
function hideLightbox()
{objOverlay=document.getElementById('overlay');objLightbox=document.getElementById('lightbox');objOverlay.style.display='none';objLightbox.style.display='none';selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="visible";}
document.onkeypress='';}
function initLightbox()
{if(!document.getElementsByTagName){return;}
var objBody=document.getElementsByTagName("body").item(0);var objOverlay=document.createElement("div");objOverlay.setAttribute('id','overlay');objOverlay.onclick=function(){hideLightbox();return false;}
objOverlay.style.display='none';objOverlay.style.position='absolute';objOverlay.style.top='0';objOverlay.style.left='0';objOverlay.style.zIndex='101';objOverlay.style.width='100%';objBody.insertBefore(objOverlay,objBody.firstChild);var arrayPageSize=getPageSize();var arrayPageScroll=getPageScroll();var imgPreloader=new Image();imgPreloader.onload=function(){var objLoadingImageLink=document.createElement("a");objLoadingImageLink.setAttribute('href','#');objLoadingImageLink.onclick=function(){hideLightbox();return false;}
objOverlay.appendChild(objLoadingImageLink);var objLoadingImage=document.createElement("img");objLoadingImage.src=loadingImage;objLoadingImage.setAttribute('id','loadingImage');objLoadingImage.style.position='absolute';objLoadingImage.style.zIndex='150';objLoadingImageLink.appendChild(objLoadingImage);imgPreloader.onload=function(){};return false;}
imgPreloader.src=loadingImage;var objLightbox=document.createElement("div");objLightbox.setAttribute('id','lightbox');objLightbox.style.display='none';objLightbox.style.position='absolute';objLightbox.style.zIndex='102';objBody.insertBefore(objLightbox,objOverlay.nextSibling);var objLink=document.createElement("a");objLink.setAttribute('href','#');objLink.setAttribute('title',HeadGlobalJsVar_lightBoxCloseLinkTitle);objLink.onclick=function(){hideLightbox();return false;}
objLightbox.appendChild(objLink);var objImage=document.createElement("img");objImage.setAttribute('id','lightboxImage');objLink.appendChild(objImage);var objLightboxDetails=document.createElement("div");objLightboxDetails.setAttribute('id','lightboxDetails');objLightbox.appendChild(objLightboxDetails);var objCaption=document.createElement("div");objCaption.setAttribute('id','lightboxCaption');objCaption.style.display='none';objLightboxDetails.appendChild(objCaption);var objKeyboardMsg=document.createElement("div");objKeyboardMsg.setAttribute('id','keyboardMsg');if(HeadGlobalJsVar_lightBoxCloseLinkText.indexOf('http://')!=-1){objKeyboardMsg.innerHTML='<div style="height:5px;"></div><div align="center"><img src="'+HeadGlobalJsVar_lightBoxCloseLinkText+'" onclick="hideLightbox(); return false;"/></div>';}
else{objKeyboardMsg.innerHTML='<a href="#" onclick="hideLightbox(); return false;">'+HeadGlobalJsVar_lightBoxCloseLinkText+'</a>';}
objLightboxDetails.appendChild(objKeyboardMsg);}
function addLoadEvent(func)
{var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){oldonload();func();}}}
addLoadEvent(initLightbox);;

/*     CSM: /scripts/ContenuDiv.fun.js    */

function change_div(idelem,idsoc,visuel,indice,type,kw_pdf,provenance){if(visuel=='VisuelDetailInfoRevival'){ajouter_cookie_prod_visite(idelem);}
xmlhttp_div=xmlhttp_gen();date=new Date();global_max=1;var data='idelem='+idelem+'&idsoc='+idsoc+'&visuel='+visuel+'&type='+type+'&max_indice='+global_max+'&indice='+indice+'&kw_pdf='+kw_pdf+'&provenance='+provenance+'&r='+date.getTime();url='/scripts/RecupInfos.php?'+data;xmlhttp_div.open('GET',url,true);xmlhttp_div.onreadystatechange=function(){if(xmlhttp_div.readyState==4){eval('var resultObject = '+xmlhttp_div.responseText);global_max=resultObject.maxIndice;div_a_remplacer=document.getElementById('div_visuel_'+indice);padre=div_a_remplacer.parentNode;div_a_remplacer.innerHTML=resultObject.content;if(div_a_remplacer.hasChildNodes()){for(var i=0;i<div_a_remplacer.childNodes.length;i++){if(div_a_remplacer.childNodes[i].hasChildNodes()){div_remplacement=div_a_remplacer.childNodes[i];}}
padre.insertBefore(div_remplacement,div_a_remplacer);padre.removeChild(div_a_remplacer);supprime_liens();}
else{alert('ERROR');}
if(resultObject.js){eval(resultObject.js);}
var AllScripts=div_remplacement.getElementsByTagName("script");for(var i=0;i<AllScripts.length;i++){var s=AllScripts[i];eval(s.innerHTML);}
if(resultObject.idVisite){var infoVisitArrayName='infoVisit'+resultObject.type;var infoVisitArray=eval('if (typeof '+infoVisitArrayName+' == "undefined") { null } else {'+infoVisitArrayName+'}');if(infoVisitArray!==null){infoVisitArray[idelem]=resultObject.idVisite}}
if(resultObject.idSoc){if(document.redirect_form){document.redirect_form.s.value=resultObject.idSoc;}}}}
xmlhttp_div.send(null);}
function showcomtrad(idp,trad){var marge=0;var itemStyle=document.getElementById('trad_'+idp);var itemDescr=document.getElementById('ElementCommPress_'+idp+'_'+HeadGlobalJsVar_l);if(trad){itemStyle.style.display='';itemDescr.style.display='none';itemStyle.style.marginBottom=marge+'px';}else{itemStyle.style.display='none';itemDescr.style.display='';}}
function pagingEvent(element,event,data){var _tagName=element.tagName.toLowerCase();if(_tagName=='a'){if(event=='click'){document.getElementById('pagination_vars').action=LienPaging[data];document.getElementById('pagination_vars').submit();}else{var _l=element.childNodes.length;for(var i=0;i<_l;i++){var _child=element.childNodes[i];if(_child.tagName.toLowerCase()=='img'){if(event=='over')_child.src=_child.src.replace('_off','_on');else if(event=='out')_child.src=_child.src.replace('_on','_off');}}}}else if(_tagName=='img'){if(event=='over')element.src=element.src.replace('_off','_on');else if(event=='out')element.src=element.src.replace('_on','_off');}
return false;};

/*     CSM: /scripts/div_vignettes.js    */

function o_over(o,souscat,evenement){if(typeof(o.style)!='undefined'){o.style.backgroundColor='#F2F3F7';}
var _imgcat=$("imgcat");if(souscat!=''&&_imgcat){var noeud=$("div_img_cat");var _div_img_cat=noeud;do{noeud=noeud.parentNode;var pos=noeud.offsetTop;}while(noeud.nodeName.toLowerCase()!="table")
var _page_content_div=$("page_content_div");var _page_content_div=$("page_content_div");_imgcat.src=$(souscat).src;var _div_img_cat_top=0;var obj=_div_img_cat;if(obj.offsetParent){do{_div_img_cat_top+=obj.offsetTop;}
while(obj=obj.offsetParent);}
_div_img_cat.style.paddingTop=Math.max(0,evenement.clientY
-_div_img_cat_top
-_imgcat.clientHeight
+_page_content_div.scrollTop);}
else if(_imgcat){_imgcat.src=HeadGlobalJsVar_BaseUrlImage+'/2ai/vide.gif';}}
function o_move(souscat){if(HeadGlobalJsVar_SITE_ID=="ne"){if(souscat!=''&&(_imgcat=$("imgcat"))&&(_src=$(souscat).src)){if(_imgcat.src!=_src){_imgcat.src=_src;}}}}
function o_out(o){if(typeof(o.style)!='undefined'){o.style.backgroundColor='';if(_imgcat=$("imgcat")){_imgcat.src=HeadGlobalJsVar_BaseUrlImage+'/2ai/vide.gif';}}};

/*     CSM: /restricted/js/fenetre.class.js    */

var Fenetre=function(id,content,cheminimg,width,height,left,top,title){this.ID=id;this.Content=content;this.lechemindesimages=cheminimg;this.largeur=width;this.hauteur=height;this.positionY=top;this.positionX=left;this.title=title;this.madiv=null;this.contentdiv=null;this.isMinimize=false;this.sourisX=null;this.sourisY=null;this.droitdebouger=false;this.altminimize='minimize';this.altclose='close';}
Fenetre.prototype.retailler=function(w,h){this.largeur=w;this.hauteur=h;document.getElementById(this.ID).style.width=this.largeur+'px';document.getElementById('Content_'+this.ID).style.height=this.hauteur+'px';document.getElementById('TopBar_'+this.ID).style.width=this.largeur+'px';document.getElementById('iframe'+this.ID).style.width=this.largeur+2+'px';document.getElementById('iframe'+this.ID).style.height=this.hauteur+42+'px';}
Fenetre.prototype.deplacer=function(x,y){this.positionX=x;this.positionY=y;document.getElementById(this.ID).style.top=this.positionY+'px';document.getElementById(this.ID).style.left=this.positionX+'px';}
Fenetre.prototype.afficher=function(){var div=document.createElement('DIV');div.className='windows_jeff';div.style.top=this.positionY+'px';div.style.left=this.positionX+'px';div.style.width=this.largeur+'px';div.id=this.ID;var topDiv=document.createElement('DIV');topDiv.className='windows_jeff_top';topDiv.id='TopBar_'+this.ID;topDiv.target=this;document.documentElement.target=this;document.documentElement.onmouseup=function(){this.target.stopmove();}
topDiv.onmouseup=function(){this.target.stopmove();}
topDiv.onmousedown=function(){this.target.startmove();}
topDiv.style.width=this.largeur+'px';var buttonDiv=document.createElement('DIV');buttonDiv.className='top_buttons';var img=document.createElement('IMG');img.id='UnicityClosedButn'+this.ID;img.src=this.lechemindesimages+'close.gif';img.className='closeButton';img.target=this;img.alt=this.altclose;img.onclick=function(){this.target.detruire();};buttonDiv.appendChild(img);var img=document.createElement('IMG');img.src=this.lechemindesimages+'top_right2.gif';img.style.height='30px';img.style.width='5px';img.className='decoDroite';buttonDiv.appendChild(img);topDiv.appendChild(buttonDiv);var img=document.createElement('IMG');img.src=this.lechemindesimages+'top_left2.gif';img.align='left';topDiv.appendChild(img);var titlewindow=document.createTextNode(this.title);topDiv.appendChild(titlewindow);topDiv.onselectstart=function(){return false;};div.appendChild(topDiv);var middleDiv=document.createElement('DIV');middleDiv.className='windows_jeff_Middle';div.appendChild(middleDiv);var contentDiv=document.createElement('DIV');contentDiv.style.height=this.hauteur+'px';contentDiv.id='Content_'+this.ID;contentDiv.className='windows_jeff_Content';middleDiv.appendChild(contentDiv);var bottomDiv=document.createElement('DIV');bottomDiv.className='windows_jeff_bottom';div.appendChild(bottomDiv);this.madiv=div;patchiframe=document.createElement('IFRAME');patchiframe.className='windows_jeff';patchiframe.style.border='0px';patchiframe.style.top=this.positionY+'px';patchiframe.style.left=this.positionX-1+'px';patchiframe.style.width=this.largeur+2+'px';patchiframe.style.height=this.hauteur+42+'px';patchiframe.id='iframe'+this.ID;patchiframe.style.Zindex=185;document.body.appendChild(patchiframe);document.body.appendChild(div);};Fenetre.prototype.detruire=function(){try{this.madiv.parentNode.removeChild(this.madiv);document.body.removeChild(document.getElementById('iframe'+this.ID));}
catch(e){var mess_error=e.message;}};Fenetre.prototype.minimize=function(){if(this.isMinimize){this.isMinimize=false;document.getElementById('Content_'+this.ID).style.display='block';document.getElementById('minimize_'+this.ID).src=this.lechemindesimages+'minimize.gif';document.getElementById('iframe'+this.ID).style.height=document.getElementById(this.ID).offsetHeight+'px';}
else{this.isMinimize=true;document.getElementById('Content_'+this.ID).style.display='none';document.getElementById('iframe'+this.ID).style.height=document.getElementById(this.ID).offsetHeight+'px';}};Fenetre.prototype.cache=function(){document.getElementById(this.ID).style.display='none';document.getElementById('iframe'+this.ID).style.display='none';};Fenetre.prototype.startmove=function(){souX=x;souY=y;id=this.ID;posX=this.positionX;posY=this.positionY;droitdebouger=true;};Fenetre.prototype.stopmove=function(){if(droitdebouger){this.positionX=posX-souX+x;this.positionY=posY-souY+y;document.getElementById('iframe'+this.ID).style.height=document.getElementById(this.ID).offsetHeight+'px';if(this.positionY>0){document.getElementById(this.ID).style.top=this.positionY+'px';document.getElementById('iframe'+this.ID).style.top=this.positionY-1+'px';}
if(this.positionX>0){document.getElementById(this.ID).style.left=this.positionX+'px';document.getElementById('iframe'+this.ID).style.left=this.positionX-1+'px';}
droitdebouger=false;}};Fenetre.prototype.addContent=function(content){try{lediv=document.getElementById('Content_'+this.ID);lediv.appendChild(content);}
catch(e){var mess_error=e.message;}};Fenetre.prototype.delContent=function(content){try{lediv=document.getElementById('Content_'+this.ID);while(letr.firstChild){letr.removeChild(letr.firstChild);}}
catch(e){var mess_error=e.message;}};Fenetre.prototype.setTitle=function(title){this.title=title;};var y;var x;var droitdebouger=false;var id;var posX;var posY;var souX;var souY;var DocRef;function get_position(e){if(e&&e.target){x=e.pageX;y=e.pageY;}
else{x=event.clientX+DocRef.scrollLeft-2;y=event.clientY+DocRef.scrollTop-2;}
if(droitdebouger){document.getElementById('iframe'+id).style.left=posX-souX-1+x+'px';document.getElementById(id).style.left=posX-souX+x+'px';document.getElementById('iframe'+id).style.top=posY-souY-1+y+'px';document.getElementById(id).style.top=posY-souY+y+'px';document.getElementById('iframe'+id).style.height=document.getElementById(id).offsetHeight+'px';}}
function cancelEvent(){return!droitdebouger;}
function getLeft(l){if(l.offsetParent)return(l.offsetLeft+getLeft(l.offsetParent));else return(l.offsetLeft);}
function getTop(l){if(l.offsetParent)return(l.offsetTop+getTop(l.offsetParent));else return(l.offsetTop);}
var oldwindowonload=document.onload;window.onload=function(){if(document.documentElement&&document.documentElement.clientWidth){DocRef=document.documentElement;}
else{DocRef=document.body;}
DocRef.onmousemove=get_position;var oldondragstart=DocRef.ondragstart;if(typeof DocRef.ondragstart!='function'){DocRef.ondragstart=cancelEvent;}
else{DocRef.ondragstart=function(){oldondragstart();cancelEvent();}}
var oldonselectstart=DocRef.onselectstart;if(typeof DocRef.onselectstart!='function'){DocRef.onselectstart=cancelEvent;}
else{DocRef.onselectstart=function(){oldonselectstart();cancelEvent();}}
if(typeof oldwindowonload=='function'){oldwindowonload();}};

/*     CSM: /scripts/societe.js    */

var nb_step=10;var refresh=25;var xmin=480;var coef=0.82;var oContener;var ContactWindow;var contener_div=document.getElementById('contener_div');if(contener_div){xmin=0;coef=0;}
if(top==self&&document.getElementById('page_content_div')){oContener=document.getElementById('page_content_div');}
else{oContener=document.body;}
var tmpflag=0;function DemandePreIdentif(type,id,source,idSoc){var js_pro='inconnu';var js_part='inconnu';var lien_fiche_pro='inconnu';var in_popup_js=true;if(!source){source=JSVars.source;}
if(idSoc){idSociete=idSoc;}
else{idSociete=JSVars.s;}
if(arguments.length>=5){js_pro=arguments[4];if(typeof(js_pro)!='string'){var func=js_pro.shift();js_pro=func+"('"+js_pro.join("','")+"')";}}
else{in_popup_js=false;}
if(arguments.length>=6){js_part=arguments[5];if(typeof(js_part)!='string'){var func=js_part.shift();js_part=func+"('"+js_part.join("','")+"')";}}
if(arguments.length>=7){lien_fiche_pro=arguments[6];}
if(HeadGlobalJsVar_CONTEXT=="DEV"){var debut_url=HeadGlobalJsVar_SITE_NAME+'.www';}
else{var debut_url='www';}
var letopwin=(document.body.clientWidth-480)/2;try{ContactWindow.detruire();}
catch(e){}
var url="/scripts/DemandeTypeVis.php?TypeDem="+type+"&l="+HeadGlobalJsVar_l+"&IDProduit="+id+"&s="+idSociete+"&SourceType="+source+((JSVars.IDPHeader)?("&IDPHeader="+JSVars.IDPHeader):(""))+(JSVars.AFFICH_REPORT?'&AFFICH_REPORT='+JSVars.AFFICH_REPORT:'');if(!in_popup_js){window.open("","PopUpDemandeTypeVis","toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,"+centered_param(480,560));document.getElementById('form_goto_page_direct').target='PopUpDemandeTypeVis';}
else{if(HeadGlobalJsVar_TypeVis){if(HeadGlobalJsVar_TypeVis=='pro'){if(js_pro!='inconnu'&&js_pro!=''){eval(js_pro);return false;}
else{if(lien_fiche_pro!='inconnu'){create_input_hidden(lien_fiche_pro);document.form_goto_page_direct.target="_blank";goto_page_direct("/scripts/go_to_fichepro.php");document.form_goto_page_direct.target="";return false;}}}
if(HeadGlobalJsVar_TypeVis=='part'){if(js_part!='inconnu'&&js_part!=''){eval(js_part);return false;}
else{if(lien_fiche_pro!='inconnu'){create_input_hidden(lien_fiche_pro);document.form_goto_page_direct.target="_blank";goto_page_direct("/scripts/go_to_fichepro.php");document.form_goto_page_direct.target="";return false;}}}}
else{var hauteurFenetrePour600=360;var hauteurFenetrePour1080=1050;var hauteurFenetre=360;if(document.body.clientHeight>600){hauteurFenetre+=(document.body.clientHeight-600)*(hauteurFenetrePour1080-hauteurFenetrePour600)/(1080-600);}
var topFenetre=(document.body.clientHeight-hauteurFenetre)/2;ContactWindow=new Fenetre('dtc','',HeadGlobalJsVar_searchBaseUrlProduit+'/images_'+HeadGlobalJsVar_SITE_ID+'/2ai/identif/',480,hauteurFenetre,letopwin,topFenetre,'');ContactWindow.altminimize='minimize';ContactWindow.altclose='close';ContactWindow.afficher();test2=document.createElement("iframe");test2.style.height='100%';test2.style.width='100%';test2.style.zIndex='201';test2.name='testiframe2';test2.id='testiframe2';ContactWindow.addContent(test2);try{if(self.frames['testiframe2'].name!='testiframe2'){self.frames['testiframe2'].name='testiframe2';}}
catch(e){}
document.getElementById('form_goto_page_direct').target='testiframe2';add_form_input('form_goto_page_direct','js_part',js_part.replace(/'/,'\\\''));add_form_input('form_goto_page_direct','js_pro',js_pro.replace(/'/,'\\\''));add_form_input('form_goto_page_direct','lien_fiche_pro',lien_fiche_pro.replace(/'/,'\\\''));}}
goto_page_direct(url.split('/'));document.getElementById('form_goto_page_direct').target="";}
function Demande(type,id,nom_soc,id_prod_source,source,tel,idSoc,info_vis){typevis_ask=false;if(idSoc){idSociete=idSoc;}
else{idSociete=JSVars.s;}
if(!info_vis){info_vis=false;}
if(!source){source=JSVars.source;}
if(!nom_soc){nom_soc=JSVars.Nom;}
if(!id_prod_source){id_prod_source=((JSVars.IDProdSource)?(JSVars.IDProdSource):(""));}
if(HeadGlobalJsVar_CONTEXT=="DEV"){var debut_url=HeadGlobalJsVar_SITE_NAME+'.www';}
else{var debut_url='www';}
var letopwin=(document.body.clientWidth-480)/2;try{ContactWindow.detruire();}
catch(e){}
var current_url=document.location;var regexp=/DemandeTypeVis/i;var resultat=regexp.test(current_url);if(resultat){document.getElementById('form_goto_page_direct').target='';}
else{var hauteurFenetrePour600=360;var hauteurFenetrePour1080=1050;var hauteurFenetre=360;if(document.body.clientHeight>600){hauteurFenetre+=(document.body.clientHeight-600)*(hauteurFenetrePour1080-hauteurFenetrePour600)/(1080-600);}
var topFenetre=(document.body.clientHeight-hauteurFenetre)/2;ContactWindow=new Fenetre('dtc','',HeadGlobalJsVar_searchBaseUrlProduit+'/images_'+HeadGlobalJsVar_SITE_ID+'/2ai/identif/',480,hauteurFenetre,letopwin,topFenetre,'');ContactWindow.altminimize='minimize';ContactWindow.altclose='close';ContactWindow.afficher();test2=document.createElement("iframe");test2.style.height='100%';test2.style.width='100%';test2.style.zIndex='201';test2.name='testiframe2';test2.id='testiframe2';ContactWindow.addContent(test2);try{if(self.frames['testiframe2'].name!='testiframe2'){self.frames['testiframe2'].name='testiframe2';}}
catch(e){}
document.getElementById('form_goto_page_direct').target='testiframe2';}
url="/scripts/Demande.php?RefCat="+JSVars.RefCat+"&TypeDem="+type+"&l="+HeadGlobalJsVar_l+"&IDProduit="+id+"&NomSociete="+nom_soc+"&s="+idSociete+"&SourceType="+source+"&DemandeMotCle="+JSVars.MotCle+((JSVars.IDPHeader)?("&IDPHeader="+JSVars.IDPHeader):(""))+((JSVars.PDFShow)?("&PDFShow="+JSVars.PDFShow):(""))+"&SourceID="+id_prod_source+(JSVars.AFFICH_REPORT?'&AFFICH_REPORT='+JSVars.AFFICH_REPORT:'');if(JSVars.PopupTypeVis=='yes'&&HeadGlobalJsVar_TypeVis){url+="&TypeVis="+HeadGlobalJsVar_TypeVis;}
goto_page_direct(url.split('/'));document.getElementById('form_goto_page_direct').target="";}
function getIdVisit(sourceType,idObject){var foundIdVisit=false;var infoVisitArrayName='infoVisit'+sourceType;var infoVisitArray=eval('if (typeof '+infoVisitArrayName+' == "undefined") { null } else {'+infoVisitArrayName+'}');if(infoVisitArray!==null){if(typeof infoVisitArray[idObject]!='undefined'){foundIdVisit=infoVisitArray[idObject];}}
return foundIdVisit;}
function redirect(redirect_script,redirect_url,redirect_id,idp_frameset){var backup=arguments;document.redirect_form.ignoreIdentif.value='';if(typeof(redirect_url)!='string'){redirect_url=redirect_url.join('/');}
if(arguments.length>=5){var sourceType=arguments[4];document.redirect_form.SourceType.value=sourceType;}
if(arguments.length>=6){var ID2=arguments[5];document.redirect_form.IDProduit.value=ID2;var idVisit=getIdVisit(sourceType,ID2);if(idVisit){document.redirect_form.idvisite.value=idVisit;}}
if(arguments.length>=7){document.redirect_form.NomSociete.value=arguments[6];}
if((redirect_script=='dem'&&VisiteurOKForLink!='0')||(redirect_script=='web'&&VisiteurOKForWeb!='0')){document.redirect_form.ignoreIdentif.value='OK';}
document.redirect_form.URL.value=redirect_url;document.redirect_form.ID.value=redirect_id;document.redirect_form.TypeDem.value=redirect_id;var current_url=document.location;var regexp=/DemandeTypeVis/i;var resultat=regexp.test(current_url);if(resultat&&(!JSVars.PopupTypeVis||JSVars.PopupTypeVis!='yes')){try{ContactWindow.detruire();}
catch(e){}
document.redirect_form.target='';document.redirect_form.action='/scripts/go_to_'+redirect_script+'.php'+(JSVars.AFFICH_REPORT?'?fromDemandeTypeVis=1&AFFICH_REPORT='+JSVars.AFFICH_REPORT:'?fromDemandeTypeVis=1');}
else{if(arguments.length>=8){document.redirect_form.ignoreIdentif.value='OK';}
if(idp_frameset=='1'){document.redirect_form.idp_frameset.value='1';if(arguments.length>=8){idp_redirect_popup=window.open('','idp_redirect_popup','scrollbars=1,location=0,menubar=0,resizable=1,status=1,titlebar=1,toolbar=0,'+max_size(0.90,0.80));document.redirect_form.target='idp_redirect_popup';idp_redirect_popup.focus();}}
else{document.redirect_form.idp_frameset.value='';if(arguments.length>=8||(redirect_script=='dem'&&VisiteurOKForLink!='0')||(redirect_script=='web'&&VisiteurOKForWeb!='0')){document.redirect_form.target='_blank';}}
var regexp2=/FillFormClient/i;var fillForm=regexp2.test(redirect_url);var initVisitFromFormClient=0;var no_go_to_dem=false;if(fillForm){var needle="&formFiable=";var pos=redirect_url.lastIndexOf(needle);var formReliable=-1;if(pos>0){formReliable=redirect_url.charAt(pos+needle.length);}
if(formReliable==1){no_go_to_dem=true;if(document.redirect_form.ignoreIdentif!='OK'){initVisitFromFormClient=1;}
add_form_input('redirect_form','initVisitFromFormClient',initVisitFromFormClient);}}
if(resultat&&JSVars.PopupTypeVis&&JSVars.PopupTypeVis=='yes'){if(no_go_to_dem){try{ContactWindow.detruire();}
catch(e){}
document.redirect_form.target='_blank';}
else{document.redirect_form.target='';}}
if(arguments.length<8&&((redirect_script=='dem'&&VisiteurOKForLink=='0'&&!no_go_to_dem)||(redirect_script=='web'&&VisiteurOKForWeb=='0'))){var letopwin=(document.body.clientWidth-480)/2;try{ContactWindow.detruire();}
catch(e){}
ContactWindow=new Fenetre('dtc','',HeadGlobalJsVar_searchBaseUrlProduit+'/images_'+HeadGlobalJsVar_SITE_ID+'/2ai/identif/',480,460,letopwin,50,'');ContactWindow.altminimize='minimize';ContactWindow.altclose='close';ContactWindow.afficher();test2=document.createElement("iframe");test2.style.height='100%';test2.style.width='100%';test2.style.border='0px';test2.style.padding='0px';test2.style.margin='0px';test2.name='testiframe2';test2.id='testiframe2';ContactWindow.addContent(test2);try{if(self.frames['testiframe2'].name!='testiframe2'){self.frames['testiframe2'].name='testiframe2';}}
catch(e){}
if(redirect_script!='dem'){document.getElementById('UnicityClosedButndtc').onclick=function(){ContactWindow.detruire();if(document.domain.match(/directindustry\.fr/i)){request=xmlhttp_gen();request.open('GET','/scripts/anonymousRequest.ajax.php',true);request.onreadystatechange=function(){if(request.readyState==4&&request.status==200){if(request.getResponseHeader('anonymous-allowed')){redirect(redirect_script,redirect_url,redirect_id,idp_frameset,backup[4],backup[5],backup[6],'OK');}}};request.send(null);}
else{redirect(redirect_script,redirect_url,redirect_id,idp_frameset,backup[4],backup[5],backup[6],'OK');}};}
document.redirect_form.target='testiframe2';}
if(no_go_to_dem){add_form_input('redirect_form','aspiration','on');var tab_params=extractParams(redirect_url);if(tab_params){for(var param in tab_params['param']){add_form_input('redirect_form',param,tab_params['param'][param]);}
document.redirect_form.action=tab_params['debutUrl'];}
else{document.redirect_form.action=redirect_url;}}
else{document.redirect_form.action='/scripts/go_to_'+redirect_script+'.php'+(JSVars.AFFICH_REPORT?'?AFFICH_REPORT='+JSVars.AFFICH_REPORT:'');}}
document.redirect_form.submit();}
function add_form_input(form_name,input_name,input_value){if(document.forms[form_name]){var str_eval='if(document.'+form_name+'.'+input_name+'){document.'+form_name+'.'+input_name+'.value="'+input_value+'";}else{try{var input = document.createElement("input");input.type = "hidden";input.name = "'+input_name+'";input.value = "'+input_value+'";document.'+form_name+'.appendChild(input);}catch(e){ alert(e.description);}}';eval(str_eval);}
else{alert('document.forms['+form_name+'] n existe pas');}}
function extractParams(URL){var tab_return=Array();var tab=URL.split('?',2);if(tab.length==2){tab_return['debutUrl']=tab[0];var params=tab[1];var param_tab=params.split('&');for(var i=0;i<param_tab.length;i++){var param=param_tab[i];var val_tab=param.split('=');if(val_tab.length==2){var name=val_tab[0];var val=val_tab[1];if(!tab_return['param'])tab_return['param']=Array();tab_return['param'][name]=val;}
else{return false;}}}
else{return false;}
if(arguments.length>=2){var key=arguments[1];if(tab_return['param'][key])return tab_return['param'][key];}
return tab_return;}
function m_over(o){if(typeof(o.style)!='undefined'){o.style.backgroundColor='#F2F3F7';}}
function m_out(o){if(typeof(o.style)!='undefined'){o.style.backgroundColor='';}};