<!--

// Begin General Initialization Scripts
 // This section MUST be first

	// ----------------------------------------------------------------------------
	//  Global Variables
	// ----------------------------------------------------------------------------

	var isDHTML = false ;       // is the browser DHTML capable?
	var isNetscape = false ;    // is the browser Netscape 4?
	var isMozilla = false ;     // is the browser Netscape 6 (Mozilla)?
	var isMSIE = false ;        // is the browser MS Internet Explorer?
	var isMac = false ;         // is the platform a Macintosh?
	var styleSheet = "" ;       // browser-specific CSS style sheet name
	var origWidth = 0 ;         // previous window size; used to detect resize
	var origHeight = 0 ;        // previous window size; used to detect resize


	// ----------------------------------------------------------------------------
	//  Functions
	// ----------------------------------------------------------------------------

	//  NSresize() - force page reload if resized in Netscape
	function NSresize() {
	  if (innerWidth != origWidth || innerHeight != origHeight) {
	    location.reload();
	  }
	}


	// ----------------------------------------------------------------------------
	//  Runtime Code
	// ----------------------------------------------------------------------------

	// Determine platform, set up proper style sheet

	// Test the DOM to determine DHTML capability
	if ( document.layers || document.all || document.getElementById ) { 

	  isDHTML = true ;

	  // Test appName to determine platform, set up style sheet reference
	  // NOTE: change the stylesheet references to match your directory structure!
	  if ( (navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4) ) {
	    isNetscape = true ;
	    styleSheet = "css/styles-nav.css" ;
	    if (navigator.platform == "MacPPC") {
	      isMac = true ;
	      styleSheet = "css/styles-macnav.css" ;
	    }
	  } 
	  else if ( (navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 5) ) {
	    isMozilla = true ;
	    styleSheet = "css/styles-mozilla.css" ;
	  } 
	  else if (navigator.appName == "Microsoft Internet Explorer") {
	    isMSIE = true
	    styleSheet = "css/styles-ie.css" ;
	  }

	  // Load appropriate stylesheet for platform
	  document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + styleSheet + "\">") ;

	  // Trap Netscape window-resize bug
	  if (isNetscape) {
	    origWidth = innerWidth;
	    origHeight = innerHeight;
	  }
	  if (isNetscape) {
	      onResize = NSresize;
	  }

	}


// End General Initialization Scripts
// Begin DHTML Menu Scripts

	// ----------------------------------------------------------------------------
	//  Global Variables
	// ----------------------------------------------------------------------------

	var activeMenu = "" ;  // ID of Menu currently shown: "" = no menu shown


	// ----------------------------------------------------------------------------
	//  Functions
	// ----------------------------------------------------------------------------

	//  showMenu() - Make selected menu visible
	function showMenu(menuID) {
	  if (isMozilla) {
	    document.getElementById(menuID).style.visibility = "visible" ;
	  }
	  else if (isNetscape) {
	    document.layers[menuID].visibility = "visible" ;
	  }
	  else if (isMSIE) {
	    document.all[menuID].style.visibility = "visible" ;
	  }
	}

	//  hideMenu() - Make selected menu invisible
	function hideMenu(menuID) {
	  if (isMozilla) {
	    document.getElementById(menuID).style.visibility = "hidden" ;
	  }
	  else if (isNetscape) {
	    document.layers[menuID].visibility = "hidden" ;
	  }
	  else if (isMSIE) {
	    document.all[menuID].style.visibility = "hidden" ;
	  }
	}

	//  turnOff() - Select menu by ID, then hide it
	function turnOff() {
	  if (activeMenu) {
	    menuID = activeMenu;
	    hideMenu(activeMenu);
	    activeMenu = "";
	  }
	}

	//  activateMenu() - Select menu by ID, then show it
	function activateMenu(menuID) {
	  if (isDHTML && activeMenu != menuID) {
	    if (activeMenu) {
	      hideMenu(activeMenu);
	    }
	    activeMenu = menuID;
	    showMenu(menuID)
	  }
	}


	// ----------------------------------------------------------------------------
	//  Runtime Code
	// ----------------------------------------------------------------------------

	// Capture clicks; deactivate menus on click
	if (isDHTML) {
	  if (isNetscape) {
	    document.captureEvents(Event.MouseUp);
	  }
	  document.onmouseup = turnOff;
	}

// End DHTML Menu Scripts
// Begin ShowDate Scripting

	 // Get around possible lack of Array() operator
	 function makeMonthArray() {
	     this.length=12;
	     this[1]  = "January";  this[2]  = "February"; this[3]  = "March";
	     this[4]  = "April"; this[5]  = "May";  this[6]  = "June";
	     this[7]  = "July";  this[8]  = "August"; this[9]  = "September";
	     this[10] = "October";  this[11] = "November"; this[12] = "December";
	     return this;
	 }

	 // Get around possible lack of Array() operator
	 function makeDayArray() {
	     this.length=7;
	     this[1] = "Sunday"; this[2] = "Monday";   this[3] = "Tuesday";
	     this[4] = "Wednesday"; this[5] = "Thursday"; this[6] = "Friday";
	     this[7] = "Saturday";
	     return this;
	 }

	 function _getFullYear() {
	     var y = this.getYear();
	     if (y < 1000) y += 1900;
	     return y;
	 }

	 // Write a date of the form "Day., Month DD, YYYY"
	 function writeDate() {
	     now = new Date();
	     if (!now.getFullYear) now.getFullYear = _getFullYear;
	     monthName = new makeMonthArray(); dayName = new makeDayArray();

	     document.write (dayName[now.getDay() + 1] + ", " + monthName[now.getMonth() + 1] + " " + now.getDate() + ", " + now.getFullYear());
	 }

// End ShowDate Scripting
// Begin Pop-Up Scripting
      // Open link in a pop-up window
      function pop(url,target) {
        // Check for Kiosk cookie
        if (parseInt(document.cookie.indexOf('kiosk=Y',0)) < 0)
          window.open('',target,'width=610,height=350,resizable,scrollbars,menubar,location,toolbar');
        // For Kiosk, just open in main window
        else
          parent.location.href=url;
        }
            
      // Open Stocks 2 Go ticker
      function stocks2go() {
        // Check for Kiosk cookie
        if (parseInt(document.cookie.indexOf('kiosk=Y',0)) < 0)
          window.open('/stocks2go.html','stocks2go','width=350,height=100,resizable,scrollbars,menubar,location,toolbar');
        // For Kiosk, just open Financially Speaking
        else
          parent.location.href='/finance.html';
        }
       
      // Open Write Us form in a pop-up window
      function writepop(url,target) {
        // Check for Kiosk cookie
        if (parseInt(document.cookie.indexOf('kiosk=Y',0)) < 0)
          window.open('',target,'width=550,height=350,resizable,scrollbars,menubar,location,toolbar');
        // For Kiosk, just open in main window
        else
          parent.location.href=url;
        }
// End Pop-Up Scripting
// Begin NavRollOver Scripting
      if (document.images) {
      
        clientsOn = new Image;
        clientsOn.src = "../images/button-clients-on.gif"
        clientsOff = new Image;
        clientsOff.src = "../images/button-clients-off.gif"
        
        articlesOn = new Image;
        articlesOn.src = "../images/nav_articles-x.gif"
        articlesOff = new Image;
        articlesOff.src = "../images/nav_articles.gif"
        
        practiceOn = new Image;
        practiceOn.src = "../images/nav_practice-x.gif"
        practiceOff = new Image;
        practiceOff.src = "../images/nav_practice.gif"
        
        careersOn = new Image;
        careersOn.src = "../images/nav_careers-x.gif"
        careersOff = new Image;
        careersOff.src = "../images/nav_careers.gif"
        
        outreachOn = new Image;
        outreachOn.src = "../images/nav_outreach-x.gif"
        outreachOff = new Image;
        outreachOff.src = "../images/nav_outreach.gif"
        
        contactOn = new Image;
        contactOn.src = "../images/nav_contact-x.gif"
        contactOff = new Image;
        contactOff.src = "../images/nav_contact.gif"
        
        homeOn = new Image;
        homeOn.src = "../images/nav-home-on.gif"
        homeOff = new Image;
        homeOff.src = "../images/nav-home-off.gif"
        
      }
      
      function navOn(imgName) {
        if (document.images) {
          if (isMSIE) {
            document.images[imgName].src = eval(imgName + "On.src");
          }
          else if (isNetscape) {
            document.images[imgName].src = eval(imgName + "On.src");
          }
        }
      }
      
      function navOff(imgName) {
        if (document.images) {
          if (isMSIE) {
            document.images[imgName].src = eval(imgName + "Off.src");
          }
          else if (isNetscape) {
            document.images[imgName].src = eval(imgName + "Off.src");
          }
        }
      }

// End NavRollOver Scripting
//-->