var timer = null;
var counter = 1;

var secondTXT = "<div style='font-size:22px;padding-bottom:8px;color: #003;'>See-TV Information</div>The latest information is here for See-TV, the new television service provided by Planters Telephone Cooperative. <span style='font-weight:bold; color: #003;'><a class='h4' href='http://www.see-tv.tv'> [more]</a></span>";

var thirdTXT = "<div style='font-size:22px;padding-bottom:8px;color: #003;'>Planters Long Distance<span style='font-size:11px; vertical-align:top;'>&trade;</span></div>No hidden fees, no monthly usage requirements or monthly add-on calls. Planters Long Distance is your premier service for calls in and out of state. <span style='font-weight:bold; color: #003;'><a class='h4' href='services/longdistance/index.html'> [more]</a></span>";

var fourthTXT = "<div style='font-size:22px;padding-bottom:8px;color: #003;'>Fiber Overbuild</div>In certain portions of our service area, we are replacing our copper lines with fiber optic cabling. Find out if service in your area is being cut over.<span style='font-weight:bold; color: #003;'><a class='h4' href='news/fiberbuild/index.html'> [more]</a></span>";

var firstTXT = "<div style='font-size:22px;padding-bottom:8px;color: #003;'>PlantersNet<span style='font-size:11px; vertical-align:top;'>&trade;</span> DSL Service</div>Wondering about our DSL Speeds and Rates? Trying to configure a modem with our service? Get more information here.<span style='font-weight:bold; color: #003;'><a class='h4' href='services/dsl/index.html'> [more]</a></span>";

function slideshow() {
	timer = setTimeout("slideshow()", 8000);     
	if (counter > 4){
	        counter = 1;    
	}    
	document.pictures.src = pic[counter].src;      

	if (counter == 1) {        	
		document.getElementById('text').innerHTML = firstTXT;    
	}    
	else if (counter == 2) {
        	document.getElementById('text').innerHTML = secondTXT;
    	}    
	else if (counter == 3) {
        	document.getElementById('text').innerHTML = thirdTXT;    
	}    
	else if (counter == 4) {        
		document.getElementById('text').innerHTML = fourthTXT;    
	}                 
	counter++;
}

function endtimer1() {	
	clearTimeout(timer);	
	document.pictures.src = pic[1].src;	
	counter = 1;
	document.getElementById('text').innerHTML = firstTXT;
}

function endtimer2() {	
	clearTimeout(timer);	
	document.pictures.src = pic[2].src;	
	counter = 2;    	
	document.getElementById('text').innerHTML = secondTXT;
}

function endtimer3() {	
	clearTimeout(timer);	
	document.pictures.src = pic[3].src;
	counter = 3;	
	document.getElementById('text').innerHTML = thirdTXT;
}

function endtimer4() {
	clearTimeout(timer);	
	document.pictures.src = pic[4].src;	
	counter = 4;
	document.getElementById('text').innerHTML = fourthTXT;
}