$(document).ready(function(){
$(function () {
    function fadingScroller($el) {
        $el.animate({'opacity': 0}, 1000);
        $el.hide('slow', function () {
            $el.parent().append($el);
            $el.show();
            $el.animate({'opacity': 1}, 1000);
            setTimeout(function ($el) {
                return function () {
                    fadingScroller($($el.selector));
                };
            }($el), 4000);
        });
    }
fadingScroller($('#testimonials blockquote:first'));
jQuery.jQueryRandom = 0;
jQuery.extend(jQuery.expr[":"],{
    random: function(a, i, m, r){
if (i == 0){
    jQuery.jQueryRandom = Math.floor(Math.random() * r.length);
};
return i == jQuery.jQueryRandom;
}
});
$(function(){
  $('#home-page .banner ul li').not(':random').hide();
  setInterval(function(){
    $('#home-page .banner ul li:visible').fadeOut(1200)
      .siblings('li:random').fadeIn(1200)
       .end().appendTo('#home-page .banner ul');},
    3000);
});
});
});
function setupScripts() {
Shadowbox.setup("a.gallery-group", {
        gallery:        "Gallery",
        continuous:     true,
        counterType:    "skip"
});
}
