// ---------------------------- jQuery ---------------------------------
jQuery(document).ready(function () {
  // 
  // Survol Connexion
  jQuery('#lienconnexion').hover(function () {
      var reltest = jQuery('#logon').attr("rel");
      if (reltest==0) {
        jQuery("#logon").css({ "display" : "block" });
      }
    }, function () {
      // si on ne survol pas #logon on ferme
      jQuery.timer(500, function (timer) {
          var testaff = jQuery('#connex').attr("rel");
          if (testaff!=1 ) {
            jQuery("#logon").css({ "display" : "none" });
          }
          timer.stop();
       });      
      //
  });    
  // Survol Box Connexion
  jQuery('#logon').hover(function () {
      jQuery('#logon').attr("rel","1"); // SET
      jQuery('#connex').attr("rel","1"); // SET
    }, function () {
        jQuery("#logon").css({ "display" : "none" });
        jQuery('#logon').attr("rel","0"); // RAZ
        jQuery('#connex').attr("rel","0"); // RAZ
      //
  });    
  //
  jQuery('#passoubli').hover(function () {
    jQuery(this).css({ cursor: "pointer" , color : "#ffffff"});
    }, function () {
    jQuery(this).css({ cursor: "auto" , color : "#283976"});
  });
  //  
  //
  jQuery("#identcookies").click(function(){
    //récupération des variables GET
    //var tmpGET = window.location.search.substring();
    // Récupération de l'URL complète
    //alert(document.location);
    jQuery.cookie("urlretourcookies", document.location, { expires: 30 });
    //
    if (jQuery(this).attr('checked')) { // si true
      jQuery.cookie("actioncookies", '1', { expires: 30 });
    }
    else {
      jQuery.cookie("actioncookies", '0', { expires: 30 });
    }
    var url="cookiesident.php";
    window.location=url;
  });
  //  
  //
});

