  
  var m=0;
  var n=-scroll_bar_width;
  var direction = 'left'; 
  var status = 'start';
  var scrolling_run = '';
  
function scrollPics(scrollto) {
 

		status = 'processing';
	
		if(scrollto=='right'){ 
		 
			document.getElementById('scroll1').style.left=m+'px';
			document.getElementById('scroll2').style.left=n+'px';
			m--;
			n--;
			if(m==-scroll_bar_width) {
				m=scroll_bar_width;
			}
			if(n==-scroll_bar_width) {
				n=scroll_bar_width;
			}
			
			scrolling_run = setTimeout('scrollPics("right")',speed);	  

		}else{
		
			document.getElementById('scroll1').style.left=m+'px';
			document.getElementById('scroll2').style.left=n+'px';
			m++;
			n++;
			if(m==scroll_bar_width) {
				m=-scroll_bar_width;
			}
			if(n==scroll_bar_width) {
				n=-scroll_bar_width;
			}
			scrolling_run = setTimeout('scrollPics("left")',speed);	  
		}
		


 } 
 
function stop(){
	
	status = 'stop';
	clearTimeout(scrolling_run);
	
}

function resume(){

	if(direction=='left')
		left();
	else
		right();
}

function left(){
 
	if( (direction != 'left' && status != 'start' )|| status == 'stop'){
	   
	      direction = 'left';
		  clearTimeout(scrolling_run);
		  if(status != 'start')
			scrollPics('left'); 
		
	 }

	
}
function right(){
 
	if( (direction != 'right' && status != 'start' )|| status == 'stop'){
	 
		  direction = 'right';
		  clearTimeout(scrolling_run);
		  if(status != 'start')
			scrollPics('right'); 
		
	 }
}

function $id(v){
	return document.getElementById(v);
}  

function testimonial_more(par){
 
	if( $id(par+'_less').style.display != 'none'){
	 
		div_display(par+'_less', false);
		div_display(par+'_more', true);
		$id(par+'_btn').innerHTML = '<img src="../images/spp_hide_text.gif" class="more_btn" border="0" align="absmiddle">隐藏';
		
	}else{
	
		div_display(par+'_more', false);
		div_display(par+'_less', true);
		$id(par+'_btn').innerHTML = '<img src="../images/spp_more_text.gif" class="more_btn" border="0" align="absmiddle">阅读全文';
	}


} 
