$(document).ready(function(){
    fullWidth = 968;
    buttonWidth = 32;
    imageWidth = fullWidth - $("#akkordion li").length * buttonWidth;
    itemWidth = imageWidth + buttonWidth;
    $("#akkordion a").click( function(ev){ 
	ev.preventDefault(); 
        var $self = $(this);
        if($("#akkordion li.active").length){
            $self.parent('li').animate({syncWidth: itemWidth}, {syncElements: '#akkordion li', fullWidth: fullWidth, complete: function(){
                document.location = $self.attr('href'); 
                }});
	    }
	else {
	    $self.parent('li').animate( {width: itemWidth+"px"}, function(){
	        document.location = $self.attr('href'); 
                });
	    }
	}); 
    });
