function stopMenu(){
	$("#cur_lang").next().css("display", "none");
};
function stopBuble(e){
	e = e ? e : window.event;
	e.cancelBubble = true;
	if (e.stopPropagation){ e.stopPropagation(); }
};
function slideMenu(e, el){
	$(el).next().css("display", "block");
	stopBuble(e);
    return false;
};
$(document).ready( function($){
	$("#AboutCarousel").jcarousel({
		scroll: 1,		
		itemVisibleInCallback: {onAfterAnimation: mycarousel_itemVisibleOutCallbackAbout}
	});
	function mycarousel_itemVisibleOutCallbackAbout(carousel, item, i, state, evt){
		$("#AboutCarousel .item_img_about div span").attr("id", "");
		$($("#AboutCarousel .item_img_about div span")[i-1]).attr("id", "cur_img_about");
	};
	
	$("#AboutCarousel .item_img_about div").css("width", ($("#AboutCarousel .item_img_about div span").length*18+1).toString()+"px");
	/*
	$("#AboutCarousel .item_img_about div span").hover(
		function(){
			$("#AboutCarousel .item_img_about div span").attr("id", "");
			$(this).attr("id", "cur_img_about");
		},
		function(){}
	);
	*/
	
	$(".contact_form input").focus(
		function(){
			$(this).parent().addClass("active");
		}
	);
	$(".contact_form input").blur(
		function(){
			$(this).parent().removeClass("active");
		}
	);
	
	$(".contact_form textarea").focus(
		function(){
			$(this).parent().addClass("active_text");
		}
	);
	$(".contact_form textarea").blur(
		function(){
			$(this).parent().removeClass("active_text");
		}
	);
	
	$("#FirmCarousel").jcarousel({
		scroll: 2
	});
});
