1/* Auteur Emmanuel Forsans - Tous droits réservés */ 2var id_menu_encours=!1,alerte_onscreen=!1,scrollbar=!1,offset_mouse_y=!1,offset_touch_y=!1,decel_touch=0,timer_decel_touch=[],delta_scroll=[],facteur_scroll=[],scroll_height=[],scroll_max=[],scroll_touch_max=[],scroll_doc_height=[],scroll_cont_height=[],scrollbox_id=0,scrollbox_events=!1;function image_zoom(e,t,i,n){if(!fade_en_cours){var l,d;if("image_off"==document.getElementById("image_on_off").className||document.getElementById("image_on_off").src!="//jeuvideo.afjv.com/"+e){var o=FindXY(n).y;if("Chrome"!=BrowserDetect.browser&&"Safari"!=BrowserDetect.browser){var r=getScrollPosition();o-=r[1]}var s=getWindowHeight(),a=o,p=s-o-110;d=a>p?a/2-(i+22)/2:o+100+p/2-(i+22)/2,l=getWindowWidth()/2-(t+22)/2,d+i+22>s&&(d=s-i-22),0>l&&(l=0),0>d&&(d=0);document.getElementById("ombre_zoom").style.width=t+22+50+"px",document.getElementById("ombre_zoom").style.height=i+22+50+"px",document.getElementById("ombre_zoom").style.right=l-25+"px",document.getElementById("ombre_zoom").style.top=d-25+"px",transparence("ombre_zoom",35),document.getElementById("image_on_off").src="//jeuvideo.afjv.com/"+e,document.getElementById("image_on_off").style.width=t+"px",document.getElementById("image_on_off").style.height=i+"px",document.getElementById("image_on_off").className="image_on",document.getElementById("image_on_off").style.right=l+"px",document.getElementById("image_on_off").style.top=d+"px",transparence("image_on_off",100)}else image_off()}}function image_off(){fade_out("image_on_off",100,0),fade_out("ombre_zoom",35,0)}function image_off2(){var e;e=document.getElementById("image_on_off"),e.src="//jeuvideo.afjv.com/img/blank.gif",e.style.width="0px",e.style.height="0px",e.className="image_off",e=document.getElementById("ombre_zoom"),e.style.width="0px",e.style.height="0px",e.style.right="1px",e.style.top="1px",fade_en_cours=!1}var fade_en_cours=!1;function fade_out(e,t,n){var l,d;for(fade_en_cours=!0,l=0;20>=l;l++)d=t-5*l,d>=n?setTimeout("transparence ('"+e+"', "+d+")",20*l):l=21;setTimeout("image_off2 ()",20*l)}function fade_in(e,t){var n,l,d,o;for(fade_en_cours=!0,n=1;n<=t;n++){for(d=100,o=t-n+1,l=o;0<l;l--)d/=1.2;100>=d?setTimeout("transparence ('"+e+"', "+d+")",40*n):n=t+1}setTimeout("transparence ('"+e+"', 100)",40*n)}function fade_in_backup(e,t){var n,l;for(fade_en_cours=!0,n=1;n<=t;n++)l=n*(100/t),100>=l?setTimeout("transparence ('"+e+"', "+l+")",40*n):n=t+1;setTimeout("transparence ('"+e+"', 100)",40*n)}function check_zoom(e,t,i,n){"image_off"!=document.getElementById("image_on_off").className&&document.getElementById("image_on_off").src!="//jeuvideo.afjv.com/"+e&&image_zoom(e,t,i,n)}function fiche_pdt_on_off(){var e=document.getElementById("fiche_produit_on_off"),t=document.getElementById("fiche_produit_link");"none"==e.style.display?(t.src="//jeuvideo.afjv.com/imgjv/moins.png",e.style.display="block"):(t.src="//jeuvideo.afjv.com/imgjv/plus.png",e.style.display="none")}function display_bloc_on_off(e){el=document.getElementById(e),el.style.display="none"==el.style.display?"block":"none"}function getWindowHeight(){var e=0;return"number"==typeof window.innerHeight?e=window.innerHeight:document.documentElement&&document.documentElement.clientHeight?e=document.documentElement.clientHeight:document.body&&document.body.offsetHeight&&(e=document.body.offsetHeight),e}function getWindowWidth(){var e=0;return"number"==typeof window.innerWidth?e=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?e=document.documentElement.clientWidth:document.body&&document.body.offsetWidth&&(e=document.body.offsetWidth),e}function FindXY_bak(e){"use strict";var t=0,i=0,n=e;for("textarea"===e.type&&(i+=e.scrollTop);null!==e;)e===n?(t+=e.offsetLeft-e.scrollLeft,i+=e.offsetTop-e.scrollTop,n=n.parentNode,e=e.offsetParent):(t-=n.scrollLeft,i-=n.scrollTop,n=n.parentNode);return{x:t,y:i}}function FindXY(e){"use strict";for(var t=0,i=0;e;)"BODY"===e.tagName||(t+=e.offsetLeft-e.scrollLeft+e.clientLeft,i+=e.offsetTop-e.scrollTop+e.clientTop),e=e.offsetParent;return{x:t,y:i}}function getScrollPosition(){return[document.documentElement&&document.documentElement.scrollLeft||window.pageXOffset||self.pageXOffset||document.body.scrollLeft,document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||self.pageYOffset||document.body.scrollTop]}var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser",this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version",this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(e){for(var t=0;t<e.length;t++){var n=e[t].string,l=e[t].prop;if(this.versionSearchString=e[t].versionSearch||e[t].identity,n){if(-1!=n.indexOf(e[t].subString))return e[t].identity;}else if(l)return e[t].identity}},searchVersion:function(e){var t=e.indexOf(this.versionSearchString);return-1==t?void 0:parseFloat(e.substring(t+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();function transparence(e,t){var i;return i=document.getElementById(e),i.style.filter="alpha(opacity="+t+")",i.style["-moz-opacity"]=t/100,i.style["-khtml-opacity"]=t/100,i.style.opacity=t/100,!0}var last_command;function titre_haut(e){last_command="up"+e,document.getElementById(e+"_txt").style.marginTop="94px",document.getElementById(e+"_fond").style.marginTop="94px"}function titre_bas(e){last_command="down"+e;for(var t=2;24>=t;t+=2)setTimeout("set_margintop ('"+e+"', "+(94+t)+")",10*t)}function set_margintop(e,t){last_command!="up"+e&&(document.getElementById(e+"_txt").style.marginTop=t+"px",document.getElementById(e+"_fond").style.marginTop=t+"px")}function init_titres(){transparence("clic_titre1",0),transparence("clic_titre2",0),transparence("clic_titre3",0),transparence("clic_titre4",0),transparence("titre_1_fond",60),transparence("titre_2_fond",60),transparence("titre_3_fond",60),transparence("titre_4_fond",60),titre_bas("titre_1"),titre_bas("titre_2"),titre_bas("titre_3"),titre_bas("titre_4")}var articles,show_article=!1;function display_articles(){var e=document.getElementById("articles");articles=e.getElementsByTagName("li");var t,n=articles.length-1,l=0;if(show_article){document.getElementById("plus_articles").src="//jeuvideo.afjv.com/imgjv/plus.png",t="none";for(var d=n;2<d;d--)setTimeout("display_article_2 (articles["+d+"],'"+t+"')",l),l+=50}else{document.getElementById("plus_articles").src="//jeuvideo.afjv.com/imgjv/moins.png",t="list-item";for(var d=3;d<=n;d++)setTimeout("display_article_2 (articles["+d+"],'"+t+"')",l),l+=50}show_article=!show_article}function display_article_2(e,t){e.style.display=t}function scroll_page(e){var t=40,i=10,n=document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||self.pageYOffset||document.body.scrollTop;if(n<e)for(;n<e;)setTimeout("fixe_scroll ("+n+")",t),i*=2,t+=40,n+=i;else for(;n>e;)setTimeout("fixe_scroll ("+n+")",t),i*=2,t+=40,n-=i;setTimeout("fixe_scroll ("+e+")",t)}function fixe_scroll(e){document.documentElement.scrollTop=e,document.body.scrollTop=e,window.pageYOffset=e,self.pageYOffset=e}function init_resize_photo(e,t,i){var n=getWindowWidth()-178,l=getWindowHeight()-239;set_cookie("diapo",n+"x"+l),i&&resize_photo(e,t)}function resize_photo(e,t){var i=document.getElementById("grande_photo");var n=getWindowWidth()-178,l=getWindowHeight()-239;if(n-e<(l-t)*(e/t)){var d=e/n;i.style.width=n+"px",i.style.height=t/d+"px"}else{var d=t/l;i.style.width=e/d+"px",i.style.height=l+"px"}}function set_cookie(e,t,i){if(i){var n=new Date;n.setTime(n.getTime()+1e3*(60*(60*(24*i))));var l="; expires="+n.toGMTString()}else var l="";var d=e+"="+escape(t)+l+"; path=/; domain=.afjv.com";document.cookie=d}function read_cookie(e){var t=document.cookie.indexOf(e+"=");if(0<=t){t+=e.length+1;var i=document.cookie.indexOf(";",t);return 0>i&&(i=document.cookie.length),unescape(document.cookie.substring(t,i))}return""}function kill_cookie(e){set_cookie(e,"",-1)}function shadow_screen(e){if("on"==e){var t=document.createElement("div"),i=getWindowWidth()+200,n=getWindowHeight()+200;t.id="shadow_screen",t.style.width=i+"px",t.style.height=n+"px",t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.backgroundColor="#000",t.style.zIndex=70,document.body.appendChild(t),transparence("shadow_screen",40)}else{var t=document.getElementById("shadow_screen");t.parentNode.removeChild(t)}}function dial_box(e,t){if(0<e){t="<br />"+t+"<br /> ";shadow_screen("on");var i=document.createElement("div");i.id="dial_box_bg",i.style.position="fixed",i.style.left=(getWindowWidth()-(e+20))/2+"px",i.style.top=(getWindowHeight()-240)/2-10+"px",i.style.width=e+"px",i.style.height="auto",i.style.padding="30px 20px 30px 20px",i.style.zIndex=75,i.style.backgroundColor="#000",i.style.textAlign="left",i.style.fontSize="12px",i.style.border="2px outset #666",document.body.appendChild(i),transparence("dial_box_bg",40),i=document.getElementById("dial_box_bg"),i.innerHTML="<img src=\"/img/alerte.png\" alt=\"alert\" width=\"60\" height=\"52\" align=\"left\" />"+t;var i=document.createElement("div");i.id="dial_box",i.style.position="fixed",i.style.left=(getWindowWidth()-e)/2+"px",i.style.top=(getWindowHeight()-200)/2+"px",i.style.width=e+"px",i.style.height="auto",i.style.padding="10px",i.style.zIndex=76,i.style.backgroundColor="#FFF",i.style.color="#300",i.style.textAlign="left",i.style.fontSize="12px",i.style.border="2px inset #888",i.style.cursor="pointer",i.onclick=function(){dial_box(0)},document.body.appendChild(i),i=document.getElementById("dial_box"),i.innerHTML="<img src=\"/img/alerte.png\" alt=\"alert\" width=\"60\" height=\"52\" align=\"left\" />"+t}else{var i=document.getElementById("dial_box_bg");i.parentNode.removeChild(i),i=document.getElementById("dial_box"),i.parentNode.removeChild(i),shadow_screen("off")}}function job_options(){scroll_page(0),shadow_screen("on");var e=document.getElementById("option_ct");e.style.display="block"}function close_options(){var e=document.getElementById("option_ct");e.style.display="none",shadow_screen("off")}function display_pub(e,t,i){var n=document.createElement("a");n.id="lien_pub",n.href=t,document.getElementById("pub").appendChild(n);var l=document.createElement("img");l.id="image_pub",l.src=e,l.alt="publicite",l.border="0px",l.width="713",l.height="190",document.getElementById("lien_pub").appendChild(l),i||fade_in("image_pub",25)}function anim_pub(e,t){var n,l,d;for(fade_en_cours=!0,n=1;n<=t;n++)l=n*(100/t),100>=l?(setTimeout("transparence ('"+e+"', "+l+")",40*n),d=190/t*n,setTimeout("set_height ('"+e+"', "+d+")",40*n+10)):n=t+1;setTimeout("transparence ('"+e+"', 100)",40*n)}function set_height(e,t){document.getElementById(e).height=t}function htmlspecialchars_decode(e){var t;return t=/"/g,e=e.replace(t,"\""),t=/'/g,e=e.replace(t,"'"),t=/</g,e=e.replace(t,"<"),t=/>/g,e=e.replace(t,">"),t=/&/g,e=e.replace(t,"&"),e}function htmlspecialchars(e){var t;return t=/&/g,e=e.replace(t,"&"),t=/"/g,e=e.replace(t,"""),t=/'/g,e=e.replace(t,"'"),t=/</g,e=e.replace(t,"<"),t=/>/g,e=e.replace(t,">"),e}function nl2br(e){var t;return t=/\n/g,e=e.replace(t,"<br /> "),e}function br2nl(e){var t;return t=/<br \/>/g,e=e.replace(t,"\n"),t=/<br\/>/g,e=e.replace(t,"\n"),t=/<br>/g,e=e.replace(t,"\n"),e}function str_replace(e,t,i){var n;return n=new RegExp(e,"g"),i=i.replace(n,t),i}function str_ireplace(e,t,i){var n;return n=new RegExp(e,"gi"),i=i.replace(n,t),i}function str2int(e){e+="";var t,n;
2for(valeur="",t=0;t<e.length;t++)n=e.charCodeAt(t),48<=n&&57>=n&&(48!=n||0<valeur.length)&&(valeur+=e.charAt(t)+"");return""==valeur&&(valeur=0),parseInt(valeur)}function check_mail(e){return null!=/^([a-zA-Z0-9_-])+([.]?[a-zA-Z0-9_-]{1,})*@([a-zA-Z0-9-_]{1,}[.])+[a-zA-Z]{2,30}$/.exec(e)}function check_alpha(e){return null!=/^[a-zA-Z_é]+$/.exec(e)}function alerte(e,t,i){id_menu_encours&&delete_menu(),alerte_onscreen&&alerte_close();var n,l,d,o,r;shadow_screen("on"),alerte_onscreen=!0,l=create_shadow_box("id_alerte"),n=document.getElementById("id_alerte"),e+=i?"<p style=\"text-align:right\"><button onclick=\"alerte_close();\">"+i+"</button></p>":"<p style=\"text-align:right\"><button onclick=\"alerte_close();\">Close</button></p>",document.getElementById(l).innerHTML="<br />"+e,t?n.style.width=t+"px":t=n.clientWidth,d=n.clientHeight,o=(getWindowWidth()-t)/2,r=(getWindowHeight()-d)/2;var s=getScrollPosition();o+=s[0],r+=s[1],n.style.left=o+"px",n.style.top=r+"px",n.style.zIndex=75}function confirme(e,t,i,n){id_menu_encours&&delete_menu(),alerte_onscreen&&alerte_close();var l,d,o,r,s;shadow_screen("on"),alerte_onscreen=!0,d=create_shadow_box("id_alerte"),l=document.getElementById("id_alerte"),e+="<p style=\"text-align:center\"><button onclick=\" "+i+";\">Oui</button> <button onclick=\""+n+";\">Non</button></p>",document.getElementById(d).innerHTML="<br />"+e,t?l.style.width=t+"px":t=l.clientWidth,o=l.clientHeight,r=(getWindowWidth()-t)/2,s=(getWindowHeight()-o)/2,l.style.left=r+"px",l.style.top=s+"px",l.style.zIndex=75}function alerte_close(){var e=document.getElementById("id_alerte");e&&(e.parentNode.removeChild(e),shadow_screen("off"),alerte_onscreen=!1)}function create_shadow_box(e){var t,i,n,l,d,o,r,s=document.createElement("table");return s.id=e,s.className="sb_table",r=document.createElement("tbody"),t=document.createElement("tr"),l=document.createElement("td"),l.className="sb_a1",t.appendChild(l),d=document.createElement("td"),d.className="sb_a2",t.appendChild(d),o=document.createElement("td"),o.className="sb_a3",t.appendChild(o),r.appendChild(t),i=document.createElement("tr"),l=document.createElement("td"),l.className="sb_b1",i.appendChild(l),d=document.createElement("td"),d.className="sb_b2",d.id=e+"_zone_texte",i.appendChild(d),o=document.createElement("td"),o.className="sb_b3",i.appendChild(o),r.appendChild(i),n=document.createElement("tr"),l=document.createElement("td"),l.className="sb_c1",n.appendChild(l),d=document.createElement("td"),d.className="sb_c2",n.appendChild(d),o=document.createElement("td"),o.className="sb_c3",n.appendChild(o),r.appendChild(n),s.appendChild(r),document.body.appendChild(s),e+"_zone_texte"}function input(e,t,i){id_menu_encours&&delete_menu(),alerte_onscreen&&alerte_close(),shadow_screen("on"),alerte_onscreen=!0;var n,l,d,o,r,s,a,c,m,g=create_shadow_box("id_alerte"),y=document.getElementById("id_alerte"),h=document.getElementById(g);l=document.createElement("form"),l.action="javascript:"+e+";",l.method="post",l.id="form_input",n=document.createElement("p"),n.innerHTML=t,l.appendChild(n),d=document.createElement("label"),d.innerHTML=i,l.appendChild(d),o=document.createElement("input"),o.setAttribute("type","text"),o.setAttribute("name","form_saisie"),o.setAttribute("id","id_form_saisie"),o.setAttribute("maxLength","20"),l.appendChild(o),r=document.createElement("input"),r.setAttribute("type","submit"),r.setAttribute("name","bouton"),r.setAttribute("id","id_bouton"),r.setAttribute("value","OK"),l.appendChild(r),h.appendChild(l),s=y.clientWidth,a=y.clientHeight,c=(getWindowWidth()-s)/2,m=(getWindowHeight()-a)/2;var f=getScrollPosition();c+=f[0],m+=f[1],y.style.left=c+"px",y.style.top=m+"px",y.style.zIndex=75}function masque_screen(e){if("on"==e){var t=document.createElement("div"),i=getWindowWidth()+200,n=getWindowHeight()+200;t.id="masque_screen",t.style.width=i+"px",t.style.height=n+"px",t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.backgroundColor="#FFF",t.style.zIndex=70,t.setAttribute("onclick","delete_menu()"),document.body.appendChild(t),transparence("masque_screen",1)}else{var t=document.getElementById("masque_screen");t.parentNode.removeChild(t)}}function delete_menu(){id_menu_encours?(boite=document.getElementById(id_menu_encours),boite.parentNode.removeChild(boite),masque_screen("off"),id_menu_encours=!1):alert("Erreur fonction delete_menu")}function bulle(e,t,i,n){var l,d,o,r,s,a,p,c,m,g,y,h;i=i.toLowerCase(),l=document.getElementById("bulle"),d=document.getElementById("arrow"),null==l&&(l=document.createElement("div"),d=document.createElement("div")),l.id="bulle",l.innerHTML=nl2br(t),l=document.body.appendChild(l),d.id="arrow",h="m"==i?"s":i,d.className="bulle_"+h,d=document.body.appendChild(d),m=FindXY(e),p=e.clientWidth,c=e.clientHeight,o=l.clientWidth,r=l.clientHeight;"e"===i?(s=Math.round(m.x+p+4),a=Math.round(m.y+c/2-r/2),g=s-4,y=Math.round(a+r/2-3.5)):"w"===i?(s=Math.round(m.x-o-4),a=Math.round(m.y+c/2-r/2),g=s+o,y=Math.round(a+r/2-3.5)):"n"===i?(s=Math.round(m.x+p/2-o/2),a=Math.round(m.y-r-4),g=Math.round(s+o/2-3.5),y=a+r):"s"===i?(s=Math.round(m.x+p/2-o/2),a=Math.round(m.y+c+4),g=Math.round(s+o/2-3.5),y=a-4):"m"===i?(s=n.clientX,a=n.clientY+16,g=Math.round(s+o/2-3.5),y=a-4):void 0;l.style.left=s+"px",l.style.top=a+"px",transparence("bulle",90),d.style.left=g+"px",d.style.top=y+"px",transparence("arrow",90)}function no_bulle(){var e=document.getElementById("bulle");e&&e.parentNode.removeChild(e),e=document.getElementById("arrow"),e&&e.parentNode.removeChild(e)}function addEvent(e,t,i){e.attachEvent?e.attachEvent("on"+t,i):e.addEventListener(t,i,!0)}function hauteur_objet(e){var t;return e.offsetHeight?t=e.offsetHeight:e.style.pixelHeight&&(t=e.style.pixelHeight),t}function largeur_objet(e){var t;return e.offsetWidth?t=e.offsetWidth:e.style.pixelWidth&&(t=e.style.pixelWidth),t}function radio_value(e){var t,n;for(t=0;t<e.length;t++)e[t].checked&&(n=e[t].value);return n}function number_format(e,t,i,l){e=(e+"").replace(",","").replace(" ","");var d=isFinite(+e)?+e:0,n=isFinite(+t)?Math.abs(t):0,o="undefined"==typeof l?",":l,r="undefined"==typeof i?".":i,a="";return a=(n?function(e,t){var i=Math.pow(10,t);return""+Math.round(e*i)/i}(d,n):""+Math.round(d)).split("."),3<a[0].length&&(a[0]=a[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(a[1]||"").length<n&&(a[1]=a[1]||"",a[1]+=Array(n-a[1].length+1).join("0")),a.join(r)}function trim(e){return e.replace(/^\s+/g,"").replace(/\s+$/g,"")}function scrollbox_events_init(e){scrollbox_events||(!e&&(e=document.body),addEvent(e,"mousemove",scroll_move),addEvent(e,"mouseup",function(){scrollbar=0}),addEvent(document,"keydown",scroll_clavier),document.body.addEventListener("touchmove",function(e){e.preventDefault()},!1),document.body.addEventListener("touchend",function(e){e.preventDefault()},!1),scrollbox_events=!0)}function scroll_set(e,t){var i;0>e&&(e=0),e>scroll_max[t]&&(e=scroll_max[t]),i=-e*facteur_scroll[t],delta_scroll[t]=e,document.getElementById(t+"_bar").style.top=e+"px",document.getElementById(t+"_sdoc").style.top=i+"px"}function scroll_move(e){if(scrollbar){var t,i;t=e.clientY,offset_mouse_y?(i=t-offset_mouse_y,scroll_set(i,scrollbar)):offset_mouse_y=t-delta_scroll[scrollbar],no_selection(e)}else offset_mouse_y=0}function scroll_molette(t){if(scrollbox_id){var i=delta_scroll[scrollbox_id],n=t||window.event,e=15*-n.detail||n.wheelDelta/4;e/=facteur_scroll[scrollbox_id],no_selection(t),i-=e,scroll_set(i,scrollbox_id)}}function scroll_tactile(e){if(timer_decel_touch[scrollbox_id]&&window.clearTimeout(timer_decel_touch[scrollbox_id]),1==e.targetTouches.length){var t,i,n=delta_scroll[scrollbox_id],l=e.targetTouches[0];t=l.pageY,offset_touch_y&&(decel_touch=offset_touch_y-t,i=decel_touch/facteur_scroll[scrollbox_id],n+=i,scroll_set(n,scrollbox_id)),offset_touch_y=t,e.preventDefault()}}function scroll_tactile_end(){offset_touch_y=0,decel_touch&&(timer_decel_touch[scrollbox_id]=window.setTimeout("scroll_tactile_decel ('"+scrollbox_id+"')",50))}function scroll_tactile_decel(e){var t;1>Math.abs(decel_touch)?decel_touch=0:(t=decel_touch/facteur_scroll[e]+delta_scroll[e],scroll_set(t,e),timer_decel_touch[e]=window.setTimeout("scroll_tactile_decel ('"+e+"')",50)),decel_touch/=1.2}function scroll_clavier(e){var t,i=0,n=window.event?e.keyCode:e.which,l=delta_scroll[scrollbox_id];if(scrollbox_id){switch(n){case 38:t=30/facteur_scroll[scrollbox_id],i=1;break;case 40:t=-30/facteur_scroll[scrollbox_id],i=1;break;case 33:t=scroll_height[scrollbox_id],i=1;break;case 34:t=-scroll_height[scrollbox_id],i=1;break;case 36:t=0,l=0,i=1;break;case 35:t=0,l=scroll_max[scrollbox_id],i=1;break;default:}i&&(l-=t,scroll_set(l,scrollbox_id),no_selection(e))}}function scroll_clic(e){var t,i=e.clientY,n=delta_scroll[scrollbox_id];t=document.getElementById(scrollbox_id+"_barc"),i-=FindXY(t).y,i>n?n+=scroll_height[scrollbox_id]:n-=scroll_height[scrollbox_id],scroll_set(n,scrollbox_id),no_selection(e)}function scroll_check(e){var t,i,n,l,d;t=document.getElementById(e+"_sdoc"),n=hauteur_objet(t),l=scroll_doc_height[e],n!=l&&(d=scroll_cont_height[e],l=n,l>d?(scroll_height[e]=d/l*d,facteur_scroll[e]=l/d,scroll_max[e]=d-scroll_height[e],scroll_touch_max[e]=l-d,offset_mouse_y=0,scroll_doc_height[e]=l,scroll_cont_height[e]=d):(scroll_height[e]=d,facteur_scroll[e]=1,scroll_max[e]=0,scroll_touch_max[e]=0,delta_scroll[e]=0,offset_mouse_y=0,scroll_doc_height[e]=l,scroll_cont_height[e]=d),delta_scroll[e]>scroll_max[e]&&(delta_scroll[e]=scroll_max[e]),i=document.getElementById(e+"_bar"),i.style.height=scroll_height[e]-4+"px",i.style.top=delta_scroll[e]+"px",t.style.top=-delta_scroll[e]*facteur_scroll[e]+"px")}function no_selection(e){e.preventDefault&&e.preventDefault(),e.returnValue=!1}function scrollbox_append(e,t,i,n,l){var d,o,r;d=document.createElement("div"),d.id=l+"_cont",d.className="scroll_conteneur",d.style.width=i+"px",d.style.height=n+"px",t.appendChild(d),e.id=l+"_sdoc",e=d.appendChild(e),hauteur_max=hauteur_objet(e),addEvent(d,"mouseover",function(){scrollbox_id=l}),addEvent(d,"mouseout",function(){scrollbox_id=0}),addEvent(d,"DOMMouseScroll",scroll_molette),addEvent(d,"mousewheel",scroll_molette),addEvent(d,"touchmove",function(e){scrollbox_id=l,scroll_tactile(e)}),addEvent(d,"touchend",scroll_tactile_end),addEvent(d,"keydown",scroll_clavier),hauteur_max>n?(scroll_height[l]=n/hauteur_max*n,facteur_scroll[l]=hauteur_max/n,scroll_max[l]=n-scroll_height[l],scroll_touch_max[l]=hauteur_max-n,delta_scroll[l]=0,offset_mouse_y=0,scroll_doc_height[l]=hauteur_max,scroll_cont_height[l]=n):(scroll_height[l]=n,facteur_scroll[l]=1,scroll_max[l]=0,scroll_touch_max[l]=0,delta_scroll[l]=0,offset_mouse_y=0,scroll_doc_height[l]=hauteur_max,scroll_cont_height[l]=n),o=document.createElement("div"),o.id=l+"_barcc",o.className="scroll_barcc",o.style.height=n+"px",o=d.appendChild(o),r=document.createElement("div"),r.id=l+"_barc",r.className="scroll_barc",r.style.height=n+"px",r.setAttribute("onclick","scroll_clic(event)"),o.appendChild(r),r=document.createElement("div"),r.id=l+"_bar",r.className="scroll_bar",r.style.height=scroll_height[l]-4+"px",r.setAttribute("onmousedown","scrollbar = '"+l+"'; no_selection (event)"),o.appendChild(r)}function remove_obj(e){var t=document.getElementById(e);if(t){for(;t.firstChild;)t.removeChild(t.firstChild);t.parentNode.removeChild(t)}}function empty_obj(e){var t=document.getElementById(e);if(t)for(;t.firstChild;)t.removeChild(t.firstChild)}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.