/* ---Description---
* The getParam function is used to collect parameters from the URL
* of the page. This is used in a case when a clip guid is specified
* in the URL, defaulting the player to that clip first.
* ---Parameters---
* name - The name of the parameter of which we want the value
*/
function getParam(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];
}

/********************
*** Global Vars  ***
*******************/
//Used to limit the searchClips results to a specific customer's clips
var PARTNER_GUID = "a9fded7d-4ccb-4238-87cb-016bf77b5914";
//Used to limit the populatePopularClips results to a specific customer's clips
var POP_PARTNER_GUID = "a9fded7d-4ccb-4238-87cb-016bf77b5914";

var pageElements = new Hash();
var api = new RedLasso.Util.JSAPI();
