
/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="08/draft-trade/index.html"><b>2008 U18 profiles</b></a>'
menu1[1]='<a href="draft/2007_draft_trade1.html">2007 Draft &amp; Trade</a>'
menu1[2]='<a href="06Finals/06_draft_trade3.html">06/07 Picks, etc</a>'
menu1[3]='<a href="06Finals/06_draft_trade.html">2006 Draft 1</a>'
menu1[4]='<a href="06Finals/06_draft_trade2.html">2006 Draft 2</a>'
menu1[5]='<a href="06Finals/06_draft_trade3.html">2006 Draft 3</a>'
menu1[6]='<a href="06Finals/06_draft_trade4.html">2006 Draft 4</a>'
menu1[7]='<a href="06Finals/06_draft_trade5.html">2006 Draft 5</a>'
menu1[8]='<a href="06Finals/06_draft_trade6.html">2006 Draft 6</a>'
menu1[9]='<a href="06Finals/06_draft_trade7.html">2006 Draft 7</a>'
menu1[10]='<a href="06Finals/06_trade.html">2006 Trade 1</a>'
menu1[11]='<a href="06Finals/06_trade2.html">2006 Trade 2</a>'
menu1[12]='<a href="06Finals/06_trade3.html">2006 Trade 3</a>'

var menu2=new Array()
menu2[0]='<a href="saint_linkx.html">WoM Link Gallery</a>'		
menu2[1]='<a href="http://saints.com.au" target="_blank"> St Kilda FC</a>'
menu2[2]='<a href="http://www.saintsational.com/forum/viewforum.php?f=1&amp;amp;sid=9ed8cc89c5f02732e938cb1728f7849f" target="_blank"><b>Saintsational</b></a>'
menu2[3]='<a href="http://www.saintsheaven.net/viewforum.php?f=2" target="_blank"><b>Back-up Forum</b></a>'
menu2[4]='<a href="http://sen1116.conexim.com.au/sen1116_16.asx" target="_blank">SEN Online</a>'
menu2[5]='<a href="http://1radio.com.au/" target="_blank">1 Radio</a>'

var menu3=new Array()
menu3[0]='<a href="08/arch08/index.html"><b>2008 Archives</b></a>'
menu3[1]='<a href="07_articles/general/07archives_index.html">2007 Archives</a>'
menu3[2]='<a href="06arch_indx.html">2006 Archives</a>'
menu3[3]='<a href="05arch_indx.html">2005 Archives</a>'
menu3[4]='<a href="04arch_indx.html">2004 Archives</a>'
menu3[5]='<a href="archives_indx.html">2003 Archives</a>'
menu3[6]='<a href="warning2.html"><b>Games 1906 - 2006</b></a>'
menu3[7]='<a href="warning.html"><b>Players 1897 - 2005</b></a>'
menu3[8]='<a href="player_numbers.html">Players 1971 - 90</a>'
menu3[9]='<a href="scores2007.html">Results 2007</a>'
menu3[10]='<a href="scores2006.html">Results 2006</a>'
menu3[11]='<a href="scores2005.html">Results 2005</a>'
menu3[12]='<a href="scores2004.html">Results 2004</a>'
menu3[13]='<a href="players2007.html"><b>List 2007</b></a>'
menu3[14]='<a href="players2006.html">List 2006</a>'
menu3[15]='<a href="players2005.html">List 2005</a>'
menu3[16]='<a href="players2004.html">List 2004</a>'
menu3[17]='<a href="players.html">List 2003</a>'
menu3[18]='<a href="players02.html">List 2002</a>'
menu3[19]='<a href="players2001.html">List 2001</a>'
menu3[20]='<a href="players2000.html">List 2000</a>'
menu3[21]='<a href="players1999.html">List 1999</a>'
menu3[22]='<a href="players1998.html">List 1998</a>'
menu3[23]='<a href="players1997.html">List 1997</a>'
menu3[24]='<a href="players1996.html">List 1996</a>'
menu3[25]='<a href="players1995.html">List 1995</a>'

var menu4=new Array()
menu4[0]='<a href="club_details.html">Club Details</a>'
menu4[1]='<a href="staff.html">2007 Staff List</a>'
menu4[2]='<a href="coach_list.html">Coaches 1908-2007</a>'
menu4[3]='<a href="trevbark1914_2005.html">Trevor Barker Medal</a>'
menu4[4]='<a href="trebarkaw.html">TB Top Ten 02 - 07</a>'
menu4[5]='<a href="saints_history.html">Team of Century</a>'
menu4[6]='<a href="mlsns.html">Club Milestones</a>'
menu4[7]='<a href="06Finals/1966_grandFinal.html">1966 Grand Final</a>'
menu4[8]='<a href="wanews1.html"><b>Western Saints</b></a>'
menu4[9]='<a href="wa_homeaway.html"><b>Perth Big Screen</b></a>'
menu4[10]='<a href="ballarat_saints.html"><b>Ballarat Saints</b></a>'
menu4[11]='<a href="twincity_saints.html"><b>Albury Wodonga</b></a>'
menu4[12]='<a href="seq_saints.html"><b>SEQ Saints</b></a>'
menu4[13]='<a href="moorabbin_map.html">Moorabbin Directory</a>'

var menu5=new Array()
menu5[1]='<a href="08/scorps.html">Scorpions 2008</a>'
menu5[2]='<a href="07_articles/rd/scorps1a.html">Scorpions 2007</a>'
menu5[3]='<a href="08/training/training08.html"><b>Training Reports</b></a>'
menu5[4]='<a href="08/training/training08.html">Intra-Club Match</a>'
menu5[5]='<a href="08/training/training08.html">Community Camp</a>'
menu5[6]='<a href="youtube.html">Audio Video &amp; Pics</a>'
menu5[7]='<a href="disclaimer.html">Info &amp; Disclaimer</a>'
menu5[8]='<a href="brownlow.html">Brownlow History</a>'
menu5[9]='<a href="brownlow06.html">Brownlow 2006</a>'
menu5[10]='<a href="brownlow05.html">Brownlow 2005</a>'
menu5[11]='<a href="brownlow04.html">Brownlow 2004</a>'
menu5[12]='<a href="international_australian_rules_football.html">AFL International</a>'
menu5[13]='<a href="membership.html"><b>Membership Stats</b></a>'
menu5[14]='<a href="board_challenge_poll.php">WoM Polls</a>'
menu5[15]='<a href="playernics.html">Player Nics</a>'
menu5[16]='<a href="games.html">Wizard Puzzle</a>'
menu5[17]='<a href="injuries2.html">Injuries Defined</a>'

var menu6=new Array()
menu6[0]='<a href="http://www.saintsational.com/forum/viewforum.php?f=1&amp;amp;sid=9ed8cc89c5f02732e938cb1728f7849f" target="_blank"><b>Saintsational</b></a>'
menu6[1]='<a href="http://www.saintsheaven.net/viewforum.php?f=2" target="_blank"><b>Emergency Forum</b></a>'

var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 200px" 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
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-obj.offsetWidth < 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 menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
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")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"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)
}

