
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_ab70rwgh() {

    var video_uuid =  get_url_parse('video_uuid');
    var vidego_video_uuid =  get_url_parse('vidego_video_uuid');

    var projectid = '43306';
    var projectuuid = 'ab70rwgh';
    
    //var programid = '';
    
    var programid = '';
    var programuuid = '';

    // 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_ab70rwgh").style;
    playerDiv.display = "inline";
    var so = new SWFObject("http://vidego.multicastmedia.com/templates/V0-200.swf", "Media Suite Player", "512", "419", "9", "#FFFFFF");
    so.addVariable("ts", "1258777862");
    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_ab70rwgh");
}

displayPlayer_ab70rwgh();

//    if (document.addEventListener) { /* for Mozilla */
//    	document.addEventListener("DOMContentLoaded", displayPlayer_ab70rwgh, false);
//    } else { /* for other browsers */
//        window.onload = displayPlayer_ab70rwgh;
//    }
