/*Overlord Affiliate V3 table by Soul-Divider (Xtreeme.Proboards22.com). Thanks to Ross, who contributed with advice and inspiration.
This code must not be reposted, modified in any way without my permission and must not be used in any forum other than http://rpgxtreemecodes.proboards81.com or http://xtreeme.proboards22.com. 
V3 is available for use and has slight modifications at http://rpgxtreemecodes.proboards81.com and http://101support.proboards43.com.
This Statement must not be removed.
Legal action will be taken if this is violated.*/

document.getElementById('hostdown').style.display = 'none';
if(location.href.match(/table=allAffiliates/)){
document.getElementById('forumPage').style.display = 'none';
document.write('<br><br>');
if (headImg != ''){
document.write('<center><img src='+headImg+'></center>');}
document.write('<table border="0" width="'+tWidth+'" cellspacing="1" cellpadding="1" class="bordercolor" align="center" style="position: relative; top: 0px;"><tr><td class="catbg" height="24" colspan="1"><font size=2 class="cattext"><b><center>All Affiliates</center></b></font><tr><td width="100%" class="windowbg2" valign="middle"><br><center>');
for(a=0; a<aff.length; a++){
document.write('<a href=');
document.write(aff[a][0]);
document.write(' target="_blank"><img src=');
document.write(aff[a][1]);
document.write(' width=88 height=31 border=0 alt=');
document.write(aff[a][2]);
document.write(' </a> ');}
document.write('</center><br></tr></td></table>')
if (baseImg != ''){
document.write('<center><img src='+baseImg+'></center>');}
document.write('<br><br>')
}else{
var randomness = Math.floor(Math.random() * aff.length);
if (headImg != ''){
document.write('<center><img src='+headImg+'></center>')}
document.write('<table border="0" width="'+tWidth+'" cellspacing="1" cellpadding="1" class="bordercolor" align="center" style="position: relative; top: 0px;"><tr><td class="catbg" height="24" colspan="1"><font size=2 class="cattext">Random</font></td><td class="catbg" height="24" colspan="1"><font size=2 class="cattext"><b><center> Affiliates - </b></font><font size=1><a href="/index.cgi?table=allAffiliates" class="nav">All Affiliates</center></a></font>')
var browserName=navigator.appName;
if (browserName=="Microsoft Internet Explorer"){ 
document.write('<textarea style="height: 1px; width: 1px; filter:alpha(opacity=0);" id="copyArea"><a href="'+boardURL+'" target="_blank"><img src="'+bannerURL+'" border="0" alt="'+boardName+'" height="31" width="88" /></a></textarea>')}
document.write('</td><td class="catbg" height="24" colspan="1" align="right"><font size=2 class="cattext">Ours</font></td></tr><tr><td width="1%" class="windowbg2" valign="middle">');
document.write('<a href=');
document.write(aff[randomness][0]);
document.write(' target="_blank"><img src=');
document.write(aff[randomness][1]);
document.write(' width=88 height=31 border=0 alt=');
document.write(aff[randomness][2]);
document.write(' style=-moz-opacity:0.5;filter:alpha(opacity='+offOpacity+') onmouseover=this.style.MozOpacity=1;this.filters.alpha.opacity='+onOpacity+' onmouseout=this.style.MozOpacity=0.5;this.filters.alpha.opacity='+offOpacity+'></a>');
document.write('</td><td width="100%" class="windowbg2" valign="middle"><marquee onMouseOver="this.stop()" onMouseOut="this.start()" direction="left" scrollamount="'+scrollSpeed+'">')
for(a=0; a<aff.length; a++){
document.write('<a href=');
document.write(aff[a][0]);
document.write(' target="_blank"><img src=');
document.write(aff[a][1]);
document.write(' width=88 height=31 border=0 alt=');
document.write(aff[a][2]);
document.write(' style=-moz-opacity:0.5;filter:alpha(opacity='+offOpacity+') onmouseover=this.style.MozOpacity=1;this.filters.alpha.opacity='+onOpacity+' onmouseout=this.style.MozOpacity=0.5;this.filters.alpha.opacity='+offOpacity+'></a>');}
document.write('</marquee></td><td class="windowbg2" style="padding: 4px; width=1%"><img src="'+bannerURL+'" border="0" onmouseover=this.style.cursor=\'pointer\'; onclick="clickBanner();" alt="Click to Affiliate with '+boardName+'"></td></tr></table>')
if (baseImg != ''){
document.write('<center><img src='+baseImg+'></center>')}
document.write('<br><br>')
function clickBanner(){
if(pb_username=="Guest"){
alert("Unfortunately you need to be logged in to send pm\'s, you are now being forwarded to the thread containing our affiliate code.");
window.open(guestThread);
}else{ 
if (browserName!=="Microsoft Internet Explorer"){ 
alert('Because you are not using Internet Explorer to use this link, you are unable to use one of this code\'s functions, instead your PM will instruct the reciver to send their affiliate code to you. please be patient.');
var name = prompt("Please enter your Board URL, Your Minibanner URL and Site Name. The following information will be PM\'d","YOUR BOARD URL, YOUR MINIBANNER URL, YOUR SITE NAME");
if (name==null || name==""){ return; }
if (name=="YOUR BOARD URL, YOUR MINIBANNER URL, YOUR SITE NAME"){ alert('Invalid Information'); return }
var fox="This user is not using Internet Explorer, please reply to this PM with your affiliate code, as the copy function doesn't work outside of Internet Explorer.";
window.open("/index.cgi?action=pmsend&to="+pmReciever+"&subject="+ pmSubject +"&message="+pmMessage +" "+name+" "+fox);
}else{
var name = prompt("Please enter your Board URL, Your Minibanner URL and Site Name. The following information will be PM\'d","YOUR BOARD URL, YOUR MINIBANNER URL, YOUR SITE NAME");
if (name==null || name==""){ return; }
if (name=="YOUR BOARD URL, YOUR MINIBANNER URL, YOUR SITE NAME"){ alert('Invalid Information'); return }
var bannerClicked = document.getElementById("copyArea");
bannerClicked.select();
if(document.all);{
var bannerClickedRange = bannerClicked.createTextRange();
bannerClickedRange.execCommand("Copy");}
alert('Our affiliate code has been copied. Paste in your code to affiliate');
window.open("/index.cgi?action=pmsend&to="+pmReciever+"&subject="+ pmSubject +"&message="+pmMessage +" "+name);}}}}








