$(document).ready(function(){

	$(".btn-slide").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	 
});

// Suchlabel im Eingabefeld
    $(document).ready(function(){
        
        // Get the text from the label element
        var labelTxt = $('#search-form label').text();
    
        // Put the text from the label element into the search field's value
        $('#tx-indexedsearch-searchbox-sword').attr('value',labelTxt);
        
        // Focus & blur effects
        $('#tx-indexedsearch-searchbox-sword').focus(function(){
            if ((this.value == '') || (this.value == labelTxt)) {
                $(this).val('');
                $(this).addClass('focus');
            }
        });
        $('#tx-indexedsearch-searchbox-sword').blur(function(){
            if (this.value == '') {
                $(this).val(labelTxt);
                $(this).removeClass('focus');
            }
        });
        
        // On submit change the value while server side code is run
        /*$("#search-submit").click(function(){
            $('#search-input').attr('value','suche...');
        });*/
        
    });

