var TabbedContent = {
	init: function() {
  	
		$(".menu-item").mouseover(function() {
			TabbedContent.slideContent($(this));
			
		});
		

		
		
	},
	
	slideContent: function(obj) {
		
		var margin = $(obj).parent().parent().find(".slider-wrap").width();
		margin = margin * ($(obj).prevAll().size());
		margin = margin * -1;
		
		$(obj).parent().parent().find(".slider").stop().animate({
			marginLeft: margin + "px"
		}, {
			duration: 300
		});
	},
	
	vratContent: function(obj, cislo) {
		
		var margin = $(obj).parent().parent().find(".slider-wrap").width();   
		//margin = margin * ($(obj).prevAll().size());
		margin = margin * (cislo*-1);
		
		$(obj).parent().parent().find(".slider").stop().animate({
			marginLeft: margin + "px"
		}, {
			duration: 300
		});
	}
	
}
/*
$(document).ready(function() {
	TabbedContent.init();
	
	TabbedContent.vratContent($(".menu-item"),0);
}); */

function change() {
	if(document.getElementById("prihlaseni").className == 'invisible') {
		document.getElementById("prihlaseni").className = "visible"
	}
	else {
		document.getElementById("prihlaseni").className = "invisible";
		}
}

function vloz() {
	document.getElementById("added").className = "visible"
}
