function wmxShowroom()
{
	//Private variables
	var _contentHeight = 0;
	var _contentWidth = 0;
	var _actualHeight = '';
	var _actualWidth = '';
	var _element0 = null;
	var _element1 = null;
	var _element2 = null;
	var _initialized = false;
	var _tempSpeed = 0;
	var _timer = 0;
	var _currentPos = 0;
	
	//Public properties
	this.content = '';
	this.direction = 2;
	this.height = '';
	this.name = '';
	this.photoHeight = '';
	this.photoType = ".jpg";
	this.photoWidth = '';
	this.speed = 1;
	this.width = '';
	this.totalImageHeight = '';
	this.totalImageWidth = '';

	//Public functions
	this.initialize = function()
	{
		var imageArray = this.content.split(this.photoType);
		var count = imageArray.length - 1;
		
		with (document)
		{
			write("<table><tr><td>");
			write("<div id=\"" + this.name + "_Showroom\" style=\"position:relative;overflow:hidden\">");
			write("<div id=\"" + this.name + "_Element0\" style=\"left:0;position:absolute;top:0;width:100%;z-index:3\" onmouseover=\"" + this.name + ".stop()\" onmouseout=\"" + this.name + ".start()\">");
			write("<div id=\"" + this.name + "_Element1\" style=\"left:0;position:absolute;top:0;width:100%;z-index:2\"></div>");
			write("<div id=\"" + this.name + "_Element2\" style=\"left:0;position:absolute;top:0;width:100%;z-index:1\"></div>");
			write("</div></div>");
			write("</td></tr></table>");
		}

		_element0 = new cmxElement();
		_element0.setId(this.name + "_Element0");
		_element1 = new cmxElement();
		_element1.setId(this.name + "_Element1");
		_element2 = new cmxElement();
		_element2.setId(this.name + "_Element2");

		var containerHeight = 0;
		var containerWidth = 0;

		switch (this.direction)
		{
			case 3:
			case 4:
				_actualHeight = this.totalImageHeight;
				_actualWidth = this.photoWidth;
				containerWidth = this.photoWidth;
				_element2.style.top = _actualHeight + "px";
				break;
			default:
				_actualHeight = this.photoHeight;
				_actualWidth = this.totalImageWidth;
				containerHeight = this.photoHeight;
				this.content = "<nobr>" + this.content + "</nobr>";
				_element2.style.left = _actualWidth + "px";
		}

		showroom = new cmxElement();
		showroom.setId(this.name + "_Showroom");
		showroom.style.height = (this.height != '' ? this.height : containerHeight != 0 ? containerHeight : this.photoHeight) + "px";
		showroom.style.width = this.width != '' ? this.width + "px" : containerWidth != 0 ? containerWidth + "px" : "100%";

		_element1.element.innerHTML = _element2.element.innerHTML = this.content;

		_tempSpeed = this.speed;
		_timer = setInterval(this.name + ".scroll();", 30);
	};

	this.scroll = function()
	{
		if (cmxbrowser.supportsDOM)
		{
			switch (this.direction)
			{
				case 1: //Left to Right	
					_currentPos = (_currentPos + this.speed) % _actualWidth;
					_element0.style.left = _currentPos - _actualWidth + "px";					
					break;
				case 3: //Top to Bottom	
					_currentPos = (_currentPos + this.speed) % _actualHeight;
					_element0.style.top = _currentPos - _actualHeight + "px";					
					break;
				case 4: //Bottom to Top				
					_currentPos = (_currentPos - this.speed) % _actualHeight;
					_element0.style.top = _currentPos + "px";					
					break;
				default: //Right to Left
					_currentPos = (_currentPos - this.speed) % _actualWidth;
					_element0.style.left = _currentPos + "px";
			}
		}
	};

	this.start = function()
	{
		if (!_initialized)
		{
			this.initialize();
			_initialized = true;
		}

		this.speed = _tempSpeed;
	};

	this.stop = function()
	{
		_tempSpeed = this.speed;
		this.speed = 0;
	};
}
