
	window.addEvent('domready', function()
		{
			$$('a.external').each(function(link){
				link.target = "_blank";
			});
			
			var accordion = new Accordion('a.toggler', 'ul.sub_menu',
				{
					alwaysHide: true,
					opacity: true,
					display: false,
					onActive: function(toggler, element)
						{
							toggler.setStyles({});
						},
	 
					onBackground: function(toggler, element)
						{
							toggler.setStyles({});
						}
				},
				
			$('main_menu'));
			
			accordion.display(0);			
			var list = $$('#main_menu a'); list.each(function(element) {
				var fx = new Fx.Styles(element, {duration: 100, wait:false});
 				element.addEvent('mouseenter', function(){ fx.start({ 'background-color': '#a0a193' }); });
				element.addEvent('mouseleave', function(){ fx.start({	'background-color': '#b5b7a4' });	});
 			});
			
			box = new MultiBox('mb', {descClassName: 'mbBox'});




 



var tips = new Tips($$('.tips'), {
	initialize:function(){
		this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
	},
	onShow: function(toolTip) {
		this.fx.start(.9);
	},
	onHide: function(toolTip) {
		this.fx.start(0);
	}
});





		});
		
		
		







		

