// Manajemen Bisnis IPB Javascript
// Author: Manajemen Bisnis IPB
// Created by: Gage Batubara (www.sevneova.net)
// Date: April 2007


//FLYOUT MENU
function startList() {
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById("menu");
			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", "");
					}
				}
			}
		}
	}
	

//OPEN EXTERNAL WINDOW
function relTags() {

	if (document.getElementsByTagName) {
		
			var anchors = document.getElementsByTagName( "a" );
			
			for (var loop = 0; loop < anchors.length; loop++) {
				
				var anchor = anchors[loop];
				if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
					anchor.target = "_blank";
				}
			}
		}
	}


window.onload = function() {
	startList();
	relTags();
}