
//--- Common
var isHorizontal=1;
var smColumns=1;
var smOrientation=0;
var smViewType=0;
var dmRTL=0;
var pressedItem=-2;
var itemCursor="pointer";
var itemTarget="_self";
var statusString="tip";
var blankImage="blank image filename";

//--- Dimensions
var menuWidth="100%";
var menuHeight="";
var smWidth="";
var smHeight="";

//--- Positioning
var absolutePos=0;
var posX="0px";
var posY="0px";
var topDX=0;
var topDY=0;
var DX=0;
var DY=0;

//--- Font
var fontStyle="bold 12px Arial, Helvetica, sans-serif";
var fontColor=["#FFFFFF","#000000"];
var fontDecoration=["none","none"];
var fontColorDisabled="#AAAAAA";

//--- Appearance
var menuBackColor="#010082";
var menuBackImage="";
var menuBackRepeat="repeat";
var menuBorderColor="#010082";
var menuBorderWidth=0;
var menuBorderStyle="none";

//--- Item Appearance
var itemBackColor=["#010082","#E9B138"];
var itemBackImage=["",""];
var itemBorderWidth=0;
var itemBorderColor=["#E9B138","#E9B138"];
var itemBorderStyle=["none","none"];
var itemSpacing=1;
var itemPadding="3px";
var itemAlignTop="center";
var itemAlign="left";
var subMenuAlign="left";

//--- Icons
var iconTopWidth=24;
var iconTopHeight=24;
var iconWidth=16;
var iconHeight=16;
var arrowWidth=9;
var arrowHeight=9;
var arrowImageMain=["",""];
var arrowImageSub=["",""];

//--- Separators
var separatorImage="";
var separatorWidth="100%";
var separatorHeight="0px";
var separatorAlignment="left";
var separatorVImage="";
var separatorVWidth="0px";
var separatorVHeight="100%";
var separatorPadding="0px";

//--- Floatable Menu
var floatable=0;
var floatIterations=6;
var floatableX=1;
var floatableY=1;

//--- Movable Menu
var movable=0;
var moveWidth=12;
var moveHeight=20;
var moveColor="#AA0000";
var moveImage="";
var moveCursor="default";
var smMovable=0;
var closeBtnW=15;
var closeBtnH=15;
var closeBtn="";

//--- Transitional Effects & Filters
var transparency="100";
var transition=24;
var transOptions="";
var transDuration=300;
var transDuration2=200;
var shadowLen=0;
var shadowColor="#010082";
var shadowTop=0;

//--- CSS Support (CSS-based Menu)
var cssStyle=0;
var cssSubmenu="";
var cssItem=["",""];
var cssItemText=["",""];

//--- Advanced
var dmObjectsCheck=0;
var saveNavigationPath=1;
var showByClick=0;
var noWrap=1;
var pathPrefix_img="";
var pathPrefix_link="";
var smShowPause=200;
var smHidePause=1000;
var smSmartScroll=1;
var smHideOnClick=1;
var dm_writeAll=0;

//--- AJAX-like Technology
var dmAJAX=0;
var dmAJAXCount=0;

//--- Dynamic Menu
var dynamic=0;

//--- Keystrokes Support
var keystrokes=0;
var dm_focus=1;
var dm_actKey=113;

if(admin == 'admin')
{
	var menuItems = [
		["Admin","index.php", , , "Colorado American Legion Baseball Homepage", , , , , ],
			["|Add/Edit Users","index.php?display=admins&Edit=Users", , , , , , , , ],
			["|Add/Edit Divisions","index.php?display=admins&Edit=divisions", , , , , , , , ],
			["|Add/Edit Teams","index.php?display=admins&Edit=teams", , , , , , , , ],
			["|Add/Edit Schedules","index.php?display=admins&Edit=schedules", , , , , , , , ],
			["|Add/Edit Tournaments","index.php?display=admins&Edit=admtournaments", , , , , , , , ],
			["|Add/Edit Calendar Events","http://www.calb.org/calendar/events/index.php", , , , , , , , ],
			["|Send Email","http://www.calb.org/index.php?display=admins&Edit=email", , , , , , , , ],
			["|Create eNews","http://www.calb.org/index.php?display=admins&Edit=eNews", , , , , , , , ],
			["|View Division Coaches","index.php?display=admins&Edit=divisioncoaches", , , , , , , , ],
			["|View Registrations","index.php?display=admins&Edit=admregistrations", , , , , , , , ],
			["|Track Registrations","index.php?display=admins&Edit=tracking", , , , , , , , ],
			["|View Web Statistics","https://www.google.com/accounts/Login?continue=http://www.google.com/&hl=en", , , ,"_blank" , , , , ],
			["|Validate Players","index.php?display=admins&Edit=playervalidation", , , , , , , , ],
			["|Logoff","logoff.php", , , , , , , , ],
			["|Commission","index.php?display=commission", , , , , , , , ],
			["|Contact Us","index.php?display=contactus", , , , , , , , ],
			["|Legion Baseball History","index.php?display=legionbaseballhistory", , , , , , , , ],
			["|What Legion Baseball Offers","index.php?display=legionbaseballoffers", , , , , , , , ],
		["Rules & Regs","index.php?display=rules", , , , , , , , ],
			["|2012 Online Team Registration Guide","http://www.calb.org/pdfs/2012RegistrationGuide.pdf", , , ,"_blank" , , , , ],
			["|National Baseball Rules","http://www.baseball.legion.org/documents/baseball/baseball_rules.pdf", , , ,"_blank" , , , , ],
			["|National Tournament Rules","http://www.baseball.legion.org/documents/baseball/tournament_rules.pdf", , , ,"_blank" , , , , ],
			//["|State Baseball Rules","http://www.calb.org/pdfs/2011StateBaseballRules.pdf", , , ,"_blank" , , , , ],
			["|State Baseball Rules", , , ,"2012 State Rules are Pending" , , , , , ],
			//["|State Tournament Rules","http://www.calb.org/pdfs/StateTourneyRules08.pdf", , , ,"_blank" , , , , ],
			["|State Tournament Rules", , , ,"2012 State Tournament Rules are Pending" , , , , , ],
			["|2012 Age Eligibility Chart","http://www.calb.org/pdfs/2012Baseball_Age_Chart.pdf", , , ,"_blank" , , , , ],
			//["|State Tournament Rules","http://www.calb.org/pdfs/StateTourneyRules08.pdf", , , ,"_blank" , , , , ],
			["|Tiebreakers","index.php?display=tiebreakers", , , , , , , , ],
			//["|NCAA Bat Certification","http://www.mme.wsu.edu/~ssl/certified/certification.html", , , ,"_blank" , , , , ],
			//["|PDF Forms","index.php?display=forms", , , , , , , , ],
			["|Player Form 2","http://www.calb.org/pdfs/2011Form2.pdf", , , ,"_blank" , , , , ],
			["|Patch Order Form","http://www.calb.org/pdfs/Patch_Order_Form.pdf", , , ,"_blank" , , , , ],
		["Schedules/Standings","index.php?display=dspteams", , , , , "-1", , , ],
			["|Team Info & Schedules","index.php?display=dspteams", , , , , , , , ],
			["|Standings","index.php?display=dspstandings", , , , , , , , ],
			["|Field Directions","http://www.baseballfieldsofcolorado.com/maps/index.php", , ,"A listing of baseball fields in Colorado" ,"_blank" , , , , ],
		["Calendar/Special Events","index.php?display=tournaments", , , , , , , , ],
			["|Calendar of Events","index.php?display=ezcalendar", , , , , , , , ],
			["|Post Season Tournaments","index.php?display=tournaments", , , , , , , , ],
			["|Other Legion Sponsored Tournaments","index.php?display=othertournaments", , , , , , , , ],
			["|2012 Tourney Host Application","index.php?display=admins&Edit=tourneyapp", , , , , , , , ],
			//["|National Tournament Rules","http://www.baseball.legion.org/documents/baseball/tournament_rules.pdf", , , ,"_blank" , , , , ],
			//["|State Tournament Rules","http://www.calb.org/pdfs/StateTourneyRules08.pdf", , , ,"_blank" , , , , ],
		["Coaches Office","index.php?display=admins&admintype=Coaches", , ,"Coache's Login" , , , , , ],
			["|National Registration","http://www.baseball.legion.org/baseball", , , ,"_blank" , , , , ],
			//["|NCAA Bat Certification","http://www.mme.wsu.edu/~ssl/certified/certification.html", , , ,"_blank" , , , , ],
			["|Edit Your Profile","index.php?display=admins&Edit=Profile", , , , , , , , ],
			["|CALB Feedback Form","index.php?display=coachsurvey", , , , , , , , ],
			//["|2009 Team Registration","index.php?display=admins&Edit=teamregistration", , , , , , , , ],
			["|2012 Tourney Host Application","index.php?display=admins&Edit=tourneyapp", , , , , , , , ],
			["|2012 Tourney Host Agreement","http://www.calb.org/pdfs/2012TournamentHostAgreement.pdf", , , ,"_blank" , , , , ],
			["|Reschedule A Game","index.php?display=admins&Edit=reschedule", , , , , , , , ],
			["|Add/Edit Game Scores","index.php?display=admins&Edit=scores", , , , , , , , ],
			["|View Coaches By Division","index.php?display=admins&Edit=divisioncoaches", , , , , , , , ],
			["|View Coaches By Name","index.php?display=admins&Edit=Coaches", , , , , , , , ],
			["|Change Password","index.php?display=admins&Edit=changepsw", , , , , , , , ],
			//["|PDF Forms","index.php?display=forms", , , , , , , , ],
			//["|2011 Tourney Host Agreement","http://www.calb.org/pdfs/2011TournamentHostAgreement.pdf", , , ,"_blank" , , , , ],
			["|2011 Scholarship Nomination Form","http://www.baseball.legion.org/documents/baseball/baseball_scholarship.pdf", , , ,"_blank" , , , , ],
			["|Player Form 2","http://www.calb.org/pdfs/2011Form2.pdf", , , ,"_blank" , , , , ],
			["|Patch Order Form","http://www.calb.org/pdfs/Patch_Order_Form.pdf", , , ,"_blank" , , , , ],
			["|Logoff","logoff.php", , , , , , , , ],
		["Umpires Office","index.php?display=umpireForm", , ,"Umpire's Registration Form", , , , , ],
			["|Umpire Registration","index.php?display=umpireForm", , , , , , , , ],
			["|Umpire Nomination Form","http://www.calb.org/pdfs/umpire_nomination.pdf", , , ,"_blank" , , , , ],
			["|Umpire Ejection Form","http://www.calb.org/pdfs/UmpireReport.pdf", , , ,"_blank" , , , , ],
			["|Umpire Manual","http://www.calb.org/pdfs/Umpire_Manual.pdf", , , ,"_blank" , , , , ],
	];
}else if(admin == 'coach')
{
	var menuItems = [
		["Home","index.php", , , "Colorado American Legion Baseball Homepage", , , , , ],
			["|Commission","index.php?display=commission", , , , , , , , ],
			["|Contact Us","index.php?display=contactus", , , , , , , , ],
			["|Legion Baseball History","index.php?display=legionbaseballhistory", , , , , , , , ],
			["|What Legion Baseball Offers","index.php?display=legionbaseballoffers", , , , , , , , ],
		["Rules & Regs","index.php?display=rules", , , , , , , , ],
			["|2012 Online Team Registration Guide","http://www.calb.org/pdfs/2012RegistrationGuide.pdf", , , ,"_blank" , , , , ],
			["|National Baseball Rules","http://www.baseball.legion.org/documents/baseball/baseball_rules.pdf", , , ,"_blank" , , , , ],
			["|National Tournament Rules","http://www.baseball.legion.org/documents/baseball/tournament_rules.pdf", , , ,"_blank" , , , , ],
			//["|State Baseball Rules","http://www.calb.org/pdfs/2011StateBaseballRules.pdf", , , ,"_blank" , , , , ],
			["|State Baseball Rules", , , ,"2012 State Rules are Pending" , , , , , ],
			["|State Tournament Rules", , , ,"2012 State Tournament Rules are Pending" , , , , , ],
			["|2012 Age Eligibility Chart","http://www.calb.org/pdfs/2012Baseball_Age_Chart.pdf", , , ,"_blank" , , , , ],
			//["|State Tournament Rules","index.php?display=tourneyrules", , , , , , , , ],
			["|Tiebreakers","index.php?display=tiebreakers", , , , , , , , ],
			//["|NCAA Bat Certification","http://www.mme.wsu.edu/~ssl/certified/certification.html", , , ,"_blank" , , , , ],
			//["|PDF Forms","index.php?display=forms", , , , , , , , ],
			["|Player Form 2","http://www.calb.org/pdfs/2011Form2.pdf", , , ,"_blank" , , , , ],
			["|Patch Order Form","http://www.calb.org/pdfs/Patch_Order_Form.pdf", , , ,"_blank" , , , , ],
		["Schedules/Standings","index.php?display=dspteams", , , , , "-1", , , ],
			["|Team Info & Schedules","index.php?display=dspteams", , , , , , , , ],
			["|Standings","index.php?display=dspstandings", , , , , , , , ],
			["|Field Directions","http://www.baseballfieldsofcolorado.com/maps/index.php", , ,"A listing of baseball fields in Colorado" ,"_blank" , , , , ],
		["Calendar/Special Events","index.php?display=tournaments", , , , , , , , ],
			["|Calendar of Events","index.php?display=ezcalendar", , , , , , , , ],
			["|Post Season Tournaments","index.php?display=tournaments", , , , , , , , ],
			["|Other Legion Sponsored Tournaments","index.php?display=othertournaments", , , , , , , , ],
			["|2012 Tourney Host Application","index.php?display=admins&Edit=tourneyapp", , , , , , , , ],
			//["|National Tournament Rules","http://www.baseball.legion.org/documents/baseball/tournament_rules.pdf", , , ,"_blank" , , , , ],
			//["|State Tournament Rules","http://www.calb.org/pdfs/StateTourneyRules08.pdf", , , ,"_blank" , , , , ],
		["Coaches Office","index.php?display=admins&admintype=Coaches", , ,"Coache's Login" , , , , , ],
			["|National Registration","http://www.baseball.legion.org/baseball", , , ,"_blank" , , , , ],
			//["|NCAA Bat Certification","http://www.mme.wsu.edu/~ssl/certified/certification.html", , , ,"_blank" , , , , ],
			["|Edit Your Profile","index.php?display=admins&Edit=Profile", , , , , , , , ],
			["|CALB Feedback Form","index.php?display=coachsurvey", , , , , , , , ],
			//["|2009 Team Registration","index.php?display=admins&Edit=teamregistration", , , , , , , , ],
			["|2012 Tourney Host Application","index.php?display=admins&Edit=tourneyapp", , , , , , , , ],
			["|2012 Tourney Host Agreement","http://www.calb.org/pdfs/2012TournamentHostAgreement.pdf", , , ,"_blank" , , , , ],
			["|2011 Scholarship Nomination Form","http://www.baseball.legion.org/documents/baseball/baseball_scholarship.pdf", , , ,"_blank" , , , , ],
			["|Reschedule A Game","index.php?display=admins&Edit=reschedule", , , , , , , , ],
			["|Add/Edit Game Scores","index.php?display=admins&Edit=scores", , , , , , , , ],
			["|View Coaches By Division","index.php?display=admins&Edit=divisioncoaches", , , , , , , , ],
			["|View Coaches By Name","index.php?display=admins&Edit=Coaches", , , , , , , , ],
			["|Change Password","index.php?display=admins&Edit=changepsw", , , , , , , , ],
			//["|PDF Forms","index.php?display=forms", , , , , , , , ],
			//["|2011 Tourney Host Agreement","http://www.calb.org/pdfs/2011TournamentHostAgreement.pdf", , , ,"_blank" , , , , ],
			["|Player Form 2","http://www.calb.org/pdfs/2011Form2.pdf", , , ,"_blank" , , , , ],
			["|Patch Order Form","http://www.calb.org/pdfs/Patch_Order_Form.pdf", , , ,"_blank" , , , , ],
			["|Logoff","logoff.php", , , , , , , , ],
		["Umpires Office","index.php?display=umpireForm", , ,"Umpire's Registration Form", , , , , ],
			["|Umpire Registration","index.php?display=umpireForm", , , , , , , , ],
			["|Umpire Nomination Form","http://www.calb.org/pdfs/umpire_nomination.pdf", , , ,"_blank" , , , , ],
			["|Umpire Ejection Form","http://www.calb.org/pdfs/UmpireReport.pdf", , , ,"_blank" , , , , ],
			["|Umpire Manual","http://www.calb.org/pdfs/Umpire_Manual.pdf", , , ,"_blank" , , , , ],
	];
}else{
	var menuItems = [
		["Home","index.php", , , "Colorado American Legion Baseball Homepage", , , , , ],
			["|Commission","index.php?display=commission", , , , , , , , ],
			["|Contact Us","index.php?display=contactus", , , , , , , , ],
			["|Legion Baseball History","index.php?display=legionbaseballhistory", , , , , , , , ],
			["|What Legion Baseball Offers","index.php?display=legionbaseballoffers", , , , , , , , ],
		["Rules & Regs","index.php?display=rules", , , , , , , , ],
			["|2012 Online Team Registration Guide","http://www.calb.org/pdfs/2012RegistrationGuide.pdf", , , ,"_blank" , , , , ],
			["|National Baseball Rules","http://www.baseball.legion.org/documents/baseball/baseball_rules.pdf", , , ,"_blank" , , , , ],
			["|National Tournament Rules","http://www.baseball.legion.org/documents/baseball/tournament_rules.pdf", , , ,"_blank" , , , , ],
			//["|State Baseball Rules","http://www.calb.org/pdfs/2011StateBaseballRules.pdf", , , ,"_blank" , , , , ],
			["|State Baseball Rules", , , ,"2012 State Rules are Pending"  , , , , , ],
			["|State Tournament Rules", , , ,"2012 State Tournament Rules are Pending" , , , , , ],
			["|2012 Age Eligibility Chart","http://www.calb.org/pdfs/2012Baseball_Age_Chart.pdf", , , ,"_blank" , , , , ],
			//["|State Tournament Rules","index.php?display=tourneyrules", , , , , , , , ],
			["|Tiebreakers","index.php?display=tiebreakers", , , , , , , , ],
			//["|NCAA Bat Certification","http://www.mme.wsu.edu/~ssl/certified/certification.html", , , ,"_blank" , , , , ],
			["|Patch Order Form","http://www.calb.org/pdfs/Patch_Order_Form.pdf", , , ,"_blank" , , , , ],
		["Schedules/Standings","index.php?display=dspteams", , , , , "-1", , , ],
			["|Team Info & Schedules","index.php?display=dspteams", , , , , , , , ],
			["|Standings","index.php?display=dspstandings", , , , , , , , ],
			["|Field Directions","http://www.baseballfieldsofcolorado.com/maps/index.php", , ,"A listing of baseball fields in Colorado" ,"_blank" , , , , ],
		["Calendar/Special Events","index.php?display=tournaments", , , , , , , , ],
			["|Calendar of Events","index.php?display=ezcalendar", , , , , , , , ],
			["|Post Season Tournaments","index.php?display=tournaments", , , , , , , , ],
			["|Other Legion Sponsored Tournaments","index.php?display=othertournaments", , , , , , , , ],
			["|2012 Tourney Host Application","index.php?display=admins&Edit=tourneyapp", , , , , , , , ],
		["Coaches Office","index.php?display=admins&admintype=Coaches", , ,"Coache's Login" , , , , , ],
		["Umpires Office","index.php?display=umpireForm", , ,"Umpire's Registration Form", , , , , ],
			["|Umpire Registration","index.php?display=umpireForm", , , , , , , , ],
			["|Umpire Nomination Form","http://www.calb.org/pdfs/umpire_nomination.pdf", , , ,"_blank" , , , , ],
			["|Umpire Ejection Form","http://www.calb.org/pdfs/UmpireReport.pdf", , , ,"_blank" , , , , ],
			["|Umpire Manual","http://www.calb.org/pdfs/Umpire_Manual.pdf", , , ,"_blank" , , , , ],
	];
}
dm_init();

