	
	
	var TheBrowserName = navigator.appName;
			var TheBrowserVersion = parseFloat(navigator.appVersion);
			
			function MM_findObj(n, d) { //v4.0
			  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
			    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
			  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
			  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
			  if(!x && document.getElementById) x=document.getElementById(n); return x;
			}
			
			function MM_showHideLayers() { //v3.0
				if (!((TheBrowserName == 'Netscape') && (TheBrowserVersion < 5))) {
					var i,p,v,obj,args=MM_showHideLayers.arguments;
					for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
						if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
						obj.visibility=v; }
				}
			}


// Real Media Ad Code - Start
if(OAS_listpos!="0") {
	OAS_url='http://ads.traderonline.com/RealMedia/ads/';
	// OAS_sitepage, OAS_listpos, and OAS_query set in nav.templ - KTS
	OAS_target='_blank';
	// End configuration
	OAS_version=10;
	OAS_rn= new String (Math.random());
	OAS_rns=OAS_rn.substring (2, 11);
	function OAS_NORMAL(pos) {
		document.write('<a href="' + OAS_url + 'click_nx.cgi/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" target="' + OAS_target + '">');
		document.write('<img src="' + OAS_url + 'click_nx.cgi/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" border="0" /></a>');
	}
	OAS_version=11;
	if (( navigator.userAgent.indexOf('Mozilla/3') !=-1) || (navigator.userAgent.indexOf('Mozilla/4.0 WebTV') !=-1))
		OAS_version=10;
	if (OAS_version >=11)
		document.write('<scr' + 'ipt type="text/javascript" src="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/script>');
	
	document.write('');
	function OAS_AD(pos) {
		if (OAS_version <=11)
			OAS_RICH(pos);
		else
			OAS_NORMAL(pos);
		}
}
// Real Media Ad Code - End


	// Validation for the city state form on the homepage
	function validate_citystate(form) {
        var errors = "";
        var valid = false;
        var undefined;
        req_fields = new Array('city', 'state');
        names_fields = new Array('City', 'State');
        validatetype_fields = new Array('text', 'text');
        for (i = 0; i < req_fields.length; i++) {
            valid = false;
            that = form.elements[req_fields[i]]
            if (that.type == 'select-one') {
                if (that.selectedIndex > 0) { valid = true; }
            }
            else {
                if (that.value.length > 0) { valid = true; }
            }
            if (valid) {
                if (document.all) {
                    that.style.background = 'white'
                }
            }
            else {
                errors += (names_fields[i] + '\n')
                if (document.all) {
                    that.style.background = 'e6eeff'
                }
            }
        }
        if (errors) {
            alert('You\'ve missed or didn\'t supply the proper values\nfor the following required field(s): \n\n' + errors + '\nYou must fill out these fields.');
            return false;
        }
        else {
            return true
        }
    }
	
    
    
	// Rollover js for the button on the top bar
    function rolloverImage(cellName, imageName) {
		if(document.images){document[cellName].src = imageName;}
	}
	
	
	
	