<!-- 
// 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 = "\/annualreport\/2004\/images\/state_finHigh.gif";
		} else if (activesection == "chairLet") {
			document["two"].src = "\/annualreport\/2004\/images\/state_chairLet.gif";
		} else if (activesection == "portrait") {
			document["three"].src = "\/annualreport\/2004\/images\/state_portrait.gif";
		} else if (activesection == "busLines") {
			document["four"].src = "\/annualreport\/2004\/images\/state_busLines.gif";
		} else if (activesection == "finReview") {
			document["five"].src = "\/annualreport\/2004\/images\/state_finReview.gif";
		} else if (activesection == "corpInfo") {
			document["six"].src = "\/annualreport\/2004\/images\/state_corpInfo.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 = "\/annualreport\/2004\/images\/inactive_finHigh.gif";
			        n_1_on.src = "\/annualreport\/2004\/images\/active_finHigh.gif";
			        n_2_off.src = "\/annualreport\/2004\/images\/inactive_chairLet.gif";
			        n_2_on.src = "\/annualreport\/2004\/images\/active_chairLet.gif";
			        n_3_off.src = "\/annualreport\/2004\/images\/inactive_portrait.gif";
			        n_3_on.src = "\/annualreport\/2004\/images\/active_portrait.gif";
			        n_4_off.src = "\/annualreport\/2004\/images\/inactive_busLines.gif";
			        n_4_on.src = "\/annualreport\/2004\/images\/active_busLines.gif";
			        n_5_off.src = "\/annualreport\/2004\/images\/inactive_finReview.gif";
			        n_5_on.src = "\/annualreport\/2004\/images\/active_finReview.gif";
			        n_6_off.src = "\/annualreport\/2004\/images\/inactive_corpInfo.gif";
			        n_6_on.src = "\/annualreport\/2004\/images\/active_corpInfo.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;
				}
			}

			//-->

			
			