// JavaScript Document

window.addEvent( 'domready', function () {
        fn_buildNavagation();
		var menu_items = $('nav_links').getElements('li');
		
		for(var i=0; i<menu_items.length; i++)
		{
			//menu_items[i].addEvent( 'mouseover', function() { this.className = 'over'; } );
			//menu_items[i].addEvent( 'mouseout', function() { this.className = ''; } );
		}
		
		/* // this is stuff for fading the menus in/out, removed as per Matt's request of 10/6/2008
		for(var i=0; i<menu_items.length; i++)
		{
			var m_item = menu_items[i];
			m_item.getChildren('ul[rel=child]').fade('hide');
			m_item.addEvent( 'mouseover',
				function()
				{
					this.getChildren('a').setStyle('background-color', '#F1F1F1');
					this.getChildren('a').setStyle('border-left', '4px solid #CCCCCC');
					this.getChildren('a').setStyle('margin-left', '0px');
					this.getChildren('ul').fade('in');
				}
			);
			m_item.addEvent( 'mouseout',
				function()
				{
					this.getChildren('a').setStyle('background', 'none');
					this.getChildren('a').setStyle('border', 'none');
					this.getChildren('a').setStyle('margin-left', '4px');
					this.getChildren('ul').fade('out');
				}
			);
		}
		*/
	}
);