(function($, document, window, undefined){

	$(document).ready(function(){
		//einf�rben der liste
		$('dt').each(function(i){
			bg = i%2 ? '#000':'#000';
			$(this).css('background',bg);
		});
		
		$('dd').each(function(i){
			bg = i%2 ? '#000':'#000';
			$(this).css('background',bg);
		});
		
		acc();
	
		//aufruf des sliders
		$('#slideshow').rhinofader({
			controlsPrevNext: false,		//show/hide prev/next-controls
			controlsPlayPause: false,	//show/hide play/pause-controls
			pauseOnHover: false,			//pause on mouse-over
			autoPlay: true,			//start slideshow automatically on init
			cycled: true,				//begin from start if end has reached 
			showTime: 5000,				//time, the content is visible before next content will be blend in - depends on autoPlay
			effectTime: 1200,			//time, the effect will last
			controlFadeTime: 650,		//duration for fading controls
			showControls: 'never',		//show controls: hover, always, never
			styles: 'position,top,right,bottom,left,margin-top,margin-right,margin-bottom,margin-left,width,height'
			//style which will be transfered to the containerelement
		});
	});
	
	// jQuery Accordion v 1.5 by Sebastian Pontow
	// uses jQuery v 1.6
	// free to use by anyone
	function acc(a){var a=$.extend({active:"accActive",toggle:"accToggle",content:"accContent",accAnchor:"accAnchor",multi:"multi",openFirst:true},a);var b=a.active,c=a.toggle,d=a.content,e=a.accAnchor,f=a.multi,g=a.openFirst;$("."+d).hide();$("."+c+"."+f).each(function(){if($.trim($(this).text())==""){$(this).remove()}});var h=$(location.hash);$active=h.length>0&&h.hasClass(c)?h:g?$("."+c+":first"):false;if($active!==false){$active.addClass(b).next("."+d).show(10,function(){if(h.hasClass(c)){var a=$active.offset().top;$("html, body").scrollTop(a)}})}$("."+c+", ."+e).click(function(){$this=$(this);$toggler=$this.hasClass(c)?$this:$($(this).attr("href"));var a=$toggler.next("."+d).is(":hidden")?true:false;$("."+d).slideUp(300);$("."+b).removeClass(b);if(a){var e=$toggler.hasClass(f)?$toggler.addClass(b).nextUntil("."+c):$toggler.addClass(b).next("."+d);e.slideDown(300)}})};
}(jQuery, document, window))
