﻿//JQUERY HOMEPAGE - PARTNERS JCAROUSEL
(function ($) {
    $.fn.vAlign = function () {
        return this.each(function (i) {
            var h = $(this).height();
            var oh = $(this).outerHeight();
            var mt = (h + (oh - h)) / 2;
            $(this).css("margin-top", "-" + mt + "px");
            $(this).css("top", "50%");
            $(this).css("position", "relative");
        });
    };
})(jQuery);

//PREPLOGIC HOMEPAGE AD ROTATOR
function adRotator() {
    $('#Ads').show();
    $('#Ads').cycle({
        fx:      'fade',
        timeout:  10000,
        prev:    '#prev',
        next:    '#next',
        pager: '#nav'
    });
}


//JQUERY DOCUMENT READY
$(function() {
    adRotator();
    $('#mid_ad, #logos').jcarousel({
        scroll: 1
    });
});








