// JavaScript Document
//to add a new testimonal copy the bottom one, change the number to the next in the line and 
//then update your values
var testimonial_array = new Array();
testimonial_array[0] = new Array("","JewishUsedBooks.com","With so many companies doing the same thing, it’s really difficult to pick the right company to design and program your online business. The staff at OuterBox has proven themselves to be honest, hard working, professional, and an overall pleasure to work and we recommend them 100%! We look forward to our continued relationship with you and the team.");
testimonial_array[1] = new Array("","GermGuardian.com","We worked with OuterBox on designing and implementing our new website. We have a vast array of products and we needed a website to house all of the data in an easy-to-use fun way. We like OuterBox because it’s the place we can go for everything from search engine optimization to development.");
testimonial_array[2] = new Array("","JetDock.com","Once we found 2 or 3 companies we wanted to look at, we interviewed all of the companies to see who we would be most comfortable with. OuterBox came to our office, met with us, showed us their site designs and from what they had to say it was the best possibility for us. OuterBox gave us one solution and at a good price, too. Everyone is very up-to-date and they’ll get right back to you on anything.");
testimonial_array[3] = new Array("","Action-Door.com","“I can just email OuterBox and say 'here is what we’d like to do', whether it’s pictures or videos, and it gets done and happens almost seamlessly. They’re easy to work with, trustworthy and respond to your needs when you ask them. Absolutely go with them!");

testimonial_array[4] = new Array("Roy Argall","Heros Journey Coaching","OuterBox is way, way, way past unbelievably amazing! If you don’t believe this, tell them to give you my phone number and call me!");

testimonial_array[5] = new Array("Allan Johnson","Chima Travel Inc.","I was very impressed by OuterBox's professionalism. Their attention to details and their ability to understand our business, and develop a site that would portray our business, was outstanding. I will recommend OuterBox to anyone interested in a custom designed website.");

testimonial_array[6] = new Array("Eric Martin","President of Ultimate Sack","OuterBox recently redesigned our eCommerce website, keeping us up-to-date with the quickly changing world of eCommerce. They implemented the latest eCommerce features, updated our look, and sales are way up with our new site! We know we can trust them to provide great service and a website that is reliable and attractive. We are always getting compliments on the site!");


//do not touch below this line
var lastid = "";
var lastdiv = "";
var fadediv = "";

window.addEvent('domready',function(){	
	$('div1').setStyles({
		opacity: '0'
	});
	$('div2').setStyles({
			opacity: '0'
	});
	//set first one
	show_testimonial();
});

function show_testimonial(){

var idshow = getid();
var testimonial_hold = '<span class="OrangeBoldQuote">&quot;</span><br>' + testimonial_array[idshow][2] ;
testimonial_hold = testimonial_hold + '<span class="OrangeBoldQuote"> &quot;</span><br>';
testimonial_hold = testimonial_hold + '<br><span class="White11text"> ' + testimonial_array[idshow][0];
testimonial_hold = testimonial_hold+ ' - ' + testimonial_array[idshow][1] + '</span> <br><br>';

if (lastdiv == "div1"){
	lastdiv = "div2";
	fadediv = "div1";
}else{
	lastdiv = "div1";
	fadediv = "div2";
}

	$(lastdiv).set('html',testimonial_hold);

	var size_old = $('test_spacer').getSize();
	var thesize = $(lastdiv).getSize();

	var myEffect = new Fx.Morph('test_spacer', {duration: 'long', transition: Fx.Transitions.Sine.easeOut});
		myEffect.start({
		'height': [size_old.y, thesize.y] //Morphs the 'height' style from 10px to 100px.
	});
	$(lastdiv).fade('in');
	$(fadediv).fade('out');

}

function getid(){
	var idhold = $random(0, testimonial_array.length - 1);
	if (idhold == lastid){
		idhold = getid();
	}
	lastid = idhold;
	return lastid;
}

