//<!-- Original:  John Soul (john@cjsi.com) -->
//<!-- Web Site:  http://www.cjsi.com/ -->
//<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

//<!--	modified by The Clamp Guy to be callable from body	-->

//<!-- This script and many more are available free online at -->
//<!-- The JavaScript Source!! http://javascript.internet.com -->

//<!-- Begin
// Initiate a new array containing all the navigation hyperlinks that loads on startup
// The 'htm' extension for the link is added by the script

//initialize the variables for indexing data
x=1; //initialize the first variable
y=8; //initialize the variable used to reset the buttons on mouse out
// unassigned links go to site

linx = new Array()
linx[1] = new Array(); //First set of links for the first top level category
linx[1][1] = "mkwc";
linx[1][2] = "mkcc";
linx[1][3] = "mkbc";
linx[1][4] = "brnd";
linx[1][5] = "site";
linx[1][6] = "dlrs";
linx[1][7] = "onrs";
linx[1][8] = "vntr";


linx[2] = new Array(); //Second set of Links for 2nd top level cateogry
linx[2][1] = "hist";
linx[2][2] = "mdls";
linx[2][3] = "ptnt";
linx[2][4] = "grfx";
linx[2][5] = "site";
linx[2][6] = "site";
linx[2][7] = "stat";
linx[2][8] = "frgn";

linx[3] = new Array(); //Third set of Links for the 3rd top level cateogry
linx[3][1] = "care";
linx[3][2] = "site";
linx[3][3] = "site";
linx[3][4] = "fgid";
linx[3][5] = "site";
linx[3][6] = "site";
linx[3][7] = "site";
linx[3][8] = "prix";

linx[4] = new Array(); //Third set of Links for the 4th top level cateogry
linx[4][1] = "ntro";
linx[4][2] = "site";
linx[4][3] = "link";
linx[4][4] = "plcy";
linx[4][5] = "hnrs";
linx[4][6] = "rsrc";
linx[4][7] = "site";
linx[4][8] = "wcj";

linx[5] = new Array(); //Fourth set of Links for the 5th top level cateogry
linx[5][1] = "comm";
linx[5][2] = "comm";
linx[5][3] = "comm";
linx[5][4] = "comm";
linx[5][5] = "comm";
linx[5][6] = "comm";
linx[5][7] = "comm";
linx[5][8] = "comm";


//This is the function populates the first set of buttons ...
function rollover1() {
document.menu.nav1.value = "All Wooden";
document.menu.nav2.value = "Wood and Metal";
document.menu.nav3.value = "Bar Clamps";
document.menu.nav4.value = "Brands";
document.menu.nav5.value = "";
document.menu.nav6.value = "Dealers";
document.menu.nav7.value = "Owners";
document.menu.nav8.value = "Inventors";
document.menu.dummy.value = 1;
x = document.menu.dummy.value;
return(x);
}
//Function populates the second set of buttons ...
function rollover2() {
document.menu.nav1.value = "History";
document.menu.nav2.value = "Models";
document.menu.nav3.value = "Patents";
document.menu.nav4.value = "Graphics";
document.menu.nav5.value = "";
document.menu.nav6.value = "";
document.menu.nav7.value = "Domestic";
document.menu.nav8.value = "Foreign";
document.menu.dummy.value = 2;
x = document.menu.dummy.value;
return(x);
}
//Function populates the third set of buttons ...
function rollover3() {
document.menu.nav1.value = "Care and Handling";
document.menu.nav2.value = "";
document.menu.nav3.value = "";
document.menu.nav4.value = "Field Guide";
document.menu.nav5.value = "";
document.menu.nav6.value = "";
document.menu.nav7.value = "";
document.menu.nav8.value = "Prices";
document.menu.dummy.value = 3;
x = document.menu.dummy.value;
return(x);
}
//Function populates the fourth set of buttons ...
//too bad to lose News and Find, but ...
function rollover4() {
document.menu.nav1.value = "Introduction";
document.menu.nav2.value = "";
document.menu.nav3.value = "Links";
document.menu.nav4.value = "Policies";
document.menu.nav5.value = "Thanks";
document.menu.nav6.value = "Research";
document.menu.nav7.value = "";
document.menu.nav8.value = "Journal";
document.menu.dummy.value = 4;
x = document.menu.dummy.value;
return(x);
}


//This sends 
function go2url(hlink) {
// set temporary variable temp1 to the value of the dummy hidden field
var temp1 = document.menu.dummy.value;
// set the temporary variable temp2 to link array
var temp2 = (linx[temp1][hlink]);
// Construct the url for the link to point to
window.location = ""+temp2+".htm";
// could put http://www.whatever.com/ in first string
}


//If there are no lower tier navigation buttons, this function closes the buttons as the mouse moves off the prevoius link to this.
function rollout() {
//
for (var j=0; j<y; j++) {
document.menu.elements[j].value = "            ";
   }
}
//  End 