defineModule( "directors", function( app, model, view ) { var selectedDirector; var Director = Class.extend({ init: function( name, bio, id, odd ) { this.name = name; this.id = id; this.bio = bio; this.selected = ko.observable(false); window.app.ko.TemplateEngine.createStringSource( "director-"+this.id, this.bio ); this.bioTemplate = "director-"+this.id; this.showProject = this.showProject.bind(this); this.closeProject = this.closeProject.bind(this); this.projectVisible = ko.observable(false); this.selectedProject = ko.observable(); this.loading = ko.observable(false); this.odd = odd; }, closeProject: function(){ this.projectVisible(false); }, showProject: function(id) { if( selectedDirector && selectedDirector != this ) selectedDirector.projectVisible(false); //this.projectVisible( !this.projectVisible() ); var self = this; app.loadResource("project",{ type:"GET", data:{ id: id }, success: function(project){ self.selectedProject(project); self.projectVisible(true); model.scrollToDirector(self.id); } }) } }); model.directors = [ new Director( "Aaron Duffy", "

Partner Creative Director, Aaron Duffy joined 1stAve in \u201907, and changed the landscape of the company. Aaron\u2019s first effort, Audi Unboxed<\/a>, garnered the company\u2019s first Cannes Lion. His work for Google Speed Tests<\/a> brought 7 more into the pride. Aaron\u2019s experimental and collaborative efforts are always geared towards making a human connection, regardless of technique, as in his Super Bowl spot, Google Parisian Love<\/a>.<\/p>", "aaron-duffy", false), new Director( "Andrew Sloat", "

Andrew\u2019s love of the \u201ctheatre of typography\u201d is reflected in his installation First Amendment<\/a>, when his work took over Times Square. Team Detroit\/JWT asked Andrew to join them as Creative Director to explore the same for Ford Fiesta<\/a>. When not teaching at RISD, he shares his talent with brands like Domtar<\/a> and The New York Times<\/a>.<\/p>", "andrew-sloat", true), new Director( "Antonio Balseiro", "

We can see Antonio\u2019s warm and crafty charm in everything he does - especially in this spot for PANERA BREAD<\/a>. Antonio\u2019s Nike<\/a> spot was featured in the S&S Cannes New Director\u2019s Showcase and represents Antonio\u2019s playful sense of humor. Combining non-traditional styles of animation has birthed Tommy and Jamie<\/a> for Autism speaks. His powerful and beautiful short film PAYADA<\/a> showcases his commitment to socially conscious work. With fellow 1stAve director Tomi Dieguez, Antonio is co-owner of 1stAve partner, Buenos Aires based TRONCO.<\/p>", "antonio-balseiro", false), new Director( "Arvind Palep", "

Sixes Last<\/a> and the 1stAveMachine<\/a> promo film from founder Arvind Palep caught the industry\u2019s attention for its fresh look. Arvind combines cinema v\u00e9rit\u00e9 with exquisitely designed and animated machines, both robotic and biological, like Ted<\/a>. The films garnered the attention of 180 Amsterdam, who commissioned his first commercial, Adidas Modular Man<\/a>. Arvind is currently working on a feature film with Universal Studios... stay tuned.<\/p>", "arvind-palep", true), new Director( "Asif Mian", "

From commercial work, to music videos, to sculptures, Asif\u2019s creativity is bold and unforgettable. Check out what happened when Asif visited the CADILLAC<\/a> testing facility in Detroit, or see what he did to this ordinary living room for SONY<\/a>. I Wasn't Made For Fighting<\/a> and ReRun<\/a> are poignant for their sculptural use of design and the human form. Asif also has an uncanny ability to engage viewers with unconventional storytelling and clever slight of hand, creating physical magic for Ford CMax<\/a>and Google Allo Allo<\/a>.<\/p>", "asif-mian", false), new Director( "Baz", "

Baz\u2019s work can be described as colorful and almost glitch-like aesthetic that embodies a generation raised on internet culture. In his video for Isaiah Toothtaker & Rapewolf<\/a>, he hilariously channels the inner soul of disaffected youth. For slightly lighter fare, check out his video for Klo Pelgag<\/a>. He often blends fact and fiction, by casting non-actors and pushing narrative boundaries. This ultimately results in work distinctively marked: Baz.<\/p>", "baz", true), new Director( "Ben Steiger Levine", "

Ben\u2019s films often border on bizarre and beautiful, through clever re-imagination of the human form. Ben\u2019s work for Sprite was inspired by his music vid, So Called<\/a>. Ben\u2019s work for Beast<\/a> was featured at the S&S New Director\u2019s Showcase, ADC Young Guns, and earned him a Grammy nomination. Check out his newest work for Fuze Tea<\/a> or his more recent Roman R\u00fctten collaborations for DIRECT LINE<\/a>.<\/p>", "ben-steiger-levine", false), new Director( "Bob Partington", "

Bob\u2019s unconventional approach to invention, fine art and science, has always stemmed from his love for pushing the boundaries. Make sure to check him out in his show for H2 called THINGAMABOB<\/a>. His philosophy is carried out in his inventions for projects such as Google Speed Tests<\/a> and Google Maps<\/a>. You can see all of Bob\u2019s inventions here<\/a>.<\/p>", "bob-partington", true), new Director( "Karim Zariffa", "

Karim brings a background of design with a love of craft in these engaging work for MOO<\/a> and Kleenex<\/a> (co-directed with Bob Partington). Working with multiple formats and technologies, his work showcases an understanding of in-camera magic like in AIR CANADA<\/a>. His work has been the recipient of the Gemini Award in 2011 and the ADC Young Guns in 2010. Karim also collaborates each year with famed graphic designer, Stefan Sagmeister. Get a glimpse of the collaboration in the video, Misteur Valaire<\/a>.<\/p>", "karim-zariffa", false), new Director( "Magda Sayeg", "

Magda Sayeg is the mother of the global guerrilla street art movement known as \u201cYarn Bombing\u201d. Her collaboration with A.Balseiro for Sudafed<\/a>. The result prompted the following comment: \u201c\u2026asked to knit a representation of a carved open head. It\u2019s like a scene in CSI directed by Kirstie Allsopp.\u201d In more Cozy<\/a> work, Magda knits a Christmas sweater for a Prius. Want to know a bit more? Knitta Please<\/a>.<\/p>", "magda-sayeg", true), new Director( "Martin Allais", "

Martin Allais thrives on experimentation. His work pushes the boundaries of genre with bold, imaginative visuals and singular character design. With the Martin Agency, he brought this intersection to life in Oreo Wonderfilled<\/a>. In Thistle<\/a> Martin demonstrates his mastery of stop-motion and visual storytelling.<\/p>", "martin-allais", false), new Director( "Nico Casavecchia", "

Nico captured a Gold Lion (and set a World Record in the process) with his atomic film for IBM<\/a>. And have you ever see a film so lovely it inspires you to make an homage? Nico did: Buildings and Vampires<\/a> is a nod to Where the Wild Things Are. Sweet and quite a contrast from his uber edgy Slamdance<\/a> or his subversive Salesman<\/a>.<\/p>", "nico-casavecchia", true), new Director( "Roman Rütten", "

Roman\u2019s Vision Express<\/a> showcases his unique approach to mixed media projects. The spot\u2019s Behind the scenes<\/a> illuminates the complex layering of live action unique to Roman\u2019s work. More mixed-media work includes, Hyundai's<\/a> Spirit of Innovation and DIRECT LINE<\/a>, a collaboration with Ben Steiger Levine.<\/p>", "roman-rutten", false), new Director( "Tim Brown", "

Coming from a music video background, Tim\u2019s first commercial endeavor, Google Extensions<\/a>, won him an AICP Next award. HudsonRouge teamed up with him on a past and present spot for Lincoln Motor Company<\/a>, which showcases Tim\u2019s passion for design. His keen eye for beautiful documentary style work shines through in his work for ETSY<\/a> and besides brands, Tim lends his talents to musicians, like in his award-winning film for Big Pink<\/a> .<\/p>", "tim-brown", true), new Director( "Tomi Dieguez", "

Tomi teamed up with Droga5 to launch the MOTO E<\/a>. \u00a0 Diesel\u2019s Assland<\/a> brought Tomi to Cannes for the Saatchi & Saatchi New Director\u2019s Showcase. Tomi's experience extends into live-action and mixed media comedy projects, like for COKE<\/a> and Sprite<\/a>. Tomi also directed the very popular web series Gluko and Lennon<\/a> and provided his uncanny character design ability to ABOVE THE INFLUENCE<\/a>. Tomi is co-owner of 1stAve partner, the Buenos Aires based TRONCO.<\/p>", "tomi-dieguez", false) ]; function getDirectorById( id ) { return ko.utils.arrayFirst(model.directors, function(item) { return item.id === id; }); } model.initialize = function(deeplink) { // If you need to preload anything additional do it here... // ...otherwise just set the percent loaded to 1 (100%) this.setPercentLoaded(1); }; model.scrollToDirector = function( uid ) { var $t = $( "#"+ uid ), top = $t.offset().top, wh = $(window).height(), th = $t.height(); var scrollTo = top - ( (wh - th) / 2 ); $('body').animate({scrollTop: scrollTo},'fast'); } model.onDeeplink = function(deeplink) { model.scrollToDirector(deeplink[0]); } view.rendered.add( function(){ // Do any transitioning in you want to do... }); view.ended.add( function() { // Do any transitioning out you want to do... then call view.complete(); }); });