$(document).ready(function() {
$('.infobox a').click(function(){
      $('.infobox').hide('slow');  
    })
});

//rozbalovaci menu

//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/

/*var menuids=["main-menu"] //Enter id(s) of SuckerTree UL menus, separated by commas

function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
		if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+0+"px" //dynamically position first level submenus to be height of main menu item
			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		}
		else{ //else if this is a sub level menu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+0+"px" //position menu to the right of menu item that activated it
    	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		}
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.visibility="visible"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.visibility="hidden"
    }
    }
  }
}

            
if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)*/

function popup(url) {
  okno = window.open('','popup','width=400,height=300,left=150,top=150,location=0,menubar=0,resizable=1,scrollbars=0,status=0,titlebar=0,toolbar=0');
	var html = '<html>\n<head>\n' +
	'<meta http-equiv="content-type" content="text/html; charset=utf-8">\n' +
	'<meta http-equiv="content-language" content="cs">\n' +
	'<title>Detail obrázku</title>\n' +
  '<script type="text/javascript">\n' +
  'function resizewindow () {\n' +
  '  var width = document.myimage.width;\n' + 
  '  var height = document.myimage.height;\n';
  
  // Netscape  
  if (navigator.appName.indexOf("Netscape") != -1) {  
      html = html + '  window.innerHeight = height;\n  window.innerWidth = width;\n';
  }
  
  // Opera 
  else if (navigator.appName.indexOf("Opera") != -1) {
      html = html + '  window.resizeTo (width+12, height+31);\n';
  }
  
  // Microsoft 
  else if (navigator.appName.indexOf("Microsoft") != -1) { 
      html = html + '  window.resizeTo (width+12, height+45);\n'; 
  }
  
  // Assume a frig factor for any other browsers
  else {
      html = html + '  window.resizeTo (width+14, height+34);\n';
  }
  html = html + '}\n window.onload = resizewindow;\n</script>' +
	'</head>\n<body style="padding:0; margin:0;" onclick="window.close();">\n<div>\n' +
	'<img src="' + url + '" alt="zavřít okno" name="myimage" title="zavřít okno" />\n' +
	'</div>\n</body>\n</html>';
	okno.document.write(html);
	okno.document.close();
  return false;
}

function g(id) {
  return document.getElementById(id);
}

function clock() {
    var date = new Date();
    var hours = date.getHours();
    var minutes = date.getMinutes();
    var seconds = date.getSeconds();
    var timeValue = ((hours < 10) ? "0" : "") + hours;
	timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
	timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
	g('clock').innerHTML = timeValue;
	setTimeout("clock()",1000);
}

