// Custom Programmierungen
$(document).ready(function() {
	// Definitionlist Toggle
   	// hide <dd> element
  	$("dd").hide();	
	// set <dt> toggle function to expand/contract the following <dd> element
 	$("dt").click(function() {
    	$(this).next().slideToggle();
  	});
 	
 	
 	//Fancybox Definition
	$("a.zoom").fancybox({
		'overlayOpacity'	:	0.5,
		'overlayColor'		:	'#000'
	});
	
	// Stop the links with the class "contentScroller" from working (stops the "jumping to top" on click)
	$('.contentScroller').click(function(e){
		e.preventDefault();
		var link = e.target;
		link.blur();
	});

	// Reset Position on Refresh
	$.scrollTo(0);


	// Link Definitions	
	$('#webdesignLink').click(function(){
		$.scrollTo('#Webdesign', 1000, 800);
	});
	
	$('#coporateLink').click(function(){
		$.scrollTo('#Corporate', 1000, 800);
	});
	
	$('.topLink').click(function(){
		$.scrollTo('#top', 1000, 800);
	});
	
	//Content-Slider Funktion
	/*
	$("#slider").easySlider({
		auto: true,
		pause: 10000,
		continuous: true,
		numeric: true
	});
	*/
});
