
var sxtv = {
  addEvent: function(target, type, fn){
    if (target.addEventListener) target.addEventListener(type, fn, false);
    else target.attachEvent('on' + type, fn);
  },
  embed: function(){
    var doc = window.document;
    var i=0, target, scripts = doc.getElementsByTagName('script');
    do {
     target = scripts[i++];
    }while(target && target.src != "http://stupeflix.tv/embed/oTLa8BjbZh/?w=640&h=360")
    if(target){
      var container = target.previousSibling;
      while(container && container.className != "sxtv_container"){
        container = container.previousSibling;
      }
      container = container ? container : target.parentNode.insertBefore(doc.createElement('div'), target);
      container.innerHTML = ['<embed width="640" height="360"',
      'flashvars="autostart=false&amp;type=video&amp;file=http://stupeflix.tv/c/oTLa8BjbZh/st.mp4&amp;image=http://stupeflix.tv/c/oTLa8BjbZh/thumb/&amp;controlbar=none"',
      'wmode="transparent" allowscriptaccess="always" allowfullscreen="true" quality="high" bgcolor="#FFFFFF"',
      'src="http://stupeflix.tv/m/platform/jwplayer/jwplayer.swf?t='+(new Date().getTime())+'" type="application/x-shockwave-flash"/>'].join('');
    }
  }
}
sxtv.embed();
