﻿
function ShowVideo(template, ts, projectId, projectuuId, width, height) {
    var video_uuid = get_url_parse('video_uuid');
    var so = new SWFObject(template, "live_player", width, height, "9", "#FFFFFF");
    so.addVariable("ts", ts);
    so.addVariable("projectid", projectId);
    so.addVariable("projectuuid", projectuuId);
    so.addVariable("programid", video_uuid);
    so.addVariable("programuuid", video_uuid);

    so.addVariable("gfToken", "");
    so.addVariable("loadingdomain", "http://mediasuite.multicastmedia.com");
    so.addVariable("serviceURL", "http://mediasuite.multicastmedia.com/services/index.php");
    so.addVariable("doResize", "false");
    so.addParam("allowFullScreen", "true");
    so.addParam("allowScriptAccess", "always");
    so.addVariable("typePlayer", "vod");
    so.addParam("wmode", "opaque");
    so.write("flashcontent");
}
function get_url_parse(name) {
    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\?&]" + name + "=([^&#]*)"); var results = regex.exec(window.location.href); return results == null ? "" : results[1];
}
