/*! Plugin for Cycle2; Copyright (c) 2012 M. Alsup; ver: 20130327 */ (function(a){function c(){try{this.playVideo()}catch(a){}}function d(){try{this.pauseVideo()}catch(a){}}"use strict";var b='
';a.extend(a.fn.cycle.defaults,{youtubeAllowFullScreen:!0,youtubeAutostart:!1,youtubeAutostop:!0}),a(document).on("cycle-bootstrap",function(e,f){if(!f.youtube)return;f.hideNonActive=!1,f.container.find(f.slides).each(function(c){var d,e=a(this),g=e.attr("href"),h=f.youtubeAllowFullScreen?"true":"false";g+=(/\?/.test(g)?"&":"?")+"enablejsapi=1",f.youtubeAutostart&&f.startingSlide===c&&(g+="&autoplay=1"),d=f.API.tmpl(b,{url:g,allowFullScreen:h}),e.replaceWith(d)}),f.slides=">div",f.youtubeAutostart&&f.container.on("cycle-initialized cycle-after",function(b,d){var e=b.type=="cycle-initialized"?d.currSlide:d.nextSlide;a(d.slides[e]).find("object,embed").each(c)}),f.youtubeAutostop&&f.container.on("cycle-before",function(b,c){a(c.slides[c.currSlide]).find("object,embed").each(d)})})})(jQuery);