
$(document).ready(function(){
	if ( $.browser.msie && $.browser.version < 8 ) { //apply only for IE6/7
	
	    $(".tyre-search-combo-expandable")
	
	        .focusin(function(){
	            var oldWidth = $(this).width();
	        	$(this)
	                .data("origWidth", $(this).css("width"))
	                .css("width", "auto");
	        	var newWidth = $(this).width();
	        	if(oldWidth  > newWidth) { //the combo is already bigger then the content ( then the auto width)
	        		$(this)
	                .data("origWidth", oldWidth)
	                .css("width", oldWidth + 2 + "px");
	        	}
	            
	        })
	
	        .blur(function(){
	            $(this).css("width", $(this).data("origWidth"));
	        })
	    
		    .change(function(){
		        $(this).css("width", $(this).data("origWidth"));
		    });
	}
});
