///	<summary>Class ImageScroller<br>
///	Adds methods/properties specific to a <c>Scroller</c> of <c>FPImage</c> objects</summary>
///	<extends>Scroller</extends>
function ImageScroller() {
	
	// ===================
	// Protected Variables
	// ===================
	
	this.name		= "imageScroller";		// Name of html element id to write scroller to
	this.maxItems	= 1;					// Max number of items to display

	// =================
	// Protected Methods
	// =================
	
	///	<summary>Generates the html for a <c>ImageScroller</c> cell.</summary>
	/// <param name="i"><c>int</c> index of the <c>items</c> array.</param>
	/// <returns><c>string</c> of cell html</returns>
	this.GetCellHtml = function(i) {
		var html	= "";
		var image	= this.items[i];
		var imageHtml	= (image != null) ? image.html : "";
		
		html += "<td id=\"" + this.name + "cell" + i + "\" align=\"center\" valign=\"top\" width=\"" + this.cellWidth + "\">" +
					imageHtml +
				"</td>";
		
		return html;
	}
	
	// ==============
	// Public Methods
	// ==============
}
ImageScroller.prototype = new Scroller();
ImageScroller.prototype.constructor = ImageScroller;
