
var inc = -272;
var tct=10;
var ct = 0;
var maximuminc = tct*inc;
var ridset=0;
var refreshId=setInterval(function () { },10000);
var firstclick=1;

$(document).ready(function() {
    $('#bcopy').html('<div class="arial12white" style="height: 220px;"> "Thanks to AgencyPro, for the past 5 years our office has been more streamlined - we have cut down on the administrative nitty gritty and can spend more time on building our castings! The <strong>talent</strong> who come through our doors love the services we offer and our business is growing to prove it."<p class="sigline">~ Angela Peri / Boston Casting<br>( <a href="http://bostoncasting.com" target="_blank" class="arial12white">www.bostoncasting.com</a> )</p><div style="float:right;"><img src="images/boston.png" width="80" height="48" alt="Boston Casting"></div></div>');
});


var timoutID=setTimeout(function () {
refreshId=setInterval(function () {
    $("#testimonialwrapper").animate({ marginTop: inc },600);
    inc=inc-272;

    if (inc<maximuminc) {inc=-272; $("#testimonialwrapper").animate({ marginTop: 0 },1);  }
    ct++; if (ct==tct) {ct=-1; }
},8000)},10000);

function quoteslideup() {
    clearInterval(refreshId);
    clearTimeout(timoutID);

    if (firstclick==1) { inc=inc+272; firstclick=0; }

    if (inc<0) {
        inc=inc+272;
        $("#testimonialwrapper").animate({ marginTop: inc },600);
    }
}

function quoteslidedown() {
    clearInterval(refreshId);
    clearTimeout(timoutID);
    if (firstclick==1) { inc=inc+272; firstclick=0; }


    if (inc>-2448) {
        inc=inc-272;
        $("#testimonialwrapper").animate({ marginTop: inc },600);
    }

}
