/* ExtremeData | SlipStream - http://exdat.proboards44.com/index.cgi?
Global Headers - Cannot be USED ANYWHERE!
Any other site found to be using this code shall be in violation of this copyright notice.
By {XF}Äs$@§sîñ™, http://www.xf-clan.net/ This header must stay intact. */


function getID(thisID) {
   return document.getElementById(thisID);
}

var objCont = {
   createO: function(oName, oAtt) {
      var tempO = document.createElement(oName);
      for (a=0; a<oAtt.length; a++) {
         if (/^className$/.test(oAtt[a][0])) {
            tempO.className = oAtt[a][1];
         }
         else if (/^style/i.test(oAtt[a][0])) {
            eval("tempO.style." + oAtt[a][0].split(/:/)[1] + " = \"" + oAtt[a][1] + "\";");
         }
         else {
            tempO.setAttribute(oAtt[a][0], oAtt[a][1]);
         }
      }
      return tempO;
   },

   createF: function() {
      var tempF = document.createElement("font");
      tempF.appendChild(document.createTextNode(arguments[0]));
      return tempF;
   }
}

var table = document.getElementsByTagName("table");
var tr = document.getElementsByTagName("tr");
var td = document.getElementsByTagName("td");
var iT = document.getElementsByTagName("i");

with (table.item(0)) {
   width = "100%";
   cellSpacing = 0;
   className = "";
   removeAttribute("bgColor");
}
with (table.item(3)) {
   cellPadding = 0;
   className = "menubg";
}

with (table.item(1).rows.item(0).cells.item(0)) {
   width = "432";
   height = "79";
   align = "left";
   innerHTML = '<img src="http://exdat.net/v2/images/newnewbanner.png" />';
}
with (table.item(1).rows.item(0).cells.item(1)) {
   var pmDiv = objCont.createO("div", [["id", "edPanel"]]);
   if (/Guest/.test(pb_username)) {
      pmDiv.appendChild(document.createTextNode("Welcome "));
      pmDiv.appendChild(objCont.createO("span", [["style:fontSize", "10px"], ["style:color", "df0904"]]));
      pmDiv.lastChild.appendChild(document.createTextNode(pb_displayname));
      pmDiv.appendChild(document.createTextNode(" to "));
      pmDiv.appendChild(objCont.createO("span", [["style:fontSize", "10px"], ["style:fontWeight", "bold"], ["style:color", "df0904"]]));
      pmDiv.lastChild.appendChild(document.createTextNode(document.title.split(" - ")[0]));
      pmDiv.appendChild(document.createTextNode("."));
      pmDiv.appendChild(document.createElement("br"));
      pmDiv.appendChild(document.createTextNode("Please "));
      pmDiv.appendChild(getElementsByTagName("a").item(0));
      pmDiv.appendChild(document.createTextNode(" or "));
      pmDiv.appendChild(getElementsByTagName("a").item(0));
      pmDiv.appendChild(document.createTextNode("."));
   }
   if (/,\s(\d+)\s(is|are)\snew./i.exec(getElementsByTagName("font").item(0).innerHTML)) {
      var pmTotal = RegExp.$1;
      pmDiv.appendChild(document.createTextNode("Welcome back "));
      pmDiv.appendChild(objCont.createO("span", [["style:fontSize", "10px"], ["style:color", "df0904"]]));
      pmDiv.lastChild.appendChild(document.createTextNode(pb_displayname));
      pmDiv.appendChild(document.createTextNode(". You have "));
      if (parseInt(pmTotal) >= 1) {
         pmDiv.appendChild(objCont.createO("span", [["style:fontSize", "10px"], ["style:fontWeight", "bold"], ["style:color", "df0904"]]));
         pmDiv.lastChild.appendChild(document.createTextNode(parseInt(pmTotal)));
         pmDiv.appendChild(document.createTextNode(" new message"));
         pmDiv.appendChild(document.createTextNode((parseInt(pmTotal) == 1)?  "" : "s" ));
      }
      else {
         pmDiv.appendChild(document.createTextNode("no new messages"));
      }
      pmDiv.appendChild(document.createTextNode(" in your inbox."));
      pmDiv.appendChild(document.createElement("br"));
      pmDiv.appendChild(objCont.createO("a", [["href", "/index.cgi?action=pm"]]));
      if (/you\shave\s<.*>(\d+)\smessag(e|es)/i.exec(getElementsByTagName("font").item(0).innerHTML)) {
         pmDiv.lastChild.appendChild(document.createTextNode("Inbox (" + parseInt(RegExp.$1) + ")"));
      }
      pmDiv.appendChild(objCont.createO("span", [["style:paddingLeft", "7px"], ["style:paddingRight", "7px"]]));
      pmDiv.lastChild.appendChild(document.createTextNode(" / "));
      pmDiv.appendChild(objCont.createO("a", [["href", "/index.cgi?action=pm&view=2"]]));
      pmDiv.lastChild.appendChild(document.createTextNode("Outbox"));
      pmDiv.appendChild(objCont.createO("span", [["style:paddingLeft", "7px"], ["style:paddingRight", "7px"]]));
      pmDiv.lastChild.appendChild(document.createTextNode(" / "));
      pmDiv.appendChild(objCont.createO("a", [["href", "/index.cgi?action=pmsend"]]));
      pmDiv.lastChild.appendChild(document.createTextNode("New Message"));
      pmDiv.appendChild(objCont.createO("span", [["style:paddingLeft", "7px"], ["style:paddingRight", "7px"]]));
      pmDiv.lastChild.appendChild(document.createTextNode(" / "));
      pmDiv.appendChild(objCont.createO("a", [["href", "/index.cgi?action=pmprefs"]]));
      pmDiv.lastChild.appendChild(document.createTextNode("Preferences"));
   }
   replaceChild(objCont.createO("div", [["innerHTML", "&nb" + "sp;"]]), getElementsByTagName("p").item(0));
}

with (td.item(5)) {
   width = "57%";
   align = "left";
   className = "";
   removeAttribute("bgColor");
   var menuLinks = firstChild;
}

for (i=0; i<menuLinks.childNodes.length; i++) {
   if (menuLinks.childNodes.item(i).nodeName.match(/^a$/i)) {
      continue; // for now
   }
   else if (menuLinks.childNodes.item(i).nodeType == 3) {
      menuLinks.removeChild(menuLinks.childNodes.item(i));
   }
}

with (td.item(5).parentNode.insertCell(td.item(5).cellIndex+1)) {
   width = "415";
   align = "left";
   className = "pmCenter";
   appendChild(pmDiv);
}

with (td.item(5).parentNode.insertCell(td.item(5).cellIndex+2)) {
   appendChild(objCont.createO("div", [["innerHTML", "&nb" + "sp;"]]));
}





function ed_gfooter(){

/* ExtremeData | SlipStream - http://exdat.proboards44.com/index.cgi?
 Extreme Data - MiniProfile Additions - Cannot be USED ANYWHERE!
 Any other site found to be using this code shall be in violation of this copyright notice.
 By Samus, This header must stay intact AT ALL TIMES. */

// Image used for DevArt Contact Icon
  var lastfm = "http://exdat.net/v2/images/da_ed5.png";

// No need for Editing
  var sC = document.getElementsByTagName('td');
    if(document.modifyForm){
      var baseInfo = document.modifyForm.icq.parentNode.parentNode.parentNode;
        baseInfo.parentNode.appendChild(baseInfo.cloneNode(true));
        baseInfo.parentNode.lastChild.firstChild.firstChild.replaceChild(document.createTextNode('DEVIANTART:'),baseInfo.parentNode.lastChild.firstChild.firstChild.lastChild);
        baseInfo.parentNode.lastChild.firstChild.nextSibling.firstChild.firstChild.setAttribute('name','dA');
        baseInfo.parentNode.lastChild.firstChild.nextSibling.firstChild.firstChild.setAttribute('id','dA');
        baseInfo.parentNode.lastChild.firstChild.nextSibling.firstChild.firstChild.removeAttribute('maxlength');
        baseInfo.parentNode.lastChild.firstChild.nextSibling.nextSibling.firstChild.replaceChild(document.createTextNode('Your DeviantArt Username.'),baseInfo.parentNode.lastChild.firstChild.nextSibling.nextSibling.firstChild.lastChild);
      var personalText = document.modifyForm.personaltext;
      var dAId = document.getElementById('dA');
        if(personalText.value.match(/\(dA:(.+?)\)/i)){
          dAId.value = RegExp.$1;
          personalText.value = personalText.value.replace(/\(dA:(.+?)\)/i,'');
        }
        function saveData(){
          if(dAId.value != ''){
            personalText.value += '(dA:'+dAId.value+')';
          }
        }
        if(document.addEventListener){
          document.modifyForm.addEventListener('submit', saveData, false);
        }else{
          document.modifyForm.attachEvent('onsubmit', saveData);
        }
    }
    if(location.href.match(/action=(display|(calendar|pm)?view(profile)?|search2|(user)?recent)/i) || document.title.match(/\s-\s(Search|Preview)/i)){
      for(a=4;a<sC.length;a++){
        if(sC[a].width.match(/20%/i) && sC[a].vAlign == 'top' && sC[a].className.match(/windowbg/i) && sC[a].innerHTML.match(/\(dA:(.+?)\)/)){
          if(sC[a].innerHTML.match(/\(dA:(.+?)\)/)){
            var linky = document.createElement('a');
              linky.setAttribute('href','http://'+RegExp.$1+'.deviantart.com/');
              linky.setAttribute('target','_blank');
            var picy = document.createElement('img');
              picy.setAttribute('src',lastfm);
              picy.setAttribute('alt','\[dA\]');
              picy.setAttribute('border','0');
              linky.appendChild(picy);
              sC[a].getElementsByTagName('center')[0].appendChild(linky);
          }
          sC[a].innerHTML = sC[a].innerHTML.replace(/\(dA:(.+?)\)/i,'');
        }
      }
    }

/* ExtremeData | SlipStream - http://exdat.proboards44.com/index.cgi?
Global Footers - Cannot be USED ANYWHERE!
Any other site found to be using this code shall be in violation of this copyright notice.
By {XF}Äs$@§sîñ™, This header must stay intact AT ALL TIMES. */
// http://www.haloleague.net/eD/v2/js/edgf.js

var tr = document.getElementsByTagName("tr");
if(location.href.match(/\?board=\w+&?(&field=\w+|&order=(asc|desc)|&page=\d+|&moderationmode=\d)*(#\w+)?$/i)){
   var annCheck = annOp = false;
   var stickyImageRE = /sticky(locked)?.png$/i;

   for (i=0; i<table.length; i++) {
      if (table.item(i).width == "100%" && table.item(i).className == "bordercolor" && /Sub-Boards/i.test(table.item(i+1).rows.item(0).cells.item(0).firstChild.firstChild.firstChild.data)) {
         table.item(i).parentNode.insertBefore(objCont.createO("div", [["className", "newsHead"]]), table.item(i));
         table.item(i).parentNode.insertBefore(objCont.createO("div", [["className", "baseTab"]]), table.item(i).nextSibling);
         with (table.item(i).firstChild.firstChild.firstChild.firstChild) {
            parentNode.className = "midTable";
            width = "700";
            align = "center";
         }
      }
      else if (table.item(i).width == "100%" && table.item(i).className == "bordercolor" && table.item(i+1).rows.item(0).cells.item(0).colSpan == "7") {
         with (table.item(i).firstChild.firstChild.firstChild.firstChild) {
            parentNode.className = "midTable";
            width = "700";
            align = "center";
         }
         var nTable = table.item(i);
         
         if (!/Currently\,\sthere/i.test(table.item(i+1).innerHTML) && stickyImageRE.test(table.item(i+1).rows.item(2).cells.item(0).firstChild.firstChild.src)) {
            var sTable = table.item(i).cloneNode(true);
                
            var iTable = nTable.firstChild.firstChild.firstChild.firstChild;
            for (j=0; j<iTable.rows.length; j++) {
               if (iTable.rows.item(j).cells.item(0).innerHTML.match(/\[Search\sThis\sBoard\]/i)) {
                  sTable.firstChild.firstChild.firstChild.firstChild.rows.item(j).style.display = "none";
                  j++;
               }
               else if (iTable.rows.item(j).cells.item(0).colSpan == "7") {
                  nTable.firstChild.firstChild.firstChild.firstChild.rows.item(j).style.display = "none";
                  if (!stickyImageRE.test(iTable.rows.item(j+1).cells.item(0).firstChild.firstChild.src)) {
                     sTable.firstChild.firstChild.firstChild.firstChild.rows.item(j).style.display = "none";
                  }
                  else {
                     with (sTable.firstChild.firstChild.firstChild.firstChild.rows.item(j).cells.item(0)) {
                        className = "catbg";
                        height = "12";
                     }
                  }
               }
               else if (stickyImageRE.test(iTable.rows.item(j).cells.item(0).firstChild.firstChild.src)) {
                  nTable.firstChild.firstChild.firstChild.firstChild.rows.item(j).style.display = "none";
                  var fTarget = sTable.firstChild.firstChild.firstChild.firstChild.rows.item(j).cells.item(2).getElementsByTagName("font").item(0);                  
                  if (/announcement.jpg/.test(iTable.rows.item(j).cells.item(1).firstChild.firstChild.src)) {
                     with (sTable.firstChild.firstChild.firstChild.firstChild.rows.item(j).cells.item(2).getElementsByTagName("font").item(0)) {
                        firstChild.replaceData(0, 12, "Notice");
                     }
                  }
                  fTarget.className = "stickyClass";
                  if (sTable.firstChild.firstChild.firstChild.firstChild.rows.item(j).cells.item(2).getElementsByTagName("font").item(1)) {
                     sTable.firstChild.firstChild.firstChild.firstChild.rows.item(j).cells.item(2).getElementsByTagName("font").item(1).className = "stickyClass";
                  }
               }
               else {
                  sTable.firstChild.firstChild.firstChild.firstChild.rows.item(j).style.display = "none";
               }
            }

            nTable.parentNode.insertBefore(sTable, nTable);
            sTable.parentNode.insertBefore(objCont.createO("div", [["className", "stickyHead"]]), sTable);
            sTable.parentNode.insertBefore(objCont.createO("div", [["className", "baseTab"]]), sTable.nextSibling);
         }
          
         nTable.parentNode.insertBefore(objCont.createO("div", [["className", "lilSep"]]), nTable);
         nTable.parentNode.insertBefore(objCont.createO("div", [["className", "normalHead"]]), nTable);
         nTable.parentNode.insertBefore(objCont.createO("div", [["className", "baseTab"]]), nTable.nextSibling);
         break;
      }
   }
}
else if (location.href.match(/action=display/i) && !/(Password\sProtected\sBoard|Login)/.test(document.title)) {
   var newTab = document.createDocumentFragment();
   for (i=0; i<table.length; i++) {
      if (table.item(i).width == "100%" && table.item(i).cellPadding == "4" && table.item(i).rows.item(0).cells.item(0).colSpan == "2") {
         var postTab = document.createDocumentFragment();
         for (j=0; j<table.item(i).rows.length; j++) {
            if (table.item(i).rows.item(j).cells.item(0).className == "catbg" && /Author/i.test(table.item(i).rows.item(j).cells.item(0).getElementsByTagName("b").item(0).firstChild.data)) {
               continue;
            }
            else if (table.item(i).rows.item(j).cells.item(0).colSpan == "2") {               
               var iTab = objCont.createO("table", [["width", "100%"], ["cellSpacing", 1], ["cellPadding", 4], ["align", "center"], ["className", "bordercolor"]]);
               iTab.appendChild(document.createElement("tbody"));
               iTab.lastChild.appendChild(table.item(i).rows.item(j));
               if (j != 0) {
                  postTab.appendChild(objCont.createO("div", [["className", "sepTab"]]));
               }                  
               postTab.appendChild(iTab);
               j--;
            }
            else if (table.item(i).rows.item(j).cells.item(0).width == "20%") {
               postTab.appendChild(objCont.createO("div", [["className", "sepTab"]]));
               var outerTab = objCont.createO("table", [["width", "100%"], ["cellSpacing", 0], ["cellPadding", 0], ["align", "center"]]);
               var fCell = outerTab.insertRow(0).insertCell(0);
               fCell.className = "midtable";
               var innerTab = objCont.createO("table", [["width", "702"], ["cellSpacing", 1], ["cellPadding", 4], ["align", "center"], ["className", "bordercolor"]]);
               innerTab.appendChild(document.createElement("tbody"));
               if (table.item(i).rows.item(j).cells.item(0).className == "catbg" && /Poll/i.test(table.item(i).rows.item(j).cells.item(0).getElementsByTagName("b").item(0).firstChild.data)) {
                  postTab.appendChild(objCont.createO("div", [["className", "pollHead"]]));
                  innerTab.firstChild.appendChild(table.item(i).rows.item(j+1));
                  innerTab.firstChild.insertBefore(table.item(i).rows.item(j), innerTab.firstChild.firstChild);
               }
               else {
                  postTab.appendChild(objCont.createO("div", [["className", "postHead"]]));
                  var iSpan = document.createElement("span");
                  iSpan.appendChild(document.createTextNode("Contact Info: "));
                  if (table.item(i).rows.item(j).cells.item(0).getElementsByTagName("img").item(0)) {
                     var iImg = table.item(i).rows.item(j).cells.item(0).getElementsByTagName("img");
                     iSpan.appendChild(objCont.createO("img", [["src", "http://exdat.net/v2/images/7x1vy2.png"]]));
                     for (c=iImg.length-1; c>0; c--) {
                        if (/\[(icq|yim|msn|aim|homepage|email|send\spm|dA)\]/i.test(iImg.item(c).alt)) {
                           if (/\[icq\]/i.test(iImg.item(c).alt)) {
                              iImg.item(c).setAttribute("src", "http://exdat.net/v2/images/icq5sb2.png");
                           }
                           iSpan.appendChild((/\[msn\]/i.test(iImg.item(c).alt)? iImg.item(c) : iImg.item(c).parentNode));
                           iSpan.appendChild(objCont.createO("img", [["src", "http://exdat.net/v2/images/7x1vy2.png"]]));
                        }
                     }
                  }
                  with (innerTab.insertRow(0).insertCell(0)) {
                     id = "pOptions";
                     className = "windowbg";
                     colSpan = 2;
                     appendChild(iSpan);
                     appendChild(table.item(i).rows.item(j).cells.item(1).getElementsByTagName("table").item(0).rows.item(0).cells.item(2).lastChild);
                     table.item(i).rows.item(j).cells.item(1).getElementsByTagName("table").item(0).rows.item(0).cells.item(1).width = "94%";;
                     table.item(i).rows.item(j).cells.item(1).getElementsByTagName("table").item(0).rows.item(0).cells.item(2).width = "1%";
                  }
                  innerTab.firstChild.insertBefore(table.item(i).rows.item(j), innerTab.firstChild.firstChild);
               }
               j--;
               fCell.appendChild(innerTab);
               postTab.appendChild(outerTab);
               postTab.appendChild(objCont.createO("div", [["className", "baseTab"]]));
            }
         }
         table.item(i).parentNode.parentNode.parentNode.parentNode.style.backgroundColor = "transparent";
         table.item(i).parentNode.replaceChild(postTab, table.item(i));
         break;
      }
      
/*
            else if (thisCell.colSpan == "2" && thisCell.vAlign == "middle" && /Admin\sFunctions/.test(thisCell.getElementsByTagName("img").item(0).alt)) {
               newTab.appendChild(objCont.createO("div", [["className", "sepTab"]]))
               newTab.appendChild(objCont.createO("div", [["style:fontSize", "10px"], ["style:fontWeight", "bold"]]));
               var aLink = thisCell.firstChild.getElementsByTagName("a");
               newTab.lastChild.appendChild(document.createTextNode("Admin Function: "));
               for (k=0; k<aLink.length; k++) {
                  var tLink = aLink.item(k).firstChild.alt.replace(/\[|\]/g, "");
                  newTab.lastChild.appendChild(aLink.item(k).cloneNode(true));
                  newTab.lastChild.lastChild.replaceChild(document.createTextNode(tLink), newTab.lastChild.lastChild.firstChild);
                  if (k != aLink.length-1) {
                     newTab.lastChild.appendChild(document.createTextNode(" | "));
                  }
               }
            }
*/            
   }
}

if (document.postForm) {
   function addRank(cRank) {
      var tArea = document.postForm.message;
      var isIE = (document.all)? true : false;
      if (isIE) {
         tArea.focus();
         var curSelect = document.selection.createRange();
         curSelect.text = cRank + curSelect.text;
      }
      else if (!isIE && typeof tArea.selectionStart != "undefined") {
         var selStart = tArea.value.substr(0, tArea.selectionStart);
         var selEnd = tArea.value.substr(tArea.selectionEnd, tArea.value.length);
         var curSelection = tArea.value.replace(selStart, '').replace(selEnd, '');
         tArea.value = selStart + cRank + curSelection + selEnd;
      }
      else {
         tArea.value += cRank;
      }
      tArea.focus();            
   }
    
   var iTable = objCont.createO("table", [["align", "center"], ["cellSpacing", 1], ["cellPadding", 4], ["className", "bordercolor"]]);
   with (iTable.insertRow(0).insertCell(0)) {
      className = "catbg";
      height = "18";
      align = "center";
      style.fontSize = "10px";
      for (r=0; r<6; r++) {
         appendChild(objCont.createO("a", [["href", "javascript: void(0);"]]));
         lastChild.appendChild(objCont.createF(r));
         lastChild.firstChild.onclick = function() {
            previewRank(this.firstChild.data);
         }
        if (r != 5) {
            appendChild(document.createTextNode(" | "));
         }
      }
   }
    
   with (iTable.insertRow(1).insertCell(0)) {
      id = "rankImage";
      className = "windowbg";
      height = "40";
      align = "center";
      appendChild(objCont.createO("img", [["src", "http://exdat.net/v2/images/select.png"], ["style:cursor", "pointer"]]));
      lastChild.onclick = function() {
         if (this.alt) {
            addRank(this.alt);
         }
      }
   }
    
   with (document.postForm.message.parentNode.parentNode.previousSibling) {
      align = "center"
      replaceChild(iTable, lastChild);
   }
    
   function previewRank(pNum) {
      getID("rankImage").lastChild.setAttribute("src", "http://img.photobucket.com/albums/v365/stinky666/v2/rate_" + pNum + ".jpg");
      getID("rankImage").lastChild.setAttribute("alt", "#Rate" + pNum + "#");
   }
}

var td = document.getElementsByTagName("td");
if (location.href.match(/on=(displ|search2|viewpr|pmv|(user)?rece|cal\w+iew)/i)) {
   for (i=0; i<td.length; i++) {
      if (!td.item(i).innerHTML.match(/Guest/i) && td.item(i).width == "20%" && td.item(i).innerHTML.match(/Posts:/i)) {
         var iImg = td.item(i).getElementsByTagName("center").item(td.item(i).getElementsByTagName("center").length-1).getElementsByTagName("img");
         for (c=0; c<iImg.length; c++) {
            if (/\[icq\]/i.test(iImg.item(c).alt)) {
               iImg.item(c).setAttribute("src", "http://exdat.net/v2/images/icq5sb2.png");
               break;
            }
         }
         
         td.item(i).appendChild(document.createElement("br"));
         var customTitleCheck = td.item(i).innerHTML.split(/<br\s?\/?>/i)[3];
         if (/\[eD:(.+?)\]/.exec(customTitleCheck)) {
            td.item(i).appendChild(document.createTextNode("ED Contests Won: " + RegExp.$1));
            customTitleCheck = customTitleCheck.replace(/\[eD:(.+?)\]/, "");
         }
         else {
            td.item(i).appendChild(document.createTextNode("ED Contests Won: 0"));
         }
         
         var pInfo = new Array();
         var userName = td.item(i).innerHTML.split(/<br\s?\/?>/i)[0];
         var rank = td.item(i).innerHTML.split(/<br\s?\/?>/i)[1];
         var stars = td.item(i).innerHTML.split(/<br\s?\/?>/i)[2];
         var customTitle = (customTitleCheck.match(/member\sis\s(.+?)$/i))? "" : customTitleCheck;
         if (td.item(i).innerHTML.match(/member\sis\s(.+?)<\/b>/i)) {
            pInfo.push(["Status", "<font color='4fb100'><b>Online</b></font>"]);
         }
         else {
            pInfo.push(["Status", "<font color='f4100b'>Offline</font><br/>"]);
         }

         var breakSplit = td.item(i).innerHTML.split(new RegExp("<br>", "gi"));
         var contactIcons = avatar = "";
         var karma = aCheck = false;
            
         for (j=4; j<breakSplit.length; j++) {
            if (breakSplit[j].match(/\[Avatar\]/i)) {
               avatar = breakSplit[j];
               aCheck = true;
            }
            else if (breakSplit[j].match(/\[(icq|yim|aim|msn|homepage|email|send\spm|dA)\]/i)) {
               contactIcons += breakSplit[j];
            }
            else if (breakSplit[j].match(/Gender:\s(.+?)$/i)) {
               var tempG = RegExp.$1;
               if (tempG.match(/Female/)) {
                  pInfo.push(["Gender", tempG.replace(/Female/, '<font color="CC99CC">Female</font>')]);
               }
               else if (tempG.match(/Male/)) {
                  pInfo.push(["Gender", tempG.replace(/Male/, '<font color="009ACD">Male</font>')]);
               }
            }
            else if (breakSplit[j].match(/Karma:\s([0-9,-]+)$/i)) {
               pInfo.push(["Reputation", RegExp.$1]);
               karma = true;
            }
            else if (breakSplit[j].match(/(.+?):\s(.+?)$/i)) {
               pInfo.push([RegExp.$1, RegExp.$2]);
            }
         }
            
         (!aCheck)? avatar = '<img src="http://exdat.net/v2/images/noavatar.png" height="47" width="47" />' : "" ;
         
         var cen = td.item(i).getElementsByTagName("center");
         if (cen.item(cen.length-1) && cen.item(cen.length-1).innerHTML.match(/(<br\s?\/?>){2}(.+?)(<br\s?\/?>){2}/i)) {
            var pText = '<br/><br/>' + RegExp.$2;
         }
         else {
            var pText = '';
         }

         var kExalt = kSmite = '';
         if (!karma) {}
         else if (td.item(i).innerHTML.match(/<br\s?\/?>\[\s(.+?)\s\|\s(.+?)\s\]/i)) {
            kExalt = RegExp.$1; kSmite = RegExp.$2;
         }

         var bStyle = 'style="border: 1px solid #FFFFFF; background-color: #f0f0f0;"';
         var newModel = '<table width="140" align="center" cellspacing="2" cellpadding="2" ' + bStyle + '>';
         newModel += '<tr><td align="center" height="18" class="catbg" style="border: 1px solid #FFFFFF;" colspan="2">' + userName + '</td></tr>';
         newModel += '<tr><td ' + bStyle + ' align="center" colspan="2">' + rank + '<br/>' + stars + '</td></tr>';
         if (customTitle != "") {
            newModel += '<tr><td ' + bStyle + ' align="center" colspan="2">' + customTitle + '</td></tr>';
         }
         newModel += '<tr><td ' + bStyle + ' align="center" colspan="2">' + avatar + pText + '</td></tr>';
         for (p=0; p<pInfo.length; p++) {
            newModel += '<tr><td ' + bStyle + ' align="center" colspan="2"><b>' + pInfo[p][0] + '</b>: ' + pInfo[p][1] + '</td></tr>';
         }
         if (contactIcons != "") {
            newModel += '<tr><td ' + bStyle + ' align="center" colspan="2">' + contactIcons + '</td></tr>';
         }
         if (kExalt != '') {
            newModel += '<tr><td align="center" width="50%" ' + bStyle + ' >' + kExalt.replace(/Exalt/i, '<img src="http://exdat.net/v2/images/karmatickxs8.png" border="0" />');
            newModel += '</td><td align="center" width="50%"  ' + bStyle + ' >' + kSmite.replace(/Smite/i, '<img src="http://exdat.net/v2/images/karmacrossqq6.png" border="0" />');
            newModel += '</td></tr>';
         }
         newModel += '</table>';
         td.item(i).innerHTML = newModel;
      }
   }
}

if (location.href.match(/on=(displ|search2|(user)?rece|cal\w+iew)/i)) {
   function shInfo(thisCell, thisObj) {
      thisCell.replaceChild(thisObj, thisCell.firstChild);
      thisCell.style.display = (thisCell.style.display != "none")? "none" : "" ;
   }
    
   for (i=20; i<document.links.length; i++) {
      if (document.links.item(i).firstChild && /Link\sto\sPost/i.test(document.links.item(i).firstChild.data)) {
         var tracker = document.links.item(i);
         tracker.parentNode.parentNode.parentNode.parentNode.parentNode.className = "pOptTab";
         tracker.parentNode.parentNode.parentNode.cells.item(0).style.display = "none";
         if (!tracker.parentNode.parentNode.parentNode.cells.item(0).lastChild.getElementsByTagName("i").item(0)) {
            tracker.parentNode.parentNode.parentNode.cells.item(0).lastChild.appendChild(document.createTextNode("This post has not been editted"));
         }
         tracker.parentNode.insertBefore(objCont.createO("div", [["style:display", "none"]]), tracker);
         tracker.parentNode.firstChild.appendChild(document.createTextNode(" "));
         tracker.parentNode.insertBefore(objCont.createO("img", [["src", "http://exdat.net/v2/images/lastedit.png"], ["style:cursor", "pointer"]]), tracker);
         tracker.parentNode.firstChild.nextSibling.onclick = function() {
            shInfo(this.parentNode.firstChild, this.parentNode.parentNode.parentNode.cells.item(0).lastChild.cloneNode(true));
         }
         tracker.replaceChild(objCont.createO("img", [["src", "http://exdat.net/v2/images/linktopost.png"], ["border", 0]]), tracker.firstChild);
         tracker.parentNode.removeChild(tracker.nextSibling);
         tracker = tracker.nextSibling;
         tracker.replaceChild(objCont.createO("img", [["src", "http://exdat.net/v2/images/totop.png"], ["border", 0]]), tracker.firstChild);
         tracker.parentNode.replaceChild(objCont.createO("img", [["src", "http://exdat.net/v2/images/ip.png"], ["style:cursor", "pointer"]]), tracker.nextSibling);
         tracker.parentNode.lastChild.onclick = function() {
            shInfo(this.parentNode.firstChild, this.parentNode.nextSibling.lastChild.cloneNode(true));
         }
         tracker.parentNode.nextSibling.style.display = "none";
      }
   }
}

if (!document.all) {
   var hr = document.getElementsByTagName("hr");
   for (i=0; i<hr.length; i++) {
      hr.item(i).color = "FFFFFF";
   }
}

window.onload = function() {
   document.body.appendChild(getID("footerBox"));
   getID("footerBox").style.display = "";
}

/* Add Alphabetize UBBC
created by crazyj/crazynarutard requested by stinky666 @ SZ
Don't repost this without permission of the creator*/
var aicon = "http://exdat.net/v2/images/Alpha.png";

if(document.postForm&&document.postForm.color){
  document.postForm.color.parentNode.innerHTML += "<a href=javascript:add('[alpha]','[/alpha]');><img src='"+aicon+"' border='0' alt='Alpha' /></a>";
}
if(location.href.match(/on=(displ|search2|pmv|(user)?rece|cal\w+iew)/)){
  var td = document.getElementsByTagName('td');
  var count = 0;
  for(var t=0;t<td.length;t++){
        if(td[t].colSpan == '3' && td[t].vAlign == 'top'){
            while(td[t].innerHTML.match(/\[alpha\](.+?)\[\/alpha\]/i)){
                  var alpha = RegExp.$1.split(/<br\s?\/?>/i)
                  alpha.sort();
                  td[t].innerHTML = td[t].innerHTML.replace(/\[alpha\](.+?)\[\/alpha\]/i,alpha.join('<br />'));
            }
        }
  }

}

/* set max posted image size with click to enlarge by california */

var maxWidth=450;
var maxHeight=5000;

var img=document.getElementsByTagName("img");
for(i=8;i<img.length-5;i++){
if(img[i].alt.match(/\[image\]/i)){
img[i].onload=function(){
if(this.width>maxWidth){
this.style.height=""+(this.height*maxWidth/this.width)+"px";
this.style.width=""+maxWidth+"px";
this.style.cursor="pointer";
this.onclick=function(){
window.open(this.src,'imgwin','');
}
}
if(this.height>maxHeight){
this.style.width=""+(this.width*maxHeight/this.height)+"px";
this.style.height=""+maxHeight+"px";
this.onclick=function(){
window.open(this.src,'imgwin','');
}
}
}
}
}

};