<script type="text/javascript">
<!--
fWidth = document.getElementsByTagName('table');
for(t=0; t<fWidth.length; t++) {
if(fWidth[t].width=="92%")
fWidth[t].width='710';
}
// -->
</script>


<script type='text/javascript'>
/* Avatar Gallery
created by CrAzY_J
do not redistribute this code without the creator's permission*/

if( document.modifyForm )
{
   var ASelect = document.modifyForm.avatar;
   var ARow = ASelect.parentNode.parentNode.parentNode;
   ASelect.style.display = 'none';
   ARow.cells[2].removeChild( ARow.cells[2].firstChild );
   ARow.cells[2].appendChild(document.createElement('div'));
   for( var x = 1 ; x < ASelect.options.length ; x ++ )
   {
      var Image = document.createElement('img');
      var Link = document.createElement('a');
      Image.src = ( new RegExp('^http:','i').test(ASelect.options[x].value) )? ASelect.options[x].value : 'http://www.proboards.com/v4images/avatars/'+ASelect.options[x].value+'.gif';
      Image.border = 0;
      Image.style.cursor = 'pointer';
      Image.onclick = function()
      {
         document.images.avatarImage.src = this.src;
      }
      ARow.cells[2].firstChild.appendChild( Image );
      ARow.cells[2].firstChild.appendChild( document.createTextNode(' ') );
   }
   var HideShow = document.createElement('a');
   HideShow.href = 'javascript:void(0);';
   HideShow.appendChild( document.createTextNode('hide/show') );
   HideShow.onclick = function(){
      var Last = document.modifyForm.avatar.parentNode.parentNode.nextSibling
      Last.firstChild.style.display = (Last.firstChild.style.display == 'none')? '':'none';
   }
   ARow.cells[1].insertBefore( HideShow, ARow.cells[1].firstChild )
   function changeselect(event)
   {
      if( document.modifyForm.avatarurl.value == '' )
      {
         var final = document.images.avatarImage.src;
         for( var y = 1 ; y < ASelect.options.length ; y ++ )
         {
            if( new RegExp(ASelect.options[y].value,'i').test(final) )
            {
               ASelect.selectedIndex = y;
               break;
            }
         }
      }
   }
   if( document.addEventListener )
      document.modifyForm.addEventListener('submit',changeselect,false);
   else
      document.modifyForm.attachEvent('onsubmit',changeselect);

}

</script>


<script type="text/javascript">
<!--
var i = document.getElementsByTagName('i');
for(t=0; t<i.length; t++)
if(i[t].innerHTML == 'Last Edit:')
i[t].parentNode.style.display = 'none';
//-->
</script>


<script type="text/javascript" src="http://www.s-shouts.com/stargaze/stargazev1.5.js">
<!--
/*
Star Gaze Arcade Version 1.5
Coded and Designed By Greg/Moose.
This script may not be posted anywhere without express permission and consent from Greg/Moose.
This script is official property of Greg/Moose and the script and/or work may not be claimed by anyone else.
This script may not be rehosted or edited without express permission and consent from Greg/Moose.
This notice must remain intact with use of this script.
This script may only be used if the above rules are followed.
If terms of this notice are broken you will be in direct violation of the terms of service.
Copyright  2006 - 2007 Greg/Moose.
All Rights Reserved.
Global Footer.
*/
//-->
</script>


<script type="text/javascript">
<!--
/*
Prevent people just posting quotes

Created by Peter

This code cannot be reposted at anywhere other than SSDesigns or ProBoards, without permission.

This header must stay intact at all times.
*/

// Change this if you wish the message to be a certain length as well.
var iMessLen = 0;

// Change the message displayed here.
var tWarnMessage = "Make sure your message contains more then just a quote please.";

String.prototype.Q_Spammer = function(){
    var re = /(\[quote author=.+\d+\](\w|\W)+\[\/quote\])/im
    if(this && re.exec(this) && (this.length == RegExp.$1.length || ((this.length - RegExp.$1.length) < iMessLen))){
       alert(tWarnMessage);
       return false;
    } else {
       return true;
    }
}

if(location.href.match(/(action=(post|quote|modify)|index.cgi$)/i)){
    document.postForm.onsubmit = function(){
       if(document.postForm.nextaction.value == "post" && !/user=admin/.exec(document.cookie)){
          if(!document.postForm.message.value.Q_Spammer()){
             return false;
          }
       }
    }
}

//-->
</script>




<script type="text/javascript">
<!--
/* set max posted image size with click to enlarge by california */

var maxWidth=500;
var maxHeight=300;

var img=document.getElementsByTagName("img");
for(i=0;i<img.length;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','');
                }
            }
        }
    }
}
// -->
</script>

<script type="text/javascript">
<!--
/*
Report To Admin v1.2
Copyright  2005-2006 Bradley Nelson a.k.a. CCWorld
All Rights Reserved

Do not repost without permission.
For use on Proboards Boards only.
This Header must remain intact at all times.
*/

var reportLink = "Report to Admin";
var reportSubject = "Reporting User: ";
var reportBody = "I am reporting the following user for actions in the following thread.";
var reportTo = "admin, bezo";

var tds = document.getElementsByTagName("td");
var i; var recentPostId; var recentName; var recentPro; var pageLink; var cRptLink;
function URLencode(sStr) {
return escape(sStr).replace(/\+/g, '%2B').replace(/\"/g,'%22').replace(/\'/g, '%27');}
if(location.href.match(/action=display/i) && document.cookie.match(/user\=([\w\d]+?)\;/i)){
pageLink = location.href.split(/#/i)[0]
for(i=0; i<tds.length; i++){
if(tds.item(i).align == "right" && tds.item(i).firstChild.nodeName.match(/font/i)){
if(tds.item(i).lastChild.firstChild.nodeName.match(/img/i) && tds.item(i).lastChild.firstChild.alt.match(/IP:/i)){
tds.item(i).firstChild.replaceChild(document.createTextNode(" - "), tds.item(i).firstChild.lastChild);
cRptLink = document.createElement("a");
cRptLink.href = "/index.cgi?action=pmsend&to="+reportTo+"&subject="+URLencode(reportSubject+recentName)+"&message="+URLencode(reportBody +"\n\n[ur"+"l="+recentPro+"]"+recentName+"[/ur"+"l] for [u"+"rl="+pageLink+"#"+recentPostId+"] this thread[/u"+"rl].")
cRptLink.appendChild(document.createTextNode(reportLink));
tds.item(i).firstChild.appendChild(cRptLink);
tds.item(i).firstChild.appendChild(document.createTextNode(" "));}}
else if(tds.item(i).width == "20%" && tds.item(i).firstChild.nodeName.match(/a/i)){
if(tds.item(i).firstChild.name.match(/^\d+$/i)){
recentPostId = tds.item(i).firstChild.name;
if (tds.item(i).getElementsByTagName("a").length >= 2){
if(tds.item(i).firstChild.nextSibling.firstChild.firstChild.nodeName.match(/font/i)){
recentName = tds.item(i).firstChild.nextSibling.firstChild.firstChild.firstChild.data;
} else {
recentName = tds.item(i).firstChild.nextSibling.firstChild.firstChild.data;}
recentPro = tds.item(i).firstChild.nextSibling.firstChild.href;
} else {
recentPro = "#";
recentName = "A Guest";
}}}}}
// -->
</script>


<script type="text/javascript">
<!--
/*
Shorten long links in posts - Created by Peter

This code cannot be reposted anywhere other than SSDesigns or ProBoards Support.

This header must stay intact.
*/

// Any links above this number will be shortened
var iMaxLen = 25;

function shortenLinks(){
    var iCell = document.getElementsByTagName("td");
    for(c = 0; c < iCell.length; c ++){
       if(iCell.item(c).colSpan == "3" && iCell.item(c).vAlign == "top"){
          var allLinks = iCell.item(c).getElementsByTagName("a");
          for(a = 0; a < allLinks.length; a ++){
             if(allLinks.item(a).innerHTML.length >= iMaxLen){
                 var inVal = allLinks.item(a);
                 if(inVal.innerHTML.match(/((http(s)?:\/\/|www\.)(\w+([\.-]\w+)+))/igm)){
                    var iNum = (inVal.innerHTML.length > 50)? [10, 15] : [5, 0];
                    var iEnd = (inVal.innerHTML.length - iNum[0]);
                    var nVal = inVal.innerHTML.substring((RegExp.$1.length + iNum[1]), iEnd);
                    inVal.innerHTML = inVal.innerHTML.replace(nVal, "...");
                 }
             }
          }
       }
    }
}

if(location.href.match(/thread=/)){
    shortenLinks();
}

//-->
</script>

