﻿
function changeListQty(newQty) {
    if (newQty == 1) {
        $(".must-see-summary").show();
        $("#listQty").html("is 1 event");
    } else if (newQty == 0) {
        $(".must-see-summary").hide();
    }
    else {
        $(".must-see-summary").show();
        $("#listQty").html("are " + newQty + " events");
    }
}

$(document).ready(function() {

    //show hide for more information links
    $(".more-info-link").click(function() {
        $(this).find("span").toggle();
        $(this).siblings(".more-info").slideToggle();
    });

    //Facebook login on Must See List
    $("#btnLoginFB").click(function() {
    //?" + Math.random().toString().replace('.',"")
        window.open("/denverartsweek/facebook-login.aspx?" + Math.random().toString().replace('.',""), "Login", "width=850,height=550,center=true");
    });

   
        $("#artistVideos a").click(function() {
            $.fancybox({
                'padding': 20,
                'autoScale': false,
                'transitionIn': 'none',
                'transitionOut': 'none',
                'title': this.title,
                'width': 480,
                'height': 383,
                'href': this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
                'type': 'swf',
                'swf': {
                    'wmode': 'transparent',
                    'allowfullscreen': 'true'
                }
            });
            return false;
        }); 

});

