var Sitemap = 
{
	// Object Variables
	author			: 'Eoghan O\'Brien',
	created			: '28/07/2006',
	// Show Author Details
	showDetails : function() {
		alert('Created by '+this.author+' On '+this.created);
	},
	/**
	 * Add Load Event
	 * Loads an event when the window loads
	 * Takes the name of the function to load
	*/
	addLoadEvent : function (func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = func;
		} else {
			window.onload = function() {
			oldonload();
			func();
			}
		}
	},
	/**
	 *
	 *
	*/
	hideLists : function()
	{
		var u = document.getElementsByTagName('ul');
		for (i=0;i<u.length;i++)
		{
			if(u[i].className == 'child')
			{
				u[i].style.display = 'none';
			}
		}
		
	},
	toggleList : function(x)
	{
		y = document.getElementById(x);
		y.style.display = (y.style.display=='block') ? 'none' : 'block';
	}
}

Sitemap.addLoadEvent(Sitemap.hideLists);