
function ForumJump(URL){if(URL.options[URL.selectedIndex].value!="")self.location.href=URL.options[URL.selectedIndex].value;return true;}
function openWin(theURL,winName,features){window.open(theURL,winName,features);}
function winOpener(theURL,winName,scrollbars,resizable,width,height){winFeatures='left='+(screen.availWidth-10-width)/2+',top='+(screen.availHeight-30-height)/2+',scrollbars='+scrollbars+',resizable='+resizable+',width='+width+',height='+height+',toolbar=0,location=0,status=1,menubar=0'
window.open(theURL,winName,winFeatures);}
function OpenPreviewWindow(targetPage,formName){now=new Date
openWin('','preview','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=680,height=400')
formName.action=targetPage+"?ID="+now.getTime();formName.target="preview";formName.submit();}
function mailMe(sDom,sUser){return("mail"+"to:"+sUser+"@"+sDom.replace(/%23/g,"."));}
var tabdropdown={disappeardelay:200,disablemenuclick:false,enableiframeshim:1,dropmenuobj:null,ie:document.all,firefox:document.getElementById&&!document.all,previousmenuitem:null,currentpageurl:window.location.href.replace("http://"+window.location.hostname,"").replace(/^\//,""),getposOffset:function(what,offsettype){var totaloffset=(offsettype=="left")?what.offsetLeft:what.offsetTop;var parentEl=what.offsetParent;while(parentEl!=null){totaloffset=(offsettype=="left")?totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}
return totaloffset;},showhide:function(obj,e,obj2){if(this.ie||this.firefox)
this.dropmenuobj.style.left=this.dropmenuobj.style.top="-500px"
if(e.type=="click"&&obj.visibility==hidden||e.type=="mouseover"){if(obj2.parentNode.className.indexOf("default")==-1)
obj2.parentNode.className="selected"
obj.visibility="visible"}
else if(e.type=="click")
obj.visibility="hidden"},iecompattest:function(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body},clearbrowseredge:function(obj,whichedge){var edgeoffset=0
if(whichedge=="rightedge"){var windowedge=this.ie&&!window.opera?this.standardbody.scrollLeft+this.standardbody.clientWidth-15:window.pageXOffset+window.innerWidth-15
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth
if(windowedge-this.dropmenuobj.x<this.dropmenuobj.contentmeasure)
edgeoffset=this.dropmenuobj.contentmeasure-obj.offsetWidth}
else{var topedge=this.ie&&!window.opera?this.standardbody.scrollTop:window.pageYOffset
var windowedge=this.ie&&!window.opera?this.standardbody.scrollTop+this.standardbody.clientHeight-15:window.pageYOffset+window.innerHeight-18
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight
if(windowedge-this.dropmenuobj.y<this.dropmenuobj.contentmeasure){edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight
if((this.dropmenuobj.y-topedge)<this.dropmenuobj.contentmeasure)
edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge}
this.dropmenuobj.firstlink.style.borderTopWidth=(edgeoffset==0)?0:"1px"}
return edgeoffset},dropit:function(obj,e,dropmenuID){if(this.dropmenuobj!=null){this.dropmenuobj.style.visibility="hidden"
if(this.previousmenuitem!=null&&this.previousmenuitem!=obj){if(this.previousmenuitem.parentNode.className.indexOf("default")==-1)
this.previousmenuitem.parentNode.className=""}}
this.clearhidemenu()
if(this.ie||this.firefox){obj.onmouseout=function(){tabdropdown.delayhidemenu(obj)}
obj.onclick=function(){return!tabdropdown.disablemenuclick}
this.dropmenuobj=document.getElementById(dropmenuID)
this.dropmenuobj.onmouseover=function(){tabdropdown.clearhidemenu()}
this.dropmenuobj.onmouseout=function(e){tabdropdown.dynamichide(e,obj)}
this.dropmenuobj.onclick=function(){tabdropdown.delayhidemenu(obj)}
this.showhide(this.dropmenuobj.style,e,obj)
this.dropmenuobj.x=this.getposOffset(obj,"left")
this.dropmenuobj.y=this.getposOffset(obj,"top")
this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj,"rightedge")+"px"
this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj,"bottomedge")+obj.offsetHeight+1+"px"
this.previousmenuitem=obj
this.positionshim()}},contains_firefox:function(a,b){while(b.parentNode)
if((b=b.parentNode)==a)
return true;return false;},dynamichide:function(e,obj2){var evtobj=window.event?window.event:e
if(this.ie&&!this.dropmenuobj.contains(evtobj.toElement))
this.delayhidemenu(obj2)
else if(this.firefox&&e.currentTarget!=evtobj.relatedTarget&&!this.contains_firefox(evtobj.currentTarget,evtobj.relatedTarget))
this.delayhidemenu(obj2)},delayhidemenu:function(obj2){this.delayhide=setTimeout(function(){tabdropdown.dropmenuobj.style.visibility='hidden';if(obj2.parentNode.className.indexOf('default')==-1)obj2.parentNode.className=''},this.disappeardelay)},clearhidemenu:function(){if(this.delayhide!="undefined")
clearTimeout(this.delayhide)},positionshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined"){if(this.dropmenuobj.style.visibility=="visible"){this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px"
this.shimobject.style.height=this.dropmenuobj.offsetHeight+"px"
this.shimobject.style.left=this.dropmenuobj.style.left
this.shimobject.style.top=this.dropmenuobj.style.top}
this.shimobject.style.display=(this.dropmenuobj.style.visibility=="visible")?"block":"none"}},hideshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined")
this.shimobject.style.display='none'},isSelected:function(menuurl){var menuurl=menuurl.replace("http://"+menuurl.hostname,"").replace(/^\//,"")
return(tabdropdown.currentpageurl==menuurl)},init:function(menuid,dselected){this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body
var menuitems=document.getElementById(menuid).getElementsByTagName("a")
for(var i=0;i<menuitems.length;i++){if(menuitems[i].getAttribute("rel")){var relvalue=menuitems[i].getAttribute("rel")
document.getElementById(relvalue).firstlink=document.getElementById(relvalue).getElementsByTagName("a")[0]
menuitems[i].onmouseover=function(e){var event=typeof e!="undefined"?e:window.event
tabdropdown.dropit(this,event,this.getAttribute("rel"))}}
if(dselected=="auto"&&typeof setalready=="undefined"&&this.isSelected(menuitems[i].href)){menuitems[i].parentNode.className+=" selected default"
var setalready=true}
else if(parseInt(dselected)==i)
menuitems[i].parentNode.className+=" selected default"}}}
var enabletabpersistence=0
var tabcontentIDs=new Object()
function expandcontent(linkobj){var ulid=linkobj.parentNode.parentNode.id
var ullist=document.getElementById(ulid).getElementsByTagName("li")
for(var i=0;i<ullist.length;i++){ullist[i].className=""
if(typeof tabcontentIDs[ulid][i]!="undefined")
document.getElementById(tabcontentIDs[ulid][i]).style.display="none"}
linkobj.parentNode.className="selected"
document.getElementById(linkobj.getAttribute("rel")).style.display="block"
saveselectedtabcontentid(ulid,linkobj.getAttribute("rel"))}
function expandtab(tabcontentid,tabnumber){var thetab=document.getElementById(tabcontentid).getElementsByTagName("a")[tabnumber]
if(thetab.getAttribute("rel"))
expandcontent(thetab)}
function savetabcontentids(ulid,relattribute){if(typeof tabcontentIDs[ulid]=="undefined")
tabcontentIDs[ulid]=new Array()
tabcontentIDs[ulid][tabcontentIDs[ulid].length]=relattribute}
function saveselectedtabcontentid(ulid,selectedtabid){if(enabletabpersistence==1)
setCookie(ulid,selectedtabid)}
function getullistlinkbyId(ulid,tabcontentid){var ullist=document.getElementById(ulid).getElementsByTagName("li")
for(var i=0;i<ullist.length;i++){if(ullist[i].getElementsByTagName("a")[0].getAttribute("rel")==tabcontentid){return ullist[i].getElementsByTagName("a")[0]
break}}}
function initializetabcontent(){for(var i=0;i<arguments.length;i++){if(enabletabpersistence==0&&getCookie(arguments[i])!="")
setCookie(arguments[i],"")
var clickedontab=getCookie(arguments[i])
var ulobj=document.getElementById(arguments[i])
var ulist=ulobj.getElementsByTagName("li")
for(var x=0;x<ulist.length;x++){var ulistlink=ulist[x].getElementsByTagName("a")[0]
if(ulistlink.getAttribute("rel")){savetabcontentids(arguments[i],ulistlink.getAttribute("rel"))
ulistlink.onclick=function(){expandcontent(this)
return false}
if(ulist[x].className=="selected"&&clickedontab=="")
expandcontent(ulistlink)}}
if(clickedontab!=""){var culistlink=getullistlinkbyId(arguments[i],clickedontab)
if(typeof culistlink!="undefined")
expandcontent(culistlink)
else
expandcontent(ulist[0].getElementsByTagName("a")[0])}}}
function getCookie(Name){var re=new RegExp(Name+"=[^;]+","i");if(document.cookie.match(re))
return document.cookie.match(re)[0].split("=")[1]
return""}
function setCookie(name,value){document.cookie=name+"="+value}
function PrintURL(sURL,sTitle,sAnchor){return('<'+'a hr'+'ef="'+sURL+'" ti'+'tle="'+sTitle+'" rel="nofollow">'+sAnchor+'</'+'a>');}
function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore)selObj.selectedIndex=0;}
var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers?"":"px"
var bouncelimit=32
var direction="up"
function initbox(){if(!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style:ie?document.all.dropin:document.dropin
scroll_top=(ie)?truebody().scrollTop:window.pageYOffset
crossobj.top=scroll_top-250+calunits
crossobj.visibility=(dom||ie)?"visible":"show"
dropstart=setInterval("dropin()",10)}
function dropin(){scroll_top=(ie)?truebody().scrollTop:window.pageYOffset
if(parseInt(crossobj.top)<100+scroll_top)
crossobj.top=parseInt(crossobj.top)+40+calunits
else{clearInterval(dropstart)
bouncestart=setInterval("bouncein()",10)}}
function bouncein(){crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if(bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if(bouncelimit==0){clearInterval(bouncestart)}}
function dismissbox(){if(window.bouncestart)clearInterval(bouncestart)
crossobj.visibility="hidden"}
function truebody(){return(document.compatMode!="BackCompat")?document.documentElement:document.body}
var xmlHttp
function GetXmlHttpObject()
{try{xmlHttp=new XMLHttpRequest();}
catch(e)
{try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
function stateChanged()
{if(xmlHttp.readyState==4)
{var xmlDoc=xmlHttp.responseXML.documentElement;var empty=xmlDoc.getElementsByTagName('empty');if(empty.length)
{var our_form=document.frmQuickJump.forums
our_form.options.length=0
our_form.options[0]=new Option("No Forum Category Selected","",true,false)}
else
{var our_form=document.frmQuickJump.forums
our_form.options.length=0
var forum_id,forum_name
var length=xmlDoc.getElementsByTagName('f').length;for(var i=0;i<length;i++){forum_id=xmlDoc.getElementsByTagName("f_id")[i].childNodes[0].nodeValue;forum_name=xmlDoc.getElementsByTagName("f_name")[i].childNodes[0].nodeValue;our_form.options[i]=new Option(forum_name,forum_id,false,false)}}}}
function get_Cat_Forums(cat_id)
{if(cat_id==0)
{var our_form=document.frmQuickJump.forums
our_form.options.length=0
our_form.options[0]=new Option("No Category Selected","",true,false)}
else
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var url="/ajax/ajax_catforums.asp?cid="+cat_id;xmlHttp.open("GET",url,true);xmlHttp.onreadystatechange=stateChanged;xmlHttp.send(null);}}
