function DAZoom(id,item,config,zoomheight,zoomwidth,zoomamount)
{
	this.divId = id+'_div';
	this.divTag = document.getElementById(this.divId);
	this.imgId = id+'_img';
	this.imgTag = document.getElementById(this.imgId);
	this.item=item;
	this.config=config;
	this.default_config=this.config;
	this.html = this.divTag.innerHTML;
	this.setImage();
	this.zoomheight = zoomheight;
	this.zoomwidth = zoomwidth;
	this.zoomamount = zoomamount;
}

DAZoom.prototype.setImage = function()
{
	if(this.config=='') 
		this.config=this.default_config;
	this.imgTag.src = '/img/zoom/'+this.item.substr(0,1)+'/'+this.item+'/'+this.item+this.config+'_sm.jpg';
}

DAZoom.prototype.doZoom = function()
{
	TJPzoomheight=this.zoomheight;
	TJPzoomwidth=this.zoomwidth;
			
	TJPzoomamount=this.zoomamount;
	TJPzoomamountmax=this.zoomamount;
	TJPzoomamountmin=this.zoomamount;

	this.divTag.innerHTML=this.html;
	this.imgTag = document.getElementById(this.imgId);
	this.setImage();
	TJPzoom(this.imgTag,this.imgTag.src.replace('_sm','_lg'));
}
