// JavaScript Document

function jq_accordion(element)
{
	$(element + "_header").hover(function () {
		if($(this).next().attr("akt") != "1") {																				 
			$(this).animate({color: '#c7b5a9'},{queue:false, duration:500}).animate({borderLeftColor: '#a49286'},{queue:false, duration:500});
		}
	}, function () {
		if($(this).next().attr("akt") != "1") {	
			$(this).animate({color: '#000'},{queue:false, duration:500}).animate({borderLeftColor: '#000'},{queue:false, duration:500});
		}
	});		
	
	$(element + "_header").click(function(){
		if($(this).next().attr("akt") != "1")
		{	
			$(element + "_header").css("border-left", "solid 1px #000").animate({color: '#000'},{queue:false, duration:500});		
			$(element + "_body").slideUp("slow").attr("akt", "0");
			$(this).next().slideDown("normal").attr("akt", "1");
			$(this).css("border-left", "solid 1px #a49286").animate({color: '#a49286'},{queue:false, duration:500});
		} else {
			$(this).next().attr("akt", "0");
			$(this).next().slideUp("slow");
		}
	});
}