jQuery(‘.shopping_cart’).mouseenter(function(){
if(!jQuery(this).find(‘li.empty’)[0]){
try{
jQuery(‘.shopping_cart, .shopping_cart *’).stop(true,true);
var x = jQuery(‘.shopping_cart’).position().left + jQuery(‘.shopping_cart’).innerWidth();
var y = jQuery(‘.shopping_cart .widget_shopping_cart’).position().top;
jQuery(this).addClass(‘hover’);
jQuery(‘.shopping_cart .widget_shopping_cart’).css(‘background-color’,jQuery(‘.header_wrap’).css(‘background-color’));
jQuery(‘.shopping_cart .widget_shopping_cart’).css({
‘top’:String(y) + ‘px’,
‘left’:String(x – jQuery(‘.shopping_cart .widget_shopping_cart’).innerWidth()) + ‘px’
});
} catch(e){}
}
});