/** 
 * Simple javascript functions
 * 
 * @author Benjamin Hackl
 * @date 2008-06-11
 * @version 1
 * Copyright(c) 2008 Focus Media Research
 */

function jumpTo(url) {
  if (url != "#" && url != "") window.location = url;
}

function newWindow(url) {
  if (url != "#" && url != "") window.open(url, "newwin");
}
function dropDownMenu() {
	if (navigator.appVersion.indexOf("MSIE") == -1) { return; }
	// Only for IE
	var i, k, g, lg, r = /\s*dropMenuhvr/, nn='', c, cs = 'dropMenuhvr', bv = 'dropMenu';
	for(i = 0; i < 10; i++) {
		g = document.getElementById(bv);
		if (g) {
			lg = g.getElementsByTagName("li");
			if (lg) {
				for(k = 0; k < lg.length; k++) {
					lg[k].onmouseover = function() {
						c = this.className;
						cl= (c) ? c + ' ' + cs : cs;
						this.className = cl;
					};
					lg[k].onmouseout = function() {
						c = this.className;
						this.className = (c) ? c.replace(r, '') : '';
					};
				} // for
			} // if
		} // if
		nn=i+1;
	}
}
