// Declare globals:
// global array for page names
var pageName = new Array()
pageName[1] = 'index.htm'
pageName[2] = 'Conditions.htm'
pageName[3] = 'Prolo.htm'
pageName[4] = 'PRP.htm'
pageName[5] = 'About.htm'
pageName[6] = 'Contact.htm'
pageName[7] = 'Blog.htm'
// faux constant for the Top element (table containing everything in the body)
var top = 'Top'

// Navigation calls
    function Go_Internal(whichPage,whichId) {
			if (whichId == top) {
				destName = pageName[whichPage]
			}
			else {
				destName = pageName[whichPage] + '#' + whichId
			}
			document.location = destName
    } // [re: Go_Internal]


// Calls for NavStrip (behaviors for a table whose cells act as buttons that navigate the "pages"):

    // handle mouse entering a NavStrip cell
    function NavCell_Over(whichTD) {
      // derive page number from cell ID
      var cellNum = whichTD.id.slice(3);
      // only execute if the NavStrip cell does *not* correspond to the current page
//	    alert('OVER destNum: ' + destNum + ' | cellNum: ' + cellNum)
      if (cellNum != destNum) {
				// show border
        whichTD.style.borderBottomStyle = 'dotted'
        // change cursor
        whichTD.style.cursor ='pointer';
//	    alert(whichTD.style.borderBottomColor)
      }
    } // [re: NavCell_Over]
    
    // handle mouse leaving a NavStrip cell
    function NavCell_Out(whichTD) {
      var cellNum = whichTD.id.slice(3);
//     alert('OUT destNum: ' + destNum + ' | cellNum: ' + cellNum)
//       // only execute if the NavStrip cell does *not* correspond to the current page
       if (cellNum != destNum) {
      // hide the border
        whichTD.style.borderBottomStyle = 'none'
      // reset the cursor
      whichTD.style.cursor ='index';
       }
    } // [re: NavCell_Out]
    
    // handle onmouseup in NavStrip TD
    function NavCell_Up(whichTD) {
      // derive page number from cell ID
      var cellNum = whichTD.id.slice(3);
      // only execute if the NavStrip cell does *not* correspond to the current page
      if (cellNum != destNum) {
      	// set cell to non-current state
      	NavCell_Out(whichTD);
        // go to new "page"
        Go_Internal(cellNum,top);
      }
    } // [re: NavCell_Up]


