// JavaScript Document
	//<!--
	var lpszTitle = new Array();		// Title of the AddTestimonial
	var lpszAddTestimonial = new Array();	// AddTestimonial text
	var lpnHeight = new Array();		// Array of offset heights
	var nTCount = 0;			// Count of AddTestimonials.
	var bMSIE = false;
	var bFFX = false;
	var szBrowser = window.navigator.appName;
	var bScrolling = false;
	var nCurrAddTestimonial = 0;
	var nNextAddTestimonial = 1;
	
	if(szBrowser.indexOf("Microsoft") != -1)
	{
		bMSIE = true;
	}
	else if(szBrowser.indexOf("Netscape") != -1)
	{
		bFFX = true;
	}
	
	function AddTestimonial(szTitle, szAddTestimonial)
	{
		// You can use as many variables as you need. Just add them as arrays and fill them with this function.
		lpszTitle[nTCount] = szTitle;
		lpszAddTestimonial[nTCount] = szAddTestimonial;
		nTCount++;
	}
	function Init()
	{
		var dViewPort = document.getElementById("ViewPort");
		if(dViewPort)
		{
			if(bMSIE || bFFX)
				{
					var i = 0;
					for(i = 0; i < nTCount; i++)
					{
						var dNewObject = document.createElement('div');
						dNewObject.setAttribute("id", "test" + i);
						dNewObject.className = "AddTestimonial";
						dNewObject.style.position = "absolute";
						if(i == 0)
						{
							dNewObject.style.top = "2px";
						}
						else
						{
							dNewObject.style.top = "" + (dViewPort.offsetTop + dViewPort.offsetHeight) + "px";
						}
						dNewObject.style.left = "2px";
						
						// This is the HTML for inside each of the AddTestimonials
						dNewObject.innerHTML = "<h2>" + lpszTitle[i] + "</h2>\n";
						dNewObject.innerHTML += "" + lpszAddTestimonial[i] + "\n";
						
						dViewPort.appendChild(dNewObject);
					}
					bScrolling = true;
					setTimeout("Scroll(0)", 5000);
				}
			else
			{
			}
		}
		else
		{
		// ERROR: No viewport to scroll through.
		// alert("No viewport to scroll through.");
		}
	}
	
	function Scroll(bNext)
	{
		var i = 0;
		var dObj = document.getElementById("test" + nCurrAddTestimonial);
		var dViewPort = document.getElementById("ViewPort");
		if(bNext)
		{
			nCurrAddTestimonial = nNextAddTestimonial;
			nNextAddTestimonial++;
			if(nNextAddTestimonial == nTCount)
			{
				nNextAddTestimonial = 0;
			}
				bScrolling = true;	
		}
		if (nTCount > 1){
			if(bScrolling)
			{
				var dObj2 = document.getElementById("test" + (nNextAddTestimonial));
				var nDiff = dObj2.offsetTop - 2;
				var nTop;
				if(nDiff <= 0)
				{
					nTop = parseInt(dObj2.style.top)
					nTop += nDiff;
					dObj.style.top = "" + (dViewPort.offsetTop + dViewPort.offsetHeight) + "px";
					dObj2.style.top = "" + nTop + "px";
					
					setTimeout("Scroll(1)", 5000);
				}
				else
				{
					nTop = parseInt(dObj2.style.top);
					nTop -= 2;
					//document.getElementById("debugPort").innerHTML += "OBJECT" + nNextAddTestimonial + " TOP: " + nTop + "<br />\n";
					dObj2.style.top = "" + nTop + "px";
					
					
					nTop = parseInt(dObj.style.top);
					nTop -= 2;
					dObj.style.top = "" + nTop + "px";
					setTimeout("Scroll(0)", 33);
				}
			}
		}	
	}

//-->

