// AutoBlink
// Puts Google's Autolink on the Blink :)
// (c) 2005 Chris Ridings   http://www.searchguild.com
// Redistribute at will but leave this message intact

var linkcount;
function countlinks() {
   var numlinks;
   numlinks=0;
   for (i=0; i < document.links.length; i++) {
    numlinks++;
   }
   return numlinks;
}

function checklinks() {
   if (!(linkcount==countlinks())) {
    // Something changed the links!
    // Iterate for an id of _goog
    found=0;
    for (i=0; i < document.links.length; i++) {
    if (document.links[i].id.substring(0,5)=="_goog") {
     // If we find an id of _goog then remove the link!
     var tr = document.links[i].parentTextEdit.createTextRange();
     tr.moveToElementText(document.links[i]);
     tr.execCommand("Unlink",false);
     tr.execCommand("Unselect",false);
    }
   }
  }
  setTimeout("checklinks()",500);
}

if (document.getElementById && document.createElement) {
  linkcount=countlinks();
  setTimeout("checklinks()",500);
}