//Make the links dynamic based on the folder level

txtAirwarPath="airwar/";
txtHomefrontPath="homefront/";
txtStoriesPath="stories/";
imagepath = "";

if(level == 1)
{
txtAirwarPath="../airwar/";
txtHomefrontPath="../homefront/";
txtStoriesPath="../stories/";
imagepath="../";
}


/*************************************
*   IP II IMI IP II INI          *
*                    *
*   This is my menu shizzle      *      
*************************************/
    var NoOffFirstLineMenus=3;          // Number of first level items
    var LowBgColor='#93A3AB';                   // Background color when mouse is not over
    var LowSubBgColor='#93A3AB';        // Background color when mouse is not over on subs
    var HighBgColor='#C7CFD3';                  // Background color when mouse is over
    var HighSubBgColor='#C7CFD3';               // Background color when mouse is over on subs
    var FontLowColor='white';           // Font color when mouse is not over
    var FontSubLowColor='white';            // Font color subs when mouse is not over
    var FontHighColor='white';          // Font color when mouse is over
    var FontSubHighColor='white';           // Font color subs when mouse is over
    var BorderColor='#93A3AB';           // Border color
    var BorderSubColor='white';          // Border color for subs
    var BorderWidth=1;              // Border width
    var BorderBtwnElmnts=1;         // Border between elements 1 or 0
    var FontFamily="Verdana, Geneva, Arial, Helvetica, sans-serif"  // Font family menu items
    var FontSize=10;                // Font size menu items
    var FontBold=1;             // Bold menu items 1 or 0
    var FontItalic=0;               // Italic menu items 1 or 0
    var MenuTextCentered='center';          // Item text position 'left', 'center' or 'right'
    var MenuCentered='center';          // Menu horizontal position 'left', 'center' or 'right'
    var MenuVerticalCentered='top';     // Menu vertical position 'top', 'middle','bottom' or static
    var ChildOverlap=.2;                // horizontal overlap child/ parent
    var ChildVerticalOverlap=.2;            // vertical overlap child/ parent
    var StartTop=220;               // Menu offset x coordinate
    var StartLeft=62;               // Menu offset y coordinate
    var VerCorrect=0;               // Multiple frames y correction
    var HorCorrect=0;               // Multiple frames x correction
    var LeftPaddng=2;               // Left padding
    var TopPaddng=2;                // Top padding
    var FirstLineHorizontal=1;          // SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
    var MenuFramesVertical=1;           // Frames in cols or rows 1 or 0
    var DissapearDelay=1000;            // delay before menu folds in
    var TakeOverBgColor=1;          // Menu frame takes over background color subitem frame
    var FirstLineFrame='navig';         // Frame where first level appears
    var SecLineFrame='space';           // Frame where sub levels appear
    var DocTargetFrame='space';         // Frame where target documents appear
    var TargetLoc='';               // span id for relative positioning
    var HideTop=0;              // Hide first level when loading new document 1 or 0
    var MenuWrap=1;             // enables/ disables menu wrap 1 or 0
    var RightToLeft=0;              // enables/ disables right to left unfold 1 or 0
    var UnfoldsOnClick=0;           // Level 1 unfolds onclick/ onmouseover
    var WebMasterCheck=0;           // menu tree checking on or off 1 or 0
    var ShowArrow=1;                // Uses arrow gifs when 1
    var KeepHilite=1;               // Keep selected path highligthed
    var Arrws=[imagepath + 'script/tri2.gif',5,10,imagepath + 'script/tridown.gif',10,5,imagepath + 'script/trileft.gif',5,10]; // Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}

// Menu tree
//  MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//  For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"


Menu1 = new Array("Canada's Air War", txtAirwarPath + "airwar.htm","", 2,20,190);
    Menu1_1 = new Array( "The RCAF", txtAirwarPath + "background.htm","",2,20,190);
        Menu1_1_1 = new Array ("Overseas", txtAirwarPath + "overseas.htm", "",2,20,160);
            Menu1_1_1_1 = new Array ("Background", txtAirwarPath + "overseas_background.htm", "",0,20,160);
            Menu1_1_1_2 = new Array ("Conflict", txtAirwarPath + "overseas_conflict.htm", "",0);
        Menu1_1_2 = new Array ("The Home War", txtAirwarPath + "homewar.htm","",2);
            Menu1_1_2_1 = new Array ("Background", txtAirwarPath + "homewar_background.htm", "",0,20,160);
            Menu1_1_2_2 = new Array ("Conflict", txtAirwarPath + "homewar_conflict.htm", "",0);
    Menu1_2 = new Array( "The Plan", txtAirwarPath + "the_plan.htm","",3);
        Menu1_2_1 = new Array ("Purpose", txtAirwarPath + "purpose.htm", "",0,20,160);
        Menu1_2_2 = new Array ("In Action", txtAirwarPath + "in_action.htm", "",0);
        Menu1_2_3 = new Array ("Impact", txtAirwarPath + "impact.htm", "",0);


Menu2 = new Array("Homefront", txtHomefrontPath + "homefront.htm","",3);
        Menu2_1 = new Array("The Plan in Alberta", txtHomefrontPath + "plan_in_alberta.htm","",6,20,190);
                Menu2_1_1 = new Array ("Sites", txtHomefrontPath + "sites.htm", "" ,0,20,160);
                Menu2_1_2 = new Array ("Facilities", txtHomefrontPath + "facilities.htm","",0);
                Menu2_1_3 = new Array ("Training Plan", txtHomefrontPath + "training_plan.htm","",0);
                Menu2_1_4 = new Array ("Life on the Base", txtHomefrontPath + "life_on_the_base.htm","",0);
                Menu2_1_5 = new Array ("Community Involvement", txtHomefrontPath + "community_involvement.htm","",0);
                Menu2_1_6 = new Array ("Post War Legacy", txtHomefrontPath + "postwar_legacy.htm","",0);
        Menu2_2 = new Array ("The Divisions", txtHomefrontPath + "divisions.htm","",6);
                Menu2_2_1 = new Array ("RCAF", txtHomefrontPath + "rcaf.htm", "" ,0,20,160);
                Menu2_2_2 = new Array ("RCAF Women's Division", txtHomefrontPath + "rcaf_women.htm","",0,36,160);
                Menu2_2_3 = new Array ("RAAF", txtHomefrontPath + "raaf.htm","",0);
                Menu2_2_4 = new Array ("RAF", txtHomefrontPath + "raf.htm","",0);
                Menu2_2_5 = new Array ("RNZAF", txtHomefrontPath + "rnzaf.htm","",0);
                Menu2_2_6 = new Array ("Others", txtHomefrontPath + "others.htm","",0);
        Menu2_3 = new Array( "Documents", txtHomefrontPath + "documents.htm","",3);     
                Menu2_3_1 = new Array( "Paperwork and Publications", txtHomefrontPath + "publications.htm","",0,20,230);
                Menu2_3_2 = new Array( "Uniforms", txtHomefrontPath + "uniforms.htm","",0);     
                Menu2_3_3 = new Array( "Medals", txtHomefrontPath + "medals.htm","",0);         
        


Menu3 = new Array("Stories", txtStoriesPath + "stories.htm","",5);
        Menu3_1 = new Array("RCAF", txtStoriesPath + "stories_rcaf.htm","",10,20,190);
            Menu3_1_1 = new Array ("Edward Bryce Chase", txtStoriesPath + "rcaf_chase.htm", "" ,0,20,160);
            Menu3_1_2 = new Array ("Gordon Diller", txtStoriesPath + "rcaf_diller.htm", "" ,0);
            Menu3_1_3 = new Array ("Ted Kelly", txtStoriesPath + "rcaf_kelly.htm","",0);
            Menu3_1_4 = new Array ("Edmund Marshall", txtStoriesPath + "rcaf_marshall.htm","",0);
////////////Menu3_1_5 = new Array ("Jack Merryfield", txtStoriesPath + "rcaf_merryfield.htm","",0);            
            Menu3_1_5 = new Array ("Jim Northrup", txtStoriesPath + "rcaf_northrup.htm","",0);
            Menu3_1_6 = new Array ("Herbert Padwick", txtStoriesPath + "rcaf_padwick.htm","",0);
            Menu3_1_7 = new Array ("Stan Reynolds", txtStoriesPath + "rcaf_reynolds.htm","",0);
            Menu3_1_8 = new Array ("Alexander Shand", txtStoriesPath + "rcaf_ashand.htm","",0);
            Menu3_1_9 = new Array ("Robert Tipper", txtStoriesPath + "rcaf_tipper.htm","",0);
            Menu3_1_10 = new Array ("Bruce and Douglas Warren", txtStoriesPath + "rcaf_warren.htm","",0,40);
        Menu3_2 = new Array ("RCAF Women's Division", txtStoriesPath + "stories_rcaf_women.htm","",3,20,160);
            Menu3_2_1 = new Array ("Mary Sadler\, Nelson", txtStoriesPath + "rcaf_women_sadler_nelson.htm", "" ,0,20,180);
            Menu3_2_2 = new Array ("Jessie Stewart\, Jackson", txtStoriesPath + "rcaf_women_stewart_jackson.htm","",0);
            Menu3_2_3 = new Array ("Sylvia Evans", txtStoriesPath + "rcaf_women_evans.htm","",0);
        Menu3_3 = new Array( "RAAF", txtStoriesPath + "stories_raaf.htm","",3);     
            Menu3_3_1 = new Array( "Bill Bedford", txtStoriesPath + "raaf_belford.htm","",0,20,160);
            Menu3_3_2 = new Array( "William DeBoos", txtStoriesPath + "raaf_deboos.htm","",0);
            Menu3_3_3 = new Array( "J. Phillip Johnston", txtStoriesPath + "raaf_johnston.htm", "",0);
                 
        Menu3_4 = new Array( "RAF", txtStoriesPath + "stories_raf.htm","",6);      
            Menu3_4_1 = new Array( "Don Attlee", txtStoriesPath + "raf_attlee.htm","",0,20,160);
            Menu3_4_2 = new Array( "Arther Coy", txtStoriesPath + "raf_coy.htm","",0);
            Menu3_4_3 = new Array( "D.A.R. Day", txtStoriesPath + "raf_day.htm","",0);      
            Menu3_4_4 = new Array( "Geoff Holly", txtStoriesPath + "raf_holly.htm","",0); 
            Menu3_4_5 = new Array ("Frank Pollard", txtStoriesPath + "raf_pollard.htm","",0);
            Menu3_4_6 = new Array ("John Rhodes", txtStoriesPath + "raf_rhodes.htm","",0);          
        Menu3_5 = new Array( "RNZAF", txtStoriesPath + "stories_rnzaf.htm","",6);
            Menu3_5_1 = new Array( "John Aitken", txtStoriesPath + "rnazf_aitken.htm","",0,20,160);
            Menu3_5_2 = new Array( "Colin Clark", txtStoriesPath + "rnazf_clark.htm","",0);
            Menu3_5_3 = new Array( "William Coulter", txtStoriesPath + "rnazf_coutler.htm","",0);       
            Menu3_5_4 = new Array( "Leslie Lissette", txtStoriesPath + "rnazf_lissette.htm","",0);  
            Menu3_5_5 = new Array ("Roy McIntyre", txtStoriesPath + "rnazf_mcintyre.htm","",0);
            Menu3_5_6 = new Array ("Jim Osborne", txtStoriesPath + "rnazf_osborne.htm","",0);           



