// JavaScript Document

// Contents for Forums Menu
var menu0=new Array()
menu0[0]='<a href="/community/index.php?showforum=1">HomeCourt</a>'
menu0[1]='<a href="/community/index.php?showforum=26">Hawksquawk Supporters</a>'
menu0[2]='<a href="/community/index.php?showforum=2">Around The NBA</a>'
menu0[3]='<a href="/community/index.php?showforum=12">Trade Ideas</a>'
menu0[4]='<a href="/community/index.php?showforum=14">Draft Talk</a>'
menu0[5]='<a href="/community/index.php?showforum=13">Other Sports</a>'
menu0[6]='<a href="/community/index.php?showforum=5">Fantasy Leagues</a>'
menu0[7]='<a href="/community/index.php?showforum=18">The Lounge</a>'
menu0[8]='<a href="/community/index.php?showforum=28">Politics &amp; Religion</a>'
//menu0[9]='<a href="/community/index.php?showforum=16">Hawksquawk News</a>'
//menu0[10]='<a href="/community/index.php?showforum=23">Hawksquawk Classics</a>'
//menu0[11]='<a href="/community/index.php?showforum=22">Requests</a>'
//menu0[12]='<a href="/community/index.php?showforum=4">Suggestions/Comments</a>'
//menu0[13]='<a href="/community/index.php?showforum=9">Test Forum</a>'

// Contents for Hawks.com Menu
var menu1=new Array()
menu1[0]='<a href="http://www.hawks.com" style="border-top:none;" target="_blank">Homepage</a>'
menu1[1]='<a href="http://www.nba.com/hawks/news/index.html" target="_blank">News</a>'
menu1[2]='<a href="http://www.nba.com/hawks/roster/" target="_blank">Roster</a>'
menu1[3]='<a href="http://www.nba.com/hawks/stats/" target="_blank">Stats</a>'
menu1[4]='<a href="http://www.nba.com/standings/team_record_comparison/conferenceNew_Std_Div.html" target="_blank">Standings</a>'
menu1[5]='<a href="http://www.nba.com/hawks/schedule/" target="_blank">Schedule</a>'
menu1[6]='<a href="http://www.nba.com/hawks/multimedia/Multimedia_Main_Page.html" target="_blank">Multimedia</a>'
menu1[7]='<a href="http://www.nba.com/hawks/fans/GameNight_Main_Page.html" target="_blank">Gamenight</a>'
menu1[8]='<a href="http://www.nba.com/hawks/community/" target="_blank">Community</a>'
menu1[9]='<a href="http://www.nba.com/hawks/fans/FanZone_Main_Page.html" target="_blank">Fan Zone</a>'
menu1[10]='<a href="http://www.nba.com/hawks/dominique/Dominique_Wilkins.html" target="_blank">Dominique #21</a>'
menu1[11]='<a href="http://www.nba.com/hawks/general_info/Contact_Us.html" target="_blank">General Info</a>'
menu1[12]='<a href="http://www.nba.com/hawks/danceteam/danceteam_Main_Page.html" target="_blank">Dance Team</a>'

// Contents for Links Menu
var menu2=new Array()
menu2[0]='<a href="http://www.hawks.com" target="_blank">Hawks.com</a>'
menu2[1]='<a href="http://www.nba.com" target="_blank">NBA.com</a>'
menu2[2]='<a href="http://www.espn.com" target="_blank">ESPN.com</a>'
menu2[3]='<a href="http://www.82games.com" target="_blank">82Games.com</a>'
menu2[4]='<a href="http://www.realgm.com/src_tradechecker/1/" title="RealGM Trade Checker" target="_blank">RealGM Trade Checker</a>'
menu2[5]='<a href="http://games.espn.go.com/nba/features/trademachine" title="ESPN Trade Machine" target="_blank">ESPN Trade Machine</a>'
menu2[6]='<a href="http://www.nba.com/fantasy/fantasy_playerinjury.jsp" title="NBA Injury Reports" target="_blank">NBA Injury Reports</a>'
menu2[7]='<a href="http://members.cox.net/lmcoon/salarycap.htm" title="Larry Coon&acute;s NBA Salary Cap FAQs" target="_blank">NBA Salary Cap FAQs</a>'
menu2[8]='<a href="http://www.shamsports.com/content/pages/data/salaries/index.jsp" title="NBA Salaries" target="_blank">Sham NBA Salaries</a>'
menu2[9]='<a href="http://www.shamsports.com/content/pages/data/salaries/hawks.jsp" title="Hawks Salaries" target="_blank">Sham Hawks Salaries</a>'
menu2[10]='<a href="http://www.nba.com/broadband/league_pass.jsp" title="NBA League Pass Broadband" target="_blank">NBA League Pass</a>'
menu2[11]='<a href="http://www.ajc.com/sports/content/sports/hawks/" title="AJC Hawks Page" target="_blank">AJC Hawks Page</a>'
menu2[12]='<a href="http://www.basketball-reference.com/" title="Basketball-Reference" target="_blank">Basketball-Reference</a>'
menu2[13]='<a href="http://basketball.fantasysports.yahoo.com/league/hawksquawk" title="Yahoo Fantasy Basketball" target="_blank">Yahoo Fantasy Basketball</a>'
//menu2[14]='<a href="http://popcornmachine.net/" title="Popcorn Machine GameFlow\'s" target="_blank">Popcorn Machine GameFlow\'s</a>'

// Contents for Teams Menu
var menu3 = new Array()
menu3[0]='<a href="/community/index.php/page/teams" title="Teams">Teams</a>'
menu3[1]='<a href="/community/index.php/page/injuries" title="Team Injuries">Team Injuries</a>'
menu3[2]='<a href="/community/index.php/page/salaries" title="Team Salaries">Team Salaries</a>'

// Contents for Stats Menu
var menu4 = new Array()
menu4[0]='<a href="/community/index.php/page/teamStats" title="Team Stats">Team Stats</a>'

		
var menuwidth='165px' //default menu width
var menubgcolor=''  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

function openStatTracker() {
	var url = 'http://basketball.fantasysports.yahoo.com/nba/2913/loadstattracker';
	window.open(url,'StatTracker','toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width=640,height=480');
}

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(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;
}


function showhide2(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide2(dropmenuobj.style, e, "visible", "hidden", menuwidth)

dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu