<!-- 
// to shut off flyout when flash is playing, hasRightVersion was moved here
// refer to index.cfm for flash funciton.
var hasRightVersion

// Function to swap out images with activesection finds a match ===========================================
	function activestatebutton () {
		if (activesection == "chairman_letter") {
			document["one"].src = "\/annualreport\/2003\/images\/n_cl.gif";
		} else if (activesection == "financial_performance") {
			document["two"].src = "\/annualreport\/2003\/images\/n_fh.gif";
		} else if (activesection == "raising_the_bar") {
			document["three"].src = "\/annualreport\/2003\/images\/n_rhb.gif";
		} else if (activesection == "financial_review") {
			document["four"].src = "\/annualreport\/2003\/images\/n_fr.gif";
		} else if (activesection == "directors_officers") {
			document["five"].src = "\/annualreport\/2003\/images\/n_dao.gif";
		} else if (activesection == "corp_info") {
			document["six"].src = "\/annualreport\/2003\/images\/n_ci.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_cl_off = new Image();
			        var n_cl_on = new Image();
			        var n_fh_off = new Image();
			        var n_fh_on = new Image();
			        var n_rhb_off = new Image();
			        var n_rhb_on = new Image();
			        var n_fr_off = new Image();
			        var n_fr_on = new Image();
			        var n_dao_off = new Image();
			        var n_dao_on = new Image();
			        var n_ci_off = new Image();
			        var n_ci_on = new Image();
			
			        n_cl_off.src = "\/annualreport\/2003\/images\/n_cl_off.gif";
			        n_cl_on.src = "\/annualreport\/2003\/images\/n_cl_on.gif";
			        n_fh_off.src = "\/annualreport\/2003\/images\/n_fh_off.gif";
			        n_fh_on.src = "\/annualreport\/2003\/images\/n_fh_on.gif";
			        n_rhb_off.src = "\/annualreport\/2003\/images\/n_rhb_off.gif";
			        n_rhb_on.src = "\/annualreport\/2003\/images\/n_rhb_on.gif";
			        n_fr_off.src = "\/annualreport\/2003\/images\/n_fr_off.gif";
			        n_fr_on.src = "\/annualreport\/2003\/images\/n_fr_on.gif";
			        n_dao_off.src = "\/annualreport\/2003\/images\/n_dao_off.gif";
			        n_dao_on.src = "\/annualreport\/2003\/images\/n_dao_on.gif";
			        n_ci_off.src = "\/annualreport\/2003\/images\/n_ci_off.gif";
			        n_ci_on.src = "\/annualreport\/2003\/images\/n_ci_on.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;
				}
			}

//-----------------------------------------------------------------------------------------------------
//--------------------- 				for common Inquira functionality 		----------------------------------
//-----------------------------------------------------------------------------------------------------

function EventWrapper(p_event, p_browser)
{
    // Member variables
    this.event    = p_event;
    this.browser  = p_browser;

    // Key constants
    this.key       = new Object();
    this.key.ENTER = 13;
}

function _EventWrapper_isKeyPress(p_keycode)
{
    var keyCode = this.browser.isNetscape() ? this.event.which : this.event.keyCode;

    if (keyCode == p_keycode)
       return true;
    else
       return false;
}

function _EventWrapper_getElement()
{
    if (this.browser.isIE())
        return this.event.srcElement;
    else if (this.browser.isNetscape())
        return this.event.target;
}

EventWrapper.prototype.isKeyPress    = _EventWrapper_isKeyPress;
EventWrapper.prototype.getElement    = _EventWrapper_getElement;

var qna_browser = new Browser();

function Browser()
{
    this.name = window.navigator.appName.toLowerCase();
    this.version = window.navigator.appVersion;
}


function _Browser_isNetscape()
{
    return (this.name == "netscape")
}


function _Browser_isIE()
{
    return (this.name == "microsoft internet explorer")
}



Browser.prototype.isNetscape    = _Browser_isNetscape;
Browser.prototype.isIE          = _Browser_isIE;

function handleKeyPress_QuestionBox(p_evt)
{
    var ew = new EventWrapper(p_evt, qna_browser);

    if (ew.isKeyPress(ew.key.ENTER))
    {
        // Submit the question
        ew.getElement().blur();
        document.question_form.submit();
    }

    return true;
}


function handleOnLoad()
{
    if (document.question_form != null
        && document.question_form.question_box != null)
    {
        document.question_form.question_box.focus();
    }

    return true;
}


//window.onload = handleOnLoad;

			//-->