// script to sort out IE's abhorent inability to manage li:hover


// mootools rollover stuff

window.addEvent('domready', function(){
	$$('#main_sub div').each(function(e){
		e.set('morph', {duration: 'short'});
		e.addEvents({
			'mouseover': function(){
				e.morph({
					'margin-top':'7px'
				});
			},
			'mouseleave': function(){
				e.morph({
					'margin-top':'12px'				
				});	
			}
		});
	});

	//for the top level menu this has to be done once for the normal tabs and then once more for each of the rounded corner tabs
	// for that reason I've removed it, it's a major pain to do it for the rounded corners
	
	//alert(navigator.appVersion);
	//temp fix for IE9 being against our carousel script - sam
	if (navigator.appVersion != '5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)' && navigator.appVersion != '5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)') {
		new SimpleCarousel($('rotator'), 
			$$('#rotator div.slide'), 
			$$('#rotator div.button'),
			{
				rotateAction: 'click'
			}
		);	
		
		
	} else {
		$('buttons').hide();
	}


});

