﻿$(document).ready(function () {
    $(".bClose").bind('click', function () {
        $("#div_to_popup").hide();
    });
    $("#column_1").bind('click', function () {
        $("#div_to_popup").show();

        // $("#div_to_popup").bPopup();
        //$("#div_to_popup").bPopup({ fadeSpeed: 1, followSpeed: 1, opacity: 0.8, modalClose: true, amsl: 50 });
        //TODO we mush host flowplayer-3.2.6.swf on our server
        $f("video", "http://releases.flowplayer.org/swf/flowplayer-3.2.6.swf", {
            plugins: {
                rtmp: {
                    url: 'flowplayer.rtmp-3.2.3.swf',
                    netConnectionUrl: 'rtmp://cp92325.edgefcs.net/ondemand/',
                    durationFunc: 'getStreamLength'
                },
                controls: {
                    fullscreen: true,
                    height: 30,
                    autoHide: true
                }
            },
            clip: {
                provider: 'rtmp',
                autoPlay: true
            }
        });
    });
    return false
});
