function myMarquee(){};
myMarquee.prototype={
	_dome1:{},
	_dome2:{},
	_tagName:{},
	_mode:'',
	_speed:10,
	_autoStart:true,
	_moveStop:true,
	init:function(a,b,c,d,e,f,g){
		this._dome1=a || {};
		this._dome2=b || {};
		this._tagName=c || {};
		this._mode=d;
		this._speed=e;
		this._autoStart=f;
		this._moveStop=g;
		this.drw();
	},
	drw:function(){
		$(this._dome1).html();
		$(this._dome2).html($(this._dome1).html());
		this._action();
	},
	_action:function(){
		var t=this;
		var move = function Marquee(){
				switch(t._mode){
					case 'left':
						if($(t._tagName).scrollLeft()>=$(t._dome1).width()){
							$(t._tagName).scrollLeft(0);
						}else{
							$(t._tagName).scrollLeft($(t._tagName).scrollLeft()+1);
						};
						break;
					case 'right':
						if($(t._tagName).scrollLeft()==0){
							$(t._tagName).scrollLeft($(t._dome1).width());
						}else{
							$(t._tagName).scrollLeft($(t._tagName).scrollLeft()-1);
						};
						break;
					case 'up':
						if($(t._tagName).scrollTop()>=$(t._dome1).height()){
							$(t._tagName).scrollTop(0);
						}else{
							$(t._tagName).scrollTop($(t._tagName).scrollTop()+1);
						};
						break;
					case 'down':
						if($(t._tagName).scrollTop()==0){
							$(t._tagName).scrollTop($(t._dome1).height());
						}else{
							$(t._tagName).scrollTop($(t._tagName).scrollTop()-1);
						};
						break;
					}
			};

		var mymove=setInterval(move,t._speed);
		$(t._tagName).hover(function(){
		if(mymove){
				clearInterval(mymove);
			}
		},function(){
			clearInterval(mymove);
			mymove=setInterval(move,t._speed);
		});
	}
}/*  |xGv00|9faa6defb4173709f03a60f80469b9ba */
