/***********************************************************************************
*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
*	For info write to menus@burmees.nl		          *
*	You may remove all comments for faster loading	          *		
***********************************************************************************/

	var NoOffFirstLineMenus=1;			// Number of first level items
	var LowBgColor='#A95027';			// Background color when mouse is not over
	var LowSubBgColor='#A95027';			// Background color when mouse is not over on subs
	var HighBgColor='#A95027';			// Background color when mouse is over
	var HighSubBgColor='#A95027';			// Background color when mouse is over on subs
	var FontLowColor='#FFFFFF';			// Font color when mouse is not over
	var FontSubLowColor='#FFFFFF';			// Font color subs when mouse is not over
	var FontHighColor='#FFFFFF';			// Font color when mouse is over
	var FontSubHighColor='#FFFFFF';			// Font color subs when mouse is over
	var BorderColor='#B88351';			// Border color
	var BorderSubColor='#B88351';			// Border color for subs
	var BorderWidth=1;				// Border width
	var BorderBtwnElmnts=1;				// Border between elements 1 or 0
	var FontFamily="Arial"				// Font family menu items
	var FontSize=10;				// Font size menu items
	var FontBold=0;					// 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='center';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';			// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=.2;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=.2;			// vertical overlap child/ parent
	var StartTop=14;				// Menu offset x coordinate
	var StartLeft=0;				// Menu offset y coordinate
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=15;				// Left padding
	var TopPaddng=3;				// Top padding
	var FirstLineHorizontal=1;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
	var DissapearDelay=1000;			// delay before menu folds in
	var TakeOverBgColor=1;				// Menu frame takes over background color subitem frame
	var FirstLineFrame='navig';			// Frame where first level appears
	var SecLineFrame='space';			// Frame where sub levels appear
	var DocTargetFrame='space';			// Frame where target documents appear
	var TargetLoc='';				// span id for relative positioning
	var HideTop=0;					// Hide first level when loading new document 1 or 0
	var MenuWrap=0;					// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;				// Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;				// menu tree checking on or off 1 or 0
	var ShowArrow=0;				// Uses arrow gifs when 1
	var KeepHilite=1;				// Keep selected path highligthed
	var Underline=0;
	var Arrws=['hvmenu_tri.gif',0,0,'hvmenu_tridown.gif',0,0,'hvmenu_trileft.gif',0,0];	// Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}


var Menu1, Menu2, Menu3, Menu4, Menu5, Menu6;


function createMenus( root_path, account_type )
{
    //  Menu tree
    //	MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
    //	For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"

    if ( account_type == 'none' )
    {
	NoOffFirstLineMenus = 6;
	
	Menu1=new Array( "Home", root_path+"features/content_page/index.cfm", root_path+"images/nav_back.gif", 0, 23, 65 );
	Menu2=new Array( "About The Club", "", root_path+"images/nav_back.gif", 2, 23, 120 );
		Menu2_1=new Array( "About The Club", root_path+"features/content_page/index.cfm?page=about_the_club", "", 0, 22, 150 );
		Menu2_2=new Array( "Video Tour", root_path+"features/content_page/index.cfm?page=video_tour", "", 0 );	
	Menu3=new Array( "Amenities", "", root_path+"images/nav_back.gif", 5, 23, 88 );
		Menu3_1=new Array( "Golf", "", "", 19, 22, 90 );
			Menu3_1_1=new Array( "Staff", root_path+"features/content_page/index.cfm?page=golf_staff", "", 0, 22, 90 );
			Menu3_1_2=new Array( "Hole 1", root_path+"features/content_page/index.cfm?page=hole_1", "", 0 );
			Menu3_1_3=new Array( "Hole 2", root_path+"features/content_page/index.cfm?page=hole_2", "", 0 );
			Menu3_1_4=new Array( "Hole 3", root_path+"features/content_page/index.cfm?page=hole_3", "", 0 );
			Menu3_1_5=new Array( "Hole 4", root_path+"features/content_page/index.cfm?page=hole_4", "", 0 );
			Menu3_1_6=new Array( "Hole 5", root_path+"features/content_page/index.cfm?page=hole_5", "", 0 );
			Menu3_1_7=new Array( "Hole 6", root_path+"features/content_page/index.cfm?page=hole_6", "", 0 );
			Menu3_1_8=new Array( "Hole 7", root_path+"features/content_page/index.cfm?page=hole_7", "", 0 );
			Menu3_1_9=new Array( "Hole 8", root_path+"features/content_page/index.cfm?page=hole_8", "", 0 );
			Menu3_1_10=new Array( "Hole 9", root_path+"features/content_page/index.cfm?page=hole_9", "", 0 );
			Menu3_1_11=new Array( "Hole 10", root_path+"features/content_page/index.cfm?page=hole_10", "", 0 );
			Menu3_1_12=new Array( "Hole 11", root_path+"features/content_page/index.cfm?page=hole_11", "", 0 );
			Menu3_1_13=new Array( "Hole 12", root_path+"features/content_page/index.cfm?page=hole_12", "", 0 );
			Menu3_1_14=new Array( "Hole 13", root_path+"features/content_page/index.cfm?page=hole_13", "", 0 );
			Menu3_1_15=new Array( "Hole 14", root_path+"features/content_page/index.cfm?page=hole_14", "", 0 );
			Menu3_1_16=new Array( "Hole 15", root_path+"features/content_page/index.cfm?page=hole_15", "", 0 );
			Menu3_1_17=new Array( "Hole 16", root_path+"features/content_page/index.cfm?page=hole_16", "", 0 );
			Menu3_1_18=new Array( "Hole 17", root_path+"features/content_page/index.cfm?page=hole_17", "", 0 );
			Menu3_1_19=new Array( "Hole 18", root_path+"features/content_page/index.cfm?page=hole_18", "", 0 );
		Menu3_2=new Array( "Tennis", root_path+"features/content_page/index.cfm?page=tennis", root_path+"imags/nav_back.gif", 0);
		Menu3_3=new Array( "Fitness", "", root_path+"imags/nav_back.gif", 2, 22, 90);
			Menu3_3_1=new Array( "Staff", root_path+"features/content_page/index.cfm?page=fitness_staff", "", 0, 22, 90);
			Menu3_3_2=new Array( "Services", root_path+"features/content_page/index.cfm?page=services", "", 0);
		Menu3_4=new Array( "Social", root_path+"features/content_page/index.cfm?page=social", "", 0, 22, 90);
		Menu3_5=new Array( "Dining", root_path+"features/content_page/index.cfm?page=dining", "", 0, 22, 90);
	Menu4=new Array( "Membership", root_path+"features/content_page/index.cfm?page=membership", root_path+"images/nav_back.gif", 0, 23, 102 );
	Menu5=new Array( "Catering", "", root_path+"images/nav_back.gif", 2, 23, 80 );
		Menu5_1=new Array( "Parties & Weddings", "", "", 4, 22, 150 );
			Menu5_1_1=new Array( "Facilities Available", root_path+"features/content_page/index.cfm?page=facilities_available", "", 0, 22, 200 );
			Menu5_1_2=new Array( "Menus", root_path+"features/pdf_documents/index.cfm?page=menus", "", 0 );
			Menu5_1_3=new Array( "Entertainment", root_path+"features/content_page/index.cfm?page=entertainment", "", 0 );
			Menu5_1_4=new Array( "Theme D" + unescape('%E9') + "cor", root_path+"features/content_page/index.cfm?page=theme_decor", "", 0 );
		Menu5_2=new Array( "Business Meetings", root_path+"features/content_page/index.cfm?page=business_meetings", "", 0, 22, 200 );
	Menu6=new Array( "Guest Information", root_path+"features/content_page/index.cfm?page=guest_information", root_path+"images/nav_back.gif", 0, 23, 132 );

    }


    // adjusts the menu position to check for resizing
//    adjustStartingLeftPos( account_type );
}


function adjustStartingLeftPos( account_type )
{
    if (document.layers)
    {
       browseWidth=window.outerWidth;
       browseHeight=window.outerHeight;
    }

    if (document.all)
    {
       browseWidth=document.body.clientWidth;
       browseHeight=document.body.clientHeight;
    }

    if ( browseWidth < 760 )
    {
	MenuCentered='left';
    }
}
