// 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 and 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');
            }
        });        
    });
	
				
// Animierte Subnavigation	
jQuery(document).ready(function(){
 
    $("#iconbar>li").hover(
    function(){
        $(this).animate({ width: "20em", height: "100%"}, {queue:false, duration:"normal"} );
        $(this).children("ul").animate({opacity: "show"}, "fast");
        $(this).attr({style: "z-index:200; background:#333333 url(/fileadmin/template/images/bg_subnavi.png); border-left:solid 0.8em #333333; border-right:solid 0.8em #333333;"});
        $(this).children("a").attr ({style: "border-left:none"});
        $('div#navigation').attr({style: "z-index:210"});
        
    },
    function(){
        $(this).animate({ width: "12%"}, {queue:false, duration:"normal"} );
        $(this).children("ul").animate({opacity: "hide"}, "fast");
        $(this).attr({style: "z-index:10; background:none; border-left:solid 0.8em transparent;"});
        $(this).children("a").attr ({style: "border-left:solid 1px #333333"});
        $('div#navigation').attr({style: "z-index:10"});
    });
    
    
});


