// *****************************************************************
// * This script is used to write the combo box that navigates you *
// * to the varius skins pages                                     *
// *****************************************************************

function MakeArray()
        {
        this.length = MakeArray.arguments.length
        for (var i = 0; i < this.length; i++)
        this[i+1] = MakeArray.arguments[i]
        }

// **********************************************************
var pageopt = new MakeArray("--== Go to Skins Page ==--",
							"New Skins",
							"The Best Page 1",
							"The Best Page 2",
							"The Best Page 3",
							"The Rest Page 1",
							"The Rest Page 2");
// **********************************************************

// **********************************************************
var url = new MakeArray(" ",
						"index",
						"best1",
						"best2",
						"best3",
						"rest1",
						"rest2");
// **********************************************************

// -------------------------------------------------------------------
// This function is called when the user changes the combo box value

function changePage(ref) {
  if (ref.options[ref.selectedIndex].value != ' ') {
     self.location.href = ref.options[ref.selectedIndex].value + ".htm"
     nPos = 0
}}

// -------------------------------------------------------------------

// -------------------------------------------------------------------
// This part writes the HTML for the <option>

document.write("<select name=\"selectTag\" onChange=\"changePage(this)\" size=\"1\">");

tot = pageopt.length;
for (var i = 1; i <= tot; i++)
document.write("<option value=\"" + url[i] + "\">" + pageopt[i] + "</option>");

document.write('</select>');
// -------------------------------------------------------------------
