function element() 
{
	// Show image
	this.showimg = function (id, img)
	{
		var element = document.getElementById(id);
		element.style.backgroundImage = "url(" + img + ")";
	}

	// Show exclusive
	this.showex = function (id, group) 
	{
		var elements = tsdc.dom.get_elements_by_class_name(group);
		if (elements.length <= 0)
			return false;
		for (var i=0; i<elements.length; ++i)
		{
			var element = elements[i];
			if (element.id == id)
			{
				element.style.display = "block";
			}
			else
			{
				element.style.display = "none";
			}
		}
		return true;
	}

	// Obfuscate contact info
	this.obfucon = function (id, account, domain, has_prefix, is_link)
	{
		var element = document.getElementById(id);

		// Assemble the contact html
		var html = "";
		if (has_prefix)
		{
			html += "Email: ";
		}
		if (is_link)
		{
			html += "<a href='m" + "a" + "i" + "l" + "t" + "o" + ":";
			html += account;
			html += "@";
			html += domain;
			html += "'>"
		}
		html += account + "<span class='hidden'></span>@<span class='hidden'></span>" + domain;
		if (is_link)
		{
			html += "</a>";
		}	

		// Write the assembled HTML to the target element
		element.innerHTML = html;
	}
}
element.prototype = new tsdc();

