﻿// JavaScript Document

// 横着滚动
function simpleSideScroll(c,ul,config,direction){
    this.config = config ? config : {start_delay:3000, speed: 23, delay:4000, scrollItemCount:1};
	this.c = $i(c);
	this.ul = $i(ul);
	this.direction = direction ? direction : "left";
	this.pause = false;
	this.buttonlist= new Object();
	this.delayTimeId=null;
	
	var _this = this;



	this.c.onmouseover=function(){_this.pause = true;}
	this.c.onmouseout=function(){_this.pause = false;}
	
	this.init = function() {
		_this.scrollTimeId = null;
		setTimeout(_this.start,_this.config.start_delay);
	}
	
	this.start = function() {
		var d = _this.c;
		var width = 0;
		try{  
			width = d.getElementsByTagName('li')[0].offsetWidth;                		
	  }catch(e){}
		if(d.scrollWidth-d.offsetLeft>=width) _this.scrollTimeId = setInterval(_this.scroll,_this.config.speed)
	};
	
	this.scroll = function() {
		if(_this.pause)return;
		var ul= _this.ul;
		var d = _this.c;
		var width = 0;
		try{  
			width = d.getElementsByTagName('li')[0].offsetWidth;                		
	  }catch(e){}
		if(_this.direction == 'right'){
	        d.scrollLeft += 2;
	        if(d.scrollLeft%(width*_this.config.scrollItemCount)<=1){
		        if(_this.config.movecount != undefined)
			        for(var i=0;i<_this.config.movecount;i++){ul.appendChild(ul.getElementsByTagName('li')[0]);}
		        else for(var i=0;i<_this.config.scrollItemCount;i++){
		        	try{
		        	  ul.appendChild(ul.getElementsByTagName('li')[0]);
		        	}catch(e){}
		        	
		        	}
		        d.scrollLeft=0;
		        clearInterval(_this.scrollTimeId);
		        
		        _this.delayTimeId=setTimeout(_this.start,_this.config.delay);
	        }
		}
		else {
		    if(d.scrollLeft==0)
		    {
		        var lis=ul.getElementsByTagName('li');
		        for(var i=0;i<_this.config.scrollItemCount;i++){
		            ul.insertBefore(lis[lis.length-1],lis[0]);
		        }
		        d.scrollLeft = width;
		    }
		    d.scrollLeft -= 2;
		    if(d.scrollLeft%(width*_this.config.scrollItemCount)<=1){
		        d.scrollLeft=0;
		        clearInterval(_this.scrollTimeId);
		        _this.delayTimeId=setTimeout(_this.start,_this.config.delay);
		    }
		}
	}
	
	this.setButton=function(id,direction){
	    if($i(id)){
	        var c=$i(id);
	        var buttonlist =_this.buttonlist;
	        if(buttonlist[id] == undefined){
	            buttonlist[id] =new Object();
	            _this.buttonlist[id][0]=c;
	            _this.buttonlist[id][1]=direction;
	            
	            c.onclick=function(){
	                 clearInterval(_this.scrollTimeId);
	                 
	                var dir=_this.buttonlist[this.id][1];
	                var d = _this.c;
	                var ul= _this.ul;
	                d.scrollLeft=0;
	                if(dir =="left")
	                {
	                    for(var i=0;i<_this.config.scrollItemCount;i++){ul.appendChild(ul.getElementsByTagName('li')[0]);}
	                }
	                else{
	                    var lis=ul.getElementsByTagName('li');
		                for(var i=0;i<_this.config.scrollItemCount;i++){
		                    ul.insertBefore(lis[lis.length-1],lis[0]);
		                }
	                }
	                    
	                _this.direction= dir;
	                clearTimeout(_this.delayTimeId);
	                _this.delayTimeId=setTimeout(_this.start,_this.config.delay);
	                return false;
	            }
	        }
	    }
	}
}


// 横向点击滚动
function simpleSideScrollBtn_h(c,ul,scrollItemCount){
    this.scrollItemCount = scrollItemCount ? scrollItemCount : 1;
	this.c = $i(c);
	this.ul = $i(ul);
	this.direction = "left";
	this.buttonlist= new Object();
	
	var _this = this;


	
	this.setButton=function(id,direction){
	    if($i(id)){
	        var c=$i(id);
	        var buttonlist =_this.buttonlist;
	        if(buttonlist[id] == undefined){
	            buttonlist[id] =new Object();
	            _this.buttonlist[id][0]=c;
	            _this.buttonlist[id][1]=direction;
	            
	            c.onclick=function(){
	                 
	                var dir=_this.buttonlist[this.id][1];
	                var d = _this.c;
	                var ul= _this.ul;
	                d.scrollLeft=0;
	                if(dir =="left")
	                {
	                    for(var i=0;i<_this.scrollItemCount;i++){
	                    	ul.appendChild(ul.getElementsByTagName('li')[0]);
	                    }
	                }
	                else{
	                    var lis=ul.getElementsByTagName('li');
		                for(var i=0;i<_this.scrollItemCount;i++){
		                    ul.insertBefore(lis[lis.length-1],lis[0]);
		                }
	                }
	                    
	                return false;
	            }
	        }
	    }
	}
}

// 竖向点击滚动
function simpleSideScrollBtn_v(c,ul,scrollItemCount){
    this.scrollItemCount = scrollItemCount ? scrollItemCount : 1;
	this.c = $i(c);
	this.ul = $i(ul);
	this.direction = "top";
	this.buttonlist= new Object();
	
	var _this = this;


	
	this.setButton=function(id,direction){
	    if($i(id)){
	        var c=$i(id);
	        var buttonlist =_this.buttonlist;
	        if(buttonlist[id] == undefined){
	            buttonlist[id] =new Object();
	            _this.buttonlist[id][0]=c;
	            _this.buttonlist[id][1]=direction;
	            
	            c.onclick=function(){
	                 
	                var dir=_this.buttonlist[this.id][1];
	                var d = _this.c;
	                var ul= _this.ul;
	                d.scrollTop=0;
	                if(dir =="bottom")
	                {
	                    for(var i=0;i<_this.scrollItemCount;i++){ul.appendChild(ul.getElementsByTagName('li')[0]);}
	                }
	                else{
	                    var lis=ul.getElementsByTagName('li');
		                for(var i=0;i<_this.scrollItemCount;i++){
		                    ul.insertBefore(lis[lis.length-1],lis[0]);
		                }
	                }
					
	                return false;
	            }
	        }
	    }
	}
}



// 竖向滚动
function simpleSideScroll_v(c,ul,config,direction){
    this.config = config ? config : {start_delay:3000, speed: 23, delay:4000, scrollItemCount:1};
	this.c = $i(c);
	this.ul = $i(ul);
	this.direction = direction ? direction : "top";
	this.pause = false;
	this.buttonlist= new Object();
	this.delayTimeId=null;
	
	var _this = this;



	this.c.onmouseover=function(){_this.pause = true;}
	this.c.onmouseout=function(){_this.pause = false;}
	
	this.init = function() {
		_this.scrollTimeId = null;
		setTimeout(_this.start,_this.config.start_delay);
	}
	
	this.start = function() {
		var d = _this.c;
		var width = 0;
		try{  
			width = d.getElementsByTagName('li')[0].offsetHeight;                		
	  }catch(e){}
		if(d.scrollHeight-d.offsetTop>=width) _this.scrollTimeId = setInterval(_this.scroll,_this.config.speed)
	};
	
	this.scroll = function() {
		if(_this.pause)return;
		var ul= _this.ul;
		var d = _this.c;
		var width = 0;
		try{  
			width = d.getElementsByTagName('li')[0].offsetHeight;                		
	  }catch(e){}
		if(_this.direction == 'top'){
	        d.scrollTop += 2;
	        if(d.scrollTop%(width*_this.config.scrollItemCount)<=1){
		        if(_this.config.movecount != undefined)
			        for(var i=0;i<_this.config.movecount;i++){ul.appendChild(ul.getElementsByTagName('li')[0]);}
		        else for(var i=0;i<_this.config.scrollItemCount;i++){ul.appendChild(ul.getElementsByTagName('li')[0]);}
		        d.scrollTop=0;
		        clearInterval(_this.scrollTimeId);
		        
		        _this.delayTimeId=setTimeout(_this.start,_this.config.delay);
	        }
		}
		else {
		    if(d.scrollTop==0)
		    {
		        var lis=ul.getElementsByTagName('li');
		        for(var i=0;i<_this.config.scrollItemCount;i++){
		            ul.insertBefore(lis[lis.length-1],lis[0]);
		        }
		        d.scrollTop = width;
		    }
		    d.scrollTop -= 2;
		    if(d.scrollTop%(width*_this.config.scrollItemCount)<=1){
		        d.scrollTop=0;
		        clearInterval(_this.scrollTimeId);
		        _this.delayTimeId=setTimeout(_this.start,_this.config.delay);
		    }
		}
	}
	
	this.setButton=function(id,direction){
	    if($i(id)){
	        var c=$i(id);
	        var buttonlist =_this.buttonlist;
	        if(buttonlist[id] == undefined){
	            buttonlist[id] =new Object();
	            _this.buttonlist[id][0]=c;
	            _this.buttonlist[id][1]=direction;
	            
	            c.onclick=function(){
	                 clearInterval(_this.scrollTimeId);
	                 
	                var dir=_this.buttonlist[this.id][1];
	                var d = _this.c;
	                var ul= _this.ul;
	                d.scrollTop=0;
	                if(dir =="bottom")
	                {
	                    for(var i=0;i<_this.config.scrollItemCount;i++){ul.appendChild(ul.getElementsByTagName('li')[0]);}
	                }
	                else{
	                    var lis=ul.getElementsByTagName('li');
		                for(var i=0;i<_this.config.scrollItemCount;i++){
		                    ul.insertBefore(lis[lis.length-1],lis[0]);
		                }
	                }
	                    
	                _this.direction= dir;
	                clearTimeout(_this.delayTimeId);
	                _this.delayTimeId=setTimeout(_this.start,_this.config.delay);
	                return false;
	            }
	        }
	    }
	}
}


// 竖向自动滚动
function simpleSideScroll_v_auto(c,ul,config,direction){
    this.config = config ? config : {start_delay:3000, speed: 23, delay:4000, scrollItemCount:1};
	this.c = $i(c);
	this.ul = $i(ul);
	this.direction = direction ? direction : "top";
	this.pause = false;
	this.buttonlist= new Object();
	this.delayTimeId=null;
	
	var _this = this;



	this.c.onmouseover=function(){_this.pause = true;}
	this.c.onmouseout=function(){_this.pause = false;}
	
	this.init = function() {
		_this.scrollTimeId = null;
		setTimeout(_this.start,_this.config.start_delay);
	}
	
	this.start = function() {
		var d = _this.c;
		var width = 0;
		try{  
			width = d.getElementsByTagName('li')[0].offsetHeight;                		
	  }catch(e){}
		if(d.scrollHeight-d.offsetTop>=width) _this.scrollTimeId = setInterval(_this.scroll,_this.config.speed)
	};
	
	this.scroll = function() {
		if(_this.pause)return;
		var ul= _this.ul;
		var d = _this.c;
		var width = 0;
		try{  
			width = d.getElementsByTagName('li')[0].offsetHeight;                		
	  }catch(e){}
		if(_this.direction == 'top'){
	        d.scrollTop += 2;
	        if(d.scrollTop%(width*_this.config.scrollItemCount)<=1){
		        if(_this.config.movecount != undefined)
			        for(var i=0;i<_this.config.movecount;i++){ul.appendChild(ul.getElementsByTagName('li')[0]);}
		        else for(var i=0;i<_this.config.scrollItemCount;i++){ul.appendChild(ul.getElementsByTagName('li')[0]);}
		        d.scrollTop=0;
		        clearInterval(_this.scrollTimeId);
		        
		        _this.delayTimeId=setTimeout(_this.start,_this.config.delay);
	        }
		}
		else {
		    if(d.scrollTop==0)
		    {
		        var lis=ul.getElementsByTagName('li');
		        for(var i=0;i<_this.config.scrollItemCount;i++){
		            ul.insertBefore(lis[lis.length-1],lis[0]);
		        }
		        d.scrollTop = width;
		    }
		    d.scrollTop -= 2;
		    if(d.scrollTop%(width*_this.config.scrollItemCount)<=1){
		        d.scrollTop=0;
		        clearInterval(_this.scrollTimeId);
		        _this.delayTimeId=setTimeout(_this.start,_this.config.delay);
		    }
		}
	}
}


var jszhTwo_Btnv,zgmzOne_h1,zgmzTwo_h1,zgmzTwo_h2,xxylOne_h1,zgfjOne_h1,zgfjOne_h2,zgfjOne_h3,csgyOne_h1,csgyOne_h2,dijiye_1,zhongxia;
_jsc.util.addEvent(window, 'load', function() {

		if($i('diqu1')){
		    jszhTwo_Btnv=new simpleSideScrollBtn_v('diqu1','diqu1_1',1);
		    jszhTwo_Btnv.setButton('duqu_btn1','top');
		    jszhTwo_Btnv.setButton('duqu_btn2','bottom');
		}
		
		if($i('zhongzhong')){
		    zgmzOne_h1=new simpleSideScroll('zhongzhong','con_zhong_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    zgmzOne_h1.setButton('con_zhong_left','left');
		    zgmzOne_h1.setButton('con_zhong_right','right');
		    zgmzOne_h1.init();
		}
		
		if($i('yirentu')){
		    zgmzTwo_h1=new simpleSideScrollBtn_h('yirentu','yirentu_ul',1);
		    zgmzTwo_h1.setButton('yirentu_left','left');
		    zgmzTwo_h1.setButton('yirentu_right','right');
		}
		
		if($i('er')){
		    zgmzTwo_h2=new simpleSideScroll('er','er_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    zgmzTwo_h2.setButton('er_left','left');
		    zgmzTwo_h2.setButton('er_right','right');
		    zgmzTwo_h2.init();
		}
		
		if($i('zhongzhong_xx')){
		    xxylOne_h1=new simpleSideScroll('zhongzhong_xx','zhongzhong_xx_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    xxylOne_h1.setButton('zhongzhong_xx_left','left');
		    xxylOne_h1.setButton('zhongzhong_xx_right','right');
		    xxylOne_h1.init();
		}
		if($i('tu2_zhong')){
		    xxylOne_h1=new simpleSideScroll('tu2_zhong','tu2_zhong_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    xxylOne_h1.setButton('tu2_zhong_left','left');
		    xxylOne_h1.setButton('tu2_zhong_right','right');
		    xxylOne_h1.init();
		}
		if($i('chajuxian')){
		    csgyOne_h1=new simpleSideScroll('chajuxian','chajuxian_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		if($i('gundong')){
		    csgyOne_h1=new simpleSideScroll('gundong','gundong_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		
		if($i('tuijianzhongtu')){
		    zgfjOne_h3=new simpleSideScroll('tuijianzhongtu','tuijian2',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    zgfjOne_h3.setButton('tuijianzhongtu_left','left');
		    zgfjOne_h3.setButton('tuijianzhongtu_right','right');
		    zgfjOne_h3.init();
		}
		
		
		
		if($i('jingshuzhongtu')){
		    zgfjOne_h1=new simpleSideScroll('jingshuzhongtu','jingshu2',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    zgfjOne_h1.setButton('jingshuzhongtu_left','left');
		    zgfjOne_h1.setButton('jingshuzhongtu_right','right');
		    zgfjOne_h1.init();
		}
		
		if($i('yuanxiaozhongtu')){
		    zgfjOne_h2=new simpleSideScrollBtn_h('yuanxiaozhongtu','yuanxiao2',1)
		    zgfjOne_h2.setButton('yuanxiaozhongtu_left','left');
		    zgfjOne_h2.setButton('yuanxiaozhongtu_right','right');
		}
		
		if($i('zhong1_12')){
		    csgyOne_h2=new simpleSideScroll('zhong1_12','xianzhuangtu_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h2.setButton('zhong1_12_left','left');
		    csgyOne_h2.setButton('zhong1_12_right','right');
		    csgyOne_h2.init();
		}
		
		if($i('zhong')){
		    csgyOne_h1=new simpleSideScroll('zhong','cishantu_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('zhong_left','left');
		    csgyOne_h1.setButton('zhong_right','right');
		    csgyOne_h1.init();
		}
		
		if($i('tupianzhong')){
		    csgyOne_h1=new simpleSideScroll('tupianzhong','tupianzhong_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('tupianzhong_left','left');
		    csgyOne_h1.setButton('tupianzhong_right','right');
		    csgyOne_h1.init();
		}
		
		if($i('jianshangzhongtu')){
		    csgyOne_h1=new simpleSideScroll('jianshangzhongtu','jianshangzhongtu_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('jianshangzhongtu_left','left');
		    csgyOne_h1.setButton('jianshangzhongtu_right','right');
		    csgyOne_h1.init();
		}
		
		if($i('twozhong')){
		    csgyOne_h1=new simpleSideScroll('twozhong','twozhong_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('twozhong_left','left');
		    csgyOne_h1.setButton('twozhong_right','right');
		    csgyOne_h1.init();
		}
		
		if($i('zgss_shipin1')){
		    csgyOne_h1=new simpleSideScroll_v('zgss_shipin1','zgss_shipin1_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'top')
		    csgyOne_h1.setButton('zgss_shipin1_top','top');
		    csgyOne_h1.setButton('zgss_shipin1_bottom','bottom');
		    csgyOne_h1.init();
		}

		if($i('guwanzhong12')){
		    csgyOne_h1=new simpleSideScroll('guwanzhong12','guwanzhong12_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('guwanzhong12_left','left');
		    csgyOne_h1.setButton('guwanzhong12_right','right');
		    csgyOne_h1.init();
		}
		
		if($i('jieshaobotmin')){
		    csgyOne_h1=new simpleSideScrollBtn_h('jieshaobotmin','jieshaobotmin_ul',1)
		    csgyOne_h1.setButton('jieshaobotmin_left','left');
		    csgyOne_h1.setButton('jieshaobotmin_right','right');
		}
		
		if($i('demo_tea')){
		    csgyOne_h1=new simpleSideScroll('demo_tea','demo_tea_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('demo_tea_left','left');
		    csgyOne_h1.setButton('demo_tea_right','right');
		    csgyOne_h1.init();
		}
		
		if($i('demo3_tea')){
		    csgyOne_h1=new simpleSideScrollBtn_h('demo3_tea','demo3_tea_ul',1)
		    csgyOne_h1.setButton('demo3_tea_left','left');
		    csgyOne_h1.setButton('demo3_tea_right','right');
		}




		
		if($i('tuanzhong12')){
		    zgmzTwo_h1=new simpleSideScrollBtn_h('tuanzhong12','tuanzhong12_ul',1);
		    zgmzTwo_h1.setButton('tuanzhong12_left','left');
		    zgmzTwo_h1.setButton('tuanzhong12_right','right');
		}
		
		if($i('zuo2')){
		    csgyOne_h1=new simpleSideScroll('zuo2','jx',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.init();
		}
        if($i('gongyu2')){
		    csgyOne_h1=new simpleSideScroll('gongyu2','gongyu2_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('gongyu2_left','left');
		    csgyOne_h1.setButton('gongyu2_right','right');
		    csgyOne_h1.init();
		}
		if($i('gdtwo')){
		    csgyOne_h1=new simpleSideScroll('gdtwo','gdtwo_ul',{start_delay:3000, speed: 0, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('gdone_left','left');
		    csgyOne_h1.setButton('gdone_right','right');
		    csgyOne_h1.init();
		}
		if($i('gdtwo1')){
		    csgyOne_h1=new simpleSideScroll('gdtwo1','gdtwo1_ul',{start_delay:3000, speed: 0, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('gdone1_left','left');
		    csgyOne_h1.setButton('gdone1_right','right');
		    csgyOne_h1.init();
		}
		if($i('gdtwo2')){
		    csgyOne_h1=new simpleSideScroll('gdtwo2','gdtwo2_ul',{start_delay:3000, speed: 0, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('gdone2_left','left');
		    csgyOne_h1.setButton('gdone2_right','right');
		    csgyOne_h1.init();
		}
		if($i('gdtwo3')){
		    csgyOne_h1=new simpleSideScroll('gdtwo3','gdtwo3_ul',{start_delay:3000, speed: 0, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('gdone3_left','left');
		    csgyOne_h1.setButton('gdone3_right','right');
		    csgyOne_h1.init();
		}
		if($i('gdtwo4')){
		    csgyOne_h1=new simpleSideScroll('gdtwo4','gdtwo4_ul',{start_delay:3000, speed: 0, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('gdone4_left','left');
		    csgyOne_h1.setButton('gdone4_right','right');
		    csgyOne_h1.init();
		}
		if($i('gdtwo5')){
		    csgyOne_h1=new simpleSideScroll('gdtwo5','gdtwo5_ul',{start_delay:3000, speed: 0, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('gdone5_left','left');
		    csgyOne_h1.setButton('gdone5_right','right');
		    csgyOne_h1.init();
		}
		if($i('gdtwo6')){
		    csgyOne_h1=new simpleSideScroll('gdtwo6','gdtwo6_ul',{start_delay:3000, speed: 0, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('gdone6_left','left');
		    csgyOne_h1.setButton('gdone6_right','right');
		    csgyOne_h1.init();
		}
		if($i('gdtwo7')){
		    csgyOne_h1=new simpleSideScroll('gdtwo7','gdtwo7_ul',{start_delay:3000, speed: 0, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('gdone7_left','left');
		    csgyOne_h1.setButton('gdone7_right','right');
		    csgyOne_h1.init();
		}
		if($i('gdtwo8')){
		    csgyOne_h1=new simpleSideScroll('gdtwo8','gdtwo8_ul',{start_delay:3000, speed: 0, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('gdone8_left','left');
		    csgyOne_h1.setButton('gdone8_right','right');
		    csgyOne_h1.init();
		}
		if($i('gdtwo9')){
		    csgyOne_h1=new simpleSideScroll('gdtwo9','gdtwo9_ul',{start_delay:3000, speed: 0, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('gdone9_left','left');
		    csgyOne_h1.setButton('gdone9_right','right');
		    csgyOne_h1.init();
		}
		
		if($i('xingshang22')){
		    csgyOne_h1=new simpleSideScroll('xingshang22','xingshang22_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('xingshang22_left','left');
		    csgyOne_h1.setButton('xingshang22_right','right');
		    csgyOne_h1.init();
		}
		if($i('yidong2')){
		    csgyOne_h1=new simpleSideScroll('yidong2','yidong2_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('yidong2_left','left');
		    csgyOne_h1.setButton('yidong2_right','right');
		    csgyOne_h1.init();
		}
		if($i('tuzhong')){
		    csgyOne_h1=new simpleSideScroll('tuzhong','tuzhong_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('tuzhong_left','left');
		    csgyOne_h1.setButton('tuzhong_right','right');
		    csgyOne_h1.init();
		}
		
		if($i('jicuixia')){
		    csgyOne_h1=new simpleSideScroll('jicuixia','jicuixia_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		
		if($i('jianshangzhong')){
		    csgyOne_h1=new simpleSideScroll('jianshangzhong','jianshangzhong_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		
		if($i('yuanxiaozhong')){
		    csgyOne_h1=new simpleSideScroll('yuanxiaozhong','yuanxiaozhong_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		
		if($i('xinxizhong')){
		    csgyOne_h1=new simpleSideScroll_v('xinxizhong','xinxizhong_ul',{start_delay:0, speed: 300, delay:0, scrollItemCount:1},'top')
		    csgyOne_h1.init();
		}
        if($i('js2')){
		    csgyOne_h1=new simpleSideScroll_v('js2','js2_ul',{start_delay:0, speed: 300, delay:0, scrollItemCount:1},'top')
		    csgyOne_h1.init();
		}
		
		if($i('lvxingsheaaa')){
		    zhongxia=new simpleSideScroll_v('lvxingsheaaa','lvxingsheaaa_ul',{start_delay:0, speed: 300, delay:0, scrollItemCount:1},'top')
		    zhongxia.init();
		}
		
		if($i('pj2')){
		    csgyOne_h1=new simpleSideScroll_v('pj2','pj2_ul',{start_delay:0, speed: 100, delay:0, scrollItemCount:1},'top')
		    csgyOne_h1.init();
		}
		
		if($i('tuijianzhong')){
		    csgyOne_h1=new simpleSideScroll_v('tuijianzhong','tuijianzhong_ul',{start_delay:0, speed: 80, delay:0, scrollItemCount:1},'top')
		    csgyOne_h1.init();
		}
		
		if($i('renwu21')){
		    csgyOne_h1=new simpleSideScroll('renwu21','renwu21_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		
		if($i('renwu22')){
		    csgyOne_h1=new simpleSideScroll('renwu22','renwu22_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		
		if($i('chenshi2')){
		    csgyOne_h1=new simpleSideScroll('chenshi2','chenshi2_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		
		if($i('renwu23')){
		    csgyOne_h1=new simpleSideScroll('renwu23','renwu23_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		
		if($i('renwu24')){
		    csgyOne_h1=new simpleSideScroll('renwu24','renwu24_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		if($i('renwu25')){
		    csgyOne_h1=new simpleSideScroll('renwu25','renwu25_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		if($i('renwu26')){
		    csgyOne_h1=new simpleSideScroll('renwu26','renwu26_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		if($i('renwu27')){
		    csgyOne_h1=new simpleSideScroll('renwu27','renwu27_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		if($i('renwu28')){
		    csgyOne_h1=new simpleSideScroll('renwu28','renwu28_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}	
		
		if($i('fengcai2')){
		    csgyOne_h1=new simpleSideScroll('fengcai2','fengcai2_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}	
		
		if($i('fengwei2')){
		    csgyOne_h1=new simpleSideScroll('fengwei2','fengwei2_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}	
		if($i('jjd2')){
		    csgyOne_h1=new simpleSideScroll('jjd2','jjd2_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		
		
		if($i('zhongxia4')){
		    zhongxia=new simpleSideScroll_v('zhongxia4','zhongxia4_ul',{start_delay:0, speed: 300, delay:0, scrollItemCount:1},'top')
		    zhongxia.init();
		}
		
		if($i('xt2')){
		    csgyOne_h1=new simpleSideScroll_v('xt2','xt2_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'top')
		    csgyOne_h1.setButton('xt2_top','top');
		    csgyOne_h1.setButton('xt2_bottom','bottom');
		    csgyOne_h1.init();
		}
		
		/*if($i('lj22')){
		    csgyOne_h1=new simpleSideScroll_v('lj22','lj22_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'top')
		    csgyOne_h1.init();
		}*/		
		
		if($i('jc2')){
		    csgyOne_h1=new simpleSideScroll('jc2','jc2_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}

		if($i('jc21')){
		    csgyOne_h1=new simpleSideScroll('jc21','jc21_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		
		if($i('jc22')){
		    csgyOne_h1=new simpleSideScroll('jc22','jc22_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}	
		
		if($i('jc23')){
		    csgyOne_h1=new simpleSideScroll('jc23','jc23_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}	
		
		if($i('jc24')){
		    csgyOne_h1=new simpleSideScroll('jc24','jc24_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}	
		
		if($i('jc25')){
		    csgyOne_h1=new simpleSideScroll('jc25','jc25_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		
		if($i('jc26')){
		    csgyOne_h1=new simpleSideScroll('jc26','jc26_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}		
		
		if($i('mf21')){
		    csgyOne_h1=new simpleSideScroll('mf21','mf21_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}	

		if($i('mf22')){
		    csgyOne_h1=new simpleSideScroll('mf22','mf22_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}	
		
		if($i('mf23')){
		    csgyOne_h1=new simpleSideScroll('mf23','mf23_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}	
		
		if($i('mf24')){
		    csgyOne_h1=new simpleSideScroll('mf24','mf24_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}			
		
		if($i('mf25')){
		    csgyOne_h1=new simpleSideScroll('mf25','mf25_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}			
		
		if($i('mf26')){
		    csgyOne_h1=new simpleSideScroll('mf26','mf26_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}	

		if($i('afc11')){
		    csgyOne_h1=new simpleSideScroll('afc11','afc11_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}		
		
		if($i('bd22')){
		    csgyOne_h1=new simpleSideScroll('bd22','bd22_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}		
		
		if($i('ap22')){
		    zhongxia=new simpleSideScroll_v('ap22','ap22_ul',{start_delay:0, speed: 300, delay:0, scrollItemCount:1},'top')
		    zhongxia.init();
		}		
		
		if($i('ap22a')){
		    zhongxia=new simpleSideScroll_v('ap22a','ap22a_ul',{start_delay:0, speed: 300, delay:0, scrollItemCount:1},'top')
		    zhongxia.init();
		}		
		
		if($i('zs3')){
		    csgyOne_h1=new simpleSideScroll('zs3','zs3_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		if($i('shengjing')){
		    csgyOne_h1=new simpleSideScroll('shengjing','shengjing_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		if($i('zq_1')){
		    csgyOne_h1=new simpleSideScroll_v('zq_1','zq_1_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'top')
		    csgyOne_h1.init();
		}		
		
		if($i('zq_2')){
		    csgyOne_h1=new simpleSideScroll_v('zq_2','zq_2_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'top')
		    csgyOne_h1.init();
		}		

		if($i('zq_3')){
		    csgyOne_h1=new simpleSideScroll_v('zq_3','zq_3_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'top')
		    csgyOne_h1.init();
		}		
		
		if($i('zb2')){
		    csgyOne_h1=new simpleSideScroll('zb2','zb2_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
	
		if($i('zhong_zhong')){
		    csgyOne_h1=new simpleSideScroll_v('zhong_zhong','zhong_zhong_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'top')
			csgyOne_h1.setButton('zhong_zhong_top','top');
		    csgyOne_h1.setButton('zhong_zhong_bottom','bottom');
		    csgyOne_h1.init();
		}	
		
		
		if($i('ql2')){
		    csgyOne_h1=new simpleSideScroll('ql2','ql2_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		
		if($i('ql21')){
		    csgyOne_h1=new simpleSideScroll('ql21','ql21_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		
		if($i('ql22')){
		    csgyOne_h1=new simpleSideScroll('ql22','ql22_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		
		if($i('ql23')){
		    csgyOne_h1=new simpleSideScroll('ql23','ql23_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		
		if($i('ql24')){
		    csgyOne_h1=new simpleSideScroll('ql24','ql24_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		
		if($i('zt1')){
		    csgyOne_h1=new simpleSideScroll('zt1','zt1_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}	
		
		if($i('zb1')){
		    csgyOne_h1=new simpleSideScroll('zb1','zb1_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}	
		if($i('shengjing111')){
		    csgyOne_h1=new simpleSideScroll('shengjing111','shengjing111_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		if($i('dituright')){
		    csgyOne_h1=new simpleSideScroll_v('dituright','dituright_ul',{start_delay:0, speed: 80, delay:0, scrollItemCount:1},'top')
		    csgyOne_h1.init();
		}		
		
		if($i('sx2')){
		    csgyOne_h1=new simpleSideScroll_v('sx2','sx2_ul',{start_delay:3000, speed: 100, delay:5000, scrollItemCount:1},'top')
		    csgyOne_h1.setButton('sx2_top','top');
		    csgyOne_h1.setButton('sx2_bottom','bottom');
		    csgyOne_h1.init();
		}	
		if($i('gund2')){
		    csgyOne_h1=new simpleSideScroll_v('gund2','gund2_ul',{start_delay:3000, speed: 100, delay:5000, scrollItemCount:1},'top')
		    csgyOne_h1.setButton('gund2_top','top');
		    csgyOne_h1.setButton('gund2_bottom','bottom');
		    csgyOne_h1.init();
		}
		if($i('jb3')){
		    csgyOne_h1=new simpleSideScroll_v('jb3','jb3_ul',{start_delay:3000, speed: 100, delay:5000, scrollItemCount:1},'top')
		    csgyOne_h1.setButton('jiabin_top','top');
		    csgyOne_h1.setButton('jiabin_bottom','bottom');
		    csgyOne_h1.init();
		}	
		
		if($i('tp21')){
		    csgyOne_h1=new simpleSideScroll('tp21','tp21_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'left');
		    csgyOne_h1.init();
		}
		
		
		if($i('left_center')){
		    csgyOne_h1=new simpleSideScroll_v('left_center','left_center_ul',{start_delay:0, speed: 100, delay:0, scrollItemCount:1},'top')
		    csgyOne_h1.setButton('left_center_top','top');
		    csgyOne_h1.setButton('left_center_bottom','bottom');
		    csgyOne_h1.init();
		}		
		
		if($i('left_center2')){
		    csgyOne_h1=new simpleSideScroll_v('left_center2','left_center2_ul',{start_delay:0, speed: 100, delay:0, scrollItemCount:1},'top')
		    csgyOne_h1.setButton('left_center2_top','top');
		    csgyOne_h1.setButton('left_center2_bottom','bottom');
		    csgyOne_h1.init();
		}	
		
		if($i('sp12')){
		    csgyOne_h1=new simpleSideScroll('sp12','sp12_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right')
		    csgyOne_h1.setButton('sp12_left','left');
		    csgyOne_h1.setButton('sp12_right','right');
		    csgyOne_h1.init();
		}	
		
		if($i('xw21')){
		    csgyOne_h1=new simpleSideScroll('xw21','xw21_ul',{start_delay:3000, speed: 23, delay:5000, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		
		if($i('ss_bott2')){
		    csgyOne_h1=new simpleSideScroll('ss_bott2','ss_bott2_ul',{start_delay:0, speed: 100, delay:0, scrollItemCount:1},'right');
		    csgyOne_h1.init();
		}
		
		
});


