//
//iphoto like goods scrolling
//

$(document).ready(function() {

$(".overflowitem").mousemove(function(eo){
	width=151;
	total=$(this).children().length;
	o=$(this).offset();

	x=window.scrollX+eo.clientX-o.left-0;

	if(isNaN(x)) {
		x=document.body.scrollLeft+eo.clientX-o.left-0;
	}
	current=parseInt(x/(width/total));
	if(current>=total) current=total-1;
	for(i=0;i<total;i++) {
		if(i!=current) {
				$(this.children[i]).hide();
			} else {
				$(this.children[i]).show();
			};
	}
});

});