1/* Variables definition */ 2var sp_hid = []; 3sp_hid["stats"] = "96E661332B034F5EBDB2B7CE297E9365"; 4sp_hid["clics"] = "0F4CFF59E2F8473BCB8707A2B370EFD7"; 5 6var _spURL = "https://ws3.smartp.com/sp_tracker_v3.cfm"; 7var sp_tracking_consent = 0; /* no consent by default */ 8 9/* utilitaires */ 10String.prototype.trim = String.prototype.trim || function trim() { return this.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); }; 11 12function getTitle() { 13 return encodeURI(document.title.split("-")[0].trim()); 14} 15function isMobileOrTablet() { 16 var check = false; 17 (function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent||navigator.vendor||window.opera); 18 return check; 19}; 20 21/* lib flash deconcept */ 22if(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(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}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=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!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 _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=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 _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,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");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[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(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";
22for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[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; 23 24/* tracker js pour smartProfile */ 25var sp_trackerv3 = function() { 26 /* private stuff */ 27 var generateID = function() { 28 return ""+(new Date).getTime().toString(16)+Math.floor(1E7*Math.random()).toString(16)+Math.floor(1E7*Math.random()).toString(16); 29 }; 30 var getDomain = function() { 31 return encodeURIComponent(window.location.protocol+'//'+window.location.hostname); 32 }; 33 var getTimezoneOffset = function() { 34 var _ctz = (new Date()).getTimezoneOffset(); 35 return Math.round(((_ctz==(new Date(20010101)).getTimezoneOffset())?_ctz:(_ctz+60))/-60); 36 }; 37 var getViewportSize = function(){ 38 if(window.innerWidth !== undefined && window.innerHeight !== undefined) { 39 var _w = window.innerWidth; 40 var _h = window.innerHeight; 41 } else { 42 var _w = document.documentElement.clientWidth; 43 var _h = document.documentElement.clientHeight; 44 } 45 if (_w !== undefined) 46 return _w + "x" + _h; 47 else 48 return "n/a"; 49 }; 50 var getUrlParamValue = function(param) { 51 var qs = window.location.search.substr(1); 52 var vars = qs.split("&"); 53 for (var i=0;i<vars.length;i++) { 54 var pair = vars[i].split("="); 55 if (pair[0] == param) { 56 var _val = pair[1].split("#"); 57 return _val[0]; 58 } 59 } 60 return ""; 61 }; 62 var setCookie = function(_name,_value,_expireInDays) { 63 var _expireDate = new Date(); 64 _expireDate.setTime(_expireDate.getTime()+(_expireInDays*24*60*60*1000)); 65 document.cookie = _name + "=" + (encodeURIComponent(_value) || "") + ((_expireInDays) ? (';expires=' + _expireDate.toUTCString()) : "") + "; path=/"; 66 }; 67 var getCookie = function(_name) { 68 var nameEQ = _name + "="; 69 var ca = document.cookie.split(';'); 70 for(var i=0;i < ca.length;i++) { 71 var c = ca[i]; 72 while (c.charAt(0)==' ') c = c.substring(1,c.length); 73 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 74 } 75 return null; 76 }; 77 var deleteCookie = function(_name) { 78 document.cookie = _name+'=; Max-Age=-99999999;'; 79 }; 80 var getSPCookie = function() { 81 var _ckValue = (getCookie("sp_i")!=null) ? getCookie("sp_i") : generateID(); 82 setCookie("sp_i",_ckValue,395); 83 return _ckValue; 84 }; 85 var _params = { 86 _consent : sp_tracking_consent, 87 _hid : "", 88 _sp_url : _spURL, 89 _cr : new Date().getTime(), 90 _ck : (navigator.cookieEnabled ? 1 : 0), 91 _ua : navigator.userAgent, 92 _fv :( deconcept.SWFObjectUtil.getPlayerVersion()["major"] > 0) ? deconcept.SWFObjectUtil.getPlayerVersion()["major"] : -1, 93 _dom : getDomain(), 94 _title : encodeURIComponent(document.title), 95 _res : (window.screen) ? screen.width + "x" + screen.height : "n/a", 96 _col : (window.screen) ? screen.colorDepth : "n/a", 97 _vp : getViewportSize(), 98 _tz : getTimezoneOffset(), 99 _h : "", 100 _fp : getSPCookie(), 101 _event : "", 102 _sp_con : "", 103 _utm_campaign : "", 104 _utm_source : "", 105 _utm_medium : "", 106 _utm_content : "", 107 _ready : false 108 }; 109 var getH = function(_hid) { 110 var _qs = '?action=getH&_hid='+_hid+'&_res='+_params._res+'&_col='+_params._col+'&_tz='+_params._tz; 111 fetch(_params._sp_url+_qs).then(function(response) { 112 if (response.ok) { 113 return response.json(); 114 } 115 }).then(function(_json) { 116 _params._h = _json.h; 117 _params._ready = true; 118 }); 119 }; 120 121 /* public part */ 122 return { 123 isReady : function (){ 124 return _params._ready; 125 }, 126 getHash : function(_hid) { 127 getH(_hid); 128 }, 129 doTrackClick : function (ctyp,clab,cfrom,cto,hid,cst,site) { 130 var sp=new Array(); 131 sp[0]="?_hid="+hid; 132 sp[1]="&_ctyp="+ctyp; 133 sp[2]="&_clab="+clab; 134 sp[3]="&_cfrom="+cfrom; 135 sp[4]="&_cto="+cto; 136 if ((typeof site !== 'undefined') && (site != "")) { 137 sp[5]="&_site="+site; 138 } 139 sp_trackerv3.doTrack(sp,"",cst); 140 }, 141 doTrack : function(sp,ci,cst) { 142 if (typeof cst !== 'undefined') { _params._consent=cst;} 143 else _params._consent=0; 144 145 var smartParam = ""; 146 for(var i=0;i<sp.length;i++) { 147 if (_params._consent==false || _params._consent==0) { 148 var _crit = sp[i].trim().substr(1,5); 149 if (_crit!="login") 150 smartParam += sp[i]; 151 } 152 else 153 smartParam += sp[i]; 154 } 155 if (ci!="") smartParam += "&_ci=" +ci; 156 smartParam += "&_cr=" + Math.round (Math.random()*1000000000000000); 157 smartParam += "&_fv=" + encodeURIComponent(_params._fv); 158 smartParam += "&_dom=" + encodeURIComponent(window.location.protocol+'//'+window.location.hostname); 159 smartParam += "&_ref=" + encodeURIComponent(document.referrer.substring(0,254)); 160 smartParam += "&_res=" + encodeURIComponent(_params._res) + "&_col=" + encodeURIComponent(_params._col); 161 smartParam += "&_vp=" + _params._vp; 162 smartParam += "&_tz=" + _params._tz; 163 smartParam += "&_ck=" + _params._ck; 164 smartParam += "&_fp=" + _params._fp; 165 smartParam += "&_optin=" + _params._consent; 166 smartParam += "&_event=" + encodeURIComponent(getUrlParamValue("event")); 167 smartParam += "&_sp_con=" + encodeURI(getUrlParamValue("sp_con")); 168 if (_params._consent==true || _params._consent==1) { 169 smartParam += "&utm_campaign=" + encodeURI(getUrlParamValue("utm_campaign")); 170 smartParam += "&utm_source=" + encodeURI(getUrlParamValue("utm_source")); 171 smartParam += "&utm_medium=" + encodeURI(getUrlParamValue("utm_medium"));
172 smartParam += "&utm_content=" + encodeURI(getUrlParamValue("utm_content")); 173 } 174 smartImageF=new Image(); 175 smartImageF.src=_params._sp_url+smartParam; 176 } 177 }; 178}(); 179 180/* Specific */ 181function sp_track(_consent) { 182 if (typeof _consent !== 'undefined') { sp_tracking_consent=_consent; } 183 var spParams = [], ci=""; 184 spParams.push("?_hid="+sp_hid["stats"]); 185 186 if (isMobileOrTablet()) 187 spParams.push("&_site=Site Mobile"); 188 else 189 spParams.push("&_site=Site Desktop"); 190 191 spParams.push("&_title="+getTitle()); 192 193 sp_trackerv3.doTrack(spParams, ci, sp_tracking_consent); 194} 195 196if (!window.sp_track) { 197 window.sp_track = sp_track 198}; 199 200 201function sp_clic(ctyp, clab, cfrom, cto, cst) { 202 var _consent = (typeof cst !== 'undefined') ? cst : 0; 203 var _site = (isMobileOrTablet()) ? "Site Mobile" : "Site Desktop"; 204 sp_trackerv3.doTrackClick(ctyp, clab, cfrom, cto, sp_hid["clics"], _consent, _site); 205}
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.