$(document).ready(function($) {
//	$("img[@type=transparent], .header-top, .footer, .shadow-middle, .shadow-bottom").ifixpng();
	$(".header-top, .footer, .shadow-middle, .shadow-bottom").ifixpng();

	$(".uroven1 > li, .uroven2 > li").hover( function(){
		$(this).children().filter("[class=uroven2], [class=uroven3]").not(":animated").fadeIn("fast");
		$(this).addClass("hover");
	}, function(){
		$(this).children().filter("[class=uroven2], [class=uroven3]").fadeOut("fast");
		$(this).removeClass("hover");
	});

	if ($('a[rel*=facebox]').length == 1) {
		$('a[rel*=facebox]').facebox();
	} else if ($('a[rel*=facebox]').length > 1) {
		$('a[rel*=facebox]').facebox({
			next_image    : 'inc/css/facebox/fast_forward.png',
			play_image    : 'inc/css/facebox/play.png',
			pause_image   : 'inc/css/facebox/pause.png',
			prev_image    : 'inc/css/facebox/rewind.png'
		});
	}
});


var globZal = '';

function selZalozka(id, go) {
	$('#tab_'+id).attr('class', 'tab big');
	$('#tab_'+globZal).attr('class', 'tab');
	globZal = id;
	
	var data = '';
	
	jQuery.ajax({
		data: data,
		url: 'services.php?get=search-type&show='+go,
		type: 'POST',
		timeout: 3000,
				
		error: function() {
			alert('Dotaz zlyhal');
		},
		success: function(result) {
			$('#zalContent').html(result);
		},
		beforeSend: function() {
			
		},
		complete: function() {
			
		}
	})		
}

/*
function get_cat(go, item) {
	var data = '';
	
	jQuery.ajax({
		data: data,
		url: 'page.php?go='+go+'&parent='+item+'&sid=<?echo $_GET["sid"]?>',
		type: 'POST',
		timeout: 30000,
				
		error: function() {
			alert('Dotaz zlyhal');
		},
		success: function(result) {
			$('#zalContent').html(result);
		},
		beforeSend: function() {
			
		},
		complete: function() {
			
		}
	})		
}

function get_item(go, parent, item) {
	var data = '';
	
	jQuery.ajax({
		data: data,
		url: 'page.php?go='+go+'&parent='+parent+'&item='+item+'&sid=<?echo $_GET["sid"]?>',
		type: 'POST',
		timeout: 30000,
				
		error: function() {
			alert('Dotaz zlyhal');
		},
		success: function(result) {
			$('#zalContent').html(result);
		},
		beforeSend: function() {
			
		},
		complete: function() {
			
		}
	})		
}

*/

