Vous êtes sur la page 1sur 2

/* All portions of this software are copyright (c) 2003-2006 Right Media*/var rm _ban_flash=0;var rm_url="";var rm_pop_frequency=0;var rm_pop_id=0;var rm_pop_tim

es=0;var rm_pop_nofreqcap=0;var rm_passback=0;var rm_tag_type="";var rm_enable_s upply_transparency=0;var rm_st_referrer="";var rm_md_purl_det_top=0;var rm_md_pu rl_det_if=0;var rm_md_purl_det_nif=0;var rm_enable_ck_mp=0;var rm_ck_mp_cu="";rm _enable_supply_transparency = 0; rm_st_referrer = ""; rm_md_purl_det_top = "1"; rm_md_purl_det_if = "2"; rm_md_purl_det_nif = "3"; rm_enable_ck_mp = 1; rm_tag_t ype = "ad"; rm_url = "http://ad.yieldmanager.com/imp?Z=300x250&s=3111285&_salt=8 55031750";rm_ck_mp_cu = "http://ad.yieldmanager.com/get-user-id?ver=2&s=3111285& ts=1379838895&sig=4471d3d01b11f23e";var RM_POP_COOKIE_NAME='ym_pop_freq';var RM_ INT_COOKIE_NAME='ym_int_freq';if(!window.rm_crex_data){rm_crex_data=new Array(); }if(rm_passback==0){rm_pb_data=new Array();if(rm_crex_data.length>0){rm_url+="&X =";for(var i=0;i<rm_crex_data.length;i++){rm_url+=rm_crex_data[i];if(i!=rm_crex_ data.length-1){rm_url+=",";}}}}else{rm_pb_data.push(rm_crex_data.pop());rm_url+= "&X=";for(var i=0;i<rm_pb_data.length;i++){rm_url+=rm_pb_data[i];if(i!=rm_pb_dat a.length-1){rm_url+=",";}}rm_url+="&Y=pb";}var flash=new Object();flash=flashDet ection();if(cookiesEnabled()){rm_url+=(flash.installed?"&B=10":"&B=12");}else{rm _url+=(flash.installed?"&B=11":"&B=13");}if(!flash.installed||rm_ban_flash==1){r m_url+="&m=2";}if(rm_url.indexOf("&u=")==-1){var url='';try{if(rm_tag_type=="ad" ){if(top==self){url=encodeURIComponent(top.location.href);url=url.substr(0,256); rm_url+="&u="+url;}}else if(rm_tag_type=="iframe"){url=encodeURIComponent(docume nt.referrer);url=url.substr(0,256);rm_url+="&u="+url;}}catch(e){}}if(top==self){ rm_url+="&r=1";}else{rm_url+="&r=0";}if(rm_enable_supply_transparency==true){var durl='';if(top==window){durl=encodeURIComponent(top.location.href);durl=durl.su bstr(0,256);rm_url+="&H="+durl;rm_url+="&M="+rm_md_purl_det_top;}else if(top==wi ndow.parent){durl=encodeURIComponent(rm_st_referrer);durl=durl.substr(0,256);rm_ url+="&H="+durl;rm_url+="&M="+rm_md_purl_det_if;}else{durl=encodeURIComponent(rm _st_referrer);durl=durl.substr(0,256);rm_url+="&H="+durl;rm_url+="&M="+rm_md_pur l_det_nif;}}var rm_tag_src="";if(rm_enable_ck_mp==true){rm_tag_src+='<SCRIPT TYP E="text/javascript" SRC="'+rm_url+'"><\/SCRIPT><SCRIPT TYPE="text/javascript" SR C="'+rm_ck_mp_cu+'" ><\/SCRIPT>';}else{rm_tag_src+='<SCRIPT TYPE="text/javascrip t" SRC="'+rm_url+'"><\/SCRIPT>';}if(rm_pop_frequency){if(rmCanShowPop(rm_pop_id, rm_pop_times,rm_pop_frequency)||rm_pop_nofreqcap){document.write(rm_tag_src);}}e lse{document.write(rm_tag_src);}function cookiesEnabled(){var cookieEnabled=(nav igator.cookieEnabled)?true:false;if(typeof navigator.cookieEnabled=="undefined"& &!cookieEnabled){document.cookie="testcookie";cookieEnabled=(document.cookie.ind exOf("testcookie")!=-1)?true:false;}return cookieEnabled;}function rmGetCookie(N ame){var search=Name+"=";var CookieString=document.cookie;var result=null;if(Coo kieString.length>0){offset=CookieString.indexOf(search);if(offset!=-1){offset+=s earch.length;end=CookieString.indexOf(";",offset);if(end==-1){end=CookieString.l ength;}result=unescape(CookieString.substring(offset,end));}}return result;}func tion flashDetection(){var flash=new Object();flash.installed=false;flash.version ='0.0';if(navigator.plugins&&navigator.plugins.length){for(x=0;x<navigator.plugi ns.length;x++){if(navigator.plugins[x].name.indexOf('Shockwave Flash')!=-1){flas h.version=navigator.plugins[x].description.split('Shockwave Flash ')[1];flash.in stalled=true;break;}}}else if(window.ActiveXObject){for(x=2;x<10;x++){try{oFlash =eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+x+"');");if(oFlash){fl ash.installed=true;flash.version=x+'.0';}}catch(e){}}}return flash;}function rmR eplace(myString,toReplace,replaceBy){return(myString.replace(new RegExp(toReplac e,'gi'),replaceBy));}function writeCookie(ckName,ckVal){var numdays=14;var today =new Date();var expires=new Date();expires.setTime(today.getTime()+(1000*60*60*2 4*numdays));var cookieText=ckName+"="+ckVal+";expires="+expires.toGMTString()+"; path=/;";document.cookie=cookieText;return null;}function rmCanShowPop(rm_pop_id ,pop_times,pop_frequency){var countCookieName=RM_POP_COOKIE_NAME+rm_pop_id;var e xpireCookieName=RM_POP_COOKIE_NAME+"_expiration"+rm_pop_id;var shownTimes=rmGetC ookie(countCookieName);if(shownTimes==null){rmWriteExpirationCookie(expireCookie Name,pop_frequency);shownTimes=0;}else{shownTimes=Number(shownTimes);}if(shownTi mes<pop_times){shownTimes=1+shownTimes;var expiration=rmGetCookie(expireCookieNa me);rmWritePopFrequencyCookie(rm_pop_id,shownTimes,expiration);return_value=true ;}else{return_value=false;}return return_value;}function rmWritePopFrequencyCook

ie(rm_pop_id,shownTimes,expiration){var cookieName=RM_POP_COOKIE_NAME+rm_pop_id; var cookieText=cookieName+"="+shownTimes+";"+"expires="+expiration+";path=/;";do cument.cookie=cookieText;}function rmWriteExpirationCookie(cookieName,frequency) {var today=new Date();var expires=new Date();expires.setTime(today.getTime()+(10 00*frequency));var cookieText=cookieName+"="+expires.toGMTString()+";"+"expires= "+expires.toGMTString()+";path=/;";document.cookie=cookieText;}

Vous aimerez peut-être aussi