<!--
var f5pop_width;
var f5pop_height;
var f5pop_move_max;
var f5pop_move_min;
var f5pop_move;
var bdy_height;
var bdy_width;
var f5pop_margin;
var f5pop_left;
var f5pop_top;
var shw_timeout;
var hid_timeout;
var nbr_appar;
var tps_appar;
var tps_repet;
var bdy_st;
var mov_timeout;
var shw_again_timeout;
var hid_again_timeout;

// INITIALISATION VARIABLES
f5pop_width     = 238; // largeur popup
f5pop_height    = 108; // hauteur popup
f5pop_move_max = f5pop_height; // valeur maximal de la propriete top du div 'f5pop_div_2' (div tout en bas)
f5pop_move_min = 0;            // valeur minimal de la propriete top du div 'f5pop_div_2' (div au en haut)
f5pop_move     = f5pop_height; // valeur de la propriete top du div 'f5pop_move' par rapport au conteneur parent

function wri_f5pop() {
  document.write('<div id="f5pop_div_0" style="position:absolute; width:0px; height:0px; top:0px; left:0px; z-index:248;">');
  document.write('  <div id="f5pop_div_1" style="position:absolute; width:' + f5pop_width + 'px; height:' + f5pop_height + 'px; overflow:hidden; z-index:249;">');
  document.write('    <div id="f5pop_div_2" style="position:absolute; width:' + f5pop_width + 'px; height:' + f5pop_height + 'px; left:0px; z-index:250;">');
  document.write('      <iframe id="f5pop_ifr" src="http://outils.f5biz.com/dating/pub_collantes/iframe.php?id=3013&promo=cbdial&rebill=1&cf2=promoglo&popup=0&theme=4&cible=7&resize=0&nbr_appar=0&tps_appar=20&tps_repet=5&fak_ferme=0" width="' + f5pop_width + '" height="' + f5pop_height + '" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" allowtransparency="true"></iframe>');
  document.write('    </div>');
  document.write('  </div>');
  document.write('</div>');
  document.write('<div id="f5pop_div_3" style="position:absolute; width:0px; height:0px; left:100%; top:100%; overflow:hidden;"></div>');
}

function ini_f5pop() {
  if ( window.outerHeight ) { // Mozilla
    bdy_height = window.outerHeight;
    bdy_width  = window.outerWidth;
  } else { // IE
    bdy_height = document.body.clientHeight;
    bdy_width  = document.body.clientWidth;
  }

  if ( document.body.clientHeight ) {
    if ( document.body.clientWidth  < bdy_width  ) { bdy_width  = document.body.clientWidth;  }
    if ( document.body.clientHeight < bdy_height ) { bdy_height = document.body.clientHeight; }
  }

  // POSITION DE F5_POP_DIV_3
  if ( document.getElementById('f5pop_div_3').offsetTop ) {
   if ( document.getElementById('f5pop_div_3').offsetTop > 0 && document.getElementById('f5pop_div_3').offsetTop < 2000 ) {
      bdy_height = document.getElementById('f5pop_div_3').offsetTop;
      bdy_width  = document.getElementById('f5pop_div_3').offsetLeft;
    }
  }

  // POSITION DE F5_POP_DIV_1
  if ( navigator.appName == "Microsoft Internet Explorer" ) { f5pop_margin = 5; } else { f5pop_margin = 20; } // 20
  f5pop_left = bdy_width  - f5pop_width  - f5pop_margin;
  f5pop_top  = bdy_height - f5pop_height - 4;

  document.getElementById('f5pop_div_1').style.left = f5pop_left + "px";
  document.getElementById('f5pop_div_1').style.top  = f5pop_top  + "px";
}

function shw_f5pop() { // affiche progressivement la pub collante
  if ( document.getElementById('f5pop_div_1').style.visibility == "hidden" ) {
    document.getElementById('f5pop_div_1').style.visibility = "visible";
  }
  //alert(f5pop_move);
  if ( f5pop_move > f5pop_move_min ) {
    f5pop_move = f5pop_move - 1; // on retranche 1 pixel de 'f5pop_move'
    document.getElementById('f5pop_div_2').style.top = f5pop_move + "px"; // on faire remonter 'f5pop_div_2' en réduisant la valeur de la propriété top de 'f5pop_div_2'
    shw_timeout = window.setTimeout('shw_f5pop()', 10); // la fonction 'shw_f5pop()' est rappelée toutes les 0,010 secondes soit 100 fois par seconde
  } else {
    window.clearTimeout(shw_timeout);
    hid_again();
  }
}

function hid_f5pop() { // fait disparaitre progressivement la pub collante
  if ( f5pop_move < f5pop_move_max ) {
    f5pop_move = f5pop_move + 2; // on incrémente 'f5pop_move' de 1 pixel
    document.getElementById('f5pop_div_2').style.top = f5pop_move + "px"; // on faire descendre 'f5pop_div_2' en augmentant la valeur de la propriété top de 'f5pop_div_2'
    hid_timeout = window.setTimeout('hid_f5pop()', 10); // la fonction 'hid_f5pop()' est rappelée toutes les 0,010 secondes soit 100 fois par seconde
  } else {
    window.clearTimeout(hid_timeout);
    shw_again();
    document.getElementById('f5pop_ifr').src = "http://outils.f5biz.com/dating/pub_collantes/iframe.php?id=3013&promo=cbdial&rebill=1&cf2=promoglo&popup=0&theme=4&cible=7&resize=0&nbr_appar=0&tps_appar=20&tps_repet=5&fak_ferme=0";
    document.getElementById('f5pop_div_1').style.visibility = "hidden";
  }
}

function mov_f5pop() { // déplace la popup lorsque l'on scroll
  bdy_st = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
  document.getElementById("f5pop_div_0").style.left = document.body.scrollLeft + "px";
  document.getElementById("f5pop_div_0").style.top  = bdy_st + "px";
  mov_timeout = window.setTimeout('mov_f5pop()', 10);
}

nbr_appar = 0;
tps_appar = 20;
tps_repet = 5;

var i = 1;
function shw_again() {
	ini_f5pop();
  shw_again_timeout = window.setTimeout('shw_f5pop()', tps_repet * 1000); // temps entre chaque apparition
}

var j = 1;
function hid_again() {
  hid_again_timeout = window.setTimeout('hid_f5pop()', tps_appar * 1000); // temps visible à l'écran
}

function lod_f5pop() {
  wri_f5pop();
  ini_f5pop();
  shw_f5pop();
  mov_f5pop();
}

lod_f5pop();
-->
