jQuery.noConflict();
jQuery(document).ready(function() {
    jQuery(".paging").show();
    jQuery(".paging a:first").addClass("active");
    var imageWidth = jQuery(".window").width();
    var imageSum = jQuery(".image_reel img").size();
    var imageReelWidth = imageWidth * imageSum;
    jQuery(".image_reel").css({
        'width' : imageReelWidth
    });
    rotate = function(){	
        var triggerID = $active.attr("rel") - 1;
        var image_reelPosition = triggerID * imageWidth;
        jQuery(".paging a").removeClass('active');
        $active.addClass('active');
        jQuery(".image_reel").animate({ 
            left: -image_reelPosition
        }, 500 );
    }; 
    rotateSwitch = function(){		
        play = setInterval(function(){
            $active = jQuery('.paging a.active').next();
            if ( $active.length === 0) {
                $active = jQuery('.paging a:first');
            }
            rotate();
        }, 7000);
    };
    rotateSwitch();
    jQuery(".image_reel a").hover(function() {
        clearInterval(play); 
    }, function() {
        rotateSwitch();
    });	
    jQuery(".paging a").click(function() {	
        $active = jQuery(this);
        clearInterval(play);
        rotate();
        rotateSwitch();
        return false;
    });	
});
jQuery(function(){jQuery('a[rel=lightbox]').lightBox();}); 
