$(document).ready(function() {
	
	$(".tab_content").hide();
	$("#menu ul li:first").addClass("active").show(); 
	$(".tab_content:first").show();
	
	
	$("#menu ul li").click(function() {
		$(".footer-right li").removeClass("active"); 
		$("#menu ul li").removeClass("active"); 
		
		$(this).addClass("active"); 
		$(".tab_content").hide(); 
		var activeTab = $(this).find("a").attr("href"); 
		$(activeTab).fadeIn(); 
		return false;
	});
	
	
	$(".footer-right li").click(function() {
		$("#menu ul li").removeClass("active"); 
		$(".footer-right li").removeClass("active"); 
		$(this).addClass("active"); 
		$(".tab_content").hide(); 
		var activeTab = $(this).find("a").attr("href"); 
		$(activeTab).fadeIn(); 
		return false;
	});
	
	
	$("#support li").click(function() {
		$("#support li").removeClass("active"); 
		$(this).addClass("active"); 
		$(".tab_content").hide(); 
		var activeTab = $(this).find("a").attr("href"); 
		$(activeTab).fadeIn(); 
		return false;
	});
	
	
	

});


/*$(window).load(function() {
	var visinaprozora = $(document).height();
	$("#footer").css("top", visinaprozora-140);
	$("#footer").show();
});*/
