var NLT = {
	init: function(){
		
		$("#optinForm #wp_email").click(function(){
			$(this).attr("value", "");
		});
		
		$("a[title='Programm 2009']").click(function(){
    	$(this).attr("target", "_blank");
	  });

		$('#slideshow').jcarousel({
			scroll: 1,
			animation: 250
		});
		
		$('#slideshow li').hover(function(){
			$(this).find("img").stop().animate({ opacity: ".4" }, 200);
			$(this).find("span").css({ display: "block" });
    }, function () {
			$(this).find("img").stop().animate({ opacity: "1" }, 200);
			$(this).find("span").css({ display: "none" })
    });

		// wrap extra links to display icon before link name
		$('.link-extra').wrapInner('<span class="nospace" />');
		$(".link-extra span").before('<span>&rarr;</span>');

		$.localScroll.hash({
			queue: true,
			duration: 700,
			offset: -20
		});
	
		$.localScroll({
			queue: true,
			duration: 700,
			hash: true,
			offset: -20,
			onBefore: function(e, anchor, $target){},
			onAfter: function(anchor, settings){}
		});
	}
}

$(document).ready(function(){
	NLT.init();
});

$(window).resize(function(){
});
