$(document).ready(function()
{
	$("tr:even").addClass('even');

/*
	$('.box-image-galery').each(function() {
	$('a', this).lightBox();
	});
*/
	$('#layout-menu ul li a')
	.css( {backgroundPosition: "0 0"} )
	.mouseover(function(){
		$(this).stop().animate({backgroundPosition:"(0 -88px)"}, {duration:300})
	})
	.mouseout(function(){
		$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:1000})
	})

	$('a.target-blank').click(function () { 
		window.open(this.href);
		return false;
	});
	
	$('body').append('<div class="tooltip"></div>');
	$('body').append('<div class="tooltip-form"></div>');
	$(":input[title]").tooltip({
		position: "center right",
		offset: [-2, 10],
		effect: "fade",
		opacity: 0.7,
		tip: '.tooltip-form'
	});
	$("*[title]").tooltip({
		position: "bottom right",
		offset: [0, 0],
		effect: "fade",
		opacity: 0.7,
		tip: '.tooltip'
	});
	
	$("#search-input").val('hledat');
	
	$("#search-input").focus(function() {
		if($(this).val() == 'hledat')
			$(this).val('');
	});

	$("#search-input").blur(function() {
		if($(this).val() == '')
			$(this).val('hledat');
	});
	
	$("#layout-header-search").submit(function() {
		if($("#search-input").val() == 'hledat')
			$("#search-input").val('');
		return true;
	});
});



