/*
Copyright (c) 2008, Philippe Gatta. All rights reserved.
*/
 YAHOO.util.Event.onDOMReady(function () {
	
if (window.location.protocol=="file:") {
	var base_url="file:///C:/Documents and Settings/a0867757/eclipse_workspace/PG Web/_root/";
}
else {
   var base_url="http://www.philippegatta.fr/";
}
 
    var aItemData = [
        { text: ":: Home" , 												url: base_url + "index.html" },
        { text: ":: Expeditions", 					submenu: {  id: "epxemenu", itemdata: [[
                { text: "7 Summits Challenge", 						url: base_url + "7summits2.htm" },
                { text: "Mount Everest (Northeast ridge)",		url: base_url + "everest.htm" },
                { text: "Gasherbrum I, II, Broad Peak",			url: base_url + "karakoram2.htm" },
                { text: "Cho Oyu (Northwest ridge)",				url: base_url + "cho_oyu2.htm" },
                { text: "Ama Dablam (Southwest ridge)",			url: base_url + "amadablam2.htm" }],[
                { text: "Mount Vinson (Antarctica)", 				url: base_url + "vinsonTI.htm" },
                { text: "Cerro Aconcagua (normal route)",		url: base_url + "aconcagua2.htm" },
                { text: "Carstensz Pyramid (normal route)", 	url: base_url + "carstensz2.htm" },
                { text: "Denali / McKinley (West Buttress)",	url: base_url + "denali2.htm" },
                { text: "Mount Kilimanjaro (Machame & Mweka)",	url: base_url + "kilimandjaro2.htm" },
                { text: "Mount Elbrus (normal route)",			url: base_url + "elbrus2.htm" }],[
                { text: "Chopicalqui, Ishinca, Urus (Peru)",	url: base_url + "peru2.htm" },
                { text: "Parinacota, Huayna Potosi (Bolivia)",	url: base_url + "bolivia2.htm" }
            ]] }
        },
        { text: ":: Mountaineering", submenu: { id: "mountmenu", itemdata: [
                { text: "Mont Blanc (Pillar of Freney)", 		url: base_url + "freney2.htm" },
                { text: "8 routes to Mont Blanc", 					url: base_url + "montblanc2.htm" },
                { text: "Peaks of Mont Blanc Massif", 			url: base_url + "montblanc_m2.htm" },
                { text: "Grand Capucin (Bonatti Route)", 		url: base_url + "gd_cap2.htm" }
            ] }
        },
        { text: ":: Ultra Distance & Trails Running", submenu: { id: "trailmenu", itemdata: [[
                { text: "5 Mountain Trails around the world", 	url: base_url + "running_m2.htm" },
                { text: "4 Desert Trails around the world", 	url: base_url + "running_d2.htm" },
                { text: "5 Various Races around the world", 	url: base_url + "running_o2.htm" },
                { text: "Trail running in French Riviera",		url: base_url + "running/trail06.htm" }],[
                { text: "Himal Race (Nepal)", 						url: base_url + "himal2.htm" },
                { text: "Everest Lafuma Sky Race (Nepal)",		url: base_url + "sky_race2.htm" },
                { text: "Marathon des Sables (Sahara)", 			url: base_url + "mds2.htm" }
            ]] }
        },
        { text: ":: Rock Climbing", submenu: { id: "climbmenu", itemdata: [[
                { text: "Rock Climbing in France", 				url: base_url + "climbing2.htm" }],[
                { text: "Gorges du Loup: Deverse sector",  	   url: base_url + "climbing/deverse2.htm" },
                { text: "Gorges du Loup: Mesa Verde sector",   url: base_url + "climbing/mesaverde2.htm" },
                { text: "Peillon: the Cave",   						url: base_url + "climbing/peillon2.htm" },
                { text: "La Turbie: Grande Face sector",   		url: base_url + "climbing/grandeface2.htm" }
            ]] }
        },
        { text: ":: Photos & Videos", 									url: base_url + "gallery2.htm"},
        { text: ":: Sponsors", 											url: base_url + "sponsors2.htm"},
        { text: ":: About", 												url: base_url + "about2.htm"}		  
    ];

    // Instantiate a MenuBar, passing in the id of the element to be created
    var oMenuBar = new YAHOO.widget.MenuBar("mymenubar",{autosubmenudisplay: true, hidedelay: 750, lazyload: true });

    // Add items to the MenuBar instance
    
    oMenuBar.addItems(aItemData);


    // Render the MenuBar instance
    
    oMenuBar.render("pg_menu");
    
});

