// depends on the original enlarge.js
function enlarge_flash(movieSrc, stillSrc, imgWidth, imgHeight, imgCaption, movieTitle, movieCategory) {
    var stringBuffer = new Array(
        '<div id="imageInfo" style="position:relative; top:0; left:0;width:', imgWidth, 'px;margin-top:', Math.max(document.documentElement.scrollTop, 20), 'px">',
            '<a href="#" class="close" onclick="closeEnlargeFlash(); return false;"><img src="/html/images/close.gif" alt="', snippet('miscpopupclose') + '" /></a>',
            '<div id="enlargeMovie" style="width:', imgWidth, 'px;height:',  imgHeight, 'px"><img src="', stillSrc, '" /></div>',
            '<div class="large standard controls" id="controls_enlargeMovie"></div>',
            '<h3>', imgCaption, '</h3>',
        '</div>'
    );
    $('filter').show();
    $('enlarge').innerHTML = stringBuffer.join('');
    if (movieTitle === undefined) {
        movieTitle = 'none';
    }
    if (movieCategory === undefined) {
        movieCategory = 'none';
    }
    /*
    swfobject.embedSWF("/html/flash/flv-player/flv-player-640.swf",
            "enlargeMovie", "640", "480", "9.0.0",
            "/html/javascript/lib/expressInstall.swf", {
                flvPath : movieSrc,
                posterPath : stillSrc,
                WTti : movieTitle,
                WTcg_s : movieCategory
            }, {
                wmode : "transparent"
            });
     */
    var large = new StandardVideo({
        parentId  : 'enlargeMovie',
        flvPath   : movieSrc,
        posterPath: stillSrc,
        DCSdcsuri : window.location,
        WTparams: {
                    name: movieTitle,
                    category: movieCategory
                  }
        });
    large.player.load();
    $('enlarge').show();
}
function closeEnlargeFlash() {
    $('filter').hide();
    flowplayer('enlargeMovie').unload();
    $('enlargeMovie').remove();
    $('enlarge').hide();
}

