//functions<script> 
var hideHelp = function() {
    if(!this.label) this.label = this.value;
    if(this.value == this.label) this.value = '';
}

var fakeeml = function(eml,dom,txt)
	{
	document.write('<a href="mailto:'+eml+'@'+dom+'">'+( ( txt ) ? (txt) : ( eml+'@'+dom ) )+'</a>')
	}

var showHelp = function() {
    if(this.value == '') this.value = this.label;
}

$(window).load(function(){
	$('#nav').css('overflow', 'visible')
})

$(window).ready(function(){
	
	// IE jinak zobrazi podsebou vsechny tri stavy navigace
	$('#nav').children("li").mouseover(function() {$(this).children('ul:first').css('visibility', 'visible');}).mouseout(function(){$(this).children('ul:first').css('visibility', 'hidden');});
	//$('#nav').css('overflow', 'visible')
	
    // target blank
    $('a.targetblank').click(function(){
        if(typeof window.open($(this).attr('href'))=='object') {return false};
    });
	// napovedy inputu -UPRAVIL HLADIK 20090818
    $('#f_search, #f_user_name, #f_user_password').focus(function(){
	    if($(this).attr('label')){$(this).attr('label',$(this).val());}
	    if($(this).attr('label')==$(this).val()){$(this).val('');}
	});
    $('#f_search, #f_user_name, #f_user_password').blur(function(){
	    if($(this).val()==''){$(this).val($(this).attr('label'));}
	});
    
});

