/**
 * @author maxii
 */
$.fn.marquee = function(){
	var div = $(this).find("div");
	var width = $(this).width();

	div.each(function(){
		var element = this;
		$(element).parent().bind("mouseenter",function(){
			var widthDiv = $(element).width();
			if (width < widthDiv && $(element).position().left == 0) {
				$(element).animate({
					left: '-=' + (widthDiv - width)
				}, 3000);
			}	
		});
		$(element).parent().bind("mouseleave",function(){
				$(element).stop().animate({
					left: '0'
				}, "fast");
		});
	});
}
$(document).ready(function(){
	$('#top10>ul>li:even').css('background-color',"#FFFFFF");
	$(".body_top10").marquee();
});
