 /***********************************************
*	(c) Ger Versluis 2000 version 13.20 October 12, 2005    *
*	You may use this script on non commercial sites.	          *
*	www.burmees.nl/menu			          *
*	You may remove all comments for faster loading	          *		
************************************************/
	var NoOffFirstLineMenus=8;		// Number of main menu  items
						// Colorvariables:
						// Color variables take HTML predefined color names or "#rrggbb" strings
						// For transparency make colors and border color ""
	var LowBgColor="";			// Background color when mouse is not over
	var HighBgColor="";			// Background color when mouse is over
	var FontLowColor="#a67c17";		// Font color when mouse is not over
	var FontHighColor="black";		// Font color when mouse is over
	var BorderColor="#CCCCCC";			// Border color
	var BorderWidthMain=1;			// Border width main items
	var BorderWidthSub=1;			// Border width sub items
 	var BorderBtwnMain=1;			// Border width between elements main items
	var BorderBtwnSub=1;			// Border width between elements sub items
	var FontFamily="arial";			// Font family menu items
	var FontSize=11;			// Font size menu items
	var FontBold=1;				// Bold menu items 1 or 0
	var FontItalic=0;			// Italic menu items 1 or 0
	var MenuTextCentered="left";		// Item text position left, center or right
	var MenuCentered="left";		// Menu horizontal position can be: left, center, right
	var MenuVerticalCentered="top";		// Menu vertical position top, middle,bottom or static
	var ChildOverlap=-.008;			// horizontal overlap child/ parent
	var ChildVerticalOverlap=.05;		// vertical overlap child/ parent
	var StartTop=10;			// Menu offset x coordinate
	var StartLeft=12;			// Menu offset y coordinate
	var VerCorrect=4;			// Multiple frames y correction
	var HorCorrect=0;			// Multiple frames x correction
	var DistFrmFrameBrdr=5;			// ***** Distance between main menu and frame border
	var LeftPaddng=9;			// Left padding
	var TopPaddng=6;			// Top padding. If set to -1 text is vertically centered
	var FirstLineHorizontal=1;		// Number defines to which level the menu must unfold horizontal; 0 is all vertical
	var MenuFramesVertical=1;		// Frames in cols or rows 1 or 0
	var DissapearDelay=1000;		// delay before menu folds in
	var UnfoldDelay=100;			// delay before sub unfolds	
	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
	var FirstLineFrame="";			// Frame where first level appears
	var SecLineFrame="";			// Frame where sub levels appear
	var DocTargetFrame="";			// Frame where target documents appear
	var TargetLoc="nav";			// span id for relative positioning
	var MenuWrap=1;				// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;			// enables/ disables right to left unfold 1 or 0
	var BottomUp=0;				// enables/ disables Bottom up unfold 1 or 0
	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
	var MaskHeaderPhoto=0;			//***SCM*** 1 allows masking effect over header photo
	var BaseHref="";
						// document.location.href.substring(0,document.location.href.lastIndexOf("/")+1);				
						// BaseHref lets you specify the root directory for relative links. 
						// The script precedes your relative links with BaseHref
						// For instance: 
						// when your BaseHref= "http://www.MyDomain/" and a link in the menu is "subdir/MyFile.htm",
						// the script renders to: "http://www.MyDomain/subdir/MyFile.htm"
						// Can also be used when you use images in the textfields of the menu
						// "MenuX=new Array("<img src=\""+BaseHref+"MyImage\">"
						// For testing on your harddisk use syntax like: BaseHref=""

	// var Arrws=[BaseHref+"tri.gif",5,10,BaseHref+"tridown.gif",10,5,BaseHref+"trileft.gif",5,10,BaseHref+"triup.gif",10,5];
	var Arrws=[BaseHref+"",5,10,BaseHref+"",10,5,BaseHref+"",5,10,BaseHref+"",10,5];

						// Arrow source, width and height.
						// If arrow images are not needed keep source ""

	var MenuUsesFrames=0;			// MenuUsesFrames is only 0 when Main menu, submenus,
						// document targets and script are in the same frame.
						// In all other cases it must be 1

	var RememberStatus=0;			// RememberStatus: When set to 1, menu unfolds to the presetted menu item. 
						// When set to 2 only the relevant main item stays highligthed
						// The preset is done by setting a variable in the head section of the target document.
						// <head>
						//	<script type="text/javascript">var SetMenu="2_2_1";</script>
						// </head>
						// 2_2_1 represents the menu item Menu2_2_1=new Array(.......

	var BuildOnDemand=0;			// 1/0 When set to 1 the sub menus are build when the parent is moused over
	var BgImgLeftOffset=10;			// Only relevant when bg image is used as rollover
	var ScaleMenu=0;				// 1/0 When set to 0 Menu scales with browser text size setting
	var OverFormElements=0;			// Set this to 0 when the menu does not need to cover form elements.

	var HooverBold=0;				// 1 or 0
	var HooverItalic=0;				// 1 or 0
	var HooverUnderLine=0;			// 1 or 0
	var HooverTextSize=0;			// 0=off, number is font size difference on hoover
	var HooverVariant=0;			// 1 or 0

						// Below some pretty useless effects, since only IE6+ supports them
						// I provided 3 effects: MenuSlide, MenuShadow and MenuOpacity
						// If you don't need MenuSlide just leave in the line var MenuSlide="";
						// delete the other MenuSlide statements
						// In general leave the MenuSlide you need in and delete the others.
						// Above is also valid for MenuShadow and MenuOpacity
						// You can also use other effects by specifying another filter for MenuShadow and MenuOpacity.
						// You can add more filters by concanating the strings
	var MenuSlide="";
	var MenuSlide="progid:DXImageTransform.Microsoft.RevealTrans(duration=.5, transition=19)";
	var MenuSlide="progid:DXImageTransform.Microsoft.GradientWipe(duration=.5, wipeStyle=1)";

	var MenuShadow="";
	// var MenuShadow="progid:DXImageTransform.Microsoft.DropShadow(color=#888888, offX=2, offY=2, positive=1)";
	// var MenuShadow="progid:DXImageTransform.Microsoft.Shadow(color=#888888, direction=135, strength=3)";

	var MenuOpacity="";

// alert(navigator.appVersion);
if (navigator.appName=="Microsoft Internet Explorer") {

	var BorderBtwnMain=2;			// Border width between elements main items
	var ChildOverlap=-.015;			// horizontal overlap child/ parent
	var ChildVerticalOverlap=.1;		// vertical overlap child/ parent
	var StartLeft=13;			// Menu offset y coordinate
	var DistFrmFrameBrdr=0;			// ***** Distance between main menu and frame border

	var MenuOpacity="progid:DXImageTransform.Microsoft.Alpha(opacity=90)";

	

	}


	function BeforeStart(){return}
	function AfterBuild(){return}
	function BeforeFirstOpen(){return}
	function AfterCloseAll(){return}

// Menu tree:
// MenuX=new Array("ItemText","Link","background image",number of sub elements,height,width,"bgcolor","bghighcolor",
//	"fontcolor","fonthighcolor","bordercolor","fontfamily",fontsize,fontbold,fontitalic,"textalign","statustext");
// Color and font variables defined in the menu tree take precedence over the global variables
// Fontsize, fontbold and fontitalic are ignored when set to -1.
// For rollover images ItemText or background image format is:  "rollover?"+BaseHref+"Image1.jpg?"+BaseHref+"Image2.jpg" 

var subheight = '24';
var subwidth  = '180';
var bgcolor   = '#e7e6e5';
var bgcolorMain = '#BEBBB6';
var bghighcolor = '#9b9b9c';
var myfontcolor = '#535353';
var fonthighcolor = '#FFFFFF';
var bordercolor = '#535353';
var fontfamily = 'Verdana';
var myfontsize = '10';
var menuTheme = "nav2/nav";
var imgLength = "104";
var home = "no";

// alert(document.styleSheets.length);
// alert(document.styleSheets[1].href);

/*if (document.styleSheets.length == 1) { 
	home = "yes";
	menuTheme = "nav/home";  
}

if (document.styleSheets.length == 2) { 
	if (extractFileName(document.styleSheets[1].href) == "home") { menuTheme = "nav/home"; }
}
*/

var rollMenu1 = "Home";					var pxwide1 = "50";
var rollMenu2 = "About JP";				var pxwide2 = "70";
var rollMenu3 = "Our Supporters";		var pxwide3 = "104";
var rollMenu4 = "Concerts & Events";	var pxwide4 = "120";
var rollMenu5 = "Skate Park";			var pxwide5 = "76";
var rollMenu6 = "Parents";				var pxwide6 = "60";
var rollMenu7 = "Los Ninos Cafe";		var pxwide7 = "102";
var rollMenu8 = "Online Services";	var pxwide8 = "140";


/*if (navigator.appName=="Microsoft Internet Explorer") {

	imgLength = "211";
	document.getElementById("nav").style.height = "190px";
	
	if (home == "yes") { 
		menuTheme = "nav/ie/home"; 
		document.getElementById("nav").style.background = "url(/images/nav/ie/home_bk.png) no-repeat";
		}
		
	else { 
		var whichPage = extractFileName(document.styleSheets[1].href);
		menuTheme = "nav/ie/" + whichPage;
		document.getElementById("nav").style.background = "url(/images/nav/ie/" + whichPage + "_bk.png) no-repeat";		
		}
	
	var rollMenu1 = "rollover?"+BaseHref+"/images/nav/ie/trans.gif?"+BaseHref+"/images/"+menuTheme+"1.png";
	var rollMenu2 = "rollover?"+BaseHref+"/images/nav/ie/trans.gif?"+BaseHref+"/images/"+menuTheme+"2.png";
	var rollMenu3 = "rollover?"+BaseHref+"/images/nav/ie/trans.gif?"+BaseHref+"/images/"+menuTheme+"3.png";
	var rollMenu4 = "rollover?"+BaseHref+"/images/nav/ie/trans.gif?"+BaseHref+"/images/"+menuTheme+"4.png";
	var rollMenu5 = "rollover?"+BaseHref+"/images/nav/ie/trans.gif?"+BaseHref+"/images/"+menuTheme+"5.png";
	var rollMenu6 = "rollover?"+BaseHref+"/images/nav/ie/trans.gif?"+BaseHref+"/images/"+menuTheme+"6.png";
	var rollMenu7 = "rollover?"+BaseHref+"/images/nav/ie/trans.gif?"+BaseHref+"/images/"+menuTheme+"7.png";
	
	

}
*/


// Menu tree:
// MenuX=new Array("ItemText","Link","background image",number of sub elements,height,width,"bgcolor","bghighcolor",
// "fontcolor","fonthighcolor","bordercolor","fontfamily",fontsize,fontbold,fontitalic,"textalign","sta tustext");
// Color and font variables defined in the menu tree take precedence over the global variables
// Fontsize, fontbold and fontitalic are ignored when set to -1.
// For rollover images ItemText or background image format is: "rollover?"+BaseHref+"Image1.jpg?"+BaseHref+"Image2.jpg" 

var mainColor = "";
var mainHeight = 26;
var bkimage = "../images/navbutbk.gif";


Menu1=new Array(rollMenu1,"../index.html",bkimage,0,mainHeight,pxwide1,mainColor,"","","","","",-1,-1,-1,"","Home");	
	
Menu2=new Array(rollMenu2,"../1_about/about.html",bkimage,6,24,pxwide2,mainColor,"","","","","",-1,-1,-1,"","About DOH");
	Menu2_1=new Array("About Joels Place","../1_about/about.html","",0,subheight,subwidth,bgcolorMain,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu2_2=new Array("Mission & Vision","../1_about/mission.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu2_3=new Array("History","../1_about/history.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu2_4=new Array("Staff","../1_about/staff.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu2_5=new Array("Board of Directors","../1_about/board.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu2_6=new Array("JP in the News","../1_about/news.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	
Menu3=new Array(rollMenu3,"../2_support/support.html",bkimage,8,24,pxwide3,mainColor,"","","","","",-1,-1,-1,"","");
	Menu3_1=new Array("Support Joels Place","../2_support/support.html","",0,subheight,subwidth,bgcolorMain,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu3_2=new Array("Newsletter","../2_support/newsletter.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu3_3=new Array("Strategic Plan","../2_support/plan.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu3_4=new Array("Donors List","../2_support/donorslist.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu3_5=new Array("Monthly Sponsor Program","../2_support/monthly.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu3_6=new Array("In-Kind Donations","../2_support/inkind.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu3_7=new Array("Volunteer","../2_support/volunteer.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu3_8=new Array("Make Online Donation","https://register.kidtrax.com/memberportal/Default.aspx?entrycode=HBGAKWW&action=Donate","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	
	
	
Menu4=new Array(rollMenu4,"../3_events/events.html",bkimage,4,24,pxwide4,mainColor,"","","","","",-1,-1,-1,"","");
	Menu4_1=new Array("JP Concerts & Events","../3_events/events.html","",0,subheight,subwidth,bgcolorMain,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu4_2=new Array("Photo Gallery","../3_events/gallery.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu4_3=new Array("For Bands - Policy","../3_events/bands.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu4_4=new Array("Calendar of Events","../3_events/calendar.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	
Menu5=new Array(rollMenu5,"../4_skatepark/sk8park.html",bkimage,6,24,pxwide5,mainColor,"","","","","",-1,-1,-1,"","");
	Menu5_1=new Array("JP Sk8Park","../4_skatepark/sk8park.html","",0,subheight,subwidth,bgcolorMain,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu5_2=new Array("Schedule for Skate/BMX","../4_skatepark/schedule.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu5_3=new Array("Membership","../4_skatepark/membership.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu5_4=new Array("Pics","../4_skatepark/pics.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu5_5=new Array("Sk8Shop","../4_skatepark/sk8shop.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu5_6=new Array("Sk8Park Rules","../4_skatepark/rules.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	
Menu6=new Array(rollMenu6,"../5_parents/parents.html",bkimage,3,24,pxwide6,mainColor,"","","","","",-1,-1,-1,"","");
	Menu6_1=new Array("Info for Parents","../5_parents/parents.html","",0,subheight,subwidth,bgcolorMain,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu6_2=new Array("Rules","../5_parents/rules.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu6_3=new Array("Waiver","../5_parents/waiver.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	
	
Menu7=new Array(rollMenu7,"../6_cafe/cafe.html",bkimage,4,24,pxwide7,mainColor,"","","","","",-1,-1,-1,"","");
	Menu7_1=new Array("Los Ninos Cafe @ JP","../6_cafe/cafe.html","",0,subheight,subwidth,bgcolorMain,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu7_2=new Array("Purpose","../6_cafe/purpose.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu7_3=new Array("Artwork","../6_cafe/artwork.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu7_4=new Array("Food Program","../6_cafe/food.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	
Menu8=new Array(rollMenu8,"../4_skatepark/membership.html",bkimage,0,24,pxwide8,mainColor,"","","","","",-1,-1,-1,"","");

	
/*

Menu8=new Array(rollMenu8,"/thewell/",bkimage,2,24,pxwide8,mainColor,"","","","","",-1,-1,-1,"","");
	Menu8_1=new Array("The Well @ JP","/thewell/","",0,subheight,subwidth,bgcolorMain,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
	Menu8_2=new Array("WellSpring Revival Ministries","/thewell/wellspring.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
		Menu8_2_1=new Array("Coffee & Missions","/wellspring/coffee.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
		Menu8_2_2=new Array("Global Outfitters","/wellspring/globaloutfitters.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
		Menu8_2_3=new Array("Fairbanks Community Foodbank","/wellspring/foodbank.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
		Menu8_2_4=new Array("Presbyterian Hospitality House","/wellspring/phh.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
		Menu8_2_5=new Array("Love INC","/wellspring/loveinc.html","",0,subheight,subwidth,bgcolor,bghighcolor,myfontcolor,fonthighcolor,bordercolor,fontfamily,myfontsize,-1,-1,"","");
		
		*/