function startMenu() {
	if (document.all && document.getElementById) {
		var multimenu = document.getElementById('menu')
		for (i = 0; i < multimenu.childNodes.length; i++) {
			var ul = multimenu.childNodes[i]
			if (ul.nodeName == 'UL') {
				for (j = 0; j < ul.childNodes.length; j++) {
					var node = ul.childNodes[j]
					if (node.nodeName == 'LI') {
						node.onmouseover = function() { this.className += ' over' }
						node.onmouseout = function() { this.className = this.className.replace(' over', '') }
					}
				}
			}
		}
	}
}

if (window.attachEvent) {
	window.attachEvent('onload', startMenu)
 } else {
	window.onload = startMenu;
}

function hideAllBubbles() {
 document.getElementById('bubble1').style.display = 'none';
 document.getElementById('bubble2').style.display = 'none';  
 document.getElementById('bubble3').style.display = 'none';
 document.getElementById('bubble4').style.display = 'none';
 document.getElementById('bubble5').style.display = 'none';
}

function showBubble1(evt) {
 hideAllBubbles();
 document.getElementById('bubble1').style.display = 'block';
 setTimeout('hideAllBubbles()', 10000); 
}
      
function showBubble2(evt) {
 hideAllBubbles();
 document.getElementById('bubble2').style.display = 'block';
 setTimeout('hideAllBubbles()', 10000); 
}

function showBubble3(evt) {
 hideAllBubbles();
 document.getElementById('bubble3').style.display = 'block';
 setTimeout('hideAllBubbles()', 10000); 
}

function showBubble4(evt) {
 hideAllBubbles();
 document.getElementById('bubble4').style.display = 'block';
 setTimeout('hideAllBubbles()', 10000); 
}
     
function showBubble5(evt) {
 hideAllBubbles();
 document.getElementById('bubble5').style.display = 'block';
 setTimeout('hideAllBubbles()', 10000); 
}
     


function chf() {

	if (document.forms.mf.jmeno.value == "") {
		alert ("Formulář nebyl správně vyplněn, vyplňte jméno.");
		document.forms.mf.jmeno.focus();
		return false;
	}

	if (document.forms.mf.telefon.value == "") {
		alert ("Formulář nebyl správně vyplněn, vyplňte telefon.");
		document.forms.mf.telefon.focus();
		return false;
	}

	if (document.forms.mf.kdejste.value == "nic-nevybrano") {
		alert ("Formulář nebyl správně vyplněn, vyplňte kde jste se o nás dozvěděli.");
		document.forms.mf.kdejste.focus();
		return false;
	}
	
}
