<% _.each( videos, function( video ) { %>
>
<% }) %>
'},settings:{width:580,height:350},defaults:{api:1,title:0,portrait:0,byline:0,color:"4B2E82"},initialize:function(a){_.bindAll(this,"single","playlist","loadVideo"),this.options=_.extend({},this.settings,this.$el.data(),a),this.options.defaults=this.defaults,this.$el.width(this.options.width),this.options.video&&(this.video=new UW.Vimeo.Video(this.options.video),this.video.on("sync",this.single)),this.options.username&&(this.videos=new UW.Vimeo.Playlist({username:this.options.username}),this.videos.on("sync",this.playlist))},single:function(){this.player=_.template(this.templates.video)(this.options),this.$el.html(this.player)},playlist:function(){_.extend(this.options,{video:this.videos.first().get("id")}),this.player=_.template(this.templates.video)(this.options),this.videoList=_.template(this.templates.playlist)({videos:this.videos.toJSON()}),this.$el.html(this.player),this.$el.append(this.videoList)},loadVideo:function(a){var b=this.$el.find("iframe"),c=_.last(b.attr("src").split("?")),d="https://player.vimeo.com/video/"+$(a.currentTarget).data().id+"/?"+c;b.attr("src",d)}}),UW.Vimeo.Video=Backbone.Model.extend({url:function(){return"https://vimeo.com/api/v2/video/"+this.video+".json"},parse:function(a){return _.first(a)},initialize:function(a){this.video=a,this.fetch()}}),UW.Vimeo.Playlist=Backbone.Collection.extend({url:function(){return"https://vimeo.com/api/v2/"+this.username+"/videos.json"},initialize:function(a){this.username=a.username,this.fetch()},parse:function(a){return _.where(a,{embed_privacy:"anywhere"})}}),UW.Radio=Backbone.View.extend({states:{checked:"checked",disabled:"disabled"},events:{"click input":"toggle"},template:'