/**************************************************************************
* jquery.themepunch.revolution.js - jquery plugin for kenburn slider
* @version: 2.1.6 (28.12.2012)
* @requires jquery v1.7 or later (tested on 1.8.2 already)
* @author themepunch
**************************************************************************/
(function(e,t){function n(t,n){t.find(".defaultimg").each(function(i){p(e(this),n);n.height=math.round(n.startheight*(n.width/n.startwidth));t.height(n.height);p(e(this),n);try{t.parent().find(".tp-bannershadow").css({width:n.width})}catch(s){}var o=t.find(">ul >li:eq("+n.act+") .slotholder");var u=t.find(">ul >li:eq("+n.next+") .slotholder");y(t,n);u.find(".defaultimg").css({opacity:0});o.find(".defaultimg").css({opacity:1});b(t,n);var a=t.find(">ul >li:eq("+n.next+")");t.find(".tp-caption").each(function(){e(this).stop(true,true)});k(a,n);r(n,t)})}function r(e,t){e.cd=0;if(e.videoplaying!=true){var n=t.find(".tp-bannertimer");if(n.length>0){n.stop();n.css({width:"0%"});n.animate({width:"100%"},{duration:e.delay-100,queue:false,easing:"linear"})}cleartimeout(e.thumbtimer);e.thumbtimer=settimeout(function(){o(t);h(t,e)},200)}}function i(e,t){e.cd=0;w(t,e);var n=t.find(".tp-bannertimer");if(n.length>0){n.stop();n.css({width:"0%"});n.animate({width:"100%"},{duration:e.delay-100,queue:false,easing:"linear"})}}function s(n,r){var s=n.parent();if(r.navigationtype=="thumb"||r.navsecond=="both"){s.append('
')}var a=s.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer");var f=a.parent();f.width(r.thumbwidth*r.thumbamount);f.height(r.thumbheight);f.parent().width(r.thumbwidth*r.thumbamount);f.parent().height(r.thumbheight);n.find(">ul:first >li").each(function(e){var r=n.find(">ul:first >li:eq("+e+")");if(r.data("thumb")!=t)var i=r.data("thumb");else var i=r.find("img:first").attr("src");a.append('');var s=a.find(".bullet:first")});a.append('');var l=1e3;a.find(".bullet").each(function(t){var s=e(this);if(t==r.slideamount-1)s.addclass("last");if(t==0)s.addclass("first");s.width(r.thumbwidth);s.height(r.thumbheight);if(l>s.outerwidth(true))l=s.outerwidth(true);s.click(function(){if(r.transition==0&&s.index()!=r.act){r.next=s.index();i(r,n)}})});var c=l*n.find(">ul:first >li").length;var h=a.parent().width();r.thumbwidth=l;if(hul:first >li").length;var f=a-s+15;var l=f/s;i=i-30;var c=0-i*l;if(c>0)c=0;if(c<0-a+s)c=0-a+s;u(t,c,200)});a.parent().mousemove(function(){var t=e(this);var r=t.offset();var i=e("body").data("mousex")-r.left;var s=t.width();var o=t.find(".bullet:first").outerwidth(true);var a=o*n.find(">ul:first >li").length;var f=a-s+15;var l=f/s;i=i-30;var c=0-i*l;if(c>0)c=0;if(c<0-a+s)c=0-a+s;u(t,c,0)});a.parent().mouseleave(function(){var t=e(this);t.removeclass("over");o(n)})}}function o(e){var t=e.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer");var n=t.parent();var r=n.offset();var i=n.find(".bullet:first").outerwidth(true);var s=n.find(".bullet.selected").index()*i;var o=n.width();var i=n.find(".bullet:first").outerwidth(true);var a=i*e.find(">ul:first >li").length;var f=a-o;var l=f/o;var c=0-s;if(c>0)c=0;if(c<0-a+o)c=0-a+o;if(!n.hasclass("over")){u(n,c,200)}}function u(e,t,n){e.stop();e.find(".tp-thumbcontainer").animate({left:t+"px"},{duration:n,queue:false})}function a(t,n){if(n.navigationtype=="bullet"||n.navigationtype=="both"){t.parent().append('')}var r=t.parent().find(".tp-bullets");t.find(">ul:first >li").each(function(e){var n=t.find(">ul:first >li:eq("+e+") img:first").attr("src");r.append('');var i=r.find(".bullet:first")});r.find(".bullet").each(function(r){var s=e(this);if(r==n.slideamount-1)s.addclass("last");if(r==0)s.addclass("first");s.click(function(){if(n.transition==0&&s.index()!=n.act){n.next=s.index();i(n,t)}})});r.append('');h(t,n);e("#unvisible_button").click(function(){n.navigationarrows=e(".selectnavarrows").val();n.navigationtype=e(".selectnavtype").val();h(t,n);settimeout(function(){h(t,n)},100)})}function f(e,n){var r=e.find(".tp-bullets");var s="";if(n.navigationarrow=="none")s="visibility:none";e.parent().append('');e.parent().append('');e.parent().find(".tp-rightarrow").click(function(){if(n.transition==0){if(e.data("showus")!=t&&e.data("showus")!=-1)n.next=e.data("showus")-1;else n.next=n.next+1;e.data("showus",-1);if(n.next>=n.slideamount)n.next=0;if(n.next<0)n.next=0;if(n.act!=n.next)i(n,e)}});e.parent().find(".tp-leftarrow").click(function(){if(n.transition==0){n.next=n.next-1;n.leftarrowpressed=1;if(n.next<0)n.next=n.slideamount-1;i(n,e)}});h(e,n)}function l(e,t){if(t.touchenabled=="on")e.swipe({data:e,swiperight:function(){if(t.transition==0){t.next=t.next-1;t.leftarrowpressed=1;if(t.next<0)t.next=t.slideamount-1;i(t,e)}},swipeleft:function(){if(t.transition==0){t.next=t.next+1;if(t.next==t.slideamount)t.next=0;i(t,e)}},allowpagescroll:"auto"})}function c(e,t){var n=e.parent().find(".tp-bullets");var r=e.parent().find(".tparrows");if(n==null){e.append('');var n=e.parent().find(".tp-bullets")}if(r==null){e.append('');var r=e.parent().find(".tparrows")}e.data("hidethumbs",t.hidethumbs);if(t.ie){r.css({visibility:"hidden"})}else{try{r.css({opacity:0})}catch(i){}}n.hover(function(){cleartimeout(e.data("hidethumbs"));r.animate({opacity:1},{duration:200,queue:false})},function(){if(!e.hasclass("hovered"))e.data("hidethumbs",settimeout(function(){if(t.ie){r.css({visibility:"hidden"})}else{r.animate({opacity:0},{duration:200,queue:false})}},t.hidethumbs))});r.hover(function(){cleartimeout(e.data("hidethumbs"));if(t.ie){r.css({visibility:"visible"})}else{r.animate({opacity:1},{duration:200,queue:false})}},function(){if(!e.hasclass("hovered"))e.data("hidethumbs",settimeout(function(){if(t.ie){r.css({visibility:"hidden"})}else{r.animate({opacity:0},{duration:200,queue:false})}},t.hidethumbs))});e.live("mouseenter",function(){e.addclass("hovered");cleartimeout(e.data("hidethumbs"));if(t.ie){r.css({visibility:"visible"})}else{r.animate({opacity:1},{duration:200,queue:false})}});e.live("mouseleave",function(){e.removeclass("hovered");if(!e.hasclass("hovered"))e.data("hidethumbs",settimeout(function(){if(t.ie){r.css({visibility:"hidden"})}else{r.animate({opacity:0},{duration:200,queue:false})}},t.hidethumbs))})}function h(t,n){if(n.navigationtype=="both"){n.navigationtype="bullet";n.navsecond="both"}if(n.navigationtype=="none"&&n.navigationarrows!="none")n.navigationarrows="verticalcentered";n.navoh=n.navoffsethorizontal*n.bw;n.navov=n.navoffsetvertical*n.bh;if(n.bw!=1)n.navoh=0;var r=t.parent();var i=r.find(".tp-leftarrow");var s=r.find(".tp-rightarrow");if(n.navigationtype=="bullet"){var o=r.find(".tp-bullets.simplebullets");var u=r.find(".tp-bullets.simplebullets.navbar");o.css({visibility:"visible"});try{r.find(".tp-thumbs").css({visibility:"hidden"});if(n.ie)r.find(".tp-thumbs").remove()}catch(a){}var f=o.width();if(!o.hasclass("tp-thumbs")){f=0;o.find(".bullet").each(function(){f=f+e(this).outerwidth(true)});o.css({width:f+"px"})}var l=r.outerwidth()-n.width;o.css({left:n.navoh+l/2+(n.width/2-f/2)+"px",bottom:n.navov+"px"});if(n.navigationarrows=="nexttobullets"){i.removeclass("large");s.removeclass("large");i.removeclass("thumbswitharrow");s.removeclass("thumbswitharrow");i.css({visibility:"visible"});s.css({visibility:"visible"});var c=0;i.css({position:"absolute",left:o.position().left-i.outerwidth(true)+"px",top:o.position().top+"px"});s.css({position:"absolute",left:o.outerwidth(true)+o.position().left+"px",top:o.position().top+"px"});try{u.css({paddingleft:"40px",paddingright:"40px","margin-left":"-40px"})}catch(a){}}else{if(n.navigationarrows=="verticalcentered"){i.addclass("large");s.addclass("large");i.css({visibility:"visible"});s.css({visibility:"visible"});var h=r.outerheight();i.css({position:"absolute",left:math.round(l/2)+"px",top:math.round(h/2)+"px"});s.css({position:"absolute",left:math.round(n.width-s.outerwidth()+l/2)+"px",top:math.round(h/2)+"px"});try{u.css({paddingleft:"10px",paddingright:"10px","margin-left":"-10px"})}catch(a){}}else{i.css({visibility:"hidden"});s.css({visibility:"hidden"});try{u.css({paddingleft:"10px",paddingright:"10px","margin-left":"-10px"})}catch(a){}}}}else{if(n.navigationtype=="thumb"){var p=r.find(".tp-thumbs");try{r.find(".tp-bullets").css({visibility:"hidden"})}catch(a){}p.css({visibility:"visible"});var h=p.parent().outerheight();var l=r.outerwidth()-n.width;p.css({left:n.navoh+(n.width/2-p.width()/2)+"px"});p.css({bottom:0-p.outerheight(true)+n.navov+"px"});if(n.navigationarrows=="verticalcentered"){i.css({visibility:"visible"});s.css({visibility:"visible"});i.addclass("large");s.addclass("large");i.css({position:"absolute",left:math.round(l/2)+"px",top:math.round(r.outerheight()/2)+"px"});s.css({position:"absolute",left:math.round(n.width-s.outerwidth()+l/2)+"px",top:math.round(r.outerheight()/2)+"px"})}else{i.css({visibility:"hidden"});s.css({visibility:"hidden"})}}else{if(n.navigationtype=="none"){try{r.find(".tp-bullets").css({visibility:"hidden"})}catch(a){}try{r.find(".tp-thumbs").css({visibility:"hidden"})}catch(a){}if(n.navigationarrows!="none"){var l=r.outerwidth()-n.width;i.css({visibility:"visible"});s.css({visibility:"visible"});i.addclass("large");s.addclass("large");i.css({position:"absolute",left:math.round(l/2)+"px",top:math.round(r.outerheight()/2)+"px"});s.css({position:"absolute",left:math.round(n.width-s.outerwidth()+l/2)+"px",top:math.round(r.outerheight()/2)+"px"})}else{i.css({visibility:"hidden"});s.css({visibility:"hidden"})}}}}}function p(e,n){n.width=parseint(n.container.width(),0);n.height=parseint(n.container.height(),0);n.bw=n.width/n.startwidth;n.bh=n.height/n.startheight;if(n.bh>1){n.bw=1;n.bh=1}if(e.data("orgw")!=t){e.width(e.data("orgw"));e.height(e.data("orgh"))}var r=n.width/e.width();var i=n.height/e.height();n.fw=r;n.fh=i;if(e.data("orgw")==t){e.data("orgw",e.width());e.data("orgh",e.height())}if(n.fullwidth=="on"){var s=n.container.parent().width();var o=n.container.parent().height();var u=o/e.data("orgh");var a=s/e.data("orgw");e.width(e.width()*u);e.height(o);if(e.width()s){e.data("fxof",s/2-e.width()/2);e.css({position:"absolute",left:e.data("fxof")+"px"})}if(e.height()<=o){e.data("fyof",0);e.css({position:"absolute",top:e.data("fyof")+"px"})}if(e.height()>o&&e.data("fullwidthcentering")=="on"){e.data("fyof",o/2-e.height()/2);e.css({position:"absolute",top:e.data("fyof")+"px"})}}else{e.width(n.width);e.height(e.height()*r);if(e.height()ul:first >li").each(function(n){var r=e(this);if(r.data("link")!=t){var i=r.data("link");var s="_self";var o=r.data("linktoslide");if(r.data("target")!=t)s=r.data("target");if(i=="slide"){r.append('')}else{o="no";r.append('')}}});n.find(">ul:first >li >img").each(function(t){var n=e(this);n.addclass("defaultimg");p(n,r);p(n,r);n.wrap('');n.css({opacity:0});n.data("li-id",t)})}function v(e,n,r){var i=e;var s=i.find("img");p(s,n);var o=s.attr("src");var u=s.data("neww");var a=s.data("newh");var f=s.data("fxof");if(f==t)f=0;var l=s.data("fyof");if(s.data("fullwidthcentering")!="on"||l==t)l=0;var c=0;if(!r)var c=0-n.slotw;for(var h=0;h')}function m(e,n,r){var i=e;var s=i.find("img");p(s,n);var o=s.attr("src");var u=s.data("neww");var a=s.data("newh");var f=s.data("fxof");if(f==t)f=0;var l=s.data("fyof");if(s.data("fullwidthcentering")!="on"||l==t)l=0;var c=0;if(!r)var c=0-n.sloth;for(var h=0;h')}function g(e,n,r){var i=e;var s=i.find("img");p(s,n);var o=s.attr("src");var u=s.data("neww");var a=s.data("newh");var f=s.data("fxof");if(f==t)f=0;var l=s.data("fyof");if(s.data("fullwidthcentering")!="on"||l==t)l=0;var c=0;var h=0;if(n.sloth>n.slotw)h=n.sloth;else h=n.slotw;if(!r){var c=0-h}n.slotw=h;n.sloth=h;var d=0;var v=0;for(var m=0;m'+''+'
');v=v+h}d=d+h}}function y(n,r,i){if(i==t)i==80;settimeout(function(){n.find(".slotholder .slot").each(function(){cleartimeout(e(this).data("tout"));e(this).remove()});r.transition=0},i)}function b(e,t){var n=e.find(">li:eq("+t.act+")");var r=e.find(">li:eq("+t.next+")");var i=r.find(".tp-caption");if(i.find("iframe")==0){if(i.hasclass("hcenter"))i.css({height:t.height+"px",top:"0px",left:t.width/2-i.outerwidth()/2+"px"});else if(i.hasclass("vcenter"))i.css({width:t.width+"px",left:"0px",top:t.height/2-i.outerheight()/2+"px"})}}function w(n,r){r.transition=1;r.videoplaying=false;try{var i=n.find(">ul:first-child >li:eq("+r.act+")")}catch(s){var i=n.find(">ul:first-child >li:eq(1)")}var u=n.find(">ul:first-child >li:eq("+r.next+")");var a=i.find(".slotholder");var f=u.find(".slotholder");i.css({visibility:"visible"});u.css({visibility:"visible"});if(r.ie){if(u.data("transition")=="boxfade")u.data("transition","boxslide");if(u.data("transition")=="slotfade-vertical")u.data("transition","slotzoom-vertical");if(u.data("transition")=="slotfade-horizontal")u.data("transition","slotzoom-horizontal")}if(u.data("delay")!=t){r.cd=0;r.delay=u.data("delay")}else{r.delay=r.origcd}i.css({left:"0px",top:"0px"});u.css({left:"0px",top:"0px"});var l=0;if(u.data("transition")=="boxslide")l=0;else if(u.data("transition")=="boxfade")l=1;else if(u.data("transition")=="slotslide-horizontal")l=2;else if(u.data("transition")=="slotslide-vertical")l=3;else if(u.data("transition")=="curtain-1")l=4;else if(u.data("transition")=="curtain-2")l=5;else if(u.data("transition")=="curtain-3")l=6;else if(u.data("transition")=="slotzoom-horizontal")l=7;else if(u.data("transition")=="slotzoom-vertical")l=8;else if(u.data("transition")=="slotfade-horizontal")l=9;else if(u.data("transition")=="slotfade-vertical")l=10;else if(u.data("transition")=="fade")l=11;else if(u.data("transition")=="slideleft")l=12;else if(u.data("transition")=="slideup")l=13;else if(u.data("transition")=="slidedown")l=14;else if(u.data("transition")=="slideright")l=15;else if(u.data("transition")=="papercut")l=16;else if(u.data("transition")=="3dcurtain-horizontal")l=17;else if(u.data("transition")=="3dcurtain-vertical")l=18;else if(u.data("transition")=="cubic")l=19;else if(u.data("transition")=="flyin")l=20;else if(u.data("transition")=="turnoff")l=21;else{l=math.round(math.random()*21);u.data("slotamount",math.round(math.random()*12+4))}if(u.data("transition")=="random-static"){l=math.round(math.random()*16);if(l>15)l=15;if(l<0)l=0}if(u.data("transition")=="random-premium"){l=math.round(math.random()*6+16);if(l>21)l=21;if(l<16)l=16}var c=-1;if(r.leftarrowpressed==1||r.act>r.next)c=1;if(u.data("transition")=="slidehorizontal"){l=12;if(r.leftarrowpressed==1)l=15}if(u.data("transition")=="slidevertical"){l=13;if(r.leftarrowpressed==1)l=14}r.leftarrowpressed=0;if(l>21)l=21;if(l<0)l=0;if(!e.support.transition&&l>16){l=math.round(math.random()*16);u.data("slotamount",math.round(math.random()*12+4))}if(r.ie&&(l==17||l==16||l==2||l==3||l==9||l==10))l=math.round(math.random()*3+12);if(r.ie9&&l==3)l=4;var h=300;if(u.data("masterspeed")!=t&&u.data("masterspeed")>99&&u.data("masterspeed")<4001)h=u.data("masterspeed");n.parent().find(".bullet").each(function(){var t=e(this);t.removeclass("selected");if(t.index()==r.next)t.addclass("selected")});n.find(">li").each(function(){var t=e(this);if(t.index!=r.act&&t.index!=r.next)t.css({"z-index":16})});i.css({"z-index":18});u.css({"z-index":20});u.css({opacity:0});l(i,r);k(u,r);if(u.data("slotamount")==t||u.data("slotamount")<1){r.slots=math.round(math.random()*12+4);if(u.data("transition")=="boxslide")r.slots=math.round(math.random()*6+3)}else{r.slots=u.data("slotamount")}if(u.data("rotate")==t)r.rotate=0;else if(u.data("rotate")==999)r.rotate=math.round(math.random()*360);else r.rotate=u.data("rotate");if(!e.support.transition||r.ie||r.ie9)r.rotate=0;if(r.firststart==1){i.css({opacity:0});r.firststart=0}if(l==0){h=h+100;if(r.slots>10)r.slots=10;u.css({opacity:1});g(a,r,true);g(f,r,false);f.find(".defaultimg").css({opacity:0});f.find(".slotslide").each(function(t){var s=e(this);if(r.ie9)s.transition({top:0-r.sloth,left:0-r.slotw},0);else s.transition({top:0-r.sloth,left:0-r.slotw,rotate:r.rotate},0);settimeout(function(){s.transition({top:0,left:0,scale:1,rotate:0},h*1.5,function(){if(t==r.slots*r.slots-1){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});r.act=r.next;o(n)}})},t*15)})}if(l==1){if(r.slots>5)r.slots=5;u.css({opacity:1});g(f,r,false);f.find(".defaultimg").css({opacity:0});f.find(".slotslide").each(function(t){var s=e(this);s.css({opacity:0});s.find("img").css({opacity:0});if(r.ie9)s.find("img").transition({top:math.random()*r.slotw-r.slotw+"px",left:math.random()*r.slotw-r.slotw+"px"},0);else s.find("img").transition({top:math.random()*r.slotw-r.slotw+"px",left:math.random()*r.slotw-r.slotw+"px",rotate:r.rotate},0);var l=math.random()*1e3+(h+200);if(t==r.slots*r.slots-1)l=1500;s.find("img").transition({opacity:1,top:0-s.data("y")+"px",left:0-s.data("x")+"px",rotate:0},l);s.transition({opacity:1},l,function(){if(t==r.slots*r.slots-1){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});r.act=r.next;o(n)}})})}if(l==2){h=h+200;u.css({opacity:1});v(a,r,true);v(f,r,false);f.find(".defaultimg").css({opacity:0});a.find(".slotslide").each(function(){var t=e(this);t.transit({left:r.slotw+"px",rotate:0-r.rotate},h,function(){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});r.act=r.next;o(n)})});f.find(".slotslide").each(function(){var t=e(this);if(r.ie9)t.transit({left:0-r.slotw+"px"},0);else t.transit({left:0-r.slotw+"px",rotate:r.rotate},0);t.transit({left:"0px",rotate:0},h,function(){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});if(r.ie)a.find(".defaultimg").css({opacity:1});r.act=r.next;o(n)})})}if(l==3){h=h+200;u.css({opacity:1});m(a,r,true);m(f,r,false);f.find(".defaultimg").css({opacity:0});a.find(".slotslide").each(function(){var t=e(this);t.transit({top:r.sloth+"px",rotate:r.rotate},h,function(){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});r.act=r.next;o(n)})});f.find(".slotslide").each(function(){var t=e(this);if(r.ie9)t.transit({top:0-r.sloth+"px"},0);else t.transit({top:0-r.sloth+"px",rotate:r.rotate},0);t.transit({top:"0px",rotate:0},h,function(){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});r.act=r.next;o(n)})})}if(l==4){u.css({opacity:1});v(a,r,true);v(f,r,true);f.find(".defaultimg").css({opacity:0});a.find(".defaultimg").css({opacity:0});a.find(".slotslide").each(function(t){var n=e(this);n.transit({top:0+r.height+"px",opacity:1,rotate:r.rotate},h+t*(70-r.slots))});f.find(".slotslide").each(function(t){var s=e(this);if(r.ie9)s.transition({top:0-r.height+"px",opacity:0},0);else s.transition({top:0-r.height+"px",opacity:0,rotate:r.rotate},0);s.transition({top:"0px",opacity:1,rotate:0},h+t*(70-r.slots),function(){if(t==r.slots-1){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});r.act=r.next;o(n)}})})}if(l==5){u.css({opacity:1});v(a,r,true);v(f,r,true);f.find(".defaultimg").css({opacity:0});a.find(".defaultimg").css({opacity:0});a.find(".slotslide").each(function(t){var n=e(this);n.transition({top:0+r.height+"px",opacity:1,rotate:r.rotate},h+(r.slots-t)*(70-r.slots))});f.find(".slotslide").each(function(t){var s=e(this);if(r.ie9)s.transition({top:0-r.height+"px",opacity:0},0);else s.transition({top:0-r.height+"px",opacity:0,rotate:r.rotate},0);s.transition({top:"0px",opacity:1,rotate:0},h+(r.slots-t)*(70-r.slots),function(){if(t==0){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});r.act=r.next;o(n)}})})}if(l==6){u.css({opacity:1});if(r.slots<2)r.slots=2;v(a,r,true);v(f,r,true);f.find(".defaultimg").css({opacity:0});a.find(".defaultimg").css({opacity:0});a.find(".slotslide").each(function(t){var n=e(this);if(t');i.find(".tp-half-one").clone(true).appendto(i).addclass("tp-half-two");i.find(".tp-half-two").removeclass("tp-half-one");i.find(".tp-half-two").wrapinner('');var s=i.find(".defaultimg");if(s.length>0&&s.data("fullwidthcentering")=="on"){var x=s.height()/2;var t=s.position().top}else{var x=r.height/2;var t=0}i.find(".tp-half-one").css({width:r.width+"px",height:t+x+"px",overflow:"hidden",position:"absolute",top:"0px",left:"0px"});i.find(".tp-half-two").css({width:r.width+"px",height:t+x+"px",overflow:"hidden",position:"absolute",top:t+x+"px",left:"0px"});i.find(".tp-half-two .tp-offset").css({position:"absolute",top:0-x-t+"px",left:"0px"});if(!e.support.transition){i.find(".tp-half-one").animate({opacity:0,top:0-r.height/2+"px"},{duration:500,queue:false});i.find(".tp-half-two").animate({opacity:0,top:r.height+"px"},{duration:500,queue:false})}else{var n=math.round(math.random()*40-20);var c=math.round(math.random()*40-20);var a=math.random()*1+1;var o=math.random()*1+1;i.find(".tp-half-one").transition({opacity:1,scale:a,rotate:n,y:0-r.height/1.4+"px"},800,"in");i.find(".tp-half-two").transition({opacity:1,scale:o,rotate:c,y:0+r.height/1.4+"px"},800,"in");if(i.html()!=null)u.transition({scale:.8,x:r.width*.1,y:r.height*.1,rotate:n},0).transition({rotate:0,scale:1,x:0,y:0},600,"snap")}f.find(".defaultimg").css({opacity:1});settimeout(function(){i.css({position:"absolute","z-index":18});u.css({position:"absolute","z-index":20});f.find(".defaultimg").css({opacity:1});a.find(".defaultimg").css({opacity:0});if(i.find(".tp-half-one").length>0){i.find(".tp-half-one >img, .tp-half-one >div").unwrap()}i.find(".tp-half-two").remove();r.transition=0;r.act=r.next},800);u.css({opacity:1})}if(l==17){h=h+100;if(r.slots>10)r.slots=10;u.css({opacity:1});m(a,r,true);m(f,r,false);f.find(".defaultimg").css({opacity:0});f.find(".slotslide").each(function(t){var s=e(this);s.transition({opacity:0,rotatey:350,rotatex:40,perspective:"1400px"},0);settimeout(function(){s.transition({opacity:1,top:0,left:0,scale:1,perspective:"150px",rotate:0,rotatey:0,rotatex:0},h*2,function(){if(t==r.slots-1){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});r.act=r.next;o(n)}})},t*100)})}if(l==18){h=h+100;if(r.slots>10)r.slots=10;u.css({opacity:1});v(a,r,true);v(f,r,false);f.find(".defaultimg").css({opacity:0});f.find(".slotslide").each(function(t){var s=e(this);s.transition({rotatex:10,rotatey:310,perspective:"1400px",rotate:0,opacity:0},0);settimeout(function(){s.transition({top:0,left:0,scale:1,perspective:"150px",rotate:0,rotatey:0,rotatex:0,opacity:1},h*2,function(){if(t==r.slots-1){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});r.act=r.next;o(n)}})},t*100)})}if(l==19){h=h+100;if(r.slots>10)r.slots=10;u.css({opacity:1});v(a,r,true);v(f,r,false);f.find(".defaultimg").css({opacity:0});var m=u.css("z-index");var _=i.css("z-index");f.find(".slotslide").each(function(t){var s=e(this);s.parent().css({overflow:"visible"});s.css({background:"#333"});if(c==1)s.transition({opacity:0,left:0,top:r.height/2,perspective:r.height*100,rotate3d:"1, 0, 0, -90deg "},0);else s.transition({opacity:0,left:0,top:0-r.height/2,perspective:r.height*100,rotate3d:"1, 0, 0, 90deg "},0);settimeout(function(){s.transition({opacity:1,top:0,rotate3d:" 1, 0, 0, 0deg "},h*2,function(){if(t==r.slots-1){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});r.act=r.next;o(n)}})},t*150)});a.find(".slotslide").each(function(t){var n=e(this);n.parent().css({overflow:"visible"});n.css({background:"#333"});n.transition({top:0,perspective:r.height*100,rotate3d:"1, 0, 0, 0deg"},0);a.find(".defaultimg").css({opacity:0});settimeout(function(){if(c==1)n.transition({opacity:.6,left:0,top:0-r.height/2,rotate3d:"1, 0, 0, 90deg"},h*2,function(){});else n.transition({opacity:.6,left:0,top:0+r.height/2,rotate3d:"1, 0, 0, -90deg"},h*2,function(){})},t*150)})}if(l==20){h=h+100;if(r.slots>10)r.slots=10;u.css({opacity:1});m(a,r,true);m(f,r,false);f.find(".defaultimg").css({opacity:0});f.find(".slotslide").each(function(t){var s=e(this);s.parent().css({overflow:"visible"});if(c==1)s.transition({scale:.8,top:0,left:0-r.width,perspective:r.width,rotate3d:"2, 5, 0, 110deg"},0);else s.transition({scale:.8,top:0,left:0+r.width,perspective:r.width,rotate3d:"2, 5, 0, -110deg"},0);settimeout(function(){s.transition({scale:.8,left:0,perspective:r.width,rotate3d:"1, 5, 0, 0deg"},h*2,"ease").transition({scale:1},200,"out",function(){if(t==r.slots-1){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});r.act=r.next;o(n)}})},t*100)});a.find(".slotslide").each(function(t){var n=e(this);n.transition({scale:.5,left:0,perspective:500,rotate3d:"1, 5, 0, 5deg"},300,"in-out");a.find(".defaultimg").css({opacity:0});settimeout(function(){if(c==1)n.transition({top:0,left:r.width/2,perspective:r.width,rotate3d:"0, -3, 0, 70deg",opacity:0},h*2,"out",function(){});else n.transition({top:0,left:0-r.width/2,perspective:r.width,rotate3d:"0, -3, 0, -70deg",opacity:0},h*2,"out",function(){})},t*100)})}if(l==21){h=h+100;if(r.slots>10)r.slots=10;u.css({opacity:1});m(a,r,true);m(f,r,false);f.find(".defaultimg").css({opacity:0});f.find(".slotslide").each(function(t){var s=e(this);if(c==1)s.transition({top:0,left:0-r.width/2,perspective:r.width*2,rotate3d:"0, 100, 0, 90deg"},0);else s.transition({top:0,left:0+r.width/2,perspective:r.width*2,rotate3d:"0, 100, 0, -90deg"},0);settimeout(function(){s.transition({left:0,perspective:r.width*2,rotate3d:"0, 0, 0, 0deg"},h*2,function(){if(t==r.slots-1){y(n,r);f.find(".defaultimg").css({opacity:1});if(u.index()!=i.index())a.find(".defaultimg").css({opacity:0});r.act=r.next;o(n)}})},t*100)});a.find(".slotslide").each(function(t){var n=e(this);n.transition({left:0,perspective:r.width*2,rotate3d:"0, 0, 0, 0deg"},0);a.find(".defaultimg").css({opacity:0});settimeout(function(){if(c==1)n.transition({top:0,left:r.width/2,perspective:r.width,rotate3d:"0, 1000, 0, -90deg"},h*1.5,function(){});else n.transition({top:0,left:0-r.width/2,perspective:r.width,rotate3d:"0, 1000, 0, +90deg"},h*1.5,function(){})},t*100)})}var d={};d.slideindex=r.next+1;n.trigger("revolution.slide.onchange",d);n.trigger("revolution.slide.onvideostop")}function e(){}function s(t){if(t.data==yt.playerstate.playing){var n=e("body").find(".tp-bannertimer");var r=n.data("opt");n.stop();r.videoplaying=true;r.videostartednow=1}else{var n=e("body").find(".tp-bannertimer");var r=n.data("opt");if(r.conthover==0)n.animate({width:"100%"},{duration:r.delay-r.cd-100,queue:false,easing:"linear"});r.videoplaying=false;r.videostoppednow=1}}function x(e){e.target.playvideo()}function t(e,t,n){if(e.addeventlistener){e.addeventlistener(t,n,false)}else{e.attachevent(t,n,false)}}function n(t){var n=$f(t);n.addevent("ready",function(t){n.addevent("play",function(t){var n=e("body").find(".tp-bannertimer");var r=n.data("opt");n.stop();r.videoplaying=true});n.addevent("finish",function(t){var n=e("body").find(".tp-bannertimer");var r=n.data("opt");if(r.conthover==0)n.animate({width:"100%"},{duration:r.delay-r.cd-100,queue:false,easing:"linear"});r.videoplaying=false;r.videostartednow=1});n.addevent("pause",function(t){var n=e("body").find(".tp-bannertimer");var r=n.data("opt");if(r.conthover==0)n.animate({width:"100%"},{duration:r.delay-r.cd-100,queue:false,easing:"linear"});r.videoplaying=false;r.videostoppednow=1})})}function c(t){var n=$f(t);n.addevent("ready",function(e){n.api("play")});n.addevent("play",function(t){var n=e("body").find(".tp-bannertimer");var r=n.data("opt");n.stop();r.videoplaying=true});n.addevent("finish",function(t){var n=e("body").find(".tp-bannertimer");var r=n.data("opt");if(r.conthover==0)n.animate({width:"100%"},{duration:r.delay-r.cd-100,queue:false,easing:"linear"});r.videoplaying=false;r.videostartednow=1});n.addevent("pause",function(t){var n=e("body").find(".tp-bannertimer");var r=n.data("opt");if(r.conthover==0)n.animate({width:"100%"},{duration:r.delay-r.cd-100,queue:false,easing:"linear"});r.videoplaying=false;r.videostoppednow=1})}function k(n,r,i){n.find(".tp-caption").each(function(i){offsetx=r.width/2-r.startwidth/2;if(r.bh>1){r.bw=1;r.bh=1}if(r.bw>1){r.bw=1;r.bh=1}var s=r.bw;var o=r.bh;var u=n.find(".tp-caption:eq("+i+")");var a=0;if(r.width0){u.find("iframe").each(function(){var n=e(this);if(n.attr("src").tolowercase().indexof("youtube")>=0){if(!n.hasclass("haslistener")){try{n.attr("id",l);var r;if(u.data("autoplay")==true)r=new yt.player(l,{events:{onstatechange:s,onready:x}});else r=new yt.player(l,{events:{onstatechange:s}});n.addclass("haslistener");u.data("player",r)}catch(i){}}}else{if(n.attr("src").tolowercase().indexof("vimeo")>=0){if(!n.hasclass("haslistener")){n.addclass("haslistener");n.attr("id",l);var s=n.attr("src");var o={},a=s,f=/([^&=]+)=([^&]*)/g,c;while(c=f.exec(a)){o[decodeuricomponent(c[1])]=decodeuricomponent(c[2])}if(o["player_id"]!=t){s=s.replace(o["player_id"],l)}else{s=s+"&player_id="+l}try{s=s.replace("api=0","api=1")}catch(i){}s=s+"&api=1";n.attr("src",s);var r=u.find("iframe")[0];if(u.data("autoplay")==true)$f(r).addevent("ready",c);else $f(r).addevent("ready",n)}}}})}if(u.hasclass("randomrotate")&&(r.ie||r.ie9))u.removeclass("randomrotate").addclass("sfb");u.removeclass("nofilterclass");var c=0;var h=0;if(u.find("img").length>0){var p=u.find("img");if(p.data("ww")==t)p.data("ww",p.width());if(p.data("hh")==t)p.data("hh",p.height());var d=p.data("ww");var v=p.data("hh");p.width(d*r.bw);p.height(v*r.bh);c=p.width();h=p.height()}else{if(u.find("iframe").length>0){var p=u.find("iframe");if(u.data("ww")==t){u.data("ww",p.width())}if(u.data("hh")==t)u.data("hh",p.height());var d=u.data("ww");var v=u.data("hh");var m=u;if(m.data("fsize")==t)m.data("fsize",parseint(m.css("font-size"),0)||0);if(m.data("pt")==t)m.data("pt",parseint(m.css("paddingtop"),0)||0);if(m.data("pb")==t)m.data("pb",parseint(m.css("paddingbottom"),0)||0);if(m.data("pl")==t)m.data("pl",parseint(m.css("paddingleft"),0)||0);if(m.data("pr")==t)m.data("pr",parseint(m.css("paddingright"),0)||0);if(m.data("mt")==t)m.data("mt",parseint(m.css("margintop"),0)||0);if(m.data("mb")==t)m.data("mb",parseint(m.css("marginbottom"),0)||0);if(m.data("ml")==t)m.data("ml",parseint(m.css("marginleft"),0)||0);if(m.data("mr")==t)m.data("mr",parseint(m.css("marginright"),0)||0);if(m.data("bt")==t)m.data("bt",parseint(m.css("bordertop"),0)||0);if(m.data("bb")==t)m.data("bb",parseint(m.css("borderbottom"),0)||0);if(m.data("bl")==t)m.data("bl",parseint(m.css("borderleft"),0)||0);if(m.data("br")==t)m.data("br",parseint(m.css("borderright"),0)||0);if(m.data("lh")==t)m.data("lh",parseint(m.css("lineheight"),0)||0);var g=r.width;var y=r.height;if(g>r.startwidth)g=r.startwidth;if(y>r.startheight)y=r.startheight;if(!u.hasclass("fullscreenvideo"))u.css({"font-size":m.data("fsize")*r.bw+"px","padding-top":m.data("pt")*r.bh+"px","padding-bottom":m.data("pb")*r.bh+"px","padding-left":m.data("pl")*r.bw+"px","padding-right":m.data("pr")*r.bw+"px","margin-top":m.data("mt")*r.bh+"px","margin-bottom":m.data("mb")*r.bh+"px","margin-left":m.data("ml")*r.bw+"px","margin-right":m.data("mr")*r.bw+"px","border-top":m.data("bt")*r.bh+"px","border-bottom":m.data("bb")*r.bh+"px","border-left":m.data("bl")*r.bw+"px","border-right":m.data("br")*r.bw+"px","line-height":m.data("lh")*r.bh+"px",height:v*r.bh+"px","white-space":"nowrap"});else u.css({width:r.startwidth*r.bw,height:r.startheight*r.bh});p.width(d*r.bw);p.height(v*r.bh);c=p.width();h=p.height()}else{var m=u;if(m.data("fsize")==t)m.data("fsize",parseint(m.css("font-size"),0)||0);if(m.data("pt")==t)m.data("pt",parseint(m.css("paddingtop"),0)||0);if(m.data("pb")==t)m.data("pb",parseint(m.css("paddingbottom"),0)||0);if(m.data("pl")==t)m.data("pl",parseint(m.css("paddingleft"),0)||0);if(m.data("pr")==t)m.data("pr",parseint(m.css("paddingright"),0)||0);if(m.data("mt")==t)m.data("mt",parseint(m.css("margintop"),0)||0);if(m.data("mb")==t)m.data("mb",parseint(m.css("marginbottom"),0)||0);if(m.data("ml")==t)m.data("ml",parseint(m.css("marginleft"),0)||0);if(m.data("mr")==t)m.data("mr",parseint(m.css("marginright"),0)||0);if(m.data("bt")==t)m.data("bt",parseint(m.css("bordertop"),0)||0);if(m.data("bb")==t)m.data("bb",parseint(m.css("borderbottom"),0)||0);if(m.data("bl")==t)m.data("bl",parseint(m.css("borderleft"),0)||0);if(m.data("br")==t)m.data("br",parseint(m.css("borderright"),0)||0);if(m.data("lh")==t)m.data("lh",parseint(m.css("lineheight"),0)||0);u.css({"font-size":m.data("fsize")*r.bw+"px","padding-top":m.data("pt")*r.bh+"px","padding-bottom":m.data("pb")*r.bh+"px","padding-left":m.data("pl")*r.bw+"px","padding-right":m.data("pr")*r.bw+"px","margin-top":m.data("mt")*r.bh+"px","margin-bottom":m.data("mb")*r.bh+"px","margin-left":m.data("ml")*r.bw+"px","margin-right":m.data("mr")*r.bw+"px","border-top":m.data("bt")*r.bh+"px","border-bottom":m.data("bb")*r.bh+"px","border-left":m.data("bl")*r.bw+"px","border-right":m.data("br")*r.bw+"px","line-height":m.data("lh")*r.bh+"px","white-space":"nowrap"});h=u.outerheight(true);c=u.outerwidth(true)}}if(u.hasclass("fade")){u.css({opacity:0,left:s*u.data("x")+offsetx+"px",top:r.bh*u.data("y")+"px"})}if(u.hasclass("randomrotate")){u.css({left:s*u.data("x")+offsetx+"px",top:o*u.data("y")+f+"px"});var b=math.random()*2+1;var w=math.round(math.random()*200-100);var e=math.round(math.random()*200-100);var t=math.round(math.random()*200-100);u.data("repx",e);u.data("repy",t);u.data("repo",u.css("opacity"));u.data("rotate",w);u.data("scale",b);u.transition({opacity:0,scale:b,rotate:w,x:e,y:t,duration:"0ms"})}else{if(r.ie||r.ie9){}else u.transition({scale:1,rotate:0})}if(u.hasclass("lfr")){u.css({opacity:1,left:15+r.width+"px",top:r.bh*u.data("y")+"px"})}if(u.hasclass("lfl")){u.css({opacity:1,left:-15-c+"px",top:r.bh*u.data("y")+"px"})}if(u.hasclass("sfl")){u.css({opacity:0,left:s*u.data("x")-50+offsetx+"px",top:r.bh*u.data("y")+"px"})}if(u.hasclass("sfr")){u.css({opacity:0,left:s*u.data("x")+50+offsetx+"px",top:r.bh*u.data("y")+"px"})}if(u.hasclass("lft")){u.css({opacity:1,left:s*u.data("x")+offsetx+"px",top:-25-h+"px"})}if(u.hasclass("lfb")){u.css({opacity:1,left:s*u.data("x")+offsetx+"px",top:25+r.height+"px"})}if(u.hasclass("sft")){u.css({opacity:0,left:s*u.data("x")+offsetx+"px",top:r.bh*u.data("y")-50+"px"})}if(u.hasclass("sfb")){u.css({opacity:0,left:s*u.data("x")+offsetx+"px",top:r.bh*u.data("y")+50+"px"})}u.data("timer",settimeout(function(){u.css({visibility:"visible"});if(u.hasclass("fade")){u.data("repo",u.css("opacity"));u.animate({opacity:1},{duration:u.data("speed")});if(r.ie)u.addclass("nofilterclass")}if(u.hasclass("randomrotate")){u.transition({opacity:1,scale:1,left:s*u.data("x")+offsetx+"px",top:o*u.data("y")+f+"px",rotate:0,x:0,y:0,duration:u.data("speed")});if(r.ie)u.addclass("nofilterclass")}if(u.hasclass("lfr")||u.hasclass("lfl")||u.hasclass("sfr")||u.hasclass("sfl")||u.hasclass("lft")||u.hasclass("lfb")||u.hasclass("sft")||u.hasclass("sfb")){var e=u.data("easing");if(e==t)e="linear";u.data("repx",u.position().left);u.data("repy",u.position().top);u.data("repo",u.css("opacity"));u.animate({opacity:1,left:s*u.data("x")+offsetx+"px",top:r.bh*u.data("y")+"px"},{duration:u.data("speed"),easing:e});if(r.ie)u.addclass("nofilterclass")}},u.data("start")));if(u.data("end")!=t)u.data("timer-end",settimeout(function(){if((r.ie||r.ie9)&&(u.hasclass("randomrotate")||u.hasclass("randomrotateout"))){u.removeclass("randomrotate").removeclass("randomrotateout").addclass("fadeout")}a(u,r)},u.data("end")))}})}function l(e,t){e.find(".tp-caption").each(function(n){var r=e.find(".tp-caption:eq("+n+")");r.stop(true,true);cleartimeout(r.data("timer"));cleartimeout(r.data("timer-end"));var i=r.data("easing");i="easeinoutsine";var s=r.data("repx");var o=r.data("repy");var u=r.data("repo");var a=r.data("rotate");var f=r.data("scale");if(r.find("iframe").length>0){try{var l=r.find("iframe");var c=l.attr("id");var h=$f(c);h.api("pause")}catch(p){}try{var d=r.data("player");d.stopvideo()}catch(p){}}try{a(r,t)}catch(p){}})}function a(e,n){var r=e.data("endspeed");if(r==t)r=e.data("speed");var i=e.data("repx");var s=e.data("repy");var o=e.data("repo");if(e.hasclass("ltr")||e.hasclass("ltl")||e.hasclass("str")||e.hasclass("stl")||e.hasclass("ltt")||e.hasclass("ltb")||e.hasclass("stt")||e.hasclass("stb")){i=e.position().left;s=e.position().top;if(e.hasclass("ltr"))i=n.width+20;else if(e.hasclass("ltl"))i=0-e.width()-20;else if(e.hasclass("ltt"))s=0-e.height()-20;else if(e.hasclass("ltb"))s=n.height+20;else if(e.hasclass("str")){i=i+50;o=0}else if(e.hasclass("stl")){i=i-50;o=0}else if(e.hasclass("stt")){s=s-50;o=0}else if(e.hasclass("stb")){s=s+50;o=0}var u=e.data("endeasing");if(u==t)u="linear";e.animate({opacity:o,left:i+"px",top:s+"px"},{duration:e.data("endspeed"),easing:u});if(n.ie)e.addclass("nofilterclass")}else if(e.hasclass("randomrotateout")){e.transition({opacity:0,scale:math.random()*2+.3,left:math.random()*n.width+"px",top:math.random()*n.height+"px",rotate:math.random()*40,duration:r});if(n.ie)e.addclass("nofilterclass")}else if(e.hasclass("fadeout")){e.animate({opacity:0},{duration:r});if(n.ie)e.addclass("nofilterclass")}else if(e.hasclass("lfr")||e.hasclass("lfl")||e.hasclass("sfr")||e.hasclass("sfl")||e.hasclass("lft")||e.hasclass("lfb")||e.hasclass("sft")||e.hasclass("sfb")){if(e.hasclass("lfr"))i=n.width+20;else if(e.hasclass("lfl"))i=0-e.width()-20;else if(e.hasclass("lft"))s=0-e.height()-20;else if(e.hasclass("lfb"))s=n.height+20;var u=e.data("endeasing");if(u==t)u="linear";e.animate({opacity:o,left:i+"px",top:s+"px"},{duration:e.data("endspeed"),easing:u});if(n.ie)e.addclass("nofilterclass")}else if(e.hasclass("fade")){e.animate({opacity:0},{duration:r});if(n.ie)e.addclass("nofilterclass")}else if(e.hasclass("randomrotate")){e.transition({opacity:0,scale:math.random()*2+.3,left:math.random()*n.width+"px",top:math.random()*n.height+"px",rotate:math.random()*40,duration:r});if(n.ie)e.addclass("nofilterclass")}}function o(e,n){n.cd=0;n.loop=0;if(n.stopafterloops!=t&&n.stopafterloops>-1)n.looptogo=n.stopafterloops;else n.looptogo=9999999;if(n.stopatslide!=t&&n.stopatslide>-1)n.lastslidetoshow=n.stopatslide;else n.lastslidetoshow=999;if(n.looptogo==0)n.stoploop="on";if(n.slideamount>1&&!(n.stopafterloops==0&&n.stopatslide==1)){var r=e.find(".tp-bannertimer");if(r.length>0){r.css({width:"0%"});r.animate({width:"100%"},{duration:n.delay-100,queue:false,easing:"linear"})}r.data("opt",n);n.cdint=setinterval(function(){if(e.data("conthover-changed")==1){n.conthover=e.data("conthover");e.data("conthover-changed",0)}if(n.conthover!=1&&n.videoplaying!=true&&n.width>n.hideslideratlimit)n.cd=n.cd+100;if(n.fullwidth!="on")if(n.width>n.hideslideratlimit)e.parent().removeclass("tp-hide-revslider");else e.parent().addclass("tp-hide-revslider");if(n.videostartednow==1){e.trigger("revolution.slide.onvideoplay");n.videostartednow=0}if(n.videostoppednow==1){e.trigger("revolution.slide.onvideostop");n.videostoppednow=0}if(n.cd>=n.delay){n.cd=0;n.act=n.next;n.next=n.next+1;if(n.next>e.find(">ul >li").length-1){n.next=0;n.looptogo=n.looptogo-1;if(n.loop<=0){n.stoploop="on"}}if(n.stoploop=="on"&&n.next==n.lastslidetoshow-1){clearinterval(n.cdint);e.find(".tp-bannertimer").css({visibility:"hidden"});e.trigger("revolution.slide.onstop")}w(e,n);if(r.length>0){r.css({width:"0%"});r.animate({width:"100%"},{duration:n.delay-100,queue:false,easing:"linear"})}}},100);e.hover(function(){if(n.onhoverstop=="on"){n.conthover=1;r.stop();e.trigger("revolution.slide.onpause")}},function(){if(e.data("conthover")!=1){e.trigger("revolution.slide.onresume");n.conthover=0;if(n.onhoverstop=="on"&&n.videoplaying!=true){r.animate({width:"100%"},{duration:n.delay-n.cd-100,queue:false,easing:"linear"})}}})}}e.fn.extend({revolution:function(r){e.fn.revolution.defaults={delay:9e3,startheight:500,startwidth:960,hidethumbs:200,thumbwidth:100,thumbheight:50,thumbamount:5,navigationtype:"bullet",navigationarrows:"nexttobullets",navigationstyle:"round",touchenabled:"on",onhoverstop:"on",navoffsethorizontal:0,navoffsetvertical:20,stopatslide:-1,stopafterloops:-1,hidecaptionatlimit:0,hideallcaptionatlilmit:0,hideslideratlimit:0,shadow:1,fullwidth:"off"};r=e.extend({},e.fn.revolution.defaults,r);return this.each(function(){var i=r;var o=e(this);i.firefox13=e.browser.mozilla&&(parseint(e.browser.version,0)==13||parseint(e.browser.version,0)==14||parseint(e.browser.version,0)==15||parseint(e.browser.version,0)==16);i.ie=e.browser.msie&&parseint(e.browser.version,0)<9;i.ie9=e.browser.msie&&parseint(e.browser.version,0)==9;var u=e.fn.jquery.split("."),h=parsefloat(u[0]),p=parsefloat(u[1]),v=parsefloat(u[2]||"0");if(h==1&&p<7){o.html(' the current version of jquery:'+u+"
please update your jquery version to min. 1.7 in case you wish to use the revolution slider plugin
")}if(!e.support.transition)e.fn.transition=e.fn.animate;e.cssease["bounce"]="cubic-bezier(0,1,0.5,1.3)";o.find(".caption").each(function(){e(this).addclass("tp-caption")});o.find(".tp-caption iframe").each(function(){try{if(e(this).attr("src").indexof("you")>0){var t=document.createelement("script");t.src="../../../www.youtube.com/player_api";var n=document.getelementsbytagname("script")[0];n.parentnode.insertbefore(t,n)}}catch(r){}});o.find(".tp-caption iframe").each(function(){try{if(e(this).attr("src").indexof("vim")>0){var t=document.createelement("script");t.src="../../../a.vimeocdn.com/js/froogaloop2.min.js";var n=document.getelementsbytagname("script")[0];n.parentnode.insertbefore(t,n)}}catch(r){}});if(i.shuffle=="on"){for(var m=0;mul:first-child >li").length;m++){var g=math.round(math.random()*o.find(">ul:first-child >li").length);o.find(">ul:first-child >li:eq("+g+")").prependto(o.find(">ul:first-child"))}}i.slots=4;i.act=-1;i.next=0;i.origcd=i.delay;i.firststart=1;if(i.navoffsethorizontal==t)i.navoffsethorizontal=0;if(i.navoffsetvertical==t)i.navoffsetvertical=0;i.navoh=i.navoffsethorizontal;i.navov=i.navoffsetvertical;o.append('');if(o.find(".tp-bannertimer").length==0)o.append('');var y=o.find(".tp-bannertimer");if(y.length>0){y.css({width:"0%"})}o.addclass("tp-simpleresponsive");i.container=o;i.slideamount=o.find(">ul:first >li").length;if(o.height()==0)o.height(i.startheight);if(i.startwidth==t||i.startwidth==0)i.startwidth=o.width();if(i.startheight==t||i.startheight==0)i.startheight=o.height();i.width=o.width();i.height=o.height();i.bw=i.startwidth/o.width();i.bh=i.startheight/o.height();if(i.width!=i.startwidth){i.height=math.round(i.startheight*(i.width/i.startwidth));o.height(i.height)}if(i.shadow!=0){o.parent().append('');o.parent().find(".tp-bannershadow").css({width:i.width})}o.waitforimages(function(){d(o,i);if(i.slideamount>1)a(o,i);if(i.slideamount>1)s(o,i);if(i.slideamount>1)f(o,i);l(o,i);if(i.hidethumbs>0)c(o,i);o.waitforimages(function(){o.find(".tp-loader").fadeout(600);settimeout(function(){w(o,i);if(i.slideamount>1)o(o,i)},600)})});e(window).resize(function(){if(o.outerwidth(true)!=i.width){n(o,i)}})})},revpause:function(t){return this.each(function(){var t=e(this);t.data("conthover",1);t.data("conthover-changed",1);t.trigger("revolution.slide.onpause");var n=t.parent().find(".tp-bannertimer");n.stop()})},revresume:function(t){return this.each(function(){var t=e(this);t.data("conthover",0);t.data("conthover-changed",1);t.trigger("revolution.slide.onresume");var n=t.parent().find(".tp-bannertimer");var r=n.data("opt");n.animate({width:"100%"},{duration:r.delay-r.cd-100,queue:false,easing:"linear"})})},revnext:function(t){return this.each(function(){var t=e(this);t.parent().find(".tp-rightarrow").click()})},revprev:function(t){return this.each(function(){var t=e(this);t.parent().find(".tp-leftarrow").click()})},revmaxslide:function(t){return e(this).find(">ul:first-child >li").length},revshowslide:function(t){return this.each(function(){var n=e(this);n.data("showus",t);n.parent().find(".tp-rightarrow").click()})}})})(jquery)