

/**
 * @author Burns
 */
/* shuffle function - used in Ad - Slideshow 
src: http://yelotofu.com/2008/08/jquery-shuffle-plugin/
*/
 (function($){
  $.fn.shuffle = function() {
    return this.each(function(){
      var items = $(this).children();
      return (items.length)
        ? $(this).html($.shuffle(items))
        : this;
    });
  }
 
  $.shuffle = function(arr) {
    for(
      var j, x, i = arr.length; i;
      j = parseInt(Math.random() * i),
      x = arr[--i], arr[i] = arr[j], arr[j] = x
    );
    return arr;
  }
})(jQuery);
 

$(document).ready(function(){

	// "Branchenauswahl: " zeigen oder nicht
	if ( ! $("#navigation .findme").length ) {
		// a category is active
		$('#menu h1').show();
	}
	

	$(".interactive").removeClass("interactive");

    /* WelcomeAd - Slideshow */
	if ($('#hotlinks').hasClass('shuffle')) {
		$('#hotlinks').shuffle();
	}
	$('#hotlinks').jcarousel({
		scroll: 1
    });
    
    /* WelcomeText - Kaufargumente */
	$('#argumente').jcarousel({
		vertical: 1,
		scroll: 1,
		wrap: 'both'

    });
});

