var transitions={"tl-br-diagonal-fade":{init_pos:"in-place",init_size:"all",slice_time_mode:"queue",selection_pattern:"chessboard-topleft-bottomright",is_hidden:true},"br-tl-diagonal-fade":{init_pos:"in-place",init_size:"all",slice_time_mode:"queue",selection_pattern:"diagonal-bottomright-topleft",is_hidden:true},"bl-tr-diagonal-fade":{init_pos:"in-place",init_size:"all",slice_time_mode:"queue",selection_pattern:"diagonal-bottomleft-topright",is_hidden:true},"tr-bl-diagonal-fade":{init_pos:"in-place",
init_size:"all",slice_time_mode:"queue",selection_pattern:"diagonal-topright-bottomleft",is_hidden:true},"spiral-in-fade":{init_pos:"in-place",init_size:"all",slice_time_mode:"queue",selection_pattern:"spiral-in",is_hidden:true},"spiral-out-fade":{init_pos:"in-place",init_size:"all",slice_time_mode:"queue",selection_pattern:"spiral-out",is_hidden:true},"zig-zag-right-fade":{init_pos:"in-place",init_size:"all",slice_time_mode:"queue",selection_pattern:"zig-zag-right",is_hidden:true},"zig-zag-left-fade":{init_pos:"in-place",
init_size:"all",slice_time_mode:"queue",selection_pattern:"zig-zag-left",is_hidden:true},"zig-zag-up-fade":{init_pos:"in-place",init_size:"all",slice_time_mode:"queue",selection_pattern:"zig-zag-up",is_hidden:true},"zig-zag-down-fade":{init_pos:"in-place",init_size:"all",slice_time_mode:"queue",selection_pattern:"zig-zag-down",is_hidden:true},"zig-zag-random-fade":{init_pos:"in-place",init_size:"all",slice_time_mode:"queue",selection_pattern:"random",is_hidden:true},"tl-br-diagonal-appear":{init_pos:"in-place",
init_size:"point",slice_time_mode:"queue",selection_pattern:"diagonal-topleft-bottomright",is_hidden:false},"tl-br-chessboard-appear":{init_pos:"in-place",init_size:"point",slice_time_mode:"queue",selection_pattern:"chessboard-topleft-bottomright",is_hidden:false},"br-tl-diagonal-appear":{init_pos:"in-place",init_size:"point",slice_time_mode:"queue",selection_pattern:"diagonal-bottomright-topleft",is_hidden:false},"bl-tr-diagonal-appear":{init_pos:"in-place",init_size:"point",slice_time_mode:"queue",
selection_pattern:"diagonal-bottomleft-topright",is_hidden:false},"bl-tr-chessboard-appear":{init_pos:"in-place",init_size:"point",slice_time_mode:"queue",selection_pattern:"chessboard-bottomleft-topright",is_hidden:false},"tr-bl-diagonal-appear":{init_pos:"in-place",init_size:"point",slice_time_mode:"queue",selection_pattern:"diagonal-topright-bottomleft",is_hidden:false},"spiral-in-appear":{init_pos:"in-place",init_size:"point",slice_time_mode:"queue",selection_pattern:"spiral-in",is_hidden:false},
"spiral-out-appear":{init_pos:"in-place",init_size:"point",slice_time_mode:"queue",selection_pattern:"spiral-out",is_hidden:false},"zig-zag-right-appear":{init_pos:"in-place",init_size:"point",slice_time_mode:"queue",selection_pattern:"zig-zag-right",is_hidden:false},"zig-zag-left-appear":{init_pos:"in-place",init_size:"point",slice_time_mode:"queue",selection_pattern:"zig-zag-left",is_hidden:false},"zig-zag-up-appear":{init_pos:"in-place",init_size:"point",slice_time_mode:"queue",selection_pattern:"zig-zag-up",
is_hidden:false},"zig-zag-down-appear":{init_pos:"in-place",init_size:"point",slice_time_mode:"queue",selection_pattern:"zig-zag-down",is_hidden:false},"zig-zag-random-appear":{init_pos:"in-place",init_size:"point",slice_time_mode:"queue",selection_pattern:"random",is_hidden:false},"tl-br-diagonal-appear-rotate":{init_pos:"in-place",init_size:"point",init_rotation:-180,slice_time_mode:"queue",selection_pattern:"diagonal-topleft-bottomright",is_hidden:false},"br-tl-diagonal-appear-rotate":{init_pos:"in-place",
init_size:"point",init_rotation:-180,slice_time_mode:"queue",selection_pattern:"diagonal-bottomright-topleft",is_hidden:false},"bl-tr-diagonal-appear-rotate":{init_pos:"in-place",init_size:"point",init_rotation:-180,slice_time_mode:"queue",selection_pattern:"diagonal-bottomleft-topright",is_hidden:false},"tr-bl-diagonal-appear-rotate":{init_pos:"in-place",init_size:"point",init_rotation:-180,slice_time_mode:"queue",selection_pattern:"diagonal-topright-bottomleft",is_hidden:false},"spiral-in-appear-rotate":{init_pos:"in-place",
init_size:"point",init_rotation:-180,slice_time_mode:"queue",selection_pattern:"zig-zag-right",is_hidden:false},"spiral-out-appear-rotate":{init_pos:"in-place",init_size:"point",init_rotation:-180,slice_time_mode:"queue",selection_pattern:"spiral-out",is_hidden:false},"zig-zag-right-appear-rotate":{init_pos:"in-place",init_size:"point",init_rotation:-180,slice_time_mode:"queue",selection_pattern:"zig-zag-right",is_hidden:false},"zig-zag-left-appear-rotate":{init_pos:"in-place",init_size:"point",init_rotation:-180,
slice_time_mode:"queue",selection_pattern:"zig-zag-left",is_hidden:false},"zig-zag-up-appear-rotate":{init_pos:"in-place",init_size:"point",init_rotation:-180,slice_time_mode:"queue",selection_pattern:"zig-zag-up",is_hidden:false},"zig-zag-down-appear-rotate":{init_pos:"in-place",init_size:"point-topleft",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-topleft-bottomright",is_hidden:false},"zig-zag-random-appear-rotate":{init_pos:"spread-center",init_size:"all",init_rotation:0,
slice_time_mode:"queue",selection_pattern:"random",is_hidden:true},"tl-br-diagonal-expand":{init_pos:"in-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-topleft-bottomright",is_hidden:false},"br-tl-diagonal-expand":{init_pos:"in-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-bottomright-topleft",is_hidden:false},"bl-tr-diagonal-expand":{init_pos:"in-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",
selection_pattern:"diagonal-bottomleft-topright",is_hidden:false},"tr-bl-diagonal-expand":{init_pos:"in-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-topright-bottomleft",is_hidden:false},"spiral-in-expand":{init_pos:"in-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"spiral-in",is_hidden:false},"spiral-out-expand":{init_pos:"in-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"spiral-out",
is_hidden:false},"zig-zag-right-expand":{init_pos:"in-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"zig-zag-right",is_hidden:false},"zig-zag-left-expand":{init_pos:"in-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"zig-zag-left",is_hidden:false},"zig-zag-up-expand":{init_pos:"in-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"zig-zag-up",is_hidden:false},"zig-zag-down-expand":{init_pos:"in-center",
init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-topleft-bottomright",is_hidden:false},"zig-zag-random-expand":{init_pos:"in-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"random",is_hidden:true},"tl-br-diagonal-collapse":{init_pos:"spread-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-topleft-bottomright",is_hidden:true},"br-tl-diagonal-collapse":{init_pos:"spread-center",init_size:"point",
init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-bottomright-topleft",is_hidden:true},"bl-tr-diagonal-collapse":{init_pos:"spread-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-bottomleft-topright",is_hidden:true},"tr-bl-diagonal-collapse":{init_pos:"spread-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-topright-bottomleft",is_hidden:true},"spiral-in-collapse":{init_pos:"spread-center",
init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"spiral-in",is_hidden:true},"spiral-out-collapse":{init_pos:"spread-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"spiral-out",is_hidden:true},"zig-zag-right-collapse":{init_pos:"spread-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"zig-zag-right",is_hidden:true},"zig-zag-left-collapse":{init_pos:"spread-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",
selection_pattern:"zig-zag-left",is_hidden:true},"zig-zag-up-collapse":{init_pos:"spread-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"zig-zag-up",is_hidden:true},"zig-zag-down-collapse":{init_pos:"spread-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"zig-zag-down",is_hidden:true},"zig-zag-random-collapse":{init_pos:"spread-center",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"random",is_hidden:true},
"zig-zag-random-collapse2":{init_pos:"in-place",init_size:"flat-top",init_rotation:0,easing:"easeOutBack",slice_time_mode:"queue",selection_pattern:"zig-zag-down",is_hidden:true},"tl-br-diagonal-drop":{init_pos:"in-line-top",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-topleft-bottomright",is_hidden:false},"br-tl-diagonal-drop":{init_pos:"in-line-top",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-bottomright-topleft",
is_hidden:false},"bl-tr-diagonal-drop":{init_pos:"in-line-top",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-bottomleft-topright",is_hidden:false},"tr-bl-diagonal-drop":{init_pos:"in-line-top",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-topright-bottomleft",is_hidden:false},"spiral-in-drop":{init_pos:"in-line-top",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"spiral-in",is_hidden:false},
"spiral-out-drop":{init_pos:"in-line-top",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"spiral-out",is_hidden:false},"zig-zag-right-drop":{init_pos:"in-line-top",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"zig-zag-right",is_hidden:false},"zig-zag-left-drop":{init_pos:"in-line-top",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"zig-zag-left",is_hidden:false},"zig-zag-up-drop":{init_pos:"in-line-top",init_size:"point",
init_rotation:0,slice_time_mode:"queue",selection_pattern:"zig-zag-up",is_hidden:false},"zig-zag-down-drop":{init_pos:"in-line-top",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"zig-zag-down",is_hidden:false},"zig-zag-random-drop":{init_pos:"in-line-top",init_size:"point",init_rotation:0,rows:1,slice_time_mode:"queue",selection_pattern:"random",is_hidden:true},"hor-zipper-right":{init_pos:"top-bottom-zipper",init_size:"flat-top",init_rotation:0,slice_time_mode:"queue",
selection_pattern:"diagonal-topleft-bottomright",is_hidden:false},"hor-zipper-left":{init_pos:"top-bottom-zipper",init_size:"flat-top",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-bottomright-topleft",is_hidden:false},"ver-zipper-bottom":{init_pos:"left-right-zipper",init_size:"all",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-topleft-bottomright",is_hidden:false},"ver-zipper-top":{init_pos:"left-right-zipper",init_size:"all",init_rotation:0,slice_time_mode:"queue",
selection_pattern:"diagonal-bottomright-topleft",is_hidden:false},"tl-corner-diagonal":{init_pos:"top-left-corner",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"diagonal-topleft-bottomright",is_hidden:false},"tl-corner-random":{init_pos:"top-left-corner",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"random",is_hidden:false},"tl-corner-spiral":{init_pos:"top-left-corner",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"spiral-in",
is_hidden:false},"tl-corner-zigzagdown":{init_pos:"top-left-corner",init_size:"point",init_rotation:0,slice_time_mode:"queue",selection_pattern:"zig-zag-down",is_hidden:false}};
(function(v){id=0;jQuery.fn.slider_plugin=function(d){id++;if(this.length>1)return this.each(function(){v(this).slider_plugin(d)}),this;var d=v.extend({theme:"modern",columns:4,rows:4,init_pos:"in-place",init_size:"all",dest_pos:"in-place",dest_size:"all",easing:null,rotate_easing:null,opacity_easing:null,width_easing:null,height_easing:null,left_easing:null,top_easing:null,run_transition_on:"in",slice_time_mode:"queue",selection_pattern:"diagonal-topleft-bottomright",def_transition:"tl-corner-random",
init_rotation:0,final_rotation:0,slide_timeout:5E3,slide_animation:3E3,show_direction:"forward",auto_play:true,interactive_while_playing:true,socondary_nav_type:"thumbs",secondary_nav_pos:"bottom",secondary_nav_placement:"inside",pause_on_hover:true,spread_factor:1.5,auto_hide_primary_nav:true,auto_hide_primary_nav_delay:300,auto_hide_primary_time:1E3,auto_hide_secondary_nav:false,auto_hide_secondary_nav_delay:1E3,auto_hide_secondary_time:1E3,auto_hide_secondary_callback:function(){this.hide("drop",
{distance:50,direction:"down"},300)},auto_show_secondary_callback:function(){this.show("drop",{distance:50,direction:"up"},300)},ken_burns_for_thumbs:true,kb_thumbs_zoomfactor:1.5,kb_thumbs_start_cpoint:[30,70],kb_thumbs_start_cpoint_random:true,kb_thumbs_dest_cpoint:[30,70],kb_thumbs_dest_cpoint_random:true,kb_thumbs_anim_time:5E3,kb_thumbs_play_in_loop:true,thumbs_my_position:"bottom center",thumbs_at_position:"top center",thumbs_show_effect:"drop",thumbs_hide_effect:"drop",thumb_show_dir:"up",
thumb_hide_dir:"up",thumb_title_show_callback:function(){this.show("drop",{distance:20,direction:"up"},300)},thumb_title_hide_callback:function(){this.hide("fade",{distance:20,direction:"down"},500)},show_thumb_titles:true,ken_burns_for_slides:true,kb_slides_zoomfactor:1.5,kb_slides_start_cpoint:[40,60],kb_slides_start_cpoint_random:true,kb_slides_dest_cpoint:[40,60],kb_slides_dest_cpoint_random:true,kb_slides_anim_time:5E3,kb_slides_play_in_loop:true,title_show_callback:function(){this.show("fade",
{distance:20,direction:"down"},500)},title_hide_callback:function(){this.hide("fade",{distance:20,direction:"down"},500)},videobutton_show_callback:function(){this.show("fade",{distance:20,direction:"left"},500)},videobutton_hide_callback:function(){this.hide("fade",{distance:20,direction:"left"},500)},show_titles:true,timer_position:"center",show_timer:true},d||{}),m=this;return this.each(function(){function Ea(){O>0?setTimeout(arguments.callee,10):Fa()}function Fa(){q=m.width();p=m.height();jQuery.browser.msie&&
parseInt(jQuery.browser.version,10)<9&&(ba=false);if(jQuery.browser.msie)d.timer_position="line";m.prepend('<div class="slices-area"></div>');var a=0;t=="classic"?(m.addClass("classic-frame"),m.append('<div id="prev-button" class="classic-prev"></div><div id="next-button" class="classic-next"></div><div id="pp-button" class="classic-pause"></div>'),a=-22):t=="modern"?(m.addClass("modern-frame"),m.append('<div id="prev-button" class="modern-prev"></div><div id="next-button" class="modern-next"></div>'),
a=0):t=="coffee"&&(m.addClass("classic-frame"),m.append('<div id="prev-button" class="classic-prev"></div><div id="next-button" class="classic-next"></div><div id="pp-button" class="classic-pause"></div>'),a=-30);var g=m.find("#prev-button"),H=m.find("#next-button"),j=m.find("#pp-button"),f=0,e=0,e=E(p,g.outerHeight(true));g.css({top:e+"px",left:a+"px"});e=E(p,H.outerHeight(true));H.css({top:e+"px",right:a+"px"});e=E(p,j.outerHeight(true));f=E(q,j.outerWidth(true));j.css({top:e+"px",left:f+"px"});
if(C=="bullets"){m.append('<div class="bk-diamond-secondary-nav '+t+'"><div class="bk-secondary-nav-wrap"></div></div>');s=m.find("div.bk-diamond-secondary-nav");n=s.find("div.bk-secondary-nav-wrap");a=0;e=null;for(f=0;f<L;f++){n.append('<a class="bk-bullet bk-secondary-nav-item '+t+'" rel="'+f+'"></a>');e=n.children("a.bk-secondary-nav-item").eq(f);a+=e.outerWidth(true);if(o=="bottom"||o=="bottom-left-hor"||o=="bottom-right-hor"||o=="top"||o=="top-left-hor"||o=="top-right-hor"){var b=e.outerWidth(true)*
f;e.css({top:"0px",left:b+"px"});s.css({height:e.outerHeight(true)+"px"})}else if(o=="left"||o=="top-left-ver"||o=="bottom-left-ver"||o=="right"||o=="top-right-ver"||o=="bottom-right-ver")b=e.outerHeight(true)*f,e.css({top:b+"px",left:"0px"}),s.css({width:e.outerWidth(true)+"px"});var h=A(f,"data-thumb"),b='<div class="bk-bullet-img-wrap '+t+'"><img class="bk-bullet-img" src="'+h+'" /></div>',I=A(f,"data-thumb-title");d.show_thumb_titles&&I!=""&&I!=void 0&&(b='<div class="bk-bullet-img-wrap '+t+'"><img class="bk-bullet-img" src="'+
h+'" /><div class="bk-thumb-title '+t+'">'+I+"</div></div>");var w=d.thumbs_my_position,I=d.thumbs_at_position,N=A(f,"data-thumb-my-position");N!=""&&typeof N!=="undefined"&&(w=N);N=A(f,"data-thumb-at-position");N!=""&&typeof N!=="undefined"&&(I=N);e.qtip({content:{text:b},position:{my:w,at:I},style:{classes:"ui-tooltip "+t+" ui-thumb-shadow bk-thumb-tooltip"},show:{effect:function(){v(this).show(d.thumbs_show_effect,{distance:20,direction:d.thumb_show_dir},300,function(){if(d.show_thumb_titles){var a=
v(this).find("div.bk-thumb-title");d.thumb_title_show_callback.call(a)}if(d.ken_burns_for_thumbs&&typeof ma[v(this).attr("id")]==="undefined"){var a=V[h].width,b=V[h].height,e=d.kb_thumbs_start_cpoint,g=d.kb_thumbs_start_cpoint_random,f=d.kb_thumbs_dest_cpoint,j=d.kb_thumbs_dest_cpoint_random,H=d.kb_thumbs_anim_time,m=d.kb_thumbs_play_in_loop,p=d.kb_thumbs_zoomfactor;typeof a!=="undefined"&&a>0&&typeof b!=="undefined"&&b>0&&(a=v(this).find("img.bk-bullet-img").kenburns_plugin({zoomfactor:p,hover_mode:"none",
flash_at_start:true,orig_img_width:a,orig_img_height:b,theme:t+" thumb",start_cpoint:e,start_cpoint_random:g,dest_cpoint:f,dest_cpoint_random:j,anim_time:H,play_in_loop:m}),ma[v(this).attr("id")]=a)}})},solo:false},hide:{effect:function(){d.show_thumb_titles&&v(this).find("div.bk-thumb-title").hide();v(this).hide(d.thumbs_hide_effect,{distance:20,direction:d.thumb_hide_dir},1E3)},solo:false}})}ca=da=n.children("a.bk-secondary-nav-item").outerWidth(true);f=E(q,a);e=E(p,a);na("a.bk-bullet",f,e,a,a)}else if(C==
"thumbs"){m.append('<div class="bk-diamond-secondary-nav '+t+'"><div class="bk-secondary-nav-wrap"></div></div>');s=m.find("div.bk-diamond-secondary-nav");n=s.find("div.bk-secondary-nav-wrap");w=a=0;e=null;for(f=0;f<L;f++){h=A(f,"data-thumb");b='<a class="bk-secondary-nav-item '+t+'" rel="'+f+'"><div class="bk-thumb-img-frame ui-thumb-shadow '+t+'" ><img src="'+h+'" class="bk-thumb-img" /></div></a>';I=A(f,"data-thumb-title");d.show_thumb_titles&&I!=""&&I!=void 0&&(b='<a class="bk-secondary-nav-item" rel="'+
f+'"><div class="bk-thumb-img-frame ui-thumb-shadow '+t+'" ><img src="'+h+'" class="bk-thumb-img" /><div class="bk-thumb-title '+t+'">'+I+"</div></div></a>");n.append(b);e=n.find("div.bk-thumb-img-frame").eq(f);if(o=="bottom"||o=="bottom-left-hor"||o=="bottom-right-hor"||o=="top"||o=="top-left-hor"||o=="top-right-hor")b=e.outerWidth(true)*f,e.css({top:"0px",left:b+"px"}),s.css({height:e.outerHeight(true)+"px"});else if(o=="left"||o=="top-left-ver"||o=="bottom-left-ver"||o=="right"||o=="top-right-ver"||
o=="bottom-right-ver")b=e.outerHeight(true)*f,e.css({top:b+"px",left:"0px"}),s.css({width:e.outerWidth(true)+"px"});a+=e.outerWidth(true);w+=e.outerHeight(true);if(d.ken_burns_for_thumbs){var b=V[h].width,I=V[h].height,N=d.kb_thumbs_start_cpoint,z=d.kb_thumbs_start_cpoint_random,J=d.kb_thumbs_dest_cpoint,Ga=d.kb_thumbs_dest_cpoint_random,Ha=d.kb_thumbs_anim_time,Ia=d.kb_thumbs_play_in_loop,Ja=d.kb_thumbs_zoomfactor;typeof b!=="undefined"&&b>0&&typeof I!=="undefined"&&I>0&&e.find("img").kenburns_plugin({orig_img_width:b,
orig_img_height:I,theme:t+" thumb",start_cpoint:N,start_cpoint_random:z,dest_cpoint:J,dest_cpoint_random:Ga,anim_time:Ha,play_in_loop:Ia,zoomfactor:Ja})}}da=e.outerWidth(true);ca=e.outerHeight(true);f=E(q,a);e=E(p,w);na("a.bk-secondary-nav-item .bk-thumb-img-frame",f,e,a,w)}if(d.show_timer)d.timer_position=="line"?m.append('<div class="bk-progressbar '+t+'">'):(f="",t=="modern"&&(f='<div id="pp-button" class="modern-pause"></div>'),m.append('<div class="bk-circular-timer-outerwrap b-big '+t+'"><div class="bk-circular-timer-wrap '+
t+'"><div class="bk-circular-timer-left '+t+'" /><div class="bk-circular-timer-right '+t+'" /></div>'+f+"</div>"),F=m.find("div.bk-circular-timer-outerwrap"),u=m.find("div.bk-circular-timer-wrap"),M=u.find("div.bk-circular-timer-left"),K=u.find("div.bk-circular-timer-right"),F.css({width:u.outerWidth(true)+"px",height:u.outerHeight(true)+"px",position:"absolute"}),d.timer_position=="top-right"?F.css({top:"0px",right:"0px"}):d.timer_position=="top-left"?F.css({top:"0px",left:"0px"}):d.timer_position==
"bottom-right"?F.css({bottom:"0px",right:"0px"}):d.timer_position=="bottom-left"?F.css({bottom:"0px",left:"0px"}):d.timer_position=="center"?(e=E(p,u.outerHeight(true)),f=E(q,u.outerWidth(true)),F.css({top:e+"px",left:f+"px"})):d.timer_position=="on_current_bullet"&&C=="bullets"?(F.removeClass("b-big"),u.addClass("b-small"),M.addClass("b-small"),K.addClass("b-small"),F.css({width:u.outerWidth(true)+"px",height:u.outerHeight(true)+"px",position:"absolute"}),f=n.children("a.bk-bullet").outerWidth(false),
e=n.children("a.bk-bullet").outerHeight(false),f=E(f,F.outerHeight(true)),e=E(e,F.outerWidth(true)),F.css({top:f+"px",left:e+"px"})):(d.timer_position="center",e=E(p,u.outerHeight(true)),f=E(q,u.outerWidth(true)),F.css({top:e+"px",left:f+"px"})),t=="modern"&&(j=m.find("#pp-button"),e=f=0,j.css({width:u.width()+"px",height:u.height()+"px"}),e=E(u.outerHeight(true),j.height()),f=E(u.outerWidth(true),j.width()),j.css({top:e+"px",left:f+"px"}),j.show()));d.auto_hide_primary_nav||(g.show(),H.show(),j&&
j.show());(d.socondary_nav_type=="thumbs"||d.socondary_nav_type=="bullets")&&s.bind("mousewheel",function(a,b){b>0?(s.find("div.bk-sec-top").trigger("click"),s.find("div.bk-sec-right").trigger("click")):b<0&&(s.find("div.bk-sec-bottom").trigger("click"),s.find("div.bk-sec-left").trigger("click"));return false});d.auto_hide_secondary_nav&&(d.socondary_nav_type=="thumbs"||d.socondary_nav_type=="bullets")&&s.hide();d.show_titles&&(m.append('<div class="bk-title"></div>'),ea=m.find("div.bk-title"));m.append('<div class="bk-pp-video-button '+
t+' play"></div>');P=m.find("div.bk-pp-video-button");d.secondary_nav_placement=="outside"&&(o=="right"||o=="top-right-ver"||o=="bottom-right-ver")?P.css({top:"-23px",right:"10px"}):P.css({top:"10px",right:"-23px"});Ka();D.fadeIn("fast",function(){oa(B);d.auto_play&&pa();qa()})}function na(a,g,H,j,f){if(!(d.socondary_nav_type!="thumbs"&&d.socondary_nav_type!="bullets"))if(o=="bottom"||o=="bottom-left-hor"||o=="bottom-right-hor")n.find(a).css({display:"block","float":"left"}),C=="thumbs"?fa(n,g,g):
C=="bullets"&&fa(n,g,q-j),j>q&&(n.css({width:j+"px"}),ra()),d.secondary_nav_placement=="outside"?s.css({bottom:s.outerHeight()*-1+"px",left:"0px",width:"100%"}):s.css({bottom:"0px",left:"0px",width:"100%"});else if(o=="top"||o=="top-left-hor"||o=="top-right-hor")n.find(a).css({display:"block","float":"left"}),C=="thumbs"?fa(n,g,g):C=="bullets"&&fa(n,g,q-j),j>q&&(n.css({width:j+"px"}),ra()),d.secondary_nav_placement=="outside"?s.css({top:s.outerHeight()*-1+"px",left:"0px",width:"100%"}):s.css({top:"0px",
left:"0px",width:"100%"});else if(o=="left"||o=="top-left-ver"||o=="bottom-left-ver")n.find(a).css({display:"block"}),C=="thumbs"?ga(n,H,H):C=="bullets"&&ga(n,H,p-j),f>p&&(n.css({height:f+"px"}),sa()),d.secondary_nav_placement=="outside"?s.css({top:"0px",left:s.outerWidth()*-1+"px",height:"100%"}):s.css({top:"0px",left:"0px",height:"100%"});else if(o=="right"||o=="top-right-ver"||o=="bottom-right-ver")n.find(a).css({display:"block"}),C=="thumbs"?ga(n,H,H):C=="bullets"&&ga(n,H,p-j),f>p&&(n.css({height:f+
"px"}),sa()),d.secondary_nav_placement=="outside"?s.css({top:"0px",right:s.outerWidth()*-1+"px",height:"100%"}):s.css({top:"0px",right:"0px",height:"100%"})}function A(a,g){return D.children("li").eq(a).attr(g)}function ra(){s.append('<div class="bk-secondary-nav-hor-button bk-sec-nav-button-back bk-sec-left '+t+'"></div>');s.find("div.bk-sec-left").css({left:"0px"});s.append('<div class="bk-secondary-nav-hor-button bk-sec-nav-button-back bk-sec-right '+t+'"></div>');s.find("div.bk-sec-right").css({right:"0px"})}
function sa(){s.append('<div class="bk-secondary-nav-ver-button bk-sec-nav-button-back bk-sec-top '+t+'"></div>');s.find("div.bk-sec-top").css({top:"0px"});s.append('<div class="bk-secondary-nav-ver-button bk-sec-nav-button-back bk-sec-bottom '+t+'"></div>');s.find("div.bk-sec-bottom").css({bottom:"0px"})}function ga(a,g,d){o.indexOf("top")!=-1?a.css({top:"0px"}):o.indexOf("bottom")!=-1?a.css({top:d+"px"}):a.css({top:g+"px"})}function fa(a,g,d){o.indexOf("left")!=-1?a.css({left:"0px"}):o.indexOf("right")!=
-1?a.css({left:d+"px"}):a.css({left:g+"px"})}function E(a,g){return Math.round((a-g)/2)}function ta(a,g,d,j,f,e){var b={};if(a=="in-place"&&g=="point")return b.top=Math.round(j*e+e/2),b.left=Math.round(d*f+f/2),b.width=0,b.height=0,b;else if(a=="in-place"&&g=="point-topleft")return b.top=Math.round(j*e),b.left=Math.round(d*f),b.width=0,b.height=0,b;else if(a=="in-place"&&g=="point-topright")return b.top=Math.round(j*e),b.left=Math.round(d*f+f),b.width=0,b.height=0,b;else if(a=="in-place"&&g=="point-bottomleft")return b.top=
Math.round(j*e+e),b.left=Math.round(d*f),b.width=0,b.height=0,b;else if(a=="in-place"&&g=="point-bottomright")return b.top=Math.round(j*e+e),b.left=Math.round(d*f+f),b.width=0,b.height=0,b;else if(a=="in-place"&&g=="flat-top")return b.top=Math.round(j*e),b.left=Math.round(d*f),b.width=f,b.height=0,b;else if(a=="in-place"&&g=="flat-bottom")return b.top=Math.round(j*e)+e,b.left=Math.round(d*f),b.width=f,b.height=0,b;else if(a=="in-place"&&g=="flat-left")return b.top=Math.round(j*e),b.left=Math.round(d*
f),b.width=0,b.height=e,b;else if(a=="in-place"&&g=="flat-right")return b.top=Math.round(j*e),b.left=Math.round(d*f)+f,b.width=0,b.height=e,b;else if(a=="in-place"&&g=="flat-center-hor")return b.top=Math.round(j*e)+Math.round(e/2),b.left=Math.round(d*f),b.width=f,b.height=0,b;else if(a=="in-place"&&g=="flat-center-ver")return b.top=Math.round(j*e),b.left=Math.round(d*f)+Math.round(f/2),b.width=0,b.height=e,b;else if(a=="in-center"&&g=="point")return b.top=Math.round(p/2),b.left=Math.round(q/2),b.width=
0,b.height=0,b;else if(a=="in-center"&&g=="all")return b.top=Math.round((p-e)/2),b.left=Math.round((q-f)/2),b.width=f,b.height=e,b;else if(a=="in-place")b.top=Math.round(j*e),b.left=Math.round(d*f);else if(a=="spread-center"&&g=="point")return b.top=Math.round((j*e+e/2)*h-(p*h-p)/2),b.left=Math.round((d*f+f/2)*h-(q*h-q)/2),b.width=0,b.height=0,b;else if(a=="spread-center"&&g=="all")return b.top=Math.round((j*e+(e*h-e)/2)*h-(p*h-p)/2),b.left=Math.round((d*f+(f*h-f)/2)*h-(q*h-q)/2),b.width=f,b.height=
e,b;else if(a=="spread-right-bottom"&&g=="point")return b.top=Math.round((j*e+e/2)*h-(p*h-p)),b.left=Math.round((d*f+f/2)*h-(q*h-q)),b.width=0,b.height=0,b;else if(a=="spread-right-bottom"&&g=="all")return b.top=Math.round((j*e+(e*h-e)/2)*h-(p*h-p)),b.left=Math.round((d*f+(f*h-f)/2)*h-(q*h-q)),b.width=f,b.height=e,b;else if(a=="spread-right"&&g=="point")return b.top=Math.round((j*e+e/2)*h-(p*h-p)/2),b.left=Math.round((d*f+f/2)*h-(q*h-q)),b.width=0,b.height=0,b;else if(a=="spread-right"&&g=="all")return b.top=
Math.round((j*e+(e*h-e)/2)*h-(p*h-p)/2),b.left=Math.round((d*f+(f*h-f)/2)*h-(q*h-q)),b.width=f,b.height=e,b;else if(a=="spread-bottom"&&g=="point")return b.top=Math.round((j*e+e/2)*h-(p*h-p)),b.left=Math.round((d*f+f/2)*h-(q*h-q)/2),b.width=0,b.height=0,b;else if(a=="spread-bottom"&&g=="all")return b.top=Math.round((j*e+(e*h-e)/2)*h-(p*h-p)),b.left=Math.round((d*f+(f*h-f)/2)*h-(q*h-q)/2),b.width=f,b.height=e,b;else if(a=="spread-top"&&g=="point")return b.top=Math.round((j*e+e/2)*h),b.left=Math.round((d*
f+f/2)*h-(q*h-q)/2),b.width=0,b.height=0,b;else if(a=="spread-top"&&g=="all")return b.top=Math.round((j*e+(e*h-e)/2)*h),b.left=Math.round((d*f+(f*h-f)/2)*h-(q*h-q)/2),b.width=f,b.height=e,b;else if(a=="spread-left-top"&&g=="point")return b.top=Math.round((j*e+e/2)*h),b.left=Math.round((d*f+f/2)*h),b.width=0,b.height=0,b;else if(a=="spread-left-top"&&g=="all")return b.top=Math.round((j*e+(e*h-e)/2)*h),b.left=Math.round((d*f+(f*h-f)/2)*h),b.width=f,b.height=e,b;else if(a=="spread-left"&&g=="point")return b.top=
Math.round((j*e+e/2)*h-(p*h-p)/2),b.left=Math.round((d*f+f/2)*h),b.width=0,b.height=0,b;else if(a=="spread-left"&&g=="all")return b.top=Math.round((j*e+(e*h-e)/2)*h-(p*h-p)/2),b.left=Math.round((d*f+(f*h-f)/2)*h),b.width=f,b.height=e,b;else if(a=="spread-left-bottom"&&g=="point")return b.top=Math.round((j*e+e/2)*h-(p*h-p)),b.left=Math.round((d*f+f/2)*h),b.width=0,b.height=0,b;else if(a=="spread-left-bottom"&&g=="all")return b.top=Math.round((j*e+(e*h-e)/2)*h-(p*h-p)),b.left=Math.round((d*f+(f*h-f)/
2)*h),b.width=f,b.height=e,b;else if(a=="in-line-top")b.top=-e,b.left=Math.round(d*f);else if(a=="in-line-bottom")b.top=p,b.left=Math.round(d*f);else if(a=="in-line-left")b.top=Math.round(j*e),b.left=-f;else if(a=="in-line-right")b.top=Math.round(j*e),b.left=q;else if(a=="top-bottom-zipper")b.top=d%2==1?p:-e,b.left=Math.round(d*f);else if(a=="left-right-zipper")b.left=j%2==1?q:-f,b.top=Math.round(j*e);else if(a=="top-left-corner")b.left=-f,b.top=-e;else if(a=="top-right-corner")b.left=q,b.top=-e;
else if(a=="bottom-right-corner")b.left=q,b.top=p;else if(a=="bottom-left-corner")b.left=-f,b.top=p;if(g=="all")b.width=f,b.height=e;else if(g=="point")b.width=0,b.height=0;else if(g=="flat-top")b.width=f,b.height=0;else if(g=="flat-bottom")b.width=f,b.height=0;else if(g=="flat-left")b.width=0,b.height=e;else if(g=="flat-right")b.width=0,b.height=e;return b}function La(a,g,h,j,f,e,b){var n=Math.round(q/f),o=Math.round(p/e),s=1;b&&(s=0);b?m.find(".slices-area").css({overflow:"visible"}):m.find(".slices-area").css({overflow:"hidden"});
for(x=0;x<f;x++)for(y=0;y<e;y++){var u=ta(g,h,x,y,n,o);m.find(".slices-area").append('<div class="slider-slice" id="slice-'+x+"-"+y+'"><div class="slice-content"></div></div>');var w=m.find("#slice-"+x+"-"+y+"");w.css({width:u.width+"px",height:u.height+"px",left:u.left+"px",top:u.top+"px",opacity:s});u=D.children("li").eq(a).html();w.find(".slice-content").css({width:q+"px",height:p+"px",left:-(x*n)+"px",top:-(y*o)+"px"}).append(u);w.find(".slice-content div.bk_canvas_underlay").remove();j!==ua&&
ba&&w.rotate(j+"deg")}d.ken_burns_for_slides&&J=="in"&&D.children("li").eq(a).find("img.bk_ken_burns_img").not(".bk_canvas_underlay img").each(function(a){var b=v(this).attr("src")+"_"+a,e,g=v(this).attr("src"),a=W[g].width,g=W[g].height,f=d.kb_slides_start_cpoint;e=d.kb_slides_start_cpoint_random;var j=d.kb_slides_dest_cpoint,l=d.kb_slides_dest_cpoint_random,h=d.kb_slides_anim_time,H=d.kb_slides_play_in_loop,n=d.kb_slides_zoomfactor;if(typeof a!=="undefined"&&a>0&&typeof g!=="undefined"&&g>0)f=v(this).kenburns_plugin({hover_mode:"none",
orig_img_width:a,orig_img_height:g,canvas_width:q,canvas_height:p,alignment:"absolute",flash_at_start:false,run_at_init:false,theme:t,start_cpoint:f,start_cpoint_random:e,dest_cpoint:j,dest_cpoint_random:l,anim_time:h,play_in_loop:H,zoomfactor:n}),R[b]=f,e=f.kenburns_plugin.Current_Shift(),b=e.trx,f=e["try"],e=e.scale,m.find(".slices-area img").css({width:a+"px",height:g+"px","-webkit-transform":"translate("+b+"px,"+f+"px) scale("+e+")","-ms-transform":"translate("+b+"px,"+f+"px) scale("+e+")","-o-transform":"translate("+
b+"px,"+f+"px) scale("+e+")","-moz-transform":"translate("+b+"px,"+f+"px) scale("+e+")",transform:"translate("+b+"px,"+f+"px) scale("+e+")",filter:'progid:DXImageTransform.Microsoft.Matrix(FilterType="nearest neighbor",M11='+e+",M12=0,M21=0,M22="+e+",Dx="+b+",Dy="+f+")","-ms-filter":'progid:DXImageTransform.Microsoft.Matrix(FilterType="nearest neighbor",M11='+e+",M12=0,M21=0,M22="+e+",Dx="+b+",Dy="+f+")","-webkit-transform-origin":"0px 0px","-moz-transform-origin":"0px 0px","-o-transform-origin":"0px 0px",
"-ms-transform-origin":"0px 0px","transform-origin":"0px 0px"})});b?m.find(".slider-slice").hide():m.find(".slider-slice").show()}function Ma(a,d,h,j,f,e,b,n,o,s,t,u,v,w,B,D){var j=[],E=Math.round(q/e),F=Math.round(p/b);if(a=="diagonal-topleft-bottomright"||a=="diagonal-bottomright-topleft")for(x=0;x<e;x++)for(y=0;y<b;y++){var l={};l.x=x;l.y=y;l.obj=m.find("#slice-"+x+"-"+y+"");a=="diagonal-topleft-bottomright"?j.push(l):a=="diagonal-bottomright-topleft"&&j.unshift(l)}else if(a=="diagonal-bottomleft-topright"||
a=="diagonal-topright-bottomleft")for(x=e-1;x>=0;x--)for(y=0;y<b;y++)l={},l.x=x,l.y=y,l.obj=m.find("#slice-"+x+"-"+y+""),a=="diagonal-topright-bottomleft"?j.push(l):a=="diagonal-bottomleft-topright"&&j.unshift(l);else if(a=="spiral-in"||a=="spiral-out"){var G=0;for(i=0,c=e-1,r=b-1;c>=0&&r>=0;i++,c--,r--){for(k=i;k<=c;k++){if(G==b*e)break;l={};l.x=k;l.y=i;l.obj=m.find("#slice-"+k+"-"+i+"");a=="spiral-in"?j.push(l):a=="spiral-out"&&j.unshift(l);G++}for(k=i+1;k<=r;k++){if(G==b*e)break;l={};l.x=c;l.y=
k;l.obj=m.find("#slice-"+c+"-"+k+"");a=="spiral-in"?j.push(l):a=="spiral-out"&&j.unshift(l);G++}for(k=c-1;k>=i;k--){if(G==b*e)break;l={};l.x=k;l.y=r;l.obj=m.find("#slice-"+k+"-"+r+"");a=="spiral-in"?j.push(l):a=="spiral-out"&&j.unshift(l);G++}for(k=r-1;k>i;k--){if(G==b*e)break;l={};l.x=i;l.y=k;l.obj=m.find("#slice-"+i+"-"+k+"");a=="spiral-in"?j.push(l):a=="spiral-out"&&j.unshift(l);G++}}}else if(a=="zig-zag-right"||a=="zig-zag-left"){l=true;for(x=0;x<e;x++)if(l){for(y=0;y<b;y++)l={},l.x=x,l.y=y,l.obj=
m.find("#slice-"+x+"-"+y+""),a=="zig-zag-right"?j.push(l):a=="zig-zag-left"&&j.unshift(l);l=false}else{for(y=b-1;y>=0;y--)l={},l.x=x,l.y=y,l.obj=m.find("#slice-"+x+"-"+y+""),a=="zig-zag-right"?j.push(l):a=="zig-zag-left"&&j.unshift(l);l=true}}else if(a=="zig-zag-down"||a=="zig-zag-up"){l=true;for(y=0;y<b;y++)if(l){for(x=0;x<e;x++)l={},l.x=x,l.y=y,l.obj=m.find("#slice-"+x+"-"+y+""),a=="zig-zag-down"?j.push(l):a=="zig-zag-up"&&j.unshift(l);l=false}else{for(x=e-1;x>=0;x--)l={},l.x=x,l.y=y,l.obj=m.find("#slice-"+
x+"-"+y+""),a=="zig-zag-down"?j.push(l):a=="zig-zag-up"&&j.unshift(l);l=true}}else if(a=="chessboard-topleft-bottomright"||a=="chessboard-bottomright-topleft"){var G=[],C=[];for(x=0;x<e;x++)for(y=0;y<b;y++){l={};l.x=x;l.y=y;l.obj=m.find("#slice-"+x+"-"+y+"");var z=true;x%2==1&&(z=false);var A=true;y%2==1&&(A=false);a=="chessboard-topleft-bottomright"?z&&A||!z&&!A?G.push(l):C.push(l):a=="chessboard-bottomright-topleft"&&(z&&A||!z&&!A?G.unshift(l):C.unshift(l))}j=j.concat(G,C)}else if(a=="chessboard-bottomleft-topright"||
a=="chessboard-topright-bottomleft"){G=[];C=[];for(x=0;x<e;x++)for(y=b-1;y>=0;y--)l={},l.x=x,l.y=y,l.obj=m.find("#slice-"+x+"-"+y+""),z=true,x%2==1&&(z=false),A=true,y%2==1&&(A=false),a=="chessboard-bottomleft-topright"?z&&A||!z&&!A?G.push(l):C.push(l):a=="chessboard-topright-bottomleft"&&(z&&A||!z&&!A?G.unshift(l):C.unshift(l));j=j.concat(C,G)}else if(a=="random"){a=[];for(x=0;x<e;x++)for(y=0;y<b;y++)l={},l.x=x,l.y=y,l.obj=m.find("#slice-"+x+"-"+y+""),a.push(l);for(l=0;a.length;)l=Math.floor(Math.random()*
(a.length-1)),j.push(a[l]),a.splice(l,1)}e=1;n&&(e=0);n=X;b=0;o=="rising"?S=n=X/Y:o=="queue"?(n=X/2,S=n/Y):o=="waterfall"&&(S=n=X/Y);for(i=0;i<j.length;i++)l=j[i],o=="rising"&&(n+=S),o=="waterfall"&&(b=i*S),o=="queue"&&(b=i*S),a=ta(d,h,l.x,l.y,E,F),l.obj.delay(b).animate({width:a.width+"px",height:a.height+"px",left:a.left+"px",top:a.top+"px",opacity:e,rotate:f+"deg"},{duration:n,easing:s,specialEasing:{opacity:t,rotate:u,left:v,top:w,width:B,height:D},complete:function(){m.trigger(va)}})}function T(a){Z&&
wa();d.ken_burns_for_slides&&Na();$=0;xa();d.show_titles&&B!=-1&&d.title_hide_callback.call(ea);var g=A(B,"data-video-link");g!=""&&typeof g!=="undefined"&&d.videobutton_hide_callback.call(P);g={};g.rows=Oa;g.columns=Pa;g.init_pos=Qa;g.init_size=Ra;g.dest_pos=Sa;g.dest_size=Ta;g.slide_timeout=ja;g.slide_animation=X;g.init_rotation=Ua;g.final_rotation=ua;g.slice_time_mode=Va;g.selection_pattern=Wa;g.transition=g;g.easing=Xa;g.rotate_easing=Ya;g.opacity_easing=Za;g.width_easing=$a;g.height_easing=ab;
g.left_easing=bb;g.top_easing=cb;g.spread_factor=h;g.is_hidden=db;var m=eb,j=A(a,"data-def_transition");j!=""&&typeof j!=="undefined"&&(m=j);jQuery.extend(g,transitions[m]);for(var f in g)j=A(a,"data-"+f),j!=""&&typeof j!=="undefined"&&(g[f]=j);Y=g.columns*g.rows;ha=0;m=f=false;if(J=="in")f=g.is_hidden,m=false;else if(J=="out")f=false,m=g.is_hidden;La(a,g.init_pos,g.init_size,g.init_rotation,g.columns,g.rows,f);Ma(g.selection_pattern,g.dest_pos,g.dest_size,g.init_rotation,g.final_rotation,g.columns,
g.rows,m,g.slice_time_mode,g.easing,g.opacity_easing,g.rotate_easing,g.left_easing,g.top_easing,g.width_easing,g.height_easing)}function ya(){clearTimeout(U);$=0;if(d.show_direction=="forward")za();else if(d.show_direction=="backward")Aa();else if(d.show_direction=="random"){for(var a=Math.floor(Math.random()*(L-1));a==B;)a=Math.floor(Math.random()*(L-1));Ba(a)}}function za(){z=true;w=B+1;w>L-1&&(w=0);J=="in"?T(w):J=="out"&&(ia(w,true),T(B))}function Aa(){z=true;w=B-1;w<0&&(w=L-1);J=="in"?T(w):J==
"out"&&(ia(w,true),T(B))}function Ba(a){a<0||a>L-1||(z=true,w=a,J=="in"?T(w):J=="out"&&(ia(w,true),T(B)))}function ka(){$+=10;$>=ja?(z=true,ya(),d.show_timer&&u&&u.hide()):(xa(),U=setTimeout(function(){ka()},10))}function xa(){if(d.show_timer){var a=$*100/ja;if(d.timer_position=="line"){var g=q*a/100;m.find("div.bk-progressbar").css({width:g+"px"})}else{var h=a*360/100,g=u.width(),j=g/2;a<50?(u.css({clip:"rect(0px,"+g+"px,"+g+"px,"+j+"px)"}),M.css({transform:"rotate("+h+"deg)","-ms-transform":"rotate("+
h+"deg)","-webkit-transform":"rotate("+h+"deg)","-o-transform":"rotate("+h+"deg)","-moz-transform":"rotate("+h+"deg)"}),ba||(a=Math.cos(Math.PI*2/360*h),h=Math.sin(Math.PI*2/360*h),M.css("filter","progid:DXImageTransform.Microsoft.Matrix(M11="+a+",M12=-"+h+",M21="+h+",M22="+a+",SizingMethod='auto expand',FilterType='nearest neighbor')"),M.css("left",-Math.floor((M.width()-g)/2)),M.css("top",-Math.floor((M.height()-g)/2))),K.hide(),M.show()):a<100&&(u.css({clip:"rect(0px,"+g+"px,"+g+"px,0px)"}),h-=
180,K.css({transform:"rotate("+h+"deg)","-ms-transform":"rotate("+h+"deg)","-webkit-transform":"rotate("+h+"deg)","-o-transform":"rotate("+h+"deg)","-moz-transform":"rotate("+h+"deg)"}),ba||(a=Math.cos(Math.PI*2/360*h),h=Math.sin(Math.PI*2/360*h),K.css("filter","progid:DXImageTransform.Microsoft.Matrix(M11="+a+",M12=-"+h+",M21="+h+",M22="+a+",SizingMethod='auto expand',FilterType='nearest neighbor')"),K.css("left",-Math.floor((K.width()-g)/2)),K.css("top",-Math.floor((K.height()-g)/2))),K.show())}}}
function qa(){Q?t=="classic"?m.find("#pp-button").removeClass("classic-play").addClass("classic-pause"):t=="modern"&&m.find("#pp-button").removeClass("modern-play").addClass("modern-pause"):t=="classic"?m.find("#pp-button").removeClass("classic-pause").addClass("classic-play"):t=="modern"&&m.find("#pp-button").removeClass("modern-pause").addClass("modern-play")}function pa(){Q=!Q;qa();Q?ya():clearTimeout(U)}function fb(){U=setTimeout(function(){ka()},10)}function ia(a){if(a<0||a>L-1)a=0;if(C!="none"&&
(n.find("a.bk-secondary-nav-item").removeClass("active"),n.find("a.bk-secondary-nav-item").eq(a).addClass("active"),d.timer_position=="on_current_bullet"&&C=="bullets")){var g=n.find("a.bk-secondary-nav-item").eq(a);g.append(F);F=g.find("div.bk-circular-timer-outerwrap");u=g.find("div.bk-circular-timer-wrap");M=u.find("div.bk-circular-timer-left");K=u.find("div.bk-circular-timer-right");B!=-1&&n.find("a.bk-secondary-nav-item").eq(B).remove("div.bk-circular-timer-outerwrap")}d.ken_burns_for_slides&&
D.children("li").eq(a).find("img.bk_ken_burns_img").not(".bk_canvas_underlay img").each(function(a){var d=v(this).attr("src")+"_"+a,f=v(this).attr("src"),a=W[f].width,f=W[f].height;if(J=="in"&&(d=R[d],typeof d!=="undefined")){shift=d.kenburns_plugin.Current_Shift();var e=shift.trx,b=shift["try"],g=shift.scale;v(this).css({width:a+"px",height:f+"px","-webkit-transform":"translate("+e+"px,"+b+"px) scale("+g+")","-ms-transform":"translate("+e+"px,"+b+"px) scale("+g+")","-o-transform":"translate("+e+
"px,"+b+"px) scale("+g+")","-moz-transform":"translate("+e+"px,"+b+"px) scale("+g+")",transform:"translate("+e+"px,"+b+"px) scale("+g+")","-webkit-transform-origin":"0px 0px","-moz-transform-origin":"0px 0px","-o-transform-origin":"0px 0px","-ms-transform-origin":"0px 0px","transform-origin":"0px 0px"});d.kenburns_plugin.Start()}});D.children("li").eq(a).show();D.children("li").not(":eq("+a+")").hide();gb(a);g=A(a,"data-video-link");g!=""&&typeof g!=="undefined"&&d.videobutton_show_callback.call(P);
return a}function Na(){for(index=0;index<L;index++)D.children("li").eq(index).find("img.bk_ken_burns_img").not(".bk_canvas_underlay img").each(function(a){a=v(this).attr("src")+"_"+a;typeof R[a]!=="undefined"&&R[a].kenburns_plugin.Pause()})}function gb(a){D.children("li").not(":eq("+a+")").find("div.bk_canvas_underlay").remove()}function oa(a){B=ia(a,false);d.show_titles&&(a=A(B,"data-title"),a!=""&&a!=void 0&&(ea.empty().append(a),d.title_show_callback.call(ea)));m.find(".slider-slice").remove();
d.show_timer&&u&&u.show()}function hb(){var a=A(B,"data-video-link");if(a!=""&&typeof a!=="undefined"){if(a.match(/http:\/\/www.youtube.com\//))D.children("li").eq(B).append('<iframe id="bk-diamond-embedded-player" width="'+q+'" height="'+p+'" src="'+a+'?autoplay=1" frameborder="0" allowfullscreen></iframe>');else if(a.match(/http:\/\/player.vimeo.com\//))D.children("li").eq(B).append('<iframe id="bk-diamond-embedded-player" width="'+q+'" height="'+p+'" src="'+a+'?autoplay=1" frameborder="0" allowfullscreen></iframe>');
else return;Z=true;clearTimeout(U);P.removeClass("play").addClass("close");d.ken_burns_for_slides&&D.children("li").eq(B).find("img.bk_ken_burns_img").not(".bk_canvas_underlay img").each(function(a){a=v(this).attr("src")+"_"+a;a=R[a];typeof a!=="undefined"&&a.kenburns_plugin.Pause()})}}function wa(){D.children("li").eq(B).find("#bk-diamond-embedded-player").remove();Z=false;P.removeClass("close").addClass("play");d.ken_burns_for_slides&&D.children("li").eq(B).find("img.bk_ken_burns_img").not(".bk_canvas_underlay img").each(function(a){a=
v(this).attr("src")+"_"+a;a=R[a];typeof a!=="undefined"&&a.kenburns_plugin.Play()})}function Ka(){P.click(function(){Z?wa():hb()});m.live(va,function(){ha++;ha==Y&&(ha=0,oa(w),z=false,Q&&la&&d.interactive_while_playing&&!aa&&setTimeout(function(){ka()},10))});m.mouseenter(function(){aa=true;Q&&la&&d.interactive_while_playing&&!z&&clearTimeout(U);if(d.auto_hide_primary_nav){clearTimeout(Ca);var a="#pp-button, #next-button, #prev-button";t=="modern"&&(a="#next-button, #prev-button");m.find(a).stop();
m.find(a).fadeTo(d.auto_hide_primary_time,1)}if(d.auto_hide_secondary_nav&&(d.socondary_nav_type=="thumbs"||d.socondary_nav_type=="bullets"))clearTimeout(Da),d.auto_show_secondary_callback.call(s);return true});m.mouseleave(function(){aa=false;Q&&la&&d.interactive_while_playing&&!z&&!Z&&fb();d.auto_hide_primary_nav&&(Ca=setTimeout(function(){if(!aa){var a="#pp-button, #next-button, #prev-button";t=="modern"&&(a="#next-button, #prev-button");m.find(a).stop();m.find(a).fadeOut(d.auto_hide_primary_time)}},
d.auto_hide_primary_nav_delay));if(d.auto_hide_secondary_nav&&(d.socondary_nav_type=="thumbs"||d.socondary_nav_type=="bullets"))Da=setTimeout(function(){if(!aa&&(d.socondary_nav_type=="thumbs"||d.socondary_nav_type=="bullets"))s.stop(),d.auto_hide_secondary_callback.call(s)},d.auto_hide_secondary_nav_delay);return true});m.find("div.bk-diamond-secondary-nav .bk-thumb-img-frame").mouseenter(function(){if(d.show_thumb_titles){var a=v(this).find("div.bk-thumb-title");d.thumb_title_show_callback.call(a)}});
m.find("div.bk-diamond-secondary-nav .bk-thumb-img-frame").mouseleave(function(){if(d.show_thumb_titles){var a=v(this).find("div.bk-thumb-title");d.thumb_title_hide_callback.call(a)}});m.find("#pp-button").click(function(){z||pa()});m.find("#next-button").click(function(){z||za()});m.find("#prev-button").click(function(){z||Aa()});m.find("div.bk-diamond-secondary-nav .bk-secondary-nav-item").click(function(){if(!z){var a=jQuery(this).attr("rel");a!=B&&Ba(a)}});m.find("div.bk-sec-top").live("click",
function(){var a=ca;n.position().top+a>=v(this).outerHeight(true)&&(a=n.position().top*-1+v(this).outerHeight(true));a<0&&(a=0);n.stop();n.animate({top:"+="+a},"fast","swing")});m.find("div.bk-sec-bottom").live("click",function(){var a=ca;n.position().top+n.height()-a<=p-v(this).outerHeight(true)&&(a=n.position().top+n.height()-p+v(this).outerHeight(true));a<0&&(a=0);n.stop();n.animate({top:"-="+a},"fast","swing")});m.find("div.bk-sec-left").live("click",function(){var a=da;n.position().left+a>=v(this).outerWidth(true)&&
(a=n.position().left*-1+v(this).outerWidth(true));a<0&&(a=0);n.stop();n.animate({left:"+="+a},"fast","easeOutBack")});m.find("div.bk-sec-right").live("click",function(){var a=da;n.position().left+n.width()-a<=q-v(this).outerWidth(true)&&(a=n.position().left+n.width()-q+v(this).outerWidth(true));a<0&&(a=0);n.stop();n.animate({left:"-="+a},"fast","easeOutBack")})}var Oa=d.rows,Pa=d.columns,Qa=d.init_pos,Ra=d.init_size,Sa=d.dest_pos,Ta=d.dest_size,ja=d.slide_timeout,X=d.slide_animation,Ua=d.init_rotation,
ua=d.final_rotation,Va=d.slice_time_mode,Wa=d.selection_pattern,eb=d.def_transition,Xa=d.easing,Ya=d.rotate_easing,Za=d.opacity_easing,$a=d.width_easing,ab=d.height_easing,bb=d.left_easing,cb=d.top_easing,h=d.spread_factor,db=true,ba=true,la=d.pause_on_hover,q=0,p=0,B=0,w=0,$=0,Y=0,ha=0,S=300,D=m.children("ul"),L=D.children("li").size(),va="slice_anim_finished",Q=false,U=null,aa=false,z=false,t=d.theme,J=d.run_transition_on,C=d.socondary_nav_type,o=d.secondary_nav_pos,s=null,n=null,da=null,ca=null,
Ca=null,Da=null,F=null,u=null,M=null,K=null,ea=null,ma={},R={},W={},V={},O=0,P=null,Z=false;jQuery.browser.webkit&&document.readyState!="complete"?setTimeout(arguments.callee,100):(D.hide(),function(){d.ken_burns_for_slides&&(O+=D.children("li").find("img.bk_ken_burns_img").size(),D.children("li").each(function(){v(this).find("img.bk_ken_burns_img").each(function(){var a=new Image,d=v(this).attr("src");a.onload=function(){O--;var a={};a.width=this.width;a.height=this.height;W[d]=a};a.onerror=function(){O--};
a.src=d})}));d.ken_burns_for_thumbs&&(O+=L,D.children("li").each(function(){var a=v(this).attr("data-thumb");if(a!=""&&a!=void 0){var d=new Image;d.onload=function(){O--;var d={};d.width=this.width;d.height=this.height;V[a]=d};d.onerror=function(){O--};d.src=a}else O--}));Ea()}())})}})(jQuery);
