
		
	/* Einstellungen fuer die verschiedenen Accordioen */
	$('#mainAccordion_close').accordion({ 
		header: 'a.mainAcc',
		active: false, 
		alwaysOpen: false, 
		autoheight: false,
		collapsible: false,
		clearStyle: true 
	});
	
	$("#mainAccordion").accordion({
		alwaysOpen: false,
		autoHeight: false,
		header: 'a.mainAcc',
		collapsible: false,
		clearStyle: true
	});
	$("#mainAccordionNot").accordion({
		alwaysOpen: false,
		autoHeight: false,
		header: 'a.mainAccNot',
		collapsible: false,
		clearStyle: true
	});
	$("#subAccordion00, #subAccordion01, #subAccordion02, #subAccordion03, #subAccordion04").accordion({
		alwaysOpen: false,
		autoHeight: false,
		navigation: true,
		collapsible: false,
		header: 'a.subAcc'
	});
	
	
	/* spielt entsprechendes Video ab */
	$("a.mainAcc, a.subAcc").click(function() {
		var name = this.id;
		detectfilename(name);
	});

	/* oeffnet entsprechendes Accordion */
	function acc(mainA, subA){
		$("#mainAccordion").accordion("activate", ":eq("+mainA+")");
		$("#subAccordion0"+mainA).accordion("activate", ":eq("+subA+")");
	}
	
	/* schiebt Videogalerie auf/ein */
	$('#filmbutton a, .videoSymbol').click(function() {
		if (document.getElementById('filmgallery').style.display == "block") {
			$('#filmgallery').animate({	width: 'hide' }, 'slow');
			$('#filmbutton a').text('Videogalerie anzeigen <');
		} else {
			$('#filmgallery').animate({	width: 'show' }, 'slow');
			$('#filmbutton a').text('Videogalerie ausblenden <');
		}
	});
	
	
/* Tooltip Funktion */
this.tooltip = function(){	
	$(".tooltip").hover(function(e){	  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<p id='tooltip'>"+ this.t +"</p>");
		var newsWidth = document.getElementById("tooltip").offsetWidth/2;
		var newsHeight = document.getElementById("konzept") ? -10 : document.getElementById("tooltip").offsetHeight+20;		
		$("#tooltip")
			.css("top",(e.pageY - newsHeight) + "px")
			.css("left",(e.pageX - newsWidth) + "px")
			.css("display","block");
    },
	function(){
		this.title = this.t;
		$("#tooltip").remove();
    });	
	$(".tooltip").mousemove(function(e){
		var newsWidth = document.getElementById("tooltip").offsetWidth/2;
		var newsHeight = document.getElementById("konzept") ? -10 : document.getElementById("tooltip").offsetHeight+20;
		$("#tooltip")
			.css("top",(e.pageY - newsHeight) + "px")
			.css("left",(e.pageX - newsWidth) + "px");
	});			
};
tooltip();





