if(typeof $ == "undefined") {
   var $ = function(A) {
      return document.getElementById(A)}
   }
if(typeof seesmic == "undefined") {
   var seesmic = {
      }
   }
var swfUrl = "http://seesmic.com/embeds/wrapper.swf";
seesmic.player = new function() {
   var A = this;
   this.recorder;
   this.ready = false;
   this.allowAnonymous = 1;
   this.getRecorder = function() {
      return document.getElementById("seesmicrecorder")};
   this.domLoaded = function() {
      return !!document.getElementById("seesmicrecorder")};
   this.setError = function(B) {
      this.getRecorder().setError(B)};
   this.playerLoaded = function() {
      this.ready = true;
      this.recorder = document.getElementById("seesmicrecorder")};
   this.createSWF = function(L, C, E, G, D, N, I, O) {
      var K = "";
      var M = 300;
      var J = 270;
	  M = 260;
	  J = 235;
      var B = "version=" + L + "&urlName=" + G + "&closable=" + N + "&startVideo=" + I + "&allowAnonymous=" + this.allowAnonymous + "&";
      if(D) {
         B += "&video=" + D}
      var F = {
         quality : "high", bgcolor : "#000000", allowFullScreen : "true", allowScriptAccess : "always", flashVars : B};
      if(document.all) {
         K = '<object id="' + C + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + M + '" height="' + J + '" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="' + swfUrl + '" />';
         for(var H in F) {
            K += ' <param name="' + H + '" value="' + F[H] + '" />'}
         K += "</object>"}
      else {
         K = '<embed id="' + C + '" src="' + swfUrl + '" width="' + M + '" height="' + J + '" play="true" loop="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"';
         for(H in F) {
            K += " " + H + '="' + F[H] + '"'}
         K += "></embed>"}
      E.innerHTML = K};
   this.createPlayer = function(B, E, D, C) {
      seesmic.player.createSWF("player", "seesmicplayer" + E, B, "", E, D, C)};
   this.createRecorder = function(B, D, C) {
      seesmic.player.createSWF("recorder", "seesmicrecorder", B, D, C, "", "")}
   };
function seePlayVideo(A, C) {
   var B = document.getElementById(A + "_content");
   var E = document.getElementById(A + "_preview");
   var F = document.getElementById(A + "_hide");
   var D = document.getElementById(A + "_show");
   if(C) {
      seesmic.player.createPlayer(B, A, true, true);
      E.style.display = "none";
      F.style.display = "block";
      D.style.display = "none"}
   else {
      B.innerHTML = "";
      E.style.display = "block";
      F.style.display = "none";
      D.style.display = "block"}
   }
function setCookieStrig(A) {
   document.cookie = A}
function set_cookie(B, G, I, F, H, J, E, A) {
   var D = B + "=" + escape(G);
   if(I) {
      var C = new Date(I, F, H);
      D += "; expires=" + C.toGMTString()}
   if(J) {
      D += "; path=" + escape(J)}
   if(E) {
      D += "; domain=" + escape(E)}
   if(A) {
      D += "; secure"}
   document.cookie = D}
function get_cookie(B) {
   var A = document.cookie.match(B + "=(.*?)(;|$.)");
   if(A) {
      return(unescape(A[1]))}
   else {
      return null}
   }
function delete_cookie(B) {
   var A = new Date();
   A.setTime(A.getTime() - 1);
   document.cookie = B += "=; expires=" + A.toGMTString()};
