function startSeitene_featuredimagemenue() {
	$(".menu-teammenue-container a").hover(
		function() {
			//var me = $(this).attr("data");
			$(this).animate({ "opacity" : 1 }, 500);
		//	$(this).css({ "background-position": "0 0 !important" });
		},
		function(){
			$(this).animate({ "opacity" : 0.5  }, 200);
		//	$(this).css({ "background-position" : "0 197px !important" });
	});

	$(".menu-teammenue-container a").click(function() {
		var href= $(this).attr("href");
		var hrefsplit = href.split('/');
		var name = hrefsplit[hrefsplit.length-2];
		$(".lefttext div").css({ "display" : "none"});
		$(".lefttext ." + name).fadeIn();
		$(".menu-teammenue-container a").css({ "background-position": "0 197px !important" });

		$(this).css({ "background-position": "0 0 !important" });

		return false;
	});

}

function addLightBox() {

		$(".lightbox a").attr("rel", "fancyBoxGrouped");
		$(".lightbox a").each(function() {
		var myTitle = $(this).find("img").attr("title");
		$(this).attr("title", myTitle);
	
	})


	$(".lightbox a").fancybox({
		'opacity'		: true,
		'overlayShow'	: true,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'none',
		'titleShow'		: 'true',
		'titlePosition'	: 'inside'
	});		

}

$(document).ready(function() {
	startSeitene_featuredimagemenue();
	addLightBox();	
});
