document.write('<div id="pmDiv" style="position:absolute; top: 5px; right: 5px;"></div>');

var newImg = 'http://i824.photobucket.com/albums/zz168/theartforums/VBEdGS.png';
var noNewImg = 'http://i824.photobucket.com/albums/zz168/theartforums/rb4qao.png';
var getDiv = document.getElementById("pmDiv");

if(!pb_username.match(/^(Guest)$/)){
document.body.innerHTML.match(/hey, .*, you have <.*>(.*) messages?.*?, (\d+,\d+|\d+) (are|is) new/i)
var newPms = RegExp.$2
if(newPms == 0){
	getDiv.innerHTML ='<a href="/index.cgi?action=pm"><img src="'+noNewImg+'" border="0" /></a>';
}else{
	getDiv.innerHTML ='<a href="/index.cgi?action=pm"><img src="'+newImg+'" border="0" /></a>';
}
} else{
	getDiv.innerHTML ='<a href="/index.cgi?action=register"><img src="'+noNewImg+'" border="0" /></a>';
}