var initialHeight;
var listMenu;

Event.observe(window, 'load', function ()
{
	initializeFSMenu();

	var anchors = $$('a');
	anchors.each(function(anchor)
	{
		if (((anchor.getAttribute("href")) && anchor.getAttribute("rel") == "external") || (anchor.getAttribute('target') == '_blank')) {
			//if it has a href attribute and rel="external"
			anchor.target = "_new";
		}
	});

});





function initializeFSMenu()
{
	// Initialize FSMenu
	listMenu = new FSMenu('listMenu', true, 'display', 'block', 'none');
	//listMenu.switchDelay = 0;
	//listMenu.showDelay = 0;
	listMenu.hideDelay = 250;
	listMenu.cssLitClass = 'highlighted';
	var arrow = null;

	if (document.createElement && document.documentElement)
	{
		arrow = document.createElement('span');
		arrow.appendChild(document.createTextNode(''));
		arrow.className = 'subind';
	}

	// Activate FSMenu
	listMenu.activateMenu("listMenuRoot", arrow);

}