
<!-- Beginning of JavaScript -

// CREDITS:
// Hierarchical Menu 3.0: VERSION WITH IMAGE-BUTTONS by Urs Dudli and Peter Gehrig 
// Copyright (c) 1999 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.ch.
// info@24fun.ch
// 1/25/2000

// IMPORTANT: 
// If you add this script to a script-library or script-archive 
// you have to add a link to http://www.24fun.ch on the webpage 
// where this script Script will be running.

//  **********************************************************************************

// INSTRUCTIONS: 
// Configure the menublocks below.
// You can add as many menublocks as you need.
//
// ATTENTION: When you configure the menublocks take care that you
// set the ";" and the "+" as seen below.

//  **********************************************************************************
var menublock=new Array()                       // no need to change this
var plus_i=0                                            // no need to change this
var mouseoverimage= new Array()
menublock[0]="../../images/c1.gif;"+       // filename first button-image
                         "../../images/chapone2.gif;"+  // filename rollover-image of first button-image
                         ";"+                                   // do not change this
                         ";"+                                   // do not change this
                         "Times;"+                              // font sublinks
                         "2;"+                                  // fontsize sublinks
                         "CC3300;"+                             // fontcolor sublinks
                         "1;"+                                  // fontweight sublinks, 1 means bold, 0 means normal
                         "menublock 1|#|;"+                                     // text|URL|target of mainlink
                         "~ Introduction|Lesson1_Page1.html|;"+               // text|URL|target of first sublink
                         "~ Deciding on type of franchise|Lesson1_Page2.html|;"+              // text|URL|target of second sublink     
                         "~ Corporate structure & other legal considerations|Lesson1_Page3.html|;"+           // text|URL|target of first sublink
                        "~ Proprietorships|Lesson1_Page4.html|;"+
                        "~ Partnerships|Lesson1_Page5.html|;"+        
                        "~ Limited Liability Company (LLC)|Lesson1_Page6.html|;"+     
                        "~ Corporations|Lesson1_Page7.html|;" 
menublock[1]="../../images/c2.gif;"+               // filename second button-image
                         "../../images/chaptwo2.gif;"+                  // filename rollover-image of  second button-image
                         ";"+                                   // do not change this
                         ";"+                                   // do not change this
                         "Times;"+                              // font sublinks
                         "2;"+                                  // fontsize sublinks
                         "CC3300;"+                             // fontcolor sublinks
                         "1;"+                                  // fontweight sublinks, 1 means bold, 0 means
                         "menublock 2|#|;"+                         // text and URL of first mainlink
                         "~ Checklist of requirements|Lesson1_Page8.html|;"+  // text|URL|target of mainlink
                         "~ State & local licenses|Lesson1_Page9.html|;"+     // text|URL|target of first sublink
                         "~ Licenses & permits|Lesson1_Page10.html|;"+        // text|URL|target of second sublink 
                         "~ Taxes|Lesson1_Page11.html|;"+     // text|URL|target of thirth sublink 
                         "~ Preparing a budget|Lesson1_Page12.html|;"+        // text|URL|target of thirth sublink 
                         "~ Why do I need a franchise plan|Lesson1_Page13.html|;"+    // text|URL|target of thirth sublink 
                         "~ Standard franchise plan outline|Lesson1_Page14.html|;"        // text|URL|target of fourth sublink 
menublock[2]="../../images/c3.gif;"+             // filename second button-image
                         "../../images/chapthree2.gif;"+                        // filename rollover-image of  second button-image
                         ";"+                                   // do not change this
                         ";"+                                   // do not change this
                         "Times;"+                              // font sublinks
                         "2;"+                                  // fontsize sublinks
                         "CC3300;"+                             // fontcolor sublinks
                         "1;"+                                  // fontweight sublinks, 1 means bold, 0 means
                         "menublock 3|#|;"+                         // text and URL of first mainlink
                         "~ Financing your new franchise|Lesson1_Page15.html|;"+      // text|URL|target of mainlink
                         "~ Debt financing|Lesson1_Page16.html|;"+    // text|URL|target of first sublink
                         "~ Government financing|Lesson1_Page17.html|;"+      // text|URL|target of second sublink 
                         "~ Private placements|Lesson1_Page18.html|;"+        // text|URL|target of thirth sublink 
                         "~ Venture capital|Lesson1_Page19.html|;"+   // text|URL|target of thirth sublink 
                         "~ Franchising/ Licensing|Lesson1_Page20.html|;"     // text|URL|target of thirth sublink 
                         
menublock[3]="../../images/c4.gif;"+      // filename fourth button-image
                         "../../images/chapfour2.gif;"+ // filename rollover-image of fourth button-image
                         ";"+                                   // do not change this
                         ";"+                                   // do not change this
                         "Times;"+                              // font sublinks
                         "2;"+                                  // fontsize sublinks
                         "CC3300;"+                             // fontcolor sublinks
                         "1;"+                                  // fontweight sublinks, 1 means bold, 0 means
                         "menublock 3|#|;"+                         // text and URL of mainlink
                         "~ Location, Location, Location|Lesson1_Page21.html|;"+              // text and URL of first sublink
                         "~ Demographics|Lesson1_Page22.html|;"+              // text and URL of second sublink
                         "~ Traffic Counts|Lesson1_Page23.html|;"+            // text and URL of first sublink
                         "~ Visibility|Lesson1_Page24.html|;"+                // text and URL of first sublink
                         "~ Accessibility|Lesson1_Page25.html|;"+             // text and URL of first sublink
                         "~ Parking|Lesson1_Page26.html|;"+           // text and URL of first sublink
                         "~ Zoning|Lesson1_Page27.html|;"     +   // text and URL of thirth sublink   
           "~ Competition|Lesson1_Page28.html|;"+             // text and URL of first sublink
                "~ Nature of surroundings|Lesson1_Page29.html|;"+             // text and URL of first sublink
           "~ Cost per square foot|Lesson1_Page30.html|;"+            // text and URL of first sublink
           "~ Future population trends|Lesson1_Page31.html|;" // text and URL of first sublink

// No need to change anything below      
//  **********************************************************************************
         
var menusplit
var urlsplit
var font_weight_sub
var font_weight_sub

var minusimg=new Image()
minusimg.src="../../images/down.gif"

var plusimg=new Image()
plusimg.src="../../images/up.gif"
                         
var showsubmenus=new Array()
for (i=0;i<=menublock.length-1;i++) {
        showsubmenus[i]=-1
}

var plusminusimg=new Array()
for (i=0;i<=menublock.length-1;i++) {
        plusminusimg[i]=plusimg.src
}

for (i=0;i<=menublock.length-1;i++) {
        menusplit=menublock[i].split(";")
        mouseoverimage[i] = new Image()
        mouseoverimage[i].src = menusplit[1]
}

function mouseOver(imgurl,imgname) {
        if (document.layers) {
                var thisimg=eval("document.menu.document.img"+imgname)
                thisimg.src=imgurl
        }
        if (document.all) {
                var thisimg=eval("img"+imgname)
                thisimg.src=imgurl
        }
}

function mouseOut(imgurl,imgname) {
        if (document.layers) {
                var thisimg=eval("document.menu.document.img"+imgname)
                thisimg.src=imgurl
        }
        if (document.all) {
                var thisimg=eval("img"+imgname)
                thisimg.src=imgurl
        }
}

function expandTheMenu(visi) {
        showsubmenus[visi]=(-1)*showsubmenus[visi]
    var menucontent=""
    if (showsubmenus[visi]==1) {plusminusimg[visi]=minusimg.src}
    if (showsubmenus[visi]==-1) {plusminusimg[visi]=plusimg.src}
    menucontent+="<table border=0 cellpadding=0 cellspacing=0>"
        for (i=0;i<=menublock.length-1;i++) {
                menusplit=menublock[i].split(";")
                urlsplit=menusplit[8].split("|")
                if (menusplit[7]==1) {font_weight_sub="<b>"}
                if (menusplit[7]==0) {font_weight_sub=""} 
                menucontent+="<tr><td>"

        
       if (menusplit[9].length==0) {
            menucontent+="</td>"
            menucontent+="<td>"
            menucontent+="<a href="+urlsplit[1]+" target="+urlsplit[2]+" onMouseOver='mouseOver(\""+menusplit[1]+"\",\""+i+"\")' onMouseOut='mouseOut(\""+menusplit[0]+"\",\""+i+"\")'>"
                        
                        var imgn = "img"+i
            menucontent+="<img name="+imgn+" src="+menusplit[0]+" border=0>"
            menucontent+="</td></tr>"
            plus_i++ 
        }
        
        if (menusplit[9].length!=0) {
            var thismainmenu=i+plus_i
            menucontent+="<a href='javascript:expandTheMenu("+i+")'>"
                        var imgn = "img"+i
            menucontent+="<img src='"+plusminusimg[i]+"' border=0></a></td>"
            menucontent+="<td>"
            menucontent+="<a href='javascript:expandTheMenu("+i+")' onMouseOver='mouseOver(\""+menusplit[1]+"\",\""+i+"\")' onMouseOut='mouseOut(\""+menusplit[0]+"\",\""+i+"\")'>"
            menucontent+="<img name="+imgn+" src="+menusplit[0]+" border=0>"
            menucontent+="</a></td></tr>"
   
                    if (showsubmenus[i]==1) {
                            for (ii=9;ii<=menusplit.length-1;ii++) {
                                    urlsplit=menusplit[ii].split("|")
                    menucontent+="<tr><td></td><td align=left>"
                            menucontent+=font_weight_sub
                    menucontent+="<a href="+urlsplit[1]+" target="+urlsplit[2]+">"
                    menucontent+="<font face="+menusplit[4]+" color="+menusplit[6]+" size="+menusplit[5]+">"
                    menucontent+=urlsplit[0]
                    menucontent+="</font></a>  </td></tr>"
                            }
                    }
        }    
        }
    menucontent+="</table>"
        if (document.all) {
                menu.innerHTML=menucontent
        }
        if (document.layers) {
                document.menu.document.write(menucontent)
                document.menu.document.close()
        }
}



