// jQuery
$(document).ready(function() {
	//$('a[rel=lightbox]').lightBox();
	
	//$('#AlertMessage').fadeTo(3000, 0.6);
	$('#AlertMessage').animate( {
		"opacity": "0.6"
		//"borderLeftWidth": "10px",
		//"borderRightWidth": "10px"
	}, "slow");
	
	$('#admin ul li a').mouseenter(function(){
		$(this).next().show();
		//return false;
	});	
	$('.mmain').mouseleave(function(){
		$('.mul').hide();
	});
	
	$("a[class=blank]")
		.attr('onclick', 'return !window.open(this.href)')
		.append('<img align="absmiddle" style="padding: 0px 0px 3px 1px;" src="images/new_window.png" border="0">');
	
	$('input[rel=seo_url]').keypress(function(event) {
    	event.target.value = event.target.value.replace(/[^a-zA-Z0-9-_]/g, "");
	});
	
	$('#submit_login[rel=1]').click(function(event) {
		$(this).after('<i class="info"> probíhá přihlašování..</i>');
		$(this).removeAttr('rel');
		//$(this).after('<img align="absmiddle" src="images/loading.gif" border="0" alt="">');
	});
	
	/*
	$('.stranka_edit_btn').fadeTo(0, 00).fadeTo("slow", 0.33).css('display', 'block');
	$('.stranka_edit_btn').hover(
		function() {
			$(this).fadeTo("fast", 1);
		},
		function() {
			$(this).fadeTo("fast", 0.33);
		}
	);
	*/
	
	
	$('.stranka_edit_btn').fadeTo(0, 0).css('display', 'block');
	$('#obsah-webu').hover(
		function() {
			$('.stranka_edit_btn').stop().fadeTo("fast", 0.50);
		},
		function() {
			$('.stranka_edit_btn').stop().fadeTo("fast", 0);
		}
	);
	
	$('.fade0').fadeTo(0, 0);
	
	
	$('#clanek_edit_img').mouseover(function() {
		$('#clanek_edit_img_div').show();
	});
	$('#clanek_edit_img').mouseout(function() {
		$('#clanek_edit_img_div').hide();
	});
		
	//$('.tabulka3 tr:even').css('background', '#F5F5F5');
	
});