
function get_url_parse( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}

function displayPlayer_affg7w4o() {

    var video_uuid =  get_url_parse('video_uuid');
    var vidego_video_uuid =  get_url_parse('vidego_video_uuid');

    var projectid = '40050';
    var projectuuid = 'affg7w4o';
    
    //var programid = '';
    
    var programid = 'po4k6zwc';
    var programuuid = 'po4k6zwc';

    // Override the program ID + UUID with what is passed in on the URL GET
    if (video_uuid != '') {
        programid = video_uuid;
        programuuid = video_uuid;
    } else if (vidego_video_uuid != '') {
        programid = vidego_video_uuid;
        programuuid = vidego_video_uuid;
    }

    var playerDiv = document.getElementById("videgoPlayer_po4k6zwc").style;
    playerDiv.display = "inline";
    var so = new SWFObject("http://vidego.multicastmedia.com/templates/V0-300-rev1.swf", "Media Suite Player", "300", "250", "9", "#FFFFFF");
    so.addVariable("ts", "1258766354");
    so.addVariable("projectid", projectid);
    so.addVariable("projectuuid", projectuuid);
    so.addVariable("programid", programid);
    so.addVariable("programuuid", programuuid);
    so.addVariable("loadingdomain", "http://vidego.multicastmedia.com");
    so.addVariable("serviceURL", "http://vidego.multicastmedia.com/services/index.php");
    so.addVariable("doResize", "false");
    so.addParam("allowFullScreen", "true");
    so.addParam("allowScriptAccess", "always");
    so.addVariable("playerType","vod");
    so.write("videgoPlayer_po4k6zwc");
}

displayPlayer_affg7w4o();

//    if (document.addEventListener) { /* for Mozilla */
//    	document.addEventListener("DOMContentLoaded", displayPlayer_affg7w4o, false);
//    } else { /* for other browsers */
//        window.onload = displayPlayer_affg7w4o;
//    }
