$(document).ready(function() {


    $("a[rel=external]").attr("target", "_blank");

	$('body').animate({scrollTop: $('#panel-0').offset().top}, 1000, 'easeInOutExpo');
	$.localScroll.defaults.axis = 'xy';
	$.easing.def = 'easeInOutExpo';
	
	
	
	$('.wrapper-0').localScroll({
		target: '#slider-0',
		queue: true,
		duration: 4000
	});
	$('.wrapper-1').localScroll({
		target: '#slider-1',
		queue: true,
		duration: 4000
	});
	$('.wrapper-2').localScroll({
		target: '#slider-2',
		queue: true,
		duration: 4000
	});
	$('.wrapper-3').localScroll({
		target: '#slider-3',
		queue: true,
		duration: 4000
	});
	$('.wrapper-4').localScroll({
		target: '#slider-4',
		queue: true,
		duration: 4000
	});
	$('.wrapper-5').localScroll({
		target: '#slider-5',
		queue: true,
		duration: 4000
	});
	$('.wrapper-6').localScroll({
		target: '#slider-6',
		queue: true,
		duration: 4000
	});
	$('.wrapper-7').localScroll({
		target: '#slider-7',
		queue: true,
		duration: 4000
	});
	$('.wrapper-8').localScroll({
		target: '#slider-8',
		queue: true,
		duration: 4000
	});
	
	$('.wrapper-9').localScroll({
		target: 'body',
		queue: true,
		duration: 2000
	}).localScroll({
		target: '#slider-6',
		queue: true,
		duration: 4000
	});
	
	$('.wrapper-10').localScroll({
		target: '#slider-10',
		queue: true,
		duration: 4000
	});
	
	$('.main').localScroll({
		target: 'body',
		queue: true,
		duration: 3000
	});
	
	$('#top-1').localScroll({
		target: 'body',
		queue: true,
		duration: 3000
	});
	
	
	
	$("#slider-3-0").click(function() {
		$("#aw1").addClass("green");
	});
	
	$("#slider-5-0").click(function() {
		$("#ref1").addClass("green");
	});
	
	
	$("ul.arbeitswelten li a").click(function() {
		$("ul.arbeitswelten li a").removeClass("green");
		$(this).addClass("green");
	});
	
	
	$("ul.referenzen li a").click(function() {
		$("ul.referenzen li a").removeClass("green");
		$(this).addClass("green");
	});
	
	
	$('.fade').cycle({fx: 'fade', speed: '3000'});
	$('a.nyroModal').nyroModal();
	
	// $("#twitter").getTwitter({
// 		userName: "LodewickGmbH",
// 		numTweets: 5,
// 		loaderText: "Loading tweets...",
// 		slideIn: true,
// 		slideDuration: 750,
// 		showHeading: true,
// 		headingText: "Latest Tweets",
// 		showProfileLink: true,
// 		showTimestamp: true
// 	});


});






