<!-- 
// to shut off flyout when flash is playing, hasRightVersion was moved here
// refer to index.cfm for flash function.
var hasRightVersion

// Function to swap out images with activesection finds a match ===========================================
	function activestatebutton () {
		if (activesection == "finHigh") {
			document["one"].src = "../images\/n_fh_active.gif";
		} else if (activesection == "chairLet") {
			document["two"].src = "../images\/n_cl_active.gif";
		} else if (activesection == "howGrow") {
			document["three"].src = "../images\/n_hwg_active.gif";
		} else if (activesection == "busLines") {
			document["four"].src = "../images\/n_bl_active.gif";
		} else if (activesection == "finReview") {
			document["five"].src = "../images\/n_fr_active.gif";
		} else if (activesection == "corpInfo") {
			document["six"].src = "../images\/n_ci_active.gif";
		} else {
		}
	}
	
// Function for RTB flyout ===========================================
var activeSub=0;
var SubNum=0;

    //Define global variables

	    var timerID = null;
		var timerOn = false;
		var timecount = 150;
		var what = null;
		var newbrowser = true;
		var check = false;

    	function init(){
    	//  alert ("Running Init");
          if (document.layers) {
                      	//alert ("Running Netscape 4");
                        layerRef="document.layers";
                        styleSwitch="";
                        visibleVar="show";
						screenSize = window.innerWidth;
						what ="none";
          }else if(document.all){
                      	//alert ("Running IE");
                        layerRef="document.all";
                        styleSwitch=".style";
                        visibleVar="visible";
						screenSize = document.body.clientWidth + 18;
						what ="ie";
		  }else if(document.getElementById){
                      	//alert ("Running Netscape 6");
			            layerRef="document.getElementByID";
			            styleSwitch=".style";
			            visibleVar="visible";
						what="moz";
		  }else{
		  				//alert("Older than 4.0 browser.");
						what="none";
						newbrowser = false;
		  }
				check = true;
  	 	}

	// Turns the layers on and off
        function showLayer(layerName){
        	if(check){
        		if (what =="none"){
        			return;
        			}
	        	else if (what == "moz"){
        			document.getElementById(layerName).style.visibility="visible";
        			}
        		else{
                  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
                  }
		 }
        	else {// alert ("Please wait for the page to finish loading.");
        		return;}
		}

        function hideLayer(layerName){
        	if(check){
				if(hasRightVersion){
					what="none";
					}
        		if (what =="none"){
        			return;
        			}
        		else if (what == "moz"){
        			document.getElementById(layerName).style.visibility="hidden";
        			}
        		else{
                  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
				}
        	}
        	else {// alert ("Please wait for the page to finish loading.");
        		return;}
        }

		function hideAll(){
				hideLayer('rtb_menu'); // add more flyout menu ID names here example: next line hideLayer('fr_menu');!
				}

		function startTime() {
	        if (timerOn == false) {
                timerID=setTimeout( "hideAll()" , timecount);
                timerOn = true;
	        }
		}


		function stopTime() {
	        if (timerOn) {
    	        clearTimeout(timerID);
                timerID = null;
                timerOn = false;
	        }
		}

		function onLoad(){
			init();
			}
			
			
//-----------------------------------------------------------------------------------------------------
//--------------------- 					ROLLOVER SCRIPT 		----------------------------------
//-----------------------------------------------------------------------------------------------------

			var imgObj = (document.images)? 1:0;
			
			if (imgObj) {
			
			        var n_1_off = new Image();
			        var n_1_on = new Image();
			        var n_2_off = new Image();
			        var n_2_on = new Image();
			        var n_3_off = new Image();
			        var n_3_on = new Image();
			        var n_4_off = new Image();
			        var n_4_on = new Image();
			        var n_5_off = new Image();
			        var n_5_on = new Image();
			        var n_6_off = new Image();
			        var n_6_on = new Image();
			
			        n_1_off.src = "../images\/n_fh.gif";
			        n_1_on.src = "../images\/n_fh_active.gif";
			        n_2_off.src = "../images\/n_cl.gif";
			        n_2_on.src = "../images\/n_cl_active.gif";
			        n_3_off.src = "../images\/n_hwg.gif";
			        n_3_on.src = "../images\/n_hwg_active.gif";
			        n_4_off.src = "../images\/n_bl.gif";
			        n_4_on.src = "../images\/n_bl_active.gif";
			        n_5_off.src = "../images\/n_fr.gif";
			        n_5_on.src = "../images\/n_fr_active.gif";
			        n_6_off.src = "../images\/n_ci.gif";
			        n_6_on.src = "../images\/n_ci_active.gif";
			
			        }
			
			function imageOn(name) {
				if (imgObj) {
					document.images[name].src = eval(name+'_on').src;
				 }
			}
			
			function imageOff(name) {
				if (imgObj) {
					document.images[name].src = eval(name+'_off').src;
				}
			}

			//-->
			
	//search button roll script		
<!--
function submit_search(){ document.SiteSearchForm.submit(); }

function bt_rollover(ref, classRef) { eval(ref).className = classRef; }

function create_button(text, href, css_class, onclick_evt, onmouseover_evt, onmouseout_evt, tabindex, txt_title) {
	var t = "";
	if (( document.getElementById )||( document.all )) {
		// browser implements part of W3C DOM HTML
		// Gecko, Internet Explorer 5+, Opera 5+
		// Internet Explorer 4 or Opera with IE user agent
		t = "<div class=" + css_class + "><a href=\"" + href + "\" class=" + css_class
		  + " onFocus='bt_rollover(this, \"" + css_class + "-over\")'"
		  + " onBlur='bt_rollover(this, \"" + css_class + "\")'";

		if (onclick_evt) { t = t + " onClick=\"" + onclick_evt + "\""; }
		if (onmouseover_evt) { t = t + " onMouseOver=\"" + onmouseover_evt + "\""; }
		if (onmouseout_evt) { t = t + " onMouseOut=\"" + onmouseout_evt + "\""; }
		if (tabindex) { t = t + " tabindex=\"" + tabindex + "\""; }
		if (txt_title) { t = t + " title=\"" + txt_title + "\""; }
		t = t + ">" + text + "<\/a><\/div>";

	} else if ( document.layers ) {
		// Netscape 4
		t = "<input type=submit  name=" + text + " value=" + text + " alt=" + text + " class=" + css_class + ">";
	}
	document.write(t);
}
//-->

			
			