function initializeProductLanding() {
    
    // add rollover action to categories
    $$(".item").each(function(item) {
        item.observe("mouseenter", function(event) {
            this.select(".default")[0].hide();
            this.select(".rollover")[0].show();
            this.select(".rollover h2")[0].setStyle({"backgroundImage":"url(/img/xyron/icons/pointer-down.gif)"});
        });
        item.observe("mouseleave", function(event) {
            this.select(".rollover")[0].hide();
            this.select(".default")[0].show();
        });
    });
}

function initializeProductDetail() {

    initializeProdTabs();    
    /**
     * Carousel
     */
    var myRelatedProductsCarousel = new Carousel( 'carouselRelatedProducts' );
    myRelatedProductsCarousel.initialize();
}

function initializeShoppingCart() {

    if ($('shoppingInfo') != null) {
        setupHelpLinks();
    }

    if ($('returningUserSubmitLink') != null) {
        $('returningUserSubmitLink').observe('click', function(event) { showLoginOverlay(event); });
    }

    if ($('guestUserSubmitLink') != null) {
        $('guestUserSubmitLink').observe('click', function(event) { showLoginOverlay(event); });
    }
}

function showVideoPlayerOverlay(videoUrl) {
    new Popup('videoPlayer', null, { modal: true }, { position: 'center' });
    $('videoPlayer').popup.show();
    $('popup_overlay').onclick = function() {
        $('videoPlayer').popup.hide();
    };
    wimpyConfigs.playlist = videoUrl;
    makeWimpyPlayer(wimpyConfigs);
}