<!--
// 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 CSCMenu = new WebMenu('CSCMenu');

//
// 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 (CSCMenu) {
  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', null, null, 90, null, 'programs');
    addItem('&nbsp;Drop-In Gym', null, 'CS_Dropin.htm', null, null, 90, null, 'programs');
    addItem('&nbsp;Gymnastics', null, 'CSG_Schedule.htm', null, null, 90, null, 'programs');
    addItem('&nbsp;Parties', 'Birthday and Special Event Bookings', 'CS_Parties.htm', null, null, 90, null, 'programs');
//    addItem('&nbsp;Yoga', null, 'CS_Yoga.htm', null, null, 90, null, 'programs');

  addItem('&nbsp;Schedule', null, null, null, null, 60, 'sched', 'main');
    addSubmenu('sched', -55, -2, true, vertical);
    addItem('&nbsp;Competitive', null, 'CSC_Schedule.htm#comp', null, null, 90, null, 'sched');
    addItem('&nbsp;Recreational', null, 'CSC_Schedule.htm#rec', null, null, 90, null, 'sched');
    addItem('&nbsp;Gym Closures', null, 'CS_Schedule.htm', null, null, 90, null, 'sched');

  addItem('&nbsp;Athletes', null, null, null, null, 50, 'ath', 'main');
    addSubmenu('ath', -45, -2, true, vertical);
    addItem('&nbsp;Competitive', null, null, null, null, 90, 'compAth', 'ath');
      addSubmenu('compAth', -2, -21, true, vertical);
//      addItem('&nbsp;Tiny', '4 - 5 Years', 'CSC_Athletes.htm#comptiny', null, null, 70, null, 'compAth');
//      addItem('&nbsp;Mini', '5 - 6 Years', 'CSC_Athletes.htm#compmini', null, null, 70, null, 'compAth');
//      addItem('&nbsp;Youth', '6 - 8 Years', 'CSC_Athletes.htm#compyouth', null, null, 70, null, 'compAth');
      addItem('&nbsp;Junior', '14 Years and younger', 'CSC_Athletes.htm#compjunior', null, null, 70, null, 'compAth');
      addItem('&nbsp;Senior', '17 Years and younger', 'CSC_Athletes.htm#compsenior', null, null, 70, null, 'compAth');
//      addItem('&nbsp;Adult', '17+ Years', 'CSC_Athletes.htm#compadult', null, null, 70, null, 'compAth');
    addItem('&nbsp;Recreational', null, null, null, null, 90, 'recAth', 'ath');
      addSubmenu('recAth', -2, -21, true, vertical);
      addItem('&nbsp;Youth', '6 - 8 Years', 'CSC_Athletes.htm#recyouth', null, null, 70, null, 'recAth');
      addItem('&nbsp;Junior', '8 - 14 Years', 'CSC_Athletes.htm#recjunior', null, null, 70, null, 'recAth');
//      addItem('&nbsp;Senior', '15 - 17 Years', 'CSC_Athletes.htm#recsenior', null, null, 70, null, 'recAth');
//      addItem('&nbsp;Adult', '15+ Years', 'CSC_Athletes.htm#recadult', null, null, 70, null, 'recAth');

  addItem('&nbsp;Parents', 'Program Information for Parents', null, null, null, 50, 'parent', 'main');
    addSubmenu('parent', -45, -2, true, vertical);
    addItem('&nbsp;Competitive', null, 'CSC_Parents.htm#comp', null, null, 90, null, 'parent');
    addItem('&nbsp;Recreational', null, 'CSC_Parents.htm#rec', null, null, 90, null, 'parent');

  addItem('&nbsp;Newsletter', null, null, null, null, 70, 'news', 'main');
    addSubmenu('news', -65, -2, true, vertical);
    addItem('&nbsp;Competitive', null, 'CSC_NewsletterComp.htm', null, null, 90, null, 'news');
  
  addItem('&nbsp;Events', null, null, null, null, 45, 'events', 'main');
    addSubmenu('events', -40, -2, true, vertical);
//    addItem('&nbsp;Tiny', '6 - 8 Years', 'CSC_EventsTiny.htm', null, null, 90, null, 'events');
//    addItem('&nbsp;Mini', '8 - 14 Years', 'CSC_EventsMini.htm', null, null, 90, null, 'events');
//    addItem('&nbsp;Youth', '6 - 8 Years', 'CSC_EventsYouth.htm', null, null, 90, null, 'events');
    addItem('&nbsp;Junior', '8 - 14 Years', 'CSC_EventsJunior.htm', null, null, 90, null, 'events');
    addItem('&nbsp;Senior', '15 - 17 Years', 'CSC_EventsSenior.htm', null, null, 90, null, 'events');
    addItem('&nbsp;Adult', '17 Years & Up', 'CSC_EventsAdult.htm', null, null, 90, null, 'events');

  addItem('&nbsp;Camps', null, null, null, null, 50, 'camps', 'main');
      addSubmenu('camps', -45, -2, true, vertical);
//      addItem('&nbsp;Competitive', null, 'CSC_Camps.htm', null, null, 90, null, 'camps');
      addItem('&nbsp;Recreational', null, 'CS_Camps.htm#cheerleading', null, null, 90, null, 'camps');

  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', null, null, 90, null, 'about');
    addItem('&nbsp;Employment', null, 'CS_Employment.htm', null, 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', null, 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;Calgary Journal 2007-Dec-19', 'Cheerleading Group Aims to Change Views', 'CSC_Media_20071219.htm', null, null, 180, null, 'media');
    addItem('&nbsp;Mission', 'Club philosophy', 'CS_Mission.htm', null, null, 90, null, 'about');
    addItem('&nbsp;Photos', null, 'CSC_Photos.htm', null, null, 90, null, 'about');

  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;CanCheer', 'Cheerleading Canada', 'http://www.cheerleadingcanada.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('CSCMenu.show()');
//window.onresize = new Function('CSCMenu.position(0, 0)');

-->



