BrowserOK =  (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || 
  ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )));

function ImgPreload(img){
 var a=new Image(); a.src=img; return a; 
 }  
 if(BrowserOK) {
 a1n=ImgPreload('http://www.sporthoteltyrol.it/imgs/de.gif');
 a1h=ImgPreload('http://www.sporthoteltyrol.it/imgs/de1.gif');
 
 a2n=ImgPreload('http://www.sporthoteltyrol.it/imgs/it.gif');
 a2h=ImgPreload('http://www.sporthoteltyrol.it/imgs/it1.gif');
 
 a3n=ImgPreload('http://www.sporthoteltyrol.it/imgs/en.gif');
 a3h=ImgPreload('http://www.sporthoteltyrol.it/imgs/en1.gif');
 
 
 a4n=ImgPreload('http://www.sporthoteltyrol.it/imgs/apartments_schuster_ted.gif');
 a5n=ImgPreload('http://www.sporthoteltyrol.it/imgs/apartments_drau_ted.gif');
 a6n=ImgPreload('http://www.sporthoteltyrol.it/imgs/apartments_schuster_ita.gif');
 a7n=ImgPreload('http://www.sporthoteltyrol.it/imgs/apartments_drau_ita.gif');
 a8n=ImgPreload('http://www.sporthoteltyrol.it/imgs/apartments_schuster_eng.gif');
 a9n=ImgPreload('http://www.sporthoteltyrol.it/imgs/apartments_drau_eng.gif');
 }
 
function gowindow1(str, titolo,w,h) {
 openwin = window.open(str,titolo,'width='+ w +',height='+ h +',status=no,scrollbars=yes,resizable=no,location=no,toolbar=no');
 }

function gowindow(str, titolo,w,h) {
 openwin = window.open(str,titolo,'width='+ w +',height='+ h +',status=no,scrollbars=no,resizable=no,location=no,toolbar=no');
 }
 
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function uncon() {
	alert('Sorry, under construction!');
}

function addPage() {
	if (document.all) window.external.addFavorite(location.href, document.title);
	else if (window.sidebar && window.sidebar.addPanel) window.sidebar.addPanel(document.title, location.href, "");
}