attachRollOverEvent = function(imageId){
	$(imageId).mouseover( function(){ $(this).attr("src", $(this).attr("src").split('-off').join('-on')) } );
	$(imageId).mouseout( function(){ $(this).attr("src", $(this).attr("src").split('-on').join('-off')) } );
}

$(document).ready(function(){
	$("#accordion").accordion({ 
		autoHeight: false,
		event: 'mouseover',
	});
	
	attachRollOverEvent(".supported a img.roll");

	$("#slide-fallbeispiel-container").hide();
	$("#slide-fallbeispiel").click(function () {
		$("#slide-fallbeispiel-container").slideToggle("slow");
	});

	$("a[name^='faq-']").each(function() {
		$(this).click(function() {
			$("#" + this.name).slideToggle('slow');
			return false;
		});
	});

	$(".ajax_loader2").hide();

	$(":submit").click(function () { 
		$(".ajax_loader2").show();
	});

});