<!--
/* Add PM button next to navigation bar
Created By: Krayzie10291
Repostable
DO NOT edit anywhere not specified */

var Start = '  ';
// Start of button (edit)

var End = '  ';
// End of button (edit)

var Guest = "<a href='/index.cgi?action=login'><img src='http://i139.photobucket.com/albums/q291/Mr_Showtime/OWN%20Stuff/pm1-1.gif' border='0'></a>";
// Message guest will see (edit)

var Old = "<a href='/index.cgi?action=pm'><img src='http://i139.photobucket.com/albums/q291/Mr_Showtime/OWN%20Stuff/pm1-1.gif' border='0'></a>";
// Old PM message (edit)

var New="<a href='/index.cgi?action=pm'><img src='http://i139.photobucket.com/albums/q291/Mr_Showtime/OWN%20Stuff/pm2-1.gif' border='0'></a>";
// New PM message (edit)

var N_td = document.getElementsByTagName("td");
if(N_td[2].innerHTML.match(/me\sgu/i)) {
N_td[5].innerHTML+= Start+Guest+End;
} else if(N_td[2].innerHTML.match(/,\s0\sar/i)) {
N_td[5].innerHTML += Start+Old+End;
} else {
N_td[5].innerHTML += Start+New+End;
}
// -->
