		$(function(){

			$("form#ui input").filter(":checkbox,:radio").checkbox();
			$(".check").parent(".ui-checkbox").addClass("ui-state-highlight");
			$('.inzeraty li').hover(function() {
			$(this).addClass('mod');
			}, function() {
			$(this).removeClass('mod');
			});
		});

		function dd()
		{

			for(c= 1;c<9; c++)
			{
			document.getElementById("check_"+c).style.display='block';
			}

		}
		
		function confirmdel(id,url)
		{
			if (confirm('Opravdu vymazat inzerát?'))
			{
				document.location.href = '/index.php?mode=del&id='+id+'&requrl='+url;
			}
		}
		
this.tooltip = function(){
		
	xOffset = -20;
	yOffset = -85;		

	$(".tooltip").hover(function(e)
	{

		this.t = this.title;
		this.title = "";

		$("body").append("<p id='tooltip'>"+ this.t +"</p>");
		$("#tooltip")
		.css("top",(e.pageY - xOffset) + "px")
		.css("left",(e.pageX + yOffset) + "px")
		.fadeIn("fast");		

	},

	function()
	{
	this.title = this.t;
	$("#tooltip").remove();
	});

	$(".tooltip").mousemove(function(e){
	$("#tooltip")
	.css("top",(e.pageY - xOffset) + "px")
	.css("left",(e.pageX + yOffset) + "px");
	});

};		
