/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var MainDir=''
var SeasonDir='/season17/'
var LeaguePrefix='HHH6-'

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="mailto:HHHockeyCommish@Gmail.com">Contact Commish</a>'
menu1[1]='<a href="' + MainDir+'application.php">Join</a>'
menu1[2]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TeamsAndGMInfo.html">General Managers</a>'
menu1[3]='<a href="'+MainDir+SeasonDir+'HHH6.sts">League File</a>'
menu1[4]='<a href="'+MainDir+'rules.php">Rules</a>'


//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TodayGames.html">Latest Game Day</a>'
menu2[1]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Schedule.html">Schedule</a>'
menu2[2]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TeamRoster.html">Rosters</a>'
menu2[3]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Standing.html">Playoff Tree</a>'
menu2[4]='<div id="dropmenuspacerdiv"><img src="'+MainDir+'images/menuseperator.gif" width="140" height="2" alt="" border="0"></div>'
menu2[5]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TeamLines.html">Team Lines</a>'
menu2[6]='<div id="dropmenuspacerdiv"><img src="'+MainDir+'images/menuseperator.gif" width="140" height="2" alt="" border="0"></div>'
menu2[7]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Leaders.html">Scoring Leaders</a>'
menu2[8]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TeamScoring.html">Team Scoring</a>'
menu2[9]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'IndividualLeaders.html">Individual Leaders</a>'
menu2[10]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TeamStats.html">Team Stats</a>'
menu2[11]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TeamStatsVS.html">Vs Teams Stats</a>'
menu2[12]='<div id="dropmenuspacerdiv"><img src="'+MainDir+'images/menuseperator.gif" width="140" height="2" alt="" border="0"></div>'
menu2[13]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'InjurySuspension.html">Injuries</a>'
menu2[14]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Transactions.html">Transactions</a>'
menu2[15]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Coaches.html">Coaches</a>'
menu2[16]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Waivers.html">Waivers</a>'
menu2[17]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Unassigned.html"> In Season Free Agents</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'LeagueRecords.html">League Records</a>'
menu3[1]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'PowerRanking.html">Power Rankings</a>'

//Contents for menu 4, and so on
var menu4=new Array()
menu4[0]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'FarmStanding.html">Standings</a>'
menu4[1]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'FarmTeamSchedule.html">Schedule</a>'
menu4[2]='<a href="'+MainDir+SeasonDir+'FarmTeamRoster.html">Farm Rosters</a>'
menu4[3]='<a href="'+MainDir+'FarmTeamScoring.html">Team Scoring</a>'
menu4[4]='<a href="'+MainDir+'FarmIndividualLeaders.html">Individual Leaders</a>'
menu4[5]='<a href="'+MainDir+'FarmLeaders.html">Farm Leaders</a>'
menu4[6]='<a href="'+MainDir+'FarmTeamStats.html">Team Stats</a>'
menu4[7]='<a href="'+MainDir+'FarmTeamStatsVS.html">Vs Team Stats</a>'

//Contents for menu 5, and so on
var menu5=new Array()
menu5[0]='<a href="'+MainDir+'SMF/">Message Board</a>'
menu5[1]='<a href="'+MainDir+'awards/awards.php">Awards</a>'
menu5[2]='<a href="'+MainDir+'archive/careerstats.html">Career Stats</a>'
menu5[3]='<a href="'+MainDir+'awards/soon.html">Coming Soon(archive)</a>'


//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TodayGames.html">Latest Game Day</a>'
menu6[1]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Schedule.html">Schedule</a>'
menu6[2]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TeamRoster.html">Rosters</a>'
menu6[3]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TeamFinance.html">Finances</a>'
menu6[4]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Standing.html">Playoff Tree</a>'
menu6[5]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TeamLines.html">Team Lines</a>'
menu6[6]='<div id="dropmenuspacerdiv"><img src="'+MainDir+'images/menuseperator.gif" width="140" height="2" alt="" border="0"></div>'
menu6[7]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Leaders.html">Scoring Leaders</a>'
menu6[8]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TeamScoring.html">Team Scoring</a>'
menu6[9]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Leaders.html">Individual Leaders</a>'
menu6[10]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'TeamStats.html">Team Stats</a>'
menu6[11]='<div id="dropmenuspacerdiv"><img src="'+MainDir+'images/menuseperator.gif" width="140" height="2" alt="" border="0"></div>'
menu6[12]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'InjurySuspension.html">Injuries</a>'
menu6[13]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Transactions.html">Transactions</a>'
menu6[14]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Coaches.html">Coaches</a>'
menu6[15]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Waivers.html">Waivers</a>'
menu6[16]='<a href="'+MainDir+SeasonDir+LeaguePrefix+'Unassigned.html">Free Agents</a>'

//Contents for menu 7
var menu7=new Array()
menu7[0]='<a href="'+MainDir+SeasonDir+'TeamStatsPLF.html">Team Scoring</a>'
menu7[1]='<a href="'+MainDir+SeasonDir+'PlayerStatsPLF.html?pos=ALL">League Scoring</a>'
menu7[2]='<a href="'+MainDir+SeasonDir+'PlayerStatsPLF.html?pos=F">Forward Scoring</a>'
menu7[3]='<a href="'+MainDir+SeasonDir+'PlayerStatsPLF.html?pos=D">Defenseman Scoring</a>'
menu7[4]='<a href="'+MainDir+SeasonDir+'GoalieStatsPLF.html">Goalie Statistics</a>'

		
var menuwidth='150px' //default menu width
var menubgcolor='#F0F0F0'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
var switchtotop="no" //Switch the menu to the top if the bottom of the menu hits the end of the window
var switchtoleft="yes" //Switch the menu to the left if the right of the menu hits the end of the window

/////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 showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
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"){
	if (switchtoleft=="yes"){
		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{
	if (switchtotop=="yes"){
		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)
		edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
	}
}
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){
showhide(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

