var text1 = '<span class="orange">Get your students speaking.</span> Create online assignments that make engaging and assessing student spoken performance as natural as giving out a worksheet.';
var text2 = 'Make your assignments <span class="orange">interactive and media-rich.</span> Incorporate images, audio, and online video.';
var text3 = 'Enjoy <span class="orange">seamless integration</span> with any language, curriculum, and textbook.'; 
var text4 = 'With Lingt’s flexible editor, create and manage assignments that simulate <span class="orange">spoken dialogs, dictations, or task-based exercises.</span>';
var texts = [text1, text2, text3, text4];
textIndex = 1;

$(function(){
	$('#moving-text').everyTime(7000, changeText);
	$('#moving-text').html(texts[0]);
});

function changeText(){
	var newTextHTML = texts[textIndex];
	if (textIndex == texts.length-1) {
		textIndex = 0;
	}
	else {
		textIndex += 1;
	}
	$('#moving-text').hide('drop', {direction:'right'}, 700, function(){
		$('#moving-text').html(newTextHTML).show('drop', {}, 900, function(){
			if($.browser.msie){this.style.removeAttribute('filter')};  //hack for jquery animation in IE
		});
	});		
}