/**
* @desc 	redirect browser to option value (as url)
**/
function selectLocation(selectId, newWin) {
	var selectBox = document.getElementById(selectId);
	var destination = selectBox.options[selectBox.selectedIndex].value;	
	if (destination) { 
		if(!newWin) {
			document.location.href = destination;
		} else {
			myWindow = window.open(destination, 'win', '')
		}
	}
}
/**
* @desc 	attach mouseevent functions to specific elements (IE hover bug)
**/
function fixIEHoverBug(ids) {
	if(document.all && document.getElementById) {			
		if(ids.length != 0) {
			for(var i=0; i<ids.length; i++) {
				root = document.getElementById(ids[i]);
				if(typeof(root) != 'object') break;
				for(var f = 0; f<root.childNodes.length; f++) {
					child = root.childNodes[f];
					if(typeof(child) != 'object') break;
					if(child.nodeName == "LI" && child.className == "") {
						child.onmouseover=function() {
							this.className+="over";
						}						
						child.onmouseout=function() {
							this.className=this.className.replace("over", "");
						}
					}
				}
			}
		}	
	}	
}
/**
* @desc 	call onload method and required functions
**/	
window.onload = function() {
	fixIEHoverBug(new Array('iehoverfix1','iehoverfix2'));	
}
