var tmaTexts = [
	'ever-dashing',
	'music composer',
	'lover of all things',
	'confirmit guru',
	'mac attack',
	'oscillating',
	'missing link',
	'innovative',
	'life',
	'chic',
	'freeway',
	'photomicrographic',
	'hound of the baskervilles',
	'battle of hastings',
	'three musketeers',
	'two-point-oh',
	'soul',
	'stepford wives',
	'gentlemanlike',
	'skittish',
	'kumquat',
	'meister',
	'view',
	'ambiguous',
	'word',
	'timbre',
	'muppets',
	'portfolio',
	'renaissance',
	'dreamer',
	'traipsing',
	'reflection',
	'chosen one',
	'pokemon master',
	'show stopper',
	'lordship',
	'secret',
	'cure',
	'slick',
	'netherlands',
	'olive branch',
	'fonz',
	'cycling',
	'internets',
	'gorgeous',
	'mystery meat',
	'crimson',
	'way forward',
	'spiffy',
	'amazing',
	'ghan',
	'salt',
	'legend',
	'music',
	'equivalent',
	'symphony',
	'freedom',
	'trill',
	'filing cabinet',
	'jugglery',
	'soldier',
	'titan',
	'player',
	'philippines',
	'antioxidant',
	'sequel',
	'grand',
	'addams family',
	'atlantic',
	'leftovers',
	'referable',
	'magnificent',
	'five',
	'beatitude',
	'nebulous',
	'big four',
	'man',
	'pythagorean theorem',
	'inventive',
	'choice',
	'the conqueror',
	'truth',
	'voice',
	'lazy',
	'ambitious',
	'awesome',
	'neverhood',
	'united nations',
	'anemone',
	'ceo',
	'backstreet boys',
	'ip address',
	'half-blood prince',
	'moment',
	'protagonist',
	'matrix',
	'curious',
	'clarinet',
	'creative',
	'flexible',
	'situation',
	'prime minister',
	'development'
	];

var tmaProTexts = [
	'front end web developer',
	'confirmit guru',
	'html champion',
	'resident css expert',
	'php implementor',
	'multimedia designer',
	'html5 obsessed',
	'jquery savant',
	'javascript professional',
	'css3 adventurer'
];

function textScroller()
{
	var textInput = [];
	
	for (var i = 22; i > 0; i -= 1) {  
		textInput.push(tmaTexts[Math.floor(Math.random()*103)]);
	}
	
	if($.browser.webkit)
	{
		textInput.push('<span class=\'wkitRotate\'>' + tmaProTexts[Math.floor(Math.random()*10)] + '</span>');
	}
	else
	{
		textInput.push(tmaProTexts[Math.floor(Math.random()*10)]);
	}

	$("#rotateText").append('<br />' + textInput.join('<br />')).animate({
	scrollTop: '828px'
	}, 3000, function() {$("#rotateText").prepend(textInput[22] + '<br />').scrollTop('0px').html(textInput[22]);});	

}

$(document).ready(function () {

	textScroller();
	setInterval(function(){textScroller();}, 7500 );
	
});
