<!--
	var obr; 
	function preloadhp() {
	    if(document.images) {
		  obr=new Image(124,69);
		  obr.src="img/menu01_over.gif";
		  obr.src="img/menu02_over.gif";
		  obr.src="img/menu03_over.gif";
		  obr.src="img/menu04_over.gif";
		}
	}
	function preloadRestaurant() {
	    if(document.images) {
		  obr=new Image(187,21);
		  obr.src="img/restaurant/cz/menu01_over.gif";
		  obr.src="img/restaurant/cz/menu02_over.gif";
		  obr.src="img/restaurant/cz/menu03_over.gif";
		  obr.src="img/restaurant/cz/menu04_over.gif";
		  obr.src="img/restaurant/cz/menu05_over.gif";
		  obr.src="img/restaurant/cz/menu06_over.gif";
		  obr.src="img/restaurant/cz/menu07_over.gif";
		  obr.src="img/restaurant/cz/menu08_over.gif";
		  obr.src="img/restaurant/cz/menu09_over.gif";
		  obr.src="img/restaurant/cz/menu10_over.gif";
		  obr.src="img/restaurant/cz/menu11_over.gif";
		}
	}
	function preloadCafe() {
	    if(document.images) {
		  obr=new Image(187,21);
		  obr.src="img/cafe/cz/menu01_over.gif";
		  obr.src="img/cafe/cz/menu02_over.gif";
		  obr.src="img/cafe/cz/menu03_over.gif";
		  obr.src="img/cafe/cz/menu04_over.gif";
		  obr.src="img/cafe/cz/menu05_over.gif";
		  obr.src="img/cafe/cz/menu06_over.gif";
		  obr.src="img/cafe/cz/menu07_over.gif";
		}
	}
	function preloadCatering() {
	    if(document.images) {
		  obr=new Image(187,21);
		  obr.src="img/catering/cz/menu01_over.gif";
		  obr.src="img/catering/cz/menu02_over.gif";
		  obr.src="img/catering/cz/menu03_over.gif";
		  obr.src="img/catering/cz/menu04_over.gif";
		  obr.src="img/catering/cz/menu05_over.gif";
		  obr.src="img/catering/cz/menu06_over.gif";
		  obr.src="img/catering/cz/menu07_over.gif";
		}
	}
	function preloadGift() {
	    if(document.images) {
		  obr=new Image(187,21);
		  obr.src="img/gift/cz/menu01_over.gif";
		  
		}
	}
	
	
	function over(obj,nazev) {
		var obr=nazev+"_over.gif";
		obj.src=obr;
	}
	function out(obj,nazev) {
		var obr=nazev+".gif";
		obj.src=obr;
	}
	
	function futureURL(cu,lng1,lng2) {
		var p=cu.indexOf("/".concat(lng1,"/"))+1;
		var part1=cu.substring(0,p);
		var part2=cu.substring(p+lng1.length,cu.length);
		return(part1.concat(lng2,part2));
	}
	
	function changeLng(lng1,lng2) {
			var current_url;
			current_url=location.href;
			location.replace(futureURL(current_url,lng1,lng2));
	}
	
	function newWindow(obsah,width,height) {
		w=window.open(obsah,'detail','scrollbars=no,resizable=yes,resize=no,width='+width+',height='+height+',screenX='+getCenterW(width)+',screenY='+getCenterH(height)+',top='+getCenterH(height)+',left='+getCenterW(width));
		w.focus();
	}
	function getCenterW(width) {
		return parseInt( eval( (screen.width-parseInt(width))/2 ) );
	}
	function getCenterH(height) {
		return parseInt( eval( (screen.height-parseInt(height))/2 ) );
	}
	
	function isEmpty(str) {
        // Check whether string is empty.
        for (var intLoop = 0; intLoop < str.length; intLoop++)
           if (" " != str.charAt(intLoop))
              return false;
        return true;
     }

     function checkRequired(f) {
        var strError = "";
        for (var intLoop = 0; intLoop<f.elements.length; intLoop++)
           if (null!=f.elements[intLoop].getAttribute("required")) 
              if (isEmpty(f.elements[intLoop].value))
                 strError += "  " + f.elements[intLoop].name + "\n";
        if ("" != strError) {
           alert("Vyplňte prosím následující údaje:\nPlease fill following items:\n" + strError);
           return false;
        }
     }
	
//-->
