var navTop=-31;
	var booShowingNav = false;
	var fxNav = new Fx.Styles($('banner').getChildren()[1],{duration:500, link:'cancel'});
	
	if(window.ie)
	{
		navTop=navTop-3;
		$('banner').getChildren()[1].setStyle('top', navTop+25);
	}
		
	$('banner').addEvent('mouseenter',function(){showNav()});
	$('banner').addEvent('mouseleave',function(){hideNav()});

	function showNav()
	{
		if(!booShowingNav)
		{
			booShowingNav = true;
			fxNav.start({top:navTop, height:25});
		}
	}
	
	function hideNav()
	{
		if(booShowingNav)
		{
			booShowingNav = false;
			fxNav.start({top:navTop+25, height:0});
		}
	}

	function showBanner(index)
	{
		$('banner').getChildren()[1].getChildren().forEach(function(el){el.setProperty('class','')});
		$('banner').getChildren()[1].getChildren()[5-index].setProperty('class','active');
		new Asset.image('images/banner' + index + '.jpg', {onload:function(){
			$('banner').getChildren()[0].replaceWith(this);
			this.setOpacity(0);
			new Fx.Styles(this,{duration:500, link:'cancel', onComplete:function(){
				$('banner').setProperty('class','banner'+index);
			}}).start({'opacity':1});
		}});
	}