Cufon.replace('.HelvNeue', { fontFamily: 'helvneuelight' });
//Cufon.replace('#fullService .link', { fontFamily: 'GothamBook', hover: true });

$(document).ready(function() {
	$("#mainNav ul.sf-menu").superfish({
		autoArrows : false,
		delay: 0,
		dropShadows : false,
		speed: 100
	});
	
	$('A[rel="lightbox"]').lightBox({
		overlayBgColor: "#000",
		overlayOpacity: 0.6,
		imageLoading: "/public/images/lightbox/loading.gif",
		imageBtnClose: "/public/images/lightbox/close.gif",
		imageBtnPrev: "/public/images/lightbox/prev.gif",
		imageBtnNext: "/public/images/lightbox/next.gif",
		imageBlank: "/public/images/lightbox/blank.gif", 
		containerResizeSpeed: 350,
		txtImage: "",
		txtOf: "of"
	});
	
	$('#contentHomeBanners').cycle({
		fx: 'fade',
		timeout: 5000,
		prev: '.prev',
		next: '.next'
	});
	
	$('#contentHomeBanners img').reflect({
		height: 49
	});
	
	$('#contentHomeSlagzinnen').cycle({
		fx: 'uncover',
		timeout: 5000,
		prev: '.prev',
		next: '.next'
	});
	
	$('.indexReferentiesImage').cycle({
		fx: 'scrollLeft',
		timeout: 4000,
		prev: '.prevRef',
		next: '.nextRef'
	});
	
	$("#fullService .link a").click(function(){
		var linkId = $(this).parent().attr("id").substr(4);
		$(".link a").removeClass("active");
		$(this).addClass("active");
		$(".blok").css("display", "none");
		$(".blok"+linkId).css("display", "block");
		return false;
	});
});
