$(function() {
	$("#hledej_link").click(function() { // vyhledávání - klik na odkaz
		$("#hledej_form").submit();
	});
});

$(function() {
	$("#hledej_link1").click(function() { // vyhledávání - klik na odkaz
		$("#hledej_form1").submit();
	});
});


function checkclear(what){

if(!what._haschanged){

what.value=''

};

what._haschanged=true;
};




 $(document).ready(function() {
      
	//  var ishovering;
//	  
//	    $("div.subcontent").hover(
//      function () {
//        ishovevering = 1;
//      }, 
//      function () {
//       $("div.subcontent").slideUp("normal");
//      }
//    );
//		
//		  $("a.polozka").hover(
//      function () {
//       $("div.subcontent").slideUp("normal");
//      }, 
//      function () {
//       ishovevering =0;
//      }
//    );

//meerkat({
//  showMeerkatOnLoad: 'false',
//  close: '.close',
//  dontShow: '.cl',
//  dontShowExpire: 0.5,
//  removeCookie: 'none',
//  meerkatPosition: 'bottom',
//  animation: 'slide',
//  animationSpeed: 'fase',
//  height: 'auto',
//  background: 'none'
//});

childInputHasFocus = false;

$("#sinput", this)
        .focus(function(){
            $("#sinput").animate({"width": "205"}, "300");
	$(".animacekmenu").fadeOut("fast");
			checkclear(this);
        })
        .blur(function(){
            childInputHasFocus = false;
		 $("#sinput").animate({"width": "94"}, "200");
	$(".animacekmenu").fadeIn("300");
        });




$("img.a").hover(
function() {
$(this).animate({"opacity": "0"}, "300");
},
function() {
$(this).animate({"opacity": "1"}, "300");
});

	  

$("a#intag").fancybox({ 'hideOnContentClick': false, 'frameHeight':		400 }); 


	
	$("a.photobox").fancybox({
		'hideOnContentClick': false,
			'zoomSpeedIn':		300, 
		'zoomSpeedOut':	300, 
		'overlayShow':		false,
			'frameWidth':		480,
			'frameHeight':		500
	});
	
	$("a#intagv").fancybox({
		'hideOnContentClick': false,
			'zoomSpeedIn':		300, 
		'zoomSpeedOut':	300, 
		'overlayShow':		false,
			'frameWidth':		640,
			'frameHeight':		360
	});

 //function addMega(){
//           $("div.subcontent").slideDown("normal"); 
//        }
//
//      function removeMega(){
//		  
//         if(ishovering==0) $("div.subcontent").slideUp("normal");
//        }
//
//    var megaConfig = {
//         interval: 500,
//         sensitivity: 4,
//         over: addMega,
//         timeout: 500,
//         out: removeMega
//    };
//
//   
//	$("span.porady").hoverIntent(megaConfig);
	

	


//$("span.porady").toggle( 
//      function () { 
//        $("div.subcontent").slideDown("normal"); 
//      }, 
//      function () { 
//        $("div.subcontent").slideUp("normal");
//      } 
//    ); 




$('#newsl').innerfade({
						animationtype: 'slide',
						speed: 700,
						timeout: 3500,
						type: 'sequence',
						containerheight: '18px'
					});

    });

