function tbs_click(){u=location.href;t=$('h1').text();window.open('http://twitter.com/home?status='+encodeURIComponent(t)+' jetzt auf @videoload online ansehen: '+encodeURIComponent(u)+'&title='+encodeURIComponent(t),'Twitter');return false;}
function fb_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}
function bookmarkgo_click(){u=location.href;t=document.title;window.open('http://www.google.com/bookmarks/mark?op=add&amp;bkmk='+encodeURIComponent(u));return false;}
function bookmarkmw_click(){u=location.href;t=document.title;window.open('http://www.mister-wong.de/index.php?action=addurl&amp;bm_url='+encodeURIComponent(u));return false;}
function bookmarkya_click(){u=location.href;t=document.title;window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(t)+'&d=&amp;tag=&amp;u='+encodeURIComponent(u));return false;}
function bookmarkde_click(){u=location.href;t=document.title;window.open('http://del.icio.us/post?url='+encodeURIComponent(u));return false;}
function bookmarkov_click(){u=location.href;t=document.title;window.open('http://www.oneview.de/quickadd/neu/addBookmark.jsf?URL='+encodeURIComponent(u));return false;}
function bookmarkms_click(){u=location.href;t=document.title;window.open('http://www.myspace.com/index.cfm?fuseaction=postto&amp;u='+encodeURIComponent(u));return false;}
function bookmarkla_click(){u=location.href;t=document.title;window.open('http://linkarena.com/bookmarks/addlink/?url='+encodeURIComponent(u));return false;}
function bookmarklc_click(){u=location.href;t=document.title;window.open('http://profile.live.com/badge/?url='+encodeURIComponent(u));return false;}
  $(document).ready(function(){
   // BEGIN hide asas-Link
   $('#b0 a').each
   (
     function ()
     {
       if ($(this).html() == "asas")
       {
         $(this).css("display","none");
       }
     }

    );
    // END hide asas-Link
    var myString = location.href;
    var atpos = location.href.indexOf("#");
      if (atpos > -1) {
      myString = location.href.substring(0, atpos); }
    $('#filmdetail .sboxn').append('<div style="position:relative;top:19px;left:-8px;background:#f2f2f2;height:30px;width:420px;padding-left:8px;vertical-align:middle"><span style="position:relative;top:-1px;padding-right:5px" title="Auf Facebook teilen" alt="Auf Facebook teilen"><a name="fb_share">Teilen</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></span><a title="Tweet senden" href="#" onclick="tbs_click();return false;" class="bookmark1" target="_blank"><img class="" width="20" height="20" border="0" src="c/22/90/10/70/22901070,tid=t" alt="Tweet senden"/>Tweet senden</a><span class="bookmabs"><a title="Google Bookmark" href="#" onclick="bookmarkgo_click();return false;" class="bookmark2" target="_blank"><img src="c/22/86/72/64/22867264,tid=t" alt="Google" titel="Google" width="16" height="16" /></a><a title="Mr. Wong Bookmark" href="#" onclick="bookmarkmw_click();return false;" class="bookmark2" target="_blank"><img src="c/22/86/72/66/22867266,tid=t" alt="Mr. Wong" titel="Mr. Wong" width="16" height="16" /></a><a title="Yahoo Bookmark" href="#" onclick="bookmarkya_click();return false;" class="bookmark2" target="_blank"><img src="c/22/86/72/62/22867262,tid=t" alt="Yahoo" titel="Yahoo" width="16" height="16" /></a><a title="DelIcioUs Bookmark" href="#" onclick="bookmarkde_click();return false;" class="bookmark2" target="_blank"><img src="c/22/86/72/68/22867268,tid=t" alt="DelIcioUs" titel="DelIcioUs" width="16" height="16" /></a><a title="oneview Bookmark" href="#" onclick="bookmarkov_click();return false;" class="bookmark2" target="_blank"><img src="c/22/86/73/12/22867312,tid=t" alt="oneview" titel="oneview" width="16" height="16" /></a><a title="MySpace Bookmark" href="#" onclick="bookmarkms_click();return false;" class="bookmark2" target="_blank"><img src="c/22/86/73/14/22867314,tid=t" alt="MySpace" titel="MySpace" width="16" height="16" /></a><a title="LinkArena Bookmark" href="#" onclick="bookmarkla_click();return false;" class="bookmark2" target="_blank"><img src="c/22/86/73/08/22867308,tid=t" alt="LinkArena" titel="LinkArena" width="16" height="16" /></a><a title="LinkArena Bookmark" href="#" onclick="bookmarklc_click();return false;" class="bookmark2" target="_blank"><img src="c/24/11/48/94/24114894,tid=t" alt="LiveConnect" titel="LiveConnect" width="16" height="16" /></a></span></div>');
    $("#filmdetail .sboxfr img[alt='High Definition']").replaceWith('<a href="http://www.videoload.de/c/65/94/03/6594038"><img height="40" width="97" class="hin-bt" alt="High Definition" src="/c/93/02/86/9302860,tid=t" title="High Definition" /></a>');
    $("#filmdetail .sboxfr img[alt='Altersverifikation']").replaceWith('<a href="http://www.videoload.de/c/15/55/82/12/15558212"><img height="40" width="97" class="hin-bt" alt="Altersverifikation" src="/c/26/97/41/2697414,tid=t" title="Altersverifikation" /></a>');
    $("#filmdetail .sboxfr img[alt='im Originalton mit Untertitel']").replaceWith('<a href="http://www.videoload.de/c/23/01/66/60/23016660"><img height="40" width="97" class="hin-bt" alt="im Originalton mit Untertitel" src="/c/17/67/13/54/17671354,tid=t" title="im Originalton mit Untertitel" /></a>');
    $("#filmdetail .sboxfr img[alt='nur in englischer Sprache']").replaceWith('<a href="http://www.videoload.de/c/23/01/66/60/23016660"><img height="40" width="97" class="hin-bt" alt="nur in englischer Sprache" src="/c/93/03/80/9303806,tid=t" title="nur in englischer Sprache" /></a>');
    $("meta[property='og:url']").attr('content', myString);
    var filmtitel = $("div[class='sboxl sbml sbhd'] h1 a.detil").text();   
    var serientitel = $("div[class='sboxl sbml'] h2 a.detil").text();
    var episodentitel = $("div[class='sboxl sbml'] h1 a.detil").text();
    var isMovie = true;
    if (episodentitel == "")
 {
 isMovie = false;
 }
    var serienepisodentitel = episodentitel + ' - ' + serientitel;
    $("meta[property='og:type']").attr('content','movie');
    $("meta[property='og:title']").attr('content',filmtitel);
 if (isMovie == true)
 {
     $("meta[property='og:title']").attr('content',serienepisodentitel);
 }
  $('.sboxl.sbml.sbke').next().addClass('sbxx');
  /* $('.sboxn h3').wrapAll('<span style="text-align:left" />'); */
   $("#filmdetail .ibb a[href*='http://hilfe.videoload.de']").addClass('bthelp');
   $("#filmdetail .ibb").last().addClass("ibbbg");
   $("#filmdetail .sbbm").last().addClass("sbbmbg");
   $("#filmdetail .ibt").last().addClass("ibtbg");
  });


