﻿$(document).ready(function() {

    /* Landing page scrolling content */
    var features = $('#feature')
    if (features) {
        features.scrollable({
            items: "#feature-slideshow",
            size: 1,
            navi: '#feature-navigation',
            activeClass: 'current',
            speed: 500
        })
    }

    /* Handles image 'rotation' of customer logos */
    var logos = $('#customerLogos');
    if (logos) {
        logos.imageGrid({
            imageSource: 'static/images/customer_logos_sprite_preproduction.png',
            imageCount: 31,
            visibleCount: 8,
            imageWidth: 120,
            imageHeight: 70
        })
    }

    /* Modify external links to open in a new window.  This allows us to maintain 
    XHTML compliance and still support external links.  Simply decorate anchors
    with rel="external". */
    var links = $('a[rel*=external]')
    if (links) {
        links.click(function() {
            window.open(this.href);
            return false;
        })
    }

});





