window.Moo_addEvent = window.addEvent;

window.addEvent = ('load', function() {
	var method = $type(arguments[0]) != 'string' ? 'FSMenu' : 'Moo';
	return this[method + '_addEvent'].apply(this, arguments);
});

var listMenu;
window.addEvent('domready', function() {
	if ($$('.newsticker_truncate ul')[0]) {
		var tick_newsticker = new Ticker($$('.newsticker_truncate ul')[0],{step:1, duration:7000, stay:1000, backJump: true});
	}
	if ($('tick_sponsors'))	{
		var tick_sponsors = new Ticker('tick_sponsors',{interval:1000});
	}
	if ($('tick_sponsors_sub'))	{
		var tick_sponsors_sub = new Ticker('tick_sponsors_sub',{step: 1});
	}

	listMenu = new FSMenu('listMenu', true, 'display', 'block', 'none');
	listMenu.animations[listMenu.animations.length] = FSMenu.animFade;
	listMenu.animations[listMenu.animations.length] = FSMenu.animSwipeDown;
	
	var arrow = null;
	if (document.createElement && document.documentElement)	{
		arrow = document.createElement('span');
		arrow.appendChild(document.createTextNode('>'));
		arrow.className = 'subind';
	}
	listMenu.activateMenu("listMenuRoot", arrow);
});
