	var speed = 50;
	var pic, numImgs, arrLeft, i, totalWidth, n, myInterval; 
	var w = 600;
	var start = 0;
	var buttonClick = 0;
$j(document).ready(function() {

	pic = $j("#slider_1").children("div");
	numImgs = pic.length;
	arrLeft = new Array(numImgs);
	
	pic2 = $j("#slider_2").children("div");
	numImgs2 = pic2.length;
	arrLeft2 = new Array(numImgs2);
	
	pic3 = $j("#slider_3").children("div");
	numImgs3 = pic3.length;
	arrLeft3 = new Array(numImgs3);
	
	for (i=0;i<numImgs;i++){
		
		totalWidth=0;
		for(n=0;n<i;n++){
			totalWidth += w;
		}
		
		arrLeft[i] = totalWidth;
		$j(pic[i]).css("left",totalWidth);
		get_scroller(start,$j(pic[i]));
		start+= 4;
		
		totalWidth2=0;
		for(n2=0;n2<i;n2++){
			totalWidth2 += w;
		}
		
		arrLeft2[i] = totalWidth2;
		$j(pic2[i]).css("left",totalWidth2);
		get_scroller(start,$j(pic2[i]));
		start+= 4;
		
		totalWidth3=0;
		for(n3=0;n3<i;n3++){
			totalWidth3 += w;
		}
		
		arrLeft3[i] = totalWidth3;
		$j(pic3[i]).css("left",totalWidth3);
		get_scroller(start,$j(pic3[i]));
		start+= 4;
	}
	/*
	pic2 = $j("#slider_2").children("div");
	numImgs2 = pic2.length;
	arrLeft2 = new Array(numImgs2);
	
	for (i2=0;i2<numImgs2;i2++){
		
		totalWidth2=0;
		for(n2=0;n2<i2;n2++){
			totalWidth2 += w;
		}
		
		arrLeft2[i2] = totalWidth2;
		$j(pic2[i2]).css("left",totalWidth2);
		get_scroller(start,$j(pic2[i2]));
		start+= 4;
	}*/

});

function content_big(id,pos){
  if(pos == 'next'){
	  buttonClick++;
	for (i=0;i<numImgs;i++){
		arrLeft[i] -= w;	
		if (arrLeft[i] == -(2*w)){	
			totalWidth = 0;	
			arrLeft[i] = w;
		}	
		$j(pic[i]).css('z-index','2');
		if($j(pic[i]).css('left') == '-'+w+'px'){ 
			$j(pic[i]).css('z-index','1');
			get_scroller(start,pic[i]);
			
		}
		start+= 4;
		$j(pic[i]).animate({
    		left: arrLeft[i]
  			},{ "duration": "slow", "easing": "easeOutBack"
		}, function() {
 		});
		
		arrLeft2[i] -= w;	
		if (arrLeft2[i] == -(2*w)){	
			totalWidth2 = 0;	
			arrLeft2[i] = w;
		}	
		$j(pic2[i]).css('z-index','2');
		if($j(pic2[i]).css('left') == '-'+w+'px'){ 
			$j(pic2[i]).css('z-index','1');
			get_scroller(start,pic2[i]);
			
		}
		start+= 4;
		$j(pic2[i]).delay(50).animate({
    		left: arrLeft[i]
  			},{ "duration": "slow", "easing": "easeOutBack"
		}, function() {
 		});
		
		arrLeft3[i] -= w;	
		if (arrLeft3[i] == -(2*w)){	
			totalWidth3 = 0;	
			arrLeft3[i] = w;
		}	
		$j(pic3[i]).css('z-index','2');
		if($j(pic3[i]).css('left') == '-'+w+'px'){ 
			$j(pic3[i]).css('z-index','1');
			get_scroller(start,pic3[i]);
			
		}
		start+= 4;
		$j(pic3[i]).delay(100).animate({
    		left: arrLeft[i]
  			},{ "duration": "slow", "easing": "easeOutBack"
		}, function() {
 		});
	}
  }else{
	if(buttonClick > 0){  
  	for (i=0;i<numImgs;i++){
		arrLeft[i] += w;	
		if (arrLeft[i] == (2*w)){	
			totalWidth = 0;	
			arrLeft[i] = -w;
		}	
		$j(pic[i]).css('z-index','2');
		if($j(pic[i]).css('left') == w+'px'){ 
			$j(pic[i]).css('z-index','1');
			get_scroller(start,pic[i]);
			
		}
		start-= 4;
		//if(start < 0) start = 0;
		$j(pic[i]).animate({
    		left: arrLeft[i]
  			},{ "duration": "slow", "easing": "easeOutBack"
		}, function() {
  		});
		arrLeft2[i] += w;	
		if (arrLeft2[i] == (2*w)){	
			totalWidth2 = 0;	
			arrLeft2[i] = -w;
		}	
		$j(pic2[i]).css('z-index','2');
		if($j(pic2[i]).css('left') == w+'px'){ 
			$j(pic2[i]).css('z-index','1');
			get_scroller(start,pic2[i]);
			
		}
		start-= 4;
		//if(start < 0) start = 4;
		$j(pic2[i]).delay(50).animate({
    		left: arrLeft[i]
  			},{ "duration": "slow", "easing": "easeOutBack"
		}, function() {
  		});
		
		arrLeft3[i] += w;	
		if (arrLeft3[i] == (2*w)){	
			totalWidth3 = 0;	
			arrLeft3[i] = -w;
		}	
		$j(pic3[i]).css('z-index','2');
		if($j(pic3[i]).css('left') == w+'px'){ 
			$j(pic3[i]).css('z-index','1');
			get_scroller(start,pic3[i]);
			
		}
		start-= 4;
		//if(start < 0) start = 8;
		$j(pic3[i]).delay(50).animate({
    		left: arrLeft[i]
  			},{ "duration": "slow", "easing": "easeOutBack"
		}, function() {
  		});
	}
	buttonClick--;
  }else{
	  	buttonClick = 0;
  }
  
  }
}

function get_scroller(start_,element){
		$j(element).children("div").remove();
		$j.ajax({
    		url: 'include/scoller_big.php',
    		type: 'POST',
			timeout: 2500,
			data: "start="+start_,
    		error: function(){
				return false;
    		},
    		success: function(data){
				//$j('.content:first').clone().appendTo('#wrapper');
				$j(element).append(data);
				
			}
			});
		}

