<!--
// Warning: Do not use the <BODY onload=...> as this overrides the window.onload
// method used below.

// Define the webMenuYOffset which is dependent on the type of computer.  For more
// information, see the browser compatibility JavaScript.  Get the vertical sizes
// from the web page definitions.
var webHeadingYSize = new Number(250);
var webMenuEdgeYSize = new Number(3);
var webMenuBodyYSize = new Number(17);
var webMenuYOffset = new Number();
webMenuYOffset = webHeadingYSize + webMenuEdgeYSize +
                 (webMenuBodyYSize - 2) * bcWebMenuYAdjust;

//
// Define the webMenuXOffset which is dependent on the type of computer.  For more
// information, see the browser compatibility JavaScript.  Get the vertical sizes
// from the web page definitions.
//
// Note that the x sizes are not used to position the web menu when the menu is
// horizonal.  The horizontal offset is a constant.
var webHeadingXSize = new Number(20);
var webMenuEdgeXSize = new Number(0);
var webMenuBodyXSize = new Number(60);
var webMenuXOffset = new Number();
webMenuXOffset = 20 + bcXIndent;

// Define some basic menu styles.  Note that these use cascading style sheets (CSS).
//
// WebStyle(width, height, itemSpace, borderSpace, menuIndicator, indicatorSpace,
//          mouseOutBackground, mouseOutCSS,
//          mouseOverBackground, mouseOverCSS, borderCSS)

var horizontal = new WebStyle(webMenuBodyXSize, webMenuBodyYSize, 20, 0, null, 0, 
                              '#BD0000', 'itemText',
                              'black', 'itemText', null);
var vertical =   new WebStyle(webMenuBodyXSize, webMenuBodyYSize, 0, 1, '*', -8,
                              '#BD0000', 'itemText',
                              'black', 'itemOver', 'itemBorder');
//var vertical =   new WebStyle(webMenuBodyXSize, webMenuBodyYSize, 0, 1, '&gt;', -8,
//                              '#BD0000', 'itemText',
//                              'black', 'itemOver', 'itemBorder');
var v1 =         new WebStyle(webMenuBodyXSize, webMenuBodyYSize, 5, 0, null, 0,
                              '#999999', 'itemText',
                              '#669999', 'itemText', null);
var vFancy =     new WebStyle(webMenuBodyXSize, webMenuBodyYSize, 0, 1, '&raquo;', -6,
                              '#666699', 'fancyText',
                              '#333366', 'fancyOver', 'fancyBorder');

//
// Define the menu.  Note that the variable name needs to passed in as the first parameter.
//
// WebMenu(name)
var CSMenu = new WebMenu('CSMenu');

//
// Add submenus and items.  The first 'addSubmenu' is the first submenu shown.  Match the
// 'addItem.parentSubmenuName' and 'addSubmenu.name' fields to make a relation.  Match
// 'addItem.name' and 'addSubmenu.name' fields to create a further submenu from a
// submenu item.
//
// The offset is from the lower right pixel of the parent menu item.
//
// addSubmenu(name, xOffset, yOffset, isVertical, defaultStyle);
// addItem(body, help, link, newWindow, style, width, name, parentSubmenuName)

with (CSMenu) {
  addSubmenu('main', webMenuXOffset, webMenuYOffset, false, horizontal);

  addItem('&nbsp;Programs', null, null, null, null, 60, 'programs', 'main');
    addSubmenu('programs', -55, -2, true, vertical);
    addItem('&nbsp;Cheerleading', null, 'CSC_Schedule.htm', false, null, 90, null, 'programs');
    addItem('&nbsp;Drop-In Gym', null, 'CS_Dropin.htm', false, null, 90, null, 'programs');
    addItem('&nbsp;Gymnastics', null, 'CSG_Schedule.htm', false, null, 90, null, 'programs');
    addItem('&nbsp;Parties', 'Birthday and Special Event Bookings', 'CS_Parties.htm', false, null, 90, null, 'programs');
//    addItem('&nbsp;Yoga', null, 'CS_Yoga.htm', false, null, 90, null, 'programs');

  addItem('&nbsp;Schedule', null, null, null, null, 60, 'sched', 'main');
    addSubmenu('sched', -55, -2, true, vertical);
    addItem('&nbsp;Gym Closures', null, 'CS_Schedule.htm', false, null, 90, null, 'sched');
    addItem('&nbsp;Themes', 'Weekly Recreational Themes', 'CS_Themes.htm', false, null, 90, null, 'sched');

  addItem('&nbsp;Camps', null, null, null, null, 50, 'camps', 'main');
      addSubmenu('camps', -45, -2, true, vertical);
//      addItem('&nbsp;Competitive', null, null, null, null, 90, 'campscomp', 'camps');
//        addSubmenu('campscomp', -2, -21, true, vertical);
//        addItem('&nbsp;Cheerleading', null, 'CSC_Camps.htm', false, null, 90, null, 'campscomp');
//        addItem('&nbsp;Gymnastics', null, 'CSG_Camps.htm', false, null, 90, null, 'campscomp');
      addItem('&nbsp;Recreational', null, null, null, null, 90, 'campsrec', 'camps');
        addSubmenu('campsrec', -2, -21, true, vertical);
        addItem('&nbsp;Cheerleading', null, 'CS_Camps.htm#cheerleading', false, null, 90, null, 'campsrec');
        addItem('&nbsp;Gymnastics', null, 'CS_Camps.htm#gymnastics', false, null, 90, null, 'campsrec');

  addItem('&nbsp;Shoppe', 'Starlight and Moonbeams Shoppe', 'CS_Shoppe.htm', false, null, 50, null, 'main');

  addItem('&nbsp;About Us', null, null, null, null, 55, 'about', 'main');
    addSubmenu('about', -50, -2, true, vertical);
    addItem('&nbsp;Contact Us', null, 'CS_Contacts.htm', false, null, 90, null, 'about');
    addItem('&nbsp;Employment', null, 'CS_Employment.htm', false, null, 90, null, 'about');
    addItem('&nbsp;Facebook', 'Follow us on Facebook', 'http://www.facebook.com/group.php?gid=137282728072', true, null, 90, null, 'about');
    addItem('&nbsp;Facility', null, 'CS_Facility.htm', false, null, 90, null, 'about');
    addItem('&nbsp;Lend a Hand', 'Community Support Program', 'CS_Charities.htm', false, null, 90, null, 'about');
    addItem('&nbsp;Media', null, null, null, null, 90, 'media', 'about');
      addSubmenu('media', -2, -21, true, vertical);
      addItem('&nbsp;Cheerleading', null, null, null, null, 90, 'mediacheer', 'media');
        addSubmenu('mediacheer', -2, -21, true, vertical);
      addItem('&nbsp;Calgary Journal 2007-Dec-19', 'Cheerleading Group Aims to Change Views', 'CSC_Media_20071219.htm', false, null, 180, null, 'mediacheer');
    addItem('&nbsp;Mission', 'Club philosophy', 'CS_Mission.htm', false, null, 90, null, 'about');
    addItem('&nbsp;Photos', null, null, null, null, 90, 'photo', 'about');
        addSubmenu('photo', -2, -21, true, vertical);
        addItem('&nbsp;Cheerleading', null, 'CSC_Photos.htm', false, null, 90, null, 'photo');
        addItem('&nbsp;Gymnastics', null, 'CSG_Photos.htm', false, null, 90, null, 'photo');

  addItem('&nbsp;Other Links', null, null, null, null, 70, 'other', 'main');
    addSubmenu('other', -65, -2, true, vertical);
    addItem('&nbsp;ACA', 'Alberta Cheerleading Association', 'http://www.albertacheerleading.ca', true, null, 90, null, 'other');
    addItem('&nbsp;AGF', 'Alberta Gymnastics Federation', 'http://www.abgym.ab.ca/', true, null, 90, null, 'other');
//    addItem('&nbsp;CanCheer', 'Cheerleading Canada', 'http://www.cheerleadingcanada.org', true, null, 90, null, 'other');
    addItem('&nbsp;CanGym', 'Gymnastics Canada', 'http://www.gymcan.org', true, null, 90, null, 'other');
    addItem('&nbsp;CgyCheer', 'Calgary Cheerleading', 'http://www.calgarycheer.com', true, null, 90, null, 'other');
    addItem('&nbsp;USASF', 'US All Star Federation for Cheer and Dance Teams', 'http://www.usasf.net/', true, null, 90, null, 'other');

  addItem('&nbsp;Site Map', null, 'CS_SiteMap.htm', false, null, 55, null, 'main');

  addItem('&nbsp;Home', null, 'index.htm', false, null, 40, null, 'main');
  debug(0);
}

window.onload = new Function('CSMenu.show()');
//window.onresize = new Function('CSMenu.position(0, 0)');

-->



