function SShow(im1,im2,im3,w,h,n,ar){
	this.im1=im1;
	this.im2=im2;
	this.im3=im3;
	this.w=w;
	this.h=h;
	this.n=n;
	this.ar=ar;
	this.inti=null;
	this.ind=0;
	this.clip=clip;
	this.clip_show=clip_show;
	this.clip_show_int=clip_show_int;
}
function clip(obj,t,r,b,l){
	this.t=t;
	this.r=r;
	this.b=b;
	this.l=l;
	obj.style.clip="rect("+this.t+"px "+this.r+"px "+this.b+"px "+this.l+"px)";
}
function clip_show(){
	this.ws=this.w/this.n;
	this.t=0;
	this.r=this.ws;
	this.b=this.h;
	this.l=this.r;
	this.clip(this.im1,0,this.r,this.b,this.r);
	this.clip(this.im2,0,this.r,this.b,this.r);
	this.inti=setInterval("show.clip_show_int()",20);
}
function clip_show_int(){
	this.l-=6;
	if(this.l+this.ws>this.r){
		this.clip(this.im1,this.t,this.r,this.b,this.l);
	}else{
		this.clip(this.im1,this.t,this.r,this.b,this.r-this.ws);
		this.clip(this.im2,0,this.r,this.b,0);
		this.l=this.r+=this.ws;
		if(this.r>this.w){
			clearInterval(this.inti);
			this.l=this.r=this.ws;
			this.clip(this.im1,0,this.r,this.b,this.l);
			this.clip(this.im2,0,this.r,this.b,this.l);
			this.im3.src=this.ar[this.ind];
			this.ind=(this.ind<this.ar.length-1)?this.ind+1:0;
			this.im1.src=this.im2.src=this.ar[this.ind];
			setTimeout("show.clip_show()",3000);
		}		
	}
}