function addEvent(b,c,a){if(a.addEventListener){a.addEventListener(b,c,false)}else{if(a.attachEvent){a.attachEvent("on"+b,c)}}}function hasClass(b,a){return b.className.match(new RegExp("(\\s|^)"+a+"(\\s|$)"))}function addClass(b,a){if(!this.hasClass(b,a)){b.className+=" "+a}}function removeClass(c,a){if(hasClass(c,a)){var b=new RegExp("(\\s|^)"+a+"(\\s|$)");c.className=c.className.replace(b," ")}}function createXHR(){var d=false;try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(a){try{d=new XMLHttpRequest()}catch(c){d=false}}}return d}function addScript(b){var a=document.createElement("script");a.src=b;document.body.appendChild(a);document.body.removeChild(a)}function in_array(b,c){for(var a=0;a<b.length;a++){if(b[a]==c){return a}}return -1}function valeur(a){strRes=document.getElementById(a).value;return(strRes)}function gopub(b,a){document.getElementById(a).parentNode.replaceChild(document.getElementById(b),document.getElementById(a))}function deplace_pub(a,c){var b=document.getElementById(a);var e=document.getElementById(c);var d=e.parentNode;d.replaceChild(b,e)}function onLoad(){for(i=0;i<document.links.length;i++){var a=document.links[i];addEvent("click",onclick_out,a)}if(document.getElementById("box_lpn")!=null){addEvent("submit",onclick_out,document.getElementById("box_lpn"))}}addEvent("load",onLoad,window);function BrowserDetectLite(){var a=navigator.userAgent.toLowerCase();this.isGecko=(a.indexOf("gecko")!=-1&&a.indexOf("safari")==-1);this.isMozilla=(this.isGecko&&a.indexOf("gecko/")+14==a.length);this.isNS=((this.isGecko)?(a.indexOf("netscape")!=-1):((a.indexOf("mozilla")!=-1)&&(a.indexOf("spoofer")==-1)&&(a.indexOf("compatible")==-1)&&(a.indexOf("opera")==-1)&&(a.indexOf("webtv")==-1)&&(a.indexOf("hotjava")==-1)));this.isIE=((a.indexOf("msie")!=-1)&&(a.indexOf("opera")==-1)&&(a.indexOf("webtv")==-1));this.isSafari=(a.indexOf("safari")!=-1);this.isOpera=(a.indexOf("opera")!=-1);this.isKonqueror=(a.indexOf("konqueror")!=-1&&!this.isSafari);this.isIcab=(a.indexOf("icab")!=-1);this.isAol=(a.indexOf("aol")!=-1);this.isIECompatible=((a.indexOf("msie")!=-1)&&!this.isIE);this.isNSCompatible=((a.indexOf("mozilla")!=-1)&&!this.isNS&&!this.isMozilla);this.versionMinor=parseFloat(navigator.appVersion);if(this.isNS&&this.isGecko){this.versionMinor=parseFloat(a.substring(a.lastIndexOf("/")+1))}else{if(this.isIE&&this.versionMinor>=4){this.versionMinor=parseFloat(a.substring(a.indexOf("msie ")+5))}else{if(this.isMozilla){this.versionMinor=parseFloat(a.substring(a.indexOf("rv:")+3))}else{if(this.isSafari){this.versionMinor=parseFloat(a.substring(a.lastIndexOf("/")+1))}else{if(this.isOpera){if(a.indexOf("opera/")!=-1){this.versionMinor=parseFloat(a.substring(a.indexOf("opera/")+6))}else{this.versionMinor=parseFloat(a.substring(a.indexOf("opera ")+6))}}else{if(this.isKonqueror){this.versionMinor=parseFloat(a.substring(a.indexOf("konqueror/")+10))}else{if(this.isIcab){if(a.indexOf("icab/")!=-1){this.versionMinor=parseFloat(a.substring(a.indexOf("icab/")+6))}else{this.versionMinor=parseFloat(a.substring(a.indexOf("icab ")+6))}}}}}}}}this.versionMajor=parseInt(this.versionMinor);this.geckoVersion=((this.isGecko)?a.substring((a.lastIndexOf("gecko/")+6),(a.lastIndexOf("gecko/")+14)):-1);this.isDOM1=(document.getElementById);this.isDOM2Event=(document.addEventListener&&document.removeEventListener);this.mode=document.compatMode?document.compatMode:"BackCompat";this.isWin=(a.indexOf("win")!=-1);this.isWin32=(this.isWin&&(a.indexOf("95")!=-1||a.indexOf("98")!=-1||a.indexOf("nt")!=-1||a.indexOf("win32")!=-1||a.indexOf("32bit")!=-1||a.indexOf("xp")!=-1));this.isMac=(a.indexOf("mac")!=-1);this.isUnix=(a.indexOf("unix")!=-1||a.indexOf("sunos")!=-1||a.indexOf("bsd")!=-1||a.indexOf("x11")!=-1);this.isLinux=(a.indexOf("linux")!=-1);this.isNS4x=(this.isNS&&this.versionMajor==4);this.isNS40x=(this.isNS4x&&this.versionMinor<4.5);this.isNS47x=(this.isNS4x&&this.versionMinor>=4.7);this.isNS4up=(this.isNS&&this.versionMinor>=4);this.isNS6x=(this.isNS&&this.versionMajor==6);this.isNS6up=(this.isNS&&this.versionMajor>=6);this.isNS7x=(this.isNS&&this.versionMajor==7);this.isNS7up=(this.isNS&&this.versionMajor>=7);this.isIE4x=(this.isIE&&this.versionMajor==4);this.isIE4up=(this.isIE&&this.versionMajor>=4);this.isIE5x=(this.isIE&&this.versionMajor==5);this.isIE55=(this.isIE&&this.versionMinor==5.5);this.isIE5up=(this.isIE&&this.versionMajor>=5);this.isIE6x=(this.isIE&&this.versionMajor==6);this.isIE6up=(this.isIE&&this.versionMajor>=6);this.isIE4xMac=(this.isIE4x&&this.isMac)}var browser=new BrowserDetectLite();var timeout=100;for(var i=0;i<50;i++){eval("var timeoutli"+i+" = false;");eval("var timeoutli_menu_ln_"+i+" = false;");eval("var timeoutli_liste_menu_h_"+i+" = false;");eval("var timeoutli_liste_menu_b_"+i+" = false;")}function initMenu(c){if(browser.isDOM1&&!(browser.isMac&&browser.isIE)&&!(browser.isOpera&&browser.versionMajor<7)&&!(browser.isIE&&browser.versionMajor<5)){var a=document.getElementById(c);var b=a.getElementsByTagName("li");a.className=c;for(var d=0;d<b.length;d++){if(b.item(d).getElementsByTagName("ul").length>0){if(browser.isIE){addAnEvent(b.item(d),"keyup",show)}addAnEvent(b.item(d),"mouseover",show);addAnEvent(b.item(d),"mouseout",timeoutHide);addAnEvent(b.item(d),"blur",timeoutHide);addAnEvent(b.item(d),"focus",show);b.item(d).setAttribute("id","li_"+c+"_"+d);b.item(d).getElementsByTagName("a")[0].className="menuIndicateur"}}}}function addAnEvent(target,eventName,functionName){if(browser.isIE){eval("target.on"+eventName+"=functionName")}else{target.addEventListener(eventName,functionName,true)}}function timeoutHide(){eval("timeout"+this.id+" = window.setTimeout('hideUlUnder( \""+this.id+"\" )', "+timeout+" );")}function hideUlUnder(a){document.getElementById(a).getElementsByTagName("ul")[0].style.visibility="hidden";if(nsc=="lesnums"){document.getElementById(a).style.background="url(http://img1.lesnumeriques.com/images/fond/gris/hd_menu_normal.jpg)"}else{if(nsc=="focus"){document.getElementById(a).style.background="none"}}}function show(){if(nsc=="lesnums"){document.getElementById(this.id).style.background="url(http://img1.lesnumeriques.com/images/fond/hd_menu_hoover.png)"}else{if(nsc=="focus"){if(this.id.substring(3,15)=="liste_menu_h"){document.getElementById(this.id).style.backgroundColor="#424545"}else{document.getElementById(this.id).style.backgroundColor="#715C43"}}}this.getElementsByTagName("ul")[0].style.visibility="visible";eval("clearTimeout( timeout"+this.id+");");hideAllOthersUls(this)}function hideAllOthersUls(a){var c=a.parentNode;for(var b=0;b<c.childNodes.length;b++){if(c.childNodes[b].id&&c.childNodes[b].id!=a.id){hideUlUnderLi(c.childNodes[b])}}}function hideUlUnderLi(a){var c=a.getElementsByTagName("ul");for(var b=0;b<c.length;b++){c.item(b).style.visibility="hidden"}}var clic_1=new Date(1970,1,1);function onclick_out(h){clic_2=new Date();tps_clic=clic_2.getTime()-clic_1.getTime();clic_1=clic_2;if(tps_clic<700){return}selObj=h.target||h.srcElement;var b="";if(selObj.id=="box_lpn"){var d=document.getElementById("input_pub_lpn");var a=d.value;if(a=="Comparer les prix"){document.getElementById("input_pub_lpn").value=""}b=selObj.action+"?"+d.name+"="+document.getElementById("input_pub_lpn").value+"&box=1"}else{while(selObj.tagName!="A"){selObj=selObj.parentNode}b=selObj.href}var j=new Poly9.URLParser(b);var c=/(((((www|img1|forum|newsletter).)?(lesnumeriques|lesnumériques|lesnum|lmdn|focus-numerique|legrandforum).com))|((www.)?(lesnumeriques.(fr|be)))|((www.)?digitalversus.(com|de|co.uk))|((www.)?pricesversus.(fr|co.uk)))/;if(c.test(j.getHost())!=true){if(clic_m=="aj"){var g="http://www.lesnumeriques.com/inc/clic.php?clic_m="+clic_m+"&url_source="+escape(document.location.href)+"&url="+escape(b)+"&type_clic=1";xhr_clic=false;xhr_clic=new createXHR();xhr_clic.open("GET",g,true);xhr_clic.send(null)}else{if(clic_m=="sc"){var f=new Date();var g="http://www.lesnumeriques.com/inc/clic.php?clic_m="+clic_m+"&url_source="+escape(document.location.href)+"&url="+escape(b)+"&type_clic=1&date="+escape(f.getTime());addScript(g)}}}}if(typeof Poly9=="undefined"){var Poly9={}}Poly9.URLParser=function(a){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Pathname:8,URL:0,Querystring:9,Fragment:10};this._values={};this._regex=null;this.version=0.1;this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/;for(var b in this._fields){this["get"+b]=this._makeGetter(b)}if(typeof a!="undefined"){this._parse(a)}};Poly9.URLParser.prototype._initValues=function(){for(var a in this._fields){this._values[a]=""}};Poly9.URLParser.prototype._parse=function(a){this._initValues();var b=this._regex.exec(a);if(!b){throw"DPURLParser::_parse -> Invalid URL"}for(var c in this._fields){if(typeof b[this._fields[c]]!="undefined"){this._values[c]=b[this._fields[c]]}}};Poly9.URLParser.prototype._makeGetter=function(a){return function(){return this._values[a]}};function diapo(a,k,j,e,d,c,b,h,g,f){this.id=a;this.auto=k;this.encours=j;this.temps=e;this.nb_images=d;this.col_fond=c;this.col_hover=b;this.slide=h;this.nom_class_hover=g;this.nom_class_defaut=f}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_showHideLayers(){var c,e,a,d,b=MM_showHideLayers.arguments;for(c=0;c<(b.length-2);c+=3){if((d=MM_findObj(b[c]))!=null){a=b[c+2];if(d.style){d=d.style;a=(a=="show")?"visible":(a=="hide")?"hidden":a}d.visibility=a}}}function fond_col(id_diapo,numero){document.getElementById("b"+id_diapo+"_"+numero).style.backgroundColor=eval("diapo_"+id_diapo).col_hover}var play_etat=new String("");function marche(id_diapo){diapo=eval("diapo_"+id_diapo);if(diapo.slide==true){if(diapo.auto==1){if(diapo.encours==diapo.nb_images-1){diapo.encours=0}else{diapo.encours++}}}for(i=1;i<diapo.nb_images+1;i++){MM_showHideLayers("l"+id_diapo+"_"+i,"","hide")}MM_showHideLayers("l"+id_diapo+"_"+(diapo.encours+1),"","show");if(diapo.en_cours){if(typeof(timeval)!="undefined"){window.clearInterval(timeval);diapo.en_cours=false}}if((diapo.auto==1)&&(diapo.slide==true)){timeval=window.setInterval("marche("+id_diapo+")",diapo.temps);fond(id_diapo,(diapo.encours+1));diapo.en_cours=true}}function b_over(id_diapo,n_bouton){diapo=eval("diapo_"+id_diapo);diapo.encours=n_bouton-1;marche(id_diapo)}function onLoad_diapo(){marche(1)}function fond(c,a){for(var b=1;b<=diapo.nb_images;b++){addClass(document.getElementById("b"+c+"_"+b),diapo.nom_class_defaut);removeClass(document.getElementById("b"+c+"_"+b),diapo.nom_class_hover);if(document.getElementById("alune_arr_"+b)!=undefined){document.getElementById("alune_arr_"+b).style.visibility="hidden"}}removeClass(document.getElementById("b"+c+"_"+a),diapo.nom_class_defaut);addClass(document.getElementById("b"+c+"_"+a),diapo.nom_class_hover);if(document.getElementById("alune_arr_"+a)!=undefined){document.getElementById("alune_arr_"+a).style.visibility="visible"}}function hover_une(id_diapo,n_bouton){diapo=eval("diapo_"+id_diapo);fond(id_diapo,n_bouton);diapo.encours=n_bouton-1;diapo.auto=0;marche(id_diapo)}function stop_diapo(a){diapo.auto=0;marche(a)}function marche_diapo(id_diapo){diapo=eval("diapo_"+id_diapo);diapo.encours=diapo.encours-1;if(diapo.encours<0){diapo.encours=diapo.encours}diapo.auto=1;marche(id_diapo)}function hover_out_news(a,b){if(a){if(b==1){removeClass(document.getElementById(id_news_precedente),"liens_nsp");addClass(document.getElementById(id_news_precedente),"hover")}else{removeClass(document.getElementById(id_news_suivante),"liens_nsp");addClass(document.getElementById(id_news_suivante),"hover")}}else{if(b==1){addClass(document.getElementById(id_news_precedente),"liens_nsp");removeClass(document.getElementById(id_news_precedente),"hover")}else{addClass(document.getElementById(id_news_suivante),"liens_nsp");removeClass(document.getElementById(id_news_suivante),"hover")}}}function change_menu(b,d){if(li_en_cours!=b){document.getElementById("sous_menu_"+li_en_cours).style.visibility="hidden";document.getElementById("sous_menu_"+b).style.visibility="visible";li_en_cours=b;position_li=b-1;ul=document.getElementById(d);var a=ul.getElementsByTagName("li");addClass(a[position_li],"liste_menu_en_cours");for(var c=0;c<a.length;c++){if(c!=position_li){removeClass(a[c],"liste_menu_en_cours");addClass(a[c],"liste_menu_defaut")}}}}function SmartAdServer(c,a,b){if(sas_masterflag==1){sas_masterflag=0;sas_master="M"}else{sas_master="S"}document.write('<SCRIPT SRC="http://ww57.smartadserver.com/call/pubj/'+c+"/"+a+"/"+sas_master+"/"+sas_tmstp+"/"+escape(b)+'?"></SCRIPT>')}function recup_derniers_topics(timeout){var req=new XMLHttpRequest();req.open("GET","/home/derniers_topics.json",true);req.onreadystatechange=function(){if(req.readyState==4){if(req.status!=404){var bloc_derniers_topics="";var derniers_topics=eval("("+req.responseText+")");for(var i=0;i<derniers_topics.length;i++){var num_page=parseInt(derniers_topics[i][5]/40);var lien_topic="http://www.legrandforum.com/avis/Appareils-Photo-Camescopes-Numeriques/"+derniers_topics[i][1]+"sujet_"+derniers_topics[i][2]+"_1.htm";bloc_derniers_topics+='<a href="'+lien_topic+'" >'+derniers_topics[i][0]+"</a>"}document.getElementById("div_defilement").innerHTML=bloc_derniers_topics}}};req.send(null);setTimeout("init_mrq()",timeout)}var pas=1;var stoc=0;var h_fen="112px";var interval="";function scrollmrq(){if(parseInt(mrq.style.top)>-h_mrq-parseInt(350)){mrq.style.top=parseInt(mrq.style.top)-pas+"px"}else{document.getElementById("loading_forum").style.visibility="visible";mrq.style.top=parseInt(h_fen)+"px";clearInterval(interval);if(typeof(interval_haut)!="undefined"){clearInterval(interval_haut)}if(typeof(interval_bas)!="undefined"){clearInterval(interval_bas)}recup_derniers_topics(2000)}}function scrollmrq_haut(){if(parseInt(mrq.style.top)<0){mrq.style.top=parseInt(mrq.style.top)+pas+"px"}else{mrq.style.top="0px"}}function scrollmrq_bas(){if(parseInt(mrq.style.top)>(parseInt(-h_mrq)+parseInt(h_fen)-parseInt(9)-parseInt(350))){mrq.style.top=parseInt(mrq.style.top)-pas+"px"}else{mrq.style.top=(parseInt(-h_mrq)+parseInt(h_fen)-parseInt(18)-parseInt(350))+"px"}}function init_mrq(){mrq=document.getElementById("div_defilement");fen=document.getElementById("menu_deroulant");var defile_haut=document.getElementById("defile_haut");defile_haut.onmouseover=function(){clearInterval(interval);interval_haut=setInterval("scrollmrq_haut()",8)};defile_haut.onmouseout=function(){if(typeof(interval_haut)!="undefined"){clearInterval(interval_haut)}interval=setInterval("scrollmrq()",80)};var defile_bas=document.getElementById("defile_bas");defile_bas.onmouseover=function(){clearInterval(interval);interval_bas=setInterval("scrollmrq_bas()",8)};defile_bas.onmouseout=function(){if(typeof(interval_bas)!="undefined"){clearInterval(interval_bas)}interval=setInterval("scrollmrq()",80)};with(mrq.style){position="absolute";top=0}mrq.onmouseover=function(){stoc=pas;pas=0};mrq.onmouseout=function(){if(typeof(interval_haut)!="undefined"){clearInterval(interval_haut)}if(typeof(interval_bas)!="undefined"){clearInterval(interval_bas)}pas=stoc};fen.style.height=h_fen;h_mrq=mrq.offsetHeight;document.getElementById("loading_forum").style.visibility="hidden";interval=setInterval("scrollmrq()",80)}function no_link(){return false};
