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=500;
_subOffsetLeft=-2;

// START STYLES
with(mainStyle=new mm_style()){
/*bordercolor="#ffffff";
borderstyle="solid";
borderwidth=0;*/
//keepalive=1;
fontfamily="Arial, Verdana, Helvetica, sans-serif";
fontsize="11px";
fontstyle="normal";
fontweight="bold";
headerbgcolor="#e2e4e7";
headercolor="#0066cc";
//offbgcolor="#cc9966";
offbgcolor="#e2e4e7";
//offcolor="#ffffff";
offcolor="#333333";
//onbgcolor="#ffcc66";
onbgcolor="#e2e4e7";
//oncolor="#ffffff";
oncolor="#0066ff";
//outfilter="randomdissolve(duration=0.3)";
//overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
//overfilter="Shadow(color=#777777', Direction=135, Strength=3)";
padding=6;
/*pagebgcolor="#82B6D7";
pagecolor="black";*/
separatorcolor="#ffcc66";
separatorsize=1;
/*subimage="/images/arrow.gif";
subimagepadding=2;*/
}

with(subStyle=new mm_style()){
/*bordercolor="#ffffff";
borderstyle="solid";
borderwidth=1;*/
valign="top";
//align="left";
//keepalive=1;
fontfamily="Arial, Verdana, Helvetica, sans-serif";
fontsize="11px";
fontstyle="normal";
fontweight="bold";
headerbgcolor="#ffffff";
headercolor="#6699cc";
//offbgcolor="#cc9966";
offbgcolor="#ffffff";
//offcolor="#cc9966";
offcolor="#666666";
onbgcolor="#ffffff";
//oncolor="#ff6600";
oncolor="#6699cc";
//outfilter="randomdissolve(duration=0.3)";
//overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
overfilter="Shadow(color=#cccccc', Direction=135, Strength=3)";
padding=6;
/*pagebgcolor="#82B6D7";
pagecolor="black";*/
separatorcolor="#cccccc";
separatorsize=1;
//subimage="/images/arrow.gif";
subimagepadding=2;
}

// END STYLES

//main menu
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
position="relative";
orientation="horizontal";
style=mainStyle;
    if (document.URL.indexOf('/events/index.aspx') != -1)
    {
        aI("type=header;text=EVENTS HOME;url=/events/index.aspx;");
    }
    else
    {
        aI("text=EVENTS HOME;url=/events/index.aspx;");
    }
    if (document.URL.indexOf('conferences') != -1)
    {
        aI("type=header;text=CONFERENCES;url=/events/conferences/index.aspx?et=Conferences;");
    }
    else
    {
        aI("text=CONFERENCES;url=/events/conferences/index.aspx?et=Conferences;");
    }
    
    /* Removed on 08/19/2009
    if (document.URL.indexOf('seminars') != -1)
    {
        aI("type=header;text=SEMINARS;url=/events/seminars/?et=Seminars;");
    }
    else
    {
        //aI("text=SEMINARS;url=/events/seminars/?et=Seminars;");
    }
    */
    
    if (document.URL.indexOf('gradschools') != -1)
    {
        aI("type=header;showmenu=gradschools;text=GRADUATE SCHOOLS;url=/gradschools/;");
    }
    else
    {
        aI("showmenu=gradschools;text=GRADUATE SCHOOLS;url=/gradschools/;");
    }
    if (document.URL.indexOf('webinars') != -1)
    {
        aI("type=header;text=WEBINARS;url=/events/webinars/?et=Webinars;");
    }
    else
    {
        aI("text=WEBINARS;url=/events/webinars/?et=Webinars;");
    }
    if (document.URL.indexOf('webcasts') != -1)
    {
        aI("type=header;text=WEBCASTS;url=/events/webcasts/?et=Webcasts;");
    }
    else
    {
        aI("text=WEBCASTS;url=/events/webcasts/?et=Webcasts;");
    }
    // if (document.URL.indexOf('certifications') != -1 || document.URL.indexOf('/services/') != -1)
    // {
       // aI("type=header;showmenu=certification;text=CERTIFICATIONS;url=/certifications/index.asp;");
    // }
    // else
    // {
        // aI("showmenu=certification;text=CERTIFICATIONS;url=/certifications/index.asp;");
    //}
    if (document.URL.indexOf('virtualexpos') != -1) {
        aI("type=header;text=WORKSHOPS;url=/workshops/;");
    }
    else {
        aI("text=WORKSHOPS;url=/workshops/;");
    }
    if (document.URL.indexOf('proposal') != -1)
    {
        aI("type=header;text=SPEAKING PROPOSALS;url=/events/proposal.aspx;");
    }
    else
    {
        aI("text=SPEAKING PROPOSALS;url=/events/proposal.aspx;");
    }
}

/*with(milonic=new menuname("gradschools")){
if (document.URL.indexOf('/gradschools') != -1)
{
    alwaysvisible=1;
}
else
{
    alwaysvisible=0;
}
orientation="horizontal";
style=subStyle;
screenposition="center";
left="offset=76";
if (document.URL.indexOf('registration.asp') != -1)
{
    aI("type=header;align=left;text=Register;url=/gradschools/registration.asp;");
}
else
{
    aI("align=left;text=Register;url=/gradschools/registration.asp;");
}
if (document.URL.indexOf('campus_info.asp') != -1)
{
    aI("type=header;align=left;text=Campus Info;url=/gradschools/campus_info.asp;");
}
else
{
    aI("align=left;text=Campus Info;url=/gradschools/campus_info.asp;");
}
if (document.URL.indexOf('/hotel/') != -1)
{
    aI("type=header;align=left;text=Hotel;url=/gradschools/hotel/index.asp;");
}
else
{
    aI("align=left;text=Hotel;url=/gradschools/hotel/index.asp;");
}
if (document.URL.indexOf('operations.asp') != -1)
{
    aI("type=header;align=left;text=Operations and Payments;url=/gradschools/operations.asp;");
}
else
{
    aI("align=left;text=Operations and Payments;url=/gradschools/operations.asp;");
}
if (document.URL.indexOf('retail.asp') != -1)
{
    aI("type=header;align=left;text=Retail Banking;url=/gradschools/retail.asp;");
}
else
{
    aI("align=left;text=Retail Banking;url=/gradschools/retail.asp;");
}
}
*/

/* with(milonic=new menuname("certification")){
if (document.URL.indexOf('/certification') != -1 || document.URL.indexOf('/services/') != -1)
{
    alwaysvisible=1;
}
else
{
    alwaysvisible=0;
}
orientation="horizontal";
style=subStyle;
screenposition="center";
left="offset=32";
if (document.URL.indexOf('/certifications_crp/') != -1)
{
    aI("type=header;align=center;text=Certified Risk Professional&reg;;url=/certifications_crp/index.asp;");
}
else
{
    aI("align=center;text=Certified Risk Professional&reg;;url=/certifications_crp/index.asp;");
}
if (document.URL.indexOf('/certifications_cba/') != -1)
{
    aI("type=header;align=center;text=Certified Bank Auditor&reg;;url=/certifications_cba/index.asp;");
}
else
{
    aI("align=center;text=Certified Bank Auditor&reg;;url=/certifications_cba/index.asp;");
}
if (document.URL.indexOf('/certifications_amlp/') != -1)
{
    aI("type=header;align=center;text=Certified Anti-Money Laundering&reg;;url=/certifications_amlp/index.asp;");
}
else
{
    aI("align=center;text=Certified Anti-Money Laundering&reg;;url=/certifications_amlp/index.asp;");
}
if (document.URL.indexOf('/certifications_loanreview/') != -1)
{
    aI("type=header;align=center;text=Loan Review Certificate Program;url=/certifications_loanreview/index.asp;");
}
else
{
    aI("align=center;text=Loan Review Certificate Program;url=/certifications_loanreview/index.asp;");
} 
} */

drawMenus();
