Event.observe(window, 'load', init, false);

sfHover = function() {
	$$('ul.sitemap li').each(
		function(li)
		{
			li.onmouseover=function() {
				this.className+=" sfhover";
			}
			li.onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}			
		}
	);
}

function init()
{
}

function toggleTooltip(id)
{
	var tts = $$('div.tooltip');
	tts.each(function(tt){
		if (tt.id == 'tooltip'+id)
		{
			if (tt.visible())
				tt.hide();
			else
				tt.show();
		}
		else if (tt.visible())
		{
			tt.hide();
		}
	});
}
