if(!Array.push){
Array.prototype.push=function(_1){
this[this.length]=_1;
};
}
function TestimonialDisplay(){
this.availableTestimonials=new Array();
this.availableTestimonials.push(new Testimonial("One of the best features of STAFFeasy is the ability to send a staffing request to my entire team with only one e-mail, and then keeps track of who is working and where.  It is very fast, and it is easy for me to log in from anywhere to see who has signed up","the girl & the fig"));
this.availableTestimonials.push(new Testimonial("STAFFeasy provides more organization allowing us to do the staffing job in less time, and it allows my staffing to occur remotely (from home) which reduces the amount of labor I use.","Wolfgang Puck, Minneapolis "));
this.availableTestimonials.push(new Testimonial("The Academy Awards receptions are by no means the largest or most complex endeavors that we take on as part of our day-to-day business, but they are perhaps our highest profile.  To give ourselves the best possible chance to succeed at making every aspect perfect, we chose STAFFeasy.","Wolfgang Puck Catering & Events"));
this.availableTestimonials.push(new Testimonial("STAFFeasy has cut down significantly on the amount of daily e-mails and phone calls that need a response.  It makes my staff more responsible for their scheduling because they have to input and update their availability to work if they want to be scheduled.  We looked at another system, but STAFFeasy stood out based on recommendations.","Abigail Kirsch "));
this.availableTestimonials.push(new Testimonial("Automating our scheduling process with STAFFeasy has made our Company more efficient, our contractors more informed, and our office staff more professional, and has decreased the time spent scheduling staff to events by 70%.","W3 Events Specialists"));
this.availableTestimonials.push(new Testimonial("Since using STAFFeasy, our Event Planners now have more time to focus on scheduling events than scheduling wait staff, which means a bigger bottom line for the Company.","George Catering"));
}
TestimonialDisplay.prototype.getRandomTestimonial=function(){
var _2=this.availableTestimonials.length;
var _3=Math.floor((Math.random()*_2));
var _4=this.availableTestimonials[_3];
this.removeTestimonial(_3);
return _4;
};
TestimonialDisplay.prototype.removeTestimonial=function(ID){
var _6=this.availableTestimonials;
this.availableTestimonials=new Array();
for(var i=0;i<_6.length;i++){
if(i!=ID){
this.availableTestimonials.push(_6[i]);
}
}
};
TestimonialDisplay.prototype.insertTestimonial=function(_8){
var _9=this.getRandomTestimonial();
var _a=document.getElementById(_8);
var _b=_9.text.prefix;
_b+=_9.text.value;
_b+=_9.text.suffix;
_b+=_9.author.prefix;
_b+=_9.author.value;
_b+=_9.author.suffix;
_a.innerHTML=_b;
_a.style.height="auto";
};
function Testimonial(_c,_d){
this.text=new Object();
this.text.prefix="<p>&#8220;";
this.text.value=_c;
this.text.suffix="&#8221;</p>";
this.author=new Object();
this.author.prefix="<p class=\"testimonialAuthor\">- ";
this.author.value=_d;
this.author.suffix="</p>";
}


