/*
Filename: pulldown_menus.js
Desc:     Pulldown menu definitions for GA CASA
Author:   Relevant Arts Enterprise, Inc. <http://www.relevantarts.com/>
          John A. Lock <jlock@relevantarts.com>
Created:  2010-Feb-04
Modified: 
*/

fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;

// If there is more than one slash in the pathname (because we're below the root directory),
// precede all relative URLs with a slash.
if (window.location.href.lastIndexOf("/") > 0) {
	var RootSlash = "/";
}
else {
	var RootSlash = "";
}

// If we're under SSL, most links need to be reverted to normal "http:"
if (window.location.protocol == "https:") {
	var NonSSL = "http://www.gacasa.org";
}
else {
	var NonSSL = "";
}

// Add a slash to the NonSSL value if we're at the root directory
if (!RootSlash) {
	var NonSSL = NonSSL + "/";
}

var Prefix = NonSSL + RootSlash;

with(menuStyle=new mm_style()){
bordercolor="#000000";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana,Arial,Helvetica,sans-serif";
fontsize="1em";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#cc0000";
offcolor="#ffffff";
onbgcolor="#ffffff";
oncolor="#cc0000";
//outfilter="randomdissolve(duration=0.3)";
//overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";
padding=4;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#000000";
separatorsize=1;
subimage="img/arrow.gif";
subimagepadding=2;
}

/*
Menu definitions start here.  Don't modify anything above this line unless you know what you're doing!
======================================================================================================
*/

with(milonic=new menuname("about_menu")){
style=menuStyle;
aI("text=our mission;url=mission.php;");
aI("text=our programs;url=programs.php;showmenu=program_menu;");
aI("text=success stories;url=success_stories.php;");
aI("text=staff;url=staff.php;");
aI("text=board;url=board.php;");
}

with(milonic=new menuname("involved_menu")){
style=menuStyle;
aI("text=volunteer;url=volunteer.php;showmenu=volunteer_menu;");
aI("text=program directory;url=program_directory.php;");
aI("text=program development;url=program_development.php;");
aI("text=employment;url=employment.php;");
}

with(milonic=new menuname("news_menu")){
style=menuStyle;
aI("text=major events;url=events.php;");
aI("text=event calendar;url=calendar.php;");
aI("text=publications;url=publications.php;showmenu=publications_menu");
aI("text=email updates;url=email_updates.php;");
aI("text=statistics;url=statistics.php;");
aI("text=volunteer reference;url=volunteer_reference.php;");
aI("text=press kit;url=press_kit.php;");
aI("text=links;url=links.php;");
}

with(milonic=new menuname("donate_menu")){
style=menuStyle;
aI("text=donate online;url=https://www.gacasa.org/donation_form.php;");
aI("text=donate by mail (pdf);url=docs/Donation%20Mail-in%20Form.pdf;");
}

with(milonic=new menuname("program_menu")){
style=menuStyle;
aI("text=program directory;url=program_directory.php;");
}

with(milonic=new menuname("volunteer_menu")){
style=menuStyle;
aI("text=training info.;url=training_info.php;");
aI("text=program training;url=program_training.php;");
aI("text=volunteer inquiry form;url=volunteer_form.php;");
}

with(milonic=new menuname("publications_menu")){
style=menuStyle;
aI("text=annual reports;url=annual_reports.php;");
aI("text=newsletters;url=newsletters.php;");
}

drawMenus();
