$(document).ready(function()
{	

	// News auf der Startseite
/*	$('#start_news').hover(
		function() {		
			// MouseOver-Animationen
			$('#start_news').animate({ width: "190px" }, 800);
			$('#start_news_text').animate({ left: "0" }, 800);
		},
		function() {
			// Animationen stoppen
			$('#start_news').stop();
			$('#start_news_text').stop();
			
			// MouseOut-Animationen
			$('#start_news').animate({ width: "15px" }, 400);
			$('#start_news_text').animate({ left: "-175px" }, 400);
		}
	);
	
	*/
	// Agentur-Slider
	$('#agentur_slider').hover(
		function() {		
			// MouseOver-Animationen
			$('#agentur_slider').animate({ width: "380px" }, 800);
			$('#agentur_slider_text').animate({ left: "0" }, 800);
		//	$('#agentur_text').fadeTo(800, 0.2);
		},
		function() {
			// Animationen stoppen
			$('#agentur_slider').stop();
			$('#agentur_slider_text').stop();
			$('#agentur_text').stop();
			
			// MouseOut-Animationen
			$('#agentur_slider').animate({ width: "15px" }, 400);
			$('#agentur_slider_text').animate({ left: "-365px" }, 400);
		//	$('#agentur_text').fadeTo(400, 1.0);
		}
	);
	
	$('#start-referenzen').cycle({
		fx: 'scrollUp',
		speed: 2000,
		timeout: 6000
	});
	
	/*
	
	// Leistungen-Selector
	$('#leistungen_select_webdesign').hover(
		function() {
			$('#leistungen_select_fill').fadeTo(200, 0.5);
			$('#leistungen_select_fill').animate({ top: "10px" }, 200);
		},
		function() {
			
		}
	);
	
	$('#leistungen_select_printdesign').hover(
		function() {
			$('#leistungen_select_fill').fadeTo(200, 0.5);
			$('#leistungen_select_fill').animate({ top: "95px" }, 200);
		},
		function() {
			
		}
	);
	
	$('#leistungen_select_corporatedesign').hover(
		function() {
			$('#leistungen_select_fill').fadeTo(200, 0.5);
			$('#leistungen_select_fill').animate({ top: "180px" }, 200);
		},
		function() {
			
		}
	);
	
	$('#leistungen_select_fill').hover(
		function() {				
			$('#leistungen_select_fill').fadeTo(200, 0.5);
		},
		function() {
			
		}
	);
	
	$('#leistungen_text').hover(
		function() {
			$('#leistungen_select_fill').fadeTo(200, 0.0);
		},
		function() {
			
		}
	);

*/
	// Referenzen-Hover
	$('#referenzen_text a img').hover(
	
		function() {
			$(this).fadeTo(200, 0.6);
		},
		function() {
			$(this).fadeTo(200, 1.0);
		}
	);


	// FancyBox
	$('#referenzen_thumbs_links a').fancybox();
	
	$('#toplinks a').fancybox({
		'frameWidth': 400,
		'frameHeight': 400
	});
	
}
);