/*
Name		:	Component - User Description
Author/s	:	Yang Wong
Related		:	php, css, js
*/

// CLASS //

var COM_CIPHERCITIES_USERDESCRIPTION = Class.create();
COM_CIPHERCITIES_USERDESCRIPTION.prototype =
{

	// CONSTRUCTOR //

	initialize: function()
	{
	},

	// INITIALISATION //

	init: function()
	{
		if ($('ud_editprofile'))
		{
			Event.observe('ud_editprofile', 'click', this.editProfile.bind(this));
		}
	},

	// ACTIONS //

	editProfile: function()
	{
		COM_CIPHERCITIES_COMMON.loadURL(COM_CIPHERCITIES_GLOBALS.TE_EDITPROFILE);
	}

}

// MAIN //

var content = new COM_CIPHERCITIES_USERDESCRIPTION();
Event.observe(window, 'load', content.init.bind(content));
