jQuery.noConflict();
(function($) {
	var left = 0, tO, width;
	var table1;
	var speed = 100;
	
function Loading()
{
	$(".inList").css("left",0);
	table1 = $(".inList");
	width = table1.width();
	$(".inList td").clone(true).insertAfter(".inList td:last");
	tO=setInterval(function(){
      	Moving();
	},speed);
}
function Moving()
{
	left-=2;
	table1.css("left",left);
	if (left<=-width){left=0;}
}

function stop(a)
{
	var el=$("#partner-list .partnerLabel");
	var w;
	var td = a;
	a = $(a);
	if (tO)
	{
		
		clearInterval(tO);
		tO = false;
		el.css("opacity", 0.2);
		a.css("opacity",1);
		var position = a.position();
		var right = 0;
		w = a.width();
		var posLeft = position.left;
		if (posLeft+left+w>660)
		{
			right = w + 309;
			$("span",a).addClass("right");
		} else {
			$("span",a).removeClass("right");
		}
		$("span", a).css({
			'display':'block',
			'left':posLeft+w+5-right}
		);
		if($.browser.mozilla)
		{
			$("span", a).css({'left':posLeft+left+w+5-right,'top':38});
		}
		if($.browser.opera)
		{
			$("span", a).css({'left':posLeft+w+5-right});
		}
		if($.browser.safari)
		{
			$("span", a).css({'top':24});
		}
	} else {
		tO=setInterval(function(){
	      	Moving();
			},speed);
		$("span", a).css({
			'display':'none',
			'left':0}
		);
		el.css("opacity",1);
	}
	a.toggleClass("hover");
}
jQuery(document).ready(
		function(){
			Loading();
			jQuery(".partnerLabel").mouseover(
				function(){
					stop(this);
				}
			);
			jQuery(".partnerLabel").mouseout(
				function(){
					stop(this);
				}
			);
		}
	);
})(jQuery);
