jQuery.noConflict(); 
var $j =jQuery;
jQuery(document).ready(function(){ 
//jQuery(function($){ 
	if (jQuery.browser.msie && parseInt(jQuery.browser.version) < 7) {jQuery(document).pngFix();}
	alert
        jQuery("ul.sf-menu").supersubs({ 
            minWidth:    12,   // minimum width of sub-menus in em units 
            maxWidth:    40,   // maximum width of sub-menus in em units 
            extraWidth:  3     // extra width can ensure lines don't sometimes turn over 
                               // due to slight rounding differences and font-family 
        }).superfish({
        	 speed:       1,	
        	 pathClass:  'level1_act'
        });  // call supersubs first, then superfish, so that subs are 
                         // not display:none when measuring. Call before initialising 
                         // containing tabs for same reason. 
                         
                         
       jQuery("ul.lang-menu").supersubs({ 
            minWidth:   12,   // minimum width of sub-menus in em units 
            maxWidth:    50,   // maximum width of sub-menus in em units 
            extraWidth:  3     // extra width can ensure lines don't sometimes turn over 
                               // due to slight rounding differences and font-family 
        }).superfish({
        	 speed:       1	
        });  // call supersubs first, then superfish, so that subs are 
                         // not display:none when measuring. Call before initialising 
                         // containing tabs for same reason. 
    }); 
 
jQuery(document).ready(function(){ 
	var $search = jQuery('#searchform').addClass('overlabel');
	var $searchInput = $search.find('#searchbox_input');
	var $searchLabel = $search.find('label');
	var $searchLang = jQuery('input[name=tx_indexedsearch[lang]]').val();
	switch($searchLang){
		case '0':
			$searchLabel.html('SEARCH');
			break;
		case '1':
			$searchLabel.html('SUCHE');
			break;
		case '4':
			$searchLabel.html('SEARCH');
			break;
		case '5':
			$searchLabel.html('BUSCAR');
			break;
		case '6':
			$searchLabel.html('SEARCH');
			break;
		case '7':
			$searchLabel.html('SEARCH');
			break;
		case '8':
			$searchLabel.html('SEARCH');
			break;
	}
	$searchLabel.css('display','block');
	if($searchInput.val()){
		$searchLabel.hide();
	}
	
	$searchInput
	.focus(function(){
		$searchLabel.hide();
	})
	.blur(function(){
		if (this.value==''){
			$searchLabel.show();
		}
	});
	
	$searchLabel.click(function(){
		$searchInput.trigger('focus');
	});

});