if ( index < 1 || index == ( longueur - 1 ) ) { alert(""); f.email.focus(); return false; } if ( index2 > 0 ) { alert(""); f.email.focus(); return false; } domaine = f.email.value.substring(index + 1, longueur); longueur = domaine.length; index = domaine.indexOf("."); if ( index < 1 || index == ( longueur - 1 ) ) { alert(""); f.email.focus(); return false; } if (obj == 1) f.submit(); } /* fonction appelée par le flash 'slide.swf' */ function flash_chk_formulaire() { chk_formulaire(1); } /******************************/ /* pour la pop dhtml */ var affich_popdhtml; function closeDiv(nomdiv) { ShowSelect();document.getElementById(nomdiv).style.display = "none"; } function mov_module(nomdiv,nomdiv2) { // déplace la popup lorsque l'on scroll bdy_w = window.outerWidth ? window.outerWidth : document.body.clientWidth; bdy_h = window.outerHeight ? window.outerHeight : document.body.clientHeight; if ( document.body.clientHeight ) { if ( document.body.clientWidth < bdy_w ) { bdy_w = document.body.clientWidth; } if ( document.body.clientHeight < bdy_h ) { bdy_h = document.body.clientHeight; } } if ( document.getElementById(nomdiv2).offsetTop ) { if ( document.getElementById(nomdiv2).offsetTop > 0 && document.getElementById(nomdiv2).offsetTop < 2000 ) { bdy_h = document.getElementById(nomdiv2).offsetTop; bdy_w = document.getElementById(nomdiv2).offsetLeft; } } document.getElementById(nomdiv).style.left = document.body.scrollLeft + (( document.body.clientWidth - 580 ) / 2 ) + "px"; bdy_st = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop; document.getElementById(nomdiv).style.top = bdy_st + (( bdy_h - 470 ) / 2 ) + "px"; } /* email catcher dans les flash */ function flashEmailCatcher(emailInternaute) { document.formulaire.email.value = emailInternaute; document.formulaire.submit(); } // relances var viewAlert = 0; var confNum = 0; var exitDouble = 1; if (!exitchainePDV) var exitchainePDV = 2; function popMe() { if (navigator.userAgent.indexOf("Firefox") != -1) { if (viewAlert!=1) { exit_win = window.open(popuplienpop,'_blank','toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1'); exit_win.blur(); } } else { document.body.innerHTML+=""; if (viewAlert!=1) alert(sortie); viewAlert=1; } } function goGoGO(){ if (noPopExit != 1 && exitDouble != 0 && exitchainePDV == 2) { //if (confNum == 0) confirm('Voulez-vous vraiment quitter ce site ?'); if (window.attachEvent) { eval("window.attachEvent('onunload',popMe);"); } else { popMe(); } exitDouble = 1; } } function desact_exit() { exitDouble = 0; } // popdhtml centrale function showpop() { affich_popdhtml = 1; if (document.getElementById("mon_div")) document.getElementById("mon_div").style.display = "block"; } /* SWFObject v2.1 Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis This software is released under the MIT License */ var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("