function Is3() {
    var agent = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
    this.ns3up = (this.ns && (this.major >= 3));
}

var is3 = new Is3();

function writeFlashMenu() {
   document.write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0\" ID=sc WIDTH=425 HEIGHT=240>\n");
   document.write("<PARAM NAME=movie VALUE=\"sc.swf\">\n");
   document.write("<PARAM NAME=quality VALUE=high>\n");
   document.write("<PARAM NAME=bgcolor VALUE=#FFFFFF>\n");
   document.write("<EMBED src=\"sc.swf\" quality=high bgcolor=#FFFFFF  WIDTH=425 HEIGHT=240\n");
   document.write("TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED></OBJECT>\n");
}

function writeNonFlashMenu() {
	document.write("<table width=\"425\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n");
	document.write("<tr valign=\"top\"><td><img src=\"images/sc_map.gif\" width=\"321\" height=\"223\" border=\"0\" alt=\"\" usemap=\"#sc\"></td>\n");
	document.write("<td><p><b>States of the South Central Region </b><br>Click on the state below, on \n");
	document.write("the map to the left, or on the left sidebar.</p><br>\n");
	document.write("<p class=\"level1\">1. <a href=\"browse.phtml?sid=al\" class=\"level1\">Alabama</a><br>\n");
	document.write("2. <a href=\"browse.phtml?sid=ar\" class=\"level1\">Arkansas</a><br>\n");
	document.write("3. <a href=\"browse.phtml?sid=ky\" class=\"level1\">Kentucky</a><br>\n");
	document.write("4. <a href=\"browse.phtml?sid=la\" class=\"level1\">Louisiana</a><br>\n");
	document.write("5. <a href=\"browse.phtml?sid=ms\" class=\"level1\">Mississippi</a><br>\n");
	document.write("6. <a href=\"browse.phtml?sid=ok\" class=\"level1\">Oklahoma</a><br>\n");
	document.write("7. <a href=\"browse.phtml?sid=tn\" class=\"level1\">Tennessee</a><br>\n");
	document.write("8. <a href=\"browse.phtml?sid=tx\" class=\"level1\">Texas</a><br>\n");
	document.write("</p></td></tr></table>\n");
}


