//document.getElementById('splash').firstElementChild.attributes.getNamedItem('class').textContent="content hide";
function theRotator() {
	setInterval('rotate()',8000);
}

function rotate() {	
	var current = $('div#splash div.content.show');
//	var next = ((current.next().length) ? ((current.next().hasClass('hide')) ? $('div#splash div:first-child') :current.next()) : $('div#splash div:first-child'));
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div#splash div.content:first-child') :current.next()) : $('div#splash div.content:first-child'));

	next.css({opacity: 0.0}).css({visibility: 'visible'}).removeClass('hide').addClass('show').animate({opacity: 1.0}, 1000);
	current.animate({opacity: 0.0}, 1000).css({visibility: 'hidden'}).removeClass('show').addClass('hide');
	$('.hide').css({display: 'none'});
	$('.show').css({display: 'block'});
};

$(document).ready(function() {
	$('.hide').css({visibility: 'hidden'});
	theRotator();
	$('div#tweetme').load('twitter.php');
});

