/*
Filename: pulldown_menus.js
Desc:     Pulldown menu definitions for CNPA
Author:   Relevant Arts Enterprise, Inc. <http://www.relevantarts.com/>
          John A. Lock <jlock@relevantarts.com>
Created:  2007-Feb-18
Modified: 2008-Jan-31 - Menus anchored to id tags on links for placement
*/

fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=150;
_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.cnpa.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(DefaultStyle=new mm_style()){
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#575959";
offcolor="#FFFFFF";
onbgcolor="#000000";
oncolor="#FFFFFF";
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana,Arial,Helvetica";
fontsize="12";
fontstyle="normal";
padding=2;
//overfilter="Alpha(opacity=75)";
//outfilter="randomdissolve(duration=0.3)";
//pagebgcolor="#82B6D7";
//pagecolor="black";
separatorcolor="#FFFFFF";
separatorsize=1;
subimage=RootSlash+"img/arrow.gif";
subimagepadding=2;
}

with(milonic=new menuname("membership_menu")){
style=DefaultStyle;
aI("text=Benefits & Activities;url="+Prefix+"membership.php;");
aI("text=Printable Brochure;url="+Prefix+"docs/CNPA_Brochure 2010-Web.pdf;target=NewWin");
aI("text=Board of Governors and Staff;url="+Prefix+"board.php;");
aI("text=Organization Bylaws;url="+Prefix+"docs/CNPA-BYLAWS-rev11-08.pdf;target=NewWin");
aI("text=Promotional Video;url="+Prefix+"cnpa_promo.html");
aI("text=<strong>Renewals</strong>;url=https://www.cnpa.org/membership/profile.php?renewal_proc=renewal;");
aI("text=<strong>Join CNPA</strong>;url="+Prefix+"join.php;");
aI("text=Member's Area;url=https://www.cnpa.org/membership/login.php;");
}

with(milonic=new menuname("regions_menu")){
style=DefaultStyle;
aI("text=Map and Contacts;url="+Prefix+"regions.html;");
aI("text=Asheville Website;url=http://www.cnpa-asheville.org/;target=NewWin");
aI("text=Charleston Website;url=http://www.cnpa-charleston.org/;target=NewWin");
aI("text=Charlotte Website;url=http://www.cnpa-charlotte.org/;target=NewWin");
aI("text=Foothills Website;url=http://www.cnpa-foothills.org/;target=NewWin");
aI("text=Midlands Website;url=http://www.cnpa-midlands.org/;target=NewWin");
aI("text=Myrtle Beach Website;url=http://www.cnpa-myrtlebeach.org/;target=NewWin");
aI("text=Outer Banks Website;url=http://www.cnpa-outerbanks.org/;target=NewWin");
aI("text=Triad Website;url=http://www.cnpa-triad.org/;target=NewWin");
aI("text=Triangle Website;url=http://www.cnpa-triangle.org/;target=NewWin");
aI("text=Upstate Website;url=http://www.cnpa-upstate.org/;target=NewWin");
}

with(milonic=new menuname("gallery_menu")){
style=DefaultStyle;
aI("text=Members' Galleries;url="+Prefix+"mem_gallery.php;showmenu=type_menu;");
aI("text=Members' Choice Winners;url="+Prefix+"mem_choice.html;showmenu=mem_choice_menu;");
aI("text=Mid-year Outings;showmenu=midyear_gallery_menu;");
aI("text=2008 Audubon Contest;url="+Prefix+"img/photos/Audubon2008/;");
aI("text=2007 Audubon Contest;url="+Prefix+"img/photos/Audubon2007/;");
}

with(milonic=new menuname("type_menu")){
style=DefaultStyle;
aI("text=By Name;url="+Prefix+"show_gallery.php?order=name;");
aI("text=By Category;url="+Prefix+"show_gallery.php?order=category;");
}

with(milonic=new menuname("mem_choice_menu")){
style=DefaultStyle;
aI("text=2009 Winners;url="+Prefix+"img/photos/MC2009/;");
aI("text=2008 Winners;url="+Prefix+"img/photos/MC2008/;");
aI("text=2007 Winners;url="+Prefix+"img/photos/MC2007/;");
aI("text=2006 Winners;url="+Prefix+"img/photos/MC2006/;");
aI("text=2005 Winners;url="+Prefix+"img/photos/MC2005/;");
aI("text=2004 Winners;url="+Prefix+"img/photos/MC2004/;");
}

with(milonic=new menuname("midyear_gallery_menu")){
style=DefaultStyle;
aI("text=2010 Asheville;url=https://www.cnpa.org/img/photos/outings/2010_Asheville/;");
aI("text=2009 Outer Banks;url="+Prefix+"img/photos/outings/OBX2009/;");
aI("text=2007 Outer Banks;url="+Prefix+"img/photos/outings/OBX2007/;");
}

with(milonic=new menuname("calendar_menu")){
style=DefaultStyle;
aI("text=CNPA Combined Calendar;url="+Prefix+"cnpacal/?cal_id=0;");
aI("text=Asheville Regional Events;url="+Prefix+"cnpacal/?cal_id=24;");
aI("text=Charleston Regional Events;url="+Prefix+"cnpacal/?cal_id=25;");
aI("text=Charlotte Regional Events;url="+Prefix+"cnpacal/?cal_id=26;");
aI("text=Foothills Regional Events;url="+Prefix+"cnpacal/?cal_id=86;");
aI("text=Midlands Regional Events;url="+Prefix+"cnpacal/?cal_id=27;");
aI("text=Myrtle Beach Regional Events;url="+Prefix+"cnpacal/?cal_id=87;");
aI("text=Outer Banks Regional Events;url="+Prefix+"cnpacal/?cal_id=88;");
aI("text=Triad Regional Events;url="+Prefix+"cnpacal/?cal_id=89;");
aI("text=Triangle Regional Events;url="+Prefix+"cnpacal/?cal_id=90;");
aI("text=Upstate Regional Events;url="+Prefix+"cnpacal/?cal_id=91;");
}

with(milonic=new menuname("events_menu")){
style=DefaultStyle;
aI("text=Annual Meeting;url="+Prefix+"annualmeet.html;");
aI("text=Photography Weekends;url="+Prefix+"midyearout.html;");
aI("text=Other CNPA Events;url="+Prefix+"other_events.html;");
aI("text=Workshops;url="+Prefix+"workshops.php;");
aI("text=Projects/Exhibitions;url="+Prefix+"projects.php;");
aI("text=Contests;url="+Prefix+"contests.html;");
aI("text=Announcements;url="+Prefix+"announce.html;");
aI("text=CNPA Student Program;url="+Prefix+"student_program.php;");
}

with(milonic=new menuname("newsletter_menu")){
left=-36;
style=DefaultStyle;
aI("text=Overview;url="+Prefix+"newsletter.html;");
aI("text=Sample Newsletter;url="+Prefix+"docs/newsletter_sample.pdf;target=NewWin");
aI("text=Back Issues;url="+Prefix+"newsletter_archive.php;");
aI("text=Submitting Articles;url="+Prefix+"newsletter_submissions.php;");
}

drawMenus();
