//<![CDATA[
			
$(document).ready(function() {	
	
	// if Javascript is not enabled, don't show Text-Rotator
	$("#QuoteRotator").show();

	$('.slideshow').cycle({
		fx: 			'fade', 	// choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout:         5000		// milliseconds between slide transitions (0 to disable auto advance) 
	});
	
	//show the toggle containers on load
	$(".contentOuterBox").show(); 

	//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
	$("a.trigger").click(function(){
		$(this).toggleClass("active").next();
		$(".contentOuterBox").toggle(); // in this case, .slidetoogle is much to slow
	});
		
});
	
/* BoxGrid Slider */
		
$(document).ready(function(){
	//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
	//Vertical Sliding

	//Full Caption Sliding (Hidden to Visible)
	$('.boxgrid.captionfull').hover(function(){
		$(".cover", this).stop().animate({top:'60px'},{queue:false,duration:160});
	}, function() {
		$(".cover", this).stop().animate({top:'100px'},{queue:false,duration:160});
	});
	
});
	
// Preload some images
// MM_preloadImages('../betrieb/img_b0.jpg','../betrieb/img_b1.jpg','../betrieb/img_b2.jpg','../betrieb/img_b3.jpg','../betrieb/img_b4.jpg','../betrieb/img_b5.jpg','../betrieb/img_b6.jpg','../betrieb/img_b7.jpg','../betrieb/img_b8.jpg','../betrieb/img_b9.jpg','../betrieb/img_b10.jpg','../betrieb/img_b11.jpg');

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

// a simple text hover
function txt_over(text) {		
	if (document.getElementById(text).className=="normal_") {
		document.getElementById(text).className="hover";	
	}		
};

function txt_out(text) {	
	if (document.getElementById(text).className=="hover") {
		document.getElementById(text).className="normal_";
	}
};

//]]>			
