var cPanel;
jQuery(window).bind("load", function() {
	jQuery("div#slider1").codaSlider()
	//jQuery("div#slider2").codaSlider()
	// etc, etc. Beware of cross-linking difficulties 
	// if using multiple sliders on one page.
	});





	
$(document).ready(function() {

	$("div.login p.min-max").click(function(){
		$("p.min-max").toggleClass("on");
		$("div.login .loginfieldset").slideToggle("slow");
	});

	$("div.klappbox h1").click(function(){
		$(this).toggleClass("on");
		$(this).parent().parent().find("div.innertextpicwrap").slideToggle("slow");
		$(this).parent().parent().find("div.innertextwrap").slideToggle("slow");
	});


});

Slidedshow_lesen() ;
/* -----------------------------------
   rotating home page items
   ----------------------------------- */
var image_count;
var current_image=0;

$(document).ready(function(){
  image_count = $("div.bannerwrap .imagewrap").hide().size();
  $("div.bannerwrap .imagewrap:eq("+current_image+")").show();
  setInterval(feature_rotate,5000); //time in milliseconds

});


function feature_rotate() {
  old_image = current_image%image_count;
  new_image = ++current_image%image_count;
  $("div.bannerwrap .imagewrap:eq(" + new_image + ")").fadeIn("slow", function() {
    $("div.bannerwrap .imagewrap:eq(" + old_image + ")").fadeOut("slow");
  });
}
