(function(a){var c=function(e,d,c){var b=new SWFObject("/swf/player.swf","mpl","417","294","9");b.addParam("allowfullscreen","true");b.addParam("allowscriptaccess","always");b.addParam("wmode","opaque");b.addVariable("file",e);b.addVariable("image",d);b.addVariable("bufferlength","5");b.addVariable("autostart","true");b.addVariable("screencolor", "000000");b.write("player");c&&a(document).scrollTo(a("#player"),{duration:500})},b=function(f,e,c,d){var b=a(".video_player .video_info");a(".title",b).html(f);a(".length",b).html(d);a(".source",b).html(e);a(".description",b).html(c)};a(function(){a("#player").length&&a(".video_list .video_preview").length&&(function(){var g=a("#player"),d=a(".video_list .video_preview"),f=a(".video_player .video_info");if(f.length&&g.length&&d.length){if(d.filter(".selected").length<1)a(d[0]).addClass("selected");else d.filter(".selected").length>1&&d.filter(".selected").not(":eq(0)").removeClass("selected");var e=null;a(d).each(function(){(function(f){var n=a(".title",f).text(),k=a(".length",f).html(),l=a(".source",f).html(),j=a(".description",f).html(),h=a("a[rel*=video]",f);if(h.length){var o=a(h[0]),p=o.attr("rel")||"",g=p.split("|"),i=g[1]?g[1]:"",m=g[2]?g[2]:"";if(i!=""){a(h).click(function(){if(!a(f).is(".selected")){d.removeClass("selected");b(n,l,j,k);c(i,m,true);e=f;a(f).addClass("selected")}this.blur();return false});if(a(f).is(".selected")&&e==null){b(n,l,j,k);c(i,m);e=f}}}})(this)})}})()})})(jQuery);
