// Detect if page is already using jQuery, add it if missing
var script    = document.createElement("script");
script.src    = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js";

script.onload = script.onreadystatechange = function() { 
  // Check where we're at to customize the page peel URL
  var current_location  = document.location.href; 
  var index             = current_location.indexOf(".net/");
  current_location      = current_location.substring(index+4);
  current_location      = current_location.split("/",2);
  current_location      = current_location[1];

  // If micro with its own domain name (not on yannick.net)
  if (current_location == "") {
    current_location  = document.location.href; 
  }

  // Append the page peel image with the link
  $("body").append("<a href='http://www.yannickweb.net/contact.html?pp=Je%20souhaite%20devenir%20propri%E9taire%20de%20la%20page%20"+current_location+"' rel='external'><img src='http://www.yannick.net/scripts/page_a_louer/page_a_louer.png' style='position:fixed; z-index: 999999; top: 0; right: 0; !position: absolute; border: 0; !top: expression(0+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+'px'); !left: expression(0+((e=document.documentElement.scrollLeft)?e:document.body.scrollLeft)+'px');' /></a>");

};

document.body.appendChild( script );




