// *******************************************
// Google PR graph insertion script source code
// Copyright 2006 WMTIPS. All Rights Reserved.
// http://www.wmtips.com
// *******************************************

var oldOnloadPR = window.onload;

window.onload = function() 
{ 
 window.onload = null;
 replacePRs();
 if (typeof(oldOnloadPR) == "function")
  oldOnloadPR();  
}

function replacePRs() 
{
 var s = document.getElementsByTagName('td');
 for (var i=0; i<s.length; i++) 
 {
 	attrs = s[i].attributes;
 	cl = attrs.getNamedItem("class");
 	if (cl != null && cl.value == "pr" && s[i].childNodes[0] != null)
 	{
 		var r = new String(s[i].childNodes[0].nodeValue);
 		if (!isNaN(r))
 		{
 		pr = r;
 		p1=pr*5;
 		p2=50-p1;
 		prs = '<img src="/img/prg.gif" width="'+p1+'" height="5" align="absmiddle" style="border:none; padding: 0;" alt=""><img src="/img/prw.gif"" width="'+p2+'" height="5" align="absmiddle" style="border:none; padding: 0;" alt="">&nbsp;'+pr;
 		s[i].innerHTML = prs;
 		}
 	}
 }
}

