document.write(''); /* ********** REFERRER TOOLS ************** */ /* *** VARS *** */ var er_ref_cookie_name = 'er_ref_set_cookie_referrer_cook'; var er_ref_isSafari = (/Safari/.test(navigator.userAgent)); var er_ref_ida = '1000'; var er_ref_cur_domain = ''; var er_ref_referrer = ''; var er_ref_referrer_orig = ''; var er_ref_referrer_kw = ''; var er_ref_current_cook = ''; var er_ref_cnt_iframe = 0; /* *** FUNCTIONS *** */ if (typeof er_ref_set_cookie != 'function') { function er_ref_set_cookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "; path=/") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } } if (typeof er_ref_get_cookie_value != 'function') { function er_ref_get_cookie_value (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } } if (typeof er_ref_get_cookie != 'function') { function er_ref_get_cookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return er_ref_get_cookie_value (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } } if (typeof er_ref_parse_kw_search != 'function') { function er_ref_parse_kw_search(getvalue, url) { var regex = new RegExp("[?&]" + getvalue + "=([^&]*)"); output = regex.exec(url); return (output ? output[1] : ''); } } if (typeof er_ref_set_current_domain != 'function') { function er_ref_set_current_domain() { er_ref_cur_domain = document.location.href; er_ref_cur_domain = er_ref_cur_domain.substring(7, er_ref_cur_domain.length); er_ref_cur_domain = er_ref_cur_domain.substring(0, er_ref_cur_domain.indexOf('/')); } } if (typeof er_ref_set_referrer_datas != 'function') { function er_ref_set_referrer_datas() { er_ref_referrer = document.referrer; er_ref_referrer_orig = er_ref_referrer; if (er_ref_referrer.indexOf('http://') != -1) { er_ref_referrer = er_ref_referrer.substring(7, er_ref_referrer.length); er_ref_referrer = er_ref_referrer.substring(0, er_ref_referrer.indexOf('/')); if (er_ref_referrer_orig.indexOf('google.') != -1) er_ref_referrer_kw = er_ref_parse_kw_search('q', er_ref_referrer_orig); if (er_ref_referrer_orig.indexOf('yahoo.') != -1) er_ref_referrer_kw = er_ref_parse_kw_search('p', er_ref_referrer_orig); if (er_ref_referrer_orig.indexOf('bing.') != -1) er_ref_referrer_kw = er_ref_parse_kw_search('q', er_ref_referrer_orig); if (er_ref_referrer_orig.indexOf('voila.') != -1) er_ref_referrer_kw = er_ref_parse_kw_search('rdata', er_ref_referrer_orig); if (er_ref_referrer_orig.indexOf('aol.') != -1) er_ref_referrer_kw = er_ref_parse_kw_search('q', er_ref_referrer_orig); } } } if (typeof er_ref_track_visit != 'function') { function er_ref_track_visit() { var random = Math.floor(Math.random()*9999+1); var er_url = 'https://gateway.eravage.com/set_hit_referrer.php?ida='+er_ref_ida+'&referer='+er_ref_cur_domain+'&referer_orig='+er_ref_referrer+'&referer_orig_kw='+er_ref_referrer_kw+'&rand='+random; var img = new Image(0, 0); img.src = er_url; document.body.appendChild(img); } } if (typeof er_ref_do_iframe != 'function') { function er_ref_do_iframe(domain) { if (er_ref_isSafari) { document.write('
'); document.write(''); document.write('
') document.write(''); eval('document.er_ref_form_set_cookie'+er_ref_cnt_iframe+'.submit();'); } else { document.write(''); } er_ref_cnt_iframe++; } } if (typeof er_ref_add_event_on_load != 'function') { function er_ref_add_event_on_load(fnc){ if ( typeof window.addEventListener != "undefined" ) window.addEventListener( "load", fnc, false ); else if ( typeof window.attachEvent != "undefined" ) window.attachEvent( "onload", fnc ); else { if( typeof window.onload != 'function' ) window.onload = func; else { var prev_onload = window.onload; window.onload = function() { prev_onload(); func(); } } } } } /* *** EXEC *** */ er_ref_set_current_domain(); er_ref_set_referrer_datas(); er_ref_current_cook = er_ref_get_cookie(er_ref_cookie_name); if (er_ref_referrer != "" && er_ref_referrer != er_ref_cur_domain && er_ref_current_cook == null) { er_ref_do_iframe('gateway.eravage.com'); er_ref_do_iframe('www.pornravage.com'); er_ref_do_iframe('www.proche2moi.com'); var er_ref_expir_date = new Date(); er_ref_expir_date.setTime(er_ref_expir_date.getTime()+(3600*1000)); er_ref_set_cookie(er_ref_cookie_name, 'ok', er_ref_expir_date); } er_ref_add_event_on_load( function() { er_ref_track_visit(); } ); /* ********** /REFERRER TOOLS ************** */