var Vcf = function()
{
	var self = function() { };
	
	var constructor = function()
	{
		
	}
	
	/**
	* Launch a Chat Booth in a new browser window.
	*
	* @author Geoffrey Lee <geoffrey@alumwire.com>
	* @param int booth_id
	*/
	constructor.openChatBooth = function(booth_id)
	{
		if (booth_id === undefined)
		{
			this.openWindow("chatbooth.php", 847, 512);
		}
		else
		{
			this.openWindow("chatbooth.php?id=" + booth_id, 847, 512);
		}
	}
	
	/**
	* Launch a Chat Booth in a new browser window.
	*
	* @author Geoffrey Lee <geoffrey@alumwire.com>
	* @param int booth_id
	*/
	constructor.openChatBoothDemo = function(booth_id)
	{
		if (booth_id === undefined)
		{
			this.openWindow("chatboothDemo.php", 847, 512);
		}
		else
		{
			this.openWindow("chatboothDemo.php?id=" + booth_id, 847, 512);
		}
	}
	
	/**
	* Launch the Chat Gallery in a new browser window.
	*
	* @author Geoffrey Lee <geoffrey@alumwire.com>
	*/
	constructor.openChatgallery = function()
	{
		this.openWindow("chatgallery.php", 847, 512);
	}
	
	/**
	* Launch a new browser window.
	*
	* @author Geoffrey Lee <geoffrey@alumwire.com>
	* @return WindowObjectReference
	*/
	constructor.openWindow = function(url, width, height)
	{
		return window.open(url, "_blank", 'width=' + width + ',height=' + height + ',scrollbars=no,resizable=yes');
	}
	
	return constructor;
}();