// JavaScript Document
	init = function() {
	  startList();
	  newTarget();

	}
	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";
						callFlash();
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
		}
	}
	
	newTarget = function(){
	// Fetch all the a elements in the document.
		var links = document.getElementsByTagName('a');		

		// Loop through the a elements in reverse order
		// for speed.
		for (var i = links.length; i != 0; i--) {
			
			// Pull out the element for this iteration.
			var a = links[i-1];
			
			// If the element doesn't have an href, skip it.
			if (!a.href) continue;

			// If the element has a className that contains
			// 'external' attach the new target.
			//A second className can be used to target a specific window name instead of "new"
			if (a.className && a.className.indexOf('external') != -1){
				var target = a.className
				target = target.replace("external", "");
				target = target.replace(" ", "");
				if (target == ""){
					target = "_blank"
				}
				a.target = target;
			}
		}	
	}
	
	callFlash = function(){
		var flash = document.getElementById("flashLogo");
		if (flash == undefined){
			return;
		}
		flash.nextImage()
	}
	
	goBack = function(){
		 window.history.back();
		 return  false;
	}
	
		
window.onload = init;

