// TagOverlay v0.3 (rel="tag" version)
// http://www.greg-hill.id.au (CC - 2.1a)
// Stripped-down variant that grabs tags from page using rel="tag" as the marker, and highlights current text
// See http://blogfresh.blogspot.com
// Original at http://ghill.customer.netspace.net.au/tagover/tagover-v01-dev.js
// Constants
var origText, bText="", boxCol="180", maxCount=0;
if (typeof(hiCol)=='undefined')
var hiCol="30";
hiStart="";
hiEnd="";
// Functions
function doHiRexp(tagLabel, tagCount)
{
var hiStartRep = hiStart.replace(/!tagLabel!/ig, tagLabel);
var first = tagLabel.charAt(0);
var rest = tagLabel.substr(1);
var cap = first.toUpperCase();
var re = new RegExp('(>[^<>]*\\s+|>)(['+first+cap+']'+rest+')([^<>]*<)','g');
bText=bText.replace(re, '$1'+hiStartRep+'$2'+hiEnd+'$3');
return;
}
function procTagOverlay( obj )
{
if (!document.body || typeof(document.body.innerHTML) == "undefined")
{
alert("TagOverlay has problems with this webpage. No results returned.");
return false;
}
bText = document.body.innerHTML;
for(var o=0; o