		function newWindow(url,name,width,height) 
		{ 
			window.open(url,name,'width=' + width + ',height=' + height + ',resizable=no'); 
		} 


		// add bookmark
		var bookmarkurl="http://www.sporttv.nu"
		var bookmarktitle="SportTV.nu"
		function addbookmark(){
			if (document.all)
				window.external.AddFavorite(bookmarkurl,bookmarktitle)
		}
		
		// handle return in textbox
		function handleOnKeyPress(evt){
			
			var chCode = (evt.which)?evt.which:evt.keyCode;
			if( chCode == 13 ){
				document.getElementById("btnSearchPrograms").click();
			}
			
			return true;
		}
 		
		// fix menu items on IE
		function appendClass(node) {
			if(node.className != "flat") {
				node.onmouseover = function() { this.className += "over"; }
				node.onmouseout = function() { this.className = this.className.replace(new RegExp("over\\b"), ""); }
			}
		}
		
		startList = function() {
	 		var node = document.getElementById("nav").getElementsByTagName("LI");
			for (var i=0; i<node.length; i++) { appendClass(node[i]); }
		}

		if (window.attachEvent){ 
			window.attachEvent("onload", startList);
		}

