function dom_init() {


	

	$(function () {
	//$('#unternehmen').load('http://www.solarshare.de/index.php?id=unternehmen');
	//$('#kommunen').load('http://www.solarshare.de/index.php?id=kommunen');
	//$('#landwirte').load('http://www.solarshare.de/index.php?id=landwirte');
	$('#kontakt-content').load('http://www.solarshare.de/index.php?id=kontakt');
	$('#team').load('http://www.solarshare.de/index.php?id=team');
	});
	
	$("#unternehmen ol li").each(function (i) {
		i = i+1;
		$(this).prepend('<span class="schritte">Schritt '+i+'</span>');
   });

	$("#landwirte ol li").each(function (i) {
		i = i+1;
		$(this).prepend('<span class="schritte">Schritt '+i+'</span>');
  });
	
	$("#kommunen ol li").each(function (i) {
		i = i+1;
		$(this).prepend('<span class="schritte">Schritt '+i+'</span>');
   });
	
	$('.hide').click(function(){
		$('.success').fadeOut("slow");
	})
	
	$('.hide2').click(function(){
		$('.error').fadeOut("slow");
	})
	
	$('.more').hide();
	$('.more-link').click(function(){
		$(this).toggleClass('active').next().slideToggle('fast');
	});
	
	$('a[href*=#]').click(function() {

			// duration in ms
			var duration=500;

			// easing values: swing | linear
			var easing='swing';

			// get / set parameters
			var newHash=this.hash;
			var target=$(this.hash).offset().top;
			var oldLocation=window.location.href.replace(window.location.hash, '');
			var newLocation=this;

			// make sure it's the same location      
			if(oldLocation+newHash==newLocation)
			{
				// animate to target and set the hash to the window.location after the animation
				$('html:not(:animated),body:not(:animated)').animate({ scrollTop: target }, duration, easing, function() {

					// add new hash to the browser location
					window.location.href=newLocation;
				});

				// cancel default click action
				return false;
			}
		});
	
	// See http://fancybox.net/api for all options

	$("a.fancybox").fancybox({
		'speedIn' : 600,
		'speedOut' : 300
	});
	

	

}



