function initProgram () {
	$$('#top-nav a').each(function(element) {
		var fx = new Fx.Styles(element, {wait: false, duration:300});
		fx.set({'opacity': 0.01});
		element.addEvent('mouseenter', function(){
			fx.start({'opacity': [0.01,1]});
		});
		element.addEvent('mouseleave', function(){
			fx.start({'opacity': [1,0.01]});
		});
	});
	$$('#top-nav a span').each(function(element) {
		var fx = new Fx.Styles(element, { duration:1000});
		fx.set({'opacity': 0.01});
		element.parentNode.addEvent('mouseenter', function(){
			fx.start({'opacity': [0.01,1]});
		});
		element.parentNode.addEvent('mouseleave', function(){
			fx.start({'opacity': [1,0.01]});
		});
	});
}
if (window.addEventListener) {
	window.addEventListener("load", initProgram, false);
}
else if (window.attachEvent) {
	window.attachEvent("onload", initProgram);
}