﻿	function avenseo_getCookie(c) {
   var i = document.cookie.indexOf(c + '=');
   if (i >= 0) {
       i += c.length + 1;
       var j = document.cookie.indexOf(';', i);
       if (j < 0) { j = document.cookie.length; }
       return document.cookie.substring(i, j);
   }
   return '';
}
function avenseo_disabled() {
   return avenseo_getCookie('avenseo') == 'disabled';
}
function avenseo_disable() {
   document.cookie = 'avenseo=disabled; expires=' + new Date(new Date().getTime() + 1800000).toGMTString();
   if (avenseo_disabled()) { window.location.reload(); }
}
function avenseo_timout() {
   if (avenseo_status == 'call') { avenseo_disable(); }
}
function avenseo_call(p) {
   if (!avenseo_disabled()) {
       avenseo_status = 'call';
       window.setTimeout('avenseo_timout()', 10000);
       document.write('<' + 'scr' + 'ipt type="text/javascript" charset="utf-8" src="' + (window.location.protocol == 'https:' ? 'https:' : 'http:') + '//st.avenseo.com/f1/s?cid=Cofidis' + p + '"><' + '/scr' + 'ipt>');
   }
}
function avenseo_show(t) {
   avenseo_status = 'show';
   document.write(eval('avenseo_' + t));
}
function avenseo_fetch(ts, ps) {
   avenseo_call('&T=' + ts + ps);
}
function avenseo_transform(c, ps) {
   avenseo_call('&C=' + c + ps);
}
function avenseo_end() {
   avenseo_status = 'end';
}