define(["ember","text!./image-tmpl.hbs","./audio","./graph"],function(a,b,c,d){return a.View.extend({classNames:["atlasbottom"],template:a.Handlebars.compile(b),captionHeight:function(){if(!this.get("model.data.Summary"))return 0;var a=parseInt(.15*this.get("model.style.height"));return a>=50?50:25>=a?25:a}.property("model.style.height"),captionStyle:function(){return"height:%@px;".fmt(this.get("captionHeight"))}.property("captionHeight"),mainHeight:function(){return this.get("model.style.height")-this.get("captionHeight")}.property("model.style.height"),mainStyle:function(){return"height:%@px;".fmt(this.get("mainHeight"))}.property("mainHeight"),url:function(){return this.get("model.data.resource.ImageUrl")}.property("model.data"),initialize:function(){this.get("model.data.AideoUrl")&&this.set("audio",c.create({src:this.get("model.data.AideoUrl")})),this.get("url")&&this.set("image",d.create({src:this.get("url")}))}.on("init")})});