function clear_it(id,ddtext) {
	if (id.value==ddtext) id.value="";
}
function fbs_click() {
	u=location.href;
	t=document.title;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}
function go(what) {
	value = what.options[ what.selectedIndex ].value;
	if (value == "") return;
	window.location.href = value;
} 
$(document).ready(function(){  
	var options = {  
		zoomType: 'standard',  
		lens:true,  
		preloadImages: true,  
		alwaysOn:false,  
		zoomWidth: 450,  
		zoomHeight: 450,  
		xOffset:0,  
		yOffset:0,  
		position:'right',
		title: true,
		showEffect: 'fadein',
		hideEffect: 'fadeout',
		fadeinSpeed: 'slow',
		fadeoutSpeed: 'slow'
	//...MORE OPTIONS  
	};  
	$('.jqzoom').jqzoom(options);
	
	$('#features').jshowoff({
		links: false,
		controls: false,
		speed: 7000,
		hoverPause: true
	}); 
	
	$('.kos img[rel]').overlay({
		// one configuration property
		color: '#ccc',

		// another property
		top: '40%',
		mask: {
			color: '#000000',
			loadSpeed: 200,
			opacity: 0.7
		},

		closeOnClick: false

	});
});

$(document).ready(function() {
  var opts = {collapseTimer: 4000};

  $.each(['beforeExpand', 'afterExpand', 'onCollapse'], function(i, callback) {
    opts[callback] = function(byUser) {
      var by, msg = '<div class="success">' + callback;

      if (callback == 'onCollapse') {
        msg += ' (' + (byUser ? 'user' : 'timer') + ')';
      }
      msg += '</div>';

      $(this).parent().parent().append(msg)
    }
  });

  $('div.popis').expander();
});

activateMenu = function(nav) {
/* currentStyle restricts the Javascript to IE only */
if (document.all &&
document.getElementById(nav).currentStyle) {
var navroot = document.getElementById(nav);
/* Get all the list items within the menu */
var lis=navroot.getElementsByTagName("LI");
for (i=0; i<lis.length; i++) {
/* If the LI has another menu level */
if(lis[i].lastChild.tagName=="UL"){
/* assign the function to the LI */
lis[i].onmouseover=function() {
/* display the inner menu */
this.lastChild.style.display="block";
}
lis[i].onmouseout=function() {
this.lastChild.style.display="none";
}
}
}
}
}
window.onload= function(){
/* pass the function the id of the top level UL */
/* remove one, when only using one menu */
activateMenu("nav");
activateMenu("saz");
} 
