// Title: Tigra Menu PRO
// Description: Tigra Menu PRO is flexible menu solution for commercial
//	applications offering high reliability and wide browsers support.
//	See URL for complete feature list.
// URL: http://www.softcomplex.com/products/tigra_menu_pro/
// Version: 3.0
// Date: 03-12-2002 (mm-dd-yyyy)
// Technical Support: support@softcomplex.com (specify product title and order ID)
// Notes: Registration needed to use this script legally.
//	Visit official site for details.

var w,F=[];G=['mout','mover','mdown'];function J0(){this.P0=window.innerWidth!=null?function(){return window.innerWidth}:function(){return document.body.clientWidth};this.j=window.innerHeight!=null?function(){return window.innerHeight}:function(){return document.body.clientHeight};this.m=window.pageXOffset!=null?function(){return window.pageXOffset}:function(){return document.body.scrollLeft};this.Q=window.pageYOffset!=null?function(){return window.pageYOffset}:function(){return document.body.scrollTop};this.N=document.all?function(i){return document.all[i]}:function(i){return document.getElementById(i)};this.b=F0;this.G0=S;}function F0(){var R0,D0;if(this.width!=(R0=this.P0())){this.width=R0;D0=true;}if(this.height!=(R0=this.j())){this.height=R0;D0=true;}if(this.d!=(R0=this.m())){this.d=R0;D0=true;}if(this.L!=(R0=this.Q())){this.L=R0;D0=true;}if(D0){if(this.x)clearTimeout(this.x);this.x=setTimeout('w.G0()',200);}window.setTimeout('w.b()',50);}function S(){for(var i=0;i<F.length;i++)if(F[i].g)F[i].G0();}function menu(J,K){this.J=J;this.K=K;this.T=[];this.I=[];this.v=[];this.q=0;this.hide=t;this.onclick=R;this.onmouseout=L0;this.onmouseover=c;this.onmousedown=A0;this.y=O;this.G0=M0;if(!w){w=new J0();w.b();}this.id=F.length;F[this.id]=this;for(var i=0;i<this.J.length;i++)new E0(i,this,this);var X=0,Y=0,n=Number.POSITIVE_INFINITY,p=Number.POSITIVE_INFINITY;for(var i=0;i<this.I.length;i++){X=Math.max(X,this.I[i].y('left')+this.I[i].y('width'));Y=Math.max(Y,this.I[i].y('top')+this.I[i].y('height'));n=Math.min(n,this.I[i].y('left'));p=Math.min(p,this.I[i].y('top'));}this.v.top=0;this.v.left=0;this.v.width=X-n;this.v.height=Y-p;this.g=true;this.G0();}function t(){if(!this.k||this.q||!this.e)return;this.e.u(0);this.e=null;}function M0(){this.v.top=this.v.left=0;if(this.K.align=='center')this.v.left=Math.round((w.width-this.v.width)/2);else if(this.K.align=='right')this.v.left=w.width-this.v.width;if(this.K.valign=='center')this.v.top=Math.round((w.height-this.v.height)/2);else if(this.K.valign=='bottom')this.v.top=w.height-this.v.height;if(this.K.scroll=='horizontal'||this.K.scroll=='both')this.v.left+=w.d;if(this.K.scroll=='vertical'||this.K.scroll=='both')this.v.top+=w.L;for(var i=0;i<this.I.length;i++){this.I[i].o('hidden',true);this.I[i].M(true);this.I[i].o('mout');}}function O(W){return this.v[W]?this.v[W]:0;}function R(id){return(this.T[id].B[1]?true:false);}function L0(id){this.q--;this.k=setTimeout('F['+this.id+'].hide();',this.K.hide_delay[this.T[id].H]);}function c(id){this.q++;clearTimeout(this.k);this.k=null;this.T[id].l();this.e=this.T[id];}function A0(id){this.T[id].o('mdown');}function E0(D,E,A){this.D=new String(D);this.E=E;this.A=A;this.B0=this.D.split('_');this.H=this.B0.length-1;var f='';for(var i=0;i<=this.H;i++)f+='['+(Number(this.B0[i])+(i?3:0))+']';eval('this.B=this.A.J'+f);if(!this.B)return;this.id=this.A.T.length;this.A.T[this.id]=this;E.I[E.I.length]=this;if(document.layers){this.write=H0;this.o=P;this.y=C0;}else{this.write=z;this.o=N0;this.y=s;}this.u=K0;this.l=Z;this.M=mitem_reposition;this.O0=[];this.C=[];this.write(this.M(false));this.V='hidden';this.I=[];var a=this.B.length-3;for(var i=0;i<a;i++)new E0(this.D+'_'+i,this,this.A);}function K0(h){for(var i=0;i<this.I.length;i++)this.I[i].o('hidden');if(h>=this.H)this.o('mout');else this.E.u(h);}function Z(){if(this.A.e&&this.H<=this.A.e.H)this.A.e.u(this.A.e.E==this?this.H+1:this.H);if(!this.A.e||this.A.e.E!=this)for(var i=0;i<this.I.length;i++)this.I[i].o('mout');this.o('mover');}function mitem_reposition(b){if(this.B0[this.H]==0){this.O0.left=this.E.y('left')+(this.B[2]!=null&&this.B[2][0]!=null?this.B[2][0]:this.A.K.block_left[this.H]);this.O0.top=this.E.y('top')+(this.B[2]!=null&&this.B[2][1]!=null?this.B[2][1]:this.A.K.block_top[this.H]);}else{this.O0.left=this.E.I[this.B0[this.H]-1].y('left')+(this.B[2]!=null&&this.B[2][0]!=null?this.B[2][0]:this.A.K.left[this.H]);this.O0.top=this.E.I[this.B0[this.H]-1].y('top')+(this.B[2]!=null&&this.B[2][1]!=null?this.B[2][1]:this.A.K.top[this.H]);}this.O0.width=(this.B[2]!=null&&this.B[2][2]!=null?this.B[2][2]:this.A.K.width[this.H]);this.O0.height=(this.B[2]!=null&&this.B[2][3]!=null?this.B[2][3]:this.A.K.height[this.H]);if(!b)return this.O0;this.y('left',this.O0.left);this.y('top',this.O0.top);for(var i=0;i<this.I.length;i++)this.I[i].M(true);}function z(y){for(var i=0;i<G.length;i++){document.write('<div id="m'+this.A.id+'i'+this.id+G[i]+'" style="position:absolute;left:'+y.left+'px;top:'+y.top+'px;width:'+y.width+'px;height:'+y.height+'px;visibility:hidden;z-index:'+this.H*2+';" class="m'+this.A.id+'l'+this.H+G[i]+'o"><div class="m'+this.A.id+'l'+this.H+G[i]+'i">'+(typeof(this.B[0])=='object'?this.B[0][i]:this.B[0])+'</div></div>');this.C[G[i]]=w.N('m'+this.A.id+'i'+this.id+G[i]);}document.write('<div id="m'+this.A.id+'i'+this.id+'i" style="position:absolute;left:'+y.left+'px;top:'+y.top+'px;width:'+y.width+'px;height:'+y.height+'px;visibility:hidden;z-index:'+(this.H*2+1)+';"><a href="'+(this.B[1]!=null&&typeof(this.B[1])!='string'&&this.B[1][0]!=null?this.B[1][0]:this.B[1])+'"'+(this.B[1]!=null&&typeof(this.B[1])!='string'&&this.B[1][1]!=null?' target="'+this.B[1][1]+'"':'')+' onclick="return F['+this.A.id+'].onclick('+this.id+');" onmouseout="F['+this.A.id+'].onmouseout('+this.id+');" onmouseover="F['+this.A.id+'].onmouseover('+this.id+');" onmousedown="F['+this.A.id+'].onmousedown('+this.id+');"><img src="'+this.A.K['pixel_path']+'" width="'+y.width+'" height="'+y.height+'" border="0"'+(this.B[1]!=null&&typeof(this.B[1])!='string'&&this.B[1][2]!=null?' alt="'+this.B[1][2]+'"':'')+'></a></div>');this.link=w.N('m'+this.A.id+'i'+this.id+'i');}function N0(V,U){if(!this.H&&V=='hidden'&&!U)V='mout';if(V==this.V)return;if(this.V=='hidden')this.link.style.visibility='visible';else this.C[this.V].style.visibility='hidden';if(V=='hidden')this.link.style.visibility='hidden';else this.C[V].style.visibility='visible';this.V=V;}function s(W,I0){if(!W)return;if(this.link.style.pixelLeft)if(W=='left')W='pixelLeft';else if(W=='top')W='pixelTop';else if(W=='width')W='pixelWidth';else if(W=='height')W='pixelHeight';if(I0){for(var i=0;i<G.length;i++)this.C[G[i]].style[W]=I0;this.link.style[W]=I0;return(this.O0[W]=I0);}else{var Q0=/^(\-?\d+)/;if(Q0.exec(this.link.style[W]))return new Number(RegExp.$1);}}function H0(y){for(var i=0;i<G.length;i++){document.write('<layer name="m'+this.A.id+'i'+this.id+G[i]+'" left="'+y.left+'" top="'+y.top+'" z-index="'+this.H*2+'" width="'+y.width+'" height="'+y.height+'" visibility="hide"><table cellpadding="0" cellspacing="0" border="0" width="'+y.width+'" height="'+y.height+'" class="m'+this.A.id+'l'+this.H+G[i]+'o"><tr><td><div class="m'+this.A.id+'l'+this.H+G[i]+'o"><div class="m'+this.A.id+'l'+this.H+G[i]+'i">'+(typeof(this.B[0])=='object'?this.B[0][i]:this.B[0])+'</div></div></td></tr></table></layer>');this.C[G[i]]=document.layers['m'+this.A.id+'i'+this.id+G[i]];}document.write('<layer name="m'+this.A.id+'i'+this.id+'i" left="'+y.left+'" top="'+y.top+'" z-index="'+(this.H*2+1)+'" visibility="hide" width="'+y.width+'" height="'+y.height+'"><a href="'+(this.B[1]!=null&&typeof(this.B[1])!='string'&&this.B[1][0]!=null?this.B[1][0]:this.B[1])+'"'+(this.B[1]!=null&&typeof(this.B[1])!='string'&&this.B[1][1]!=null?' target="'+this.B[1][1]+'"':'')+' onclick="return F['+this.A.id+'].onclick('+this.id+');" onmouseout="F['+this.A.id+'].onmouseout('+this.id+');" onmouseover="F['+this.A.id+'].onmouseover('+this.id+');" onmousedown="F['+this.A.id+'].onmousedown('+this.id+');"><img src="'+this.A.K['pixel_path']+'" width="'+y.width+'" height="'+y.height+'" border="0"'+(this.B[1]!=null&&typeof(this.B[1])!='string'&&this.B[1][2]!=null?' alt="'+this.B[1][2]+'"':'')+'></a></layer>');this.link=document.layers['m'+this.A.id+'i'+this.id+'i'];}function P(V){if(!this.H&&V=='hidden')V='mout';if(V==this.V)return;if(this.V=='hidden')this.link.visibility='show';else this.C[this.V].visibility='hide';if(V=='hidden')this.link.visibility='hide';else this.C[V].visibility='show';this.V=V;}function C0(W,I0){if(!W)return;if(I0){this.O0[W]=I0;for(var i=0;i<G.length;i++){this.C[G[i]].moveTo(this.O0.left,this.O0.top);this.C[G[i]].resizeTo(this.O0.width,this.O0.height);}this.link.moveTo(this.O0.left,this.O0.top);this.link.resizeTo(this.O0.width,this.O0.height);}return this.O0[W];}

/* --- menu items --- */

/*    * 0 - horizontal offset of the item's rectangle from origin point* in pixels
      * 1 - vertical offset of the item's rectangle from origin point* in pixels
      * 2 - item's width in pixels
      * 3 - item's height in pixels  */

var MENU_ITEMS = [
	['Home', strRelPath + 'Default.aspx', [null, null, 60, 26]],
	['Who we are', null, [61, null, 95, 26],
		['What we believe', strRelPath + 'WhoWeAre/Beliefs.aspx', [null,null,145]],
		['Our Staff', strRelPath + 'WhoWeAre/OurStaff.aspx', [null,null,145]],
		['Our Mission', strRelPath + 'WhoWeAre/Mission.aspx', [null,null,145]],
		['Contact Us', strRelPath + 'WhoWeAre/Contact.aspx', [null,null,145]]
	],
	['Church Life', null, [96, null, 90, 26],
		['Life Groups', strRelPath + 'ChurchLife/LifeGroups.aspx', [null,null,170]],
		['Mens Ministry', strRelPath + 'ChurchLife/MensMinistry.aspx', [null,null,170]],
		['Womens Groups', strRelPath + 'ChurchLife/WomensGroups.aspx', [null,null,170]],
		['Worship Team', strRelPath + 'ChurchLife/WorshipTeam.aspx', [null,null,170]],
		['Membership', strRelPath + 'ChurchLife/Membership.aspx', [null, null, 170]],
		['Baptism', strRelPath + 'ChurchLife/Baptism.aspx', [null,null,170]],
		['Prayer Ministry', strRelPath + 'ChurchLife/PrayerMinistry.aspx', [null,null,170]]
	],
	['Youth', null, [91, null, 62, 26],
		['Tuesday Programmes', strRelPath + 'Youth/Tuesday.aspx', [null,null,170]],
		['Camps', strRelPath + 'Youth/Camps.aspx', [null, null, 170]],
		['24/7 Youth Work', strRelPath + 'Youth/247.aspx', [null,null,170]],
	   ['Galleries', [strRelPath + 'Gallery/PicViewer.aspx', '_blank', 'Galleries'], [null, null, 170]]
	],
	['Children', null, [63, null, 80, 26],
		['cr&eacute;che', strRelPath + 'Children/Creche.aspx', [null,null,145]],
		['Little Flames', strRelPath + 'Children/LittleFlames.aspx', [null,null,145]],
		['Detonate', strRelPath + 'Children/Detonate.aspx', [null, null, 145]]
	],
	['Community', null, [81, null, 100, 26],
		['Community Outreach', strRelPath + 'Community/Community.aspx', [null,null,230]],
		['Christian Religious Education', strRelPath + 'Community/CRE.aspx', [null,null,230]],
		['Craft Group', strRelPath + 'Community/CraftGroup.aspx', [null,null,230]],
		['Supakidz', strRelPath + 'Community/SupaKidz.aspx', [null,null,230]],
		['Prison Ministries', strRelPath + 'Community/PrisonMinistry.aspx', [null,null,230]],
		['Foot Centre', strRelPath + 'Community/FootCentre.aspx', [null,null,230]],
		['Rest Home Services', strRelPath + 'Community/RestHome.aspx', [null,null,230]],
		['Pre-school Mothers', strRelPath + 'Community/Pre-SchoolMothers.aspx', [null, null, 230]]
	],
	['Missions', null, [101, null, 85, 26],
		['Tranzsend', strRelPath + 'Missions/Tranzsend.aspx', [null, null, 175]],
		['Missions Co-Ordinator', strRelPath + 'Missions/Coordinator.aspx', [null, null, 175]],
		['Current Missionaries', strRelPath + 'Missions/Current.aspx', [null, null, 175]],
		['Tonga', strRelPath + 'Missions/Tonga.aspx', [null,null,175]],
	],
	['Facilities', null, [86, null, 90, 26],
		['Facility Information', strRelPath + 'Facilities/FacilityInfo.aspx', [null,null,180]],
		['Conferences & Events', strRelPath + 'Facilities/ConfEvents.aspx', [null,null,180]],
	],
	['Discipleship', null, [91, null, 105, 26],
		['Journeys', strRelPath + 'Discipleship/Journeys.aspx', [null,null,190]],
		['Alpha Course', strRelPath + 'Discipleship/Alpha.aspx', [null,null,190]],
		['Friends for Life', strRelPath + 'Discipleship/Friends.aspx', [null,null,190]],
		['How to Hear God&#39;s Voice', strRelPath + 'Discipleship/Hearing.aspx', [null, null, 190]],
		['Marriage Ministries', strRelPath + 'Discipleship/Marriage.aspx', [null,null,190]],
	],
	['Downloads', null, [106, null, 95, 26],
		['Newsletters', strRelPath + 'Newsletter/', [null, null, 132]],
		['Sermons', strRelPath + 'Media/', [null, null, 132]],
	]
];

var MENU_POS = {
	'height'     : [25, 25, 25, 25],
	'width'      : [130, 160, 160, 140],
	'block_top'  : [0, 26, 26, 26],
	'block_left' : [39, 0, 145, 155],
	'top'        : [0, 26, 26, 26],
	'left'       : [0, 0, 0, 0],
	'hide_delay' : [300, 300, 300, 300],
	'expd_delay' : [300, 300, 300, 300],
	'pixel_path' : strRelPath + 'Images/pixel.gif'
};


