// This script is used to open and active a given zone within the zonebar
// Within the page add a JavaScript array "zonesActive" that contains the
// <LI> zones you would like to activate.
// If you are opening a subnav list you should also use a style sheet to open
// (display :block;) to open that nav - just in case the javascript fails.

function zonesActivate() {
  if (zonesActive){
    for (i=0;i<zonesActive.length;i++) {
      var item = document.getElementById(zonesActive[i]);
  	  if (item){
  	    item.className+=" active";
  	  }
    }
  }
}

if ( window.addEventListener ) window.addEventListener( 'load', zonesActivate, false );
else if ( window.attachEvent ) window.attachEvent( 'onload', zonesActivate );
