      /** First write the HTML fallback to the page, so it'll be there even for devices that have poor JS support. **/
      document.write("<div id='a5360136-d3bf-11df-a698-f457d72e6262_div'><a href=\"http://www.youtube.com/watch?v=nu1guLFN72g\" title=\"LongTailVideo Quick Wizard\" ></a></div>");

      /** Define the botrObject helper functions and initialization class. **/
      if (typeof(wizardObject) == 'undefined') {
        /** Main botrObject object. **/
        var wizardObject = {};
        /** List of all players. **/
        wizardObject.players = [];

        /** See if the players can be injected when the DOM is ready. **/
        wizardObject.isDomReady = function() {
          var d = document;
          if (d && d.getElementsByTagName && d.getElementById && d.body) {
            clearInterval(wizardObject.domTimer);
            for(var i=0; i<wizardObject.players.length; i++) {
              wizardObject.writePlayer(i);
            }
            wizardObject.domDone = true;
          }
        };

        /** Inject the actual player. **/
        wizardObject.writePlayer = function(idx) {
          if (navigator.userAgent.match(/iP(od|hone|ad)/i)) {
            var source = decodeURIComponent(wizardObject.players[idx].flashvars["file"]);
            var youtubeRegex = new RegExp();
            youtubeRegex.compile(/youtube.com\/watch\?v=([0-9a-zA-Z_-]*)/i);
            if (youtubeRegex.test(source)) {
              var results = youtubeRegex.exec(source);
              var html = '<object width="' + wizardObject.players[idx].width + '" height="' + wizardObject.players[idx].height + '"><param name="movie" value="http://www.youtube.com/v/' + results[1] + '&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/' + results[1] + '&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + wizardObject.players[idx].width + '" height="' + wizardObject.players[idx].height + '"></embed></object>';
              document.getElementById(wizardObject.players[idx].container).innerHTML = html;
            } else {
              var div1 = document.getElementById(wizardObject.players[idx].container);
              var vid = div1.ownerDocument.createElement("video");
              vid.src = source;
              vid.controls = "controls";
              vid.width = wizardObject.players[idx].width;
              vid.height = wizardObject.players[idx].height;
              div1.parentNode.replaceChild(vid, div1);
            }
          } else {
            document.getElementById(wizardObject.players[idx].container).innerHTML = wizardObject.players[idx].getHtml() + '';
          }
        };

        /** Check if the right Flash version is available. **/
        wizardObject.hasFlash = function () {
          var version = '0,0,0,0';
          try {
            try {
              var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');
              try {
                axo.AllowScriptAccess = 'always';
              } catch (e) {
                version = '6,0,0';
              }
            } catch (e) {
            }
            version = new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$' + 'version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
          } catch (e) {
            try {
              if (navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin) {
                version = (navigator.plugins['Shockwave Flash 2.0'] ||
                navigator.plugins['Shockwave Flash']).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1];
              }
            } catch (e) {
            }
          }
          var major = parseInt(version.split(',')[0], 10);
          var minor = parseInt(version.split(',')[2], 10);
          if (major > 9 || (major == 9 && minor > 97)) {
            return true;
          } else {
            return false;
          }
        };

        /** Define the botrObject player object and queue it for insertion on domReady. **/
        wizardObject.swf = function (src,id,width,height,bgcolor) {
          if (!document.getElementById) { return; }
          this.source = src;
          this.id = id+'_swf';
          this.container = id+'_div';
          this.width = width;
          this.height = height;
          this.flashvars = {id:this.id};
          this.params = {
            'bgcolor':bgcolor,
            'allowfullscreen':'true',
            'allowscriptaccess':'always',
            'wmode':'opaque'
          };
          wizardObject.players.push(this);
          if (wizardObject.domDone && wizardObject.hasFlash()) {
            var len = wizardObject.players.length-1;
            setTimeout(function(){wizardObject.writePlayer(len)},50);
          }
        };

        wizardObject.swf.prototype = {
          /** Create the HTML string needed for the flash embed. **/
          getHtml:function() {
            var html = "";
            var fv = this.getVariables();
            if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) {
              html = '<embed type="application/x-shockwave-flash" src="'+ this.source +'" width="'+ this.width +'" height="'+ this.height +'"';
              html += ' id="'+ this.id +'" name="'+ this.id +'" ';
              for(var key in this.params) {
                html += [key] +'="'+ this.params[key] +'" ';
              }
              html += 'flashvars="'+ fv +'" />';
            } else {
              html = '<object id="'+ this.id +'" name="'+ this.id +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.width +'" height="'+ this.height +'">';
              html += '<param name="movie" value="'+ this.source +'" />';
              for(var key in this.params) {
                html += '<param name="'+ key +'" value="'+ this.params[key] +'" />';
              }
              html += '<param name="flashvars" value="'+ fv +'" />';
              html += "</object>";
            }
            return html;
          },
          /** Add a flashvar to the list. **/
          addVariable: function(name,value) {
            this.flashvars[name] = encodeURIComponent(decodeURIComponent(value));
          },
          /** Return a concatenated string of flashvars. **/
          getVariables: function () {
            var pairs = new Array();
            for(var key in this.flashvars) {
              pairs[pairs.length] = key+"="+this.flashvars[key];
            }
            return pairs.join('&');
          }
        };
        if(wizardObject.hasFlash() || navigator.userAgent.match(/iP(od|hone|ad)/i)) { wizardObject.domTimer = setInterval(wizardObject.isDomReady,50); }
      }

      /** Now the class has been set up, initialize the player and inject all flashvars. **/
      var wizard_player = new wizardObject.swf("http://w.longtailvideo.com/0/2/49/a5360136-d3bf-11df-a698-f457d72e6262.swf","a5360136-d3bf-11df-a698-f457d72e6262","480","320","#ffffff");
      wizard_player.addVariable("autostart","true");
      wizard_player.addVariable("image","http://i.ytimg.com/vi/nu1guLFN72g/0.jpg");
      wizard_player.addVariable("height","320");
      wizard_player.addVariable("width","480");
      wizard_player.addVariable("controlbar","over");
      wizard_player.addVariable("file","http://www.youtube.com/watch?v=nu1guLFN72g");
      wizard_player.addVariable("skin","http://w.longtailvideo.com/skins/playcasso.zip");
