	
	function openSoccer(){
		popup_x_pos = (screen.availWidth/2)-(750/2);
		popup_y_pos = (screen.availHeight/2)-(500/2);
		url = 'http://www.kellys-powerplay.com/kellyarena.php';
			window.open (url, "kellyarena", "width=860,height=645, top="+popup_y_pos+", left="+popup_x_pos+", resizable=no, scrollbars=no")
	}
	
	function getHelp(){
		popup_x_pos = (screen.availWidth/2)-(750/2);
		popup_y_pos = (screen.availHeight/2)-(500/2);
		url = 'help.php';
			window.open (url, "new", "width=665,height=500, top="+popup_y_pos+", left="+popup_x_pos+", resizable=no, scrollbars=yes")
	}
function initMenus() {
	if (!document.getElementsByTagName) return;
	
	var aMenus = document.getElementsByTagName("LI");
	for (var i = 0; i < aMenus.length; i++) {
		var mclass = aMenus[i].className;
		if (mclass.indexOf("treenode") > -1) {
			var submenu = aMenus[i].childNodes;
			for (var j = 0; j < submenu.length; j++) {
				if (submenu[j].tagName == "DIV" && submenu[j].className == "item2") {
					
					submenu[j].onclick = function() {
						var node = this.nextSibling;
											
						while (1) {
							if (node != null) {
								if (node.tagName == "UL") {
									var d = (node.style.display == "none")
									node.style.display = (d) ? "block" : "none";
									this.className = (d) ? "treeopen" : "treeclosed";
									return false;
								}
								node = node.nextSibling;
							} else {
								return false;
							}
						}
						return false;
					}
					
					submenu[j].className = (mclass.indexOf("open") > -1) ? "treeopen" : "treeclosed";
				}
				
				if (submenu[j].tagName == "UL")
					submenu[j].style.display = (mclass.indexOf("open") > -1) ? "block" : "none";
			}
		}
	}
}


function openRegeln() {
	printurl = "http://www.kellys.at/promotions/chipsregeln/index.html";
	window.open(printurl,"Regeln","width=753,height=503,left=100,top=100, scrollbars=no, toolbar=no");	
}

window.onload = initMenus;