//----------------------------------------------------------------------------------------------
//   Script Name:     Word Cycler
//   Purpose:         Cycle 4 paragraphs in 1 slot
//----------------------------------------------------------------------------------------------
//   Created By:      Recharge Web Design
//   Creation Date:   July 2007
//----------------------------------------------------------------------------------------------
//   Do not forget to recursively call the function.
//   the delay doesnt work right if you dont.
//----------------------------------------------------------------------------------------------


// The paragraph to be changed should have name="temptext"
// The section should look something like this
// <td><p><span id="changingtext">Test Text</span></p></td>


		// set counter time - in milliseconds
			var text_counter = 10000;
			
		// set up variable to rotate pics
			var text_tmp = 0;
			
		// set max number of paragraphs - 1
			var text_max = 3;
			
		// declare variable
			var text_timer = 0;

	
		function cycle_text()
		{
			
			switch (text_tmp) {
	
				case 0:
					temptext.innerHTML = '"We are a company with small company ideals-customer service, <br> high quality work at an efficient price and large company capabilities."<br>';
				break;
	
				case 1:
					temptext.innerHTML = '"If it can be done, Brown and Decker can do it!"<br>';
				break;
	
				case 2:
					temptext.innerHTML = '"We can handle all aspects of your fulfillment from dealing with receiving the products and making sure they are shipped to us in the most efficient manner to making sure your timeline is met!"<br>';
				break;
	
				case 3:
					temptext.innerHTML = '"Our quality control means that one of the owners<br> has checked the work before it leaves our facility."<br>';
				break;

				default:
				break;
	
			};
			text_tmp++;
			if (text_tmp>text_max) {text_tmp=0;}
 			text_timer = setTimeout("cycle_text();", text_counter);
		}


