// Script - coltmenu.js - Brendan Shanahan
// usage: <script language="JavaScript" type="text/javascript" src="coltmenu.js"></script>
//
// Display main menu for www.pendlehillcolts.com.au
//
// showMenu(menuList,menuIndex)
//

function Option(label,link,target,title) {
    this.label = label;
    this.link = link;
    this.target = target;
    this.title = title;
    }

function showMenu(Menu,m) {
    var output = '';
    for (var i=0; i<m-1; i++)
       output += '<a href=' + Menu[i].link + ' title=' + Menu[i].title + 'target=' + Menu[i].target + '>' + Menu[i].label + '</a><br>'
    output += '<a href=' + Menu[i].link + ' title=' + Menu[i].title + 'target=' + Menu[i].target + '>' + Menu[i].label + '</a>'
    document.write(output);
}

function flatMenu(Menu,m) {
    var output = '';
    for (var i=0; i<m-1; i++)
       output += '<a href=' + Menu[i].link + ' title=' + Menu[i].title + 'target=' + Menu[i].target + '>' + Menu[i].label + '</a> | ';
    output += '<a href=' + Menu[i].link + ' title=' + Menu[i].title + 'target=' + Menu[i].target + '>' + Menu[i].label + '</a>';
    document.write(output);
}

var photourl = 'http://pub45.bravenet.com/photocenter/album.php?usernum=3839375635'

var menuIndex = 0;
var menuList = new Array();

menuList[menuIndex++] = new Option('Home'           ,'index.html'         ,'_top'	,'"Return to Main Page"');
menuList[menuIndex++] = new Option('The Colt'       ,'thecolt.html'      ,'MainFrame'	,'"View the latest Colt"');
menuList[menuIndex++] = new Option('Calendar'       ,'calendar.html'     ,'MainFrame'	,'"Colts Calendar"');
menuList[menuIndex++] = new Option('Events'         ,'events.html'       ,'MainFrame'	,'"Colts Calendar"');
menuList[menuIndex++] = new Option('Draw'           ,'indexteam.html'    ,'MenuFrame'	,'"Team Draws"');
menuList[menuIndex++] = new Option('Field Locations','fields.html'       ,'MainFrame'	,'"Field Locations"');
menuList[menuIndex++] = new Option('Submit Results' ,'results.html'      ,'MainFrame'	,'"Submit your weekend results"');
menuList[menuIndex++] = new Option('Coaches'        ,'coaches.html'      ,'MainFrame'	,'"Coach Details"');
menuList[menuIndex++] = new Option('Committee'      ,'committee.html'    ,'MainFrame'	,'"Committee Details"');
menuList[menuIndex++] = new Option('Members'        ,'members.html'      ,'MainFrame'	,'"Foundation & Life Members"');
menuList[menuIndex++] = new Option('Statistics'     ,'statistics.html'   ,'MainFrame'	,'"Club Statistics"');
menuList[menuIndex++] = new Option('History'        ,'history.html'      ,'MainFrame'	,'"Club History"');
menuList[menuIndex++] = new Option('Rules'          ,'rules.html'        ,'MainFrame'	,'"Rules of Cricket"');
menuList[menuIndex++] = new Option('Documents'      ,'documents.html'    ,'MainFrame'	,'"Document Archive"');
menuList[menuIndex++] = new Option('Registration'   ,'rego.html'         ,'MainFrame'	,'"Register to play for the Colts"');
menuList[menuIndex++] = new Option('in2Cricket'     ,'in2cricket.html'   ,'MainFrame'	,'"in2Cricket (Have-A-Go)"');
menuList[menuIndex++] = new Option('Photos'         , photourl 		 ,'MainFrame'	,'"Candid Camera"');
menuList[menuIndex++] = new Option('Mandurama'      ,'mandurama.html'    ,'MainFrame'	,'"End of season trip"');
menuList[menuIndex++] = new Option('Sponsors'       ,'sponsors.html'     ,'MainFrame'	,'"Our Generous Sponsors"');
menuList[menuIndex++] = new Option('Links'          ,'links.html'        ,'MainFrame'	,'"Links"');
menuList[menuIndex++] = new Option('Contact'        ,'contact.html'      ,'MainFrame'	,'"Contact the Colts"');

//menuList[menuIndex++] = new Option('Gallery'         ,'http://www.cricketnsw.com.au/pdca/hggallery.cl?PT=&C=PHC'       ,'MainFrame'	,'"Photo Gallery"');

//menuList[menuIndex++] = new Option('Events'         ,'events.html'       ,'MainFrame'	,'"Upcoming Events"');
//menuList[menuIndex++] = new Option('E-Mail'         ,'mailform.html'     ,'MainFrame'	,'"Contact the Colts"');
//menuList[menuIndex++] = new Option('Mail Remex'     ,'mailformremex.html','MainFrame'	,'"Contact the Colts"');
//menuList[menuIndex++] = new Option('Search'         ,'search.html'       ,'MainFrame'	,'"Google Search"');
//menuList[menuIndex++] = new Option('Comments'       ,'comments.html'     ,'MainFrame'	,'"Comments or suggestions"');
//menuList[menuIndex++] = new Option('Email'          ,'"mailto:phccc@ihug.com.au?subject=Colts Web Enquiry"' ,'"Mail"');

// End.