// JScript source code
Shadowbox.init({ displayCounter: false, displayNav: false });
window.onload = function() {
    Shadowbox.setup("#services-container ul li a.shadowbox", { });
};
$j(document).ready(function() { $j('#navigation').prepend("<b class='tl'></b>"); $j('#navigation').prepend("<b class='tr'></b>"); });
function shuffle(sourceArray) {
    for (var n = 0; n < sourceArray.length - 1; n++) {
        var k = n + Math.floor(Math.random() * (sourceArray.length - n));
        var temp = sourceArray[k];
        sourceArray[k] = sourceArray[n];
        sourceArray[n] = temp;
    }
}

(function($j) {
    $j.fn.shuffle = function() {
        var allElems = this.get(),
            getRandom = function(max) {
                return Math.floor(Math.random() * max);
            },
            shuffled = $j.map(allElems, function() {
                var random = getRandom(allElems.length),
                    randEl = $j(allElems[random]).clone(true)[0];
                allElems.splice(random, 1);
                return randEl;
            });
        this.each(function(i) {
            $j(this).replaceWith($j(shuffled[i]));
        });
        return $j(shuffled);
    };
})(jQuery);
