// JavaScript Document


/* Test Arrays
q1=new Array("These are troubled times. Grab your spoon and wear something with color.","Alfred P Dootlittle, Public Relations, GM");
q2=new Array("It takes one to know one.","Joe Blow, General Manager, Something Co.");
q3=new Array("If I had a million dollars for each time I lost my sunglasses, I would be a wealthy man. If I had a million dollars for each time I lost my sunglasses, I would be a wealthy man. ","Anonymous Smith, Avocado Lounge Customer Service");
q4=new Array("This is the fourth quote. This is the fourth quote. This is the fourth quote. This is the fourth quote. This is the fourth quote. This is the fourth quote.","Joe Blow, General Manager, Something Co.");
q5=new Array("This is the fifth quote!!!!This is the fifth quote!!!!This is the fifth quote!!!!This is the fifth quote!!!!This is the fifth quote!!!!","Joe Blow, General Manager, Something Co.");
*/

function formatType(t) {
return "<span class='thank_you_type'>A special thanks<br>to our "+t+"</span>";
} 

function formatName(n){
return "<span class='thank_you_name'>"+n+"</span>";
}

num=0;
count=0;

function rotateThanks() {
//		alert(document.getElementById("quoteText"));
if (!document.getElementById("thank_you_callout")) return;
if (document.all && !document.getElementById) {
			ty=document.all["thank_you_callout"];
} else if (document.getElementById) {
			ty=document.getElementById("thank_you_callout");
} else if (document.layers) {
			ty=document.layers["thank_you_callout"];
}

		ty.innerHTML=formatType(type_array[num])+formatName(name_array[num]);
		
		
		((num+1)>name_array.length-1)?(num=0):(num++);
		count=1;
}



timerLength=5;
 var x = timerLength
	var y = 1
 function startClock(){
if (!document.getElementById("thank_you_callout")) return;
   x = x-y
   setTimeout("startClock()", 1000)
   if (x==0){
	//		alert("change");
     rotateThanks();
     x=timerLength;
					
    }
		}

