$(document).ready(function(){
    $("#search .results .item").hover(
        // In
        function(){
            //$('#search .results .wrapper').css('opacity', '0.5');
            /*
            $("#search .results .item img").css('opacity', '0.5');
            $(this).find('img').css('opacity', '1');
            */
            $(this).find('div').show();
            $(this).css('border-color', '#afc2cf').css('background-color', '#afc2cf');
                
                // Bug IE 7 > z-index
                if (jQuery.browser.msie && (String(jQuery.browser.version) == '7.0' || String(jQuery.browser.version) == '6.0')) {
                    jQuery(function() {
                        var zIndexNumber = 10000;
                        jQuery('div').each(function() {
                            jQuery(this).css('zIndex', zIndexNumber);
                            zIndexNumber -= 10;
                        });
                    });
                    
                    $(this).css('zIndex', '100000000000');
                }
        },
        // Out
        function(){
            //$('#search .results .wrapper').css('opacity', '1'); 
            $("#search .results .item img").css('opacity', '1');
            $(this).find('div').hide(); 
            $(this).css('border-color', '#ffffff').css('border-bottom-color', '#e7e7e7').css('background-color', '#ffffff'); 
        }
    );
});
