function SiteList(parent)
{
	var container = document.createElement("div");
	var header = document.createElement("div");
	var body = document.createElement("div");
	var item = "";
	var hover = "";
	var replace = true;

	this.containerStyle = function(value)
	{
		if (value)
			container.className = value;
		return (container.className);
	}

	this.headerStyle = function(value)
	{
		if (value)
			header.className = value;
		return (header.className);
	}

	this.bodyStyle = function(value)
	{
		if (value)
			body.className = value;
		return (body.className);
	}

	this.itemStyle = function(value)
	{
		if (value)
		{
			for (var i = 0; i < body.childNodes.length; ++i)
				body.childNodes.item(i).className = value;
			item = value;
		}
		return (item);
	}

	this.hoverItemStyle = function(value)
	{
		if (value)
			hover = value;
		return (hover);
	}

	this.text = function(value)
	{
		if (value)
			header.innerHTML = value;
		return (header.innerHTML);
	}

	this.replace = function(value)
	{
		if (arguments.length)
			replace = value;
		return (replace);
	}

	this.add = function(text, url)
	{
		var link = document.createElement("div");

		link.className = item;
		link.innerHTML = text;
		link.title = url;
		link.onclick = function()
		{
			open(url, replace ? "_self" : "_blank");
		}
		link.onmouseover = function()
		{
			if (hover && hover.length)
				this.className = hover;
		}
		link.onmouseout = function()
		{
			this.className = item;
		}
		body.appendChild(link);
	}

	{
		container.appendChild(header);
		container.appendChild(body);
		parent.appendChild(container);

	}
}