????

Your IP : 216.73.216.152


Current Path : /home2/morganrand/www/wp-content-bkp/plugins/cloudslider/library/js/
Upload File :
Current File : /home2/morganrand/www/wp-content-bkp/plugins/cloudslider/library/js/cloudslider.jquery.min.js

/**************************************************************************
 * Cloud Slider jQuery Plugin
 * @version: 2.4
 * @requires jQuery 1.7 or later
 * @author WebuddySoft
 * @Licenses: http://codecanyon.net/licenses/
**************************************************************************/

!function(t){t.fn.extend({cloudSlider:function(t){return this.each(function(){new e(this,t)})},cloudData:function(){return t(this).data("instance").options},cloudResume:function(){var e=t(this).data("instance");e.options.isBusy||(e.options.onResume(),e.resume())},cloudPause:function(){var e=t(this).data("instance");e.pause()},cloudKill:function(){var e=t(this).data("instance");e.kill()},cloudPrev:function(){var e=t(this).data("instance");e&&!e.options.isBusy&&(e.flowTo("left"),e.options.onPrev())},cloudNext:function(){var e=t(this).data("instance");e&&!e.options.isBusy&&(e.flowTo("right"),e.options.onNext())},cloudTo:function(e){e--;var o=t(this).data("instance");o&&"number"==typeof e&&!o.options.isBusy&&e>=0&&e<o.options.numberOfSlides&&e!=o.options.currentSkyNo&&(o.flowTo(e),o.options.onSlideTo())},cloudIn:function(e){var o=t(this).data("instance");e.hasClass("kr-cloud")&&!o.options.isBusy&&o.cloudIn(e)},cloudOut:function(e){var o=t(this).data("instance");e.hasClass("kr-cloud")&&!o.options.isBusy&&o.cloudOut(e)},cloudAnimate:function(e,o){var a=t(this).data("instance");e.hasClass("kr-cloud")&&!a.options.isBusy&&a.cloudAnimate(e,o)}});var e=function(e,d){var p=CS_ROOT_URL,c=[];c.light_iron={containerBgColor:"#CCC",containerBorder:"5px",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/light_iron/loading.gif",arrow:{imgPrev:p+"skins/light_iron/left_arrow.png",imgNext:p+"skins/light_iron/right_arrow.png",imgPrevActivated:p+"skins/light_iron/left_arrow_activated.png",imgNextActivated:p+"skins/light_iron/right_arrow_activated.png",positionOffset:-7,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:-7,itemOpacity:1,itemMargin:0,imgItem:p+"skins/light_iron/bullet_item.png",imgItemActivated:p+"skins/light_iron/bullet_item_activated.png",imgContainerLeft:p+"skins/light_iron/bullet_left.png",imgContainerRight:p+"skins/light_iron/bullet_right.png",activatedOpacity:1,responsiveLevel:1.5},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"#AAA",itemOpacity:.4,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#FFF",activatedBorderColor:"#FFF",activatedOpacity:1,imgNoThumb:p+"skins/light_iron/no_thumb.png",responsiveLevel:1.3}},c.dark_iron={containerBgColor:"#666",containerBorder:"5px",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/dark_iron/loading.gif",arrow:{imgPrev:p+"skins/dark_iron/left_arrow.png",imgNext:p+"skins/dark_iron/right_arrow.png",imgPrevActivated:p+"skins/dark_iron/left_arrow_activated.png",imgNextActivated:p+"skins/dark_iron/right_arrow_activated.png",positionOffset:-7,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:-7,itemOpacity:1,itemMargin:0,imgItem:p+"skins/dark_iron/bullet_item.png",imgItemActivated:p+"skins/dark_iron/bullet_item_activated.png",imgContainerLeft:p+"skins/dark_iron/bullet_left.png",imgContainerRight:p+"skins/dark_iron/bullet_right.png",activatedOpacity:1,responsiveLevel:1.5},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"#444",itemOpacity:.4,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#333",activatedBorderColor:"#333",activatedOpacity:1,imgNoThumb:p+"skins/dark_iron/no_thumb.png",responsiveLevel:1.3}},c.light_glass={containerBgColor:"#FFF",containerBorder:"6px",containerBoxShadow:"0px 2px 30px 0px #000",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/light_glass/loading.gif",arrow:{imgPrev:p+"skins/light_glass/left_arrow.png",imgNext:p+"skins/light_glass/right_arrow.png",imgPrevActivated:p+"skins/light_glass/left_arrow_activated.png",imgNextActivated:p+"skins/light_glass/right_arrow_activated.png",positionOffset:20,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:20,itemOpacity:1,itemMargin:"0px 5px",imgItem:p+"skins/light_glass/bullet_item.png",imgItemActivated:p+"skins/light_glass/bullet_item_activated.png",activatedOpacity:1,responsiveLevel:1.5},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"rgba(255, 255, 255, 0.5)",itemOpacity:.5,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#FFF",activatedBorderColor:"#FFF",activatedOpacity:1,imgNoThumb:p+"skins/light_glass/no_thumb.png",responsiveLevel:1.3}},c.dark_glass={containerBgColor:"#333",containerBorder:"6px",containerBoxShadow:"0px 2px 30px 0px #000",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/dark_glass/loading.gif",arrow:{imgPrev:p+"skins/dark_glass/left_arrow.png",imgNext:p+"skins/dark_glass/right_arrow.png",imgPrevActivated:p+"skins/dark_glass/left_arrow_activated.png",imgNextActivated:p+"skins/dark_glass/right_arrow_activated.png",positionOffset:20,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:20,itemOpacity:1,itemMargin:"0px 5px",imgItem:p+"skins/dark_glass/bullet_item.png",imgItemActivated:p+"skins/dark_glass/bullet_item_activated.png",activatedOpacity:1,responsiveLevel:1.5},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"rgba(0, 0, 0, 0.5)",itemOpacity:.5,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#333",activatedBorderColor:"#333",activatedOpacity:1,imgNoThumb:p+"skins/dark_glass/no_thumb.png",responsiveLevel:1.3}},c.light_rounded_bar={containerBgColor:"#AAA",containerBorder:"5px",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/light_rounded_bar/loading.gif",arrow:{imgPrev:p+"skins/light_rounded_bar/left_arrow.png",imgNext:p+"skins/light_rounded_bar/right_arrow.png",imgPrevActivated:p+"skins/light_rounded_bar/left_arrow_activated.png",imgNextActivated:p+"skins/light_rounded_bar/right_arrow_activated.png",positionOffset:20,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:10,itemOpacity:1,itemMargin:0,imgItem:p+"skins/light_rounded_bar/bullet_item.png",imgItemActivated:p+"skins/light_rounded_bar/bullet_item_activated.png",imgContainerLeft:p+"skins/light_rounded_bar/bullet_left.png",imgContainerRight:p+"skins/light_rounded_bar/bullet_right.png",activatedOpacity:1,responsiveLevel:1},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"#AAA",itemOpacity:.7,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#333",activatedBorderColor:"#FFF",activatedOpacity:1,imgNoThumb:p+"skins/light_rounded_bar/no_thumb.png",responsiveLevel:1.3}},c.dark_rounded_bar={containerBgColor:"#333",containerBorder:"5px",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/dark_rounded_bar/loading.gif",arrow:{imgPrev:p+"skins/dark_rounded_bar/left_arrow.png",imgNext:p+"skins/dark_rounded_bar/right_arrow.png",imgPrevActivated:p+"skins/dark_rounded_bar/left_arrow_activated.png",imgNextActivated:p+"skins/dark_rounded_bar/right_arrow_activated.png",positionOffset:20,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:10,itemOpacity:1,itemMargin:0,imgItem:p+"skins/dark_rounded_bar/bullet_item.png",imgItemActivated:p+"skins/dark_rounded_bar/bullet_item_activated.png",imgContainerLeft:p+"skins/dark_rounded_bar/bullet_left.png",imgContainerRight:p+"skins/dark_rounded_bar/bullet_right.png",activatedOpacity:1,responsiveLevel:1},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"#333",itemOpacity:.7,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#FFF",activatedBorderColor:"#000",activatedOpacity:1,imgNoThumb:p+"skins/dark_rounded_bar/no_thumb.png",responsiveLevel:1.3}},c.light_bar={containerBgColor:"#FFF",containerBorder:"5px 5px 20px 5px",containerBoxShadow:"0px 2px 30px 0px #000",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/light_bar/loading.gif",arrow:{imgPrev:p+"skins/light_bar/left_arrow.png",imgNext:p+"skins/light_bar/right_arrow.png",imgPrevActivated:p+"skins/light_bar/left_arrow_activated.png",imgNextActivated:p+"skins/light_bar/right_arrow_activated.png",positionOffset:20,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:3,itemOpacity:1,itemMargin:0,imgItem:p+"skins/light_bar/bullet_item.png",imgItemActivated:p+"skins/light_bar/bullet_item_activated.png",activatedOpacity:1,responsiveLevel:1},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"rgba(256, 256, 256, 0.5)",itemOpacity:.7,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#FFF",activatedBorderColor:"#000",activatedOpacity:1,imgNoThumb:p+"skins/light_bar/no_thumb.png",responsiveLevel:1.3}},c.dark_bar={containerBgColor:"#333",containerBorder:"5px 5px 20px 5px",containerBoxShadow:"0px 2px 30px 0px #000",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/dark_bar/loading.gif",arrow:{imgPrev:p+"skins/dark_bar/left_arrow.png",imgNext:p+"skins/dark_bar/right_arrow.png",imgPrevActivated:p+"skins/dark_bar/left_arrow_activated.png",imgNextActivated:p+"skins/dark_bar/right_arrow_activated.png",positionOffset:20,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:3,itemOpacity:1,itemMargin:0,imgItem:p+"skins/dark_bar/bullet_item.png",imgItemActivated:p+"skins/dark_bar/bullet_item_activated.png",activatedOpacity:1,responsiveLevel:1},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"rgba(0, 0, 0, 0.5)",itemOpacity:.7,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#000",activatedBorderColor:"#FFF",activatedOpacity:1,imgNoThumb:p+"skins/dark_bar/no_thumb.png",responsiveLevel:1.3}},c.light_tab={containerBgColor:"#FFF",containerBorder:"5px",containerBoxShadow:"0px 2px 30px 0px #000",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/light_tab/loading.gif",arrow:{imgPrev:p+"skins/light_tab/left_arrow.png",imgNext:p+"skins/light_tab/right_arrow.png",imgPrevActivated:p+"skins/light_tab/left_arrow_activated.png",imgNextActivated:p+"skins/light_tab/right_arrow_activated.png",positionOffset:20,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:5,itemOpacity:1,itemMargin:0,imgItem:p+"skins/light_tab/bullet_item.png",imgItemActivated:p+"skins/light_tab/bullet_item_activated.png",activatedOpacity:1,responsiveLevel:1},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"rgba(200, 200, 200, 0.7)",itemOpacity:.7,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#FFF",activatedBorderColor:"#000",activatedOpacity:1,imgNoThumb:p+"skins/light_tab/no_thumb.png",responsiveLevel:1.3}},c.dark_tab={containerBgColor:"#000",containerBorder:"5px",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/dark_tab/loading.gif",arrow:{imgPrev:p+"skins/dark_tab/left_arrow.png",imgNext:p+"skins/dark_tab/right_arrow.png",imgPrevActivated:p+"skins/dark_tab/left_arrow_activated.png",imgNextActivated:p+"skins/dark_tab/right_arrow_activated.png",positionOffset:20,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:5,itemOpacity:1,itemMargin:0,imgItem:p+"skins/dark_tab/bullet_item.png",imgItemActivated:p+"skins/dark_tab/bullet_item_activated.png",activatedOpacity:1,responsiveLevel:1},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"rgba(30, 30, 30, 0.7)",itemOpacity:.7,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#FFF",activatedBorderColor:"#000",activatedOpacity:1,imgNoThumb:p+"skins/dark_tab/no_thumb.png",responsiveLevel:1.3}},c.light_outline={containerBgColor:"#fff",containerBorder:"5px",containerBoxShadow:"0px 2px 30px 0px #000",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/light_outline/loading.gif",arrow:{imgPrev:p+"skins/light_outline/left_arrow.png",imgNext:p+"skins/light_outline/right_arrow.png",imgPrevActivated:p+"skins/light_outline/left_arrow_activated.png",imgNextActivated:p+"skins/light_outline/right_arrow_activated.png",positionOffset:30,responsiveLevel:1.5},bullet:{position:"bottom_right",horizontalOffset:30,verticalOffset:20,itemOpacity:1,itemMargin:2,imgItem:p+"skins/light_outline/bullet_item.png",imgItemActivated:p+"skins/light_outline/bullet_item_activated.png",activatedOpacity:1,responsiveLevel:1.2},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"rgba(255, 255, 255, 0.8)",itemOpacity:.3,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#FFF",activatedBorderColor:"#FFF",activatedOpacity:1,imgNoThumb:p+"skins/light_outline/no_thumb.png",responsiveLevel:1.3}},c.dark_outline={containerBgColor:"#000",containerBorder:"5px",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/dark_outline/loading.gif",arrow:{imgPrev:p+"skins/dark_outline/left_arrow.png",imgNext:p+"skins/dark_outline/right_arrow.png",imgPrevActivated:p+"skins/dark_outline/left_arrow_activated.png",imgNextActivated:p+"skins/dark_outline/right_arrow_activated.png",positionOffset:30,responsiveLevel:1.5},bullet:{position:"bottom_right",horizontalOffset:30,verticalOffset:20,itemOpacity:1,itemMargin:5,imgItem:p+"skins/dark_outline/bullet_item.png",imgItemActivated:p+"skins/dark_outline/bullet_item_activated.png",activatedOpacity:1,responsiveLevel:1.2},thumb:{positionOffset:-120,containerPadding:"2px",containerBgColor:"#333",itemOpacity:1,itemMargin:"2px",itemBorderWidth:"2px",itemBorderColor:"#FFF",activatedBorderColor:"#000",activatedOpacity:1,imgNoThumb:p+"skins/dark_outline/no_thumb.png",responsiveLevel:1.3}},c.stroke={containerBgColor:"#FFF",containerBorder:"5px",containerBoxShadow:"0px 2px 30px 0px #000",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/stroke/loading.gif",arrow:{imgPrev:p+"skins/stroke/left_arrow.png",imgNext:p+"skins/stroke/right_arrow.png",imgPrevActivated:p+"skins/stroke/left_arrow_activated.png",imgNextActivated:p+"skins/stroke/right_arrow_activated.png",positionOffset:40,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:20,itemOpacity:1,itemMargin:3,imgItem:p+"skins/stroke/bullet_item.png",imgItemActivated:p+"skins/stroke/bullet_item_activated.png",activatedOpacity:1,responsiveLevel:1.5},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"transparent",itemOpacity:.5,itemMargin:"5px",itemBorderWidth:"4px",itemBorderColor:"#FFF",activatedBorderColor:"#FFF",activatedOpacity:1,imgNoThumb:p+"skins/stroke/no_thumb.png",responsiveLevel:1.3}},c.pierced={containerBgColor:"#FFF",containerBorder:"5px",containerBoxShadow:"0px 2px 30px 0px #000",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/pierced/loading.gif",arrow:{imgPrev:p+"skins/pierced/left_arrow.png",imgNext:p+"skins/pierced/right_arrow.png",imgPrevActivated:p+"skins/pierced/left_arrow_activated.png",imgNextActivated:p+"skins/pierced/right_arrow_activated.png",positionOffset:-11,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:-12,itemOpacity:1,itemMargin:0,imgItem:p+"skins/pierced/bullet_item.png",imgItemActivated:p+"skins/pierced/bullet_item_activated.png",imgContainerLeft:p+"skins/pierced/bullet_left.png",imgContainerRight:p+"skins/pierced/bullet_right.png",activatedOpacity:1,responsiveLevel:1.5},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"transparent",itemOpacity:1,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#333",activatedBorderColor:"#FFF",activatedOpacity:1,imgNoThumb:p+"skins/pierced/no_thumb.png",responsiveLevel:1.3}},c.polygon={containerBgColor:"#CCC",containerBorder:"0px",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/polygon/loading.gif",arrow:{imgPrev:p+"skins/polygon/left_arrow.png",imgNext:p+"skins/polygon/right_arrow.png",imgPrevActivated:p+"skins/polygon/left_arrow_activated.png",imgNextActivated:p+"skins/polygon/right_arrow_activated.png",positionOffset:20,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:10,itemOpacity:1,itemMargin:1,imgItem:p+"skins/polygon/bullet_item.png",imgItemActivated:p+"skins/polygon/bullet_item_activated.png",activatedOpacity:1,responsiveLevel:1.5},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"rgba(255, 255, 255, 0.5)",itemOpacity:.5,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#FFF",activatedBorderColor:"#FFF",activatedOpacity:1,imgNoThumb:p+"skins/polygon/no_thumb.png",responsiveLevel:1.3}},c.embossed={containerBgColor:"#AAA",containerBorder:"5px",containerBoxShadow:"0px 2px 30px 0px #000",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/embossed/loading.gif",arrow:{imgPrev:p+"skins/embossed/left_arrow.png",imgNext:p+"skins/embossed/right_arrow.png",imgPrevActivated:p+"skins/embossed/left_arrow_activated.png",imgNextActivated:p+"skins/embossed/right_arrow_activated.png",positionOffset:20,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:20,itemOpacity:1,itemMargin:0,imgItem:p+"skins/embossed/bullet_item.png",imgItemActivated:p+"skins/embossed/bullet_item_activated.png",imgContainerLeft:p+"skins/embossed/bullet_left.png",imgContainerRight:p+"skins/embossed/bullet_right.png",activatedOpacity:1,responsiveLevel:1.5},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"#CCC",itemOpacity:.5,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#000",activatedBorderColor:"#FFF",activatedOpacity:1,imgNoThumb:p+"skins/embossed/no_thumb.png",responsiveLevel:1.3}},c.dark_short_bar={containerBgColor:"#333",containerBorder:"5px",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/dark_short_bar/loading.gif",arrow:{imgPrev:p+"skins/dark_short_bar/left_arrow.png",imgNext:p+"skins/dark_short_bar/right_arrow.png",imgPrevActivated:p+"skins/dark_short_bar/left_arrow_activated.png",imgNextActivated:p+"skins/dark_short_bar/right_arrow_activated.png",positionOffset:20,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:20,itemOpacity:1,itemMargin:0,imgItem:p+"skins/dark_short_bar/bullet_item.png",imgItemActivated:p+"skins/dark_short_bar/bullet_item_activated.png",activatedOpacity:1,responsiveLevel:1.5},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"rgba(0, 0, 0, 0.5)",itemOpacity:.5,itemMargin:"5px",itemBorderWidth:"1px",itemBorderColor:"#FFF",activatedBorderColor:"#FFF",activatedOpacity:1,imgNoThumb:p+"skins/dark_short_bar/no_thumb.png",responsiveLevel:1.3}},c["default"]={containerBgColor:"#FFF",containerBorder:"5px",containerBoxShadow:"0px 2px 30px 0px #000",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"skins/default/loading.gif",arrow:{imgPrev:p+"skins/default/left_arrow.png",imgNext:p+"skins/default/right_arrow.png",imgPrevActivated:p+"skins/default/left_arrow_activated.png",imgNextActivated:p+"skins/default/right_arrow_activated.png",positionOffset:30,responsiveLevel:1.5},bullet:{position:"bottom_center",horizontalOffset:0,verticalOffset:15,itemOpacity:1,itemMargin:"0px 5px",imgItem:p+"skins/default/bullet_item.png",imgItemActivated:p+"skins/default/bullet_item_activated.png",activatedOpacity:1,responsiveLevel:1.5},thumb:{positionOffset:-120,containerPadding:"5px",containerBgColor:"transparent",itemOpacity:.7,itemMargin:"5px",itemBorderWidth:"2px",itemBorderColor:"#FFF",activatedBorderColor:"#FFF",activatedOpacity:1,imgNoThumb:p+"skins/default/no_thumb.png",responsiveLevel:1.3}};var h={responsive:!0,fullWidth:!1,fullSize:!1,autoSlide:!0,onHoverPause:!0,startSlideNo:1,shuffleMode:!1,autoSlideCarousel:"slide",progressBarPosition:"top",progressBarColor:"rgba(170, 170, 170, 0.5)",progressBarThick:"3px",imgLoader:p+"img/loading.gif",lazyImageLoad:r()?!1:!0,keyNavigation:!0,cloudResponsiveLevel:1,constant:{navFadeDuration:200,navThumbShiftDuration:.5,defaultSlideDelay:6e3,defaultTransition:["1","2"],carousel:{type:"2d",radius:400,recedeLevel:1,inclination:30,position:"center",itemSize:{},overlay:"20%",firstShow:1,easing:"easeOutSine",perspective:1e3,duration:700,delay:6e3,direction:"right",arrow:{visibility:"hover",position:"auto",imgPrev:p+"img/left_carousel_arrow.png",imgNext:p+"img/right_carousel_arrow.png",responsiveLevel:2},level:[{opacity:1,scale:1,rotationX:0,rotationY:0,rotationZ:0},{opacity:1,scale:1,rotationX:0,rotationY:0,rotationZ:0},{opacity:1,scale:1,rotationX:0,rotationY:0,rotationZ:0},{opacity:1,scale:1,rotationX:0,rotationY:0,rotationZ:0}]}},arrow:{visibility:"hover",positionOffset:30,imgPrev:p+"img/left_arrow.png",imgNext:p+"img/right_arrow.png",imgPrevActivated:p+"img/left_arrow_activated.png",imgNextActivated:p+"img/right_arrow_activated.png",responsiveLevel:2},navType:"bullet",bullet:{visibility:"show",position:"bottom_center",horizontalOffset:0,verticalOffset:10,itemOpacity:1,itemMargin:5,imgItem:p+"img/bullet_item.png",imgItemActivated:p+"img/bullet_item_activated.png",imgContainerLeft:"",imgContainerRight:"",activatedOpacity:1,responsiveLevel:2},thumb:{visibility:"hover",positionOffset:"outside",containerWidth:"auto",containerPadding:"5px",containerBgColor:"#FFFFFF",itemSize:{},itemOpacity:.6,itemMargin:"5px",itemBorderWidth:"3px",itemBorderColor:"#AAA",activatedBorderColor:"#AAA",activatedOpacity:1,imgNoThumb:p+"img/no_thumb.png",responsiveLevel:1.3},video:{autoPlay:!1,pauseWhilePlaying:!0},onInit:function(){},onResume:function(){},onPause:function(){},onPrev:function(){},onNext:function(){},onSlideTo:function(){},onSlidingStart:function(){},onSlidingComplete:function(){},onCloudClick:function(){},onCloudHover:function(){},onCarouselTo:function(){},onRedraw:function(){}};onYouTubeIframeAPIReady=function(){e.find(".kr-youtube-player").each(function(){var e=t(this).find("iframe");youtubeIframeLoad(e,t(this).attr("id"),e.data("videoId"))})},youtubeIframeLoad=function(e,o,a){playerVars={enablejsapi:1,controls:1,showinfo:0,fs:0,modestbranding:1,wmode:"opaque"},r()||(playerVars.html5=1),("undefined"!=e.attr("allowfullscreen")||"undefined"!=e.attr("mozallowfullscreen")||"undefined"!=e.attr("webkitallowfullscreen"))&&(playerVars.fs=1),"0"==e.attr("src").substr(e.attr("src").indexOf("controls=")+9,1)&&(playerVars.controls=0);var i=new YT.Player(o,{width:"100%",height:"100%",videoId:a,playerVars:playerVars,events:{onReady:onYoutubeReady,onStateChange:onYoutubeStateChange}}),e=i.getIframe();t(e).data("id",o),t(e).data("videoid",a);var s=t(e).closest(".kr-cloud");s.data("width")&&s.data("height")||(s.css({width:t(e).width(),height:t(e).height()}),s.data("width",s.width()),s.data("height",s.height()))},onYoutubeReady=function(e){var o=e.target.getIframe();u.options.slideTransitionNeeded&&t(o).show(),t(o).data("player",e.target),u.options.video.autoPlay&&t(o).is(":visible")&&t(o).closest(".kr-sky").hasClass("sky-opened")&&e.target.playVideo()},onYoutubeStateChange=function(t){-1==t.data||t.data==YT.PlayerState.PLAYING?(u.options.isVideoPlaying=!0,u.options.video.pauseWhilePlaying&&u.pause()):t.data==YT.PlayerState.PAUSED&&(u.options.isVideoPlaying=!1,u.options.onHoverPause?u.options.mouseEntered||u.resume():u.resume())},onVimeoIframeAPIReady=function(){var o=setInterval(function(){"undefined"!=typeof $f&&(e.find(".kr-vimeo-player").each(function(){var e=t(this),o=$f(e[0]);e.data("player",o),o.addEvent("ready",function(){u.options.video.autoPlay&&t(e).is(":visible")&&t(e).closest(".kr-sky").hasClass("sky-opened")&&o.api("play"),o.addEvent("pause",onVimeoPause),o.addEvent("finish",onVimeoFinish),o.addEvent("play",onVimeoPlay)})}),clearInterval(o))},100)},onVimeoPause=function(t){u.options.isVideoPlaying=!1,u.options.currentSky.find("#"+t).length>0&&(u.options.onHoverPause?u.options.mouseEntered||u.resume():u.resume())},onVimeoFinish=function(t){u.options.isVideoPlaying=!1,u.options.currentSky.find("#"+t).length>0&&u.resume()},onVimeoPlay=function(){u.options.isVideoPlaying=!0,u.options.video.pauseWhilePlaying&&u.pause()},onVidaudPause=function(){u.options.isVideoPlaying=!1,u.options.currentSky.find(t(this)).length>0&&(u.options.onHoverPause?u.options.mouseEntered||u.resume():u.resume())},onVidaudEnded=function(){u.options.isVideoPlaying=!1,u.options.currentSky.find(t(this)).length>0&&u.resume()},onVidaudPlay=function(){u.options.isVideoPlaying=!0,u.options.video.pauseWhilePlaying&&u.pause()};var u=this,e=t(e).addClass("cloud-container").wrapInner('<div class="cloud-wrapper"></div>'),g=e.find(".cloud-wrapper"),f=t('<div class="cloud-others" />').appendTo(e);u.initialize=function(){var i;if(c[d.skin]){var s=c[d.skin];i=t.extend({},h,s),s.arrow&&(i.arrow=t.extend({},h.arrow,s.arrow)),s.bullet&&(i.bullet=t.extend({},h.bullet,s.bullet)),s.thumb&&(i.thumb=t.extend({},h.thumb,s.thumb)),s.video&&(i.video=t.extend({},h.video,s.video)),-1!=(e.attr("style")+"").indexOf("background-image")||!s.containerBgImgSrc||null!=/^url\((['"]?)(.*)\1\)$/.exec(e.css("background-image"))&&""!=/^url\((['"]?)(.*)\1\)$/.exec(e.css("background-image"))||e.css("background-image","url("+s.containerBgImgSrc+")"),!s.containerBgColor||-1!=(e.attr("style")+"").indexOf("background-color")||"rgba(0, 0, 0, 0)"!=e.css("background-color")&&"transparent"!=e.css("background-color")||e.css("background-color",s.containerBgColor),s.containerBorder&&-1==(e.attr("style")+"").indexOf("padding")&&0==parseInt(e.css("padding-top"))&&0==parseInt(e.css("padding-right"))&&0==parseInt(e.css("padding-bottom"))&&0==parseInt(e.css("padding-left"))&&e.css("padding",s.containerBorder),s.containerBoxShadow&&-1==(e.attr("style")+"").indexOf("box-shadow")&&"none"==e.css("box-shadow")&&e.css({"box-shadow":s.containerBoxShadow,"-moz-box-shadow":s.containerBoxShadow,"-webkit-box-shadow":s.containerBoxShadow})}else i=h;u.options=t.extend({},i,d),d.arrow&&(u.options.arrow=t.extend({},i.arrow,d.arrow)),d.bullet&&(u.options.bullet=t.extend({},i.bullet,d.bullet)),d.thumb&&(u.options.thumb=t.extend({},i.thumb,d.thumb)),d.video&&(u.options.video=t.extend({},i.video,d.video)),e.data("instance",u),e.data("margin-bottom",e.css("margin-bottom")),u.options.fullSize&&(u.options.fullWidth=!0);var p=e[0].style;if(u.options.width||(u.options.width=p.width),u.options.responsiveWidth=u.options.width,u.options.height||(u.options.height=p.height),u.options.responsiveHeight=u.options.height,t.isNumeric(u.options.responsiveWidth)&&(u.options.responsiveWidth+="px"),t.isNumeric(u.options.responsiveHeight)&&(u.options.responsiveHeight+="px"),-1==(u.options.width+"").indexOf("%")&&(u.options.width=parseInt(u.options.width)),-1==(u.options.height+"").indexOf("%")&&(u.options.height=parseInt(u.options.height)),u.options.originalResponsive=u.options.responsive,u.options.containerPaddingLeft=parseInt(e.css("padding-left")),u.options.containerPaddingRight=parseInt(e.css("padding-right")),u.options.containerPaddingTop=parseInt(e.css("padding-top")),u.options.containerPaddingBottom=parseInt(e.css("padding-bottom")),e.css({width:u.options.responsiveWidth,height:u.options.responsiveHeight,padding:0}),u.options.width=e.width(),u.options.height=e.height(),u.options.numberOfSlides=e.find(".kr-sky").length,u.options.numberOfSlides<2){if(0==u.options.numberOfSlides)return!1;u.options.startSlideNo=0,u.options.navType="none",u.options.shuffleMode=!1,u.options.autoSlideCarousel="slide",u.options.keyNavigation=!1,u.options.arrow.visibility="hide",u.options.video.pauseWhilePlaying=!0}else u.options.startSlideNo=u.options.shuffleMode&&"undefined"==typeof d.startSlideNo?Math.floor(Math.random()*u.options.numberOfSlides)+1:Math.max(0,Math.min(u.options.startSlideNo-1,u.options.numberOfSlides-1));u.options.currentSkyNo=0==u.options.startSlideNo?u.options.numberOfSlides-1:u.options.startSlideNo-1,u.options.currentSky=e.find(".kr-sky:eq("+u.options.currentSkyNo+")"),u.options.timeouts=[];var m=0,v=t("head").find("script").eq(0),k=!1,w="https://www.youtube.com/iframe_api";e.find('.kr-cloud iframe[src*="youtu"]').each(function(){var e=t(this),a=e.closest(".kr-cloud");a.width()<=0&&a.css("width",e.width()),a.height()<=0&&a.css("height",e.height()),e.attr("width")||e.attr("width",e.parent().width()),e.attr("height")||e.attr("height",e.parent().height());var i=o(e.attr("src"));e.wrap('<div id="kr-player-'+m++ +'" class="kr-youtube-player"></div>'),e.data("videoId",i),k=!0}),k&&t("head").find('script[src*="www.youtube.com/iframe_api"]').length<=0&&(v?t('<script src="'+w+'"></script>').insertBefore(v):t('<script src="'+y+'"></script>').appendTo("head"));var b=!1,y="http://a.vimeocdn.com/js/froogaloop2.min.js";if("https:"===location.protocol&&(y="https://a.vimeocdn.com/js/froogaloop2.min.js"),e.find('.kr-cloud iframe[src*="vimeo"]').each(function(){var e=t(this),o=e.closest(".kr-cloud");o.width()<=0&&o.css("width",e.width()),o.height()<=0&&o.css("height",e.height()),e.attr("width")||e.attr("width",e.parent().width()),e.attr("height")||e.attr("height",e.parent().height());var i=a(e.attr("src")),r="kr-player-"+m++;e.attr("id",r),e.attr("src","http://player.vimeo.com/video/"+i+"?api=1&player_id="+r+"&title=0&byline=0&portrait=0"),e.data("src",e.attr("src")),e.addClass("kr-vimeo-player"),b=!0}),b&&(t("head").find('script[src="'+y+'"]').length<=0&&(v?t('<script src="'+y+'"></script>').insertBefore(v):t('<script src="'+y+'"></script>').appendTo("head")),onVimeoIframeAPIReady()),e.find(".kr-cloud video, .kr-cloud audio").each(function(){if("undefined"!=typeof document.createElement("video").canPlayType){var e=t(this),o=e.closest(".kr-cloud");parseInt(e.attr("width"))>0&&e.css("width",parseInt(e.attr("width"))),parseInt(e.attr("height"))>0&&e.css("height",parseInt(e.attr("height"))),e.width()<=0&&e.attr("width",o.width()),e.height()<=0&&e.attr("height",o.height()),o.css("width",e.width()).data("width",e.width()),o.css("height",e.height()).data("height",e.height()),e.css("width","100%").show(),e.css("height","100%").show(),e.on("play",onVidaudPlay),e.on("pause",onVidaudPause),e.on("ended",onVidaudEnded)}else t(this).closest(".kr-cloud").remove()}),e.find("img.sky-background").each(function(){var e=t('<div class="sky-background" />');if(t(this).parent().is("a")){var o="undefined"!=typeof t(this).parent().attr("target")?' target="'+t(this).parent().attr("target")+'"':"";t('<a class="kr-bg-link" href="'+t(this).parent().attr("href")+'"'+o+"></a>").appendTo(t(this).closest(".kr-sky")),t(this).unwrap()}t(this).removeClass("sky-background").wrap(e)}),u.options.loader=t('<img class="kr-loader" src="'+u.options.imgLoader+'" />').appendTo(e),u.options.progressBar=t('<div class="kr-line-timer kr-'+u.options.progressBarPosition+'">').appendTo(e),u.options.progressBar.css({backgroundColor:u.options.progressBarColor,height:parseInt(u.options.progressBarThick)}),"combine"==u.options.autoSlideCarousel&&(u.options.carouselShowed=0,u.options.carouselRepeated=!1),e.find(".kr-sky").each(function(){var e=(t(this).data("transition")+"").toLowerCase(),o=e.split(","),a=[],i=t(this);if(n())if(-1!=e.indexOf("all")||-1!=e.indexOf("2d")&&-1!=e.indexOf("3d"))a.push("all");else for(var s=0;s<o.length;s++){var d=o[s];if(t.isNumeric(d)){var p=l(d);p&&(0==p.cellThick&&-1==e.indexOf("2d")?a.push(d):p.cellThick>0&&-1==e.indexOf("3d")&&a.push(d))}else-1!=e.indexOf("2d")?a.push("2d"):-1!=e.indexOf("3d")&&a.push("3d")}else if(-1!=e.indexOf("all")||-1!=e.indexOf("2d"))a.push("2d");else for(var s=0;s<o.length;s++){var d=o[s];if(t.isNumeric(d)){var p=l(d);p&&0==p.cellThick&&a.push(d)}}if((0==a.length||r())&&(a=u.options.constant.defaultTransition),i.data("transitionlist",a),i.find(".kr-cloud").wrapAll('<div class="kr-clouds" />'),i.data("duration")||i.data("duration",u.options.constant.defaultSlideDelay),"undefined"!=typeof t(this).data("ken"))for(var c=(t(this).data("ken")+"").split(";"),s=0;s<c.length;s++){var h=c[s].split(":");
2==h.length&&i.data("ken-"+h[0].replace(/ /g,""),h[1].replace(/ /g,""))}if(i.data("carousel")&&u.options[i.data("carousel")]){if(u.options[i.data("carousel")]=t.extend({},u.options.constant.carousel,u.options[i.data("carousel")]),u.options[i.data("carousel")].arrow&&(u.options[i.data("carousel")].arrow=t.extend({},u.options.constant.carousel.arrow,u.options[i.data("carousel")].arrow)),u.options[i.data("carousel")].level.length>0)for(var s=0;s<u.options[i.data("carousel")].level.length;s++)u.options[i.data("carousel")].level[s]=t.extend({},u.options.constant.carousel.level[s],u.options[i.data("carousel")].level[s]);i.data("carousel",u.options[i.data("carousel")])}else i.find(".kr-carousel").length>0&&i.data("carousel",u.options.constant.carousel);if(i.data("carousel")){var g=parseInt(i.data("carousel").firstShow)-1,f=i.find(".kr-carousel").length,m=Math.floor(f/2);u.options.responsive=!0,"random"==g?i.data("current_carousel",Math.floor(Math.random()*f)):g>0&&f>g?i.data("current_carousel",g):i.data("current_carousel",0);for(var s=0;m>s;s++)i.data("carousel").level[s]||i.data("carousel").level.push(t.extend({},i.data("carousel").level[i.data("carousel").level.length-1]))}i.find("img").each(function(){u.options.lazyImageLoad&&(t(this).data("src")&&""!=t(this).data("src")||t(this).data("src",t(this).attr("src")))})}),e.find(".kr-carousel").each(function(){var e;t(this).find(".kr-carousel-img").length>0?e=t(this).find(".kr-carousel-img"):(e=t(this).removeClass("kr-carousel").removeClass("kr-cloud").addClass("kr-carousel-img"),e.wrap(t('<div class="kr-carousel" style="'+e.attr("style")+'"></div>').data("border_left",e.css("border-left-width")).data("border_right",e.css("border-right-width")).data("border_top",e.css("border-top-width")).data("border_bottom",e.css("border-bottom-width"))));var o=e.closest(".kr-clouds"),a=o.closest(".kr-sky");if(a.data("carousel").itemSize.width&&(e.closest(".kr-carousel").css("width",a.data("carousel").itemSize.width),e.closest(".kr-carousel").data("width",a.data("carousel").itemSize.width)),a.data("carousel").itemSize.height&&(e.closest(".kr-carousel").css("height",a.data("carousel").itemSize.height),e.closest(".kr-carousel").data("height",a.data("carousel").itemSize.height)),o.find(".kr-carousel-container").length>0||t('<div class="kr-cloud kr-carousel-container"><div class="kr-carousel-wrapper"></div></div>').prependTo(o),e.parent().appendTo(o.find(".kr-carousel-wrapper")),"hide"!=a.data("carousel").arrow.visibility)if(a.find(".kr-carousel-container .kr-carousel-left-arrow").length>0);else{var i="";"hover"==a.data("carousel").arrow.visibility&&(i=" kr-hidden"),t('<div class="kr-carousel-left-arrow'+i+'"><img src="'+a.data("carousel").arrow.imgPrev+'" /></div>').appendTo(a.find(".kr-carousel-container")),t('<div class="kr-carousel-right-arrow'+i+'"><img src="'+a.data("carousel").arrow.imgNext+'" /></div>').appendTo(a.find(".kr-carousel-container"))}}),1==u.options.numberOfSlides&&u.options.currentSky.find(".kr-carousel-container").length>0&&(u.options.autoSlideCarousel="carousel"),e.on("dragstart",function(t){t.preventDefault()}),e.find(".kr-carousel-container").closest(".kr-clouds").hover(function(){"hover"==t(this).closest(".kr-sky").data("carousel").arrow.visibility&&(r()?e.find(".kr-carousel-left-arrow, .kr-carousel-right-arrow").removeClass("kr-hidden"):e.find(".kr-carousel-left-arrow, .kr-carousel-right-arrow").stop(!0,!0).fadeIn())},function(){"hover"==t(this).closest(".kr-sky").data("carousel").arrow.visibility&&(r()?e.find(".kr-carousel-left-arrow, .kr-carousel-right-arrow").addClass("kr-hidden"):e.find(".kr-carousel-left-arrow, .kr-carousel-right-arrow").stop(!0,!0).fadeOut())}),e.find(".kr-carousel-left-arrow").on("click",function(){u.flowCarouselTo("left")}),e.find(".kr-carousel-right-arrow").click(function(){u.flowCarouselTo("right")}),g.mousedown(function(t){u.options.sliderDragStart=t.pageX}),t(document).mousemove(function(t){if("undefined"!=typeof u.options.sliderDragStart&&-1!=u.options.sliderDragStart){var o=u.options.sliderDragStart-t.pageX;o>0?u.options.isBusy||(u.options.currentSky.find(".kr-carousel-container").length>0?(u.flowCarouselTo("right"),"combine"==u.options.autoSlideCarousel&&(u.options.carouselRepeated=!1,u.options.carouselShowed=0),2==u.options.numberOfSlides&&(u.options.direction="right")):e.find(".kr-sky").length>1&&(u.options.direction="right",u.flowTo("right"))):-0>o&&(u.options.isBusy||(u.options.currentSky.find(".kr-carousel-container").length>0?(u.flowCarouselTo("left"),"combine"==u.options.autoSlideCarousel&&(u.options.carouselRepeated=!1,u.options.carouselShowed=0)):e.find(".kr-sky").length>1&&(2==u.options.numberOfSlides&&(u.options.direction="left"),u.flowTo("left")))),u.options.sliderDragStart=t.pageX}}).mouseup(function(){u.options.sliderDragStart=-1}),"ontouchstart"in window&&(g.on("touchstart",function(t){var e=t.touches?t.touches:t.originalEvent.touches;1==e.length&&(u.options.sliderDragStart=e[0].clientX)}),g.on("touchmove",function(t){var e=t.touches?t.touches:t.originalEvent.touches,o=u.options.sliderDragStart-e[0].clientX;o>30?u.options.isBusy||(t.preventDefault(),u.options.currentSky.find(".kr-carousel-container").length>0?u.flowCarouselTo("right"):u.flowTo("right")):-30>o&&(u.options.isBusy||(t.preventDefault(),u.options.currentSky.find(".kr-carousel-container").length>0?u.flowCarouselTo("left"):u.flowTo("left"))),u.options.sliderDragStart=e[0].clientX}),g.on("touchend",function(e){t(e.target);u.options.sliderDragStart=-1})),e.find(".kr-cloud").each(function(){var o=t(this);if(o.data("anchored",!1),-1!==(o[0].style.width+"").indexOf("%")&&o.css("width",e.width()/100*parseInt(o[0].style.width)),t.isNumeric(parseFloat(o.css("right")))&&o.css("left","auto"),t.isNumeric(parseFloat(o.css("bottom")))&&o.css("top","auto"),o.data("left",o.css("left")),o.data("top",o.css("top")),o.data("right",o.css("right")),o.data("bottom",o.css("bottom")),o.data("width",o.width()),o.data("height",o.height()),o.data("margin_top",o.css("margin-top")),o.data("margin_right",o.css("margin-right")),o.data("margin_bottom",o.css("margin-bottom")),o.data("margin_left",o.css("margin-left")),o.data("padding_left",o.css("padding-left")),o.data("padding_right",o.css("padding-right")),o.data("padding_top",o.css("padding-top")),o.data("padding_bottom",o.css("padding-bottom")),o.data("border_left",o.css("border-left-width")),o.data("border_right",o.css("border-right-width")),o.data("border_top",o.css("border-top-width")),o.data("border_bottom",o.css("border-bottom-width")),o.data("font_size",o.css("font-size")),o.data("line_height",o.css("line-height")),o.data("opacity",1),t.isNumeric(o.css("opacity"))&&o.data("opacity",o.css("opacity")),o.data("transitionin"))for(var a=(o.data("transitionin")+"").split(";"),i=0;i<a.length;i++){var r=a[i].split(":");2==r.length&&o.data(r[0].replace(/ /g,"")+"in",r[1])}if(o.data("transitionout"))for(var s=(o.data("transitionout")+"").split(";"),i=0;i<s.length;i++){var n=s[i].split(":");2==n.length&&o.data(n[0].replace(/ /g,"")+"out",n[1])}"undefined"==typeof o.data("offsetxin")?o.data("offsetxin",0):o.data("offsetxin",parseFloat(o.data("offsetxin"))),"undefined"==typeof o.data("offsetyin")?o.data("offsetyin",0):o.data("offsetyin",parseFloat(o.data("offsetyin"))),"undefined"==typeof o.data("rotatein")?o.data("rotatein",0):o.data("rotatein",parseFloat(o.data("rotatein"))),"undefined"==typeof o.data("rotatexin")?o.data("rotatexin",0):o.data("rotatexin",parseFloat(o.data("rotatexin"))),"undefined"==typeof o.data("rotateyin")?o.data("rotateyin",0):o.data("rotateyin",parseFloat(o.data("rotateyin"))),"undefined"==typeof o.data("scalexin")?o.data("scalexin",1):o.data("scalexin",parseFloat(o.data("scalexin"))),"undefined"==typeof o.data("scaleyin")?o.data("scaleyin",1):o.data("scaleyin",parseFloat(o.data("scaleyin"))),"undefined"==typeof o.data("skewxin")?o.data("skewxin",0):o.data("skewxin",parseFloat(o.data("skewxin"))),"undefined"==typeof o.data("skewyin")?o.data("skewyin",0):o.data("skewyin",parseFloat(o.data("skewyin"))),"undefined"==typeof o.data("delayin")?o.data("delayin",0):o.data("delayin",parseFloat(o.data("delayin"))),"undefined"==typeof o.data("durationin")?o.data("durationin",800):o.data("durationin",parseFloat(o.data("durationin"))),"undefined"==typeof o.data("easingin")&&o.data("easingin","easeInOutExpo"),"undefined"==typeof o.data("perspectivein")?o.data("perspectivein",400):o.data("perspectivein",parseFloat(o.data("perspectivein"))),"undefined"==typeof o.data("transformoriginin")&&o.data("transformoriginin","50% 50% 0"),("false"==o.data("fadein")||0==o.data("fadein"))&&o.data("fadein",!1),"undefined"==typeof o.data("offsetxout")?o.data("offsetxout",0):o.data("offsetxout",parseFloat(o.data("offsetxout"))),"undefined"==typeof o.data("offsetyout")?o.data("offsetyout",0):o.data("offsetyout",parseFloat(o.data("offsetyout"))),"undefined"==typeof o.data("rotateout")?o.data("rotateout",0):o.data("rotateout",parseFloat(o.data("rotateout"))),"undefined"==typeof o.data("rotatexout")?o.data("rotatexout",0):o.data("rotatexout",parseFloat(o.data("rotatexout"))),"undefined"==typeof o.data("rotateyout")?o.data("rotateyout",0):o.data("rotateyout",parseFloat(o.data("rotateyout"))),"undefined"==typeof o.data("scalexout")?o.data("scalexout",1):o.data("scalexout",parseFloat(o.data("scalexout"))),"undefined"==typeof o.data("scaleyout")?o.data("scaleyout",1):o.data("scaleyout",parseFloat(o.data("scaleyout"))),"undefined"==typeof o.data("skewxout")?o.data("skewxout",0):o.data("skewxout",parseFloat(o.data("skewxout"))),"undefined"==typeof o.data("skewyout")?o.data("skewyout",0):o.data("skewyout",parseFloat(o.data("skewyout"))),"undefined"==typeof o.data("delayout")?o.data("delayout",0):o.data("delayout",parseFloat(o.data("delayout"))),"undefined"==typeof o.data("durationout")?o.data("durationout",400):o.data("durationout",parseFloat(o.data("durationout"))),"undefined"==typeof o.data("easingout")&&o.data("easingout","easeInOutExpo"),"undefined"==typeof o.data("perspectiveout")?o.data("perspectiveout",400):o.data("perspectiveout",parseFloat(o.data("perspectiveout"))),"undefined"==typeof o.data("transformoriginout")&&o.data("transformoriginout","50% 50% 0"),("false"==o.data("fadeout")||0==o.data("fadeout"))&&o.data("fadeout",!1),o.click(function(){o.data("anchored")===!0&&u.options.onCloudClick(o)}),o.hover(function(){o.data("anchored")===!0&&u.options.onCloudHover(o,!0)},function(){o.data("anchored")===!0&&u.options.onCloudHover(o,!1)})}),"hide"!=u.options.arrow.visibility){var _="";"show"!=u.options.arrow.visibility&&(_=" kr-hidden");var x=t('<a class="kr-prev-arrow kr-nav-arrow'+_+'" href="#" />').appendTo(f),O=t('<a class="kr-next-arrow kr-nav-arrow'+_+'" href="#" />').appendTo(f);u.options.arrow.imgPrevActivated&&u.options.arrow.imgPrevActivated.length>0&&t('<img src="'+u.options.arrow.imgPrevActivated+'" />').hide().appendTo(f),u.options.arrow.imgNextActivated&&u.options.arrow.imgNextActivated.length>0&&t('<img src="'+u.options.arrow.imgNextActivated+'" />').hide().appendTo(f),x.css({"background-image":"url("+u.options.arrow.imgPrev+")"}),O.css({"background-image":"url("+u.options.arrow.imgNext+")"}),r()?(x.css({"-ms-filter":'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+u.options.arrow.imgPrev+'", sizingMethod="scale")'}),O.css({"-ms-filter":'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+u.options.arrow.imgNext+'", sizingMethod="scale")'})):(x.css({"background-image":"url("+u.options.arrow.imgPrev+")"}),O.css({"background-image":"url("+u.options.arrow.imgNext+")"})),f.find(".kr-nav-arrow").css("width",0),f.find(".kr-nav-arrow").css("height",0),t(".kr-nav-arrow").on("click",function(o){o.preventDefault(),t(this).hasClass("kr-prev-arrow")?(2==u.options.numberOfSlides&&(u.options.direction="left"),e.cloudPrev()):t(this).hasClass("kr-next-arrow")&&(2==u.options.numberOfSlides&&(u.options.direction="right"),e.cloudNext())}),t(".kr-nav-arrow").hover(function(){t(this).hasClass("kr-prev-arrow")&&u.options.arrow.imgPrevActivated&&u.options.arrow.imgPrevActivated.length>0&&t(this).css({"background-image":"url("+u.options.arrow.imgPrevActivated+")"}),t(this).hasClass("kr-next-arrow")&&u.options.arrow.imgNextActivated&&u.options.arrow.imgNextActivated.length>0&&t(this).css({"background-image":"url("+u.options.arrow.imgNextActivated+")"})},function(){t(".kr-prev-arrow").css({"background-image":"url("+u.options.arrow.imgPrev+")"}),t(".kr-next-arrow").css({"background-image":"url("+u.options.arrow.imgNext+")"})})}if("bullet"==u.options.navType){var _="";"show"!=u.options.bullet.visibility&&(_=" kr-hidden");var T=t('<div class="kr-bullet-container'+_+'" />').appendTo(f);if(u.options.bullet.imgItemActivated&&u.options.bullet.imgItemActivated.length>0&&t('<img src="'+u.options.bullet.imgItemActivated+'" />').hide().appendTo(f),u.options.bullet.imgContainerLeft&&u.options.bullet.imgContainerLeft.length>0){var I=t('<a href="#" class="kr-bullet-left" />').appendTo(T);I.css({"background-image":"url("+u.options.bullet.imgContainerLeft+")"})}for(var B=0;B<u.options.numberOfSlides;B++){var S=t('<a href="#" class="kr-bullet" />').appendTo(T);S.data("ind",B),S.css({margin:u.options.bullet.itemMargin,opacity:u.options.bullet.itemOpacity,"background-image":"url("+u.options.bullet.imgItem+")"})}if(u.options.bullet.imgContainerRight&&u.options.bullet.imgContainerRight.length>0){var C=t('<a href="#" class="kr-bullet-right" />').appendTo(T);C.css({"background-image":"url("+u.options.bullet.imgContainerRight+")"})}t(".kr-bullet").on("click",function(o){o.preventDefault(),e.cloudTo(parseInt(t(this).data("ind"))+1)}),t(".kr-bullet-left, .kr-bullet-right").on("click",function(t){t.preventDefault()}),t(".kr-bullet").hover(function(){!t(this).hasClass("kr-activated")&&u.options.bullet.imgItemActivated&&u.options.bullet.imgItemActivated.length>0&&t(this).stop().css({"background-image":"url("+u.options.bullet.imgItemActivated+")"})},function(){!t(this).hasClass("kr-activated")&&u.options.bullet.imgItemActivated&&u.options.bullet.imgItemActivated.length>0&&t(this).stop().css({"background-image":"url("+u.options.bullet.imgItem+")"})})}if("thumb"==u.options.navType){var _="",F=t('<div class="kr-thumb-container" />').appendTo(f),L=t('<div class="kr-thumb-wrapper" />').appendTo(F),P=t('<div class="kr-thumb-inner" />').appendTo(L);"hover"==u.options.thumb.visibility&&F.children().andSelf().css({visibility:"hidden"});var M=0;M=parseInt(u.options.thumb.itemSize.width)>0?parseInt(u.options.thumb.itemSize.width):parseInt(u.options.thumb.itemSize.height)>0?parseInt(u.options.thumb.itemSize.height)*u.options.width/u.options.height:u.options.width/10;for(var R,Y=parseInt(u.options.thumb.itemSize.height)>0?parseInt(u.options.thumb.itemSize.height):M*u.options.height/u.options.width,N=0,z=0,B=0;B<u.options.numberOfSlides;B++){var A=u.options.thumb.imgNoThumb,X="cover";if(e.find(".kr-sky").eq(B).data("thumb"))A=e.find(".kr-sky").eq(B).data("thumb");else if(e.find(".kr-sky").eq(B).find(".sky-background img").length>0){var V=e.find(".kr-sky").eq(B).find(".sky-background img").eq(0);A=V.attr("src"),"contain"==V.data("size")&&(X="contain")}R=t('<a class="kr-thumb">&nbsp;</a>').appendTo(P),R.css({backgroundImage:"url("+A+")",backgroundSize:X,opacity:u.options.thumb.itemOpacity,borderWidth:u.options.thumb.itemBorderWidth,borderColor:u.options.thumb.itemBorderColor,borderStyle:"solid"}),R.parent("")&&r()&&R.css({background:"none",filter:'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+A.replace(/.*\s?url\([\'\"]?/,"").replace(/[\'\"]?\).*/,"")+'", sizingMethod="scale")',"-ms-filter":'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+A.replace(/.*\s?url\([\'\"]?/,"").replace(/[\'\"]?\).*/,"")+'", sizingMethod="scale")'}),R.data("ind",B),R.css({margin:u.options.thumb.itemMargin,width:M,height:Y}),N+=parseFloat(R.css("margin-left"))+R.width()+parseFloat(R.css("margin-right"))+parseInt(R.css("border-left-width"))+parseInt(R.css("border-right-width")),z+=parseFloat(R.css("margin-top"))+R.height()+parseFloat(R.css("margin-bottom"))+parseInt(R.css("border-top-width"))+parseInt(R.css("border-bottom-width"))}P.css("padding",u.options.thumb.containerPadding),L.css("background-color",u.options.thumb.containerBgColor),N+=parseInt(P.css("padding-left"))+parseInt(P.css("padding-right"));var Z=0;Z="auto"!=u.options.thumb.containerWidth&&t.isNumeric(parseInt(u.options.thumb.containerWidth))?-1!==(u.options.thumb.containerWidth+"").indexOf("%")?parseInt(u.options.thumb.containerWidth)/100*e.width():u.options.thumb.containerWidth:N>u.options.width?u.options.responsiveWidth:N,F.css({margin:"0 auto"}),F.data("width",parseInt(Z)),F.data("thumb_width",R.width()),F.data("thumb_height",R.height()),F.data("thumb_container_padding_top",parseInt(P.css("padding-top"))),F.data("thumb_container_padding_bottom",parseInt(P.css("padding-bottom"))),F.data("thumb_container_padding_left",parseInt(P.css("padding-left"))),F.data("thumb_container_padding_right",parseInt(P.css("padding-right"))),F.data("thumb_margin_top",parseInt(R.css("margin-top"))),F.data("thumb_margin_bottom",parseInt(R.css("margin-bottom"))),F.data("thumb_margin_left",parseInt(R.css("margin-left"))),F.data("thumb_margin_right",parseInt(R.css("margin-right"))),Draggable.create(t(".kr-thumb-inner"),{type:"x",edgeResistance:.65,bounds:t(".kr-thumb-wrapper"),cursor:"pointer",dragClickables:!0,throwProps:!0}),t(".kr-thumb").on("click",function(o){o.preventDefault(),e.cloudTo(parseInt(t(this).data("ind"))+1)})}t(window).resize(function(){u.pause(),TweenMax.killTweensOf(u.options.currentSky.find(".sky-background img")),u.options.carouselTimeline=null,u.options.currentSky.data("isBusy",!1),e.find(".kr-carousel").each(function(){TweenMax.killTweensOf(t(this))}),u.options.isBusy?u.options.needToRedrawSkin=!0:(u.redrawAll(u.options.currentSky),u.redrawSkin()),u.options.resizeTimeout=setTimeout(function(){u.redrawAll(u.options.currentSky),u.options.isVideoPlaying||u.resume(),null!=u.options.kenTween&&"undefined"!=typeof u.options.kenTween&&u.options.kenTween!==!1&&u.options.kenTween.kill(),clearTimeout(u.options.resizeTimeout)},100),u.options.timeouts.push(u.options.resizeTimeout),"thumb"==u.options.navType&&u.switchActiveNav()}),e.mouseenter(function(){u.options.mouseEntered||(u.options.mouseEntered=!0,"hover"==u.options.arrow.visibility&&(r()?e.find(".kr-nav-arrow").removeClass("kr-hidden"):e.find(".kr-nav-arrow").stop(!0,!0).fadeIn(u.options.constant.navFadeDuration)),"hover"==u.options.bullet.visibility&&(r()?e.find(".kr-bullet-container").removeClass("kr-hidden"):e.find(".kr-bullet-container").stop(!0,!0).fadeIn(u.options.constant.navFadeDuration)),"hover"==u.options.thumb.visibility&&(e.find(".kr-thumb-container *").css("visibility","visible"),TweenMax.fromTo(e.find(".kr-thumb-container"),u.options.constant.navFadeDuration/1e3,{opacity:0,visibility:"visible"},{opacity:1})),u.options.onHoverPause&&(u.options.paused=!0,u.pause()))}),e.mouseleave(function(){u.options.mouseEntered=!1,"hover"==u.options.arrow.visibility&&(r()?e.find(".kr-nav-arrow").addClass("kr-hidden"):e.find(".kr-nav-arrow").stop(!0,!0).fadeOut(u.options.constant.navFadeDuration)),"hover"==u.options.bullet.visibility&&(r()?e.find(".kr-bullet-container").addClass("kr-hidden"):e.find(".kr-bullet-container").stop(!0,!0).fadeOut(u.options.constant.navFadeDuration)),"hover"==u.options.thumb.visibility&&TweenMax.fromTo(e.find(".kr-thumb-container"),u.options.constant.navFadeDuration/1e3,{opacity:1},{opacity:0,onComplete:function(){e.find(".kr-thumb-container").children().andSelf().css("visibility","hidden")}}),u.options.onHoverPause&&u.options.paused&&(u.options.paused=!1,u.options.video.pauseWhilePlaying?u.options.isVideoPlaying||(u.resume(),u.options.onResume()):(u.resume(),u.options.onResume()))}),u.options.skyIndexArray=new Array;for(var B=0;B<u.options.numberOfSlides;B++)u.options.skyIndexArray.push(B);u.options.keyNavigation&&t(document).keydown(function(t){u.options.isBusy||(39==t.keyCode?e.cloudNext():37==t.keyCode&&e.cloudPrev())}),u.redrawContainer();var D=0;f.data("loaded")||f.find("*").andSelf().each(function(){(t(this).is("img")||t(this).css("background-image")&&-1!=(t(this).css("background-image")+"").indexOf("url"))&&D++}),D>0?(u.options.isBusy=!0,u.options.loader.show(),f.find("*").andSelf().each(function(){var o="",a=t(this);if(t(this).data("loaded")||(t(this).is("img")?o=t(this).attr("src"):t(this).css("background-image")&&-1!=(t(this).css("background-image")+"").indexOf("url")&&(o=t(this).css("background-image").replace(/^url\([\"\']?/,"").replace(/[\"\']?\)$/,""))),""!=o){var i=new Image;i.onload=function(){if((a.hasClass("kr-nav-arrow")||a.hasClass("kr-bullet")||a.hasClass("kr-bullet-left")||a.hasClass("kr-bullet-right"))&&(a.width()<=0&&(a.height()<=0?a.css("width",i.width):a.css("width",a.height()*i.width/i.height)),a.height()<=0&&(a.width()<=0?a.css("height",i.height):a.css("height",a.width()*i.height/i.width)),a.data("width",a.width()),a.data("height",a.height())),D--,0==D){var t=new Image;t.onload=function(){if(u.options.loader.data("width",t.width),u.options.loader.data("height",t.height),f.data("loaded",!0),u.options.isBusy=!1,u.options.loader.hide(),"hide"!=u.options.arrow.visiblitiy){var o=parseInt(f.find(".kr-nav-arrow").width()),a=parseInt(f.find(".kr-nav-arrow").height()),i=f.height()/2;"thumb"==u.options.navType&&"show"==u.options.thumb.visibility&&(i=0),f.find(".kr-nav-arrow").css({top:"50%",marginTop:-a/2}),"outside"==u.options.arrow.positionOffset?u.options.arrow.positionOffset=-o:"inside"==u.options.arrow.positionOffset&&(u.options.arrow.positionOffset=0),f.find(".kr-prev-arrow").css({left:u.options.arrow.positionOffset}).data("left",u.options.arrow.positionOffset),f.find(".kr-next-arrow").css({right:u.options.arrow.positionOffset}).data("right",u.options.arrow.positionOffset)}if("bullet"==u.options.navType){var r=f.find(".kr-bullet-container"),s=r.find(".kr-bullet").eq(0),n=(s.width()+parseInt(s.css("margin-left"))+parseInt(s.css("margin-right")))*r.find(".kr-bullet").length,l=s.height()+parseInt(s.css("margin-top"))+parseInt(s.css("margin-bottom"));r.find(".kr-bullet-left").length>0&&(n+=r.find(".kr-bullet-left").eq(0).width()),r.find(".kr-bullet-right").length>0&&(n+=r.find(".kr-bullet-right").eq(0).width()),("top_center"==u.options.bullet.position||"bottom_center"==u.options.bullet.position)&&(r.css({marginLeft:-n/2}),r.data("margin_left",-n/2)),r.data("width",n),r.data("height",l),r.data("bullet_width",s.width()),r.data("bullet_height",s.height()),r.data("bullet_margin_left",parseInt(s.css("margin-left"))),r.data("bullet_margin_right",parseInt(s.css("margin-right"))),r.data("bullet_margin_top",parseInt(s.css("margin-top"))),r.data("bullet_margin_bottom",parseInt(s.css("margin-bottom"))),r.find(".kr-bullet-left").length>0?r.data("bullet_left_width",r.find(".kr-bullet-left").eq(0).width()):r.data("bullet_left_width",0),r.find(".kr-bullet-right").length>0?r.data("bullet_right_width",r.find(".kr-bullet-right").eq(0).width()):r.data("bullet_right_width",0)}e.cloudNext()},t.src=u.options.loader.attr("src")}},i.src=o}})):e.cloudNext(),u.options.onInit()},u.redrawContainer=function(){var o="undefined"!=typeof e.parent().offset()?-e.parent().offset().left-parseInt(e.parent().css("padding-left")):0,a="undefined"!=typeof e.parent().offset()?e.parent().offset().top+parseInt(e.parent().css("padding-top")):0;e.parents("*").length>0&&e.parents("*").each(function(){return"fixed"==t(this).css("position")?(o="undefined"!=typeof e.parent().position()?-e.parent().position().left-parseInt(e.parent().css("padding-left")):0,a="undefined"!=typeof e.parent().position()?e.parent().position().top+parseInt(e.parent().css("padding-top")):0,!1):void 0}),u.options.fullWidth&&t(window).width()<=parseInt(u.options.width)&&(u.options.responsive=u.options.originalResponsive&&!0,u.options.responsiveWidth=u.options.width),u.options.responsive?(u.options.responsiveRate=Math.min(1,e.parent().width()/parseInt(u.options.responsiveWidth)),u.options.fullWidth&&t(window).width()<=parseInt(u.options.width)&&(u.options.responsiveRate=Math.min(1,t(window).width()/parseInt(u.options.responsiveWidth)))):u.options.responsiveRate=1,u.options.fullSize?(t(window).width()>parseInt(u.options.width)?(u.options.responsive=!1,u.options.responsiveRate=1,u.options.fullSizeHeight=parseInt(u.options.responsiveHeight)+(u.options.responsiveHeight+"").replace(/\d+/g,"")):1==u.options.responsive?(u.options.responsive=u.options.originalResponsive&&!0,u.options.fullSizeHeight=t(window).width()*parseInt(u.options.height)/parseInt(u.options.width)):(u.options.responsiveRate=1,u.options.fullSizeHeight=parseInt(u.options.responsiveHeight)+(u.options.responsiveHeight+"").replace(/\d+/g,"")),e.css({width:t(window).width(),height:t(window).height()-a,marginLeft:o,overflow:"hidden"})):u.options.fullWidth&&t(window).width()>parseInt(u.options.width)?(u.options.responsive=!1,u.options.responsiveRate=1,e.css({width:t(window).width(),height:parseInt(u.options.responsiveHeight)+(u.options.responsiveHeight+"").replace(/\d+/g,""),marginLeft:o,overflow:"hidden"})):u.options.fullWidth?u.options.responsive&&e.css({width:t(window).width(),height:t(window).width()*parseInt(u.options.height)/parseInt(u.options.width),marginLeft:o,overflow:"hidden"}):e.css({width:u.options.responsiveRate*parseInt(u.options.responsiveWidth)+(u.options.responsiveWidth+"").replace(/\d+/g,""),height:u.options.responsiveRate*parseInt(u.options.responsiveHeight)+(u.options.responsiveHeight+"").replace(/\d+/g,"")}),u.options.slideTransitionNeeded||e.fadeIn(),u.options.fullWidth&&(u.options.fullWidth&&t(window).width()>parseInt(u.options.width)?(e.css({marginLeft:o}),e.css({width:t(window).width()})):u.options.fullWidth&&(u.options.fullSize?(e.css({marginLeft:o}),e.css({width:t(window).width(),height:t(window).height()-a}),u.options.fullSizeHeight=t(window).width()*parseInt(u.options.height)/parseInt(u.options.width)):(e.css({marginLeft:o}),u.options.responsive&&e.css({width:t(window).width(),height:t(window).width()*parseInt(u.options.height)/parseInt(u.options.width)}))));var i=parseInt(u.options.loader.data("width"))*u.options.responsiveRate,r=parseInt(u.options.loader.data("height"))*u.options.responsiveRate;u.options.loader.css({width:i,height:r,marginLeft:-i/2,marginTop:-r/2})},u.redrawSkin=function(){f.find(".kr-bullet-container").each(function(){var e=t(this),o=(u.options.bullet.responsiveLevel-1+u.options.responsiveRate)/u.options.bullet.responsiveLevel;switch(u.options.bullet.position){case"top_left":e.css({left:parseInt(u.options.bullet.horizontalOffset)*o,top:parseInt(u.options.bullet.verticalOffset)*o});break;case"top_center":e.css({left:"50%",top:parseInt(u.options.bullet.verticalOffset)*o,marginLeft:o*e.data("margin_left")+parseInt(u.options.bullet.horizontalOffset)*u.options.responsiveRate});break;case"top_right":e.css({right:parseInt(u.options.bullet.horizontalOffset)*o,top:parseInt(u.options.bullet.verticalOffset)*o});break;case"bottom_left":e.css({left:parseInt(u.options.bullet.horizontalOffset)*o,bottom:parseInt(u.options.bullet.verticalOffset)*o});break;case"bottom_right":e.css({right:parseInt(u.options.bullet.horizontalOffset)*o,bottom:parseInt(u.options.bullet.verticalOffset)*o});break;default:e.css({left:"50%",bottom:parseInt(u.options.bullet.verticalOffset)*o,marginLeft:o*e.data("margin_left")+parseInt(u.options.bullet.horizontalOffset)*u.options.responsiveRate})}e.find(".kr-bullet").css({width:o*e.data("bullet_width"),height:o*e.data("bullet_height"),marginLeft:o*e.data("bullet_margin_left"),marginRight:o*e.data("bullet_margin_right"),marginTop:o*e.data("bullet_margin_top"),marginBottom:o*e.data("bullet_margin_bottom")}),e.find(".kr-bullet-left").css({width:o*e.data("bullet_left_width"),height:o*e.data("bullet_height")}),e.find(".kr-bullet-right").css({width:o*e.data("bullet_right_width"),height:o*e.data("bullet_height")})}),f.find(".kr-thumb-container").each(function(){var e=t(this),o=e.find(".kr-thumb-inner"),a=(u.options.thumb.responsiveLevel-1+u.options.responsiveRate)/u.options.thumb.responsiveLevel,i=Math.round(a*e.data("thumb_width")),r=Math.round(a*e.data("thumb_height")),s=Math.round(a*e.data("thumb_container_padding_left")),n=Math.round(a*e.data("thumb_container_padding_right")),l=Math.round(a*e.data("thumb_container_padding_top")),d=Math.round(a*e.data("thumb_container_padding_bottom")),p=Math.round(a*e.data("thumb_margin_left")),c=Math.round(a*e.data("thumb_margin_right")),h=Math.round(a*e.data("thumb_margin_top")),g=Math.round(a*e.data("thumb_margin_bottom")),f=(i+p+c+parseInt(e.find(".kr-thumb").css("border-left-width"))+parseInt(e.find(".kr-thumb").css("border-right-width")))*u.options.numberOfSlides,m=r+h+g+parseInt(e.find(".kr-thumb").css("border-top-width"))+parseInt(e.find(".kr-thumb").css("border-bottom-width")),v=u.options.responsiveRate*e.data("width"),k=0;k="inside"==u.options.thumb.positionOffset?-m:"outside"==u.options.thumb.positionOffset?0:a*parseInt(u.options.thumb.positionOffset),e.find(".kr-thumb").css({width:i,height:r,marginLeft:p,marginRight:c,marginTop:h,marginBottom:g,lineHeight:r+"px"}),o.css({width:f,height:m,paddingLeft:s,paddingRight:n,paddingTop:l,paddingBottom:d}),e.css({width:v,height:m+l+d,maxWidth:u.options.width,marginTop:k})}),f.find(".kr-nav-arrow").each(function(){var e=t(this),o=(u.options.arrow.responsiveLevel-1+u.options.responsiveRate)/u.options.arrow.responsiveLevel;e.css({width:o*parseInt(e.data("width")),height:o*parseInt(e.data("height")),marginLeft:o*parseInt(e.data("margin_left")),right:o*parseInt(e.data("right")),bottom:o*parseInt(e.data("bottom"))});var a=(e.width(),e.height());-1===(e.data("left")+"").indexOf("%")&&e.css({left:o*parseInt(e.data("left"))}),e.css({top:"50%",marginTop:-a/2})})},u.redrawAll=function(o){if(!u.options.isBusy){u.redrawContainer();var a=parseInt(parseFloat(g.css("width"))),i=u.options.responsiveRate*u.options.containerPaddingLeft,r=u.options.responsiveRate*u.options.containerPaddingRight,s=u.options.responsiveRate*u.options.containerPaddingTop,n=u.options.responsiveRate*u.options.containerPaddingBottom,l=e.width()-i-r,d=e.height()-s-n;g.css({width:l,height:d,paddingLeft:i,paddingRight:r,paddingTop:s,paddingBottom:n}),e.find(".kr-sky").css({width:l,height:d});var p=parseInt(parseFloat(g.css("width"))),c=parseInt(u.options.progressBar.width());u.options.progressBar.css({width:c*p/a,left:i}),u.options.progressBar.css("top"==u.options.progressBarPosition?{top:s}:{bottom:n}),(u.options.responsive||u.options.fullWidth)&&o.children().each(function(){var e=t(this);e.hasClass("sky-background")||(e.hasClass("kr-clouds")?e.find("*").each(function(){t(this).hasClass("kr-carousel-wrapper")||t(this).hasClass("kr-carousel")||t(this).hasClass("kr-carousel-img")||t(this).hasClass("kr-carousel-left-arrow")||t(this).hasClass("kr-carousel-right-arrow")||u.redrawCloud(t(this))}):u.redrawCloud(e))}),"thumb"==u.options.navType&&"show"==u.options.thumb.visibility&&e.css({marginBottom:parseInt(e.data("margin-bottom"))+f.height()-parseInt(f.css("margin-top"))}),e.find(".sky-background").css({width:l,height:d});var h=o.find(".sky-background img"),m=parseFloat(g.css("width")),v=h.data("background_height")*parseFloat(g.css("width"))/h.data("background_width");if("contain"==h.data("size")?h.data("background_width")/h.data("background_height")<parseFloat(g.css("width"))/parseFloat(g.css("height"))&&(m=h.data("background_width")*parseFloat(g.css("height"))/h.data("background_height"),v=parseFloat(g.css("height"))):h.data("background_width")/h.data("background_height")>parseFloat(g.css("width"))/parseFloat(g.css("height"))&&(m=h.data("background_width")*parseFloat(g.css("height"))/h.data("background_height"),v=parseFloat(g.css("height"))),"undefined"!=typeof o.data("ken-positionfrom")){var k=parseFloat(o.data("ken-scalefrom"))>0?parseFloat(o.data("ken-scalefrom")):1,w=parseFloat(o.data("ken-scaleto"))>0?parseFloat(o.data("ken-scaleto")):1;o.data("width_to_rate",m*w/parseFloat(g.css("width"))),o.data("height_to_rate",v*w/parseFloat(g.css("width"))),m*=k,v*=k;
var b={};b.width=m,b.height=v,b.scale=1,b.x=0,b.y=0,b.top=(o.data("ken-positionfrom")+"").indexOf("top")>=0?0:(o.data("ken-positionfrom")+"").indexOf("bottom")>=0?parseFloat(g.css("height"))-v:parseInt(o.data("ken-positionfrom").split(" ")[0])>=0?(parseFloat(g.css("height"))-v)*parseInt(o.data("ken-positionfrom").split(" ")[0])/100:parseInt(o.data("ken-positionfrom").split(",")[0])>=0?(parseFloat(g.css("height"))-v)*parseInt(o.data("ken-positionfrom").split(",")[0])/100:(parseFloat(g.css("height"))-v)/2,b.left=(o.data("ken-positionfrom")+"").indexOf("left")>=0?0:(o.data("ken-positionfrom")+"").indexOf("right")>=0?parseFloat(g.css("width"))-m:parseInt(o.data("ken-positionfrom").split(" ")[1])>=0?(parseFloat(g.css("width"))-m)*parseInt(o.data("ken-positionfrom").split(" ")[1])/100:parseInt(o.data("ken-positionfrom").split(",")[1])>=0?(parseFloat(g.css("width"))-m)*parseInt(o.data("ken-positionfrom").split(",")[1])/100:(parseFloat(g.css("width"))-m)/2,b.rotation=0,o.data("bg_width",m),o.data("bg_height",v),TweenMax.set(h,{css:b})}else h.css({width:m,height:v,left:-(m-parseFloat(g.css("width")))/2,top:-(v-parseFloat(g.css("height")))/2,position:"absolute"})}u.options.onRedraw()},u.redrawCloud=function(o){var a=(u.options.cloudResponsiveLevel-1+u.options.responsiveRate)/u.options.cloudResponsiveLevel,i=o.data("left")?o.data("left"):"0",s=o.data("top")?o.data("top"):"0",n=o.data("width")>0?o.data("width"):"",l=o.data("height")>0?o.data("height"):"",d=parseInt(o.data("font_size")),p=parseInt(o.data("line_height")),c=o.data("margin_top")?parseInt(o.data("margin_top")):0,h=o.data("margin_right")?parseInt(o.data("margin_right")):0,f=o.data("margin_bottom")?parseInt(o.data("margin_bottom")):0,m=o.data("margin_left")?parseInt(o.data("margin_left")):0,v=o.data("padding_top")?parseInt(o.data("padding_top")):0,k=o.data("padding_right")?parseInt(o.data("padding_right")):0,w=o.data("padding_bottom")?parseInt(o.data("padding_bottom")):0,b=o.data("padding_left")?parseInt(o.data("padding_left")):0,y=o.data("border_top")?parseInt(o.data("border_top")):0,_=o.data("border_right")?parseInt(o.data("border_right")):0,x=o.data("border_bottom")?parseInt(o.data("border_bottom")):0,O=o.data("border_left")?parseInt(o.data("border_left")):0;if("img"==o.prop("tagName").toLowerCase()&&0==o.next().length&&o.parent().hasClass("kr-cloud")&&(n=""!=o[0].style.width?-1===o[0].style.width.indexOf("%")?o.data("width"):o[0].style.width:""!=o.parent()[0].style.width?"100%":o.data("width"),l=""!=o[0].style.height?-1===o[0].style.height.indexOf("%")?o.data("height"):o[0].style.height:""!=o.parent()[0].style.height?"100%":o.data("height")),o.hasClass("kr-carousel-container")){var T=o.closest(".kr-sky").data("carousel"),I=o.find(".kr-carousel:eq(0)"),B=I.find("img").data("width"),S=I.find("img").data("height");y=I.data("border_top")?parseInt(I.data("border_top")):0,_=I.data("border_right")?parseInt(I.data("border_right")):0,x=I.data("border_bottom")?parseInt(I.data("border_bottom")):0,O=I.data("border_left")?parseInt(I.data("border_left")):0,parseInt(I.data("width"))&&parseInt(I.data("height"))?(B=parseInt(o.closest(".kr-sky").data("carousel").itemSize.width),S=parseInt(I.data("height"))*parseInt(o.closest(".kr-sky").data("carousel").itemSize.width)/parseInt(I.data("width"))):parseInt(I.data("width"))?(B=parseInt(I.data("width")),S=I.find("img").data("height")*B/I.find("img").data("width")):parseInt(I.data("height"))&&(S=parseInt(I.data("height")),B=I.find("img").data("width")*S/I.find("img").data("height")),"circ"==e.find(".kr-carousel-container").data("rect_circ")&&(S=B),o.find(".kr-carousel img").each(function(){var e=t(this);if(e.data("width")/e.data("height")>=B/S){var o=parseInt(e.data("width"))*S/e.data("height")*a,i=S*a;e.css({width:o,height:i,marginTop:0,marginLeft:-(o-B*a)/2})}else{var o=B*a,i=parseInt(e.data("height"))*B/e.data("width")*a;e.css({width:o,height:i,marginLeft:0,marginTop:-(i-S*a)/2})}}),B*=a,S*=a,o.find(".kr-carousel").css({top:0,width:B,height:S,"border-top-width":y*a+"px","border-right-width":_*a+"px","border-bottom-width":x*a+"px","border-left-width":O*a+"px"});var C=o.find(".kr-carousel").length,F=o.closest(".kr-sky").data("current_carousel");if("3d"==T.type.toLowerCase()&&C>0){for(var L=parseFloat(T.inclination),i=parseFloat(g.css("width"))/2-B/2,P=parseFloat(T.radius)*a,M=parseFloat(T.recedeLevel)>0?parseFloat(T.recedeLevel):1,R=P/M,Y=Math.floor(C/2),N=C%2,z=0;C>z;z++){var A,X=o.find(".kr-carousel").eq(z),V=(z+(C-F))%C,Z=2*Math.PI/C*V;A=Math.abs(z-F)>Y?Y-(Math.abs(z-F)%Y==0?Y:Math.abs(z-F)%Y)+N:Math.abs(z-F),A=Math.max(0,A-1);var D="";Y>V?D="left":V>Y&&(D="right");var W=T.level[A],Q={top:0,left:i,x:-Math.sin(Z)*P,z:Math.cos(Z)*R-R,zIndex:Y-A,transformPerspective:"auto"==T.perspective?B:parseInt(T.perspective)};if(0==V)X.addClass("kr-current-carousel"),Q.opacity=1,Q.rotationX=0,Q.rotationY=0,Q.rotationZ=0;else if(Q.opacity=W.opacity,Q.scale=W.scale,Q.rotationX=W.rotationX,"right"==D)Q.rotationY=-W.rotationY,Q.rotationZ=-W.rotationZ;else if("left"==D)Q.rotationY=W.rotationY,Q.rotationZ=W.rotationZ;else{var H=Math.abs(T.level[A-1].rotationY);H>0&&180>H?Q.rotationY=-180:H>180&&360>H?Q.rotationY=-360:H>360&&540>H&&(Q.rotationY=-540),Q.rotationZ=0}TweenMax.set(X,{css:Q})}TweenMax.set(t(".kr-carousel-wrapper"),{css:{rotationX:-L,y:Math.tan(Math.PI*L/180)*R/2,perspective:"auto"==T.perspective?1e3:parseInt(T.perspective),transformStyle:"preserve-3d"}})}else for(var Y=Math.floor(C/2),F=o.closest(".kr-sky").data("current_carousel"),N=C%2,z=0;C>z;z++){var D,A,X=o.find(".kr-carousel").eq(z);if(Math.abs(z-F)>Y?(A=Y-(Math.abs(z-F)%Y==0?Y:Math.abs(z-F)%Y)+N,D=z-F>0?"left":"right"):(A=Math.abs(z-F),D=z-F>0?"right":"left"),X.css({"z-index":Y-A}),0==A)TweenMax.set(X.addClass("kr-current-carousel"),{css:{top:0,left:(parseFloat(g.css("width"))-B)/2,scale:r()?.999:1,opacity:1,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:"auto"==T.perspective?B:parseInt(T.perspective)}});else{var W=T.level[A-1],q=B*W.scale;if("right"==D?TweenMax.set(X,{css:{scale:W.scale,opacity:W.opacity,rotationX:W.rotationX,rotationY:-W.rotationY,rotationZ:-W.rotationZ,transformPerspective:"auto"==T.perspective?q:parseInt(T.perspective)}}):TweenMax.set(X,{css:{scale:W.scale,opacity:W.opacity,rotationX:W.rotationX,rotationY:W.rotationY,rotationZ:W.rotationZ,transformPerspective:"auto"==T.perspective?q:parseInt(T.perspective)}}),(T.overlay+"").indexOf("%")>0||(T.overlay=parseInt(T.overlay)*a/B*100+"%"),"left"==D){for(var i=parseFloat(g.css("width"))/2-B/2,E=1;A>=E;E++)i-=-(1==E?0:B*(1-T.level[E-2].scale)/2)+B*T.level[E-1].scale*(100-parseInt(T.overlay))/100+B*(1-T.level[E-1].scale)/2;TweenMax.set(X,{css:{left:i}})}else{for(var i=parseFloat(g.css("width"))/2-B/2,E=1;A>=E;E++)i+=(1==E?B:B*T.level[E-2].scale+B*(1-T.level[E-2].scale)/2)-B*T.level[E-1].scale*parseInt(T.overlay)/100-B*(1-T.level[E-1].scale)/2;TweenMax.set(X,{css:{left:i}})}}X.find("img").css("-webkit-box-reflect")&&0!=X.find("img").css("-webkit-box-reflect").length&&(X.css("-webkit-box-reflect",X.find("img").css("-webkit-box-reflect")),X.find("img").css("-webkit-box-reflect","none"))}var s;if(s="top"==T.position?0:"bottom"==T.position?parseFloat(g.css("height"))-S:"center"==T.position?(parseFloat(g.css("height"))-S)/2:(T.position+"").indexOf("%")>0?parseFloat(g.css("height"))*parseInt(T.position)/100:parseInt(T.position)>=0?parseInt(T.position)*a:(parseFloat(g.css("height"))-S)/2,o.css({width:parseFloat(g.css("width")),height:S,top:s,left:parseFloat(o.data("left"))*a}),o.find(".kr-carousel-wrapper").css({width:parseFloat(g.css("width")),height:S}),"hide"!=T.arrow.visibility){var j=(T.arrow.responsiveLevel-1+a)/T.arrow.responsiveLevel;o.find(".kr-carousel-left-arrow").css({width:o.find(".kr-carousel-left-arrow img").data("width")*j,height:o.find(".kr-carousel-left-arrow img").data("height")*j}),o.find(".kr-carousel-right-arrow").css({width:o.find(".kr-carousel-right-arrow img").data("width")*j,height:o.find(".kr-carousel-right-arrow img").data("height")*j}),"auto"==T.arrow.position?(o.find(".kr-carousel-left-arrow").css({left:(parseFloat(g.css("width"))-B)/2-o.find(".kr-carousel-left-arrow").width(),top:(o.height()-o.find(".kr-carousel-left-arrow").width())/2}),o.find(".kr-carousel-right-arrow").css({left:(parseFloat(g.css("width"))+B)/2+2*parseInt(I.css("border-right-width")),top:(o.height()-o.find(".kr-carousel-right-arrow").width())/2})):(T.arrow.position+"").indexOf("%")>0?(o.find(".kr-carousel-left-arrow").css({left:parseFloat(g.css("width"))*parseInt(T.arrow.position)/100-o.find(".kr-carousel-left-arrow").width()/2}),o.find(".kr-carousel-right-arrow").css({left:parseFloat(g.css("width"))-parseFloat(g.css("width"))*parseInt(T.arrow.position)/100-o.find(".kr-carousel-right-arrow").width()/2})):parseInt(T.arrow.position)>=0?(o.find(".kr-carousel-left-arrow").css({left:parseInt(T.arrow.position)*a-o.find(".kr-carousel-left-arrow").width()/2}),o.find(".kr-carousel-right-arrow").css({left:parseFloat(g.css("width"))-parseInt(T.arrow.position)*a-o.find(".kr-carousel-right-arrow").width()/2})):(o.find(".kr-carousel-left-arrow").css({left:(parseFloat(g.css("width"))-B)/2-o.find(".kr-carousel-left-arrow").width()}),o.find(".kr-carousel-right-arrow").css({left:(parseFloat(g.css("width"))+B)/2})),o.find(".kr-carousel-left-arrow").css({top:(o.height()-o.find(".kr-carousel-left-arrow").width())/2}),o.find(".kr-carousel-right-arrow").css({top:(o.height()-o.find(".kr-carousel-right-arrow").width())/2})}}else{if(t.isNumeric(parseFloat(o.data("right")))){var $=o.data("right");o.css(-1!=$.indexOf("%")?{right:$,left:"auto"}:u.options.responsive?{right:parseInt($)*a,left:"auto"}:{right:parseInt($)+(parseFloat(g.css("width"))-parseFloat(u.options.width))/2,left:"auto"})}else o.css(-1!=i.indexOf("%")?{left:i}:u.options.responsive?{left:parseInt(i)*a}:{left:parseInt(i)+(parseFloat(g.css("width"))-parseFloat(u.options.width))/2});if(t.isNumeric(parseFloat(o.data("bottom")))){var G=o.data("bottom");if(-1!=G.indexOf("%"))o.css({bottom:G,top:"auto"});else{var K=parseFloat(u.options.fullSizeHeight)>0?(e.height()-parseFloat(u.options.fullSizeHeight))/2:0;o.css({bottom:K+parseFloat(G)*a,top:"auto"})}}else if(-1!=s.indexOf("%"))o.css({top:s});else{var U=parseFloat(u.options.fullSizeHeight)>0?(e.height()-parseFloat(u.options.fullSizeHeight))/2:0;o.css({top:U+parseFloat(s)*a})}t.isNumeric(n)?o.css({width:parseInt(n)*a}):""!=n.trim()&&o.css({width:n}),t.isNumeric(l)?o.css({height:parseInt(l)*a}):""!=l.trim()&&o.css({height:l})}o.css({"font-size":d*a+"px","line-height":p*a+"px","margin-top":c*a+"px","margin-right":h*a+"px","margin-left":m*a+"px","margin-bottom":f*a+"px","padding-top":v*a+"px","padding-right":k*a+"px","padding-bottom":w*a+"px","padding-left":b*a+"px","border-top-width":y*a+"px","border-right-width":_*a+"px","border-bottom-width":x*a+"px","border-left-width":O*a+"px"}),o.find(" > iframe, > video, > audio").each(function(){var e=t(this),i=o.data("width")?parseInt(o.data("width"))*a:0,r=o.data("height")?parseInt(o.data("height"))*a:0;o.css({width:i,height:r}),e.attr("width",i),e.attr("height",r)})},u.resume=function(){if(!u.options.isBusy&&u.options.autoSlide)if(u.options.currentSky.find(".kr-carousel-container").length>0&&"slide"!=u.options.autoSlideCarousel&&("undefined"==typeof u.options.carouselRepeated||null==u.options.carouselRepeated||!u.options.carouselRepeated)){var t=u.options.currentSky.data("carousel"),o=parseInt(t.delay)*(parseFloat(g.css("width"))-u.options.progressBar.width())/parseFloat(g.css("width"));0==t.delay&&(u.options.currentSky.data("carousel-started")?o=0:(o=1,u.options.currentSky.data("carousel-started",!0))),u.options.progressBar.hasClass("kr-hidden")||u.options.progressBar.show(),TweenMax.to(u.options.progressBar,o/1e3,{css:{width:parseFloat(g.css("width"))},ease:Linear.easeNone,onComplete:function(){e.find(".cloud-wrapper").length>0&&(u.options.progressBar.css("width",0),"combine"==u.options.autoSlideCarousel&&(u.options.carouselShowed++,u.options.carouselShowed==u.options.currentSky.find(".kr-carousel").length-1&&(u.options.carouselRepeated=!0,u.options.carouselShowed=0)),u.flowCarouselTo(t.direction))}})}else if(u.options.numberOfSlides>1){var o=parseInt(e.find(".sky-opened").data("duration"))*(parseFloat(g.css("width"))-u.options.progressBar.width())/parseFloat(g.css("width"));u.options.progressBar.hasClass("kr-hidden")||u.options.progressBar.show(),TweenMax.to(u.options.progressBar,o/1e3,{css:{width:parseFloat(g.css("width"))},ease:Linear.easeNone,onComplete:function(){e.find(".cloud-wrapper").length>0&&(u.options.progressBar.css("width",0),u.flowTo("right"),"combine"==u.options.autoSlideCarousel&&(u.options.carouselRepeated=!1,u.options.carouselShowed=0))}})}},u.pause=function(){TweenMax.isTweening(u.options.progressBar)&&TweenMax.killTweensOf(u.options.progressBar),u.options.onPause()},u.kill=function(){TweenMax.killAll();for(var t=0;t<u.options.timeouts.length;t++)clearTimeout(u.options.timeouts);u.options.timeouts.length=0},u.flowTo=function(o){var a=0;if(u.options.isBusy=!0,"number"!=typeof o)if(u.options.shuffleMode)if(!u.options.slideTransitionNeeded&&d.startSlideNo>=0)o=u.options.startSlideNo;else{var i=u.options.skyIndexArray.slice(0);i.splice(u.options.currentSkyNo,1),o=i[Math.floor(Math.random()*i.length)]}else if("left"==o){var r=u.options.currentSkyNo-1;0==u.options.currentSkyNo&&(r=u.options.numberOfSlides-1),o=r}else{var s=u.options.currentSkyNo+1;u.options.currentSkyNo==u.options.numberOfSlides-1&&(s=0),o=s}e.css("visibility","visible"),TweenMax.killTweensOf(u.options.progressBar),u.options.progressBar.css("width",0),u.options.upcomingSkyNo=o,u.options.upcomingSky=e.find(".kr-sky").eq(u.options.upcomingSkyNo);var a=0;u.options.upcomingSky.data("loaded")||u.options.upcomingSky.find("*").andSelf().each(function(){(t(this).is("img")||t(this).css("background-image")&&-1!=(t(this).css("background-image")+"").indexOf("url"))&&a++}),a>0?(u.options.isBusy=!0,u.options.loader.show(),u.options.upcomingSky.find("*").andSelf().each(function(){var e=null,o=t(this);if(t(this).data("loaded")||(t(this).is("img")?(u.options.lazyImageLoad&&t(this).attr("src",t(this).data("src")),e=t(this).attr("src")):t(this).css("background-image")&&-1!=(t(this).css("background-image")+"").indexOf("url")&&(e=t(this).css("background-image").replace(/^url\([\"\']?/,"").replace(/[\"\']?\)$/,""))),null!=e){var i=new Image;i.onload=function(){(!o.data("width")||o.data("width")<=0||"auto"==o.data("width"))&&(o.data("height")>0?o.data("width",o.data("height")*i.width/i.height):o.data("width",i.width)),(!o.data("height")||o.data("height")<=0||"auto"==o.data("height"))&&(o.data("width")>0?o.data("height",o.data("width")*i.height/i.width):o.data("height",i.height)),o.parent().hasClass("sky-background")&&(o.data("background_width",i.width),o.data("background_height",i.height)),a--,0==a&&(u.options.upcomingSky.data("loaded",!0),u.options.upcomingSky.find()&&(u.options.isBusy=!1),u.options.loader.hide(),u.options.slideTransitionNeeded||(u.redrawAll(u.options.upcomingSky),u.redrawSkin()),u.fly())},i.src=e}})):(u.options.slideTransitionNeeded||(u.redrawAll(u.options.upcomingSky),u.redrawSkin()),u.fly())},u.flowCarouselTo=function(t){var o=(u.options.cloudResponsiveLevel-1+u.options.responsiveRate)/u.options.cloudResponsiveLevel;if(!u.options.currentSky.data("isBusy")){var a=u.options.currentSky.data("carousel"),i=u.options.currentSky.find(".kr-current-carousel").width(),s=(u.options.currentSky.find(".kr-current-carousel").height(),u.options.currentSky.find(".kr-carousel").length);u.options.currentSky.data("isBusy",!0);var n=t;"number"!=typeof t&&("3d"==a.type.toLowerCase()&&s>0?"right"==t?(n=u.options.currentSky.find(".kr-current-carousel").index()-1,0>n&&(n=u.options.currentSky.find(".kr-carousel").length-1)):(n=u.options.currentSky.find(".kr-current-carousel").index()+1,n>u.options.currentSky.find(".kr-carousel").length-1&&(n=0)):"left"==t?(n=u.options.currentSky.find(".kr-current-carousel").index()-1,0>n&&(n=u.options.currentSky.find(".kr-carousel").length-1)):(n=u.options.currentSky.find(".kr-current-carousel").index()+1,n>u.options.currentSky.find(".kr-carousel").length-1&&(n=0))),u.options.currentSky.data("current_carousel",n);var l=n;if(u.cloudsOut(!0),"3d"==a.type.toLowerCase()&&s>0){u.options.currentSky.find(".kr-current-carousel").removeClass("kr-current-carousel");for(var d=(parseFloat(a.inclination),parseFloat(g.css("width"))/2-i/2),p=parseFloat(a.radius)*o,c=parseFloat(a.recedeLevel)>0?parseFloat(a.recedeLevel):1,h=p/c,f=Math.floor(s/2),m=s%2,v=0;s>v;v++){var k,w=u.options.currentSky.find(".kr-carousel").eq(v),b=(v+(s-l))%s,y=2*Math.PI/s*b;k=Math.abs(v-l)>f?f-(Math.abs(v-l)%f==0?f:Math.abs(v-l)%f)+m:Math.abs(v-l),k=Math.max(0,k-1);var _="";f>b?_="left":b>f&&(_="right");var x=a.level[k],O={x:-Math.sin(y)*p,z:Math.cos(y)*h-h,zIndex:f-k,transformPerspective:"auto"==a.perspective?i:parseInt(a.perspective)};if(0==b)w.addClass("kr-current-carousel"),O.opacity=1,O.rotationX=0,O.rotationY=0,O.rotationZ=0;else{if(O.opacity=x.opacity,O.scale=x.scale,O.rotationX=x.rotationX,"right"==_)O.rotationY=-x.rotationY,O.rotationZ=-x.rotationZ;else if("left"==_)O.rotationY=x.rotationY,O.rotationZ=x.rotationZ;else{var T=Math.abs(a.level[k-1].rotationY);T>0&&180>T?O.rotationY=-180:T>180&&360>T?O.rotationY=-360:T>360&&540>T&&(O.rotationY=-540)}O.rotationZ=0}u.options.carouselTimeline=new TimelineLite,v==s-1&&(O.onComplete=function(){e.find(".kr-carousel").show(),u.options.currentSky.data("isBusy",!1),u.options.carouselTimeline=null,u.options.paused||u.resume()}),u.options.carouselTimeline.to(w,a.duration/1e3,O)}}else{var f=Math.floor(s/2),l=n,m=s%2;u.options.currentSky.find(".kr-current-carousel").removeClass("kr-current-carousel"),u.options.currentSky.find(".kr-carousel").eq(l).addClass("kr-current-carousel");for(var v=0;s>v;v++){var _,k,w=u.options.currentSky.find(".kr-carousel").eq(v);Math.abs(v-l)>f?(k=f-(Math.abs(v-l)%f==0?f:Math.abs(v-l)%f)+m,_=v-l>0?"left":"right"):(k=Math.abs(v-l),_=v-l>0?"right":"left");var I=2*(f-k);"left"==_&&"right"==t&&I++,"right"==_&&"left"==t&&I++,w.css({"z-index":I});var O={};if(u.options.carouselTimeline=new TimelineLite,0==k)O={top:0,left:parseInt((parseFloat(g.css("width"))-i)/2),scale:r()?.999:1,opacity:1,rotationX:0,rotationY:0,rotationZ:0,ease:a.easing},v==s-1&&(O.onComplete=function(){e.find(".kr-carousel").show(),u.options.currentSky.data("isBusy",!1),u.options.carouselTimeline=null,u.options.paused||u.resume()}),u.options.carouselTimeline.to(w,a.duration/1e3,O);else{var x=a.level[k-1],B=i*x.scale;O="right"==_?{scale:x.scale,opacity:x.opacity,rotationX:x.rotationX,rotationY:-x.rotationY,rotationZ:-x.rotationZ,transformPerspective:"auto"==a.perspective?B:parseInt(a.perspective)}:{scale:x.scale,opacity:x.opacity,rotationX:x.rotationX,rotationY:x.rotationY,rotationZ:x.rotationZ,transformPerspective:"auto"==a.perspective?B:parseInt(a.perspective)},(a.overlay+"").indexOf("%")>0||(a.overlay=parseInt(a.overlay)/i*100+"%");var d=parseFloat(g.css("width"))/2-i/2;if("left"==_)for(var S=1;k>=S;S++)d-=-(1==S?0:i*(1-a.level[S-2].scale)/2)+i*a.level[S-1].scale*(100-parseInt(a.overlay))/100+i*(1-a.level[S-1].scale)/2;else for(var S=1;k>=S;S++)d+=(1==S?i:i*a.level[S-2].scale+i*(1-a.level[S-2].scale)/2)-i*a.level[S-1].scale*parseInt(a.overlay)/100-i*(1-a.level[S-1].scale)/2;"left"==t&&parseFloat(w.css("left"))+(i-B)/2>=parseFloat(g.css("width"))||"right"==t&&parseFloat(w.css("left"))+(i-B)/2+B<=0?w.hide():w.show(),O.left=parseInt(d),O.ease=a.easing,O.onComplete=v==s-1?function(){e.find(".kr-carousel").show(),u.options.currentSky.data("isBusy",!1),u.options.carouselTimeline=null,u.options.paused||u.resume()}:function(){u.options.currentSky.data("isBusy",!1),u.options.carouselTimeline=null,e.find(".kr-carousel").show()},u.options.carouselTimeline.to(w,a.duration/1e3,O)}}}u.options.onCarouselTo()}},u.switchActiveNav=function(){if("undefined"!=typeof u.options.currentSkyNo&&"undefined"!=typeof u.options.upcomingSkyNo)if("bullet"==u.options.navType)e.find(".kr-bullet-container .kr-bullet:eq("+u.options.currentSkyNo+")").removeClass("kr-activated").css({opacity:u.options.bullet.itemOpacity,"background-image":"url("+u.options.bullet.imgItem+")"}),e.find(".kr-bullet-container .kr-bullet:eq("+u.options.upcomingSkyNo+")").addClass("kr-activated").css({opacity:u.options.bullet.activatedOpacity,"background-image":"url("+u.options.bullet.imgItemActivated+")"});else if("thumb"==u.options.navType){var t=e.find(".kr-thumb-container .kr-thumb:eq("+u.options.upcomingSkyNo+")");e.find(".kr-thumb-container .kr-thumb:eq("+u.options.currentSkyNo+")").css({opacity:u.options.thumb.itemOpacity,borderColor:u.options.thumb.itemBorderColor}),t.css({opacity:u.options.thumb.activatedOpacity,borderColor:u.options.thumb.activatedBorderColor});var o=e.find(".kr-thumb-inner"),a=e.find(".kr-thumb-wrapper").position().left,i=a+e.find(".kr-thumb-wrapper").width(),r=t.position().left,s=t.width()+parseInt(t.css("margin-left"))+parseInt(t.css("margin-right"))+parseInt(t.css("border-left-width"))+parseInt(t.css("border-right-width")),n=0;o.width()>e.find(".kr-thumb-container").width()&&(a+s/2>r?(n=Math.min(0,-(s*(u.options.upcomingSkyNo-1)+s/2)),TweenLite.to(o,.5,{x:n})):r>i-1.5*s&&(n=Math.max(-(o.width()-(i-a))-parseInt(o.css("padding-left"))-parseInt(o.css("padding-right")),-(s*(u.options.upcomingSkyNo+1.5)+a-i)),TweenLite.to(o,.5,{x:n}))),u.options.timeouts.push(setTimeout(function(){i-e.find(".kr-thumb-container .kr-thumb:eq("+(u.options.numberOfSlides-1)+")").position().left>s&&TweenLite.to(o,.5,{x:i-s*u.options.numberOfSlides-parseInt(o.css("padding-left"))-parseInt(o.css("padding-right"))})},100))}},u.kenBurn=function(t){if("undefined"!=typeof t.data("ken-positionto")){var e=parseFloat(t.data("ken-scalefrom"))>0?parseFloat(t.data("ken-scalefrom")):1,o=parseFloat(t.data("ken-scaleto"))>0?parseFloat(t.data("ken-scaleto")):1,a=t.data("width_to_rate")*parseFloat(g.css("width")),i=t.data("height_to_rate")*parseFloat(g.css("width")),r=parseInt(t.data("ken-duration")),s=t.data("ken-easing");0>r&&(r=parseInt(t.data("duration"))),("undefined"==typeof s||""==s)&&(s="easeInSine");var n={};n.scale=o/e;var l,d;l=(t.data("ken-positionto")+"").indexOf("top")>=0?0:(t.data("ken-positionto")+"").indexOf("bottom")>=0?parseFloat(g.css("height"))-i:parseFloat(t.data("ken-positionto").split(" ")[0])>=0?(parseFloat(g.css("height"))-i)*parseFloat(t.data("ken-positionto").split(" ")[0])/100:parseFloat(t.data("ken-positionto").split(",")[0])>=0?(parseFloat(g.css("height"))-i)*parseFloat(t.data("ken-positionto").split(",")[0])/100:(parseFloat(g.css("height"))-i)/2,d=(t.data("ken-positionto")+"").indexOf("left")>=0?0:(t.data("ken-positionto")+"").indexOf("right")>=0?parseFloat(g.css("width"))-a:parseFloat(t.data("ken-positionto").split(" ")[1])>=0?(parseFloat(g.css("width"))-a)*parseFloat(t.data("ken-positionto").split(" ")[1])/100:parseFloat(t.data("ken-positionto").split(",")[1])>=0?(parseFloat(g.css("width"))-a)*parseFloat(t.data("ken-positionto").split(",")[1])/100:(parseFloat(g.css("width"))-a)/2,n.y=l+i/2-(parseFloat(t.find(".sky-background img").css("top"))+t.data("bg_height")/2),n.x=d+a/2-(parseFloat(t.find(".sky-background img").css("left"))+t.data("bg_width")/2),0!=parseFloat(t.data("ken-rotateto"))&&(n.rotation=parseFloat(t.data("ken-rotateto"))),t.data("cloud_wrapper_width",parseFloat(g.css("width"))),t.data("cloud_wrapper_height",parseFloat(g.css("height"))),u.options.kenTween=TweenMax.to(t.find(".sky-background img"),r/1e3,{css:n,ease:s})}},u.newSkyStart=function(){u.options.isBusy=!1,u.options.currentSky.data("isBusy",!1),u.options.slideTransitionNeeded||u.switchActiveNav(),"combine"==u.options.autoSlideCarousel&&(u.options.carouselShowed=0,u.options.carouselRepeated=!1);var o=u.options.currentSky,a=u.options.currentSky=u.options.upcomingSky;u.options.kenTween&&null!=u.options.kenTween&&"undefined"!=typeof u.options.kenTween&&(u.options.kenTween.kill(),u.options.kenTween=null),u.options.currentSkyNo=u.options.upcomingSkyNo,u.options.currentSky.css("overflow","hidden").find(".sky-background").show();for(var i=0;i<u.options.timeouts.length;i++)clearTimeout(u.options.timeouts);if(u.options.timeouts.length=0,e.find(".kr-flow-panel").find("*").each(function(){t(this).remove()}),e.find(".kr-flow-panel").remove(),o.removeClass("sky-opened"),a.addClass("sky-opened"),!u.options.paused&&(u.options.numberOfSlides>1||u.options.currentSky.find(".kr-carousel-container").length>0))u.resume();else if(u.options.paused&&"thumb"==u.options.navType){var s=t("<div>").css({width:0,height:1,background:"transparent"}).appendTo(e);TweenMax.to(s,1,{css:{width:parseFloat(g.css("width"))},ease:Linear.easeNone,onComplete:function(){s.remove()}})}if(u.redrawAll(u.options.currentSky),u.options.needToRedrawSkin&&(u.redrawSkin(),u.options.needToRedrawSkin=!1),!u.options.slideTransitionNeeded&&r()&&a.find(".kr-carousel-container").length>0&&u.flowCarouselTo("right"),u.cloudsIn(),u.kenBurn(a),u.options.youtubeToRefresh&&u.options.youtubeToRefresh.length>0)for(var i=0;i<u.options.youtubeToRefresh.length;i++){var n=u.options.youtubeToRefresh[i];n.data("player").stopVideo(),n.wrap('<div id="'+n.data("id")+'"></div>'),youtubeIframeLoad(n,n.data("id"),n.data("videoid"))}if(u.options.vimeoToRefresh&&u.options.vimeoToRefresh.length>0)for(var i=0;i<u.options.vimeoToRefresh.length;i++){var n=u.options.vimeoToRefresh[i];n.data("player").api("unload")}u.options.onSlidingComplete()},u.cloudsOut=function(e){var o=(u.options.cloudResponsiveLevel-1+u.options.responsiveRate)/u.options.cloudResponsiveLevel;u.options.youtubeToRefresh=[],u.options.vimeoToRefresh=[],u.options.currentSky.find(".kr-cloud").each(function(){var a=t(this);a.data("anchored",!1),t(this).data("outTimer")&&clearTimeout(t(this).data("outTimer")),(!e||/kr-carousel-cloud/.test(a.attr("class")))&&(a.find('iframe[src*="youtube"]').each(function(){var e=t(this);e.data("player")&&(u.options.isVideoPlaying=!1,u.options.youtubeToRefresh.push(e))}),a.find('iframe[src*="vimeo"]').each(function(){var e=t(this);e.data("player")&&u.options.vimeoToRefresh.push(e)}),a.find("video, audio").each(function(){this.currentTime>0&&(this.currentTime=0),this.pause()}),TweenMax.killTweensOf(a),TweenMax.fromTo(a,a.data("durationout")/1e3,{transformOrigin:a.data("transformoriginout"),transformPerspective:a.data("perspectiveout")},{rotation:a.data("rotateout"),rotationX:a.data("rotatexout"),rotationY:a.data("rotateyout"),skewX:a.data("skewxout"),skewY:a.data("skewyout"),scaleX:a.data("scalexout"),scaleY:a.data("scaleyout"),x:a.data("offsetxout")*o,y:a.data("offsetyout")*o,ease:a.data("easingout"),opacity:0!=a.data("fadeout")?0:1,onComplete:function(){if(a.css({display:"none",opacity:0!=a.data("fadeout")?a.data("opacity"):1}),e){var o=!0;u.options.currentSky.find('*[class*="kr-carousel-cloud"]').each(function(){t(this).is(":visible")&&(o=!1)}),o&&u.cloudsIn(!0)}}}))})},u.cloudOut=function(e){var o=(u.options.cloudResponsiveLevel-1+u.options.responsiveRate)/u.options.cloudResponsiveLevel;e.data("anchored",!1),t(this).data("outTimer")&&clearTimeout(t(this).data("outTimer")),TweenMax.killTweensOf(e),TweenMax.fromTo(e,e.data("durationout")/1e3,{transformOrigin:e.data("transformoriginout"),transformPerspective:e.data("perspectiveout")},{rotation:e.data("rotateout"),rotationX:e.data("rotatexout"),rotationY:e.data("rotateyout"),skewX:e.data("skewxout"),skewY:e.data("skewyout"),scaleX:e.data("scalexout"),scaleY:e.data("scaleyout"),x:e.data("offsetxout")*o,y:e.data("offsetyout")*o,ease:e.data("easingout"),opacity:0!=e.data("fadeout")?0:1,onComplete:function(){e.css({display:"none",opacity:0!=e.data("fadeout")?e.data("opacity"):1})}})},u.cloudsIn=function(e){var o=(u.options.cloudResponsiveLevel-1+u.options.responsiveRate)/u.options.cloudResponsiveLevel,a=u.options.upcomingSky;e&&(a=u.options.currentSky),a.find(".kr-cloud").each(function(){var i=t(this);if(/kr-carousel-cloud/.test(i.attr("class"))){var r=a.find(".kr-current-carousel .kr-carousel-img").data(i.attr("class").split("kr-carousel-cloud-")[1].split(" ")[0]);if(!r||""==r)return;i.css("opacity","0"),i.html(r)}else{if(e)return;i.find('iframe[src*="youtube"]').each(function(){var e=t(this);u.options.video.autoPlay&&e.data("player")&&e.data("player").playVideo()}),i.find('iframe[src*="vimeo"]').each(function(){var e=t(this);u.options.video.autoPlay&&e.data("player")&&e.data("player").api("play")}),i.find("video, audio").each(function(){u.options.video.autoPlay&&this.play()})}TweenMax.killTweensOf(i),TweenMax.fromTo(i,i.data("durationin")/1e3,{x:i.data("offsetxin")*o,y:i.data("offsetyin")*o,scaleX:i.data("scalexin"),scaleY:i.data("scaleyin"),rotation:i.data("rotatein"),rotationX:i.data("rotatexin"),rotationY:i.data("rotateyin"),skewX:i.data("skewxin"),skewY:i.data("skewyin"),display:"block",opacity:0!=i.data("fadein")?0:1,transformPerspective:i.data("perspectivein"),transformOrigin:i.data("transformoriginin")},{x:0,y:0,scaleX:1,scaleY:1,rotation:0,rotationX:0,rotationY:0,skewX:0,skewY:0,opacity:0!=i.data("fadein")?i.data("opacity"):1,delay:i.data("delayin")/1e3,ease:i.data("easingin"),onComplete:function(){if(i.data("anchored",!0),i.data("delayout")>0){var t=setTimeout(function(){TweenMax.killTweensOf(i),TweenMax.fromTo(i,i.data("durationout")/1e3,{transformOrigin:i.data("transformoriginout"),transformPerspective:i.data("perspectiveout")},{rotation:i.data("rotateout"),rotationX:i.data("rotatexout"),rotationY:i.data("rotateyout"),skewX:i.data("skewxout"),skewY:i.data("skewyout"),scaleX:i.data("scalexout"),scaleY:i.data("scaleyout"),x:i.data("offsetxout")*o,y:i.data("offsetyout")*o,ease:i.data("easingout"),opacity:0!=i.data("fadeout")?0:1,onComplete:function(){i.css({display:"none",opacity:0!=i.data("fadeout")?i.data("opacity"):1})}})},i.data("delayout"));u.options.timeouts.push(t),i.data("outTimer",t)}}})})},u.cloudIn=function(t){var e=(u.options.cloudResponsiveLevel-1+u.options.responsiveRate)/u.options.cloudResponsiveLevel;TweenMax.killTweensOf(t),TweenMax.fromTo(t,t.data("durationin")/1e3,{x:t.data("offsetxin")*e,y:t.data("offsetyin")*e,scaleX:t.data("scalexin"),scaleY:t.data("scaleyin"),rotation:t.data("rotatein"),rotationX:t.data("rotatexin"),rotationY:t.data("rotateyin"),skewX:t.data("skewxin"),skewY:t.data("skewyin"),display:"block",opacity:0!=t.data("fadein")?0:1,transformPerspective:t.data("perspectivein"),transformOrigin:t.data("transformoriginin")},{x:0,y:0,scaleX:1,scaleY:1,rotation:0,rotationX:0,rotationY:0,skewX:0,skewY:0,opacity:0!=t.data("fadein")?t.data("opacity"):1,ease:t.data("easingin"),onComplete:function(){if(t.data("anchored",!0),t.data("delayout")>0){var o=setTimeout(function(){TweenMax.killTweensOf(t),TweenMax.fromTo(t,t.data("durationout")/1e3,{transformOrigin:t.data("transformoriginout"),transformPerspective:t.data("perspectiveout")},{rotation:t.data("rotateout"),rotationX:t.data("rotatexout"),rotationY:t.data("rotateyout"),skewX:t.data("skewxout"),skewY:t.data("skewyout"),scaleX:t.data("scalexout"),scaleY:t.data("scaleyout"),x:t.data("offsetxout")*e,y:t.data("offsetyout")*e,ease:t.data("easingout"),opacity:0!=t.data("fadeout")?0:1,onComplete:function(){t.css({display:"none",opacity:0!=t.data("fadeout")?t.data("opacity"):1})}})},t.data("delayout"));u.options.timeouts.push(o),t.data("outTimer",o)}}})},u.cloudAnimate=function(t,e){var o=(u.options.cloudResponsiveLevel-1+u.options.responsiveRate)/u.options.cloudResponsiveLevel;TweenMax.killTweensOf(t),"undefined"==typeof e.duration&&(e.duration=1e3),"undefined"==typeof e.easing&&(e.easing="linear"),"undefined"==typeof e.offsetx&&(e.offsetx=0),"undefined"==typeof e.offsety&&(e.offsety=0),"undefined"==typeof e.scalex&&(e.scalex=1),"undefined"==typeof e.scaley&&(e.scaley=1),"undefined"==typeof e.rotate&&(e.rotate=0),"undefined"==typeof e.rotatex&&(e.rotatex=0),"undefined"==typeof e.rotatey&&(e.rotatey=0),"undefined"==typeof e.skewx&&(e.skewx=0),"undefined"==typeof e.skewy&&(e.skewy=0),"undefined"==typeof e.opacity&&(e.opacity=1),"undefined"==typeof e.delay&&(e.delay=0),"undefined"==typeof e.perspective&&(e.perspective=400),"undefined"==typeof e.transformorigin&&(e.transformorigin="50% 50% 0"),TweenMax.set(t,{transformPerspective:e.perspective,transformOrigin:e.transformorigin}),TweenMax.to(t,e.duration/1e3,{x:e.offsetx*o,y:e.offsety*o,scaleX:e.scalex,scaleY:e.scaley,rotation:e.rotate,rotationX:e.rotationx,rotationY:e.rotationy,skewX:e.skewx,skewY:e.skewy,opacity:e.opacity,delay:e.delay/1e3,ease:e.easing})
},u.fly=function(){if(u.options.isBusy=!0,u.pause(),u.options.slideTransitionNeeded&&u.switchActiveNav(),u.options.onSlidingStart(),u.options.slideTransitionNeeded){u.cloudsOut();var o=u.get_randomItem(u.options.upcomingSky.data("transitionlist"));o="all"==o?u.get_randomItem(l("all")):"2d"==o?u.get_randomItem(l("2d")):"3d"==o?u.get_randomItem(l("3d")):l(parseInt(o)),(u.options.currentSky.find(".sky-background img").length<=0||u.options.upcomingSky.find(".sky-background img").length<=0)&&(o=l(10),(u.options.currentSky.find(".sky-background img").length<=0||u.options.upcomingSky.find(".sky-background img").length<=0)&&(o.animation[0].duration=400));var a=t('<div class="kr-flow-panel"/>').css("overflow",o.overflow).prependTo(u.options.currentSky.css("overflow",o.overflow)),i=[],r=o.rows,n=o.cols;if(r>10&&(r=Math.floor(o.rows*u.options.responsiveRate)),n>10&&(n=Math.floor(o.cols*u.options.responsiveRate)),n*r>1)if("a-z"==o.cellOrder)for(var d=0;n*r>d;d++)i.push(d*o.cellDelay);else if("z-a"==o.cellOrder)for(var d=n*r-1;d>=0;d--)i.push(d*o.cellDelay);else{for(var d=0;n*r>d;d++)i.push(d*o.cellDelay);for(var p,c,h=i.length;h--;)c=Math.random()*(h+1)<<0,p=i[c],i[c]=i[h],i[h]=p}else i.push(0);var m=u.options.currentSky.find(".sky-background"),v=u.options.upcomingSky.find(".sky-background"),k=v.find("img"),w=parseFloat(g.css("width")),b=k.data("background_height")*parseFloat(g.css("width"))/k.data("background_width");if("contain"==k.data("size")?k.data("background_width")/k.data("background_height")<parseFloat(g.css("width"))/parseFloat(g.css("height"))&&(w=k.data("background_width")*parseFloat(g.css("height"))/k.data("background_height"),b=parseFloat(g.css("height"))):k.data("background_width")/k.data("background_height")>parseFloat(g.css("width"))/parseFloat(g.css("height"))&&(w=k.data("background_width")*parseFloat(g.css("height"))/k.data("background_height"),b=parseFloat(g.css("height"))),k.css({width:w,height:b,left:-(w-parseFloat(g.css("width")))/2,top:-(b-parseFloat(g.css("height")))/2}),"undefined"!=typeof u.options.upcomingSky.data("ken-positionfrom")){var y=parseFloat(u.options.upcomingSky.data("ken-scalefrom"))>0?parseFloat(u.options.upcomingSky.data("ken-scalefrom")):1;w*=y,b*=y;var _={};_.width=w,_.height=b,_.scale=1,_.x=0,_.y=0,_.top=(u.options.upcomingSky.data("ken-positionfrom")+"").indexOf("top")>=0?0:(u.options.upcomingSky.data("ken-positionfrom")+"").indexOf("bottom")>=0?parseFloat(g.css("height"))-b:parseFloat((u.options.upcomingSky.data("ken-positionfrom")+"").split(" ")[0])>=0?(parseFloat(g.css("height"))-b)*parseFloat((u.options.upcomingSky.data("ken-positionfrom")+"").split(" ")[0])/100:parseFloat((u.options.upcomingSky.data("ken-positionfrom")+"").split(",")[0])>=0?(parseFloat(g.css("height"))-b)*parseFloat((u.options.upcomingSky.data("ken-positionfrom")+"").split(",")[0])/100:(parseFloat(g.css("height"))-b)/2,_.left=(u.options.upcomingSky.data("ken-positionfrom")+"").indexOf("left")>=0?0:(u.options.upcomingSky.data("ken-positionfrom")+"").indexOf("right")>=0?parseFloat(g.css("width"))-w:parseFloat((u.options.upcomingSky.data("ken-positionfrom")+"").split(" ")[1])>=0?(parseFloat(g.css("width"))-w)*parseFloat((u.options.upcomingSky.data("ken-positionfrom")+"").split(" ")[1])/100:parseFloat((u.options.upcomingSky.data("ken-positionfrom")+"").split(",")[1])>=0?(parseFloat(g.css("width"))-w)*parseFloat((u.options.upcomingSky.data("ken-positionfrom")+"").split(",")[1])/100:(parseFloat(g.css("width"))-w)/2,_.rotation=0,TweenMax.set(k,{css:_})}var x,O=parseFloat(g.css("width")),T=parseFloat(g.css("height")),I=Math.max(O,T),B=0,S=0;0==o.cellThick&&m.clone().removeClass("sky-background").addClass("kr-current-bg").show().prependTo(a),u.options.currentSky.find(".sky-background").hide();for(var d=0;n*r>d;d++){var C=Math.round(O/n),F=Math.round(T/r),_=t.extend({},o.css);if(o.css){if(o.css.top||(_.top=0),o.css.left||(_.left=0),"random"==o.css.top){var p=[F,0,-F];_.top=p[Math.floor(3*Math.random())]}else"top"==o.css.top?_.top=-F:"bottom"==o.css.top&&(_.top=F);if("random"==o.css.left)if(0==_.top){var p=[C,-C];_.left=p[Math.floor(2*Math.random())]}else _.left=0;else"left"==o.css.left?_.left=-C:"right"==o.css.left&&(_.left=C)}for(var L=scaleY=scaleZ=!1,P=rotationY=rotationZ=0,M=!0,R=0;o.animation[R];)o.animation[R].toVars.css?(o.animation[R].toVars.css.scaleX&&1==o.animation[R].toVars.css.scaleX&&(L=!0),o.animation[R].toVars.css.scaleY&&1==o.animation[R].toVars.css.scaleY&&(scaleY=!0),o.animation[R].toVars.css.scaleZ&&1==o.animation[R].toVars.css.scaleZ&&(scaleZ=!0),o.animation[R].toVars.css.rotationX&&(P+=o.animation[R].toVars.css.rotationX),o.animation[R].toVars.css.rotationY&&(rotationY+=o.animation[R].toVars.css.rotationY),o.animation[R].toVars.css.rotationZ&&(rotationZ+=o.animation[R].toVars.css.rotationZ)):M=!1,R++;var Y=t('<div class="kr-cell" />').appendTo(a);Y.css({width:C,height:F,overflow:o.overflow,perspective:I,"-o-perspective":I,"-ms-perspective":I,"-moz-perspective":I,"-webkit-perspective":I}),d%n==n-1?(C=O-B,B=0,r*n-d>n&&(S+=Y.height())):B+=Y.width(),r>1&&n>=r*n-d&&S>0&&(F=T-S),Y.css({width:C,height:F});var N=o.cellThick*u.options.responsiveRate,z=N/2,A=s()?-N:-z,X=t('<div class="kr-shape" />').css({"transform-origin":C/2+"px "+F/2+"px "+A+"px","-ms-transform-origin":C/2+"px "+F/2+"px "+A+"px","-webkit-transform-origin":C/2+"px "+F/2+"px "+A+"px"}).appendTo(Y),V=t('<div class="kr-box-front" />').css({width:C,height:F,backgroundColor:e.css("background-color")}).appendTo(X);if(N>0){if(P>90||-90>P)var Z=t('<div class="kr-box-back" />').css({width:C,height:F,backgroundColor:e.css("background-color"),"-webkit-transform":"rotateX( -180deg ) translateZ( "+N+"px )","-moz-transform":"rotateX( -180deg ) translateZ( "+N+"px )","-ms-transform":"rotateX( -180deg ) translateZ( "+N+"px )","-o-transform":"rotateX( -180deg ) translateZ( "+N+"px )",transform:"rotateX( -180deg ) translateZ( "+N+"px )"}).appendTo(X);else var Z=t('<div class="kr-box-back" />').css({width:C,height:F,backgroundColor:e.css("background-color"),"-webkit-transform":"rotateY( -180deg ) translateZ( "+N+"px )","-moz-transform":"rotateY( -180deg ) translateZ( "+N+"px )","-ms-transform":"rotateY( -180deg ) translateZ( "+N+"px )","-o-transform":"rotateY( -180deg ) translateZ( "+N+"px )",transform:"rotateY( -180deg ) translateZ( "+N+"px )"}).appendTo(X);var D=t('<div class="kr-box-left" />').css({width:N,height:F,"-webkit-transform":"rotateY( -90deg ) translateX(-"+z+"px) translateZ( "+z+"px )","-moz-transform":"rotateY( -90deg ) translateX(-"+z+"px) translateZ( "+z+"px )","-ms-transform":"rotateY( -90deg ) translateX(-"+z+"px) translateZ( "+z+"px )","-o-transform":"rotateY( -90deg ) translateX(-"+z+"px) translateZ( "+z+"px )",transform:"rotateY( -90deg ) translateX(-"+z+"px) translateZ( "+z+"px )"}).appendTo(X),W=t('<div class="kr-box-right" />').css({width:N,height:F,"-webkit-transform":"rotateY( 90deg ) translateX("+z+"px) translateZ( "+(C-z)+"px )","-moz-transform":"rotateY( 90deg ) translateX("+z+"px) translateZ( "+(C-z)+"px )","-ms-transform":"rotateY( 90deg ) translateX("+z+"px) translateZ( "+(C-z)+"px )","-o-transform":"rotateY( 90deg ) translateX("+z+"px) translateZ( "+(C-z)+"px )",transform:"rotateY( 90deg ) translateX("+z+"px) translateZ( "+(C-z)+"px )"}).appendTo(X),Q=t('<div class="kr-box-top" />').css({width:C,height:N,"-webkit-transform":"rotateX( 90deg ) translateY(-"+z+"px) translateZ( "+z+"px )","-moz-transform":"rotateX( 90deg ) translateY(-"+z+"px) translateZ( "+z+"px )","-ms-transform":"rotateX( 90deg ) translateY(-"+z+"px) translateZ( "+z+"px )","-o-transform":"rotateX( 90deg ) translateY(-"+z+"px) translateZ( "+z+"px )",transform:"rotateX( 90deg ) translateY(-"+z+"px) translateZ( "+z+"px )"}).appendTo(X),H=t('<div class="kr-box-bottom" />').css({width:C,height:N,"-webkit-transform":"rotateX( -90deg ) translateY("+z+"px) translateZ( "+(F-z)+"px )","-moz-transform":"rotateX( -90deg ) translateY("+z+"px) translateZ( "+(F-z)+"px )","-ms-transform":"rotateX( -90deg ) translateY("+z+"px) translateZ( "+(F-z)+"px )","-o-transform":"rotateX( -90deg ) translateY("+z+"px) translateZ( "+(F-z)+"px )",transform:"rotateX( -90deg ) translateY("+z+"px) translateZ( "+(F-z)+"px )"}).appendTo(X)}x=-90==P?Q:90==P?H:-90==rotationY?D:90==rotationY?W:Z,X.css(_);var q=-parseFloat(Y.position().left),E=-parseFloat(Y.position().top);if(0==o.cellThick){{v.clone().css({left:q,top:E,position:"absolute"}).appendTo(V)}e.find(".kr-box-front").css("background-color","transparent")}else{m.clone().css({left:q,top:E,position:"absolute"}).appendTo(V),v.clone().css({display:"block",left:q,top:E,position:"absolute"}).appendTo(x)}for(var R=0,j=new TimelineLite;o.animation[R];){var $=t.extend({},o.animation[R].toVars);$.delay=i[d]/1e3,M||($.css={top:0,left:0,opacity:1,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,scaleZ:1}),o.shift&&0==o.cellThick&&1==r&&1==n?(e.find(".kr-box-front *").show(),j.fromTo(X,o.animation[R].duration/1e3,_,$),TweenMax.to(a.find(".kr-current-bg"),o.animation[R].duration/1e3,{top:-_.top,left:-_.left,ease:o.animation[R].toVars.ease})):(j.set(X,_),e.find(".kr-box-front *").show(),j.to(X,o.animation[R].duration/1e3,$),0==o.cellThick&&1==r&&1==n&&0==o.css.opacity&&TweenMax.to(a.find(".kr-current-bg"),o.animation[R].duration/1e3,{opacity:0,ease:o.animation[R].toVars.ease})),R++}var $={};L||($.scaleX=1),scaleY||($.scaleY=1),scaleZ||($.scaleZ=1),P>=0&&90>P||P>-90&&0>=P?$.rotationX=0:P>90&&180>P?$.rotationX=180:P>-180&&-90>P&&($.rotationX=-180),rotationY>=0&&rotationY<90||rotationY>-90&&rotationY<=0?$.rotationY=0:rotationY>90&&rotationY<180?$.rotationY=180:rotationY>-180&&rotationY<-90&&($.rotationY=-180),rotationZ>=0&&rotationZ<90||rotationZ>-90&&rotationZ<=0?$.rotationZ=0:rotationZ>90&&rotationZ<180?$.rotationZ=180:rotationZ>-180&&rotationZ<-90&&($.rotationZ=-180);var G=1;!t.isEmptyObject($)&&M&&(G=400),i[d]==(n*r-1)*o.cellDelay&&($.onComplete=function(){u.newSkyStart()}),j.to(X,G/1e3,$)}}else f.show(),"show"==u.options.thumb.visibility&&f.find(".kr-thumb").css("visibility","visible"),u.newSkyStart(),u.options.slideTransitionNeeded=!0},u.get_randomItem=function(t){return"undefined"==typeof t||null==t?!1:"1,2"==t?2==u.options.numberOfSlides?"right"==u.options.direction?(u.options.direction="",1):"left"==u.options.direction?(u.options.direction="",2):1:u.options.upcomingSkyNo-u.options.currentSkyNo==1||u.options.currentSkyNo==u.options.numberOfSlides-1&&0==u.options.upcomingSkyNo?1:2:t[Math.floor(Math.random()*t.length)]},u.initialize()},o=function(t){var e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/,o=t.match(e);return o&&11==o[7].length?o[7]:!1},a=function(t){var e=/vimeo.*\/(\d+)/i.exec(t);return e?e[1]:void 0},r=function(){var t=navigator.userAgent.toLowerCase();return-1!=t.indexOf("msie")&&parseFloat((t.match(/.*(?:rv|ie)[\/: ](.+?)([ \);]|$)/)||[])[1])<9?!0:!1},s=function(){var t=["iphone","ipad","iPod","android","blackberry","webos","nokia","opera mini","windows mobile","windows phone","iemobile"];for(var e in t)if(navigator.userAgent.toLowerCase().indexOf(t[e].toLowerCase())>0)return!0;return!1},n=function(){if(navigator.userAgent.match(/Trident\/7\./))return!1;var t,e=document.createElement("div"),o={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.insertBefore(e,null);for(var a in o)void 0!==e.style[a]&&(e.style[a]="translate3d(1px, 1px, 1px)",t=window.getComputedStyle(e).getPropertyValue(o[a]));return document.body.removeChild(e),void 0!==t&&t.length>0&&"none"!==t},l=function(e){var o=[{title:"Slide To Left",rows:1,cols:1,cellOrder:"z-a",cellDelay:0,cellThick:0,overflow:"hidden",shift:!0,css:{top:0,left:"right"},animation:[{duration:800,toVars:{ease:"easeInOutQuart"}}]},{title:"Slide To Right",rows:1,cols:1,cellOrder:"a-z",cellDelay:0,cellThick:0,overflow:"hidden",shift:!0,css:{top:0,left:"left"},animation:[{duration:800,toVars:{ease:"easeInOutQuart"}}]},{title:"Slide To Top",rows:1,cols:1,cellOrder:"z-a",cellDelay:0,cellThick:0,overflow:"hidden",shift:!0,css:{top:"bottom",left:0},animation:[{duration:800,toVars:{ease:"easeInOutQuart"}}]},{title:"Slide To Bottom",rows:1,cols:1,cellOrder:"a-z",cellDelay:0,cellThick:0,overflow:"hidden",shift:!0,css:{top:"top",left:0},animation:[{duration:800,toVars:{ease:"easeInOutQuart"}}]},{title:"Slide Cells To Left",rows:1,cols:20,cellOrder:"z-a",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:"right"},animation:[{duration:300,toVars:{ease:"easeInOutQuart"}}]},{title:"Slide Cells To Right",rows:1,cols:20,cellOrder:"a-z",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:"left"},animation:[{duration:300,toVars:{ease:"easeInOutQuart"}}]},{title:"Slide Cells To Top",rows:20,cols:1,cellOrder:"z-a",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:"bottom",left:0},animation:[{duration:300,toVars:{ease:"easeInOutQuart"}}]},{title:"Slide Cells To Bottom",rows:20,cols:1,cellOrder:"a-z",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:"top",left:0},animation:[{duration:300,toVars:{ease:"easeInOutQuart"}}]},{title:"Slide Cells Randomly",rows:3,cols:5,cellOrder:"random",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:"random",left:"random"},animation:[{duration:600,toVars:{ease:"easeOutQuart"}}]},{title:"Fade",rows:1,cols:1,cellOrder:"a-z",cellDelay:0,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:0,opacity:0},animation:[{duration:800,toVars:{ease:"easeInOutQuad"}}]},{title:"Fade Cells To Left",rows:1,cols:20,cellOrder:"z-a",cellDelay:20,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:0,opacity:0},animation:[{duration:500,toVars:{ease:"easeInOutQuart"}}]},{title:"Fade Cells To Right",rows:1,cols:20,cellOrder:"a-z",cellDelay:20,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:0,opacity:0},animation:[{duration:500,toVars:{ease:"easeInOutQuart"}}]},{title:"Fade Cells To Top",rows:20,cols:1,cellOrder:"z-a",cellDelay:20,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:0,opacity:0},animation:[{duration:500,toVars:{ease:"easeInOutQuart"}}]},{title:"Fade Cells To Bottom",rows:20,cols:1,cellOrder:"a-z",cellDelay:20,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:0,opacity:0},animation:[{duration:500,toVars:{ease:"easeInOutQuart"}}]},{title:"Fade Cells Randomly",rows:3,cols:5,cellOrder:"random",cellDelay:30,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:0,opacity:0},animation:[{duration:800,toVars:{ease:"easeOutQuart"}}]},{title:"Fade&Slide Cells Randomly",rows:3,cols:5,cellOrder:"random",cellDelay:30,cellThick:0,overflow:"hidden",shift:!1,css:{top:"random",left:"random",opacity:0},animation:[{duration:500,toVars:{ease:"easeOutQuart"}}]},{title:"Rotate To Left",rows:1,cols:1,cellOrder:"z-a",cellDelay:0,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:"right",rotationY:-90},animation:[{duration:1300,toVars:{ease:"easeOutQuart"}}]},{title:"Rotate To Right",rows:1,cols:1,cellOrder:"a-z",cellDelay:0,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:"left",rotationY:90},animation:[{duration:1300,toVars:{ease:"easeOutQuart"}}]},{title:"Rotate To Top",rows:1,cols:1,cellOrder:"z-a",cellDelay:0,cellThick:0,overflow:"hidden",shift:!1,css:{top:"bottom",left:0,rotationX:90},animation:[{duration:1300,toVars:{ease:"easeOutQuart"}}]},{title:"Rotate To Bottom",rows:1,cols:1,cellOrder:"a-z",cellDelay:0,cellThick:0,overflow:"hidden",shift:!1,css:{top:"top",left:0,rotationX:-90},animation:[{duration:1300,toVars:{ease:"easeOutQuart"}}]},{title:"Scale In",rows:1,cols:1,cellOrder:"a-z",cellDelay:0,cellThick:0,overflow:"visible",shift:!1,css:{top:0,left:0,scale:.8,opacity:0},animation:[{duration:1500,toVars:{ease:"easeOutQuart"}}]},{title:"Scale Out",rows:1,cols:1,cellOrder:"a-z",cellDelay:0,cellThick:0,overflow:"visible",shift:!1,css:{top:0,left:0,scale:1.1,opacity:0},animation:[{duration:1500,toVars:{ease:"easeOutQuart"}}]},{title:"Scale&Rotate To Left",rows:1,cols:1,cellOrder:"z-a",cellDelay:0,cellThick:0,overflow:"visible",shift:!1,css:{top:0,left:0,scale:.1,rotationY:89},animation:[{duration:1300,toVars:{ease:"easeOutQuart"}}]},{title:"Scale&Rotate To Right",rows:1,cols:1,cellOrder:"a-z",cellDelay:0,cellThick:0,overflow:"visible",shift:!1,css:{top:0,left:0,scale:.1,rotationY:-89},animation:[{duration:1300,toVars:{ease:"easeOutQuart"}}]},{title:"Sldie&Scale Cells To Left Radomly",rows:10,cols:1,cellOrder:"random",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:"right",scale:.1},animation:[{duration:500,toVars:{ease:"easeOutQuart"}}]},{title:"Sldie&Scale Cells To Right Radomly",rows:10,cols:1,cellOrder:"random",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:"left",scale:.1},animation:[{duration:500,toVars:{ease:"easeOutQuart"}}]},{title:"Sldie&Scale Cells To Top Radomly",rows:1,cols:10,cellOrder:"random",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:"bottom",left:0,scale:.1},animation:[{duration:500,toVars:{ease:"easeOutQuart"}}]},{title:"Sldie&Scale Cells To Bottom Radomly",rows:1,cols:10,cellOrder:"random",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:"top",left:0,scale:.1},animation:[{duration:500,toVars:{ease:"easeOutQuart"}}]},{title:"Sldie Cells To Left Radomly",rows:1,cols:10,cellOrder:"random",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:"right",scale:1},animation:[{duration:500,toVars:{ease:"easeOutQuart"}}]},{title:"Sldie Cells To Right In Radomly",rows:1,cols:10,cellOrder:"random",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:0,left:"left",scale:1},animation:[{duration:500,toVars:{ease:"easeOutQuart"}}]},{title:"Sldie Cells To Top Radomly",rows:10,cols:1,cellOrder:"random",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:"bottom",left:0,scale:1},animation:[{duration:500,toVars:{ease:"easeOutQuart"}}]},{title:"Sldie Cells To Bottom In Radomly",rows:10,cols:1,cellOrder:"random",cellDelay:50,cellThick:0,overflow:"hidden",shift:!1,css:{top:"top",left:0,scale:1},animation:[{duration:500,toVars:{ease:"easeOutQuart"}}]}],a=[{title:"Twist Rows To Top",rows:7,cols:1,cellOrder:"z-a",cellDelay:50,cellThick:20,direction:"vertical",overflow:"visible",shift:!1,animation:[{duration:400,toVars:{ease:"easeOutBack",css:{scaleX:.9,scaleY:.9,scaleZ:.9}}},{duration:500,toVars:{ease:"easeInOutBack",css:{rotationX:180}}}]},{title:"Twist Rows To Bottom",rows:7,cols:1,cellOrder:"a-z",cellDelay:50,cellThick:20,direction:"vertical",overflow:"visible",shift:!1,animation:[{duration:400,toVars:{ease:"easeOutBack",css:{scaleX:.9,scaleY:.9,scaleZ:.9}}},{duration:500,toVars:{ease:"easeInOutBack",css:{rotationX:-180}}}]},{title:"Twist Cols To Right",rows:1,cols:10,cellOrder:"a-z",cellDelay:50,cellThick:20,direction:"vertical",overflow:"visible",shift:!1,animation:[{duration:400,toVars:{ease:"easeOutBack",css:{scaleX:.9,scaleY:.9,scaleZ:.9}}},{duration:500,toVars:{ease:"easeInOutBack",css:{rotationY:180}}}]},{title:"Twist Cols To Left",rows:1,cols:10,cellOrder:"z-a",cellDelay:50,cellThick:20,direction:"vertical",overflow:"visible",shift:!1,animation:[{duration:400,toVars:{ease:"easeOutBack",css:{scaleX:.9,scaleY:.9,scaleZ:.9}}},{duration:500,toVars:{ease:"easeInOutBack",css:{rotationY:-180}}}]},{title:"Twist Cols To Top",rows:1,cols:10,cellOrder:"z-a",cellDelay:50,cellThick:20,direction:"vertical",overflow:"visible",shift:!1,animation:[{duration:400,toVars:{ease:"easeOutBack",css:{scaleX:.9,scaleY:.9,scaleZ:.9}}},{duration:500,toVars:{ease:"easeInOutBack",css:{rotationX:180}}}]},{title:"Twist Cols To Bottom",rows:1,cols:10,cellOrder:"a-z",cellDelay:50,cellThick:20,direction:"vertical",overflow:"visible",shift:!1,animation:[{duration:400,toVars:{ease:"easeOutBack",css:{scaleX:.9,scaleY:.9,scaleZ:.9}}},{duration:500,toVars:{ease:"easeInOutBack",css:{rotationX:-180}}}]},{title:"Twist Cells Randomly",rows:3,cols:5,cellOrder:"random",cellDelay:50,cellThick:20,direction:"horizontal",overflow:"visible",shift:!1,animation:[{duration:300,toVars:{ease:"easeOutBack",css:{scaleX:.9,scaleY:.9,scaleZ:.9,rotationX:30}}},{duration:1e3,toVars:{ease:"easeInOutBack",css:{rotationX:-30,rotationY:180}}}]},{title:"Totter Cols To Right",rows:1,cols:10,cellOrder:"a-z",cellDelay:50,cellThick:20,direction:"horizontal",overflow:"visible",shift:!1,animation:[{duration:400,toVars:{ease:"easeOutBack",css:{scaleX:.9,scaleY:.9,scaleZ:.9}}},{duration:800,toVars:{ease:"easeInOutBack",css:{rotationX:15,rotationY:180}}}]},{title:"Totter Cols To Left",rows:1,cols:10,cellOrder:"z-a",cellDelay:50,cellThick:20,direction:"horizontal",overflow:"visible",shift:!1,animation:[{duration:400,toVars:{ease:"easeOutBack",css:{scaleX:.9,scaleY:.9,scaleZ:.9}}},{duration:800,toVars:{ease:"easeInOutBack",css:{rotationX:15,rotationY:-180}}}]},{title:"Rotate Cols To Right",rows:1,cols:10,cellOrder:"a-z",cellDelay:50,cellThick:20,direction:"horizontal",overflow:"visible",shift:!1,animation:[{duration:1200,toVars:{ease:"easeInOutBack",css:{rotationY:180}}}]},{title:"Rotate Cols To Left",rows:1,cols:10,cellOrder:"z-a",cellDelay:50,cellThick:20,direction:"horizontal",overflow:"visible",shift:!1,animation:[{duration:1200,toVars:{ease:"easeInOutBack",css:{rotationY:-180}}}]},{title:"Rotate Rows To Top",rows:7,cols:1,cellOrder:"z-a",cellDelay:50,cellThick:20,direction:"vertical",overflow:"visible",shift:!1,animation:[{duration:1200,toVars:{ease:"easeInOutBack",css:{rotationX:180}}}]},{title:"Rotate Rows To Bottom",rows:7,cols:1,cellOrder:"a-z",cellDelay:50,cellThick:20,direction:"vertical",overflow:"visible",shift:!1,animation:[{duration:1200,toVars:{ease:"easeInOutBack",css:{rotationX:-180}}}]},{title:"Scale&Rotate Cube To Right",rows:1,cols:1,cellOrder:"a-z",cellDelay:50,cellThick:20,direction:"horizontal",overflow:"visible",shift:!1,animation:[{duration:600,toVars:{ease:"easeInOutBack",css:{scaleX:.8,scaleY:.8,scaleZ:.8,rotationX:10,rotationY:145}}}]},{title:"Scale&Rotate Cube To Left",rows:1,cols:1,cellOrder:"z-a",cellDelay:50,cellThick:20,direction:"horizontal",overflow:"visible",shift:!1,animation:[{duration:600,toVars:{ease:"easeInOutBack",css:{scaleX:.8,scaleY:.8,scaleZ:.8,rotationX:10,rotationY:-145}}}]},{title:"Scale&Rotate Rows To Right",rows:3,cols:5,cellOrder:"a-z",cellDelay:30,cellThick:20,direction:"horizontal",overflow:"visible",shift:!1,animation:[{duration:400,toVars:{ease:"easeOutBack",css:{scaleX:.9,scaleY:.9,scaleZ:.9}}},{duration:800,toVars:{ease:"easeInOutBack",css:{rotationX:180,rotationY:30}}}]},{title:"Scale&Rotate Rows To Left",rows:3,cols:5,cellOrder:"z-a",cellDelay:30,cellThick:20,direction:"horizontal",overflow:"visible",shift:!1,animation:[{duration:400,toVars:{ease:"easeOutBack",css:{scaleX:.9,scaleY:.9,scaleZ:.9}}},{duration:800,toVars:{ease:"easeInOutBack",css:{rotationX:180,rotationY:-30}}}]},{title:"Scale&Rotate Rows To Left",rows:3,cols:5,cellOrder:"random",cellDelay:30,cellThick:20,direction:"horizontal",overflow:"visible",shift:!1,animation:[{duration:400,toVars:{ease:"easeOutBack",css:{scaleX:.9,scaleY:.9,scaleZ:.9}}},{duration:800,toVars:{ease:"easeInOutBack",css:{rotationX:180,rotationY:-30}}}]}],i=o.concat(a);return t.isNumeric(e)&&e>=1&&e<=i.length?i[e-1]:"2d"==e?o:"3d"==e?a:"all"==e?i:i[0]}}(jQuery);


/*!
 * VERSION: 1.13.1
 * DATE: 2014-07-19
 * UPDATES AND DOCS AT: http://www.greensock.com
 * 
 * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
 *
 * @license Copyright (c) 2008-2014, GreenSock. All rights reserved.
 * This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 **/
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var s=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},r=function(t,e,s){i.call(this,t,e,s),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=r.prototype.render},n=1e-10,a=i._internals,o=a.isSelector,h=a.isArray,l=r.prototype=i.to({},.1,{}),_=[];r.version="1.13.1",l.constructor=r,l.kill()._gc=!1,r.killTweensOf=r.killDelayedCallsTo=i.killTweensOf,r.getTweensOf=i.getTweensOf,r.lagSmoothing=i.lagSmoothing,r.ticker=i.ticker,r.render=i.render,l.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},l.updateTo=function(t,e){var s,r=this.ratio;e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(s in t)this.vars[s]=t[s];if(this._initted)if(e)this._initted=!1;else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var n=this._time;this.render(0,!0,!1),this._initted=!1,this.render(n,!0,!1)}else if(this._time>0){this._initted=!1,this._init();for(var a,o=1/(1-r),h=this._firstPT;h;)a=h.s+h.c,h.c*=o,h.s=a-h.c,h=h._next}return this},l.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var s,r,o,h,l,u,p,c,f=this._dirty?this.totalDuration():this._totalDuration,m=this._time,d=this._totalTime,g=this._cycle,v=this._duration,y=this._rawPrevTime;if(t>=f?(this._totalTime=f,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=v,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(s=!0,r="onComplete"),0===v&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>y||y===n)&&y!==t&&(i=!0,y>n&&(r="onReverseComplete")),this._rawPrevTime=c=!e||t||y===t?t:n)):1e-7>t?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==d||0===v&&y>0&&y!==n)&&(r="onReverseComplete",s=this._reversed),0>t?(this._active=!1,0===v&&(this._initted||!this.vars.lazy||i)&&(y>=0&&(i=!0),this._rawPrevTime=c=!e||t||y===t?t:n)):this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(h=v+this._repeatDelay,this._cycle=this._totalTime/h>>0,0!==this._cycle&&this._cycle===this._totalTime/h&&this._cycle--,this._time=this._totalTime-this._cycle*h,this._yoyo&&0!==(1&this._cycle)&&(this._time=v-this._time),this._time>v?this._time=v:0>this._time&&(this._time=0)),this._easeType?(l=this._time/v,u=this._easeType,p=this._easePower,(1===u||3===u&&l>=.5)&&(l=1-l),3===u&&(l*=2),1===p?l*=l:2===p?l*=l*l:3===p?l*=l*l*l:4===p&&(l*=l*l*l*l),this.ratio=1===u?1-l:2===u?l:.5>this._time/v?l/2:1-l/2):this.ratio=this._ease.getRatio(this._time/v)),m===this._time&&!i&&g===this._cycle)return d!==this._totalTime&&this._onUpdate&&(e||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||_)),void 0;if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=m,this._totalTime=d,this._rawPrevTime=y,this._cycle=g,a.lazyTweens.push(this),this._lazy=t,void 0;this._time&&!s?this.ratio=this._ease.getRatio(this._time/v):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==m&&t>=0&&(this._active=!0),0===d&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===v)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||_))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(0>t&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._totalTime!==d||s)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||_)),this._cycle!==g&&(e||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||_)),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"Scope"]||this,this.vars[r+"Params"]||_),0===v&&this._rawPrevTime===n&&c!==n&&(this._rawPrevTime=0))},r.to=function(t,e,i){return new r(t,e,i)},r.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new r(t,e,i)},r.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new r(t,e,s)},r.staggerTo=r.allTo=function(t,e,n,a,l,u,p){a=a||0;var c,f,m,d,g=n.delay||0,v=[],y=function(){n.onComplete&&n.onComplete.apply(n.onCompleteScope||this,arguments),l.apply(p||this,u||_)};for(h(t)||("string"==typeof t&&(t=i.selector(t)||t),o(t)&&(t=s(t))),c=t.length,m=0;c>m;m++){f={};for(d in n)f[d]=n[d];f.delay=g,m===c-1&&l&&(f.onComplete=y),v[m]=new r(t[m],e,f),g+=a}return v},r.staggerFrom=r.allFrom=function(t,e,i,s,n,a,o){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,r.staggerTo(t,e,i,s,n,a,o)},r.staggerFromTo=r.allFromTo=function(t,e,i,s,n,a,o,h){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,r.staggerTo(t,e,s,n,a,o,h)},r.delayedCall=function(t,e,i,s,n){return new r(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:s,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:s,immediateRender:!1,useFrames:n,overwrite:0})},r.set=function(t,e){return new r(t,0,e)},r.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var u=function(t,e){for(var s=[],r=0,n=t._first;n;)n instanceof i?s[r++]=n:(e&&(s[r++]=n),s=s.concat(u(n,e)),r=s.length),n=n._next;return s},p=r.getAllTweens=function(e){return u(t._rootTimeline,e).concat(u(t._rootFramesTimeline,e))};r.killAll=function(t,i,s,r){null==i&&(i=!0),null==s&&(s=!0);var n,a,o,h=p(0!=r),l=h.length,_=i&&s&&r;for(o=0;l>o;o++)a=h[o],(_||a instanceof e||(n=a.target===a.vars.onComplete)&&s||i&&!n)&&(t?a.totalTime(a._reversed?0:a.totalDuration()):a._enabled(!1,!1))},r.killChildTweensOf=function(t,e){if(null!=t){var n,l,_,u,p,c=a.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),o(t)&&(t=s(t)),h(t))for(u=t.length;--u>-1;)r.killChildTweensOf(t[u],e);else{n=[];for(_ in c)for(l=c[_].target.parentNode;l;)l===t&&(n=n.concat(c[_].tweens)),l=l.parentNode;for(p=n.length,u=0;p>u;u++)e&&n[u].totalTime(n[u].totalDuration()),n[u]._enabled(!1,!1)}}};var c=function(t,i,s,r){i=i!==!1,s=s!==!1,r=r!==!1;for(var n,a,o=p(r),h=i&&s&&r,l=o.length;--l>-1;)a=o[l],(h||a instanceof e||(n=a.target===a.vars.onComplete)&&s||i&&!n)&&a.paused(t)};return r.pauseAll=function(t,e,i){c(!0,t,e,i)},r.resumeAll=function(t,e,i){c(!1,t,e,i)},r.globalTimeScale=function(e){var s=t._rootTimeline,r=i.ticker.time;return arguments.length?(e=e||n,s._startTime=r-(r-s._startTime)*s._timeScale/e,s=t._rootFramesTimeline,r=i.ticker.frame,s._startTime=r-(r-s._startTime)*s._timeScale/e,s._timeScale=t._rootTimeline._timeScale=e,e):s._timeScale},l.progress=function(t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},l.totalProgress=function(t){return arguments.length?this.totalTime(this.totalDuration()*t,!1):this._totalTime/this.totalDuration()},l.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},l.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},l.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},l.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},l.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},l.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},r},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,s,r=this.vars;for(s in r)i=r[s],o(i)&&-1!==i.join("").indexOf("{self}")&&(r[s]=this._swapSelfInParams(i));o(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals,a=n.isSelector,o=n.isArray,h=n.lazyTweens,l=n.lazyRender,_=[],u=_gsScope._gsDefine.globals,p=function(t){var e,i={};for(e in t)i[e]=t[e];return i},c=function(t,e,i,s){t._timeline.pause(t._startTime),e&&e.apply(s||t._timeline,i||_)},f=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},m=s.prototype=new e;return s.version="1.13.1",m.constructor=s,m.kill()._gc=!1,m.to=function(t,e,s,r){var n=s.repeat&&u.TweenMax||i;return e?this.add(new n(t,e,s),r):this.set(t,s,r)},m.from=function(t,e,s,r){return this.add((s.repeat&&u.TweenMax||i).from(t,e,s),r)},m.fromTo=function(t,e,s,r,n){var a=r.repeat&&u.TweenMax||i;return e?this.add(a.fromTo(t,e,s,r),n):this.set(t,r,n)},m.staggerTo=function(t,e,r,n,o,h,l,_){var u,c=new s({onComplete:h,onCompleteParams:l,onCompleteScope:_,smoothChildTiming:this.smoothChildTiming});for("string"==typeof t&&(t=i.selector(t)||t),a(t)&&(t=f(t)),n=n||0,u=0;t.length>u;u++)r.startAt&&(r.startAt=p(r.startAt)),c.to(t[u],e,p(r),u*n);return this.add(c,o)},m.staggerFrom=function(t,e,i,s,r,n,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,s,r,n,a,o)},m.staggerFromTo=function(t,e,i,s,r,n,a,o,h){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,s,r,n,a,o,h)},m.call=function(t,e,s,r){return this.add(i.delayedCall(0,t,e,s),r)},m.set=function(t,e,s){return s=this._parseTimeOrLabel(s,0,!0),null==e.immediateRender&&(e.immediateRender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,n,a=new s(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,r=o._first;r;)n=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=n;return o.add(a,0),a},m.add=function(r,n,a,h){var l,_,u,p,c,f;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&o(r)){for(a=a||"normal",h=h||0,l=n,_=r.length,u=0;_>u;u++)o(p=r[u])&&(p=new s({tweens:p})),this.add(p,l),"string"!=typeof p&&"function"!=typeof p&&("sequence"===a?l=p._startTime+p.totalDuration()/p._timeScale:"start"===a&&(p._startTime-=p.delay())),l+=h;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,n);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,n),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(c=this,f=c.rawTime()>r._startTime;c._timeline;)f&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},m.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof Array||e&&e.push&&o(e)){for(var i=e.length;--i>-1;)this.remove(e[i]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._startTime+s._totalDuration/s._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},m.insert=m.insertMultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},m.appendMultiple=function(t,e,i,s){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,s)},m.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},m.addPause=function(t,e,i,s){return this.call(c,["{self}",e,i,s],this,t)},m.removeLabel=function(t){return delete this._labels[t],this},m.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parseTimeOrLabel=function(e,i,s,r){var n;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&o(r)))for(n=r.length;--n>-1;)r[n]instanceof t&&r[n].timeline===this&&this.remove(r[n]);if("string"==typeof i)return this._parseTimeOrLabel(i,s&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,s);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(n=e.indexOf("="),-1===n)return null==this._labels[e]?s?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(n-1)+"1",10)*Number(e.substr(n+1)),e=n>1?this._parseTimeOrLabel(e.substr(0,n-1),0,s):this.duration()}return Number(e)+i},m.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(t,e){return this.play(t,e)},m.gotoAndStop=function(t,e){return this.pause(t,e)},m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,a,o,u,p=this._dirty?this.totalDuration():this._totalDuration,c=this._time,f=this._startTime,m=this._timeScale,d=this._paused;if(t>=p?(this._totalTime=this._time=p,this._reversed||this._hasPausedChild()||(n=!0,o="onComplete",0===this._duration&&(0===t||0>this._rawPrevTime||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(u=!0,this._rawPrevTime>r&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=p+1e-4):1e-7>t?(this._totalTime=this._time=0,(0!==c||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",n=this._reversed),0>t?(this._active=!1,this._rawPrevTime>=0&&this._first&&(u=!0),this._rawPrevTime=t):(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=0,this._initted||(u=!0))):this._totalTime=this._time=this._rawPrevTime=t,this._time!==c&&this._first||i||u){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==c&&t>0&&(this._active=!0),0===c&&this.vars.onStart&&0!==this._time&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||_)),this._time>=c)for(s=this._first;s&&(a=s._next,!this._paused||d);)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;else for(s=this._last;s&&(a=s._prev,!this._paused||d);)(s._active||c>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;this._onUpdate&&(e||(h.length&&l(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||_))),o&&(this._gc||(f===this._startTime||m!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(n&&(h.length&&l(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this.vars[o].apply(this.vars[o+"Scope"]||this,this.vars[o+"Params"]||_)))}},m._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._hasPausedChild())return!0;t=t._next}return!1},m.getChildren=function(t,e,s,r){r=r||-9999999999;for(var n=[],a=this._first,o=0;a;)r>a._startTime||(a instanceof i?e!==!1&&(n[o++]=a):(s!==!1&&(n[o++]=a),t!==!1&&(n=n.concat(a.getChildren(!0,e,s)),o=n.length))),a=a._next;return n},m.getTweensOf=function(t,e){var s,r,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),s=i.getTweensOf(t),r=s.length;--r>-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(a[o++]=s[r]);return n&&this._enabled(!1,!0),a},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftChildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),s=i.length,r=!1;--s>-1;)i[s]._kill(t,e)&&(r=!0);return r},m.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return this},m._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>n&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):n=r._startTime,0>r._startTime&&!r._paused&&(s-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),n=0),i=r._startTime+r._totalDuration/r._timeScale,i>s&&(s=i),r=e;this._duration=this._totalDuration=s,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==t&&this.timeScale(this._totalDuration/t),this},m.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},s},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var s=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},r=1e-10,n=[],a=e._internals,o=a.lazyTweens,h=a.lazyRender,l=new i(null,null,1,0),_=s.prototype=new t;return _.constructor=s,_.kill()._gc=!1,s.version="1.13.1",_.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},_.addCallback=function(t,i,s,r){return this.add(e.delayedCall(0,t,s,r),i)},_.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),s=i.length,r=this._parseTimeOrLabel(e);--s>-1;)i[s]._startTime===r&&i[s]._enabled(!1,!1);return this},_.tweenTo=function(t,i){i=i||{};var s,r,a,o={ease:l,overwrite:i.delay?2:1,useFrames:this.usesFrames(),immediateRender:!1};for(r in i)o[r]=i[r];return o.time=this._parseTimeOrLabel(t),s=Math.abs(Number(o.time)-this._time)/this._timeScale||.001,a=new e(this,s,o),o.onStart=function(){a.target.paused(!0),a.vars.time!==a.target.time()&&s===a.duration()&&a.duration(Math.abs(a.vars.time-a.target.time())/a.target._timeScale),i.onStart&&i.onStart.apply(i.onStartScope||a,i.onStartParams||n)},a},_.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],onCompleteScope:this},i.immediateRender=i.immediateRender!==!1;var s=this.tweenTo(e,i);return s.duration(Math.abs(s.vars.time-t)/this._timeScale||.001)},_.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,a,l,_,u,p,c=this._dirty?this.totalDuration():this._totalDuration,f=this._duration,m=this._time,d=this._totalTime,g=this._startTime,v=this._timeScale,y=this._rawPrevTime,T=this._paused,w=this._cycle;if(t>=c?(this._locked||(this._totalTime=c,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(a=!0,_="onComplete",0===this._duration&&(0===t||0>y||y===r)&&y!==t&&this._first&&(u=!0,y>r&&(_="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,this._yoyo&&0!==(1&this._cycle)?this._time=t=0:(this._time=f,t=f+1e-4)):1e-7>t?(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==m||0===f&&y!==r&&(y>0||0>t&&y>=0)&&!this._locked)&&(_="onReverseComplete",a=this._reversed),0>t?(this._active=!1,y>=0&&this._first&&(u=!0),this._rawPrevTime=t):(this._rawPrevTime=f||!e||t||this._rawPrevTime===t?t:r,t=0,this._initted||(u=!0))):(0===f&&0>y&&(u=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(p=f+this._repeatDelay,this._cycle=this._totalTime/p>>0,0!==this._cycle&&this._cycle===this._totalTime/p&&this._cycle--,this._time=this._totalTime-this._cycle*p,this._yoyo&&0!==(1&this._cycle)&&(this._time=f-this._time),this._time>f?(this._time=f,t=f+1e-4):0>this._time?this._time=t=0:t=this._time))),this._cycle!==w&&!this._locked){var x=this._yoyo&&0!==(1&w),b=x===(this._yoyo&&0!==(1&this._cycle)),P=this._totalTime,S=this._cycle,k=this._rawPrevTime,R=this._time;if(this._totalTime=w*f,w>this._cycle?x=!x:this._totalTime+=f,this._time=m,this._rawPrevTime=0===f?y-1e-4:y,this._cycle=w,this._locked=!0,m=x?0:f,this.render(m,e,0===f),e||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||n),b&&(m=x?f+1e-4:-1e-4,this.render(m,!0,!1)),this._locked=!1,this._paused&&!T)return;this._time=R,this._totalTime=P,this._cycle=S,this._rawPrevTime=k}if(!(this._time!==m&&this._first||i||u))return d!==this._totalTime&&this._onUpdate&&(e||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||n)),void 0;if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==d&&t>0&&(this._active=!0),0===d&&this.vars.onStart&&0!==this._totalTime&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||n)),this._time>=m)for(s=this._first;s&&(l=s._next,!this._paused||T);)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=l;else for(s=this._last;s&&(l=s._prev,!this._paused||T);)(s._active||m>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=l;this._onUpdate&&(e||(o.length&&h(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||n))),_&&(this._locked||this._gc||(g===this._startTime||v!==this._timeScale)&&(0===this._time||c>=this.totalDuration())&&(a&&(o.length&&h(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[_]&&this.vars[_].apply(this.vars[_+"Scope"]||this,this.vars[_+"Params"]||n)))},_.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var s,r,n=[],a=this.getChildren(t,e,i),o=0,h=a.length;for(s=0;h>s;s++)r=a[s],r.isActive()&&(n[o++]=r);return n},_.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),s=i.length;for(e=0;s>e;e++)if(i[e].time>t)return i[e].name;return null},_.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(t>e[i].time)return e[i].name;return null},_.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},_.progress=function(t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},_.totalProgress=function(t){return arguments.length?this.totalTime(this.totalDuration()*t,!1):this._totalTime/this.totalDuration()},_.totalDuration=function(e){return arguments.length?-1===this._repeat?this:this.duration((e-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},_.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},_.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},_.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},_.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},_.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},s},!0),function(){var t=180/Math.PI,e=[],i=[],s=[],r={},n=function(t,e,i,s){this.a=t,this.b=e,this.c=i,this.d=s,this.da=s-t,this.ca=i-t,this.ba=e-t},a=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",o=function(t,e,i,s){var r={a:t},n={},a={},o={c:s},h=(t+e)/2,l=(e+i)/2,_=(i+s)/2,u=(h+l)/2,p=(l+_)/2,c=(p-u)/8;return r.b=h+(t-h)/4,n.b=u+c,r.c=n.a=(r.b+n.b)/2,n.c=a.a=(u+p)/2,a.b=p-c,o.b=_+(s-_)/4,a.c=o.a=(a.b+o.b)/2,[r,n,a,o]},h=function(t,r,n,a,h){var l,_,u,p,c,f,m,d,g,v,y,T,w,x=t.length-1,b=0,P=t[0].a;for(l=0;x>l;l++)c=t[b],_=c.a,u=c.d,p=t[b+1].d,h?(y=e[l],T=i[l],w=.25*(T+y)*r/(a?.5:s[l]||.5),f=u-(u-_)*(a?.5*r:0!==y?w/y:0),m=u+(p-u)*(a?.5*r:0!==T?w/T:0),d=u-(f+((m-f)*(3*y/(y+T)+.5)/4||0))):(f=u-.5*(u-_)*r,m=u+.5*(p-u)*r,d=u-(f+m)/2),f+=d,m+=d,c.c=g=f,c.b=0!==l?P:P=c.a+.6*(c.c-c.a),c.da=u-_,c.ca=g-_,c.ba=P-_,n?(v=o(_,P,g,u),t.splice(b,1,v[0],v[1],v[2],v[3]),b+=4):b++,P=m;c=t[b],c.b=P,c.c=P+.4*(c.d-P),c.da=c.d-c.a,c.ca=c.c-c.a,c.ba=P-c.a,n&&(v=o(c.a,P,c.c,c.d),t.splice(b,1,v[0],v[1],v[2],v[3]))},l=function(t,s,r,a){var o,h,l,_,u,p,c=[];if(a)for(t=[a].concat(t),h=t.length;--h>-1;)"string"==typeof(p=t[h][s])&&"="===p.charAt(1)&&(t[h][s]=a[s]+Number(p.charAt(0)+p.substr(2)));if(o=t.length-2,0>o)return c[0]=new n(t[0][s],0,0,t[-1>o?0:1][s]),c;for(h=0;o>h;h++)l=t[h][s],_=t[h+1][s],c[h]=new n(l,0,0,_),r&&(u=t[h+2][s],e[h]=(e[h]||0)+(_-l)*(_-l),i[h]=(i[h]||0)+(u-_)*(u-_));return c[h]=new n(t[h][s],0,0,t[h+1][s]),c},_=function(t,n,o,_,u,p){var c,f,m,d,g,v,y,T,w={},x=[],b=p||t[0];u="string"==typeof u?","+u+",":a,null==n&&(n=1);for(f in t[0])x.push(f);if(t.length>1){for(T=t[t.length-1],y=!0,c=x.length;--c>-1;)if(f=x[c],Math.abs(b[f]-T[f])>.05){y=!1;break}y&&(t=t.concat(),p&&t.unshift(p),t.push(t[1]),p=t[t.length-3])}for(e.length=i.length=s.length=0,c=x.length;--c>-1;)f=x[c],r[f]=-1!==u.indexOf(","+f+","),w[f]=l(t,f,r[f],p);for(c=e.length;--c>-1;)e[c]=Math.sqrt(e[c]),i[c]=Math.sqrt(i[c]);if(!_){for(c=x.length;--c>-1;)if(r[f])for(m=w[x[c]],v=m.length-1,d=0;v>d;d++)g=m[d+1].da/i[d]+m[d].da/e[d],s[d]=(s[d]||0)+g*g;for(c=s.length;--c>-1;)s[c]=Math.sqrt(s[c])}for(c=x.length,d=o?4:1;--c>-1;)f=x[c],m=w[f],h(m,n,o,_,r[f]),y&&(m.splice(0,d),m.splice(m.length-d,d));return w},u=function(t,e,i){e=e||"soft";var s,r,a,o,h,l,_,u,p,c,f,m={},d="cubic"===e?3:2,g="soft"===e,v=[];if(g&&i&&(t=[i].concat(t)),null==t||d+1>t.length)throw"invalid Bezier data";for(p in t[0])v.push(p);for(l=v.length;--l>-1;){for(p=v[l],m[p]=h=[],c=0,u=t.length,_=0;u>_;_++)s=null==i?t[_][p]:"string"==typeof(f=t[_][p])&&"="===f.charAt(1)?i[p]+Number(f.charAt(0)+f.substr(2)):Number(f),g&&_>1&&u-1>_&&(h[c++]=(s+h[c-2])/2),h[c++]=s;for(u=c-d+1,c=0,_=0;u>_;_+=d)s=h[_],r=h[_+1],a=h[_+2],o=2===d?0:h[_+3],h[c++]=f=3===d?new n(s,r,a,o):new n(s,(2*r+s)/3,(2*r+a)/3,a);h.length=c}return m},p=function(t,e,i){for(var s,r,n,a,o,h,l,_,u,p,c,f=1/i,m=t.length;--m>-1;)for(p=t[m],n=p.a,a=p.d-n,o=p.c-n,h=p.b-n,s=r=0,_=1;i>=_;_++)l=f*_,u=1-l,s=r-(r=(l*l*a+3*u*(l*o+u*h))*l),c=m*i+_-1,e[c]=(e[c]||0)+s*s},c=function(t,e){e=e>>0||6;var i,s,r,n,a=[],o=[],h=0,l=0,_=e-1,u=[],c=[];for(i in t)p(t[i],a,e);for(r=a.length,s=0;r>s;s++)h+=Math.sqrt(a[s]),n=s%e,c[n]=h,n===_&&(l+=h,n=s/e>>0,u[n]=c,o[n]=l,h=0,c=[]);return{length:l,lengths:o,segments:u}},f=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.3",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._round={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var s,r,n,a,o,h=e.values||[],l={},p=h[0],f=e.autoRotate||i.vars.orientToBezier;this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",f===!0?0:Number(f)||0]]:null;for(s in p)this._props.push(s);for(n=this._props.length;--n>-1;)s=this._props[n],this._overwriteProps.push(s),r=this._func[s]="function"==typeof t[s],l[s]=r?t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)]():parseFloat(t[s]),o||l[s]!==h[0][s]&&(o=l);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?_(h,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,o):u(h,e.type,l),this._segCount=this._beziers[s].length,this._timeRes){var m=c(this._beziers,this._timeRes);this._length=m.length,this._lengths=m.lengths,this._segments=m.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),n=f.length;--n>-1;){for(a=0;3>a;a++)s=f[n][a],this._func[s]="function"==typeof t[s]?t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)]:!1;s=f[n][2],this._initialRotations[n]=this._func[s]?this._func[s].call(this._target):this._target[s]}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,s,r,n,a,o,h,l,_,u,p=this._segCount,c=this._func,f=this._target,m=e!==this._startRatio;if(this._timeRes){if(_=this._lengths,u=this._curSeg,e*=this._length,r=this._li,e>this._l2&&p-1>r){for(l=p-1;l>r&&e>=(this._l2=_[++r]););this._l1=_[r-1],this._li=r,this._curSeg=u=this._segments[r],this._s2=u[this._s1=this._si=0]}else if(this._l1>e&&r>0){for(;r>0&&(this._l1=_[--r])>=e;);0===r&&this._l1>e?this._l1=0:r++,this._l2=_[r],this._li=r,this._curSeg=u=this._segments[r],this._s1=u[(this._si=u.length-1)-1]||0,this._s2=u[this._si]}if(i=r,e-=this._l1,r=this._si,e>this._s2&&u.length-1>r){for(l=u.length-1;l>r&&e>=(this._s2=u[++r]););this._s1=u[r-1],this._si=r}else if(this._s1>e&&r>0){for(;r>0&&(this._s1=u[--r])>=e;);0===r&&this._s1>e?this._s1=0:r++,this._s2=u[r],this._si=r}o=(r+(e-this._s1)/(this._s2-this._s1))*this._prec}else i=0>e?0:e>=1?p-1:p*e>>0,o=(e-i*(1/p))*p;for(s=1-o,r=this._props.length;--r>-1;)n=this._props[r],a=this._beziers[n][i],h=(o*o*a.da+3*s*(o*a.ca+s*a.ba))*o+a.a,this._round[n]&&(h=Math.round(h)),c[n]?f[n](h):f[n]=h;if(this._autoRotate){var d,g,v,y,T,w,x,b=this._autoRotate;
for(r=b.length;--r>-1;)n=b[r][2],w=b[r][3]||0,x=b[r][4]===!0?1:t,a=this._beziers[b[r][0]],d=this._beziers[b[r][1]],a&&d&&(a=a[i],d=d[i],g=a.a+(a.b-a.a)*o,y=a.b+(a.c-a.b)*o,g+=(y-g)*o,y+=(a.c+(a.d-a.c)*o-y)*o,v=d.a+(d.b-d.a)*o,T=d.b+(d.c-d.b)*o,v+=(T-v)*o,T+=(d.c+(d.d-d.c)*o-T)*o,h=m?Math.atan2(T-v,y-g)*x+w:this._initialRotations[r],c[n]?f[n](h):f[n]=h)}}}),m=f.prototype;f.bezierThrough=_,f.cubicToQuadratic=o,f._autoCSS=!0,f.quadraticToCubic=function(t,e,i){return new n(t,(2*e+t)/3,(2*e+i)/3,i)},f._cssRegister=function(){var t=_gsScope._gsDefine.globals.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,s=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,n,a,o,h){e instanceof Array&&(e={values:e}),h=new f;var l,_,u,p=e.values,c=p.length-1,m=[],d={};if(0>c)return o;for(l=0;c>=l;l++)u=i(t,p[l],a,o,h,c!==l),m[l]=u.end;for(_ in e)d[_]=e[_];return d.values=m,o=new r(t,"bezier",0,0,u.pt,2),o.data=u,o.plugin=h,o.setRatio=s,0===d.autoRotate&&(d.autoRotate=!0),!d.autoRotate||d.autoRotate instanceof Array||(l=d.autoRotate===!0?0:Number(d.autoRotate),d.autoRotate=null!=u.end.left?[["left","top","rotation",l,!1]]:null!=u.end.x?[["x","y","rotation",l,!1]]:!1),d.autoRotate&&(a._transform||a._enableTransforms(!1),u.autoRotate=a._target._gsTransform),h._onInitTween(u.proxy,d,a._tween),o}})}},m._roundProps=function(t,e){for(var i=this._overwriteProps,s=i.length;--s>-1;)(t[i[s]]||t.bezier||t.bezierThrough)&&(this._round[i[s]]=e)},m._kill=function(t){var e,i,s=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=s.length;--i>-1;)s[i]===e&&s.splice(i,1);return this._super._kill.call(this,t)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,s,r,n,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o={},h=a.prototype=new t("css");h.constructor=a,a.version="1.13.1",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",h="px",a.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var l,_,u,p,c,f,m=/(?:\d|\-\d|\.\d|\-\.\d)+/g,d=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,g=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/[^\d\-\.]/g,y=/(?:\d|\-|\+|=|#|\.)*/g,T=/opacity *= *([^)]*)/i,w=/opacity:([^;]*)/i,x=/alpha\(opacity *=.+?\)/i,b=/^(rgb|hsl)/,P=/([A-Z])/g,S=/-([a-z])/gi,k=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,R=function(t,e){return e.toUpperCase()},A=/(?:Left|Right|Width)/i,C=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,O=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,D=/,(?=[^\)]*(?:\(|$))/gi,M=Math.PI/180,z=180/Math.PI,I={},E=document,L=E.createElement("div"),F=E.createElement("img"),N=a._internals={_specialProps:o},X=navigator.userAgent,U=function(){var t,e=X.indexOf("Android"),i=E.createElement("div");return u=-1!==X.indexOf("Safari")&&-1===X.indexOf("Chrome")&&(-1===e||Number(X.substr(e+8,1))>3),c=u&&6>Number(X.substr(X.indexOf("Version/")+8,1)),p=-1!==X.indexOf("Firefox"),/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(X)&&(f=parseFloat(RegExp.$1)),i.innerHTML="<a style='top:1px;opacity:.55;'>a</a>",t=i.getElementsByTagName("a")[0],t?/^0.55/.test(t.style.opacity):!1}(),Y=function(t){return T.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},j=function(t){window.console&&console.log(t)},B="",q="",V=function(t,e){e=e||L;var i,s,r=e.style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],s=5;--s>-1&&void 0===r[i[s]+t];);return s>=0?(q=3===s?"ms":i[s],B="-"+q.toLowerCase()+"-",q+t):null},G=E.defaultView?E.defaultView.getComputedStyle:function(){},W=a.getStyle=function(t,e,i,s,r){var n;return U||"opacity"!==e?(!s&&t.style[e]?n=t.style[e]:(i=i||G(t))?n=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(P,"-$1").toLowerCase()):t.currentStyle&&(n=t.currentStyle[e]),null==r||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:r):Y(t)},Q=N.convertToPixels=function(t,i,s,r,n){if("px"===r||!r)return s;if("auto"===r||!s)return 0;var o,h,l,_=A.test(i),u=t,p=L.style,c=0>s;if(c&&(s=-s),"%"===r&&-1!==i.indexOf("border"))o=s/100*(_?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+W(t,"position")+";line-height:0;","%"!==r&&u.appendChild)p[_?"borderLeftWidth":"borderTopWidth"]=s+r;else{if(u=t.parentNode||E.body,h=u._gsCache,l=e.ticker.frame,h&&_&&h.time===l)return h.width*s/100;p[_?"width":"height"]=s+r}u.appendChild(L),o=parseFloat(L[_?"offsetWidth":"offsetHeight"]),u.removeChild(L),_&&"%"===r&&a.cacheWidths!==!1&&(h=u._gsCache=u._gsCache||{},h.time=l,h.width=100*(o/s)),0!==o||n||(o=Q(t,i,s,r,!0))}return c?-o:o},Z=N.calculateOffset=function(t,e,i){if("absolute"!==W(t,"position",i))return 0;var s="left"===e?"Left":"Top",r=W(t,"margin"+s,i);return t["offset"+s]-(Q(t,e,parseFloat(r),r.replace(y,""))||0)},$=function(t,e){var i,s,r={};if(e=e||G(t,null))if(i=e.length)for(;--i>-1;)r[e[i].replace(S,R)]=e.getPropertyValue(e[i]);else for(i in e)r[i]=e[i];else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===r[i]&&(r[i.replace(S,R)]=e[i]);return U||(r.opacity=Y(t)),s=Pe(t,e,!1),r.rotation=s.rotation,r.skewX=s.skewX,r.scaleX=s.scaleX,r.scaleY=s.scaleY,r.x=s.x,r.y=s.y,xe&&(r.z=s.z,r.rotationX=s.rotationX,r.rotationY=s.rotationY,r.scaleZ=s.scaleZ),r.filters&&delete r.filters,r},H=function(t,e,i,s,r){var n,a,o,h={},l=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(n=i[a])||r&&r[a])&&-1===a.indexOf("Origin")&&("number"==typeof n||"string"==typeof n)&&(h[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(v,"")?n:0:Z(t,a),void 0!==l[a]&&(o=new ue(l,a,l[a],o)));if(s)for(a in s)"className"!==a&&(h[a]=s[a]);return{difs:h,firstMPT:o}},K={width:["Left","Right"],height:["Top","Bottom"]},J=["marginLeft","marginRight","marginTop","marginBottom"],te=function(t,e,i){var s=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=K[e],n=r.length;for(i=i||G(t,null);--n>-1;)s-=parseFloat(W(t,"padding"+r[n],i,!0))||0,s-=parseFloat(W(t,"border"+r[n]+"Width",i,!0))||0;return s},ee=function(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var i=t.split(" "),s=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],r=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];return null==r?r="0":"center"===r&&(r="50%"),("center"===s||isNaN(parseFloat(s))&&-1===(s+"").indexOf("="))&&(s="50%"),e&&(e.oxp=-1!==s.indexOf("%"),e.oyp=-1!==r.indexOf("%"),e.oxr="="===s.charAt(1),e.oyr="="===r.charAt(1),e.ox=parseFloat(s.replace(v,"")),e.oy=parseFloat(r.replace(v,""))),s+" "+r+(i.length>2?" "+i[2]:"")},ie=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)},se=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*Number(t.substr(2))+e:parseFloat(t)},re=function(t,e,i,s){var r,n,a,o,h=1e-6;return null==t?o=e:"number"==typeof t?o=t:(r=360,n=t.split("_"),a=Number(n[0].replace(v,""))*(-1===t.indexOf("rad")?1:z)-("="===t.charAt(1)?0:e),n.length&&(s&&(s[i]=e+a),-1!==t.indexOf("short")&&(a%=r,a!==a%(r/2)&&(a=0>a?a+r:a-r)),-1!==t.indexOf("_cw")&&0>a?a=(a+9999999999*r)%r-(0|a/r)*r:-1!==t.indexOf("ccw")&&a>0&&(a=(a-9999999999*r)%r-(0|a/r)*r)),o=e+a),h>o&&o>-h&&(o=0),o},ne={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ae=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,0|255*(1>6*t?e+6*(i-e)*t:.5>t?i:2>3*t?e+6*(i-e)*(2/3-t):e)+.5},oe=function(t){var e,i,s,r,n,a;return t&&""!==t?"number"==typeof t?[t>>16,255&t>>8,255&t]:(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ne[t]?ne[t]:"#"===t.charAt(0)?(4===t.length&&(e=t.charAt(1),i=t.charAt(2),s=t.charAt(3),t="#"+e+e+i+i+s+s),t=parseInt(t.substr(1),16),[t>>16,255&t>>8,255&t]):"hsl"===t.substr(0,3)?(t=t.match(m),r=Number(t[0])%360/360,n=Number(t[1])/100,a=Number(t[2])/100,i=.5>=a?a*(n+1):a+n-a*n,e=2*a-i,t.length>3&&(t[3]=Number(t[3])),t[0]=ae(r+1/3,e,i),t[1]=ae(r,e,i),t[2]=ae(r-1/3,e,i),t):(t=t.match(m)||ne.transparent,t[0]=Number(t[0]),t[1]=Number(t[1]),t[2]=Number(t[2]),t.length>3&&(t[3]=Number(t[3])),t)):ne.black},he="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(h in ne)he+="|"+h+"\\b";he=RegExp(he+")","gi");var le=function(t,e,i,s){if(null==t)return function(t){return t};var r,n=e?(t.match(he)||[""])[0]:"",a=t.split(n).join("").match(g)||[],o=t.substr(0,t.indexOf(a[0])),h=")"===t.charAt(t.length-1)?")":"",l=-1!==t.indexOf(" ")?" ":",",_=a.length,u=_>0?a[0].replace(m,""):"";return _?r=e?function(t){var e,p,c,f;if("number"==typeof t)t+=u;else if(s&&D.test(t)){for(f=t.replace(D,"|").split("|"),c=0;f.length>c;c++)f[c]=r(f[c]);return f.join(",")}if(e=(t.match(he)||[n])[0],p=t.split(e).join("").match(g)||[],c=p.length,_>c--)for(;_>++c;)p[c]=i?p[0|(c-1)/2]:a[c];return o+p.join(l)+l+e+h+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,n,p;if("number"==typeof t)t+=u;else if(s&&D.test(t)){for(n=t.replace(D,"|").split("|"),p=0;n.length>p;p++)n[p]=r(n[p]);return n.join(",")}if(e=t.match(g)||[],p=e.length,_>p--)for(;_>++p;)e[p]=i?e[0|(p-1)/2]:a[p];return o+e.join(l)+h}:function(t){return t}},_e=function(t){return t=t.split(","),function(e,i,s,r,n,a,o){var h,l=(i+"").split(" ");for(o={},h=0;4>h;h++)o[t[h]]=l[h]=l[h]||l[(h-1)/2>>0];return r.parse(e,o,n,a)}},ue=(N._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,s,r,n=this.data,a=n.proxy,o=n.firstMPT,h=1e-6;o;)e=a[o.v],o.r?e=Math.round(e):h>e&&e>-h&&(e=0),o.t[o.p]=e,o=o._next;if(n.autoRotate&&(n.autoRotate.rotation=a.rotation),1===t)for(o=n.firstMPT;o;){if(i=o.t,i.type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,s=1;i.l>s;s++)r+=i["xn"+s]+i["xs"+(s+1)];i.e=r}}else i.e=i.s+i.xs0;o=o._next}},function(t,e,i,s,r){this.t=t,this.p=e,this.v=i,this.r=r,s&&(s._prev=this,this._next=s)}),pe=(N._parseToProxy=function(t,e,i,s,r,n){var a,o,h,l,_,u=s,p={},c={},f=i._transform,m=I;for(i._transform=null,I=e,s=_=i.parse(t,e,s,r),I=m,n&&(i._transform=f,u&&(u._prev=null,u._prev&&(u._prev._next=null)));s&&s!==u;){if(1>=s.type&&(o=s.p,c[o]=s.s+s.c,p[o]=s.s,n||(l=new ue(s,"s",o,l,s.r),s.c=0),1===s.type))for(a=s.l;--a>0;)h="xn"+a,o=s.p+"_"+h,c[o]=s.data[h],p[o]=s[h],n||(l=new ue(s,h,o,l,s.rxp[h]));s=s._next}return{proxy:p,end:c,firstMPT:l,pt:_}},N.CSSPropTween=function(t,e,s,r,a,o,h,l,_,u,p){this.t=t,this.p=e,this.s=s,this.c=r,this.n=h||e,t instanceof pe||n.push(this.n),this.r=l,this.type=o||0,_&&(this.pr=_,i=!0),this.b=void 0===u?s:u,this.e=void 0===p?s+r:p,a&&(this._next=a,a._prev=this)}),ce=a.parseComplex=function(t,e,i,s,r,n,a,o,h,_){i=i||n||"",a=new pe(t,e,0,0,a,_?2:1,null,!1,o,i,s),s+="";var u,p,c,f,g,v,y,T,w,x,P,S,k=i.split(", ").join(",").split(" "),R=s.split(", ").join(",").split(" "),A=k.length,C=l!==!1;for((-1!==s.indexOf(",")||-1!==i.indexOf(","))&&(k=k.join(" ").replace(D,", ").split(" "),R=R.join(" ").replace(D,", ").split(" "),A=k.length),A!==R.length&&(k=(n||"").split(" "),A=k.length),a.plugin=h,a.setRatio=_,u=0;A>u;u++)if(f=k[u],g=R[u],T=parseFloat(f),T||0===T)a.appendXtra("",T,ie(g,T),g.replace(d,""),C&&-1!==g.indexOf("px"),!0);else if(r&&("#"===f.charAt(0)||ne[f]||b.test(f)))S=","===g.charAt(g.length-1)?"),":")",f=oe(f),g=oe(g),w=f.length+g.length>6,w&&!U&&0===g[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(R[u]).join("transparent")):(U||(w=!1),a.appendXtra(w?"rgba(":"rgb(",f[0],g[0]-f[0],",",!0,!0).appendXtra("",f[1],g[1]-f[1],",",!0).appendXtra("",f[2],g[2]-f[2],w?",":S,!0),w&&(f=4>f.length?1:f[3],a.appendXtra("",f,(4>g.length?1:g[3])-f,S,!1)));else if(v=f.match(m)){if(y=g.match(d),!y||y.length!==v.length)return a;for(c=0,p=0;v.length>p;p++)P=v[p],x=f.indexOf(P,c),a.appendXtra(f.substr(c,x-c),Number(P),ie(y[p],P),"",C&&"px"===f.substr(x+P.length,2),0===p),c=x+P.length;a["xs"+a.l]+=f.substr(c)}else a["xs"+a.l]+=a.l?" "+f:f;if(-1!==s.indexOf("=")&&a.data){for(S=a.xs0+a.data.s,u=1;a.l>u;u++)S+=a["xs"+u]+a.data["xn"+u];a.e=S+a["xs"+u]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},fe=9;for(h=pe.prototype,h.l=h.pr=0;--fe>0;)h["xn"+fe]=0,h["xs"+fe]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(t,e,i,s,r,n){var a=this,o=a.l;return a["xs"+o]+=n&&o?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=s||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=r,a["xn"+o]=e,a.plugin||(a.xfirst=new pe(a,"xn"+o,e,i,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=r,a)):(a["xs"+o]+=e+(s||""),a)};var me=function(t,e){e=e||{},this.p=e.prefix?V(t)||t:t,o[t]=o[this.p]=this,this.format=e.formatter||le(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},de=N._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var s,r,n=t.split(","),a=e.defaultValue;for(i=i||[a],s=0;n.length>s;s++)e.prefix=0===s&&e.prefix,e.defaultValue=i[s]||a,r=new me(n[s],e)},ge=function(t){if(!o[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";de(t,{parser:function(t,i,s,r,n,a,h){var l=(_gsScope.GreenSockGlobals||_gsScope).com.greensock.plugins[e];return l?(l._cssRegister(),o[s].parse(t,i,s,r,n,a,h)):(j("Error: "+e+" js file not loaded."),n)}})}};h=me.prototype,h.parseComplex=function(t,e,i,s,r,n){var a,o,h,l,_,u,p=this.keyword;if(this.multi&&(D.test(i)||D.test(e)?(o=e.replace(D,"|").split("|"),h=i.replace(D,"|").split("|")):p&&(o=[e],h=[i])),h){for(l=h.length>o.length?h.length:o.length,a=0;l>a;a++)e=o[a]=o[a]||this.dflt,i=h[a]=h[a]||this.dflt,p&&(_=e.indexOf(p),u=i.indexOf(p),_!==u&&(i=-1===u?h:o,i[a]+=" "+p));e=o.join(", "),i=h.join(", ")}return ce(t,this.p,e,i,this.clrs,this.dflt,s,this.pr,r,n)},h.parse=function(t,e,i,s,n,a){return this.parseComplex(t.style,this.format(W(t,this.p,r,!1,this.dflt)),this.format(e),n,a)},a.registerSpecialProp=function(t,e,i){de(t,{parser:function(t,s,r,n,a,o){var h=new pe(t,r,0,0,a,2,r,!1,i);return h.plugin=o,h.setRatio=e(t,s,n._tween,r),h},priority:i})};var ve="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),ye=V("transform"),Te=B+"transform",we=V("transformOrigin"),xe=null!==V("perspective"),be=N.Transform=function(){this.skewY=0},Pe=N.getTransform=function(t,e,i,s){if(t._gsTransform&&i&&!s)return t._gsTransform;var r,n,o,h,l,_,u,p,c,f,m,d,g,v=i?t._gsTransform||new be:new be,y=0>v.scaleX,T=2e-5,w=1e5,x=179.99,b=x*M,P=xe?parseFloat(W(t,we,e,!1,"0 0 0").split(" ")[2])||v.zOrigin||0:0;if(ye?r=W(t,Te,e,!0):t.currentStyle&&(r=t.currentStyle.filter.match(C),r=r&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),v.x||0,v.y||0].join(","):""),r&&"none"!==r&&"matrix(1, 0, 0, 1, 0, 0)"!==r){for(n=(r||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],o=n.length;--o>-1;)h=Number(n[o]),n[o]=(l=h-(h|=0))?(0|l*w+(0>l?-.5:.5))/w+h:h;if(16===n.length){var S=n[8],k=n[9],R=n[10],A=n[12],O=n[13],D=n[14];if(v.zOrigin&&(D=-v.zOrigin,A=S*D-n[12],O=k*D-n[13],D=R*D+v.zOrigin-n[14]),!i||s||null==v.rotationX){var I,E,L,F,N,X,U,Y=n[0],j=n[1],B=n[2],q=n[3],V=n[4],G=n[5],Q=n[6],Z=n[7],$=n[11],H=Math.atan2(Q,R),K=-b>H||H>b;v.rotationX=H*z,H&&(F=Math.cos(-H),N=Math.sin(-H),I=V*F+S*N,E=G*F+k*N,L=Q*F+R*N,S=V*-N+S*F,k=G*-N+k*F,R=Q*-N+R*F,$=Z*-N+$*F,V=I,G=E,Q=L),H=Math.atan2(S,Y),v.rotationY=H*z,H&&(X=-b>H||H>b,F=Math.cos(-H),N=Math.sin(-H),I=Y*F-S*N,E=j*F-k*N,L=B*F-R*N,k=j*N+k*F,R=B*N+R*F,$=q*N+$*F,Y=I,j=E,B=L),H=Math.atan2(j,G),v.rotation=H*z,H&&(U=-b>H||H>b,F=Math.cos(-H),N=Math.sin(-H),Y=Y*F+V*N,E=j*F+G*N,G=j*-N+G*F,Q=B*-N+Q*F,j=E),U&&K?v.rotation=v.rotationX=0:U&&X?v.rotation=v.rotationY=0:X&&K&&(v.rotationY=v.rotationX=0),v.scaleX=(0|Math.sqrt(Y*Y+j*j)*w+.5)/w,v.scaleY=(0|Math.sqrt(G*G+k*k)*w+.5)/w,v.scaleZ=(0|Math.sqrt(Q*Q+R*R)*w+.5)/w,v.skewX=0,v.perspective=$?1/(0>$?-$:$):0,v.x=A,v.y=O,v.z=D}}else if(!(xe&&!s&&n.length&&v.x===n[4]&&v.y===n[5]&&(v.rotationX||v.rotationY)||void 0!==v.x&&"none"===W(t,"display",e))){var J=n.length>=6,te=J?n[0]:1,ee=n[1]||0,ie=n[2]||0,se=J?n[3]:1;v.x=n[4]||0,v.y=n[5]||0,_=Math.sqrt(te*te+ee*ee),u=Math.sqrt(se*se+ie*ie),p=te||ee?Math.atan2(ee,te)*z:v.rotation||0,c=ie||se?Math.atan2(ie,se)*z+p:v.skewX||0,f=_-Math.abs(v.scaleX||0),m=u-Math.abs(v.scaleY||0),Math.abs(c)>90&&270>Math.abs(c)&&(y?(_*=-1,c+=0>=p?180:-180,p+=0>=p?180:-180):(u*=-1,c+=0>=c?180:-180)),d=(p-v.rotation)%180,g=(c-v.skewX)%180,(void 0===v.skewX||f>T||-T>f||m>T||-T>m||d>-x&&x>d&&false|d*w||g>-x&&x>g&&false|g*w)&&(v.scaleX=_,v.scaleY=u,v.rotation=p,v.skewX=c),xe&&(v.rotationX=v.rotationY=v.z=0,v.perspective=parseFloat(a.defaultTransformPerspective)||0,v.scaleZ=1)}v.zOrigin=P;for(o in v)T>v[o]&&v[o]>-T&&(v[o]=0)}else v={x:0,y:0,z:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,perspective:0,rotation:0,rotationX:0,rotationY:0,zOrigin:0};return i&&(t._gsTransform=v),v.xPercent=v.yPercent=0,v},Se=function(t){var e,i,s=this.data,r=-s.rotation*M,n=r+s.skewX*M,a=1e5,o=(0|Math.cos(r)*s.scaleX*a)/a,h=(0|Math.sin(r)*s.scaleX*a)/a,l=(0|Math.sin(n)*-s.scaleY*a)/a,_=(0|Math.cos(n)*s.scaleY*a)/a,u=this.t.style,p=this.t.currentStyle;if(p){i=h,h=-l,l=-i,e=p.filter,u.filter="";var c,m,d=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==p.position,w="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+h+", M21="+l+", M22="+_,x=s.x+d*s.xPercent/100,b=s.y+g*s.yPercent/100;if(null!=s.ox&&(c=(s.oxp?.01*d*s.ox:s.ox)-d/2,m=(s.oyp?.01*g*s.oy:s.oy)-g/2,x+=c-(c*o+m*h),b+=m-(c*l+m*_)),v?(c=d/2,m=g/2,w+=", Dx="+(c-(c*o+m*h)+x)+", Dy="+(m-(c*l+m*_)+b)+")"):w+=", sizingMethod='auto expand')",u.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(O,w):w+" "+e,(0===t||1===t)&&1===o&&0===h&&0===l&&1===_&&(v&&-1===w.indexOf("Dx=0, Dy=0")||T.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf("gradient("&&e.indexOf("Alpha"))&&u.removeAttribute("filter")),!v){var P,S,k,R=8>f?1:-1;for(c=s.ieOffsetX||0,m=s.ieOffsetY||0,s.ieOffsetX=Math.round((d-((0>o?-o:o)*d+(0>h?-h:h)*g))/2+x),s.ieOffsetY=Math.round((g-((0>_?-_:_)*g+(0>l?-l:l)*d))/2+b),fe=0;4>fe;fe++)S=J[fe],P=p[S],i=-1!==P.indexOf("px")?parseFloat(P):Q(this.t,S,parseFloat(P),P.replace(y,""))||0,k=i!==s[S]?2>fe?-s.ieOffsetX:-s.ieOffsetY:2>fe?c-s.ieOffsetX:m-s.ieOffsetY,u[S]=(s[S]=Math.round(i-k*(0===fe||2===fe?1:R)))+"px"}}},ke=N.set3DTransformRatio=function(t){var e,i,s,r,n,a,o,h,l,_,u,c,f,m,d,g,v,y,T,w,x,b,P,S=this.data,k=this.t.style,R=S.rotation*M,A=S.scaleX,C=S.scaleY,O=S.scaleZ,D=S.x,z=S.y,I=S.z,E=S.perspective;if(!(1!==t&&0!==t||"auto"!==S.force3D||S.rotationY||S.rotationX||1!==O||E||I))return Re.call(this,t),void 0;if(p){var L=1e-4;L>A&&A>-L&&(A=O=2e-5),L>C&&C>-L&&(C=O=2e-5),!E||S.z||S.rotationX||S.rotationY||(E=0)}if(R||S.skewX)y=Math.cos(R),T=Math.sin(R),e=y,n=T,S.skewX&&(R-=S.skewX*M,y=Math.cos(R),T=Math.sin(R),"simple"===S.skewType&&(w=Math.tan(S.skewX*M),w=Math.sqrt(1+w*w),y*=w,T*=w)),i=-T,a=y;else{if(!(S.rotationY||S.rotationX||1!==O||E))return k[ye]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) translate3d(":"translate3d(")+D+"px,"+z+"px,"+I+"px)"+(1!==A||1!==C?" scale("+A+","+C+")":""),void 0;e=a=1,i=n=0}u=1,s=r=o=h=l=_=c=f=m=0,d=E?-1/E:0,g=S.zOrigin,v=1e5,R=S.rotationY*M,R&&(y=Math.cos(R),T=Math.sin(R),l=u*-T,f=d*-T,s=e*T,o=n*T,u*=y,d*=y,e*=y,n*=y),R=S.rotationX*M,R&&(y=Math.cos(R),T=Math.sin(R),w=i*y+s*T,x=a*y+o*T,b=_*y+u*T,P=m*y+d*T,s=i*-T+s*y,o=a*-T+o*y,u=_*-T+u*y,d=m*-T+d*y,i=w,a=x,_=b,m=P),1!==O&&(s*=O,o*=O,u*=O,d*=O),1!==C&&(i*=C,a*=C,_*=C,m*=C),1!==A&&(e*=A,n*=A,l*=A,f*=A),g&&(c-=g,r=s*c,h=o*c,c=u*c+g),r=(w=(r+=D)-(r|=0))?(0|w*v+(0>w?-.5:.5))/v+r:r,h=(w=(h+=z)-(h|=0))?(0|w*v+(0>w?-.5:.5))/v+h:h,c=(w=(c+=I)-(c|=0))?(0|w*v+(0>w?-.5:.5))/v+c:c,k[ye]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix3d(":"matrix3d(")+[(0|e*v)/v,(0|n*v)/v,(0|l*v)/v,(0|f*v)/v,(0|i*v)/v,(0|a*v)/v,(0|_*v)/v,(0|m*v)/v,(0|s*v)/v,(0|o*v)/v,(0|u*v)/v,(0|d*v)/v,r,h,c,E?1+-c/E:1].join(",")+")"},Re=N.set2DTransformRatio=function(t){var e,i,s,r,n,a=this.data,o=this.t,h=o.style,l=a.x,_=a.y;return a.rotationX||a.rotationY||a.z||a.force3D===!0||"auto"===a.force3D&&1!==t&&0!==t?(this.setRatio=ke,ke.call(this,t),void 0):(a.rotation||a.skewX?(e=a.rotation*M,i=e-a.skewX*M,s=1e5,r=a.scaleX*s,n=a.scaleY*s,h[ye]=(a.xPercent||a.yPercent?"translate("+a.xPercent+"%,"+a.yPercent+"%) matrix(":"matrix(")+(0|Math.cos(e)*r)/s+","+(0|Math.sin(e)*r)/s+","+(0|Math.sin(i)*-n)/s+","+(0|Math.cos(i)*n)/s+","+l+","+_+")"):h[ye]=(a.xPercent||a.yPercent?"translate("+a.xPercent+"%,"+a.yPercent+"%) matrix(":"matrix(")+a.scaleX+",0,0,"+a.scaleY+","+l+","+_+")",void 0)};de("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent",{parser:function(t,e,i,s,n,o,h){if(s._transform)return n;var l,_,u,p,c,f,m,d=s._transform=Pe(t,r,!0,h.parseTransform),g=t.style,v=1e-6,y=ve.length,T=h,w={};if("string"==typeof T.transform&&ye)u=L.style,u[ye]=T.transform,u.display="block",u.position="absolute",E.body.appendChild(L),l=Pe(L,null,!1),E.body.removeChild(L);else if("object"==typeof T){if(l={scaleX:se(null!=T.scaleX?T.scaleX:T.scale,d.scaleX),scaleY:se(null!=T.scaleY?T.scaleY:T.scale,d.scaleY),scaleZ:se(T.scaleZ,d.scaleZ),x:se(T.x,d.x),y:se(T.y,d.y),z:se(T.z,d.z),xPercent:se(T.xPercent,d.xPercent),yPercent:se(T.yPercent,d.yPercent),perspective:se(T.transformPerspective,d.perspective)},m=T.directionalRotation,null!=m)if("object"==typeof m)for(u in m)T[u]=m[u];else T.rotation=m;"string"==typeof T.x&&-1!==T.x.indexOf("%")&&(l.x=0,l.xPercent=se(T.x,d.xPercent)),"string"==typeof T.y&&-1!==T.y.indexOf("%")&&(l.y=0,l.yPercent=se(T.y,d.yPercent)),l.rotation=re("rotation"in T?T.rotation:"shortRotation"in T?T.shortRotation+"_short":"rotationZ"in T?T.rotationZ:d.rotation,d.rotation,"rotation",w),xe&&(l.rotationX=re("rotationX"in T?T.rotationX:"shortRotationX"in T?T.shortRotationX+"_short":d.rotationX||0,d.rotationX,"rotationX",w),l.rotationY=re("rotationY"in T?T.rotationY:"shortRotationY"in T?T.shortRotationY+"_short":d.rotationY||0,d.rotationY,"rotationY",w)),l.skewX=null==T.skewX?d.skewX:re(T.skewX,d.skewX),l.skewY=null==T.skewY?d.skewY:re(T.skewY,d.skewY),(_=l.skewY-d.skewY)&&(l.skewX+=_,l.rotation+=_)}for(xe&&null!=T.force3D&&(d.force3D=T.force3D,f=!0),d.skewType=T.skewType||d.skewType||a.defaultSkewType,c=d.force3D||d.z||d.rotationX||d.rotationY||l.z||l.rotationX||l.rotationY||l.perspective,c||null==T.scale||(l.scaleZ=1);--y>-1;)i=ve[y],p=l[i]-d[i],(p>v||-v>p||null!=I[i])&&(f=!0,n=new pe(d,i,d[i],p,n),i in w&&(n.e=w[i]),n.xs0=0,n.plugin=o,s._overwriteProps.push(n.n));return p=T.transformOrigin,(p||xe&&c&&d.zOrigin)&&(ye?(f=!0,i=we,p=(p||W(t,i,r,!1,"50% 50%"))+"",n=new pe(g,i,0,0,n,-1,"transformOrigin"),n.b=g[i],n.plugin=o,xe?(u=d.zOrigin,p=p.split(" "),d.zOrigin=(p.length>2&&(0===u||"0px"!==p[2])?parseFloat(p[2]):u)||0,n.xs0=n.e=p[0]+" "+(p[1]||"50%")+" 0px",n=new pe(d,"zOrigin",0,0,n,-1,n.n),n.b=u,n.xs0=n.e=d.zOrigin):n.xs0=n.e=p):ee(p+"",d)),f&&(s._transformType=c||3===this._transformType?3:2),n},prefix:!0}),de("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),de("borderRadius",{defaultValue:"0px",parser:function(t,e,i,n,a){e=this.format(e);var o,h,l,_,u,p,c,f,m,d,g,v,y,T,w,x,b=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],P=t.style;for(m=parseFloat(t.offsetWidth),d=parseFloat(t.offsetHeight),o=e.split(" "),h=0;b.length>h;h++)this.p.indexOf("border")&&(b[h]=V(b[h])),u=_=W(t,b[h],r,!1,"0px"),-1!==u.indexOf(" ")&&(_=u.split(" "),u=_[0],_=_[1]),p=l=o[h],c=parseFloat(u),v=u.substr((c+"").length),y="="===p.charAt(1),y?(f=parseInt(p.charAt(0)+"1",10),p=p.substr(2),f*=parseFloat(p),g=p.substr((f+"").length-(0>f?1:0))||""):(f=parseFloat(p),g=p.substr((f+"").length)),""===g&&(g=s[i]||v),g!==v&&(T=Q(t,"borderLeft",c,v),w=Q(t,"borderTop",c,v),"%"===g?(u=100*(T/m)+"%",_=100*(w/d)+"%"):"em"===g?(x=Q(t,"borderLeft",1,"em"),u=T/x+"em",_=w/x+"em"):(u=T+"px",_=w+"px"),y&&(p=parseFloat(u)+f+g,l=parseFloat(_)+f+g)),a=ce(P,b[h],u+" "+_,p+" "+l,!1,"0px",a);return a},prefix:!0,formatter:le("0px 0px 0px 0px",!1,!0)}),de("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,s,n,a){var o,h,l,_,u,p,c="background-position",m=r||G(t,null),d=this.format((m?f?m.getPropertyValue(c+"-x")+" "+m.getPropertyValue(c+"-y"):m.getPropertyValue(c):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),g=this.format(e);if(-1!==d.indexOf("%")!=(-1!==g.indexOf("%"))&&(p=W(t,"backgroundImage").replace(k,""),p&&"none"!==p)){for(o=d.split(" "),h=g.split(" "),F.setAttribute("src",p),l=2;--l>-1;)d=o[l],_=-1!==d.indexOf("%"),_!==(-1!==h[l].indexOf("%"))&&(u=0===l?t.offsetWidth-F.width:t.offsetHeight-F.height,o[l]=_?parseFloat(d)/100*u+"px":100*(parseFloat(d)/u)+"%");d=o.join(" ")}return this.parseComplex(t.style,d,g,n,a)},formatter:ee}),de("backgroundSize",{defaultValue:"0 0",formatter:ee}),de("perspective",{defaultValue:"0px",prefix:!0}),de("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),de("transformStyle",{prefix:!0}),de("backfaceVisibility",{prefix:!0}),de("userSelect",{prefix:!0}),de("margin",{parser:_e("marginTop,marginRight,marginBottom,marginLeft")}),de("padding",{parser:_e("paddingTop,paddingRight,paddingBottom,paddingLeft")}),de("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,s,n,a){var o,h,l;return 9>f?(h=t.currentStyle,l=8>f?" ":",",o="rect("+h.clipTop+l+h.clipRight+l+h.clipBottom+l+h.clipLeft+")",e=this.format(e).split(",").join(l)):(o=this.format(W(t,this.p,r,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,n,a)}}),de("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),de("autoRound,strictUnits",{parser:function(t,e,i,s,r){return r}}),de("border",{defaultValue:"0px solid #000",parser:function(t,e,i,s,n,a){return this.parseComplex(t.style,this.format(W(t,"borderTopWidth",r,!1,"0px")+" "+W(t,"borderTopStyle",r,!1,"solid")+" "+W(t,"borderTopColor",r,!1,"#000")),this.format(e),n,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(he)||["#000"])[0]}}),de("borderWidth",{parser:_e("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),de("float,cssFloat,styleFloat",{parser:function(t,e,i,s,r){var n=t.style,a="cssFloat"in n?"cssFloat":"styleFloat";return new pe(n,a,0,0,r,-1,i,!1,0,n[a],e)}});var Ae=function(t){var e,i=this.t,s=i.filter||W(this.data,"filter"),r=0|this.s+this.c*t;100===r&&(-1===s.indexOf("atrix(")&&-1===s.indexOf("radient(")&&-1===s.indexOf("oader(")?(i.removeAttribute("filter"),e=!W(this.data,"filter")):(i.filter=s.replace(x,""),e=!0)),e||(this.xn1&&(i.filter=s=s||"alpha(opacity="+r+")"),-1===s.indexOf("pacity")?0===r&&this.xn1||(i.filter=s+" alpha(opacity="+r+")"):i.filter=s.replace(T,"opacity="+r))};de("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,s,n,a){var o=parseFloat(W(t,"opacity",r,!1,"1")),h=t.style,l="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),l&&1===o&&"hidden"===W(t,"visibility",r)&&0!==e&&(o=0),U?n=new pe(h,"opacity",o,e-o,n):(n=new pe(h,"opacity",100*o,100*(e-o),n),n.xn1=l?1:0,h.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=a,n.setRatio=Ae),l&&(n=new pe(h,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),n.xs0="inherit",s._overwriteProps.push(n.n),s._overwriteProps.push(i)),n}});var Ce=function(t,e){e&&(t.removeProperty?("ms"===e.substr(0,2)&&(e="M"+e.substr(1)),t.removeProperty(e.replace(P,"-$1").toLowerCase())):t.removeAttribute(e))},Oe=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Ce(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};de("className",{parser:function(t,e,s,n,a,o,h){var l,_,u,p,c,f=t.getAttribute("class")||"",m=t.style.cssText;if(a=n._classNamePT=new pe(t,s,0,0,a,2),a.setRatio=Oe,a.pr=-11,i=!0,a.b=f,_=$(t,r),u=t._gsClassPT){for(p={},c=u.data;c;)p[c.p]=1,c=c._next;u.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:f.replace(RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),n._tween._duration&&(t.setAttribute("class",a.e),l=H(t,_,$(t),h,p),t.setAttribute("class",f),a.data=l.firstMPT,t.style.cssText=m,a=a.xfirst=n.parse(t,l.difs,a,o)),a}});var De=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,s,r,n=this.t.style,a=o.transform.parse;if("all"===this.e)n.cssText="",r=!0;else for(e=this.e.split(","),s=e.length;--s>-1;)i=e[s],o[i]&&(o[i].parse===a?r=!0:i="transformOrigin"===i?we:o[i].p),Ce(n,i);r&&(Ce(n,ye),this.t._gsTransform&&delete this.t._gsTransform)}};for(de("clearProps",{parser:function(t,e,s,r,n){return n=new pe(t,s,0,0,n,2),n.setRatio=De,n.e=e,n.pr=-10,n.data=r._tween,i=!0,n}}),h="bezier,throwProps,physicsProps,physics2D".split(","),fe=h.length;fe--;)ge(h[fe]);h=a.prototype,h._firstPT=null,h._onInitTween=function(t,e,o){if(!t.nodeType)return!1;this._target=t,this._tween=o,this._vars=e,l=e.autoRound,i=!1,s=e.suffixMap||a.suffixMap,r=G(t,""),n=this._overwriteProps;var h,p,f,m,d,g,v,y,T,x=t.style;if(_&&""===x.zIndex&&(h=W(t,"zIndex",r),("auto"===h||""===h)&&this._addLazySet(x,"zIndex",0)),"string"==typeof e&&(m=x.cssText,h=$(t,r),x.cssText=m+";"+e,h=H(t,h,$(t)).difs,!U&&w.test(e)&&(h.opacity=parseFloat(RegExp.$1)),e=h,x.cssText=m),this._firstPT=p=this.parse(t,e,null),this._transformType){for(T=3===this._transformType,ye?u&&(_=!0,""===x.zIndex&&(v=W(t,"zIndex",r),("auto"===v||""===v)&&this._addLazySet(x,"zIndex",0)),c&&this._addLazySet(x,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(T?"visible":"hidden"))):x.zoom=1,f=p;f&&f._next;)f=f._next;y=new pe(t,"transform",0,0,null,2),this._linkCSSP(y,null,f),y.setRatio=T&&xe?ke:ye?Re:Se,y.data=this._transform||Pe(t,r,!0),n.pop()}if(i){for(;p;){for(g=p._next,f=m;f&&f.pr>p.pr;)f=f._next;(p._prev=f?f._prev:d)?p._prev._next=p:m=p,(p._next=f)?f._prev=p:d=p,p=g}this._firstPT=m}return!0},h.parse=function(t,e,i,n){var a,h,_,u,p,c,f,m,d,g,v=t.style;for(a in e)c=e[a],h=o[a],h?i=h.parse(t,c,a,this,i,n,e):(p=W(t,a,r)+"",d="string"==typeof c,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||d&&b.test(c)?(d||(c=oe(c),c=(c.length>3?"rgba(":"rgb(")+c.join(",")+")"),i=ce(v,a,p,c,!0,"transparent",i,0,n)):!d||-1===c.indexOf(" ")&&-1===c.indexOf(",")?(_=parseFloat(p),f=_||0===_?p.substr((_+"").length):"",(""===p||"auto"===p)&&("width"===a||"height"===a?(_=te(t,a,r),f="px"):"left"===a||"top"===a?(_=Z(t,a,r),f="px"):(_="opacity"!==a?0:1,f="")),g=d&&"="===c.charAt(1),g?(u=parseInt(c.charAt(0)+"1",10),c=c.substr(2),u*=parseFloat(c),m=c.replace(y,"")):(u=parseFloat(c),m=d?c.substr((u+"").length)||"":""),""===m&&(m=a in s?s[a]:f),c=u||0===u?(g?u+_:u)+m:e[a],f!==m&&""!==m&&(u||0===u)&&_&&(_=Q(t,a,_,f),"%"===m?(_/=Q(t,a,100,"%")/100,e.strictUnits!==!0&&(p=_+"%")):"em"===m?_/=Q(t,a,1,"em"):"px"!==m&&(u=Q(t,a,u,m),m="px"),g&&(u||0===u)&&(c=u+_+m)),g&&(u+=_),!_&&0!==_||!u&&0!==u?void 0!==v[a]&&(c||"NaN"!=c+""&&null!=c)?(i=new pe(v,a,u||_||0,0,i,-1,a,!1,0,p,c),i.xs0="none"!==c||"display"!==a&&-1===a.indexOf("Style")?c:p):j("invalid "+a+" tween value: "+e[a]):(i=new pe(v,a,_,u-_,i,0,a,l!==!1&&("px"===m||"zIndex"===a),0,p,c),i.xs0=m)):i=ce(v,a,p,c,!0,null,i,0,n)),n&&i&&!i.plugin&&(i.plugin=n);
return i},h.setRatio=function(t){var e,i,s,r=this._firstPT,n=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;r;){if(e=r.c*t+r.s,r.r?e=Math.round(e):n>e&&e>-n&&(e=0),r.type)if(1===r.type)if(s=r.l,2===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,s=1;r.l>s;s++)i+=r["xn"+s]+r["xs"+(s+1)];r.t[r.p]=i}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;)2!==r.type?r.t[r.p]=r.e:r.setRatio(t),r=r._next},h._enableTransforms=function(t){this._transformType=t||3===this._transformType?3:2,this._transform=this._transform||Pe(this._target,r,!0)};var Me=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};h._addLazySet=function(t,e,i){var s=this._firstPT=new pe(t,e,0,0,this._firstPT,2);s.e=i,s.setRatio=Me,s.data=this},h._linkCSSP=function(t,e,i,s){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,s=!0),i?i._next=t:s||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},h._kill=function(e){var i,s,r,n=e;if(e.autoAlpha||e.alpha){n={};for(s in e)n[s]=e[s];n.opacity=1,n.autoAlpha&&(n.visibility=1)}return e.className&&(i=this._classNamePT)&&(r=i.xfirst,r&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),t.prototype._kill.call(this,n)};var ze=function(t,e,i){var s,r,n,a;if(t.slice)for(r=t.length;--r>-1;)ze(t[r],e,i);else for(s=t.childNodes,r=s.length;--r>-1;)n=s[r],a=n.type,n.style&&(e.push($(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childNodes.length||ze(n,e,i)};return a.cascadeTo=function(t,i,s){var r,n,a,o=e.to(t,i,s),h=[o],l=[],_=[],u=[],p=e._internals.reservedProps;for(t=o._targets||o.target,ze(t,l,u),o.render(i,!0),ze(t,_),o.render(0,!0),o._enabled(!0),r=u.length;--r>-1;)if(n=H(u[r],l[r],_[r]),n.firstMPT){n=n.difs;for(a in s)p[a]&&(n[a]=s[a]);h.push(e.to(u[r],i,n))}return h},t.activate([a]),a},!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=t.prototype;e._onInitAllProps=function(){for(var t,e,i,s=this._tween,r=s.vars.roundProps instanceof Array?s.vars.roundProps:s.vars.roundProps.split(","),n=r.length,a={},o=s._propLookup.roundProps;--n>-1;)a[r[n]]=1;for(n=r.length;--n>-1;)for(t=r[n],e=s._firstPT;e;)i=e._next,e.pg?e.t._roundProps(a,!0):e.n===t&&(this._add(e.t,t,e.s,e.c),i&&(i._prev=e._prev),e._prev?e._prev._next=i:s._firstPT===e&&(s._firstPT=i),e._next=e._prev=null,s._propLookup[t]=o),e=i;return!1},e._add=function(t,e,i,s){this._addTween(t,e,i,i+s,e,!0),this._overwriteProps.push(e)}}(),_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.3.3",init:function(t,e){var i,s,r;if("function"!=typeof t.setAttribute)return!1;this._target=t,this._proxy={},this._start={},this._end={};for(i in e)this._start[i]=this._proxy[i]=s=t.getAttribute(i),r=this._addTween(this._proxy,i,parseFloat(s),e[i],i),this._end[i]=r?r.s+r.c:e[i],this._overwriteProps.push(i);return!0},set:function(t){this._super.setRatio.call(this,t);for(var e,i=this._overwriteProps,s=i.length,r=1===t?this._end:t?this._proxy:this._start;--s>-1;)e=i[s],this._target.setAttribute(e,r[e]+"")}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.2.1",API:2,init:function(t,e){"object"!=typeof e&&(e={rotation:e}),this.finals={};var i,s,r,n,a,o,h=e.useRadians===!0?2*Math.PI:360,l=1e-6;for(i in e)"useRadians"!==i&&(o=(e[i]+"").split("_"),s=o[0],r=parseFloat("function"!=typeof t[i]?t[i]:t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)]()),n=this.finals[i]="string"==typeof s&&"="===s.charAt(1)?r+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0,a=n-r,o.length&&(s=o.join("_"),-1!==s.indexOf("short")&&(a%=h,a!==a%(h/2)&&(a=0>a?a+h:a-h)),-1!==s.indexOf("_cw")&&0>a?a=(a+9999999999*h)%h-(0|a/h)*h:-1!==s.indexOf("ccw")&&a>0&&(a=(a-9999999999*h)%h-(0|a/h)*h)),(a>l||-l>a)&&(this._addTween(t,i,r,r+a,i),this._overwriteProps.push(i)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,s,r=_gsScope.GreenSockGlobals||_gsScope,n=r.com.greensock,a=2*Math.PI,o=Math.PI/2,h=n._class,l=function(e,i){var s=h("easing."+e,function(){},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,s},_=t.register||function(){},u=function(t,e,i,s){var r=h("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new s},!0);return _(r,t),r},p=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},c=function(e,i){var s=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,r.config=function(t){return new s(t)},s},f=u("Back",c("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),c("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),c("BackInOut",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),d=m.prototype=new t;return d.constructor=m,d.getRatio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),d.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),d=e.prototype=new t,d.constructor=e,d.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},d.config=e.config=function(t){return new e(t)},i=h("easing.RoughEase",function(e){e=e||{};for(var i,s,r,n,a,o,h=e.taper||"none",l=[],_=0,u=0|(e.points||20),c=u,f=e.randomize!==!1,m=e.clamp===!0,d=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--c>-1;)i=f?Math.random():1/u*c,s=d?d.getRatio(i):i,"none"===h?r=g:"out"===h?(n=1-i,r=n*n*g):"in"===h?r=i*i*g:.5>i?(n=2*i,r=.5*n*n*g):(n=2*(1-i),r=.5*n*n*g),f?s+=Math.random()*r-.5*r:c%2?s+=.5*r:s-=.5*r,m&&(s>1?s=1:0>s&&(s=0)),l[_++]={x:i,y:s};for(l.sort(function(t,e){return t.x-e.x}),o=new p(1,1,null),c=u;--c>-1;)a=l[c],o=new p(a.x,a.y,o);this._prev=new p(0,0,0!==o.t?o:o.next)},!0),d=i.prototype=new t,d.constructor=i,d.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},d.config=function(t){return new i(t)},i.ease=new i,u("Bounce",l("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("BounceIn",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),u("Circ",l("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),l("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),l("CircInOut",function(t){return 1>(t*=2)?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var r=h("easing."+e,function(t,e){this._p1=t||1,this._p2=e||s,this._p3=this._p2/a*(Math.asin(1/this._p1)||0)},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t,e){return new r(t,e)},r},u("Elastic",s("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*a/this._p2)+1},.3),s("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*a/this._p2))},.3),s("ElasticInOut",function(t){return 1>(t*=2)?-.5*this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*a/this._p2):.5*this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*a/this._p2)+1},.45)),u("Expo",l("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),l("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),l("ExpoInOut",function(t){return 1>(t*=2)?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),u("Sine",l("SineOut",function(t){return Math.sin(t*o)}),l("SineIn",function(t){return-Math.cos(t*o)+1}),l("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),h("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),_(r.SlowMo,"SlowMo","ease,"),_(i,"RoughEase","ease,"),_(e,"SteppedEase","ease,"),f},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!i.TweenLite){var s,r,n,a,o,h=function(t){var e,s=t.split("."),r=i;for(e=0;s.length>e;e++)r[s[e]]=r=r[s[e]]||{};return r},l=h("com.greensock"),_=1e-10,u=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},p=function(){},c=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),f={},m=function(s,r,n,a){this.sc=f[s]?f[s].sc:[],f[s]=this,this.gsClass=null,this.func=n;var o=[];this.check=function(l){for(var _,u,p,c,d=r.length,g=d;--d>-1;)(_=f[r[d]]||new m(r[d],[])).gsClass?(o[d]=_.gsClass,g--):l&&_.sc.push(this);if(0===g&&n)for(u=("com.greensock."+s).split("."),p=u.pop(),c=h(u.join("."))[p]=this.gsClass=n.apply(n,o),a&&(i[p]=c,"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return c}):s===e&&"undefined"!=typeof module&&module.exports&&(module.exports=c)),d=0;this.sc.length>d;d++)this.sc[d].check()},this.check(!0)},d=t._gsDefine=function(t,e,i,s){return new m(t,e,i,s)},g=l._class=function(t,e,i){return e=e||function(){},d(t,[],function(){return e},i),e};d.globals=i;var v=[0,0,1,1],y=[],T=g("easing.Ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?v.concat(e):v},!0),w=T.map={},x=T.register=function(t,e,i,s){for(var r,n,a,o,h=e.split(","),_=h.length,u=(i||"easeIn,easeOut,easeInOut").split(",");--_>-1;)for(n=h[_],r=s?g("easing."+n,null,!0):l.easing[n]||{},a=u.length;--a>-1;)o=u[a],w[n+"."+o]=w[o+n]=r[o]=t.getRatio?t:t[o]||new t};for(n=T.prototype,n._calcEnd=!1,n.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:.5>t?s/2:1-s/2},s=["Linear","Quad","Cubic","Quart","Quint,Strong"],r=s.length;--r>-1;)n=s[r]+",Power"+r,x(new T(null,null,1,r),n,"easeOut",!0),x(new T(null,null,2,r),n,"easeIn"+(0===r?",easeNone":"")),x(new T(null,null,3,r),n,"easeInOut");w.linear=l.easing.Linear.easeIn,w.swing=l.easing.Quad.easeInOut;var b=g("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});n=b.prototype,n.addEventListener=function(t,e,i,s,r){r=r||0;var n,h,l=this._listeners[t],_=0;for(null==l&&(this._listeners[t]=l=[]),h=l.length;--h>-1;)n=l[h],n.c===e&&n.s===i?l.splice(h,1):0===_&&r>n.pr&&(_=h+1);l.splice(_,0,{c:e,s:i,up:s,pr:r}),this!==a||o||a.wake()},n.removeEventListener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return s.splice(i,1),void 0},n.dispatchEvent=function(t){var e,i,s,r=this._listeners[t];if(r)for(e=r.length,i=this._eventTarget;--e>-1;)s=r[e],s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i)};var P=t.requestAnimationFrame,S=t.cancelAnimationFrame,k=Date.now||function(){return(new Date).getTime()},R=k();for(s=["ms","moz","webkit","o"],r=s.length;--r>-1&&!P;)P=t[s[r]+"RequestAnimationFrame"],S=t[s[r]+"CancelAnimationFrame"]||t[s[r]+"CancelRequestAnimationFrame"];g("Ticker",function(t,e){var i,s,r,n,h,l=this,u=k(),c=e!==!1&&P,f=500,m=33,d=function(t){var e,a,o=k()-R;o>f&&(u+=o-m),R+=o,l.time=(R-u)/1e3,e=l.time-h,(!i||e>0||t===!0)&&(l.frame++,h+=e+(e>=n?.004:n-e),a=!0),t!==!0&&(r=s(d)),a&&l.dispatchEvent("tick")};b.call(l),l.time=l.frame=0,l.tick=function(){d(!0)},l.lagSmoothing=function(t,e){f=t||1/_,m=Math.min(e,f,0)},l.sleep=function(){null!=r&&(c&&S?S(r):clearTimeout(r),s=p,r=null,l===a&&(o=!1))},l.wake=function(){null!==r?l.sleep():l.frame>10&&(R=k()-f+5),s=0===i?p:c&&P?P:function(t){return setTimeout(t,0|1e3*(h-l.time)+1)},l===a&&(o=!0),d(2)},l.fps=function(t){return arguments.length?(i=t,n=1/(i||60),h=this.time+n,l.wake(),void 0):i},l.useRAF=function(t){return arguments.length?(l.sleep(),c=t,l.fps(i),void 0):c},l.fps(t),setTimeout(function(){c&&(!r||5>l.frame)&&l.useRAF(!1)},1500)}),n=l.Ticker.prototype=new l.events.EventDispatcher,n.constructor=l.Ticker;var A=g("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,B){o||a.wake();var i=this.vars.useFrames?j:B;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=A.ticker=new l.Ticker,n=A.prototype,n._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1;var C=function(){o&&k()-R>2e3&&a.wake(),setTimeout(C,2e3)};C(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},n.render=function(){},n.invalidate=function(){return this},n.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&i+this.totalDuration()/this._timeScale>t},n._enabled=function(t,e){return o||a.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},n.eventCallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=c(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=s),"onUpdate"===t&&(this._onUpdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},n.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},n.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},n.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},n.totalTime=function(t,e,i){if(o||a.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,r=this._timeline;if(t>s&&!i&&(t=s),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?s-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(this.render(t,e,!1),I.length&&q())}return this},n.progress=n.totalProgress=function(t,e){return arguments.length?this.totalTime(this.duration()*t,e):this._time/this.duration()},n.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},n.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||_,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},n.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},n.paused=function(t){if(!arguments.length)return this._paused;if(t!=this._paused&&this._timeline){o||t||a.wake();var e=this._timeline,i=e.rawTime(),s=i-this._pauseTime;!t&&e.smoothChildTiming&&(this._startTime+=s,this._uncache(!1)),this._pauseTime=t?i:null,this._paused=t,this._active=this.isActive(),!t&&0!==s&&this._initted&&this.duration()&&this.render(e.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!t&&this._enabled(!0,!1),this};var O=g("core.SimpleTimeline",function(t){A.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});n=O.prototype=new A,n.constructor=O,n.kill()._gc=!1,n._first=n._last=null,n._sortChildren=!1,n.add=n.insert=function(t,e){var i,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortChildren)for(s=t._startTime;i&&i._startTime>s;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._timeline&&this._uncache(!0),this},n._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,this._timeline&&this._uncache(!0)),this},n.render=function(t,e,i){var s,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)s=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s},n.rawTime=function(){return o||a.wake(),this._totalTime};var D=g("TweenLite",function(e,i,s){if(A.call(this,i,s),this.render=D.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:D.selector(e)||e;var r,n,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),h=this.vars.overwrite;if(this._overwrite=h=null==h?Y[D.defaultOverwrite]:"number"==typeof h?h>>0:Y[h],(o||e instanceof Array||e.push&&c(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._propLookup=[],this._siblings=[],r=0;a.length>r;r++)n=a[r],n?"string"!=typeof n?n.length&&n!==t&&n[0]&&(n[0]===t||n[0].nodeType&&n[0].style&&!n.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(u(n))):(this._siblings[r]=V(n,this,!1),1===h&&this._siblings[r].length>1&&G(n,this,null,1,this._siblings[r])):(n=a[r--]=D.selector(n),"string"==typeof n&&a.splice(r+1,1)):a.splice(r--,1);else this._propLookup={},this._siblings=V(e,this,!1),1===h&&this._siblings.length>1&&G(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-_,this.render(-this._delay))},!0),M=function(e){return e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},z=function(t,e){var i,s={};for(i in t)U[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!F[i]||F[i]&&F[i]._autoCSS)||(s[i]=t[i],delete t[i]);t.css=s};n=D.prototype=new A,n.constructor=D,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,D.version="1.13.1",D.defaultEase=n._ease=new T(null,null,1,1),D.defaultOverwrite="auto",D.ticker=a,D.autoSleep=!0,D.lagSmoothing=function(t,e){a.lagSmoothing(t,e)},D.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(D.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var I=[],E={},L=D._internals={isArray:c,isSelector:M,lazyTweens:I},F=D._plugins={},N=L.tweenLookup={},X=0,U=L.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1},Y={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},j=A._rootFramesTimeline=new O,B=A._rootTimeline=new O,q=L.lazyRender=function(){var t=I.length;for(E={};--t>-1;)s=I[t],s&&s._lazy!==!1&&(s.render(s._lazy,!1,!0),s._lazy=!1);I.length=0};B._startTime=a.time,j._startTime=a.frame,B._active=j._active=!0,setTimeout(q,1),A._updateRoot=D.render=function(){var t,e,i;if(I.length&&q(),B.render((a.time-B._startTime)*B._timeScale,!1,!1),j.render((a.frame-j._startTime)*j._timeScale,!1,!1),I.length&&q(),!(a.frame%120)){for(i in N){for(e=N[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete N[i]}if(i=B._first,(!i||i._paused)&&D.autoSleep&&!j._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addEventListener("tick",A._updateRoot);var V=function(t,e,i){var s,r,n=t._gsTweenID;if(N[n||(t._gsTweenID=n="t"+X++)]||(N[n]={target:t,tweens:[]}),e&&(s=N[n].tweens,s[r=s.length]=e,i))for(;--r>-1;)s[r]===e&&s.splice(r,1);return N[n].tweens},G=function(t,e,i,s,r){var n,a,o,h;if(1===s||s>=4){for(h=r.length,n=0;h>n;n++)if((o=r[n])!==e)o._gc||o._enabled(!1,!1)&&(a=!0);else if(5===s)break;return a}var l,u=e._startTime+_,p=[],c=0,f=0===e._duration;for(n=r.length;--n>-1;)(o=r[n])===e||o._gc||o._paused||(o._timeline!==e._timeline?(l=l||W(e,0,f),0===W(o,l,f)&&(p[c++]=o)):u>=o._startTime&&o._startTime+o.totalDuration()/o._timeScale>u&&((f||!o._initted)&&2e-10>=u-o._startTime||(p[c++]=o)));for(n=c;--n>-1;)o=p[n],2===s&&o._kill(i,t)&&(a=!0),(2!==s||!o._firstPT&&o._initted)&&o._enabled(!1,!1)&&(a=!0);return a},W=function(t,e,i){for(var s=t._timeline,r=s._timeScale,n=t._startTime;s._timeline;){if(n+=s._startTime,r*=s._timeScale,s._paused)return-100;s=s._timeline}return n/=r,n>e?n-e:i&&n===e||!t._initted&&2*_>n-e?_:(n+=t.totalDuration()/t._timeScale/r)>e+_?0:n-e-_};n._init=function(){var t,e,i,s,r,n=this.vars,a=this._overwrittenProps,o=this._duration,h=!!n.immediateRender,l=n.ease;if(n.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={};for(s in n.startAt)r[s]=n.startAt[s];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=h&&n.lazy!==!1,r.startAt=r.delay=null,this._startAt=D.to(this.target,0,r),h)if(this._time>0)this._startAt=null;else if(0!==o)return}else if(n.runBackwards&&0!==o)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{i={};for(s in n)U[s]&&"autoCSS"!==s||(i[s]=n[s]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&n.lazy!==!1,i.immediateRender=h,this._startAt=D.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1)}if(this._ease=l=l?l instanceof T?l:"function"==typeof l?new T(l,n.easeParams):w[l]||D.defaultEase:D.defaultEase,n.easeParams instanceof Array&&l.config&&(this._ease=l.config.apply(l,n.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;--t>-1;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a);if(e&&D._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),n.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=n.onUpdate,this._initted=!0},n._initProps=function(e,i,s,r){var n,a,o,h,l,_;if(null==e)return!1;E[e._gsTweenID]&&q(),this.vars.css||e.style&&e!==t&&e.nodeType&&F.css&&this.vars.autoCSS!==!1&&z(this.vars,e);for(n in this.vars){if(_=this.vars[n],U[n])_&&(_ instanceof Array||_.push&&c(_))&&-1!==_.join("").indexOf("{self}")&&(this.vars[n]=_=this._swapSelfInParams(_,this));else if(F[n]&&(h=new F[n])._onInitTween(e,this.vars[n],this)){for(this._firstPT=l={_next:this._firstPT,t:h,p:"setRatio",s:0,c:1,f:!0,n:n,pg:!0,pr:h._priority},a=h._overwriteProps.length;--a>-1;)i[h._overwriteProps[a]]=this._firstPT;(h._priority||h._onInitAllProps)&&(o=!0),(h._onDisable||h._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=i[n]=l={_next:this._firstPT,t:e,p:n,f:"function"==typeof e[n],n:n,pg:!1,pr:0},l.s=l.f?e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(e[n]),l.c="string"==typeof _&&"="===_.charAt(1)?parseInt(_.charAt(0)+"1",10)*Number(_.substr(2)):Number(_)-l.s||0;l&&l._next&&(l._next._prev=l)}return r&&this._kill(r,e)?this._initProps(e,i,s,r):this._overwrite>1&&this._firstPT&&s.length>1&&G(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initProps(e,i,s,r)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(E[e._gsTweenID]=!0),o)},n.render=function(t,e,i){var s,r,n,a,o=this._time,h=this._duration,l=this._rawPrevTime;if(t>=h)this._totalTime=this._time=h,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,r="onComplete"),0===h&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>l||l===_)&&l!==t&&(i=!0,l>_&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||l===t?t:_);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===h&&l>0&&l!==_)&&(r="onReverseComplete",s=this._reversed),0>t?(this._active=!1,0===h&&(this._initted||!this.vars.lazy||i)&&(l>=0&&(i=!0),this._rawPrevTime=a=!e||t||l===t?t:_)):this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var u=t/h,p=this._easeType,c=this._easePower;(1===p||3===p&&u>=.5)&&(u=1-u),3===p&&(u*=2),1===c?u*=u:2===c?u*=u*u:3===c?u*=u*u*u:4===c&&(u*=u*u*u*u),this.ratio=1===p?1-u:2===p?u:.5>t/h?u/2:1-u/2}else this.ratio=this._ease.getRatio(t/h);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=l,I.push(this),this._lazy=t,void 0;this._time&&!s?this.ratio=this._ease.getRatio(this._time/h):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===h)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||y))),n=this._firstPT;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onUpdate&&(0>t&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._time!==o||s)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||y)),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"Scope"]||this,this.vars[r+"Params"]||y),0===h&&this._rawPrevTime===_&&a!==_&&(this._rawPrevTime=0))}},n._kill=function(t,e){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:D.selector(e)||e;var i,s,r,n,a,o,h,l;if((c(e)||M(e))&&"number"!=typeof e[0])for(i=e.length;--i>-1;)this._kill(t,e[i])&&(o=!0);else{if(this._targets){for(i=this._targets.length;--i>-1;)if(e===this._targets[i]){a=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],s=this._overwrittenProps[i]=t?this._overwrittenProps[i]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,s=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){h=t||a,l=t!==s&&"all"!==s&&t!==a&&("object"!=typeof t||!t._tempKill);for(r in h)(n=a[r])&&(n.pg&&n.t._kill(h)&&(o=!0),n.pg&&0!==n.t._overwriteProps.length||(n._prev?n._prev._next=n._next:n===this._firstPT&&(this._firstPT=n._next),n._next&&(n._next._prev=n._prev),n._next=n._prev=null),delete a[r]),l&&(s[r]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return o},n.invalidate=function(){return this._notifyPluginsOfEnabled&&D._onPluginEvent("_onDisable",this),this._firstPT=null,this._overwrittenProps=null,this._onUpdate=null,this._startAt=null,this._initted=this._active=this._notifyPluginsOfEnabled=this._lazy=!1,this._propLookup=this._targets?{}:[],this},n._enabled=function(t,e){if(o||a.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=V(s[i],this,!0);else this._siblings=V(this.target,this,!0)}return A.prototype._enabled.call(this,t,e),this._notifyPluginsOfEnabled&&this._firstPT?D._onPluginEvent(t?"_onEnable":"_onDisable",this):!1},D.to=function(t,e,i){return new D(t,e,i)},D.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new D(t,e,i)},D.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new D(t,e,s)},D.delayedCall=function(t,e,i,s,r){return new D(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:s,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:s,immediateRender:!1,useFrames:r,overwrite:0})},D.set=function(t,e){return new D(t,0,e)},D.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:D.selector(t)||t;var i,s,r,n;if((c(t)||M(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(D.getTweensOf(t[i],e));for(i=s.length;--i>-1;)for(n=s[i],r=i;--r>-1;)n===s[r]&&s.splice(i,1)}else for(s=V(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isActive())&&s.splice(i,1);return s},D.killTweensOf=D.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=D.getTweensOf(t,e),r=s.length;--r>-1;)s[r]._kill(i,t)};var Q=g("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=Q.prototype},!0);if(n=Q.prototype,Q.version="1.10.1",Q.API=2,n._firstPT=null,n._addTween=function(t,e,i,s,r,n){var a,o;
return null!=s&&(a="number"==typeof s||"="!==s.charAt(1)?Number(s)-i:parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)))?(this._firstPT=o={_next:this._firstPT,t:t,p:e,s:i,c:a,f:"function"==typeof t[e],n:r||e,r:n},o._next&&(o._next._prev=o),o):void 0},n.setRatio=function(t){for(var e,i=this._firstPT,s=1e-6;i;)e=i.c*t+i.s,i.r?e=Math.round(e):s>e&&e>-s&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},n._kill=function(t){var e,i=this._overwriteProps,s=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},n._roundProps=function(t,e){for(var i=this._firstPT;i;)(t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&(i.r=e),i=i._next},D._onPluginEvent=function(t,e){var i,s,r,n,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,s=r;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:n)?o._prev._next=o:r=o,(o._next=s)?s._prev=o:n=o,o=a}o=e._firstPT=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},Q.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===Q.API&&(F[(new t[e])._propName]=t[e]);return!0},d.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,s=t.priority||0,r=t.overwriteProps,n={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},a=g("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){Q.call(this,i,s),this._overwriteProps=r||[]},t.global===!0),o=a.prototype=new Q(i);o.constructor=a,a.API=t.API;for(e in n)"function"==typeof t[e]&&(o[n[e]]=t[e]);return a.version=t.version,Q.activate([a]),a},s=t._gsQueue){for(r=0;s.length>r;r++)s[r]();for(n in f)f[n].func||t.console.log("GSAP encountered missing dependency: com.greensock."+n)}o=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax");

/*!
 * VERSION: 0.14.6
 * DATE: 2016-04-26
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * Requires TweenLite and CSSPlugin version 1.17.0 or later (TweenMax contains both TweenLite and CSSPlugin). ThrowPropsPlugin is required for momentum-based continuation of movement after the mouse/touch is released (ThrowPropsPlugin is a membership benefit of Club GreenSock - http://greensock.com/club/).
 *
 * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 */
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("utils.Draggable",["events.EventDispatcher","TweenLite","plugins.CSSPlugin"],function(a,b,c){var d,e,f,g,h,i,j,k,l,m={css:{}},n={css:{}},o={css:{}},p={css:{}},q=_gsScope._gsDefine.globals,r={},s=document,t=s.documentElement||{},u=function(a){return s.createElementNS?s.createElementNS("http://www.w3.org/1999/xhtml",a):s.createElement(a)},v=u("div"),w=[],x=function(){return!1},y=180/Math.PI,z=999999999999999,A=Date.now||function(){return(new Date).getTime()},B=!(s.addEventListener||!s.all),C=s.createElement("div"),D=[],E={},F=0,G=/^(?:a|input|textarea|button|select)$/i,H=0,I=-1!==navigator.userAgent.toLowerCase().indexOf("android"),J=0,K={},L={},M=function(a){if("string"==typeof a&&(a=b.selector(a)),!a||a.nodeType)return[a];var c,d=[],e=a.length;for(c=0;c!==e;d.push(a[c++]));return d},N=function(a){var b,c={};for(b in a)c[b]=a[b];return c},O=function(){for(var a=D.length;--a>-1;)D[a]()},P=function(a){D.push(a),1===D.length&&b.ticker.addEventListener("tick",O,this,!1,1)},Q=function(a){for(var c=D.length;--c>-1;)D[c]===a&&D.splice(c,1);b.to(R,0,{overwrite:"all",delay:15,onComplete:R})},R=function(){D.length||b.ticker.removeEventListener("tick",O)},S=function(a,b){var c;for(c in b)void 0===a[c]&&(a[c]=b[c]);return a},T=function(){return null!=window.pageYOffset?window.pageYOffset:null!=s.scrollTop?s.scrollTop:t.scrollTop||s.body.scrollTop||0},U=function(){return null!=window.pageXOffset?window.pageXOffset:null!=s.scrollLeft?s.scrollLeft:t.scrollLeft||s.body.scrollLeft||0},V=function(a,b){Ia(a,"scroll",b),X(a.parentNode)||V(a.parentNode,b)},W=function(a,b){Ja(a,"scroll",b),X(a.parentNode)||W(a.parentNode,b)},X=function(a){return!(a&&a!==t&&a!==s&&a!==s.body&&a!==window&&a.nodeType&&a.parentNode)},Y=function(a,b){var c="x"===b?"Width":"Height",d="scroll"+c,e="client"+c,f=s.body;return Math.max(0,X(a)?Math.max(t[d],f[d])-(window["inner"+c]||t[e]||f[e]):a[d]-a[e])},Z=function(a){var b=X(a),c=Y(a,"x"),d=Y(a,"y");b?a=L:Z(a.parentNode),a._gsMaxScrollX=c,a._gsMaxScrollY=d,a._gsScrollX=a.scrollLeft||0,a._gsScrollY=a.scrollTop||0},$=function(a,b){return a=a||window.event,r.pageX=a.clientX+s.body.scrollLeft+t.scrollLeft,r.pageY=a.clientY+s.body.scrollTop+t.scrollTop,b&&(a.returnValue=!1),r},_=function(a){return a?("string"==typeof a&&(a=b.selector(a)),a.length&&a!==window&&a[0]&&a[0].style&&!a.nodeType&&(a=a[0]),a===window||a.nodeType&&a.style?a:null):a},aa=function(a,b){var c,e,f,g=a.style;if(void 0===g[b]){for(f=["O","Moz","ms","Ms","Webkit"],e=5,c=b.charAt(0).toUpperCase()+b.substr(1);--e>-1&&void 0===g[f[e]+c];);if(0>e)return"";d=3===e?"ms":f[e],b=d+c}return b},ba=function(a,b,c){var d=a.style;d&&(void 0===d[b]&&(b=aa(a,b)),null==c?d.removeProperty?d.removeProperty(b.replace(/([A-Z])/g,"-$1").toLowerCase()):d.removeAttribute(b):void 0!==d[b]&&(d[b]=c))},ca=s.defaultView?s.defaultView.getComputedStyle:x,da=/(?:Left|Right|Width)/i,ea=/(?:\d|\-|\+|=|#|\.)*/g,fa=function(a,b,c,d,e){if("px"===d||!d)return c;if("auto"===d||!c)return 0;var f,g=da.test(b),h=a,i=v.style,j=0>c;return j&&(c=-c),"%"===d&&-1!==b.indexOf("border")?f=c/100*(g?a.clientWidth:a.clientHeight):(i.cssText="border:0 solid red;position:"+ha(a,"position",!0)+";line-height:0;","%"!==d&&h.appendChild?i[g?"borderLeftWidth":"borderTopWidth"]=c+d:(h=a.parentNode||s.body,i[g?"width":"height"]=c+d),h.appendChild(v),f=parseFloat(v[g?"offsetWidth":"offsetHeight"]),h.removeChild(v),0!==f||e||(f=fa(a,b,c,d,!0))),j?-f:f},ga=function(a,b){if("absolute"!==ha(a,"position",!0))return 0;var c="left"===b?"Left":"Top",d=ha(a,"margin"+c,!0);return a["offset"+c]-(fa(a,b,parseFloat(d),(d+"").replace(ea,""))||0)},ha=function(a,b,c){var d,e=(a._gsTransform||{})[b];return e||0===e?e:(a.style[b]?e=a.style[b]:(d=ca(a))?(e=d.getPropertyValue(b.replace(/([A-Z])/g,"-$1").toLowerCase()),e=e||d.length?e:d[b]):a.currentStyle&&(e=a.currentStyle[b]),"auto"!==e||"top"!==b&&"left"!==b||(e=ga(a,b)),c?e:parseFloat(e)||0)},ia=function(a,b,c){var d=a.vars,e=d[c],f=a._listeners[b];"function"==typeof e&&e.apply(d[c+"Scope"]||d.callbackScope||a,d[c+"Params"]||[a.pointerEvent]),f&&a.dispatchEvent(b)},ja=function(a,b){var c,d,e,f=_(a);return f?Da(f,b):void 0!==a.left?(e=xa(b),{left:a.left-e.x,top:a.top-e.y,width:a.width,height:a.height}):(d=a.min||a.minX||a.minRotation||0,c=a.min||a.minY||0,{left:d,top:c,width:(a.max||a.maxX||a.maxRotation||0)-d,height:(a.max||a.maxY||0)-c})},ka=function(){if(!s.createElementNS)return g=0,void(h=!1);var a,b,c,d,e=u("div"),f=s.createElementNS("http://www.w3.org/2000/svg","svg"),l=u("div"),m=e.style,n=s.body||t;s.body&&na&&(m.position="absolute",n.appendChild(l),l.appendChild(e),d=e.offsetParent,l.style[na]="rotate(1deg)",k=e.offsetParent===d,l.style.position="absolute",m.height="10px",d=e.offsetTop,l.style.border="5px solid red",j=d!==e.offsetTop,n.removeChild(l)),m=f.style,f.setAttributeNS(null,"width","400px"),f.setAttributeNS(null,"height","400px"),f.setAttributeNS(null,"viewBox","0 0 400 400"),m.display="block",m.boxSizing="border-box",m.border="0px solid red",m.transform="none",e.style.cssText="width:100px;height:100px;overflow:scroll;-ms-overflow-style:none;",n.appendChild(e),e.appendChild(f),c=f.createSVGPoint().matrixTransform(f.getScreenCTM()),b=c.y,e.scrollTop=100,c.x=c.y=0,c=c.matrixTransform(f.getScreenCTM()),i=b-c.y<100.1?0:b-c.y-150,e.removeChild(f),n.removeChild(e),n.appendChild(f),a=f.getScreenCTM(),b=a.e,m.border="50px solid red",a=f.getScreenCTM(),0===b&&0===a.e&&0===a.f&&1===a.a?(g=1,h=!0):(g=b!==a.e?1:0,h=1!==a.a),n.removeChild(f)},la=""!==aa(v,"perspective"),ma=aa(v,"transformOrigin").replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),na=aa(v,"transform"),oa=na.replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),pa={},qa={},ra=window.SVGElement,sa=function(a){return!!(ra&&"function"==typeof a.getBBox&&a.getCTM&&(!a.parentNode||a.parentNode.getBBox&&a.parentNode.getCTM))},ta=(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent))&&parseFloat(RegExp.$1)<11,ua=[],va=[],wa=function(a){if(!a.getBoundingClientRect||!a.parentNode||!na)return{offsetTop:0,offsetLeft:0,scaleX:1,scaleY:1,offsetParent:t};if(Sa.cacheSVGData!==!1&&a._gsCache&&a._gsCache.lastUpdate===b.ticker.frame)return a._gsCache;var c,d,e,f,j,k,l,m,n,o,p,q,r=a,u=ya(a);if(u.lastUpdate=b.ticker.frame,a.getBBox&&!u.isSVGRoot){for(r=a.parentNode,c=a.getBBox();r&&"svg"!==(r.nodeName+"").toLowerCase();)r=r.parentNode;return f=wa(r),u.offsetTop=c.y*f.scaleY,u.offsetLeft=c.x*f.scaleX,u.scaleX=f.scaleX,u.scaleY=f.scaleY,u.offsetParent=r||t,u}for(e=u.offsetParent,e===s.body&&(e=t),va.length=ua.length=0;r&&(j=ha(r,na,!0),"matrix(1, 0, 0, 1, 0, 0)"!==j&&"none"!==j&&"translate3d(0px, 0px, 0px)"!==j&&(va.push(r),ua.push(r.style[na]),r.style[na]="none"),r!==e);)r=r.parentNode;for(d=e.getBoundingClientRect(),j=a.getScreenCTM(),m=a.createSVGPoint(),l=m.matrixTransform(j),m.x=m.y=10,m=m.matrixTransform(j),u.scaleX=(m.x-l.x)/10,u.scaleY=(m.y-l.y)/10,void 0===g&&ka(),u.borderBox&&!h&&a.getAttribute("width")&&(f=ca(a)||{},n=parseFloat(f.borderLeftWidth)+parseFloat(f.borderRightWidth)||0,o=parseFloat(f.borderTopWidth)+parseFloat(f.borderBottomWidth)||0,p=parseFloat(f.width)||0,q=parseFloat(f.height)||0,u.scaleX*=(p-n)/p,u.scaleY*=(q-o)/q),i?(c=a.getBoundingClientRect(),u.offsetLeft=c.left-d.left,u.offsetTop=c.top-d.top):(u.offsetLeft=l.x-d.left,u.offsetTop=l.y-d.top),u.offsetParent=e,k=va.length;--k>-1;)va[k].style[na]=ua[k];return u},xa=function(a,c){if(c=c||{},!a||a===t||!a.parentNode||a===window)return{x:0,y:0};var d=ca(a),e=ma&&d?d.getPropertyValue(ma):"50% 50%",f=e.split(" "),g=-1!==e.indexOf("left")?"0%":-1!==e.indexOf("right")?"100%":f[0],h=-1!==e.indexOf("top")?"0%":-1!==e.indexOf("bottom")?"100%":f[1];return("center"===h||null==h)&&(h="50%"),("center"===g||isNaN(parseFloat(g)))&&(g="50%"),a.getBBox&&sa(a)?(a._gsTransform||(b.set(a,{x:"+=0",overwrite:!1}),void 0===a._gsTransform.xOrigin&&console.log("Draggable requires at least GSAP 1.17.0")),e=a.getBBox(),c.x=a._gsTransform.xOrigin-e.x,c.y=a._gsTransform.yOrigin-e.y):(a.getBBox&&-1!==(g+h).indexOf("%")&&(a=a.getBBox(),a={offsetWidth:a.width,offsetHeight:a.height}),c.x=-1!==g.indexOf("%")?a.offsetWidth*parseFloat(g)/100:parseFloat(g),c.y=-1!==h.indexOf("%")?a.offsetHeight*parseFloat(h)/100:parseFloat(h)),c},ya=function(a){if(Sa.cacheSVGData!==!1&&a._gsCache&&a._gsCache.lastUpdate===b.ticker.frame)return a._gsCache;var c,d=a._gsCache=a._gsCache||{},e=ca(a),f=a.getBBox&&sa(a),g="svg"===(a.nodeName+"").toLowerCase();if(d.isSVG=f,d.isSVGRoot=g,d.borderBox="border-box"===e.boxSizing,d.computedStyle=e,g)c=a.parentNode||t,c.insertBefore(v,a),d.offsetParent=v.offsetParent||t,c.removeChild(v);else if(f){for(c=a.parentNode;c&&"svg"!==(c.nodeName+"").toLowerCase();)c=c.parentNode;d.offsetParent=c}else d.offsetParent=a.offsetParent;return d},za=function(a,b,c,d){if(a===window||!a||!a.style||!a.parentNode)return[1,0,0,1,0,0];var e,f,h,i,l,m,n,o,p,q,r,u,v,w,x=a._gsCache||ya(a),y=a.parentNode,z=y._gsCache||ya(y),A=x.computedStyle,B=x.isSVG?z.offsetParent:y.offsetParent;return e=x.isSVG&&-1!==(a.style[na]+"").indexOf("matrix")?a.style[na]:A?A.getPropertyValue(oa):a.currentStyle?a.currentStyle[na]:"1,0,0,1,0,0",a.getBBox&&-1!==(a.getAttribute("transform")+"").indexOf("matrix")&&(e=a.getAttribute("transform")),e=(e+"").match(/(?:\-|\.|\b)(\d|\.|e\-)+/g)||[1,0,0,1,0,0],e.length>6&&(e=[e[0],e[1],e[4],e[5],e[12],e[13]]),d?e[4]=e[5]=0:x.isSVG&&(l=a._gsTransform)&&(l.xOrigin||l.yOrigin)&&(e[0]=parseFloat(e[0]),e[1]=parseFloat(e[1]),e[2]=parseFloat(e[2]),e[3]=parseFloat(e[3]),e[4]=parseFloat(e[4])-(l.xOrigin-(l.xOrigin*e[0]+l.yOrigin*e[2])),e[5]=parseFloat(e[5])-(l.yOrigin-(l.xOrigin*e[1]+l.yOrigin*e[3]))),b&&(void 0===g&&ka(),h=x.isSVG||x.isSVGRoot?wa(a):a,x.isSVG?(i=a.getBBox(),q=z.isSVGRoot?{x:0,y:0}:y.getBBox(),h={offsetLeft:i.x-q.x,offsetTop:i.y-q.y,offsetParent:x.offsetParent}):x.isSVGRoot?(r=parseInt(A.borderTopWidth,10)||0,u=parseInt(A.borderLeftWidth,10)||0,v=(e[0]-g)*u+e[2]*r,w=e[1]*u+(e[3]-g)*r,m=b.x,n=b.y,o=m-(m*e[0]+n*e[2]),p=n-(m*e[1]+n*e[3]),e[4]=parseFloat(e[4])+o,e[5]=parseFloat(e[5])+p,b.x-=o,b.y-=p,m=h.scaleX,n=h.scaleY,b.x*=m,b.y*=n,e[0]*=m,e[1]*=n,e[2]*=m,e[3]*=n,ta||(b.x+=v,b.y+=w)):!j&&a.offsetParent&&(b.x+=parseInt(ha(a.offsetParent,"borderLeftWidth"),10)||0,b.y+=parseInt(ha(a.offsetParent,"borderTopWidth"),10)||0),f=y===t||y===s.body,e[4]=Number(e[4])+b.x+(h.offsetLeft||0)-c.x-(f?0:y.scrollLeft||0),e[5]=Number(e[5])+b.y+(h.offsetTop||0)-c.y-(f?0:y.scrollTop||0),y&&"fixed"===ha(a,"position",A)&&(e[4]+=U(),e[5]+=T()),!y||y===t||B!==h.offsetParent||z.isSVG||k&&"100100"!==za(y).join("")||(h=z.isSVGRoot?wa(y):y,e[4]-=h.offsetLeft||0,e[5]-=h.offsetTop||0,j||!z.offsetParent||x.isSVG||x.isSVGRoot||(e[4]-=parseInt(ha(z.offsetParent,"borderLeftWidth"),10)||0,e[5]-=parseInt(ha(z.offsetParent,"borderTopWidth"),10)||0))),e},Aa=function(a,b){if(!a||a===window||!a.parentNode)return[1,0,0,1,0,0];for(var c,d,e,f,g,h,i,j,k=xa(a,pa),l=xa(a.parentNode,qa),m=za(a,k,l);(a=a.parentNode)&&a.parentNode&&a!==t;)k=l,l=xa(a.parentNode,k===pa?qa:pa),i=za(a,k,l),c=m[0],d=m[1],e=m[2],f=m[3],g=m[4],h=m[5],m[0]=c*i[0]+d*i[2],m[1]=c*i[1]+d*i[3],m[2]=e*i[0]+f*i[2],m[3]=e*i[1]+f*i[3],m[4]=g*i[0]+h*i[2]+i[4],m[5]=g*i[1]+h*i[3]+i[5];return b&&(c=m[0],d=m[1],e=m[2],f=m[3],g=m[4],h=m[5],j=c*f-d*e,m[0]=f/j,m[1]=-d/j,m[2]=-e/j,m[3]=c/j,m[4]=(e*h-f*g)/j,m[5]=-(c*h-d*g)/j),m},Ba=function(a,b,c,d,e){a=_(a);var f=Aa(a,!1,e),g=b.x,h=b.y;return c&&(xa(a,b),g-=b.x,h-=b.y),d=d===!0?b:d||{},d.x=g*f[0]+h*f[2]+f[4],d.y=g*f[1]+h*f[3]+f[5],d},Ca=function(a,b,c){var d=a.x*b[0]+a.y*b[2]+b[4],e=a.x*b[1]+a.y*b[3]+b[5];return a.x=d*c[0]+e*c[2]+c[4],a.y=d*c[1]+e*c[3]+c[5],a},Da=function(a,b,c){if(!(a=_(a)))return null;b=_(b);var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,u,v,w,x,y,z,A,C=a.getBBox&&sa(a);if(a===window)g=T(),e=U(),f=e+(t.clientWidth||a.innerWidth||s.body.clientWidth||0),h=g+((a.innerHeight||0)-20<t.clientHeight?t.clientHeight:a.innerHeight||s.body.clientHeight||0);else{if(void 0===b||b===window)return a.getBoundingClientRect();d=xa(a),e=-d.x,g=-d.y,C?(o=a.getBBox(),p=o.width,q=o.height):"svg"!==(a.nodeName+"").toLowerCase()&&a.offsetWidth?(p=a.offsetWidth,q=a.offsetHeight):(z=ca(a),p=parseFloat(z.width),q=parseFloat(z.height)),f=e+p,h=g+q,"svg"!==a.nodeName.toLowerCase()||B||(r=wa(a),A=r.computedStyle||{},w=(a.getAttribute("viewBox")||"0 0").split(" "),x=parseFloat(w[0]),y=parseFloat(w[1]),u=parseFloat(A.borderLeftWidth)||0,v=parseFloat(A.borderTopWidth)||0,f-=p-(p-u)/r.scaleX-x,h-=q-(q-v)/r.scaleY-y,e-=u/r.scaleX-x,g-=v/r.scaleY-y,z&&(f+=(parseFloat(A.borderRightWidth)+u)/r.scaleX,h+=(v+parseFloat(A.borderBottomWidth))/r.scaleY))}return a===b?{left:e,top:g,width:f-e,height:h-g}:(i=Aa(a),j=Aa(b,!0),k=Ca({x:e,y:g},i,j),l=Ca({x:f,y:g},i,j),m=Ca({x:f,y:h},i,j),n=Ca({x:e,y:h},i,j),e=Math.min(k.x,l.x,m.x,n.x),g=Math.min(k.y,l.y,m.y,n.y),K.x=K.y=0,c&&xa(b,K),{left:e+K.x,top:g+K.y,width:Math.max(k.x,l.x,m.x,n.x)-e,height:Math.max(k.y,l.y,m.y,n.y)-g})},Ea=function(a){return a&&a.length&&a[0]&&(a[0].nodeType&&a[0].style&&!a.nodeType||a[0].length&&a[0][0])?!0:!1},Fa=function(a){var b,c,d,e=[],f=a.length;for(b=0;f>b;b++)if(c=a[b],Ea(c))for(d=c.length,d=0;d<c.length;d++)e.push(c[d]);else c&&0!==c.length&&e.push(c);return e},Ga="ontouchstart"in t&&"orientation"in window,Ha=function(a){for(var b=a.split(","),c=(void 0!==v.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==v.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":a).split(","),d={},e=8;--e>-1;)d[b[e]]=c[e],d[c[e]]=b[e];return d}("touchstart,touchmove,touchend,touchcancel"),Ia=function(a,b,c,d){a.addEventListener?a.addEventListener(Ha[b]||b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},Ja=function(a,b,c){a.removeEventListener?a.removeEventListener(Ha[b]||b,c):a.detachEvent&&a.detachEvent("on"+b,c)},Ka=function(a,b){for(var c=a.length;--c>-1;)if(a[c].identifier===b)return!0;return!1},La=function(a){e=a.touches&&H<a.touches.length,Ja(a.target,"touchend",La)},Ma=function(a){e=a.touches&&H<a.touches.length,Ia(a.target,"touchend",La)},Na=function(a,b,c,d,e,f){var g,h,i,j={};if(b)if(1!==e&&b instanceof Array){for(j.end=g=[],i=b.length,h=0;i>h;h++)g[h]=b[h]*e;c+=1.1,d-=1.1}else"function"==typeof b?j.end=function(c){return b.call(a,c)*e}:j.end=b;return(c||0===c)&&(j.max=c),(d||0===d)&&(j.min=d),f&&(j.velocity=0),j},Oa=function(a){var b;return a&&a.getAttribute&&"BODY"!==a.nodeName?"true"===(b=a.getAttribute("data-clickable"))||"false"!==b&&(a.onclick||G.test(a.nodeName+"")||"true"===a.getAttribute("contentEditable"))?!0:Oa(a.parentNode):!1},Pa=function(a,b){for(var c,d=a.length;--d>-1;)c=a[d],c.ondragstart=c.onselectstart=b?null:x,ba(c,"userSelect",b?"text":"none")},Qa=function(){var a,b=s.createElement("div"),c=s.createElement("div"),d=c.style,e=s.body||v;return d.display="inline-block",d.position="relative",b.style.cssText=c.innerHTML="width:90px; height:40px; padding:10px; overflow:auto; visibility: hidden",b.appendChild(c),e.appendChild(b),l=c.offsetHeight+18>b.scrollHeight,d.width="100%",na||(d.paddingRight="500px",a=b.scrollLeft=b.scrollWidth-b.clientWidth,d.left="-90px",a=a!==b.scrollLeft),e.removeChild(b),a}(),Ra=function(a,c){a=_(a),c=c||{};var d,e,f,g,h,i,j=s.createElement("div"),k=j.style,m=a.firstChild,n=0,o=0,p=a.scrollTop,q=a.scrollLeft,r=a.scrollWidth,t=a.scrollHeight,u=0,v=0,w=0;la&&c.force3D!==!1?(h="translate3d(",i="px,0px)"):na&&(h="translate(",i="px)"),this.scrollTop=function(a,b){return arguments.length?void this.top(-a,b):-this.top()},this.scrollLeft=function(a,b){return arguments.length?void this.left(-a,b):-this.left()},this.left=function(d,e){if(!arguments.length)return-(a.scrollLeft+o);var f=a.scrollLeft-q,g=o;return(f>2||-2>f)&&!e?(q=a.scrollLeft,b.killTweensOf(this,!0,{left:1,scrollLeft:1}),this.left(-q),void(c.onKill&&c.onKill())):(d=-d,0>d?(o=d-.5|0,d=0):d>v?(o=d-v|0,d=v):o=0,(o||g)&&(h?this._suspendTransforms||(k[na]=h+-o+"px,"+-n+i):k.left=-o+"px",Qa&&o+u>=0&&(k.paddingRight=o+u+"px")),a.scrollLeft=0|d,void(q=a.scrollLeft))},this.top=function(d,e){if(!arguments.length)return-(a.scrollTop+n);var f=a.scrollTop-p,g=n;return(f>2||-2>f)&&!e?(p=a.scrollTop,b.killTweensOf(this,!0,{top:1,scrollTop:1}),this.top(-p),void(c.onKill&&c.onKill())):(d=-d,0>d?(n=d-.5|0,d=0):d>w?(n=d-w|0,d=w):n=0,(n||g)&&(h?this._suspendTransforms||(k[na]=h+-o+"px,"+-n+i):k.top=-n+"px"),a.scrollTop=0|d,void(p=a.scrollTop))},this.maxScrollTop=function(){return w},this.maxScrollLeft=function(){return v},this.disable=function(){for(m=j.firstChild;m;)g=m.nextSibling,a.appendChild(m),m=g;a===j.parentNode&&a.removeChild(j)},this.enable=function(){if(m=a.firstChild,m!==j){for(;m;)g=m.nextSibling,j.appendChild(m),m=g;a.appendChild(j),this.calibrate()}},this.calibrate=function(b){var c,g,h=a.clientWidth===d;p=a.scrollTop,q=a.scrollLeft,(!h||a.clientHeight!==e||j.offsetHeight!==f||r!==a.scrollWidth||t!==a.scrollHeight||b)&&((n||o)&&(c=this.left(),g=this.top(),this.left(-a.scrollLeft),this.top(-a.scrollTop)),(!h||b)&&(k.display="block",k.width="auto",k.paddingRight="0px",u=Math.max(0,a.scrollWidth-a.clientWidth),u&&(u+=ha(a,"paddingLeft")+(l?ha(a,"paddingRight"):0))),k.display="inline-block",k.position="relative",k.overflow="visible",k.verticalAlign="top",k.width="100%",k.paddingRight=u+"px",l&&(k.paddingBottom=ha(a,"paddingBottom",!0)),B&&(k.zoom="1"),d=a.clientWidth,e=a.clientHeight,r=a.scrollWidth,t=a.scrollHeight,v=a.scrollWidth-d,w=a.scrollHeight-e,f=j.offsetHeight,k.display="block",(c||g)&&(this.left(c),this.top(g)))},this.content=j,this.element=a,this._suspendTransforms=!1,this.enable()},Sa=function(d,g){a.call(this,d),d=_(d),f||(f=q.com.greensock.plugins.ThrowPropsPlugin),this.vars=g=N(g||{}),this.target=d,this.x=this.y=this.rotation=0,this.dragResistance=parseFloat(g.dragResistance)||0,this.edgeResistance=isNaN(g.edgeResistance)?1:parseFloat(g.edgeResistance)||0,this.lockAxis=g.lockAxis,this.autoScroll=g.autoScroll||0,this.lockedAxis=null,this.allowEventDefault=!!g.allowEventDefault;var h,i,j,k,l,r,u,v,x,D,G,K,O,R,T,U,Y,aa,ca,da,ea,fa,ga,ka,la,ma,na,oa,pa,qa,ra,sa,ta=(g.type||(B?"top,left":"x,y")).toLowerCase(),ua=-1!==ta.indexOf("x")||-1!==ta.indexOf("y"),va=-1!==ta.indexOf("rotation"),wa=va?"rotation":ua?"x":"left",xa=ua?"y":"top",ya=-1!==ta.indexOf("x")||-1!==ta.indexOf("left")||"scroll"===ta,za=-1!==ta.indexOf("y")||-1!==ta.indexOf("top")||"scroll"===ta,Ca=g.minimumMovement||2,Da=this,Ea=M(g.trigger||g.handle||d),Fa={},La=0,Qa=!1,Ta=g.clickableTest||Oa,Ua=0,Va=function(a){if(Da.autoScroll&&Da.isDragging&&(Qa||aa)){var b,c,e,f,g,h,j,k,l=d,m=15*Da.autoScroll;for(Qa=!1,L.scrollTop=null!=window.pageYOffset?window.pageYOffset:null!=t.scrollTop?t.scrollTop:s.body.scrollTop,L.scrollLeft=null!=window.pageXOffset?window.pageXOffset:null!=t.scrollLeft?t.scrollLeft:s.body.scrollLeft,f=Da.pointerX-L.scrollLeft,g=Da.pointerY-L.scrollTop;l&&!c;)c=X(l.parentNode),b=c?L:l.parentNode,e=c?{bottom:Math.max(t.clientHeight,window.innerHeight||0),right:Math.max(t.clientWidth,window.innerWidth||0),left:0,top:0}:b.getBoundingClientRect(),h=j=0,za&&(k=b._gsMaxScrollY-b.scrollTop,0>k?j=k:g>e.bottom-40&&k?(Qa=!0,j=Math.min(k,m*(1-Math.max(0,e.bottom-g)/40)|0)):g<e.top+40&&b.scrollTop&&(Qa=!0,j=-Math.min(b.scrollTop,m*(1-Math.max(0,g-e.top)/40)|0)),j&&(b.scrollTop+=j)),ya&&(k=b._gsMaxScrollX-b.scrollLeft,0>k?h=k:f>e.right-40&&k?(Qa=!0,h=Math.min(k,m*(1-Math.max(0,e.right-f)/40)|0)):f<e.left+40&&b.scrollLeft&&(Qa=!0,h=-Math.min(b.scrollLeft,m*(1-Math.max(0,f-e.left)/40)|0)),h&&(b.scrollLeft+=h)),c&&(h||j)&&(window.scrollTo(b.scrollLeft,b.scrollTop),gb(Da.pointerX+h,Da.pointerY+j)),l=b}if(aa){var n=Da.x,o=Da.y,p=1e-6;p>n&&n>-p&&(n=0),p>o&&o>-p&&(o=0),va?(oa.data.rotation=Da.rotation=n,oa.setRatio(1)):i?(za&&i.top(o),ya&&i.left(n)):ua?(za&&(oa.data.y=o),ya&&(oa.data.x=n),oa.setRatio(1)):(za&&(d.style.top=o+"px"),ya&&(d.style.left=n+"px")),!v||a||ra||(ra=!0,ia(Da,"drag","onDrag"),ra=!1)}aa=!1},Xa=function(a,c){var e,f=Da.x,g=Da.y;d._gsTransform||!ua&&!va||b.set(d,{x:"+=0",overwrite:!1}),ua?(Da.y=d._gsTransform.y,Da.x=d._gsTransform.x):va?Da.x=Da.rotation=d._gsTransform.rotation:i?(Da.y=i.top(),Da.x=i.left()):(Da.y=parseInt(d.style.top,10)||0,Da.x=parseInt(d.style.left,10)||0),!da&&!ea||c||(da&&(e=da(Da.x),e!==Da.x&&(Da.x=e,va&&(Da.rotation=e))),ea&&(e=ea(Da.y),e!==Da.y&&(Da.y=e))),(f!==Da.x||g!==Da.y)&&Va(!0),a||ia(Da,"throwupdate","onThrowUpdate")},Ya=function(){var a,b,c,e;u=!1,i?(i.calibrate(),Da.minX=D=-i.maxScrollLeft(),Da.minY=K=-i.maxScrollTop(),Da.maxX=x=Da.maxY=G=0,u=!0):g.bounds&&(a=ja(g.bounds,d.parentNode),va?(Da.minX=D=a.left,Da.maxX=x=a.left+a.width,Da.minY=K=Da.maxY=G=0):void 0!==g.bounds.maxX||void 0!==g.bounds.maxY?(a=g.bounds,Da.minX=D=a.minX,Da.minY=K=a.minY,Da.maxX=x=a.maxX,Da.maxY=G=a.maxY):(b=ja(d,d.parentNode),Da.minX=D=ha(d,wa)+a.left-b.left,Da.minY=K=ha(d,xa)+a.top-b.top,Da.maxX=x=D+(a.width-b.width),Da.maxY=G=K+(a.height-b.height)),D>x&&(Da.minX=x,Da.maxX=x=D,D=Da.minX),K>G&&(Da.minY=G,Da.maxY=G=K,K=Da.minY),va&&(Da.minRotation=D,Da.maxRotation=x),u=!0),g.liveSnap&&(c=g.liveSnap===!0?g.snap||{}:g.liveSnap,e=c instanceof Array||"function"==typeof c,va?(da=db(e?c:c.rotation,D,x,1),ea=null):(ya&&(da=db(e?c:c.x||c.left||c.scrollLeft,D,x,i?-1:1)),za&&(ea=db(e?c:c.y||c.top||c.scrollTop,K,G,i?-1:1))))},Za=function(){Da.isThrowing=!1,ia(Da,"throwcomplete","onThrowComplete")},$a=function(){Da.isThrowing=!1},_a=function(a,b){var c,e,h,j;a&&f?(a===!0&&(c=g.snap||{},e=c instanceof Array||"function"==typeof c,a={resistance:(g.throwResistance||g.resistance||1e3)/(va?10:1)},va?a.rotation=Na(Da,e?c:c.rotation,x,D,1,b):(ya&&(a[wa]=Na(Da,e?c:c.x||c.left||c.scrollLeft,x,D,i?-1:1,b||"x"===Da.lockedAxis)),za&&(a[xa]=Na(Da,e?c:c.y||c.top||c.scrollTop,G,K,i?-1:1,b||"y"===Da.lockedAxis)))),Da.isThrowing=!0,j=isNaN(g.overshootTolerance)?1===g.edgeResistance?0:1-Da.edgeResistance+.2:g.overshootTolerance,Da.tween=h=f.to(i||d,{throwProps:a,ease:g.ease||q.Power3.easeOut,onComplete:Za,onOverwrite:$a,onUpdate:g.fastMode?ia:Xa,onUpdateParams:g.fastMode?[Da,"onthrowupdate","onThrowUpdate"]:w},isNaN(g.maxDuration)?2:g.maxDuration,isNaN(g.minDuration)?0===j?0:.5:g.minDuration,j),g.fastMode||(i&&(i._suspendTransforms=!0),h.render(h.duration(),!0,!0),Xa(!0,!0),Da.endX=Da.x,Da.endY=Da.y,va&&(Da.endRotation=Da.x),h.play(0),Xa(!0,!0),i&&(i._suspendTransforms=!1))):u&&Da.applyBounds()},ab=function(){var a,b,c,e,f,g,h,i,l,m=ka||[1,0,0,1,0,0];ka=Aa(d.parentNode,!0),Da.isPressed&&m.join(",")!==ka.join(",")&&(a=m[0],b=m[1],c=m[2],e=m[3],f=m[4],g=m[5],h=a*e-b*c,i=j*(e/h)+k*(-c/h)+(c*g-e*f)/h,l=j*(-b/h)+k*(a/h)+-(a*g-b*f)/h,k=i*ka[1]+l*ka[3]+ka[5],j=i*ka[0]+l*ka[2]+ka[4]),ka[1]||ka[2]||1!=ka[0]||1!=ka[3]||0!=ka[4]||0!=ka[5]||(ka=null)},bb=function(){var a=1-Da.edgeResistance;ab(),ka&&(j=Da.pointerX*ka[0]+Da.pointerY*ka[2]+ka[4],k=Da.pointerX*ka[1]+Da.pointerY*ka[3]+ka[5]),aa&&(gb(Da.pointerX,Da.pointerY),Va(!0)),i?(Ya(),r=i.top(),l=i.left()):(cb()?(Xa(!0,!0),Ya()):Da.applyBounds(),va?(Y=Ba(d,{x:0,y:0}),Xa(!0,!0),l=Da.x,r=Da.y=Math.atan2(Y.y-Da.pointerY,Da.pointerX-Y.x)*y):(ma=d.parentNode?d.parentNode.scrollTop||0:0,na=d.parentNode?d.parentNode.scrollLeft||0:0,r=ha(d,xa),l=ha(d,wa))),u&&a&&(l>x?l=x+(l-x)/a:D>l&&(l=D-(D-l)/a),va||(r>G?r=G+(r-G)/a:K>r&&(r=K-(K-r)/a)))},cb=function(){return Da.tween&&Da.tween.isActive()},db=function(a,b,c,d){return"function"==typeof a?function(e){var f=Da.isPressed?1-Da.edgeResistance:1;return a.call(Da,e>c?c+(e-c)*f:b>e?b+(e-b)*f:e)*d}:a instanceof Array?function(d){for(var e,f,g=a.length,h=0,i=z;--g>-1;)e=a[g],f=e-d,0>f&&(f=-f),i>f&&e>=b&&c>=e&&(h=g,i=f);return a[h]}:isNaN(a)?function(a){return a}:function(){return a*d}},eb=function(a){var c;if(!(!h||Da.isPressed||!a||("mousedown"===a.type||"pointerdown"===a.type)&&A()-Ua<30&&Ha[Da.pointerEvent.type])){if(la=cb(),Da.pointerEvent=a,Ha[a.type]?(ga=-1!==a.type.indexOf("touch")?a.currentTarget||a.target:s,Ia(ga,"touchend",hb),Ia(ga,"touchmove",fb),Ia(ga,"touchcancel",hb),Ia(s,"touchstart",Ma)):(ga=null,Ia(s,"mousemove",fb)),qa=null,Ia(s,"mouseup",hb),a&&a.target&&Ia(a.target,"mouseup",hb),fa=Ta.call(Da,a.target)&&!g.dragClickables)return Ia(a.target,"change",hb),ia(Da,"press","onPress"),void Pa(Ea,!0);if(pa=!ga||ya===za||i||Da.vars.allowNativeTouchScrolling===!1?!1:ya?"y":"x",B?a=$(a,!0):pa||Da.allowEventDefault||(a.preventDefault(),a.preventManipulation&&a.preventManipulation()),a.changedTouches?(a=T=a.changedTouches[0],U=a.identifier):a.pointerId?U=a.pointerId:T=U=null,H++,P(Va),k=Da.pointerY=a.pageY,j=Da.pointerX=a.pageX,(pa||Da.autoScroll)&&Z(d.parentNode),!Da.autoScroll||va||i||!d.parentNode||d.getBBox||!d.parentNode._gsMaxScrollX||C.parentNode||(C.style.width=d.parentNode.scrollWidth+"px",d.parentNode.appendChild(C)),bb(),Da.tween&&Da.tween.kill(),Da.isThrowing=!1,b.killTweensOf(i||d,!0,Fa),i&&b.killTweensOf(d,!0,{scrollTo:1}),Da.tween=Da.lockedAxis=null,(g.zIndexBoost||!va&&!i&&g.zIndexBoost!==!1)&&(d.style.zIndex=Sa.zIndex++),Da.isPressed=!0,v=!(!g.onDrag&&!Da._listeners.drag),!va)for(c=Ea.length;--c>-1;)ba(Ea[c],"cursor",g.cursor||"move");ia(Da,"press","onPress")}},fb=function(a){var b,c,d,f,g=a;if(h&&!e&&Da.isPressed&&a){if(Da.pointerEvent=a,b=a.changedTouches){if(a=b[0],a!==T&&a.identifier!==U){for(f=b.length;--f>-1&&(a=b[f]).identifier!==U;);if(0>f)return}}else if(a.pointerId&&U&&a.pointerId!==U)return;if(B)a=$(a,!0);else{if(ga&&pa&&!qa&&(c=a.pageX,d=a.pageY,ka&&(f=c*ka[0]+d*ka[2]+ka[4],d=c*ka[1]+d*ka[3]+ka[5],c=f),qa=Math.abs(c-j)>Math.abs(d-k)&&ya?"x":"y",Da.vars.lockAxisOnTouchScroll!==!1&&(Da.lockedAxis="x"===qa?"y":"x","function"==typeof Da.vars.onLockAxis&&Da.vars.onLockAxis.call(Da,g)),I&&pa===qa))return void hb(g);Da.allowEventDefault||pa&&(!qa||pa===qa)||g.cancelable===!1||(g.preventDefault(),g.preventManipulation&&g.preventManipulation())}Da.autoScroll&&(Qa=!0),gb(a.pageX,a.pageY)}},gb=function(a,b){var c,d,e,f,g,h,i=1-Da.dragResistance,m=1-Da.edgeResistance;Da.pointerX=a,Da.pointerY=b,va?(f=Math.atan2(Y.y-b,a-Y.x)*y,g=Da.y-f,Da.y=f,g>180?r-=360:-180>g&&(r+=360),e=l+(r-f)*i):(ka&&(h=a*ka[0]+b*ka[2]+ka[4],b=a*ka[1]+b*ka[3]+ka[5],a=h),d=b-k,c=a-j,Ca>d&&d>-Ca&&(d=0),Ca>c&&c>-Ca&&(c=0),(Da.lockAxis||Da.lockedAxis)&&(c||d)&&(h=Da.lockedAxis,h||(Da.lockedAxis=h=ya&&Math.abs(c)>Math.abs(d)?"y":za?"x":null,h&&"function"==typeof Da.vars.onLockAxis&&Da.vars.onLockAxis.call(Da,Da.pointerEvent)),"y"===h?d=0:"x"===h&&(c=0)),e=l+c*i,f=r+d*i),da||ea?(da&&(e=da(e)),ea&&(f=ea(f))):u&&(e>x?e=x+(e-x)*m:D>e&&(e=D+(e-D)*m),va||(f>G?f=G+(f-G)*m:K>f&&(f=K+(f-K)*m))),va||(e=Math.round(e),f=Math.round(f)),(Da.x!==e||Da.y!==f&&!va)&&(va?Da.endRotation=Da.x=Da.endX=e:(za&&(Da.y=Da.endY=f),ya&&(Da.x=Da.endX=e)),aa=!0,!Da.isDragging&&Da.isPressed&&(Da.isDragging=!0,ia(Da,"dragstart","onDragStart")))},hb=function(a,c){if(h&&Da.isPressed&&(!a||null==U||c||!(a.pointerId&&a.pointerId!==U||a.changedTouches&&!Ka(a.changedTouches,U)))){Da.isPressed=!1;var e,f,i,j,k=a,l=Da.isDragging;if(ga?(Ja(ga,"touchend",hb),Ja(ga,"touchmove",fb),Ja(ga,"touchcancel",hb),Ja(s,"touchstart",Ma)):Ja(s,"mousemove",fb),Ja(s,"mouseup",hb),a&&a.target&&Ja(a.target,"mouseup",hb),aa=!1,C.parentNode&&C.parentNode.removeChild(C),fa)return a&&Ja(a.target,"change",hb),Pa(Ea,!1),ia(Da,"release","onRelease"),ia(Da,"click","onClick"),void(fa=!1);if(Q(Va),!va)for(f=Ea.length;--f>-1;)ba(Ea[f],"cursor",g.cursor||"move");if(l&&(La=J=A(),Da.isDragging=!1),H--,a){if(B&&(a=$(a,!1)),e=a.changedTouches,e&&(a=e[0],a!==T&&a.identifier!==U)){for(f=e.length;--f>-1&&(a=e[f]).identifier!==U;);if(0>f)return}Da.pointerEvent=k,Da.pointerX=a.pageX,Da.pointerY=a.pageY}return k&&!l?(la&&(g.snap||g.bounds)&&_a(g.throwProps),ia(Da,"release","onRelease"),I&&"touchmove"===k.type||(ia(Da,"click","onClick"),j=k.target||k.srcElement||d,Ua=A(),b.delayedCall(1e-5,function(){Ua!==sa&&Da.enabled()&&!Da.isPressed&&(j.click?j.click():s.createEvent&&(i=s.createEvent("MouseEvents"),i.initMouseEvent("click",!0,!0,window,1,Da.pointerEvent.screenX,Da.pointerEvent.screenY,Da.pointerX,Da.pointerY,!1,!1,!1,!1,0,null),j.dispatchEvent(i)))}))):(_a(g.throwProps),B||Da.allowEventDefault||!k||!g.dragClickables&&Ta.call(Da,k.target)||!l||pa&&(!qa||pa!==qa)||k.cancelable===!1||(k.preventDefault(),k.preventManipulation&&k.preventManipulation()),ia(Da,"release","onRelease")),l&&ia(Da,"dragend","onDragEnd"),!0}},ib=function(a){if(a&&Da.isDragging){var b=a.target||a.srcElement||d.parentNode,c=b.scrollLeft-b._gsScrollX,e=b.scrollTop-b._gsScrollY;(c||e)&&(ka?(j-=c*ka[0]+e*ka[2],k-=e*ka[3]+c*ka[1]):(j-=c,k-=e),b._gsScrollX+=c,b._gsScrollY+=e,gb(Da.pointerX,Da.pointerY))}},jb=function(a){var b=A(),c=40>b-Ua,d=40>b-La;return c&&sa!==Ua?void(sa=Ua):void((Da.isPressed||d||c)&&(a.preventDefault?(a.preventDefault(),(c||d&&Da.vars.suppressClickOnDrag!==!1)&&a.stopImmediatePropagation()):a.returnValue=!1,a.preventManipulation&&a.preventManipulation()))};ca=Sa.get(this.target),ca&&ca.kill(),this.startDrag=function(a){eb(a),Da.isDragging||(Da.isDragging=!0,ia(Da,"dragstart","onDragStart"))},this.drag=fb,this.endDrag=function(a){hb(a,!0)},this.timeSinceDrag=function(){return Da.isDragging?0:(A()-La)/1e3},this.hitTest=function(a,b){return Sa.hitTest(Da.target,a,b)},this.getDirection=function(a,b){var c,d,e,g,h,i,j="velocity"===a&&f?a:"object"!=typeof a||va?"start":"element";return"element"===j&&(h=Wa(Da.target),i=Wa(a)),c="start"===j?Da.x-l:"velocity"===j?f.getVelocity(this.target,wa):h.left+h.width/2-(i.left+i.width/2),va?0>c?"counter-clockwise":"clockwise":(b=b||2,d="start"===j?Da.y-r:"velocity"===j?f.getVelocity(this.target,xa):h.top+h.height/2-(i.top+i.height/2),e=Math.abs(c/d),g=1/b>e?"":0>c?"left":"right",b>e&&(""!==g&&(g+="-"),g+=0>d?"up":"down"),g)},this.applyBounds=function(a){var b,c,e,f,h,i;if(a&&g.bounds!==a)return g.bounds=a,Da.update(!0);if(Xa(!0),Ya(),u){if(b=Da.x,c=Da.y,b>x?b=x:D>b&&(b=D),c>G?c=G:K>c&&(c=K),(Da.x!==b||Da.y!==c)&&(e=!0,Da.x=Da.endX=b,va?Da.endRotation=b:Da.y=Da.endY=c,aa=!0,Va(!0),Da.autoScroll&&!Da.isDragging))for(Z(d.parentNode),f=d,L.scrollTop=null!=window.pageYOffset?window.pageYOffset:null!=t.scrollTop?t.scrollTop:s.body.scrollTop,L.scrollLeft=null!=window.pageXOffset?window.pageXOffset:null!=t.scrollLeft?t.scrollLeft:s.body.scrollLeft;f&&!i;)i=X(f.parentNode),h=i?L:f.parentNode,za&&h.scrollTop>h._gsMaxScrollY&&(h.scrollTop=h._gsMaxScrollY),ya&&h.scrollLeft>h._gsMaxScrollX&&(h.scrollLeft=h._gsMaxScrollX),f=h;Da.isThrowing&&(e||Da.endX>x||Da.endX<D||Da.endY>G||Da.endY<K)&&_a(g.throwProps,e)}return Da},this.update=function(a,b){var c=Da.x,e=Da.y;return ab(),a?Da.applyBounds():(aa&&b&&Va(!0),Xa(!0)),Da.isPressed&&(ya&&Math.abs(c-Da.x)>.01||za&&Math.abs(e-Da.y)>.01&&!va)&&bb(),Da.autoScroll&&(Z(d.parentNode),Qa=Da.isDragging,Va(!0)),Da.autoScroll&&(W(d,ib),V(d,ib)),Da},this.enable=function(a){var e,j,k;if("soft"!==a){for(j=Ea.length;--j>-1;)k=Ea[j],Ia(k,"mousedown",eb),Ia(k,"touchstart",eb),Ia(k,"click",jb,!0),va||ba(k,"cursor",g.cursor||"move"),ba(k,"touchCallout","none"),ba(k,"touchAction",ya===za||i?"none":ya?"pan-y":"pan-x");Pa(Ea,!1)}return V(d,ib),h=!0,f&&"soft"!==a&&f.track(i||d,ua?"x,y":va?"rotation":"top,left"),i&&i.enable(),d._gsDragID=e="d"+F++,E[e]=this,i&&(i.element._gsDragID=e),b.set(d,{x:"+=0",overwrite:!1}),oa={t:d,data:B?R:d._gsTransform,tween:{},setRatio:B?function(){b.set(d,O)}:c._internals.setTransformRatio||c._internals.set3DTransformRatio},Da.update(!0),Da},this.disable=function(a){var b,c,e=Da.isDragging;if(!va)for(b=Ea.length;--b>-1;)ba(Ea[b],"cursor",null);if("soft"!==a){for(b=Ea.length;--b>-1;)c=Ea[b],ba(c,"touchCallout",null),ba(c,"touchAction",null),Ja(c,"mousedown",eb),Ja(c,"touchstart",eb),Ja(c,"click",jb);Pa(Ea,!0),ga&&(Ja(ga,"touchcancel",hb),Ja(ga,"touchend",hb),Ja(ga,"touchmove",fb)),Ja(s,"mouseup",hb),Ja(s,"mousemove",fb)}return W(d,ib),h=!1,f&&"soft"!==a&&f.untrack(i||d,ua?"x,y":va?"rotation":"top,left"),i&&i.disable(),Q(Va),Da.isDragging=Da.isPressed=fa=!1,
e&&ia(Da,"dragend","onDragEnd"),Da},this.enabled=function(a,b){return arguments.length?a?Da.enable(b):Da.disable(b):h},this.kill=function(){return Da.isThrowing=!1,b.killTweensOf(i||d,!0,Fa),Da.disable(),delete E[d._gsDragID],Da},-1!==ta.indexOf("scroll")&&(i=this.scrollProxy=new Ra(d,S({onKill:function(){Da.isPressed&&hb(null)}},g)),d.style.overflowY=za&&!Ga?"auto":"hidden",d.style.overflowX=ya&&!Ga?"auto":"hidden",d=i.content),g.force3D!==!1&&b.set(d,{force3D:!0}),va?Fa.rotation=1:(ya&&(Fa[wa]=1),za&&(Fa[xa]=1)),va?(O=p,R=O.css,O.overwrite=!1):ua&&(O=ya&&za?m:ya?n:o,R=O.css,O.overwrite=!1),this.enable()},Ta=Sa.prototype=new a;Ta.constructor=Sa,Ta.pointerX=Ta.pointerY=0,Ta.isDragging=Ta.isPressed=!1,Sa.version="0.14.6",Sa.zIndex=1e3,Ia(s,"touchcancel",function(){}),Ia(s,"contextmenu",function(a){var b;for(b in E)E[b].isPressed&&E[b].endDrag()}),Sa.create=function(a,c){"string"==typeof a&&(a=b.selector(a));for(var d=a&&0!==a.length?Ea(a)?Fa(a):[a]:[],e=d.length;--e>-1;)d[e]=new Sa(d[e],c);return d},Sa.get=function(a){return E[(_(a)||{})._gsDragID]},Sa.timeSinceDrag=function(){return(A()-J)/1e3};var Ua={},Va=function(a){var b,c,d=0,e=0;for(a=_(a),b=a.offsetWidth,c=a.offsetHeight;a;)d+=a.offsetTop,e+=a.offsetLeft,a=a.offsetParent;return{top:d,left:e,width:b,height:c}},Wa=function(a,b){if(a===window)return Ua.left=Ua.top=0,Ua.width=Ua.right=t.clientWidth||a.innerWidth||s.body.clientWidth||0,Ua.height=Ua.bottom=(a.innerHeight||0)-20<t.clientHeight?t.clientHeight:a.innerHeight||s.body.clientHeight||0,Ua;var c=a.pageX!==b?{left:a.pageX-U(),top:a.pageY-T(),right:a.pageX-U()+1,bottom:a.pageY-T()+1}:a.nodeType||a.left===b||a.top===b?B?Va(a):_(a).getBoundingClientRect():a;return c.right===b&&c.width!==b?(c.right=c.left+c.width,c.bottom=c.top+c.height):c.width===b&&(c={width:c.right-c.left,height:c.bottom-c.top,right:c.right,left:c.left,bottom:c.bottom,top:c.top}),c};return Sa.hitTest=function(a,b,c){if(a===b)return!1;var d,e,f,g=Wa(a),h=Wa(b),i=h.left>g.right||h.right<g.left||h.top>g.bottom||h.bottom<g.top;return i||!c?!i:(f=-1!==(c+"").indexOf("%"),c=parseFloat(c)||0,d={left:Math.max(g.left,h.left),top:Math.max(g.top,h.top)},d.width=Math.min(g.right,h.right)-d.left,d.height=Math.min(g.bottom,h.bottom)-d.top,d.width<0||d.height<0?!1:f?(c*=.01,e=d.width*d.height,e>=g.width*g.height*c||e>=h.width*h.height*c):d.width>c&&d.height>c)},C.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;",Sa},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"function"==typeof define&&define.amd?define(["TweenLite"],b):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),require("../plugins/CSSPlugin.js"),module.exports=b())}("Draggable");


/*!
 * VERSION: 0.9.6
 * DATE: 2014-07-17
 * UPDATES AND DOCS AT: http://www.greensock.com
 *
 * @license Copyright (c) 2008-2014, GreenSock. All rights reserved.
 * ThrowPropsPlugin is a Club GreenSock membership benefit; You must have a valid membership to use
 * this code without violating the terms of use. Visit http://www.greensock.com/club/ to sign up or get more details.
 * This work is subject to the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 */
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.ThrowPropsPlugin",["plugins.TweenPlugin","TweenLite","easing.Ease","utils.VelocityTracker"],function(t,e,i,s){var r,n,o,a,l=function(){t.call(this,"throwProps"),this._overwriteProps.length=0},h=999999999999999,u=1e-10,p=!1,f={x:1,y:1,z:2,scale:1,scaleX:1,scaleY:1,rotation:1,rotationZ:1,rotationX:2,rotationY:2,skewX:1,skewY:1},c=function(t,e,i,s){for(var r,n,o=e.length,a=0,l=h;--o>-1;)r=e[o],n=r-t,0>n&&(n=-n),l>n&&r>=s&&i>=r&&(a=o,l=n);return e[a]},_=function(t,e,i,s){if("auto"===t.end)return t;i=isNaN(i)?h:i,s=isNaN(s)?-h:s;var r="function"==typeof t.end?t.end(e):t.end instanceof Array?c(e,t.end,i,s):Number(t.end);return r>i?r=i:s>r&&(r=s),{max:r,min:r,unitFactor:t.unitFactor}},d=function(t,e,i){for(var s in e)void 0===t[s]&&s!==i&&(t[s]=e[s]);return t},m=l.calculateChange=function(t,s,r,n){null==n&&(n=.05);var o=s instanceof i?s:s?new i(s):e.defaultEase;return r*n*t/o.getRatio(n)},g=l.calculateDuration=function(t,s,r,n,o){o=o||.05;var a=n instanceof i?n:n?new i(n):e.defaultEase;return Math.abs((s-t)*a.getRatio(o)/r/o)},v=l.calculateTweenDuration=function(t,r,n,o,a,h){if("string"==typeof t&&(t=e.selector(t)),!t)return 0;null==n&&(n=10),null==o&&(o=.2),null==a&&(a=1),t.length&&(t=t[0]||t);var f,c,v,y,x,T,w,b,P,S,k=0,C=9999999999,R=r.throwProps||r,A=r.ease instanceof i?r.ease:r.ease?new i(r.ease):e.defaultEase,O=isNaN(R.checkpoint)?.05:Number(R.checkpoint),M=isNaN(R.resistance)?l.defaultResistance:Number(R.resistance);for(f in R)"resistance"!==f&&"checkpoint"!==f&&"preventOvershoot"!==f&&(c=R[f],"object"!=typeof c&&(P=P||s.getByTarget(t),P&&P.isTrackingProp(f)?c="number"==typeof c?{velocity:c}:{velocity:P.getVelocity(f)}:(y=Number(c)||0,v=y*M>0?y/M:y/-M)),"object"==typeof c&&(void 0!==c.velocity&&"number"==typeof c.velocity?y=Number(c.velocity)||0:(P=P||s.getByTarget(t),y=P&&P.isTrackingProp(f)?P.getVelocity(f):0),x=isNaN(c.resistance)?M:Number(c.resistance),v=y*x>0?y/x:y/-x,T="function"==typeof t[f]?t[f.indexOf("set")||"function"!=typeof t["get"+f.substr(3)]?f:"get"+f.substr(3)]():t[f]||0,w=T+m(y,A,v,O),void 0!==c.end&&(c=_(c,w,c.max,c.min),(h||p)&&(R[f]=d(c,R[f],"end"))),void 0!==c.max&&w>Number(c.max)+u?(S=c.unitFactor||l.defaultUnitFactors[f]||1,b=T>c.max&&c.min!==c.max||y*S>-15&&45>y*S?o+.1*(n-o):g(T,c.max,y,A,O),C>b+a&&(C=b+a)):void 0!==c.min&&Number(c.min)-u>w&&(S=c.unitFactor||l.defaultUnitFactors[f]||1,b=c.min>T&&c.min!==c.max||y*S>-45&&15>y*S?o+.1*(n-o):g(T,c.min,y,A,O),C>b+a&&(C=b+a)),b>k&&(k=b)),v>k&&(k=v));return k>C&&(k=C),k>n?n:o>k?o:k},y=l.prototype=new t("throwProps");return y.constructor=l,l.version="0.9.6",l.API=2,l._autoCSS=!0,l.defaultResistance=100,l.defaultUnitFactors={time:1e3,totalTime:1e3},l.track=function(t,e,i){return s.track(t,e,i)},l.untrack=function(t,e){s.untrack(t,e)},l.isTracking=function(t,e){return s.isTracking(t,e)},l.getVelocity=function(t,e){var i=s.getByTarget(t);return i?i.getVelocity(e):0/0},l._cssRegister=function(){var t=(_gsScope.GreenSockGlobals||_gsScope).com.greensock.plugins.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,o=e._setPluginRatio,a=e.CSSPropTween;e._registerComplexSpecialProp("throwProps",{parser:function(t,e,h,u,p,c){c=new l;var _,d,m,g,v,y={},x={},T={},w={},b={},P={};n={};for(m in e)"resistance"!==m&&"preventOvershoot"!==m&&(d=e[m],"object"==typeof d?(void 0!==d.velocity&&"number"==typeof d.velocity?y[m]=Number(d.velocity)||0:(v=v||s.getByTarget(t),y[m]=v&&v.isTrackingProp(m)?v.getVelocity(m):0),void 0!==d.end&&(w[m]=d.end),void 0!==d.min&&(x[m]=d.min),void 0!==d.max&&(T[m]=d.max),d.preventOvershoot&&(P[m]=!0),void 0!==d.resistance&&(_=!0,b[m]=d.resistance)):"number"==typeof d?y[m]=d:(v=v||s.getByTarget(t),y[m]=v&&v.isTrackingProp(m)?v.getVelocity(m):d||0),f[m]&&u._enableTransforms(2===f[m]));g=i(t,y,u,p,c),r=g.proxy,y=g.end;for(m in r)n[m]={velocity:y[m],min:x[m],max:T[m],end:w[m],resistance:b[m],preventOvershoot:P[m]};return null!=e.resistance&&(n.resistance=e.resistance),e.preventOvershoot&&(n.preventOvershoot=!0),p=new a(t,"throwProps",0,0,g.pt,2),p.plugin=c,p.setRatio=o,p.data=g,c._onInitTween(r,n,u._tween),p}})}},l.to=function(t,i,s,l,h){i.throwProps||(i={throwProps:i}),0===h&&(i.throwProps.preventOvershoot=!0),p=!0;var u=new e(t,1,i);return u.render(0,!0,!0),u.vars.css?(u.duration(v(r,{throwProps:n,ease:i.ease},s,l,h)),u._delay&&!u.vars.immediateRender?u.invalidate():o._onInitTween(r,a,u),p=!1,u):(u.kill(),u=new e(t,v(t,i,s,l,h),i),p=!1,u)},y._onInitTween=function(t,e,i){this.target=t,this._props=[],o=this,a=e;var r,n,l,h,u,f,c,g,v,y=i._ease,x=isNaN(e.checkpoint)?.05:Number(e.checkpoint),T=i._duration,w=e.preventOvershoot,b=0;for(r in e)if("resistance"!==r&&"checkpoint"!==r&&"preventOvershoot"!==r){if(n=e[r],"number"==typeof n)u=Number(n)||0;else if("object"!=typeof n||isNaN(n.velocity)){if(v=v||s.getByTarget(t),!v||!v.isTrackingProp(r))throw"ERROR: No velocity was defined in the throwProps tween of "+t+" property: "+r;u=v.getVelocity(r)}else u=Number(n.velocity);f=m(u,y,T,x),g=0,h="function"==typeof t[r],l=h?t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]():t[r],"object"==typeof n&&(c=l+f,void 0!==n.end&&(n=_(n,c,n.max,n.min),p&&(e[r]=d(n,e[r],"end"))),void 0!==n.max&&c>Number(n.max)?w||n.preventOvershoot?f=n.max-l:g=n.max-l-f:void 0!==n.min&&Number(n.min)>c&&(w||n.preventOvershoot?f=n.min-l:g=n.min-l-f)),this._props[b++]={p:r,s:l,c1:f,c2:g,f:h,r:!1},this._overwriteProps[b]=r}return!0},y._kill=function(e){for(var i=this._props.length;--i>-1;)null!=e[this._props[i].p]&&this._props.splice(i,1);return t.prototype._kill.call(this,e)},y._roundProps=function(t,e){for(var i=this._props,s=i.length;--s>-1;)(t[i[s]]||t.throwProps)&&(i[s].r=e)},y.setRatio=function(t){for(var e,i,s=this._props.length;--s>-1;)e=this._props[s],i=e.s+e.c1*t+e.c2*t*t,e.r&&(i=Math.round(i)),e.f?this.target[e.p](i):this.target[e.p]=i},t.activate([l]),l},!0),_gsScope._gsDefine("utils.VelocityTracker",["TweenLite"],function(t){var e,i,s,r,n=/([A-Z])/g,o={},a={x:1,y:1,z:2,scale:1,scaleX:1,scaleY:1,rotation:1,rotationZ:1,rotationX:2,rotationY:2,skewX:1,skewY:1},l=document.defaultView?document.defaultView.getComputedStyle:function(){},h=function(t,e,i){var s=(t._gsTransform||o)[e];return s||0===s?s:(t.style[e]?s=t.style[e]:(i=i||l(t,null))?(t=i.getPropertyValue(e.replace(n,"-$1").toLowerCase()),s=t||i.length?t:i[e]):t.currentStyle&&(i=t.currentStyle,s=i[e]),parseFloat(s)||0)},u=t.ticker,p=function(t,e,i){this.p=t,this.f=e,this.v1=this.v2=0,this.t1=this.t2=u.time,this.css=!1,this.type="",this._prev=null,i&&(this._next=i,i._prev=this)},f=function(){var t,i,n=e,o=u.time;if(o-s>=.03)for(r=s,s=o;n;){for(i=n._firstVP;i;)t=i.css?h(n.target,i.p):i.f?n.target[i.p]():n.target[i.p],(t!==i.v1||o-i.t1>.15)&&(i.v2=i.v1,i.v1=t,i.t2=i.t1,i.t1=o),i=i._next;n=n._next}},c=function(t){this._lookup={},this.target=t,this.elem=t.style&&t.nodeType?!0:!1,i||(u.addEventListener("tick",f,null,!1,-100),s=r=u.time,i=!0),e&&(this._next=e,e._prev=this),e=this},_=c.getByTarget=function(t){for(var i=e;i;){if(i.target===t)return i;i=i._next}},d=c.prototype;return d.addProp=function(e,i){if(!this._lookup[e]){var s=this.target,r="function"==typeof s[e],n=r?this._altProp(e):e,o=this._firstVP;this._firstVP=this._lookup[e]=this._lookup[n]=o=new p(n!==e&&0===e.indexOf("set")?n:e,r,o),o.css=this.elem&&(void 0!==this.target.style[o.p]||a[o.p]),o.css&&a[o.p]&&!s._gsTransform&&t.set(s,{x:"+=0"}),o.type=i||o.css&&0===e.indexOf("rotation")?"deg":"",o.v1=o.v2=o.css?h(s,o.p):r?s[o.p]():s[o.p]}},d.removeProp=function(t){var e=this._lookup[t];e&&(e._prev?e._prev._next=e._next:e===this._firstVP&&(this._firstVP=e._next),e._next&&(e._next._prev=e._prev),this._lookup[t]=0,e.f&&(this._lookup[this._altProp(t)]=0))},d.isTrackingProp=function(t){return this._lookup[t]instanceof p},d.getVelocity=function(t){var e,i,s,r=this._lookup[t],n=this.target;if(!r)throw"The velocity of "+t+" is not being tracked.";return e=r.css?h(n,r.p):r.f?n[r.p]():n[r.p],i=e-r.v2,("rad"===r.type||"deg"===r.type)&&(s="rad"===r.type?2*Math.PI:360,i%=s,i!==i%(s/2)&&(i=0>i?i+s:i-s)),i/(u.time-r.t2)},d._altProp=function(t){var e=t.substr(0,3),i=("get"===e?"set":"set"===e?"get":e)+t.substr(3);return"function"==typeof this.target[i]?i:t},c.getByTarget=function(i){var s=e;for("string"==typeof i&&(i=t.selector(i)),i.length&&i!==window&&i[0]&&i[0].style&&!i.nodeType&&(i=i[0]);s;){if(s.target===i)return s;s=s._next}},c.track=function(t,e,i){var s=_(t),r=e.split(","),n=r.length;for(i=(i||"").split(","),s||(s=new c(t));--n>-1;)s.addProp(r[n],i[n]||i[0]);return s},c.untrack=function(t,i){var s=_(t),r=(i||"").split(","),n=r.length;if(s){for(;--n>-1;)s.removeProp(r[n]);s._firstVP&&i||(s._prev?s._prev._next=s._next:s===e&&(e=s._next),s._next&&(s._next._prev=s._prev))}},c.isTracking=function(t,e){var i=_(t);return i?!e&&i._firstVP?!0:i.isTrackingProp(e):!1},c},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("ThrowPropsPlugin");