(function(){function f(a,b){if(b)for(var c in b)if(b.hasOwnProperty(c))a[c]=b[c];return a}function l(a,b){var c=[];for(var d in a)if(a.hasOwnProperty(d))c[d]=b(a[d]);return c}function m(a,b,c){if(e.isSupported(b.version))a.innerHTML=e.getHTML(b,c);else if(b.expressInstall&&e.isSupported([6,65]))a.innerHTML=e.getHTML(f(b,{src:b.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else{if(!a.innerHTML.replace(/\s/g,"")){a.innerHTML="<h2>Flash version "+b.version+
" or greater is required</h2><h3>"+(g[0]>0?"Your version is "+g:"You have no flash plugin installed")+"</h3>"+(a.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+k+"'>here</a></p>");if(a.tagName=="A")a.onclick=function(){location.href=k}}if(b.onFail){var d=b.onFail.call(this);if(typeof d=="string")a.innerHTML=d}}if(i)window[b.id]=document.getElementById(b.id);f(this,{getRoot:function(){return a},getOptions:function(){return b},getConf:function(){return c},
getApi:function(){return a.firstChild}})}var i=document.all,k="http://www.adobe.com/go/getflashplayer",n=typeof jQuery=="function",o=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,j={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});
window.flashembed=function(a,b,c){if(typeof a=="string")a=document.getElementById(a.replace("#",""));if(a){if(typeof b=="string")b={src:b};return new m(a,f(f({},j),b),c)}};var e=f(window.flashembed,{conf:j,getVersion:function(){var a,b;try{b=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(c){try{b=(a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&a.GetVariable("$version")}catch(d){try{b=(a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&a.GetVariable("$version")}catch(h){}}}return(b=
o.exec(b))?[b[1],b[3]]:[0,0]},asString:function(a){if(a===null||a===undefined)return null;var b=typeof a;if(b=="object"&&a.push)b="array";switch(b){case "string":a=a.replace(new RegExp('(["\\\\])',"g"),"\\$1");a=a.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+a+'"';case "array":return"["+l(a,function(d){return e.asString(d)}).join(",")+"]";case "function":return'"function()"';case "object":b=[];for(var c in a)a.hasOwnProperty(c)&&b.push('"'+c+'":'+e.asString(a[c]));return"{"+b.join(",")+"}"}return String(a).replace(/\s/g,
" ").replace(/\'/g,'"')},getHTML:function(a,b){a=f({},a);var c='<object width="'+a.width+'" height="'+a.height+'" id="'+a.id+'" name="'+a.id+'"';if(a.cachebusting)a.src+=(a.src.indexOf("?")!=-1?"&":"?")+Math.random();c+=a.w3c||!i?' data="'+a.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';c+=">";if(a.w3c||i)c+='<param name="movie" value="'+a.src+'" />';a.width=a.height=a.id=a.w3c=a.src=null;a.onFail=a.version=a.expressInstall=null;for(var d in a)if(a[d])c+=
'<param name="'+d+'" value="'+a[d]+'" />';a="";if(b){for(var h in b)if(b[h]){d=b[h];a+=h+"="+(/function|object/.test(typeof d)?e.asString(d):d)+"&"}a=a.slice(0,-1);c+='<param name="flashvars" value=\''+a+"' />"}c+="</object>";return c},isSupported:function(a){return g[0]>a[0]||g[0]==a[0]&&g[1]>=a[1]}}),g=e.getVersion();if(n){jQuery.tools=jQuery.tools||{version:"1.2.5"};jQuery.tools.flashembed={conf:j};jQuery.fn.flashembed=function(a,b){return this.each(function(){$(this).data("flashembed",flashembed(this,
a,b))})}}})();


function getParameterByName(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 decodeURIComponent(results[1].replace(/\+/g, " "));
  }
}

function isInWrappedIFrame () {
  return (window.location != window.parent.location && getParameterByName('wrapped') ===  'true') ? true : false;
}

// Download the vokle embed script if it isn't already present
if(typeof(VokleEmbedScript) == "undefined"){
  var VokleHeadReference = document.getElementsByTagName("head")[0];
  var VokleEmbedScript = document.createElement("script");
  VokleEmbedScript.src = "//api.vokle.com/javascripts/embed.js";
  VokleEmbedScript.type = "text/javascript";
  VokleHeadReference.appendChild(VokleEmbedScript);
  VokleHeadReference = null;
  VokleEmbedScript = null;
}

var recording = false;

var players = {"standard":"http://api.vokle.com/swfs/EventPlayer.swf?cf78a0cfadc57c579f251610a48ba81941bbcde8","beta":"http://api.vokle.com/swfs/EventPlayerBeta.swf?cf78a0cfadc57c579f251610a48ba81941bbcde8"};

// The SWF calls this to get full object data for the event, since objects can't be stuffed into flashvars
function vokle_embed_lineup_4119_events(){
  return [];
}
 
var playerType = "standard";
var overrideType = getParameterByName('vokleForcePlayer');
if (overrideType) {
  playerType = overrideType;
}
 
var VokleEmbedSWF = players[playerType];

  var flashVars = {"domain":"vokle.com","apiUrl":"api.vokle.com","wwwUrl":"www.vokle.com","fms":"rtmp://vokn216nj.rtmphost.com/vstreamer/","id":"4119","lineup_id":"4119","events":"vokle_embed_lineup_4119_events","embed_type":"lineup","width":520,"borders":"false","boxy_url":"rtmp://boxy.vokle.com","environment":"production","remote_embed":true,"mutedByDefault":"false","scrollingTitle":"false","titleVisible":"true","boxy_rest_url":"http://boxy.vokle.com","host_twitter_username":"smileyPauline","twitter_tweet_proxy":"http://api.vokle.com/twitter_proxy/tweet","twitter_retweet_proxy":"http://api.vokle.com/twitter_proxy/retweet","twitter_profile_proxy":"http://api.vokle.com/twitter_proxy/users","twitter_user_search_proxy":"http://api.vokle.com/twitter_proxy/users.json?q=","cdn_rtmp":"rtmp://vokle30flivela.cdnetworks.net/vokle30flive,rtmp://vokle30fliveny.cdnetworks.net/vokle30flive,rtmp://fml.4793.edgecastcdn.net/204793","logoUrl":"http://wpc.4793.edgecastcdn.net/804793/production_proxy/cf78a0cfadc57c579f251610a48ba81941bbcde8/images/flash_assets/default_logo.png?1310662396","customLogoHref":"http://www.vokle.com"};

  flashembed("#vokle_embed_lineup_4119_container", {
      src: VokleEmbedSWF,
      version: [10,0],
      id: 'vokle_embed_lineup_4119',
      width:  recording && isInWrappedIFrame() ? window.document.width  : 520,
      height: recording && isInWrappedIFrame() ? window.document.height : 360,
      wmode: 'opaque',
      expressInstall: '//api.vokle.com/swfs/playerProductInstall.swf'
    }, flashVars
  );

  // TODO: Make this loading less of a kludge
  if (typeof VokleEmbedder === 'undefined') {
    window.VokleEmbeddedObjectsFVars = window.VokleEmbeddedObjectsFVars || [];
    window.VokleEmbeddedObjectsFVars.push( flashVars );
  } else {
    VokleEmbedder.embedded_objects_fvars.push(flashVars);
  }


