// JavaScript Document

// This script finds nested UL items in the left nav and attaches the 
// class name "flyout" to the parent LI
function addStyle() {
	if (!document.getElementById) return false;
	var nav = document.getElementById("nav");
	var navUL = nav.getElementsByTagName("UL");
	for (var i=0; i<navUL.length; i++) {		
		if (navUL[i].parentNode.nodeName=="LI") {
			navUL[i].parentNode.className = "flyout";
		}
	}	
}

// end "flyout" script



// 8.29.2007 ariel Add in IE 6 auto-activate flash code

startList = function() {
	if (document.all&&document.getElementById) {

		navRoot = document.getElementById("nav");

		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];

			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
			    }
			
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
   				}
   				
   			} // end if
   		
  		}  // end for
	
	 }  // end if
 		  		
} // end startList function definition

 


// ------------------------------------------------------
//      8.28.2007
//		If IE 6 or higher, autoactivate the Flash control
// -------------------------------------------------------
		var browserName=navigator.appName; 
		var browserVer=parseInt(navigator.appVersion); 

		if ( (browserName=="Microsoft Internet Explorer") && (browserVer>=4) ) 
		  		AutoActivate(); 
 
// ------------------------------------------------------
function AutoActivate() {
// -------------------------------------------------------
// 8.28.2007 ariel
// Removes the required click-to-activate behaviour users experience with Flash.
// From: http://forums.swishzone.com/index.php?showtopic=34521
// dynActiveX.js code
// alert('autoactivated!');
  if (document.getElementsByTagName) {
    // Get all the tags of type object in the page.
      var objs = document.getElementsByTagName("object");

      for (i=0; i<objs.length; i++) {
        // Get the HTML content of each object tag
        // and replace it with itself.
        objs[i].outerHTML = objs[i].outerHTML;
      } // end for loop

   } // end if
   
} // end AutoActivate function







window.onload=function() {
addStyle();
startList();
// AutoActivate();
}