﻿jQuery.fn.exists = function() { return ($(this).length > 0); }

$(document).ready(function() {
    if ($(".slideshow p").length == 1) {
        $(".slideshow p").css("display", "block");
    }

    $('.slideshow').cycle({
        speed: 4000,
        timeout: 8000
    });

    /*news control */
    $('.news-container').show();
    $('marquee').marquee().mouseover(function() {
        $(this).trigger('stop');
    }).mouseout(function() {
        $(this).trigger('start');
    });
    
    if ($("#jScrollPane").exists()) {
        $('#jScrollPane').jScrollPane();
        $('.coming-shows .container').css("display", "block");
    }
    
});

