	$(document).ready( function()
	{
	var currentPositionStore1 = 0;
	var slidesStore1 = $('.slideStore1');
	var slideWidthStore1 = 182;
	var totalSlideStore1 = slidesStore1.length;	
	
	
	// remove scroller 	
	$('#slideConStore1').css('overflow', 'hidden');
	// wrape all slide
	slidesStore1.wrapAll('<div id="slideInnerStore1"></div>');
	$('#slideInnerStore1').css( {'float' : 'left', 'width' : slideWidthStore1 * totalSlideStore1});
	$(slidesStore1).css('float', 'left');	
	// insert left aero and right aero
	$('#slideContainerStore1').prepend('<span id="leftStore1" class="controlStore1" ></span> <span id="leftdisStore1" class="controldisStore1"></span>');
	$('#slideContainerStore1').append('<span id="rightStore1" class="controlStore1" ></span> <span id="rightdisStore1" class="controldisStore1"></span>');
	manageControlStore1(currentPositionStore1);	
	
	$('.controlStore1').click(function()
		{
			currentPositionStore1 = ($(this).attr('id') == 'rightStore1') ? currentPositionStore1-1 : currentPositionStore1+1;
			$('#slideInnerStore1').animate({'marginLeft': slideWidthStore1 * currentPositionStore1});			
			manageControlStore1(currentPositionStore1);
		});
		
	function manageControlStore1(positionStore1)
		{
			if (positionStore1 == 0)
				{
					$('#leftStore1').fadeOut("fast");	
					$('#leftdisStore1').fadeIn("slow");
					$('#leftdisStore1').attr("disabled", true); 
				
				}
			else{
					$('#leftdisStore1').fadeOut("slow");
					$('#leftStore1').fadeIn("fast");		
				}
				
			if (positionStore1 == -(totalSlideStore1)+5)
				{
					$('#rightStore1').fadeOut("fast");
					$('#rightdisStore1').fadeIn("slow");
					$('#rightdisStore1').attr("disabled", true);
					return false;
				}
				
			else {
					$('#rightdisStore1').fadeOut("fast");
					$('#rightStore1').fadeIn("fast");		
				}
			
			if (totalSlideStore1 == 5)	
				{
					$('#rightStore1').fadeOut("fast");
					$('#rightdisStore1').fadeIn("slow");						
				}
			else{
					$('#rightdisStore1').fadeOut("slow");
					$('#rightStore1').fadeIn("fast");		
				}
			
			}

	})
