 
 // DECLARE SECTION STARTING POINTS
    var i_home      = 0;
    var i_shooter   = 1;
    var i_editor    = 19;
    var i_producer  = 38;
    var i_info      = 48;

  // DECLARE ARRAY OF PAGES (REAL PAGES START AT 1)
    pagelist = new Array(
      "DeniseBoscoHome.html",
      "PHO/PhoTSqStripe.html",
      "PHO/PhoTSqTShirt.html",
      "PHO/PhoTSqTaxi.html",
      "PHO/PhoMadSqPark.html",
      "PHO/PhoMonkeyRiver.html",
      "PHO/PhoBlairWitch.html",
      "PHO/PhoSaqqaraCamel.html",
      "PHO/PhoColosseum.html",
      "PHO/PhoRunningGirls.html",
      "PHO/PhoStormArch.html",
      "PHO/PhoDownArchBirds.html",
      "PHO/PhoCalmWaters.html",
      "PHO/PhoHongKongHarbor.html",
      "PHO/PhoHongKongVegetables.html",
      "PHO/PhoIrishLilies.html",
      "PHO/PhoCubanScenes.html",
      "PHO/PhoSecretAgent.html",
      "PHO/PhoStatement.html",
      "PED/EdTitlePage.html",   
      "PED/EdMonkeyPlus.html",
      "PED/EdAnimals.html",
      "PED/EdThreeCovers.html",
      "PED/EdResearchStats.html",
      "PED/EdBeesAndHeadStats.html",
      "PED/EdThirdWorldStats.html",
      "PED/EdRareOnesArray.html",
      "PED/EdKneeSpread1.html",
      "PED/EdKneeSpread2.html",
      "PED/EdLosingSleepArray.html",
      "PED/EdSorryArray.html",
      "PED/EdUmamiAction.html",
      "PED/EdObesityArray.html",
      "PED/EdHealthPosters.html",
      "PED/EdSynBioArray.html",
      "PED/EdDataMiningArray.html",
      "PED/EdPursuitsSandyWeill.html",
      "PED/EdStatement.html",
      "PRO/ProTitlePage.html",
      "PRO/ProGiulianiSpread.html",
      "PRO/ProCNNPersonalities.html",
      "PRO/ProCNNBillboards.html",
      "PRO/ProForbesBranson.html",
      "PRO/ProBarnabyBabies.html",
      "PRO/ProForbesCover.html",
      "PRO/ProWilkesArray.html",
      "PRO/Pro3ComArray.html",
      "PRO/ProStatement.html",
      "INF/Contact.html",
      "INF/Biography1.html");

 // CAPTURE LENGTH OF PAGE LIST
    var n_pages   = pagelist.length;
    var firstpage = 0;
    var finalpage = n_pages - 1;

 // THIS PAGE
    var thispage = firstpage;

  // DECLARE ARRAY OF SECTION NAMES
    sectlist = new Array(
      "home",
      "photographer",
      "photo editor",
      "producer",
      "info");

 // CAPTURE LENGTH OF SECTION LIST
    var n_sects   = sectlist.length;
    var firstsect = 0;
    var finalsect = n_sects - 1;

 // DEFAULT FONT SIZE FOR TOP NAME AND LINKS
    var deftopsize = 16.

 // DECLARE CURRENT SECTION 
    var thissect = 0;

  // DECLARE ARRAYs OF SECTION START/STOP PAGES
    i_start = new Array (5);
    i_stop  = new Array (5);

 // CAPTURE START/STOP POINTS FOR EACH SECTION
    i_start[0] = firstpage;
    i_stop[0]  = firstpage;
    i_start[1] = i_shooter;
    i_stop[1]  = i_editor - 1;
    i_start[2] = i_editor;
    i_stop[2]  = i_producer - 1;
    i_start[3] = i_producer;
    i_stop[3]  = i_info - 1;
    i_start[4] = i_info;
    i_stop[4]  = finalpage;

 // DECLARE CURRENT GROUP
    var thisgroup = 0;

 // THIS PAGE
    var thispage = firstpage;

 // NOW FIGURE OUT WHAT PAGE WE"RE ON
    var s = new String(document.URL);
    var f = 0;
    for (i = firstpage; i <= finalpage; i++) {
       f = s.search(pagelist[i]); 
       if (f > 0) {thispage = i; break} }

 // AND FIGURE OUT WHAT SECTION WE"RE IN
     for (j = firstsect; j <= finalsect; j++) {
        if ((thispage >= i_start[j]) && (thispage <= i_stop[j])) { thissect = j; break} }

 //  alert ("thispage is " + thispage + "  and this section is " + thissect);

 // FUNCTION TO GO TO ANOTHER PAGE
    function gotopage (i) {self.location = "../" + pagelist[i] }
 // ALTERNATE VERSION LEAVING NO HISTORY
 //   function gotopage (i) {self.location.replace(pagelist[i]) }

 // FUNCTION TO GO TO NEXT PAGE
    function nextpage(thispage) { 
         if (thispage == finalpage) {thispage = firstpage; } 
            else {thispage = thispage + 1; }
         if (thispage == i_start[2]) {thispage = i_start[1]}
         if (thispage == i_start[3]) {thispage = i_start[2]}
         if (thispage == i_start[4]) {thispage = i_start[3]}
         gotopage(thispage); }

 // FUNCTION TO GO TO LAST (PREVIOUS) PAGE 
 // CAN't GO BACK FROM PAGE 0 BECAUSE NO LINK
    function lastpage(thispage) { 
         thispage = thispage - 1;
         if (thispage == i_stop[3]) {thispage = firstpage}
         else {
             if (thispage == i_stop[2]) {thispage = i_stop[3]}
             if (thispage == i_stop[1]) {thispage = i_stop[2]}
             if (thispage == i_stop[0]) {thispage = i_stop[1]} }
         gotopage(thispage); }

 // SPACING VARIABLES
    var twospaces  = "&nbsp;&nbsp;";
    var fourspaces = "&nbsp;&nbsp;&nbsp;&nbsp;";
    var sixspaces  = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
    var tenspaces  = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
    var dotspacer  = "&nbsp;&middot;&nbsp;";

// FUNCTION TO GENERATE STANDARD HEADER/FOOTER MATERIAL
    function write_standard () {
        write_header (0, 0, 4);
        write_footer (); }

// FUNCTION TO GENERATE HEADER MATERIAL
    function write_header (fize, fust, lest) {
        var fize, fust, lest;
        if (fize == 0) {fize = deftopsize}
        document.write('  <DIV CLASS="namediv"><P CLASS="hername"  STYLE="font-size: ' + fize + 'px">Denise Bosco</P></DIV>  ');
        document.write('  <DIV CLASS="linkdiv"><P CLASS="herlinks" STYLE="font-size: ' + fize + 'px">  ');
        for (j = fust; j <= lest; j++) {
            if (j == thissect) {
                document.write (' <A CLASS="linkglow" ONCLICK="gotopage(i_start[' + j + '])">' + sectlist[j] + '</A> ')  }
            else {
                document.write (' <A CLASS="linknorm" ONCLICK="gotopage(i_start[' + j + '])">' + sectlist[j] + '</A> ')  }
            if (j == lest) { document.write('  </DIV>  ') }
            else { document.write('&middot;') } } }


// FUNCTION TO GENERATE ARROWS AND PAGE NUMBERS
    function write_footer() {
     // WRITE ARROWS
        document.write ('<DIV STYLE="top: 575; height: 20; left: 0; right: 0; width: 100%; z-index: 3">');
        document.write ('<P><A CLASS="forarrows" ONCLICK="lastpage(thispage)">');
        document.write ('<IMG SRC="../PIX/NewLeftArrowWGG@12x20.png"></A>' + fourspaces);
        document.write ('<A CLASS="forarrows" ONCLICK="nextpage(thispage)">');
        document.write ('<IMG SRC="../PIX/NewRightArrowWGG@12x20.png"></A></P></DIV>'); 
     // WRITE RAIL
        var numb_leng = 21;
        var rail_leng = numb_leng * (i_stop[thissect] - i_start[thissect] + 1) ;
        document.write ('<DIV STYLE="top: 605px; height: 1px; left: 5%; right: 5%; width: 90%">');
        document.write ('<IMG SRC="../PIX/ThinRailAAAAAA.jpg" HEIGHT="1" WIDTH="' + rail_leng + '"></DIV>');
     // WRITE STRINBG OF NUMBERS
        var numb_string = "";
        document.write ('<DIV ID="numrow" STYLE="top: 600; height: 20; left: 0; right: 0; width: 100%">');
        document.write ('<P ID="numrow">');
        for (i = i_start[thissect]; i <= i_stop[thissect]; i++) { 
         // ADD SPACES IF SINGLE DIGIT
            if (i < 10) { numb_string = 'ONCLICK="gotopage(' + i + ')">&nbsp;' + i + '&nbsp;' }
            else { numb_string = 'ONCLICK="gotopage(' + i + ')">' + i }
         // DIFFERENT STYLE IF IT'S THE PAGE WE'RE ON
            if (i == thispage) { document.write ('<A CLASS="yespage" ' + numb_string + '</A>'); } 
                else { document.write ('<A CLASS="notpage" ' + numb_string + '</A>'); } } 
        document.write('</P></DIV>'); }

 // FUNCTION TO MAKE CAPTION VISIBLE
    function toggle_caption(x, i) { 
        var x;     // 1 => called from PLUS, 0 => called from CAPT
        var i;     // which caption, if there are more than one
        var el_capt = document.getElementById("capt"+i);
        var el_plus = document.getElementById("plus"+i);
        if (el_capt.style.visibility == "visible") {
            el_capt.style.visibility = "hidden"; 
            el_plus.style.visibility = "visible"; }
        else if (x == 1) {
            el_capt.style.visibility = "visible"; 
            el_plus.style.visibility = "hidden"; } }

 // FUNCTION TO MAKE CAPTION VISIBLE
 //   function show_caption(x, i) { 
//alert("show");
 //       var el_capt = document.getElementById("capt"+i);
 //       var el_plus = document.getElementById("plus"+i);
 //       el_capt.style.visibility = "visible"; 
  //      el_plus.style.visibility = "hidden"; }

 // FUNCTION TO HIDE CAPTION
  //  function hide_caption(i) {   
//alert("hide");
   //     var el_capt = document.getElementById("capt"+i);
   //     var el_plus = document.getElementById("plus"+i);
    //    el_capt.style.visibility = "hidden"; 
   //     el_plus.style.visibility = "visible"; }

