function opakovana_ajax(id) { 
	jQuery.ajax({
		url: './ajax/cas.php?time='+Math.random(100),
		cache: false,
		success: function(html){
			$('#Time').html(html);
			window.setTimeout("opakovana_ajax()", 60 * 1000);
		}
	});	
}  

$(document).ready(function() {
    $('form.SearchForm input:radio').change(function() {
	var hodnota = $(this).val();
	if (hodnota == 'local') $('form.SearchForm').attr('target', '');
	else $('form.SearchForm').attr('target', '_blank');
    });

	$(".Tabs strong").hover(function () {
		$(this).parent().children('strong').removeClass('Active');
		$(this).addClass('Active');
		var id = $(this).attr('id');
		id = id.replace('-link', '');
		if (id) {
			$(this).parent().children('div').children('div').hide();
			$('#'+id).show();
		}
	}, function() {});

	$(".Tabs").each(function () {
		$(this).children("strong:first").each(function () {
			$(this).parent().children('strong').removeClass('Active');
			$(this).addClass('Active');
		});
	});

  opakovana_ajax();


  	$("#Tabs .TabIn").not(':first').hide();

	$("#Tabs ul li a").mouseover(function () {
		$("#Tabs ul li a").removeClass('Active');
		$(this).addClass('Active');
		var i = $(this).attr('href');
		if (i) {
			$("#Tabs .TabIn").hide();
			$(i).show();
		}
		return false;
	});

});


