// Title: Tigra Menu (v2.1 06/26/2007)
// URL: http://www.javascript-menu.com/
// Tech. Support: http://www.softcomplex.com/forum/forumdisplay_29/
// Notes: This script is free. Visit official site for further details.

var MENU_ITEMS = [
['Home', 'index.html', {'sb':'Return to the home page'}],
['Current Season', null, null,
	['By Date', '2009_date.html', {'sb':'View 2009 season ordered by date'}],
	['By League', '2009_league.html', {'sb':'View 2009 season ordered by league'}],
	['News', '2009_news.html', {'sb':'View the 2009 season\'s news'}],
	['Calendar...', '2009_calendar.html', {'sb':'View the 2009 season\'s calendar'},
		['July 2009', '2009_calendar.html#jul', {'sb':'July 2009'}],
		['August 2009', '2009_calendar.html#aug', {'sb':'August 2009'}],
		['September 2009', '2009_calendar.html#sep', {'sb':'September 2009'}],
		['October 2009', '2009_calendar.html#oct', {'sb':'October 2009'}],
		['November 2009', '2009_calendar.html#nov', {'sb':'November 2009'}],
		['December 2009', '2009_calendar.html#dec', {'sb':'December 2009'}],
		['January 2010', '2009_calendar.html#jan', {'sb':'January 2010'}],
		['February 2010', '2009_calendar.html#feb', {'sb':'February 2010'}],
		['March 2010', '2009_calendar.html#mar', {'sb':'March 2010'}],
		['April 2010', '2009_calendar.html#apr', {'sb':'April 2010'}],
		['May 2010', '2009_calendar.html#may', {'sb':'May 2010'}],
		['June 2010', '2009_calendar.html#jun', {'sb':'June 2010'}]
	]
],
['Previous Seasons', null, null,
	['Previous Results', 'results.html', {'sb':'View all previous results ordered by opponent'}],
	['2004/5...', null, null,
		['By Date', '2004_date.html', {'sb':'View 2004 season ordered by date'}],
		['By League', '2004_league.html', {'sb':'View 2004 season ordered by league'}]
	],
	['2005/6...', null, null,
		['By Date', '2005_date.html', {'sb':'View 2005 season ordered by date'}],
		['By League', '2005_league.html', {'sb':'View 2005 season ordered by league'}],
		['News', '2005_news.html', {'sb':'View the 2005 season\'s news'}]
	],
	['2006/7...', null, null,
		['By Date', '2006_date.html', {'sb':'View 2006 season ordered by date'}],
		['By League', '2006_league.html', {'sb':'View 2006 season ordered by league'}],
		['News', '2006_news.html', {'sb':'View the 2006 season\'s news'}],
		['Calendar', '2006_calendar.html', {'sb':'View the 2006 season\'s calendar'}]
	],
	['2007/8...', null, null,
		['By Date', '2007_date.html', {'sb':'View 2007 season ordered by date'}],
		['By League', '2007_league.html', {'sb':'View 2007 season ordered by league'}],
		['News', '2007_news.html', {'sb':'View the 2007 season\'s news'}],
		['Calendar', '2007_calendar.html', {'sb':'View the 2007 season\'s calendar'}]
	],
	['2008/9...', null, null,
		['By Date', '2008_date.html', {'sb':'View 2008 season ordered by date'}],
		['By League', '2008_league.html', {'sb':'View 2008 season ordered by league'}],
		['News', '2008_news.html', {'sb':'View the 2008 season\'s news'}],
		['Calendar', '2008_calendar.html', {'sb':'View the 2008 season\'s calendar'}]
	]
],
['About Us', 'about.html', {'sb':'A bit about who we are and the history of the club'}],
['Where We Play', 'where.html', {'sb':'Find out where we play'}],
['Contact Us', 'contact.html', {'sb':'Contact us'}],
['Links', 'links.html', {'sb':'Some useful links'}]
];

var MENU_TPL =
[
	{'width': 135, 'height': 24, 'left': 135, 'top': 0, 'hide_delay': 500, 'expd_delay': 100, 'css': {'inner': 'TM0i0', 'outer': ['TM0o0','TM0o1']}, 'block_left': 8, 'block_top': 76},
	{'width': 135, 'block_left': 0, 'block_top': 25, 'left': 0, 'top': 23, 'css': {'inner': 'TM0i0', 'outer': ['TM1o0','TM1o1']}},
	{'block_left': 60, 'block_top': 10}
];

var A_MENUS=[];
function menu(F,I)
{
	if(!document.body||!document.body.style)return;
	this.B=F;
	this.I=I;
	this.b=A_MENUS.length;
	this.D=[];
	this.A=[];
	this.expand=R;
	this.collapse=Q;
	this.onclick=T;
	this.onmouseout=V;
	this.onmouseover=W;
	this.onmousedown=U;
	this.J={'block_top':16,'block_left':16,'top':20,'left':4,'width':120,'height':22,'hide_delay':0,'expd_delay':0,'css':{'inner':'','outer':''}};
	this.O=function(p){return this.J[p];};
	this.n=this;
	this.a=-1;
	this.g=0;
	this.h=0;
	for(c=0;c<F.length;c++)new S(this,c);
	A_MENUS[this.b]=this;
	for(var c=0;c<this.A.length;c++)this.A[c].N.style.visibility='visible';
}

function Q(b)
{
	clearTimeout(this.o);
	var f=(b?this.D[b].a:0);
	for(b=0;b<this.D.length;b++)
	{
		var j=this.D[b];
		if(j.a>f&&j.L)
		{
			j.N.style.visibility='hidden';
			j.L=false;
		}
	}
	if(!b)this.i=null;
}

function R(b)
{
	if(this.k)return;
	var l=this.D[b];
	if(this.i&&this.i.a>=l.a)this.collapse(l.b);
	this.i=l;
	if(!l.A)return;
	for(var c=0;c<l.A.length;c++)
	{
		var j=l.A[c];
		j.N.style.visibility='visible';
		j.L=true;
	}
}

function T(b)
{
	var l=this.D[b];
	var q=l.B[1];
	if(!q)return true;
	if(String(q).toLowerCase().indexOf('javascript:')==0)return eval(q);
	if(l.B[2]&&l.B[2]['tw'])window.open(q,l.B[2]['tw']);
	else window.location=q;
	return true;
}

function V(b)
{
	var l=this.D[b];
	l.N.className=l.P(0,0);
	l.M.className=l.P(1,0);
	l.s(7);
	this.k=setTimeout('A_MENUS['+this.b+'].collapse();',l.O('hide_delay'));
}

function W(b)
{
	clearTimeout(this.k);
	this.k=null;
	clearTimeout(this.o);
	var l=this.D[b];
	l.s();
	l.N.className=l.P(0,1);
	l.M.className=l.P(1,1);
	if(l.O('expd_delay')<0)return;
	this.o=setTimeout('A_MENUS['+this.b+'].expand('+b+');',l.O('expd_delay'));
}

function U(b)
{
	var l=this.D[b];
	l.N.className=l.P(0,2);
	l.M.className=l.P(1,2);
	this.expand(b);
}

function S(m,c)
{
	this.a=m.a+1;
	this.B=m.B[c+(this.a?3:0)];
	if(!this.B)return;
	this.n=m.n;
	this.m=m;
	this.c=c;
	this.b=this.n.D.length;
	this.n.D[this.b]=this;
	m.A[c]=this;
	var n=this.n,I=this.n.I;
	this.O=X;
	this.P=Y;
	this.s=Z;
	this.g=c?m.A[c-1].g+this.O('left'):m.g+this.O('block_left');
	this.h=c?m.A[c-1].h+this.O('top'):m.h+this.O('block_top');
	document.write('<div id="e',n.b,'_',this.b,'o" class="',this.P(0,0),'"',(this.B[2]&&this.B[2]['tt']?' title="'+this.B[2]['tt']+'"':''),' style="position:absolute;top: ',this.h,'px;left:',this.g,'px;width:',this.O('width'),'px;height:',this.O('height'),'px;visibility:hidden;',' z-index: ',this.a,';cursor:',(this.B[1]?'pointer':'default'),'" ','onclick="return A_MENUS[',n.b,'].onclick(',this.b,');" onmouseout="A_MENUS[',n.b,'].onmouseout(',this.b,');" onmouseover="A_MENUS[',n.b,'].onmouseover(',this.b,');" onmousedown="A_MENUS[',n.b,'].onmousedown(',this.b,');"><div id="e',n.b,'_',this.b,'i" class="',this.P(1,0),'">',this.B[0],"</div></div>");
	this.M=document.getElementById('e'+n.b+'_'+this.b+'i');
	this.N=document.getElementById('e'+n.b+'_'+this.b+'o');
	this.L=!this.a;
	if(this.B.length<4)return;
	this.A=[];
	for(c=0;c<this.B.length-3;c++)new S(this,c);
}

function X(p)
{
	var r=null,G=this.n.I[this.a];
	if(G)r=G[p];
	return(r==null?this.m.O(p):r);
}

function Y(d,e)
{
	var C=this.O('css');
	var H=C[d?'inner':'outer'];
	if(typeof(H)=='string')return H;
	for(var _=e;_>=0;_--)if(H[_])return H[_];
}

function Z(K)
{
	window.setTimeout("window.status=unescape('"+(K?'':(this.B[2]&&this.B[2]['sb']?escape(this.B[2]['sb']):escape(this.B[0])+(this.B[1]?' ('+escape(this.B[1])+')':'')))+"')",10);
}
