//Vorladen von Bildern
// onLoad="preloadImages('head_programm.jpg', 'head_anmeldung.jpg', 'head_lokation.jpg', 'head_presse.jpg', 'head_kontakt.jpg')"
function preloadImages(){
	document.imgContainer = new Array();
	if(document.images){
		for(var i = 0; i < preloadImages.arguments.length; i++){
			document.imgContainer[i] = new Image();
			document.imgContainer[i].src = "./pics/" + preloadImages.arguments[i];
			//alert(document.imgContainer[i].src);
		}
	}
}
//Zeigt unsichtbare an
function showDetails(id) {
	document.getElementById(id).style.display="inline";
}
function hideDetails(id) {
	document.getElementById(id).style.display="none";
}

//Testimonial Ticker *************************************************
var pixel = 1;
var scrolled_pixel = 0;
var max_height = 0;
var displayed_height = 100;
var start = true; 
function init() {
   if(document.getElementById("testimonialTicker")) {
      max_height = document.getElementById("testimonialTicker").offsetHeight + displayed_height;
      show_ticker();
   }
}
function show_ticker() {
  if(start) {
    if(document.getElementById)
      document.getElementById("testimonialTicker").style.top = (displayed_height - scrolled_pixel) + "px";
    scrolled_pixel += pixel;
    if(scrolled_pixel > max_height)
      scrolled_pixel = 0;
    active = window.setTimeout("show_ticker()",50);
  }
}
function stop() {
	start = false;
    window.clearTimeout(active);
}
function restart() {
	start = true;
	show_ticker();
}
//Ende Testimonial Ticker ********************************************