/* YUI scrolling customers-specific script */
	YAHOO.example = function() {
		var $D = YAHOO.util.Dom;
		var $E = YAHOO.util.Event;
		var $A = YAHOO.util.Anim;
		var $M = YAHOO.util.Motion;
		var $DD = YAHOO.util.DD;
		var $ = $D.get;
		var x = 1;
		return {
			init : function() {
				$E.on(['move-left','move-right'], 'click', this.move);
			},
			move : function(e) {
				$E.stopEvent(e);
				switch(this.id) {
					case 'move-left':
						if ( x === 1 ) {
							return;
						}
						var attributes = {
							points : {
								by : [820, 0]
							}
						};
						x--;
					break;
					case 'move-right':
						if ( x === 7 ) {
							return;
						}
						var attributes = {
							points : {
								by : [-820, 0]
							}
						};
						x++;
					break;
				};
				var anim = new $M('store-list-homepage', attributes, 0.5, YAHOO.util.Easing.easeOut);
				anim.animate();
			}
		};
	}();
	YAHOO.util.Event.onAvailable('store-logos-homepage',YAHOO.example.init, YAHOO.example, true);