<!-- hide jscript from old browsers 
/****** 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 One*0|Select Main First",
"Business*7|Business Info#"
+ "8|Chambers of Commerce#"
+ "10|Financial#"
+ "9|Free Business Listing#"
+ "11|Insurance#"
+ "12|Mortgage#"
+ "18|Homes - Builders#"
+ "19|Homes - Realtors#"
+ "20|Homes - Associations#"
+ "14|Restaurants#"
+ "33|Services - Accounting#"
+ "34|Services - Automotive#"
+ "43|Services - Computer#"
+ "44|Services - Internet - ISPs#"
+ "45|Services - Internet - Web Hosting#"
+ "46|Services - Internet - Web Designers#"
+ "47|Services - Internet - Web Misc.#"
+ "48|Services - Internet - Directories#"
+ "36|Services - Health Care#"
+ "37|Services - Horses#"
+ "95|Services - Lawn Care#"
+ "38|Services - Misc.#"
+ "39|Services - Printing#"
+ "40|Services - Security#"
+ "41|Services - Transportation#"
+ "42|Services - Sports#"
+ "21|Shopping - Antiques#"
+ "22|Shopping - Automobile#"
+ "23|Shopping - Apparel#"
+ "24|Shopping - Art#"
+ "25|Shopping - Computers#"
+ "26|Shopping - Gifts#"
+ "27|Shopping - Motorcycles#"
+ "28|Shopping - Pools#"
+ "29|Shopping - Ranch Supplies#"
+ "30|Shopping - Hobbies#"
+ "31|Shopping - Imports#"
+ "32|Shopping - Misc.#"
+ "17|Travel",
"Churches*49|Church Websites#"
+ "50|Religion - Information#"
+ "51|Religion - Events",
"Community*52|Clubs#"
+ "53|Communities#"
+ "54|Consumer Information#"
+ "55|Family#"
+ "56|Health Care#"
+ "57|Libraries#"
+ "58|Radio TV and Newspapers#"
+ "59|Parks#"
+ "60|Personal Information#"
+ "61|Personal Webpages#"
+ "62|Public Utilities#"
+ "63|Recycling Centers#"
+ "64|Sports#"
+ "65|Theatre Information",
"Education*69|Educational Sites#"
+ "70|Educational Information#"
+ "72|School Websites#"
+ "73|Public Schools",
"Government*74|Election Information#"
+ "79|Local Government - Crystal River#"
+ "80|Local Government - Inverness#"
+ "77|Law Enforcement#"
+ "78|Government General",
"County Information*81|Monthly Events#"
+ "82|Emergency Information#"
+ "83|Entertainment#"
+ "84|General Information#"
+ "85|History#"
+ "86|Manatee Information#"
+ "87|Manatee Related Websites#"
+ "91|Tourism Information - Accommodations#"
+ "92|Tourism Information - Camping#"
+ "93|Tourism Information - Parks and Museums#"
+ "94|Tourism Information - Attractions and Activities");

/*****************************************************************/
function stringSplit ( string, delimiter ) {
    if ( string == null || string == "" ) {
   return null ;
    } else if ( string.split != null ) {
   return string.split ( delimiter ) ;
    } else {
   var ar = new Array() ;
   var i = 0 ;
   var start = 0 ;
   while( start >= 0 && start < string.length ) {
       var end = string.indexOf ( delimiter, start ) ;
       if( end >= 0 ) {
      ar[i++] = string.substring ( start, end ) ;
      start = end+1 ;
       } else {
      ar[i++] = string.substring ( start, string.length ) ;
      start = -1 ;
       }
   }
   return ar ;
    }
}
/**************************************************************/
function updateMenus ( what ) {
   var n = what.selectedIndex;
   what.form.subCategory.length = final_list[n].title.length;
   for (var x = 0; x < what.form.subCategory.length; x++)
   {
      what.form.subCategory.options[x].text = final_list[n].title[x];
      what.form.subCategory.options[x].value = final_list[n].url[x]; 
   }
   what.form.subCategory.selectedIndex = 0;
}
/**************************************************************/
function give_names () {
   document.myForm.main.length = names.length;
   document.myForm.subCategory.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.subCategory.options[x].text = final_list[0].title[x];
}
/**************************************************************/
function createMenus () {
   for ( var i=0; i<menu.length; i++ ){
      names[i] = stringSplit (menu[i], '*' );
      link = new Link(names[i][0]);
      temp[i] = stringSplit(names[i][1], '#');
           final_list[i] = link;
        for (var x=0; x<temp[i].length; x++){
              temp2[x]  = stringSplit( temp[i][x], '|' );
                final_list[i].url[x] = temp2[x][0];
                        final_list[i].title[x] = temp2[x][1];
                }
        }
give_names();
}

function tempMsg () {
   msg="I've disabled the Go button so that you could stay on this page an experiment. Live example is available at Matt Reinfeldt's home page."
   alert (msg)
}

/**************************************************************/
// end jscript hiding -->

