var c=1;
var t;
var timer_is_on=0;

function timedCount()
{
	
    var timer = 0; 
    
	for(i = 0; i < 100; i++) { 
		setTimeout("changeOpac(" + i + ",'txt')",(timer * Math.round(3000 / 100))); 
		timer++; 
	
	}

	if (c%2){
		document.getElementById('txt').innerHTML='Corporation of Lower St. Lawrence Pilots';
	} else {	
		document.getElementById('txt').innerHTML='150 years on the St. Lawrence';
	}		

	for(i = 100; i > 0; i--) { 
		setTimeout("changeOpac(" + i + ",'txt')",(timer * Math.round(3000 / 100))); 
		timer++; 

		
	}



c=c+1;

t=setTimeout("timedCount();",7000);

}

function doTimer()
{
if (!timer_is_on)
  {
  timer_is_on=1;
  timedCount();
  }
}


function pause(milliseconds) {
	var dt = new Date();
	while ((new Date()) - dt <= milliseconds) { /* Do nothing */ }
}


//change the opacity for different browsers 
function changeOpac(opacity, id) { 
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity + ")"; 
} 

