function help()
{
	this.container = null;
	this.isOpen = false;
	this.helpType = null;
	
	this.open = function(type)
	{
		this.isOpen = true;
		this.helpType = type;
		
		this.container = $(document.createElement("div"));
		this.container.addClass("help_container");
		
		var title = $(document.createElement("div"));
		title.addClass("title");
		title.html("<div style='float: left; width: 60%;'>" +
				"Help" +
			"</div>" +
			"<div style='float: left; width: 40%; text-align: right;'>" +
				"<a onclick='help.close()'>" +
					"Close" +
				"</a>" +
			"</div>" +
			"<div class='clear'></div>");
		this.container.append(title);
		
		$("body").append(this.container);
		
		this.loadContent();
	};
	
	this.close = function()
	{
		this.isOpen = false;
		this.helpType = null;
		this.container.remove();
		this.container = null;
	};
	
	this.loadContent = function()
	{
		var body = $(document.createElement("div"));
		body.addClass("body");
		
		if (this.helpType == "ident")
		{
			body.html("The Ident feature is a way for you to mark the urls you make in our system. " +
				"This allows you to come back at a future date to view all Simple URLs you have made and see how well they have done. " +
				"Once you use an Ident, you can view all your past Simple URLs <a href='/ident.php'>here</a>. " +
				"Each Ident can only be up to 10 characters in length.");
		}
		
		this.container.append(body);
	};
};
var help = new help();