$(document).ready(function() {
  $('#slide2 #button_on').click(function(e) {
    e.preventDefault();
    $('#slide2').append('<div id="bounce_movie"><div id="close"></div><object width="480" height="390"><param name="movie" value="http://www.xtranormal.com/site_media/players/jwplayer.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="flashvars"value="height=390&width=480&file=http://newvideos.xtranormal.com/web_final_lo/be89faba-030e-11e0-ae30-003048d69c21_5.mp4&image=http://newvideos.xtranormal.com/web_final_lo/be89faba-030e-11e0-ae30-003048d69c21_5.jpg&link=http://www.xtranormal.com/watch/7991807&searchbar=false&autostart=false"/><embed src="http://www.xtranormal.com/site_media/players/jwplayer.swf" width="480" height="390" allowscriptaccess="always" allowfullscreen="true" flashvars="height=390&width=480&file=http://newvideos.xtranormal.com/web_final_lo/be89faba-030e-11e0-ae30-003048d69c21_5.mp4&image=http://newvideos.xtranormal.com/web_final_lo/be89faba-030e-11e0-ae30-003048d69c21_5.jpg&link=http://www.xtranormal.com/watch/7991807&searchbar=false&autostart=false"></embed></object></div>'),
    $('#slide2 #close').click(function() {
      $('#bounce_movie').remove();
    });
  });
  $('#slide2 .card').click(function(e) {
    e.preventDefault();
    $('#slide2').append('<div id="popup_card"><div id="close"></div><h1>Power Up!</h1><p id="date">July 2000</p><p class="content">With the Y2K scare behind us, Bounce boots up and begins a decade long era of graphic design magic and web wizardry. Juggling multiple deadlines, walking a rope of tight budgets, making client profits appear, and bad clients disappear, the show goes on.</p></div>'),
    $('#slide2 #popup_card #close').click(function() {
      $('#popup_card').remove();
    });
  });
  $('#slide3 a').click(function(e) {
    e.preventDefault();
    $('#slide3').append('<div id="popup_card"><div id="close"></div><h1>May The Foos Be With You!</h1><p id="date">April 2001 - April 2006</p><p class="content">With local charities and fun in mind, bounce starts up an annual fundraising foosball tournament, aimed at the graphic design industry. Challenging all foos-fanatics as well as those without any foos experience, two-person teams played in an afternoon round robin to see who\'d be the prize-winning foos champs for the year. With a spin of 5 years and some lofty goals, bounce served up fun for all while raising money for special causes.</p></div>'),
    $('#slide3 #popup_card #close').click(function() {
      $('#popup_card').remove();
    });
  });
  $('#slide4 a').click(function(e) {
    e.preventDefault();
    $('#slide4').append('<div id="popup_card"><div id="close"></div><h1>Fore Score and Seven<br />Beers Ago</h1><p id="date">June 2004</p><p class="content">Celebrating its fourth anniversary, bounce puts together a golf tournament for their valued clients and suppliers. To ensure that the day was as memorable as possible, the tournament was planned and took place on what was to become the coldest and likely the wettest day on record for June &ndash; ever. Even after calling off the tournament after 9 cold, wet and windy holes, fun was still had by all as everyone huddled around their drinks and steaks in the clubhouse.</p></div>'),
    $('#slide4 #popup_card #close').click(function() {
      $('#popup_card').remove();
    });
  });
  $('#slide5 a').click(function(e) {
    e.preventDefault();
    $('#slide5').append('<div id="popup_card"><div id="close"></div><h1>Who Let the Dogs Out?</h1><p id="date">Summer 2003</p><p class="content">In the dog-gone days of summer, the Winnipeg Art Gallery (WAG) presents the photographic exhibition "A Thousand Hounds". To draw in thousands of people who have never visited the gallery before, Bounce Design creates a symbiotic exhibition within the main exhibition called "Pupstars": The general public are invited to submit photos or artwork of their dogs that will be displayed in the gallery. Pupstars is a runaway success, generating thousands of photo entries and tens of thousands of new visitors to the Winnipeg Art Gallery.</p><p class="content">The juiciest treat is that the WAG allows Bounce to use the exterior facade of the building as the city\'s largest billboard. Totally pawsome.</p></div>'),
    $('#slide5 #popup_card #close').click(function() {
      $('#popup_card').remove();
    });
  });
  $('#slide6 a').click(function(e) {
    e.preventDefault();
    $('#slide6').append('<div id="popup_card"><div id="close"></div><h1>Bounce Fetches Stick</h1><p id="date">February 2005</p><p class="content">Stick Strategy is a Winnipeg-based communications, marketing and project management company that specializes in financial reporting and client disclosure. Wow, that doesn\'t sound exciting! But it is! And they are very good at it! Big stick Dean Smallwood enlists Bounce to create Stick Strategy\'s award-winning identity package. After collaborating on a number of projects, everyone decides to take this bromance to the next level. Stick Strategy merges with Bounce Design, and hits a home run.</p></div>'),
    $('#slide6 #popup_card #close').click(function() {
      $('#popup_card').remove();
    });
  });
  $('#slide7 a').click(function(e) {
    e.preventDefault();
    $('#slide7').append('<div id="popup_card"><div id="close"></div><h1>Red Bull Gives Bounce Wings!</h1><p id="date">August 2006</p><p class="content">The challenge: design a person-powered craft that when pushed off a platform nearly 8 meters above False Creek in Vancouver, soars to a record-breaking distance.</p><p class="content">The solution: design and build a giant piloted hairdryer and push it in! Although we didn\'t win any prizes for flying a great distance in our customized Blowtronic 2000, we did come in top of the group for creativity in design and use of blonde wigs and blow-up dolls.</p></div>'),
    $('#slide7 #popup_card #close').click(function() {
      $('#popup_card').remove();
    });
  });
  $('#slide8 #rat_race').click(function(e) {
    e.preventDefault();
    $('#slide8').append('<div id="rat_race_big"><div id="close"></div><img src="images/rat_race_big.jpg" alt="" /></div>'),
    $('#rat_race_big #close').click(function() {
      $('#rat_race_big').remove();
    });
  });
  $('#slide8 .card').click(function(e) {
    e.preventDefault();
    $('#slide8').append('<div id="popup_card"><div id="close"></div><h1>Have a Ball, Not a Cubical</h1><p id="date">March 2006</p><p class="content">All work and no play makes Evan a dull boy. No TV and no beer make Dean go crazy. Believe it or not, creating a lively, innovative, and fun place to work, is well, a lot of work! Chosen by the Winnipeg Free Press as one of the city\'s most innovative and inspiring workplaces is a great honour, and we would like to thank the Academy...</p></div>'),
    $('#slide8 #popup_card #close').click(function() {
      $('#popup_card').remove();
    });
  });
  $('#slide9 a').click(function(e) {
    e.preventDefault();
    $('#slide9').append('<div id="popup_card"><div id="close"></div><h1>Paint the Town Orange</h1><p id="date">May 2007</p><p class="content">Crossing the mighty Red River, the intrepid Bounce crew<br />exchanges warehouse-like digs for their own building on<br />majestic Provencher Boulevard. Ample free parking,<br />no landlord, no rent increases: c\'est si bon!</p></div>'),
    $('#slide9 #popup_card #close').click(function() {
      $('#popup_card').remove();
    });
  });
  $('#slide10 a').click(function(e) {
    e.preventDefault();
    $('#slide10').append('<div id="popup_card"><div id="close"></div><h1>Keeping Our Eyes on the Ball</h1><p id="date">January 2009</p><p class="content">Bounce + soccer = proud sponsor of Bonivital Soccer Club. However you score it, the partnership is win-win for the advancement of soccer in Winnipeg.</p></div>'),
    $('#slide10 #popup_card #close').click(function() {
      $('#popup_card').remove();
    });
  });
  $('#slide11 a').click(function(e) {
    e.preventDefault();
    $('#slide11').append('<div id="popup_card"><div id="close"></div><h1>How to Slay a Dragon</h1><p id="date">February 2010</p><p class="content">Outlining the company\'s remarkable growth over the past seven years, including nearly tripling revenues during last year\'s recession, and blue-chip clients that include Sony, Sprint and US Airways, TrackItBack had no trouble getting the Dragons\' attention. After squaring off with each of the five prospective investors, Jason Wagner accepted Brett Wilson\'s offer of $200,000 in exchange for 25 per cent ownership of the company &ndash; a small price to pay for the growth the company expects as a result of its appearance on the show and strategic alliance with Wilson. All we have to say is: You\'re welcome.</p></div>'),
    $('#slide11 #popup_card #close').click(function() {
      $('#popup_card').remove();
    });
  });
  $('#slide12 a').click(function(e) {
    e.preventDefault();
    $('#slide12').append('<div id="popup_card"><div id="close"></div><h1>The Power of Ten</h1><p id="date">July 2010</p><p class="content">If time flies when you\'re having fun, then the last ten years have gone by at warp speed! We are honoured and humbled to have worked with and continue to work with so many wonderful people. We welcome your congratulations, best wishes, and gift cards.</p></div>'),
    $('#slide12 #popup_card #close').click(function() {
      $('#popup_card').remove();
    });
  });
});
