/*
 Milonic DHTML Menu
 Written by Andy Woolley
 Copyright 2002 (c) Milonic Solutions. All Rights Reserved.
 Plase vist http://www.milonic.co.uk/menu or e-mail menu3@milonic.com
*/

//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.

/*************************************************************************/
/* the following scripts are used to determine the HTTP_HOST and the security status */
// this function finds if this is http or https
function getFront(testString,searchString){
    foundOffset = testString.indexOf(searchString);
    if (foundOffset == -1)
    {
    return null;
    }
    var secureValue = testString.substring(0,foundOffset);
    if (secureValue == "https:")
    {
    secureValue = "http:";
    } 
    return secureValue;
    //return testString.substring(0,foundOffset);
}

// this pulls everything after the http: or https:
function getEnd(newTestStr,searchString){
    foundOffset = newTestStr.indexOf(searchString);
    if (foundOffset == -1)
    {
    return null;
    }
    return newTestStr.substring(foundOffset+searchString.length,newTestStr.length);
}

// this function finds the garbage left after the domain address
function getCrap(newStr,searchString){
    foundOffset = newStr.indexOf(searchString)-1;
    if (foundOffset == -1)
    {
    return null;
    }
    return newStr.substring(foundOffset+searchString.length,newStr.length);
}

function showDomain(){
    var veryFirstStr = getFront(document.URL,'/') + "//";
    var firstStr = getEnd(document.URL,'//')
    var crapStr = getCrap(firstStr,'/');
    //var replaceStr = ""
    var newDom = veryFirstStr + firstStr.replace(crapStr, "")
    // test to see if the domain name is secure.bai.org
    if (newDom == "http://secure.bai.org")
    {
    newDom = newDom.replace("secure","www")
    } else {
    newDom = newDom
    }
    
    return newDom;
    //alert("Very First: " + veryFirstStr + "\rFirst: " + firstStr + "\rSecond: " + crapStr + "\rThird: " + newDom);
}
/*************************************************************************/

////////////////////////////////////
// Editable properties START here //
////////////////////////////////////
// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
    //effect = "Fade(duration=0.2);Alpha(style=0,opacity=99);Shadow(color='#777777', Direction=135, Strength=5)"
    effect = ""
}
else
{
    //effect = "Shadow(color='#777777', Direction=135, Strength=5)" // Stop IE5.5 bug when using more than one filter
    effect = ""
}


timegap=600             // The time delay for menus to remain visible
followspeed=5           // Follow Scrolling speed
followrate=40           // Follow Scrolling Rate
suboffset_top=6;        // Sub menu offset Top position 
suboffset_left=1;       // Sub menu offset Left position

style1=[                // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"navy",                 // Mouse Off Font Color
"FFFFFF",               // Mouse Off Background Color
"navy",             // Mouse On Font Color
"e4eb9f",               // Mouse On Background Color
"454492",               // Menu Border Color 
10,                     // Font Size in pixels
"normal",               // Font Style (italic or normal)
"bold",                 // Font Weight (bold or normal)
"Verdana, Arial, Helvetica, sans-serif",        // Font Name
2,                      // Menu Item Padding
"/includes/arrow.gif",          // Sub Menu Image (Leave this blank if not needed)
,                       // 3D Border & Separator bar
"66ffff",               // 3D High Color
"000099",               // 3D Low Color
,               // Current Page Item Font Color (leave this blank to disable)
,                   // Current Page Item Background Color (leave this blank to disable)
,           // Top Bar image (Leave this blank to disable)
"ffffff",               // Menu Header Font Color (Leave blank if headers are not needed)
"000099",               // Menu Header Background Color (Leave blank if headers are not needed)
]



addmenu(menu=[      // This is the array that contains your menu properties and details
"mainmenu",         // Menu Name - This is needed in order for the menu to be called
161,                // Menu Top - The Top position of the menu in pixels
2,                  // Menu Left - The Left position of the menu in pixels
,                   // Menu Width - Menus width in pixels
0,                  // Menu Border Width 
,                   // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,             // Properties Array - this is set higher up, as above
1,                  // Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left",             // Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect,             // Filter - Text variable for setting transitional effects on menu activation - see above for more info
,                   // Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1,                  // Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
0,                  // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,                   // Position of TOP sub image left:center:right
,                   // Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,                   // Right To Left - Used in Hebrew for example. (1=on/0=off)
,                   // Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,                   // ID of the div you want to hide on MouseOver (useful for hiding form elements)
,                   // Reserved for future use
,                   // Reserved for future use
,                   // Reserved for future use
//,"HOME","/",,"",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"&nbsp;Home&nbsp;","/",,"",1
,"&nbsp;About&nbsp;Us&nbsp;","/aboutus/",,"",1
,"&nbsp;Industry&nbsp;Adoption&nbsp;Updates&nbsp;","/industryAdoptionUpdates/",,"",1
,"&nbsp;Technical&nbsp;Resources&nbsp;","/TechnicalResources/",,"",1
,"&nbsp;Operational&nbsp;Practices&nbsp;","/operationalPractices/",,"",1
,"&nbsp;Rules&nbsp;&&nbsp;Regulations&nbsp;","/rulesAndRegulations/",,"",1
,"&nbsp;Related&nbsp;Links&nbsp;","/relatedLinks/",,"",1
//,"&nbsp;DAILY&nbsp;RATES&nbsp;","show-menu=dailyrate",showDomain() + "/datatrac/","Daily Rates",1
])

addmenu(menu=["home1",
    ,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
    ,"Interior Page Link",showDomain()+"/interior_page1.asp",,,0
    ,"Item 2",showDomain()+"/item2.asp",,,0
    ,"Item 3",showDomain()+"/item3.asp/",,,0
    //,"What's New at BAI",showDomain()+"/about/whatsnew.asp",,,0
    //,"BAI Log-In","show-menu=account",showDomain() + "/services/DynamicPage.aspx?Webcode=pgMemberArea&site=bai","",0
    //,"Site Map",showDomain()+"/sitemap.asp",,,0
    //,"BAI Home",showDomain()+"/index.asp",,,0
    ])
    
    addmenu(menu=["industryAdoptionUpdates",
    ,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
    ,"Industry Statistics&nbsp;",showDomain()+"/industryadoptionupdates/check_images.asp",,,0
	//,"Item 2",showDomain()+"/item2.asp/",,,0
	//,"Item 1","show-menu=financial",,"",0
    //,"Item 2","show-menu=solutions",,"",0
    ])

    //addmenu(menu=["industryAdoptionUpdates2",
    //,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Item 1a","show-menu=events",,"",0
    //,"Conferences & Seminars",showDomain()+"/events/",,,0
    //,"Item 2a","http://www.bankerstraining.com/?WT.mc_id=BAI_FSTRAINING_BTCCHOME",,,0
    //,"Certification Programs","show-menu=certification",showDomain()+"/certifications/",,0
    //,"Graduate Schools",showDomain()+"/gradschools/",,,0
    //])
    
    //addmenu(menu=["solutions",
    //,,180,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Conferences",showDomain()+"/events/",,,0
    //,"Executive Education",showDomain()+"/gradschools/",,,0
    //,"e-Learning",showDomain()+"/elearning/",,,0
    //,"In-House Training",showDomain()+"/inhouse/",,,0
    //,"Financial Services Industry Training",showDomain()+"/bai-psi/",,,0
    //])
    
    //addmenu(menu=["events",
    //,,160,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Conferences, Seminars & Workshops",showDomain()+"/events/",,,0
    //,"Seminars and Workshops",showDomain()+"/events/",,,0
    //,"Virtual Expos",showDomain()+"/virtualexpo/",,,0
    //])

    //addmenu(menu=["training",
    //,,160,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"e-Learning",showDomain()+"/elearning/",,,0
    //,"Text Training",showDomain()+"/text/",,,0
    //,"In-House Training",showDomain()+"/inhouse/",,,0
    //,"Employee Development",showDomain()+"/ed/",,,0
    //,"BAI Training Library",showDomain()+"/products/matrix.asp?v=o&ct=Business",,,0
    //,"Graduate Schools",showDomain()+"/gradschools/",,,0
    //])

    //addmenu(menu=["certification",
    //,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Certified Risk Professional",showDomain()+"/crp/",,,0
    //,"Certified Bank Auditor",showDomain()+"/cba/",,,0
    //,"Loan Review Certificate Program",showDomain()+"/loanreview/",,,0
    //,"Anti-Money Laundering Professional Certification",showDomain()+"/amlp/",,,0
    //])

    //addmenu(menu=["marketplace",
    //,,140,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Home",showDomain()+"/resource/",,,0
    //,"Administration",showDomain()+"/resource/admin/",,,0
    //,"FAQs",showDomain()+"/resource/faq/",,,0
    //])
    
    //addmenu(menu=["communities",
    //,,160,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Retail Financial Services",showDomain()+"/retailbanking/",,,0
    //,"Operations &amp; Payments",showDomain()+"/operations/",,,0
    //,"Risk Management",showDomain()+"/risk/",,,0
    //,"Payments Strategies",showDomain()+"/bankingstrategies/paymentstrategies/",,,0
    //])
    
    addmenu(menu=["tecConsiderations",
    ,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Research","show-menu=research2",showDomain()+"/research/",,0
    //,"Item 1",showDomain()+"/item1.asp",,,0
    //,"Item 2",showDomain()+"/item2.asp",,,0
    ])
    
    addmenu(menu=["opsPractices",
    ,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Home","/knowledgebank/resource/",,,0
    //,"Banking Strategies  Online","show-menu=bankingstrategies",showDomain()+"/bankingstrategies/about.asp",,0
    ,"Item 1",showDomain()+"/item1.asp",,,0
	,"Item 2",showDomain()+"/item2.asp",,,0
    ])

    //addmenu(menu=["dailyrate",
    //,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Home","/knowledgebank/resource/",,,0
    //,"Daily Rate Information",showDomain()+"/datatrac/index.asp",,"Daily Rates",0
    //])
    
    addmenu(menu=["rulesRegs",
    ,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Home","/knowledgebank/resource/",,,0
    ,"Item 1",showDomain()+"/item1.asp",,"",0
    ])
    
    addmenu(menu=["links",
    ,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Home","/knowledgebank/resource/",,,0
    ,"Item 1",showDomain()+"/item1.asp",,"",0
    //,"Career Center",showDomain()+"/careercenter/",,"",0
    //,"Daily Rate Information",showDomain()+"/datatrac/index.asp",,"Daily Rates",0
    ])
	
	addmenu(menu=["search",
    ,,150,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Home","/knowledgebank/resource/",,,0
    ,"Item 1",showDomain()+"/item1.asp",,"",0
    //,"Career Center",showDomain()+"/careercenter/",,"",0
    //,"Daily Rate Information",showDomain()+"/datatrac/index.asp",,"Daily Rates",0
    ])
    
//  addmenu(menu=["account",
//  ,,140,1,"",style1,,"left",effect,,,,,,,,,,,,
//  ,"Log On",showDomain()+"/login.asp",,,0
//  ,"Update Information",showDomain()+"/subscribers/",,,0
//  ,"Change Password",showDomain()+"/subscribers/change.asp",,,0
//  ,"Privacy Policy",showDomain()+"/privacy.asp",,,0
//  ,"Log Off",showDomain()+"/subscribers/scripts/logout.asp",,,0
//  ])

    //addmenu(menu=["account",
    //,,140,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Log In",showDomain()+"/login.asp",,,0
    //,"Create A BAI Log-In",showDomain()+"/services/DynamicPage.aspx?site=bai&webcode=pgCAS&WT.mc_id=NavBSRNDirectLink",,,0
    //,"Privacy Policy",showDomain()+"/privacy.asp",,,0
    //])

    //addmenu(menu=["bankingstrategies",
    //,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"About Banking Strategies",showDomain()+"/bankingstrategies/about.asp",,,0
    //,"Current Issue",showDomain()+"/bankingstrategies/",,,0
    //,"Past Online Issues","show-menu=bankingstrategies4",,"",0
    //,"Subscribe/Renew","show-menu=bankingstrategies2",,"",0
    //,"Advertising/Media","show-menu=bankingstrategies3",,"",0
    //])

    //addmenu(menu=["bankingstrategies2",
    //,,180,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Financial Services Executives","http://www.submag.com/sub/ba",,,0
    //,"Financial Services Executives","/renewal/",,,0
    //,"Other Subscribers and Subscriptions Outside the U.S.",showDomain()+"/bankingstrategies/ss_subscribe.asp",,,0
    //])

    //addmenu(menu=["bankingstrategies3",
    //,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"About Banking Strategies",showDomain()+"/bankingstrategies/about.asp",,,0
    //,"Advertising/Media",showDomain()+"/bankingstrategies/mediakit/",,,0
    //,"Place an Advertisement",showDomain()+"/bankingstrategies/ad_info.asp",,,0
    //,"Readership Highlights",showDomain()+"/bankingstrategies/highlights/",,,0
    //,"Directory of Advertisers",showDomain()+"/bankingstrategies/advertisers.asp",,,0
    //,"Request Media Kit",showDomain()+"/bankingstrategies/mediakit/request.asp",,,0
    //,"Preview of Upcoming Issue",showDomain()+"/bankingstrategies/mediakit/preview.asp",,,0
    //,"Editorial Calendar",showDomain()+"/bankingstrategies/mediakit/calendar.asp",,,0
    //,"Rate Card",showDomain()+"/bankingstrategies/mediakit/ratecard.asp",,,0
    //,"Production Information",showDomain()+"/bankingstrategies/mediakit/production.asp",,,0
    //,"Insert Guidelines",showDomain()+"/bankingstrategies/mediakit/guidelines.asp",,,0
    //,"BPA Statement PDF",showDomain()+"/pdf/BS_BPA.pdf",,,0
    //])
    
    //addmenu(menu=["bankingstrategies4",
    //,,130,1,"",style1,,"left",effect,,,,,,,,,,,,
    //,"Article Archives",showDomain()+"/bankingstrategies/archive/",,,0
    //,"Past Issues",showDomain()+"/bankingstrategies/past_issues.asp",,,0
    //])

    //addmenu(menu=["research",
    //,,140,1,"",style1,,"",effect,,,,,,,,,,,,
    //,"BAI Research", "show-menu=research2",showDomain()+"/research/",,0
    //,"Benchmarking",showDomain()+"/research/bench.asp",,,0
    //,"Survey Services",showDomain()+"/survey/",,,0
    //])
    
    //addmenu(menu=["research2",
    //,,160,1,"",style1,,"",effect,,,,,,,,,,,,
    //,"About BAI Research",showDomain()+"/research/about.asp",,,0
    //,"Recent Studies",showDomain()+"/research/completed.asp",,,0
    //,"Listing of Completed Research",showDomain()+"/research/completed.asp",,,0
    //,"Projects in Process",showDomain()+"/research/process.asp",,,0
    //,"Corporate Sponsorship Opportunities",showDomain()+"/research/corporate.asp",,,0
    //,"White Papers",showDomain()+"/whitepapers/",,,0
    //])
    
dumpmenus()