$(document).ready(function(){
		
	$('#tab-content-sect-1').show();
	$('.menutab').addClass('inactive');
	$('.menulinks').addClass('inactive');
	
	$('.menutab:first').removeClass('inactive').addClass('active');
	//$('.menulinks:first').removeClass('inactive').addClass('active');
	
		
	$('.menutab').live('click', function() {
		
		$('.menutab').removeClass('active').addClass('inactive');
		$(this).removeClass('inactive').addClass('active');
		$('.menulinks').removeClass('active').addClass('inactive');
		$(this).children('.menulinks').removeClass('inactive').addClass('active');
		
		$('.box').hide();
		 //split at the '_' and take the second offset
	    var idnumber = $(this).attr('id').split('_')[1]; 
	    var boxid = "#tab-content-sect-"+idnumber;
	    $(boxid).show();
	    
	    return false;
		
		
	});
	
	
	
	
	
	
	
	
	/*$('.styledselect').selectbox({debug: true});
	$("label").inFieldLabels();*/	
	
	// set opacity to nill on page load
	$("#menubar ul li a span:first-child").css("opacity","0");
	// on mouse over
	$("#menubar ul li a span:first-child").hover(function () {
		// animate opacity to full
		$(this).stop().animate({
			opacity: 1
		}, "slow");
	},
	// on mouse out
	function () {
		// animate opacity to nill
		$(this).stop().animate({
			opacity: 0
		}, "slow");
	});
	
	
	// set opacity to nill on page load
	$("a.kiprobalom span:first-child").css("opacity","0");
	// on mouse over
	$("a.kiprobalom span:first-child").hover(function () {
		// animate opacity to full
		$(this).stop().animate({
			opacity: 1
		}, "slow");
	},
	// on mouse out
	function () {
		// animate opacity to nill
		$(this).stop().animate({
			opacity: 0
		}, "slow");
	});
	
	// set opacity to nill on page load
	$("a.hogymukodik span:first-child").css("opacity","0");
	// on mouse over
	$("a.hogymukodik span:first-child").hover(function () {
		// animate opacity to full
		$(this).stop().animate({
			opacity: 1
		}, "slow");
	},
	// on mouse out
	function () {
		// animate opacity to nill
		$(this).stop().animate({
			opacity: 0
		}, "slow");
	});
	
	// set opacity to nill on page load
	$("a.more-link span:first-child").css("opacity","0");
	// on mouse over
	$("a.more-link span:first-child").hover(function () {
		// animate opacity to full
		$(this).stop().animate({
			opacity: 1
		}, "slow");
	},
	// on mouse out
	function () {
		// animate opacity to nill
		$(this).stop().animate({
			opacity: 0
		}, "slow");
	});
	
	// set opacity to nill on page load
	$("a.tt span:first-child").css("opacity","0");
	// on mouse over
	$("a.tt span:first-child").hover(function () {
		// animate opacity to full
		$(this).stop().animate({
			opacity: 1
		}, "slow");
	},
	// on mouse out
	function () {
		// animate opacity to nill
		$(this).stop().animate({
			opacity: 0
		}, "slow");
	});
	
	
	$('.menulinks').mouseover(function () {
	   	$(this).animate({ marginRight: "14px" }, 100 );
	  });
	  $('.menulinks').mouseout(function () {
	    $(this).animate({ marginRight: "10px" }, 100 );
	  });
	
	
	
		  			  		
});
