jQuery(document).ready(function(){
jQuery(".client-list > li > a img").each(function() {
	rollsrc = jQuery(this).attr("src");
	rollON = rollsrc.replace(/_selected.png$/ig,".png");
	jQuery(this).attr("src", rollON);
	//alert(rollON);
});
});
	
	
	function tooltipize(x)
	{
		var imgsrc = '';
		jQuery(document).ready(function() {
    	var i=1;
		while(i<=x)
		{
			//jQuery(".client-list .client_" + i).fadeTo("fast",0.5);
			if(i%5==0)
			{
				jQuery(".client-list .client_" + i + ">img").tooltip({offset: [-10,-200], onShow: function() {
		rollsrc = this.getTrigger().attr("src");
		rollON = rollsrc.replace(/.png$/ig,"_selected.png");
		this.getTrigger().attr("src", rollON);
	}, onHide: function() {
		rollsrc = this.getTrigger().attr("src");
		rollON = rollsrc.replace(/_selected.png$/ig,".png");
		this.getTrigger().attr("src", rollON);
	}    });
			}
			else if(i%5==1)
			{
				 jQuery(".client-list .client_" + i + ">img").tooltip({offset: [-10,200], onShow: function() {
			rollsrc = this.getTrigger().attr("src");
		rollON = rollsrc.replace(/.png$/ig,"_selected.png");
		this.getTrigger().attr("src", rollON);
	}, onHide: function() {
		rollsrc = this.getTrigger().attr("src");
		rollON = rollsrc.replace(/_selected.png$/ig,".png");
		this.getTrigger().attr("src", rollON);
	}   });
			}
			else
			{
      			jQuery(".client-list .client_" + i + ">img").tooltip({offset: [-10,0], onShow: function() {
				rollsrc = this.getTrigger().attr("src");
		rollON = rollsrc.replace(/.png$/ig,"_selected.png");
		this.getTrigger().attr("src", rollON);
	}, onHide: function() {
		rollsrc = this.getTrigger().attr("src");
		rollON = rollsrc.replace(/_selected.png$/ig,".png");
		this.getTrigger().attr("src", rollON);
	}   });
			}
       i++;
	   }
	});
	}

	
	
	/*function tooltipize(x)
	{
		
		jQuery(document).ready(function() {
    	var i=1;
		while(i<=x)
		{
			jQuery(".client-list .client_" + i).fadeTo("fast",0.5);
			if(i%5==0)
			{
				jQuery(".client-list .client_" + i + ">img").tooltip({offset: [-90,-200], onShow: function() {
		this.getTrigger().fadeTo("fast", 1);
	}, onHide: function() {

		this.getTrigger().fadeTo("fast", .5);
	}    });
			}
			else if(i%5==1)
			{
				 jQuery(".client-list .client_" + i).tooltip({offset: [-90,200], onShow: function() {
		this.getTrigger().fadeTo("fast", 1);
	}, onHide: function() {
		this.getTrigger().fadeTo("fast", .5);
	}   });
			}
			else
			{
      			jQuery(".client-list .client_" + i).tooltip({offset: [-90,0], onShow: function() {
		this.getTrigger().fadeTo("fast", 1);
	}, onHide: function() {
		this.getTrigger().fadeTo("fast", .5);
		this.getTrigger().css("filter", "inherit");
	}   });
			}
       i++;
	   }
	});
	}*/


