// Page Navagator pnPart1 (14-February-2009)
// by Vic Phillips http://www.vicsjavascripts.org.uk/

// A Select List to Navigate to Page Anchors or External URLS
// On Selection the page is scrolled to the anchor Y position
// and the Page Navigator is positioned in the orignial window position
// The Page Navigator may include a KeyWord Search Facility.

// Application Notes and Customising Variables

// Application Note

// There are four parts
// pnPart1 - Application Notes and Customising Variables
// pnPart2 - The Page Navigator Select List only
// pnPart3 - A panel with The Page Navigator Select List and KeyWord Search
// pnPart4 - Progressive Scroll facility

// Anchors must have a unique id

// Initialised with a <body> onload event
// <body onload="onload="pnInitPageNav()" >

// The KeyWord Search is based on the words in 'pnNavAry' array  field 0

// The Select List will scroll to or link to  'pnNavAry' array  field 1.
// The KeWord selection will default to link to  'pnNavAry' array  field 2
// or if field 2 is null scroll to or link to  'pnNavAry' array  field 1.

// The Select List position and appearance are defined in customising variables

// The Select List text and value(links) are specified in a dimensioned array 'pnNavAry'.

// All variable, function etc. names are prefixed with 'pn' to minimise conflicts with other javascripts


// Customising Variables

var pnZIndex=10;          // Page Navigator will need to be above other page elements (digits)
var pnTop=10;             // the initial top(Y)  position of the Page Navigator       (digits)
var pnLeft=10;            // the initial left(X) position of the Page Navigator       (digits)
var pnWidth=190;          // the SelectList width                                     (digits)
var pnMaxHeight=350;      // the maximum height of the KeyWord Search Panel           (digits)
var pnTxtSize=12;         // the text size                                            (digits)
var pnTxtColor1='black';  // the SelectList text color                                (string)
var pnBGColor1='#FFFFCC'; // the SelectList background color                          (string)
var pnTxtColor2='black';  // the KeyWord Search Panel text color                      (string)
var pnBGColor2='#FFCC66'; // the KeyWord Search Panel text color                       (string)
var pnSpeed=10;  // required to set progressive scroll speed - set to pnSpeed=null if not required.



var pnParth='../';


