﻿/**
*@author Josh Bennett
*@copywrite Whittmanhart 2009
**/
window.outStr = " ";
    function rotateImages() {
        
        if (window.doPromoRotation) {
            $('.promo-rotate:visible').each(function(i) {
                $this = $(this);
                $next = ($this.next().length > 0) ? $this.next() : $($this.siblings().get(0));
                if(!$this.siblings().length)
                    return;
                $next.fadeIn();
                $this.fadeOut();
            });
        }
    }

    $(document).ready(function() {
        window.doPromoRotation = true;
        $('.promo-rotate').bind("mouseenter", function() {
            window.doPromoRotation = false;
        })
        $('.promo-rotate').bind("mouseleave", function() {
            window.doPromoRotation = true;
        })
        setInterval(rotateImages, 4000);
    });




