var mytext = new Array();

mytext[0]="It tasted so good, I wanted to smear it all over my body! <div class=testimonial_signed>&raquo; MiCah F., Valatie, N.Y.<\/div>";

mytext[1]="\"I really liked the oil, it was hot and spicy and had a great aroma.\" <div class=testimonial_signed>&raquo; Teresa F., Birminghan, AL.<\/div>";

mytext[2]="I use it on everything I cook, veggies, meats, pasta, it&rsquo;s  even great on salads.  <div class=testimonial_signed>&raquo; Mahra F, Dallas, Texas<\/div>";

mytext[3]="I love my olive oil. I use it in my salad, pasta, and bread. I love adding parmesan cheese and the spiceblend to the olive oil and then dipping fresh baked bread.&nbsp; SSSSSSSSiiinful! The oil is zesty and spiced perfectly. I honestly haven't had an olive that was that perfectly blended. Yummmmmm!  <div class=testimonial_signed>&raquo; Staci and John G., Metairie, LA.<\/div>";

mytext[4]="I was never a big olive oil user until I found Fire Chief  Gourmet. The garlic flavor is delicious and it&rsquo;s so healthy, I&rsquo;d much rather  use that to cook than any other oil.  <div class=testimonial_signed>&raquo; Melissa S., Chicago, Illinois<\/div>";


var delay=70;
var currentChar=1;
var currentQuote=0;
var destination="user_testimony_t";


function type()
{
  
  if (document.getElementById)
  {
    var dest=document.getElementById(destination);
    if (dest)
    {
      dest.innerHTML=text.substr(0, currentChar);
      currentChar++
      if (currentChar>text.length)
      {
        currentChar=1;
//          dest.innerHTML="";
 		  currentQuote++
 		  if (currentQuote>=mytext.length) { 
 		  	currentQuote=0;
		  	setTimeout("testimonials(mytext[currentQuote],delay,destination)", 12000);
		  }
		  else
		  {
		  	setTimeout("testimonials(mytext[currentQuote],delay,destination)", 12000);
		  }
      }
      else
      {
        setTimeout("type()", delay);
      }
    }
  }
}


function testimonials(textParam, delayParam, destinationParam)
{
  text=textParam;
  delay=delayParam;
  currentChar=1;
  destination=destinationParam;
  type();
}


testimonials(mytext[0], delay, destination);



//Functions to write out the correct flash movie resource.

function show_testimonial(){
			
	var randomnumber = Math.round(Math.random());

	
	
	AC_FL_RunContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
		'width', '180',
		'height', '175',
		'src', 'videos/testimonial_'+randomnumber,
		'quality', 'high',
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'play', 'false',
		'loop', 'false',
		'align', 'right',
		'scale', 'showall',
		'wmode', 'transparent',
		'devicefont', 'false',
		'id', 'videos/testimonial_'+randomnumber,
		'name', 'videos/testimonial_'+randomnumber,
		'menu', 'true',
		'allowFullScreen', 'false',
		'allowScriptAccess','sameDomain',
		'movie', 'videos/testimonial_'+randomnumber,
		'salign', ''
		); 
		//end AC code
				
}
