function img_special() {
	this.create = function() {
        this.id = document.getElementById('imgList');
	    if(!this.id) {return false};
	    this.span = this.id.getElementsByTagName('span');
	    if(!this.span) {return false};
	    this.len = this.span.length;
        this.lis = document.getElementById('listList');
	    if(!this.lis) {return false;}
	    this.tempHtml = '';
	    for(i=0;i<this.len;i++) {
	        this.tempHtml += '<a id="aa'+i+'" onclick="Imgs.change('+i+');return false;" onfocus="if(this.blur)this.blur()" href="#"></a>'; 
	    }
	    this.lis.innerHTML = this.tempHtml;
		this.aa = this.lis.getElementsByTagName('a');
		this.id.style.display = 'none';
	    this.timer2 = setTimeout("Imgs.start()",3000);
	}

	this.start = function() {
	    this.id.style.display = 'block';
		this.play();
	}
	
	this.now = 0;

	this.play = function() {
		if(navigator.appName.indexOf("Explorer") != -1) {
		    this.id.filters[0].Apply();
		    this.id.filters[0].Transition=23;
	        this.id.filters[0].Play();
	    }
        for(i=0;i<this.len;i++) {
			this.aa[i].className = '';
		    this.span[i].style.display = 'none';
	    }
	    this.span[this.now].style.display = 'block';
        this.aa[this.now].className = 'act';
	    this.now++;
		(this.now >= this.len)?this.now = 0:this.now;
	    this.timer = setTimeout("Imgs.play()",4000);
	}

	this.change = function(val) {
	    clearTimeout(this.timer);    
        this.now = val;
		Imgs.play();
	} 
    	
}

var Imgs = new img_special();
    
