phrases = new Array(
	'Our Feet Are Firmly On The Ground',
	'So You Can Keep Thinking In The Clouds',
	'We offer portable, flexible web solutions',
	'Providing a solid publishing platform',
	'<img src="/_/themes/statusfirm/images/dots.png" width="80" height="80" ><br/>enabling 360&deg; interaction.'
);

$(document).ready(function() {
	phraseCount = 0
	animate = setInterval('animateNewText()', 3000);
});

function animateNewText()
{
	ver = getIEVersion();
	if(ver != 7 && ver != 6) { // do this for every browser except ie7
		$('#anim-text').css('top', '-515px');
	}
	text = phrases[phraseCount];
	phraseCount++;
	$('#anim-text p').fadeOut(800, function(){
		$('#anim-text').html('<p>' + text + '</p>');
		$('#anim-text p').fadeIn(800);
	});
	if(phraseCount == phrases.length){
		clearInterval(animate);
		fadeOutMask();
	}
}
function fadeOutMask()
{
	$('#anim-text').delay(3500).fadeOut(800, function(){
		$('#mask').fadeOut(800);
	});
}

function getIEVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}