function refresh_screen()
{
     window.location.reload()
}
/****** this object holds all of the key data **********/
function Link(name, url)
{
        this.name = name;
        this.title = new Array();
        this.url = new Array();
}
/**************************************************************/
var names      = new Array ();
var temp       = new Array ();
var temp2               = new Array ();
var link       = new Link ();
var final_list = new Array ();
/******** array declaration... it holds all of the data for the menus ****/
var menu = new Array (
"Select Make...* |Select Model...",
"Cadillac* |Select Model...#" +
		"96.php|Escalade#" +
		"126.php|Escalade EXT",
"ChevGMC* |Select Model...#" +
		"89.php|Avalanche#" +
		"189.php|Colorado/Canyon#" +
        "102.php|Envoy#" +
		"80.php|Silverado HD#" +
        "108.php|TrailBlazer#" +
        "203.php|Yukon",
"Dodge* |Select Model...#" +
		"187.php|Durango#" +
        "87.php|Ram",
"Ford* |Select Model...#" +
        "1.php|Escape#" +
        "111.php|Expedition#" +
        "84.php|Explorer#"+
        "51.php|Explorer Sport#"+
        "159.php|E-Van#"+
        "177.php|F-150#" +
        "4.php|F-350#" +
        "52.php|Ranger",
"Honda* |Select Model...#" +
         "148.php|CRV#" +
		 "15.php|Passport#"+
		 "191.php|Pilot",
"Hummer* |Select Model...#" +
        "132.php|H2",
"Hyundai* |Select Model...#" +
        "185.php|Santa Fe",
"Isuzu* |Select Model...#" +
        "16.php|Rodeo#" +
        "17.php|Trooper",
"Jeep* |Select Model...#" +
        "180.php|Cherokee#" +
        "18.php|Grande Cherokee#" +
        "106.php|Liberty",
"Kia* |Select Model...#" +
        "170.php|Sorento#" +
        "19.php|Sportage",
"Lexus* |Select Model...#" +
		"200.php|RX 400#" +
		"158.php|GX 470#" +
        "20.php|LX 470#" +
        "21.php|RX 300#" +
        "173.php|RX 330",
"Lincoln* |Select Model...#" +
        "22.php|Navigator",
"Mazda* |Select Model...#" +
        "71.php|Tribute",
"Mercedes* |Select Model...#" +
        "135.php|M-Class",
"Mercury* |Select Model...#" +
        "26.php|Mountaineer",
"Mitsubishi* |Select Model...#" +
        "117.php|Montero#" +
        "28.php|Montero Sport",
"Nissan* |Select Model...#" +
        "69.php|Frontier#" +
        "178.php|Murano#" +
        "121.php|Pathfinder#" +
        "181.php|Titan#" +
        "118.php|Xterra",
"Toyota* |Select Model...#" +
        "137.php|4 Runner#" +
        "206.php|FJ Cruiser#" +
        "99.php|Highlander#" +
        "43.php|Land Cruiser#" +
        "122.php|RAV4#" +
        "68.php|Sequoia#" +
        "199.php|Tacoma#" +
        "125.php|Tundra");
/*****************************************************************/
function updateMenus ( what ) {
   var n = what.selectedIndex;
   what.form.myLinks.length = final_list[n].title.length;
   for (var x = 0; x < what.form.myLinks.length; x++)
   {
      what.form.myLinks.options[x].text = final_list[n].title[x];
      what.form.myLinks.options[x].value = final_list[n].url[x]; 
   }
   what.form.myLinks.selectedIndex = 0;
}
/**************************************************************/
function give_names () 
{
        document.myForm.main.length = names.length;
        document.myForm.myLinks.length = final_list[0].title.length;
        for ( var i=0; i<names.length; i++ )
                document.myForm.main.options[i].text = final_list[i].name;
        for (var x=0; x<final_list[0].url.length; x++)
                document.myForm.myLinks.options[x].value = final_list[0].url[x];
        for (var x=0; x<final_list[0].title.length; x++)
                document.myForm.myLinks.options[x].text = final_list[0].title[x];

}
/**************************************************************/
function createMenus () {

        for ( var i=0; i < menu.length; i++ )
        {
                names[i] = menu[i].split("*");
                
                link = new Link(names[i][0]);
                temp[i] = names[i][1].split("#");
                final_list[i] = link;
                for (var x=0; x<temp[i].length; x++)
                {
                        temp2[x]  = temp[i][x].split("|");
                        final_list[i].url[x] = temp2[x][0];
                        final_list[i].title[x] = temp2[x][1];
                }
        }
give_names();
}

/**************************************************************/

// end jscript hiding -->


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}
