/* Cache Generated: 09 July 2008 */

window.addEvent("domready", function() {  var TestimonialStartDelay = 500; var TestimonialDelay = 7000;  var TestimonialTransitionSpeed = 500; var xmlTestimonial; var iTestimonialXMLNodePos; iTestimonialXMLNodePos = 0; var xmlloc = "/xml/testimonials"; var xmlAjax = new Ajax(xmlloc, { method: 'get', onComplete: function(text, xmldata) {  xmlTestimonial = xmldata; var objTestimonialsText = $("oTestimonialsText"); var TestimonialsTextTop = objTestimonialsText.getTop(); var TestimonialsTextLeft = objTestimonialsText.getLeft();  var TestimonialsTextBigSlideContainer = new Element('div', { 'styles': { 'display': 'block', 'position': 'absolute', 'top': TestimonialsTextTop.toInt() + "px", 'left': TestimonialsTextLeft + "px", 'width': '470px', 'height': '90px' } });   var TestimonialsTextNewContainer = new Element('div', { 'styles': { 'display': 'block', 'font-size': '12px', 'color': '#978842', 'top': "0px", 'padding-left': "15px", 'width': '370px', 'height': '90px', 'font-style' :'italic' } });  TestimonialsTextNewContainer.innerHTML = objTestimonialsText.innerHTML;  TestimonialsTextNewContainer.getLast().setStyle("color", "#ffffff"); TestimonialsTextNewContainer.getLast().setStyle("font-size", "12px"); TestimonialsTextNewContainer.getLast().setStyle("font-weight", "bold"); TestimonialsTextBigSlideContainer.injectInside($("oMidBannerContainer")); TestimonialsTextNewContainer.injectInside(TestimonialsTextBigSlideContainer);  TestimonialSlide(TestimonialsTextNewContainer);   } }); xmlAjax.request();  function TestimonialSlide(objTestimonial) { var fx = objTestimonial.effects({duration: 500, transition: Fx.Transitions.Quart.easeOut});  fx.start({ 'padding-left': 200, 'opacity': 0 }).chain(function(){  var xmlTestimonialNodes = xmlTestimonial.getElementsByTagName('testimonial'); var newTestimonialText = xmlTestimonialNodes[iTestimonialXMLNodePos].getElementsByTagName('text')[0].firstChild.nodeValue; var newTestimonialName = xmlTestimonialNodes[iTestimonialXMLNodePos].getElementsByTagName('name')[0].firstChild.nodeValue;  iTestimonialXMLNodePos = iTestimonialXMLNodePos + 1; if(iTestimonialXMLNodePos==xmlTestimonialNodes.length) { iTestimonialXMLNodePos = 0; }  objTestimonial.innerHTML = newTestimonialText + '<br/><span class="Name">' + newTestimonialName + '</span>';  objTestimonial.getLast().setStyle("color", "#ffffff"); objTestimonial.getLast().setStyle("font-size", "12px"); objTestimonial.getLast().setStyle("font-weight", "bold");  this.start.delay(TestimonialStartDelay, this, { 'padding-left': 15, 'opacity': 1 });  }).chain(function(){  (function() { TestimonialSlide(objTestimonial); } ).delay(TestimonialDelay);  });  } });
