function theRotator() {
	$('table#rotator td').css({opacity: 0.0});
	$('table#rotator td:first').css({opacity: 1.0});
	setInterval('rotate()',6000);	
}

function rotate() {	
	var current = ($('table#rotator td.show')?  $('table#rotator td.show') : $('table#rotator td:first'));
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('table#rotator td:first') :current.next()) : $('table#rotator td:first'));	
	
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);

	current.animate({opacity: 0.0}, 1000)
	.removeClass('show');
	};

$(document).ready(function() {		
	theRotator();
});



	$(document).ready(function(){
		$('#mainMenu li.headLink, #mainMenu2 li.headLink').hover(
			function() { $('ul', this).css('display', 'block'); },
			function() { $('ul', this).css('display', 'none'); });
	});	
