var dataindex = 0;
var zeitintervall = 10;
var uebrgangszeit = 5;
 
 jQuery(document).ready(function($){
   // Startbild setzen
   $('#headerimage_back, #headerimage_front').css('background','url('+ $('#headerimagesrc img:eq(' + (dataindex % $('#headerimagesrc img').length) + ')').attr('src') +') left');
   // Wechsel
   window.setInterval(function() {
   		dataindex += 1;
		$('#headerimage_front').fadeTo(0, 0.01);
		var nextimg = $('#headerimagesrc img:eq(' + (dataindex % $('#headerimagesrc img').length) + ')').attr('src');
		$('#headerimage_front').css('background','url('+ nextimg +') left');
		$('#headerimage_front').fadeTo(uebrgangszeit * 1000, 1, function() {
			$('#headerimage_back').css('background','url('+ nextimg +') left');
			});	
   }, zeitintervall * 1000);
 });
 
function recordOutboundLink(link, category, action) {
  try{
    var pageTracker = _gat._getTracker("UA-24343171-1");
    pageTracker._trackEvent(category, action);
    setTimeout('document.location = "' + link.href + '"', 100)
  } catch(err) {}
}


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-24343171-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
