window["sliderArray"] = "sFIPromo"
window["sliderClosed"]=true
window["sliderNext"]=1
window["checkSliderInterval"]=""
window["sliderHideWait"]=""
window["sliderDefaultHeight"]="100"
function tChart(o){
v=o.src.lastIndexOf('P')==o.src.length-1;
o.src=o.src+(v?'C':'P');o.style.border=(v?'1px black solid':'none')
}
function tIMG(o){
s=document.getElementById("v"+o.id)
s.innerHTML="
"
}
function hideBigImg(o){
s=document.getElementById("v"+o)
s.innerHTML=""
}
function doShiftTool(){
ft=document.getElementById("forumTool")
st=document.body.scrollTop
//status=ft.offsetHeight + ":" +st
ft.style.top=(st>234?st-234:0)
}
function slideSlider(){
if(!window["sliderClosed"])
return
sA=window["sliderArray"].split(",")
if(window["sliderNext"]>=sA.length)
return
document.getElementById("sliderBox").innerHTML=document.getElementById(sA[window["sliderNext"]]).innerHTML
window["sliderNext"]++
s=document.getElementById("slider")
s.style.left=document.getElementById("forumTool").offsetWidth-s.offsetWidth-1
s.style.top=document.getElementById("forumTool").offsetHeight-2
h=s.offsetHeight
s.style.height=1
window["si"]=setInterval("doSlide("+h+",4)",20)
}
function slideSliderBack(){
window["si"]=setInterval("doSlide(5,-4)",20)
}
function doSlide(h,i){
s=document.getElementById("slider")
if (i>0)
{
if(s.offsetHeighth)
{s.style.height=s.offsetHeight+i}
else
{
clearInterval(window["si"]);
hideSlider()
}
}
}
function hideSlider(){
s=document.getElementById("slider")
s.style.top=-500
s.style.left=-500
s.style.height=window["sliderDefaultHeight"]
clearInterval(window["sliderHideWait"])
window["sliderClosed"]=true
}
function initSlider(){
window["sliderDefaultHeight"]=document.getElementById("slider").offsetHeight
window["checkSliderInterval"]=setInterval("slideSlider()",5000)
}
function postReply(f,ret){window.location="post.asp?f="+f+"&ret="+ret+"&n="+ret}
function postNewMsg(f){window.location="post.asp?f="+window["curForum"]}
function answer(n,f){window.location="post.asp?answer=true&f="+f+"&qn="+n}
function loadNewMsg()
{
if (document.getElementById("autoUpdateFlag").innerHTML=="False") return
dCheckNewMsgs.startDownload("/forum/checkforNewMessage.asa?lmn="+document.getElementById("fLastMsgNum").innerText, doneNewMsg)
}
function doneNewMsg(r){
document.getElementById("downloadCheckNewMsgs").innerHTML=r
if (document.getElementById("newMsgHTML").innerHTML!='' && document.getElementById("lmn2").innerHTML!='')
{
transferMsgs()
document.getElementById("fLastMsgNum").innerHTML=document.getElementById("lmn2").innerHTML
//document.getElementById("newMsgPostedMsg").innerHTML=""
if (document.getElementById("blockedMsg").innerHTML='BLOCKED')
incrementBlockedMsg()
}
b=setTimeout('loadNewMsg()',10000)
}
function insertNewMsg(nContent){
tbl=document.getElementById("msgsTable")
row=tbl.insertRow(0)
nCell=row.insertCell()
nCell.innerHTML=nContent
if(tbl.rows.length>20)
{
tbl.deleteRow(tbl.rows.length-1)
}
}
function transferMsgs(){
insertNewMsg(document.getElementById("newMsgHTML").innerHTML)
//document.getElementById("sFNMN").innerHTML=document.getElementById("newMsgHTML").innerHTML
//window["sliderArray"]+=",sFNMN"
return true
}
function goMessages(d){
if(d=='next'){
window.location="forum.asp?f="+window["curForum"]+"&s="+window["nMsg"]
}
else if(d=='prev')
{
window.location="forum.asp?f="+window["curForum"]+"&s="+window["pMsg"]
}
else if(d=='last')
{
window.location="forum.asp?f="+window["curForum"]
}
}
function ftbRoll(){
ft=document.getElementById("forumTool")
ftt=document.getElementById("forumToolTop")
fti=document.getElementById("ftRollI")
if(ft.offsetHeight>90)
{
fti.src="/images/fdown.gif"
ft.style.height='25px'
ftt.style.display="none"
fti.src="/images/fdown.gif"
SetCookie('ForumToolbarUp','yes')
}
else{
fti.src="/images/fup.gif"
ft.style.height='100px'
ftt.style.display="block"
SetCookie('ForumToolbarUp','no')
}
}
function loadOneMsg(n){
window.location = "forum.asp?f="+window["curForum"]+"&n="+n
}
function readAllReplies(ra){
window.location = "forum.asp?f="+window["curForum"]+"&ra="+ra
}
function userMsgs(u){
window.location = "forum.asp?f="+window["curForum"]+"&u="+u
}
function shCal(){
document.getElementById("forum_calendar").style.left="455"
document.getElementById("forum_calendar").style.display=""
}
function jumpToMsgNum(n){
if (n=='') return
window.location = "forum.asp?f="+window["curForum"]+"&s="+n
}
function searchM(b){
document.getElementById("ftSB").value=b
document.getElementById("sbi").src="images/bS"+b+".gif"
}
function ignoreUser(u,login)
{
if(login){
if(confirm("This user '" +u+"' will be added to your ignore list.\nMessages from this user will be hidden.\n\nYou may remove this user from your ignore list by accessing the 'My Account' menu link\n\nAre you sure you would like to add this user to your ignore list?"))
{
window.location="/user/changeusersettings.asp?reloadall=true&sName=classicforumignorelist&sVal="+u+"&action=add&rBack=forum"
}
}else
{alert("You must be logged in to use this function")}
}
function showBlockedMsgs(n)
{
if(n!='')
{
document.getElementById("blockedMsgsTxt").innerHTML="Blocked:"
document.getElementById("blockedMsgsNum").innerHTML=n
}
}
function incrementBlockedMsg()
{
n=document.getElementById("blockedMsgsNum").innerHTML
if (n=='')
nB=0
else
nB=parseInt(n)
showBlockedMsgs(nB)
}