function gallery(displayControl, textControl){

	this.dc = displayControl;
	this.text = textControl;
	this.dc.parentNode.style.width=this.dc.clientWidth;

//alert(this.text.id);

	this.show = function(imgUrl, imgText){
		if (document.all) {
			this.dc.style.filter="blendTrans(duration=1)";
			this.dc.filters.blendTrans.Apply();
		}

		this.dc.src = imgUrl;
		if (document.all) {
			this.dc.filters.blendTrans.Play();
		}
		if(this.text && imgText){
			this.text.innerHTML = imgText;
		}else if(this.text){
			this.text.innerHTML = '';
		}
	}
}