jQuery(document).ready(function($){
	
        var defaultValue = 'z.B. ericsson w800i oder nintendo wii';
        
        $('.autocomplete').each( function(index,item){
            if(!checkForIe()){
                $(item).jLabel(); 
                $(item).prev().html(defaultValue);
                $(item).prev().css("color",  "#b3b3b3");
                $(item).prev().css("font-style",  "italic");
                $(item).prev().css("margin-right",  -$(item).prev().width()+"px");
            }else{
                $(item).jLabel(); 
                $(item).prev().html(defaultValue);
                $(item).prev().css("position",  "absolute");
                $(item).prev().css("color",  "#b3b3b3");
                $(item).prev().css("font-style",  "italic");
                $(item).prev().css("margin-right",  -$(item).prev().width()+"px");
            }
        });


        
        
        $('.search_submit').each( function(index, item){
            $(item).click(function(){
                if($(this).closest(".search").find(".autocomplete").val() != ""){
                    $(this).closest("form").submit();                
                }

                return false;
            });
        });
        

});

function checkForIe(){
    
    if(jQuery.browser.msie){
        if(parseFloat(jQuery.browser.version) && parseFloat(jQuery.browser.version) < 9.0){
            return  true;
        }
    }
    
    return false;
}



