/*Halloween script
by godkillah & Lucifer's Angel
from phantom-designs.net & thecodingzone.com*/
var evil=['http://www.ebsqart.com/Art/3198/273406/OriginalgothicartVAMPIRESKULLdarkhorrorpainting_275_275.jpg','http://www.rue-morgue.com/forums/image.php?u=2&dateline=1143585202','http://www.filmmakermagazine.com/blog/grudge_orig_01.jpg','http://content.ytmnd.com/content/e/6/a/e6a31614127fe0b3f1f11d92ea07a3f7.jpg','http://vadeker.club.fr/humanite/apercu/sadakoEye.jpg','http://gfx.filmweb.pl/blog/638188/73324.1.jpg','http://imagecache2.allposters.com/images/pic/73/039_24990~Predator-Posters.jpg','http://www.cyberpunkreview.com/images/alien4-20.jpg']
function TopicAvatar(){
if(location.href.match(/showtopic=[0-9](&(.*)|(.*))/i)){
a=document.getElementsByTagName("span")
o=new Array()
e=0
for(i=0;i<a.length;i++){
if(a[i].className=='postdetails' && a[i].innerHTML.match(/Posts:/i)){
if(a[i].getElementsByTagName("img")[0].width!='' && a[i].getElementsByTagName("img")[0].alt!='Group Icon' && a[i].getElementsByTagName("img")[0].alt!='*'){
a[i].getElementsByTagName("img")[0].onmouseover=function(){
o[e]=this.src
this.src=evil[Math.floor(Math.random()*evil.length)]
}
a[i].getElementsByTagName("img")[0].onmouseout=function(){
this.src=o[e]
}
e++
}}}}}
function ProfileAvatar(){
if(location.href.match(/showuser=[0-9]/i)){
a=document.getElementsByTagName("td")
for(i=0;i<a.length;i++){
if(a[i].className=='row3' && a[i].getElementsByTagName("b")[0] && a[i].getElementsByTagName("b")[0].innerHTML=='Avatar'){
if(a[i+1].getElementsByTagName("img")[0]){
o=''
a[i+1].getElementsByTagName("img")[0].onmouseover=function(){
o=this.src
this.src=evil[Math.floor(Math.random()*evil.length)]
}
a[i+1].getElementsByTagName("img")[0].onmouseout=function(){
this.src=o
}
break
}}}}}
function TopicDevilsComplot(){
if(location.href.match(/showtopic=[0-9](&(.*)|(.*))/i)){
a=document.getElementsByTagName("span")
for(i=0;i<a.length;i++){
if(a[i].className=='postdetails' && a[i].innerHTML.match(/Joined: (.*)/i)){
a[i].innerHTML=a[i].innerHTML.split("Posts:")[0]+"Posts: 666<br>Member No.:"+a[i].innerHTML.split("Member No.:")[1]
a[i].innerHTML=a[i].innerHTML.split("Member No.:")[0]+"Member No.: 666<br>Joined:"+a[i].innerHTML.split("Joined:")[1]
a[i].innerHTML=a[i].innerHTML.split("Joined:")[0]+"Joined: 06-June 06<br><br>"+a[i].innerHTML.split(RegExp.$1)[1]
}}}}
function ProfileDevilsComplot(){
if(location.href.match(/showuser=[0-9]/i)){
a=document.getElementsByTagName("td")
for(i=0;i<a.length;i++){
if(a[i].getElementsByTagName("b")[0] && a[i].getElementsByTagName("b")[0].parentNode.innerHTML.match(/% of total forum posts/i)){
a[i].getElementsByTagName("b")[0].innerHTML="666"
}
if(a[i].getElementsByTagName("b")[0] && a[i].getElementsByTagName("b")[0].innerHTML=='Posts per day'){
a[i+1].innerHTML="666"
}
if(a[i].getElementsByTagName("b")[0] && a[i].getElementsByTagName("b")[0].innerHTML=='Joined'){
a[i+1].innerHTML="06-June 06"
}
if(a[i].getElementsByTagName("b")[0] && a[i].getElementsByTagName("b")[0].innerHTML=='Last Activity:'){
a[i+1].innerHTML="Jun 06 2006,"+a[i+1].innerHTML.split(",")[1]
}
if(a[i].getElementsByTagName("b")[0] && a[i].getElementsByTagName("b")[0].innerHTML=="User's local time"){
a[i+1].innerHTML="Jun 06 2006,"+a[i+1].innerHTML.split(",")[1]
}}}}
function OnlinelistDevilsComplot(){
if(location.href.match(/act=Online/i)){
a=document.getElementsByTagName("td")
for(i=0;i<a.length;i++){
if(a[i].className=='row1' && a[i].getElementsByTagName("a")[0] && a[i].getElementsByTagName("a")[0].href.match(/showuser=[0-9]/i) && a[i+2].innerHTML.match(/, (.*):(.*) (PM|AM)/i)){
a[i+2].innerHTML="Jun 06 2006,"+a[i+2].innerHTML.split(",")[1]
}}}}
function MemberlistDevilsComplot(){
if(location.href.match(/act=Members/i)){
a=document.getElementsByTagName("td")
for(i=0;i<a.length;i++){
if(a[i].className=='row4' && a[i].getElementsByTagName("a")[0] && a[i].getElementsByTagName("a")[0].href.match(/showuser=[0-9]/i) && a[i+3].innerHTML.match(/(.*)-(.*) (.*)/i)){
a[i+3].innerHTML="06-June 06"
a[i+4].innerHTML="666"
}}}}
