function mastheadROI()
{
	var myEffect = new Fx.Morph('mastheadTxt', {duration: 1500, transition: Fx.Transitions.Sine.easeOut});
 
	myEffect.start({
	    'left': [-300, 220],
	    'opacity': [0, 1]
	}).chain(function()
		{
			var myEffect = new Fx.Morph('mastheadROI', {duration: 100});
		
			myEffect.start({
					   'color' : '#ffff00'
					   }).chain(
							function(){ myEffect.start({ 'color' : '#000000'}); },
							function(){ myEffect.start({ 'color' : '#ffff00'}); },
							function(){ myEffect.start({ 'color' : '#000000'}); },
							function(){ myEffect.start({ 'color' : '#ffff00'}); }
							); 
		});
}

function mastheadIntegrated()
{
	var myEffect = new Fx.Morph('mastheadIntegrated', {duration: 1500, transition: Fx.Transitions.Sine.easeInOut});
	
	$('mastheadIntegrated').set('opacity', 0);
	$('mastheadIntegrated').innerHTML = 'CONTROL';
 
	myEffect.start({
	    'opacity': [0, 1]
	}).chain(
				function(){ myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '0' }); },
				function(){ $('mastheadIntegrated').innerHTML = 'EFFICIENCY';
							myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '0' }); },
				function(){ $('mastheadIntegrated').innerHTML = 'RESPONSIVENESS';
							myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '0' }); },
				function(){ $('mastheadIntegrated').innerHTML = 'VALUE';
							myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '0' }); },
				function(){ $('mastheadIntegrated').innerHTML = 'CONVENIENCE';
							myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '1' }); },
				function(){ myEffect.start({'opacity': '0' }); },
				function(){ mastheadIntegrated(); }
			);
}

function mastheadLeader()
{
	$('mastheadSub').set('opacity', 0);
	
	var myEffect = new Fx.Morph('mastheadTxt', {duration: 2000});
	myEffect.start({
				   	'opacity': [0,1]
				   }).chain(
				   			function(){ 
										var subEffect = new Fx.Morph('mastheadSub', {duration: 1000,transition: Fx.Transitions.Sine.easeOut});
										subEffect.start({
															'marginLeft' : [50,0],
															'opacity': 1
														})
									  }
				   			);
}

function mastheadCustomer()
{
	setTimeout(function(){
							var myEffect = new Fx.Morph('mastheadSub', {duration: 2000});
							
							myEffect.start({
											'opacity': 0
										   }).chain(
													function(){
																$('mastheadSub').innerHTML = 'Queen';
																myEffect.start({'opacity': 1});
															  }
													);
						}, 1500);
	setTimeout(function(){
							var wrapEffect = new Fx.Morph('mastheadTxt', {duration: 2000});
							wrapEffect.start({ 'opacity':0 
											 }).chain(
											 			function(){
																	$('mastheadTxt').innerHTML = "It's Variable";
																	wrapEffect.start({ 'opacity': 1 });
																}
											 		);
						}, 5500);
}


function mastheadSeasoned()
{
	$('mastheadTxt').set('opacity',0);
	$('mastheadTxt').tween('opacity',1);
}

function mastheadOfferMore()
{
	$('mastheadTxt').set('opacity',0);
	$('mastheadTxt').tween('opacity',1);	
}

function mastheadSatisfaction()
{
	var myEffect = new Fx.Morph('mastheadTxt', {duration: 1500, transition: Fx.Transitions.Sine.easeOut});
 
	myEffect.start({
	    'left': [-300, 30],
	    'opacity': [0, 1]
	}).chain(function()
		{
			var myEffect = new Fx.Morph('mastheadROI', {duration: 100});
		
			myEffect.start({
					   'color' : '#ffff00'
					   }).chain(
							function(){ myEffect.start({ 'color' : '#000000'}); },
							function(){ myEffect.start({ 'color' : '#ffff00'}); },
							function(){ myEffect.start({ 'color' : '#000000'}); },
							function(){ myEffect.start({ 'color' : '#ffff00'}); }
							); 
		});	
}

function mastheadGreen()
{
	var myEffect = new Fx.Morph('mastheadTxt', {duration: 1500, transition: Fx.Transitions.Sine.easeOut});
 
	myEffect.start({
	    'color': ['#000000', '#00ff00']
	});
}

function mastheadContact()
{
	$('mastheadTxt').set('opacity',0);
	setTimeout(function(){
							var myEffect = new Fx.Morph('mastheadTxt', {duration: 1500, transition: Fx.Transitions.Sine.easeOut});
						 
							myEffect.start({
								'opacity': [0,1]
							});
						}, 1000);
}