function ajaxSubmitCommentForm(){
"use strict";
var options={
success: function(){
$j("#commentform textarea").val("");
$j("#commentform .success p").text("Comment has been sent!");
}};
$j('#commentform').submit(function(){
$j(this).find('input[type="submit"]').next('.success').remove();
$j(this).find('input[type="submit"]').after('
');
$j(this).ajaxSubmit(options);
return false;
});
}
var header_height=100;
var min_header_height_scroll=57;
var min_header_height_fixed_hidden=50;
var min_header_height_sticky=60;
var scroll_amount_for_sticky=85;
var content_line_height=60;
var header_bottom_border_weight=1;
var scroll_amount_for_fixed_hiding=200;
var paspartu_width_init=0.02;
var add_for_admin_bar=0;
header_height=220;
scroll_amount_for_sticky=300;
var logo_height=130;
var logo_width=280;
logo_height=112;
logo_width=352;
header_top_height=0;
var loading_text;
loading_text='Loading new posts...';
var finished_text;
finished_text='No more posts';
var piechartcolor;
piechartcolor="#1abc9c";
piechartcolor="#000000";
var geocoder;
var map;
function initialize(){
"use strict";
var mapStyles=[
{
stylers: [
{hue: "#e8ac35" },
{saturation: "-80"},
{lightness: "29"},
{gamma: 1.51}
]
}
];
var qodeMapType=new google.maps.StyledMapType(mapStyles,
{name: "Qode Map"});
geocoder=new google.maps.Geocoder();
var latlng=new google.maps.LatLng(-34.397, 150.644);
var myOptions={
zoom: 3,
scrollwheel: false,
center: latlng,
zoomControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.SMALL,
position: google.maps.ControlPosition.RIGHT_CENTER
},
scaleControl: false,
scaleControlOptions: {
position: google.maps.ControlPosition.LEFT_CENTER
},
streetViewControl: false,
streetViewControlOptions: {
position: google.maps.ControlPosition.LEFT_CENTER
},
panControl: false,
panControlOptions: {
position: google.maps.ControlPosition.LEFT_CENTER
},
mapTypeControl: false,
mapTypeControlOptions: {
mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'qode_style'],
style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
position: google.maps.ControlPosition.LEFT_CENTER
},
mapTypeId: 'qode_style'
};
map=new google.maps.Map(document.getElementById("map_canvas"), myOptions);
map.mapTypes.set('qode_style', qodeMapType);
}
function codeAddress(data){
"use strict";
if(data==='')
return;
var contentString='
'+
'
'+
'
'+
'
'+
'
'+data+'
'+
'
'+
'
';
var infowindow=new google.maps.InfoWindow({
content: contentString
});
geocoder.geocode({ 'address': data}, function(results, status){
if(status===google.maps.GeocoderStatus.OK){
map.setCenter(results[0].geometry.location);
var marker=new google.maps.Marker({
map: map,
position: results[0].geometry.location,
icon: 'http://experience-ny.com/wp-content/uploads/2015/10/LogoPetit6.png',
title: data['store_title']
});
google.maps.event.addListener(marker, 'click', function(){
infowindow.open(map,marker);
});
}});
}
var $j=jQuery.noConflict();
$j(document).ready(function(){
"use strict";
showContactMap();
});
function showContactMap(){
"use strict";
if($j("#map_canvas").length > 0){
initialize();
codeAddress("");
codeAddress("");
codeAddress("");
codeAddress("");
codeAddress("Museum of the City of New York, New York, USA");
}}
var no_ajax_pages=[];
var qode_root='http://experience-ny.com/';
var theme_root='http://experience-ny.com/wp-content/themes/bridge/';
var header_style_admin="";
if(typeof no_ajax_obj!=='undefined'){
no_ajax_pages=no_ajax_obj.no_ajax_pages;
};
function getScrollAmountForStickyHeader(){return"undefined"!=typeof page_scroll_amount_for_sticky?amount=page_scroll_amount_for_sticky:$j(".carousel.full_screen").length?amount=$j(".carousel").height():amount=scroll_amount_for_sticky,amount}function headerSize(e){"use strict";if($j("header.page_header").hasClass("scroll_top")&&$j("header.page_header").hasClass("has_top")&&($j("header.page_header").hasClass("fixed")||$j("header.page_header").hasClass("fixed_hiding"))&&(e>=0&&e<=34?($j("header.page_header").css("top",-e),$j("header.page_header").css("margin-top",0),$j(".header_top").show()):e>34&&($j("header.page_header").css("top","-34px"),$j("header.page_header").css("margin-top",34),$j(".header_top").hide())),sticky_amount=getScrollAmountForStickyHeader(),$j("header").hasClass("regular")&&(header_height-logo_height>=10?$j(".q_logo a").height(logo_height):$j(".q_logo a").height(header_height-10),$j(".q_logo a img").css("height","100%")),$j("header.page_header").hasClass("fixed")&&($top_header_height=$j("header.page_header").hasClass("scroll_top")?34:0,header_height-e+$top_header_height>=min_header_height_scroll&&e>=$top_header_height?($j("header.page_header").removeClass("scrolled"),$j("header:not(.centered_logo.centered_logo_animate) nav.main_menu > ul > li > a").css("line-height",header_height-e+$top_header_height+"px"),$j("header:not(.centered_logo.centered_logo_animate) .side_menu_button").css("height",header_height-e+$top_header_height+"px"),$j("header:not(.centered_logo.centered_logo_animate) .shopping_cart_inner").css("height",header_height-e+$top_header_height+"px"),$j("header:not(.centered_logo.centered_logo_animate) .header_bottom .qode-login-register-widget.qode-user-logged-in .qode-logged-in-user").css("height",header_height-e+$top_header_height+"px"),$j("header:not(.centered_logo.centered_logo_animate) .logo_wrapper").css("height",header_height-e+$top_header_height+"px"),header_height-logo_height>0?$j("header:not(.centered_logo.centered_logo_animate) .q_logo a").css("height",logo_height+"px"):$j("header:not(.centered_logo.centered_logo_animate) .q_logo a").css("height",header_height-e+$top_header_height-10+"px")):e<$top_header_height?($j("header.page_header").removeClass("scrolled"),$j("header:not(.centered_logo.centered_logo_animate) nav.main_menu > ul > li > a").css("line-height",header_height+"px"),$j("header:not(.centered_logo.centered_logo_animate) .side_menu_button").css("height",header_height+"px"),$j("header:not(.centered_logo.centered_logo_animate) .shopping_cart_inner").css("height",header_height+"px"),$j("header:not(.centered_logo.centered_logo_animate) .header_bottom .qode-login-register-widget.qode-user-logged-in .qode-logged-in-user").css("height",header_height+"px"),$j("header:not(.centered_logo.centered_logo_animate) .logo_wrapper").css("height",header_height+"px"),header_height-logo_height>0?$j("header:not(.centered_logo.centered_logo_animate) .q_logo a").css("height",logo_height+"px"):$j("header:not(.centered_logo.centered_logo_animate) .q_logo a").css("height",header_height-10+"px")):header_height-e+$top_header_height ul > li > a").css("line-height",min_header_height_scroll+"px"),$j("header:not(.centered_logo.centered_logo_animate) .side_menu_button").css("height",min_header_height_scroll+"px"),$j("header:not(.centered_logo.centered_logo_animate) .shopping_cart_inner").css("height",min_header_height_scroll+"px"),$j("header:not(.centered_logo.centered_logo_animate) .header_bottom .qode-login-register-widget.qode-user-logged-in .qode-logged-in-user").css("height",min_header_height_scroll+"px"),$j("header:not(.centered_logo.centered_logo_animate) .logo_wrapper").css("height",min_header_height_scroll+"px"),min_header_height_scroll-logo_height>0?$j("header:not(.centered_logo.centered_logo_animate) .q_logo a").css("height",logo_height+"px"):$j("header:not(.centered_logo.centered_logo_animate) .q_logo a").css("height",min_header_height_scroll-10+"px")),$j("header.page_header").hasClass("centered_logo")&&$j("header.page_header").hasClass("centered_logo_animate")?header_height-e+$top_header_height=min_header_height_scroll&&logo_height>min_header_height_scroll-10&&e>=$top_header_height?$j(".q_logo a").height(header_height-e+$top_header_height-10):header_height-e+$top_header_height=min_header_height_scroll&&logo_height>min_header_height_scroll-10&&e<$top_header_height?$j(".q_logo a").height(header_height-10):header_height-e+$top_header_heightmin_header_height_scroll-10?$j(".q_logo a").height(min_header_height_scroll-10):header_height-e+$top_header_heightsticky_amount){if(!$j("header.page_header").hasClass("sticky")){$top_header_height=$j("header.page_header").hasClass("has_top")?34:0;var t=$j("header.page_header").hasClass("centered_logo")?$j("header.page_header").height():header_height+$top_header_height;$j("header.page_header").hasClass("menu_bottom")&&(t=header_height+60),$j("header.page_header").addClass("sticky"),$j(".content").css("padding-top",t),window.clearTimeout(sticky_animate),sticky_animate=window.setTimeout(function(){$j("header.page_header").addClass("sticky_animate")},100),min_header_height_sticky-logo_height>=10?$j(".q_logo a").height(logo_height):$j(".q_logo a").height(min_header_height_sticky-10),$j("header.page_header").hasClass("menu_bottom")&&initDropDownMenu()}min_header_height_sticky-logo_height>=10?$j(".q_logo a").height(logo_height):$j(".q_logo a").height(min_header_height_sticky-10)}else $j("header.page_header").hasClass("sticky")&&($j("header").removeClass("sticky_animate"),$j("header").removeClass("sticky"),$j(".content").css("padding-top","0px"),$j("header.page_header").hasClass("menu_bottom")&&initDropDownMenu()),setMargingsForLeftAndRightMenu(),$j("header.page_header").hasClass("centered_logo")?($j(".q_logo a").height(logo_height),$j(".q_logo img").height("auto")):header_height-logo_height>=10?$j(".q_logo a").height(logo_height):$j(".q_logo a").height(header_height-10),$j(".q_logo a img").css("height","100%");setLeftPostionedMenuPadding()}}function setMargingsForLeftAndRightMenu(){"use strict";if($j("header.page_header").hasClass("stick_with_left_right_menu")&&!$j("header.page_header").hasClass("left_right_margin_set")){var e=$j(".q_logo a img").width()/2;0==$scroll&&0!=e&&$j("header.page_header").addClass("left_right_margin_set"),$j(".logo_wrapper").width(2*e),$j("nav.main_menu.left_side > ul > li:last-child").css("margin-right",e),$j("nav.main_menu.right_side > ul > li:first-child").css("margin-left",e),$j(".rtl nav.main_menu.left_side > ul > li:first-child").css("margin-right",e),$j(".rtl nav.main_menu.left_side > ul > li:last-child").css("margin-right",0),$j(".rtl nav.main_menu.right_side > ul > li:last-child").css("margin-left",e),$j(".rtl nav.main_menu.right_side > ul > li:first-child").css("margin-left",0)}}function setLeftPostionedMenuPadding(){"use strict";var e=$j("header:not(.centered_logo) nav.main_menu");if(e.length&&e.hasClass("left")){var t=$j(".q_logo a img").filter(function(){return"1"==$j(this).css("opacity")});e.css("left",t.width())}}function logoSizeOnSmallScreens(){"use strict";80=0;--a)e.css(o[a],i+" rotate(0.01deg)")},s=function(e,t,i){return e+i/100*(t-e)};e.fn.transformAnimate=function(t){var o={transform:"matrix(1,0,0,1,0,0)"};e.extend(o,t),this.css("percentAnim",0);var r=a(this),d=i(o.transform);return o.step=function(i,o){var a=e(this),l=r.map(function(e,t){return s(e,d[t],i)});n(a,l),t.step&&t.step.apply(this,[l,o])},this.stop().animate({percentAnim:100},o)}}(jQuery),$j(".carousel").each(function(){function i(e,t){var i=t;e.hasClass("advanced_responsiveness")?$window_width>j[0]?i=t:$window_width>j[1]?i=.75*t:$window_width>j[2]?i=.6*t:$window_width>j[3]?i=.55*t:$window_width<=j[3]&&(i=.45*t):$window_width>j[0]?i=t:$window_width>j[1]?i=.8*t:$window_width>j[2]?i=.7*t:$window_width<=j[2]&&(i=1*t),e.css({height:i+"px"}),e.find(".qode_slider_preloader").css({height:i+"px"}),e.find(".qode_slider_preloader .ajax_loader").css({display:"block"}),e.find(".item").css({height:i+"px"})}function o(e){p.css({height:e+"px"}),p.find(".qode_slider_preloader").css({height:e+"px"}),p.find(".qode_slider_preloader .ajax_loader").css({display:"block"}),p.find(".item").css({height:e+"px"})}function a(e,t){window["slider_graphic_width_"+t]=[],window["slider_graphic_height_"+t]=[],window["slider_svg_width_"+t]=[],window["slider_svg_height_"+t]=[],window["slider_title_"+t]=[],window["slider_subtitle_"+t]=[],window["slider_text_"+t]=[],window["slider_button1_"+t]=[],window["slider_button2_"+t]=[],window["slider_separator_"+t]=[],window["slider_graphic_width_"+t].push(parseFloat(e.find(".thumb img").data("width"))),window["slider_graphic_height_"+t].push(parseFloat(e.find(".thumb img").data("height"))),window["slider_svg_width_"+t].push(parseFloat(e.find(".qode_slide-svg-holder svg").attr("width"))),window["slider_svg_height_"+t].push(parseFloat(e.find(".qode_slide-svg-holder svg").attr("height"))),window["slider_title_"+t].push(parseFloat(e.find(".q_slide_title").css("font-size"))),window["slider_subtitle_"+t].push(parseFloat(e.find(".q_slide_subtitle").css("font-size"))),window["slider_text_"+t].push(parseFloat(e.find(".q_slide_text").css("font-size"))),window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("font-size"))),window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("font-size"))),window["slider_title_"+t].push(parseFloat(e.find(".q_slide_title").css("line-height"))),window["slider_subtitle_"+t].push(parseFloat(e.find(".q_slide_subtitle").css("line-height"))),window["slider_text_"+t].push(parseFloat(e.find(".q_slide_text").css("line-height"))),window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("line-height"))),window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("line-height"))),window["slider_title_"+t].push(parseFloat(e.find(".q_slide_title").css("letter-spacing"))),window["slider_subtitle_"+t].push(parseFloat(e.find(".q_slide_subtitle").css("letter-spacing"))),window["slider_text_"+t].push(parseFloat(e.find(".q_slide_text").css("letter-spacing"))),window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("letter-spacing"))),window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("letter-spacing"))),window["slider_title_"+t].push(parseFloat(e.find(".q_slide_title").css("margin-bottom"))),window["slider_subtitle_"+t].push(parseFloat(e.find(".q_slide_subtitle").css("margin-bottom"))),window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("height"))),window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("height"))),0!=parseFloat(e.find(".qbutton:eq(0)").css("width"))?window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("width"))):window["slider_button1_"+t].push(0),0!=parseFloat(e.find(".qbutton:eq(1)").css("width"))?window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("width"))):window["slider_button2_"+t].push(0),window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("padding-left"))),window["slider_button1_"+t].push(parseFloat(e.find(".qbutton:eq(0)").css("padding-right"))),window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("padding-left"))),window["slider_button2_"+t].push(parseFloat(e.find(".qbutton:eq(1)").css("padding-right"))),window["slider_separator_"+t].push(parseFloat(e.find(".separator").css("margin-top"))),window["slider_separator_"+t].push(parseFloat(e.find(".separator").css("margin-bottom")))}function n(e,t){$window_width>j[0]?(c=v[0],h=w[0],_=b[0],u=q[0],f=y[0]):$window_width>j[1]?(c=v[1],h=w[1],_=b[1],u=q[1],f=y[1]):$window_width>j[2]?(c=v[2],h=w[2],_=b[2],u=q[2],f=y[2]):$window_width>j[3]?(c=v[3],h=w[3],_=b[3],u=q[3],f=y[3]):$window_width>j[4]?(c=v[4],h=w[4],_=b[4],u=q[4],f=y[4]):$window_width>j[5]?(c=v[5],h=w[5],_=b[5],u=q[5],f=y[5]):(c=v[6],h=w[6],_=b[6],u=q[6],f=y[6]);var i=h,o=_,a=u;$window_width<=j[0]&&(i=h/2,o=_/2,a=u/2),e.find(".thumb").css({width:Math.round(window["slider_graphic_width_"+t][0]*c)+"px"}).css({height:Math.round(window["slider_graphic_height_"+t][0]*c)+"px"}),e.find(".qode_slide-svg-holder svg").css({width:Math.round(window["slider_svg_width_"+t][0]*c)+"px"}).css({height:Math.round(window["slider_svg_height_"+t][0]*c)+"px"}),e.find(".q_slide_title").css({"font-size":Math.round(window["slider_title_"+t][0]*h)+"px"}),e.find(".q_slide_title").css({"line-height":Math.round(window["slider_title_"+t][1]*h)+"px"}),e.find(".q_slide_title").css({"letter-spacing":Math.round(window["slider_title_"+t][2]*i)+"px"}),e.find(".q_slide_title").css({"margin-bottom":Math.round(window["slider_title_"+t][3]*h)+"px"}),e.find(".q_slide_subtitle").css({"font-size":Math.round(window["slider_subtitle_"+t][0]*_)+"px"}),e.find(".q_slide_subtitle").css({"line-height":Math.round(window["slider_subtitle_"+t][1]*_)+"px"}),e.find(".q_slide_subtitle").css({"letter-spacing":Math.round(window["slider_subtitle_"+t][2]*o)+"px"}),e.find(".q_slide_subtitle").css({"margin-bottom":Math.round(window["slider_subtitle_"+t][3]*_)+"px"}),e.find(".q_slide_text").css({"font-size":Math.round(window["slider_text_"+t][0]*u)+"px"}),e.find(".q_slide_text").css({"line-height":Math.round(window["slider_text_"+t][1]*u)+"px"}),e.find(".q_slide_text").css({"letter-spacing":Math.round(window["slider_text_"+t][2]*a)+"px"}),e.find(".qbutton:eq(0)").css({"font-size":Math.round(window["slider_button1_"+t][0]*f)+"px"}),e.find(".qbutton:eq(1)").css({"font-size":Math.round(window["slider_button2_"+t][0]*f)+"px"}),e.find(".qbutton:eq(0)").css({"line-height":Math.round(window["slider_button1_"+t][1]*f)+"px"}),e.find(".qbutton:eq(1)").css({"line-height":Math.round(window["slider_button2_"+t][1]*f)+"px"}),e.find(".qbutton:eq(0)").css({"letter-spacing":Math.round(window["slider_button1_"+t][2]*f)+"px"}),e.find(".qbutton:eq(1)").css({"letter-spacing":Math.round(window["slider_button2_"+t][2]*f)+"px"}),e.find(".qbutton:eq(0)").css({height:Math.round(window["slider_button1_"+t][3]*f)+"px"}),e.find(".qbutton:eq(1)").css({height:Math.round(window["slider_button2_"+t][3]*f)+"px"}),0!=window["slider_button1_"+t][4]?e.find(".qbutton:eq(0)").css({width:Math.round(window["slider_button1_"+t][4]*f)+"px"}):e.find(".qbutton:eq(0)").css({width:"auto"}),0!=window["slider_button2_"+t][4]?e.find(".qbutton:eq(1)").css({width:Math.round(window["slider_button2_"+t][4]*f)+"px"}):e.find(".qbutton:eq(1)").css({width:"auto"}),e.find(".qbutton:eq(0)").css({"padding-left":Math.round(window["slider_button1_"+t][5]*f)+"px"}),e.find(".qbutton:eq(1)").css({"padding-left":Math.round(window["slider_button2_"+t][5]*f)+"px"}),e.find(".qbutton:eq(0)").css({"padding-right":Math.round(window["slider_button1_"+t][6]*f)+"px"}),e.find(".qbutton:eq(1)").css({"padding-right":Math.round(window["slider_button2_"+t][6]*f)+"px"}),e.find(".separator").css({"margin-top":Math.round(window["slider_separator_"+t][0]*h)+"px"}),e.find(".separator").css({"margin-bottom":Math.round(window["slider_separator_"+t][1]*h)+"px"})}function s(e,t){e.find(".thumb").css({width:Math.round(window["slider_graphic_width_"+t][0])+"px"}).css({height:Math.round(window["slider_graphic_height_"+t][0])+"px"}),e.find(".qode_slide-svg-holder svg").css({width:Math.round(window["slider_svg_width_"+t][0])+"px"}).css({height:Math.round(window["slider_svg_height_"+t][0])+"px"}),e.find(".q_slide_title").css({"font-size":Math.round(window["slider_title_"+t][0])+"px"}),e.find(".q_slide_title").css({"line-height":Math.round(window["slider_title_"+t][1])+"px"}),e.find(".q_slide_title").css({"letter-spacing":Math.round(window["slider_title_"+t][2])+"px"}),e.find(".q_slide_title").css({"margin-bottom":Math.round(window["slider_title_"+t][3])+"px"}),e.find(".q_slide_subtitle").css({"font-size":Math.round(window["slider_subtitle_"+t][0])+"px"}),e.find(".q_slide_subtitle").css({"line-height":Math.round(window["slider_subtitle_"+t][1])+"px"}),e.find(".q_slide_subtitle").css({"letter-spacing":Math.round(window["slider_subtitle_"+t][2])+"px"}),e.find(".q_slide_subtitle").css({"margin-bottom":Math.round(window["slider_subtitle_"+t][3])+"px"}),e.find(".q_slide_text").css({"font-size":Math.round(window["slider_text_"+t][0])+"px"}),e.find(".q_slide_text").css({"line-height":Math.round(window["slider_text_"+t][1])+"px"}),e.find(".q_slide_text").css({"letter-spacing":Math.round(window["slider_text_"+t][2])+"px"}),e.find(".qbutton:eq(0)").css({"font-size":Math.round(window["slider_button1_"+t][0])+"px"}),e.find(".qbutton:eq(1)").css({"font-size":Math.round(window["slider_button2_"+t][0])+"px"}),e.find(".qbutton:eq(0)").css({"line-height":Math.round(window["slider_button1_"+t][1])+"px"}),e.find(".qbutton:eq(1)").css({"line-height":Math.round(window["slider_button2_"+t][1])+"px"}),e.find(".qbutton:eq(0)").css({"letter-spacing":Math.round(window["slider_button1_"+t][2])+"px"}),e.find(".qbutton:eq(1)").css({"letter-spacing":Math.round(window["slider_button2_"+t][2])+"px"}),e.find(".qbutton:eq(0)").css({height:Math.round(window["slider_button1_"+t][3])+"px"}),e.find(".qbutton:eq(1)").css({height:Math.round(window["slider_button2_"+t][3])+"px"}),0!=window["slider_button1_"+t][4]?e.find(".qbutton:eq(0)").css({width:Math.round(window["slider_button1_"+t][4])+"px"}):e.find(".qbutton:eq(0)").css({width:"auto"}),0!=window["slider_button2_"+t][4]?e.find(".qbutton:eq(1)").css({width:Math.round(window["slider_button2_"+t][4])+"px"}):e.find(".qbutton:eq(1)").css({width:"auto"}),e.find(".qbutton:eq(0)").css({"padding-left":Math.round(window["slider_button1_"+t][5])+"px"}),e.find(".qbutton:eq(1)").css({"padding-left":Math.round(window["slider_button2_"+t][5])+"px"}),e.find(".qbutton:eq(0)").css({"padding-right":Math.round(window["slider_button1_"+t][6])+"px"}),e.find(".qbutton:eq(1)").css({"padding-right":Math.round(window["slider_button2_"+t][6])+"px"}),e.find(".separator").css({"margin-top":Math.round(window["slider_separator_"+t][0])+"px"}),e.find(".separator").css({"margin-bottom":Math.round(window["slider_separator_"+t][1])+"px"})}function r(e,t){1==e?(p.find(".left.carousel-control .prev").html(t),p.find(".right.carousel-control .next").html(e+1)):e==t?(p.find(".left.carousel-control .prev").html(e-1),p.find(".right.carousel-control .next").html(1)):(p.find(".left.carousel-control .prev").html(e-1),p.find(".right.carousel-control .next").html(e+1))}function d(){p.find(".carousel-inner .item:first-child").addClass("active"),checkSliderForHeaderStyle($j(".carousel .active"),p.hasClass("header_effect")),p.hasClass("slider_thumbs")&&(r(1,M),p.find(".active").next("div").find(".image").length?(src=e.exec(p.find(".active").next("div").find(".image").attr("style")),next_image=new Image,next_image.src=src[1]):(next_image=p.find(".active").next("div").find("> .video").clone(),next_image.find(".video-overlay").remove(),next_image.find(".video-wrap").width(170).height(95),next_image.find(".mejs-container").width(170).height(95),next_image.find("video").width(170).height(95)),p.find(".right.carousel-control .img").html(next_image).find("img, div.video").addClass("old"),p.find(".carousel-inner .item:last-child .image").length?(src=e.exec(p.find(".carousel-inner .item:last-child .image").attr("style")),prev_image=new Image,prev_image.src=src[1]):(prev_image=p.find(".carousel-inner .item:last-child > .video").clone(),prev_image.find(".video-overlay").remove(),prev_image.find(".video-wrap").width(170).height(95),prev_image.find(".mejs-container").width(170).height(95),prev_image.find("video").width(170).height(95)),p.find(".left.carousel-control .img").html(prev_image).find("img, div.video").addClass("old")),p.hasClass("q_auto_start")?p.carousel({interval:k,pause:!1}):p.carousel({interval:0,pause:!1}),p.find(".item video").length&&initVideoBackgroundSize(),p.hasClass("advanced_responsiveness")&&(p.hasClass("responsive_height")||p.hasClass("full_screen"))&&p.find(".item").each(function(e){a($j(this),e),n($j(this),e)}),$j(".carousel-inner .item:first-child").hasClass("animate_image")&&$window_width>1e3&&p.find(".carousel-inner .item.animate_image:first-child .image").transformAnimate({transform:"matrix("+t[$j(".carousel-inner .item:first-child").data("animate_image")]+")",duration:3e4})}var l,c,h,_,u,f,p=$j(this),l=$j(window).width()<1e3?$j("header.page_header").height():0,g=$window_width>1e3&&!$j("header.page_header").hasClass("transparent")&&0==$j("body.paspartu_on_top_fixed").length?$j("header.page_header").height():0,m=$j(".paspartu_outer:not(.disable_top_paspartu)").length>0?Math.round($window_width*paspartu_width+g):0,$=$j(".paspartu_outer.paspartu_on_bottom_slider").length>0?Math.round($window_width*paspartu_width):0,j=[1300,1e3,768];if(p.hasClass("advanced_responsiveness")){j=[1600,1200,900,650,500,320],p.data("q_responsive_breakpoints")&&"set2"==p.data("q_responsive_breakpoints")&&(j=[1600,1300,1e3,768,567,320]);var v=p.data("q_responsive_graphic_coefficients").split(","),w=p.data("q_responsive_title_coefficients").split(","),b=p.data("q_responsive_subtitle_coefficients").split(","),q=p.data("q_responsive_text_coefficients").split(","),y=p.data("q_responsive_button_coefficients").split(",")}if(p.hasClass("full_screen"))p.css({height:$j(window).height()-l-m-$+"px"}),p.find(".qode_slider_preloader").css({height:$j(window).height()-l-m-$+"px"}),p.find(".qode_slider_preloader .ajax_loader").css({display:"block"}),p.find(".item").css({height:$j(window).height()-l-m-$+"px"}),$j(".paspartu_outer:not(.disable_top_paspartu)").length&&($j("body").hasClass("paspartu_on_top_fixed")||p.closest(".q_slider").css("padding-top",Math.round(g+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&p.closest(".q_slider").css("padding-bottom",Math.round($window_width*paspartu_width)),$j(window).resize(function(){l=$j(window).width()<1e3?$j("header.page_header").height():0,g=$window_width>1e3&&!$j("header.page_header").hasClass("transparent")&&0==$j("body.paspartu_on_top_fixed").length?$j("header.page_header").height():0,m=$j(".paspartu_outer:not(.disable_top_paspartu)").length>0?Math.round($window_width*paspartu_width+g):0,$=$j(".paspartu_outer.paspartu_on_bottom_slider").length>0?Math.round($window_width*paspartu_width):0,p.css({height:$j(window).height()-l-m-$+"px"}),p.find(".qode_slider_preloader .ajax_loader").css({display:"block"}),p.find(".item").css({height:$j(window).height()-l-m-$+"px"}),$j(".paspartu_outer:not(.disable_top_paspartu)").length&&($j("body").hasClass("paspartu_on_top_fixed")||p.closest(".q_slider").css("padding-top",Math.round(g+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&p.closest(".q_slider").css("padding-bottom",Math.round($window_width*paspartu_width)),p.hasClass("advanced_responsiveness")&&p.find(".item").each(function(e){n($j(this),e)})});else if(p.hasClass("responsive_height")){var C=p.data("height");p.find(".qode_slider_preloader").css({height:p.height()-l-m-$+"px",display:"block"}),$j(".paspartu_outer:not(.disable_top_paspartu)").length&&($j("body").hasClass("paspartu_on_top_fixed")||p.closest(".q_slider").css("padding-top",Math.round(g+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&p.closest(".q_slider").css("padding-bottom",Math.round($window_width*paspartu_width)),i(p,C),$j(window).resize(function(){$j(".paspartu_outer:not(.disable_top_paspartu)").length&&(g=$window_width>1e3&&!$j("header.page_header").hasClass("transparent")?$j("header.page_header").height():0,$j("body").hasClass("paspartu_on_top_fixed")||p.closest(".q_slider").css("padding-top",Math.round(g+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&p.closest(".q_slider").css("padding-bottom",Math.round($window_width*paspartu_width)),i(p,C),p.hasClass("advanced_responsiveness")&&p.find(".item").each(function(e){n($j(this),e)})})}else p.find(".qode_slider_preloader").css({height:p.height()-l+"px",display:"block"}),p.find(".qode_slider_preloader .ajax_loader").css({display:"block"}),$j(".paspartu_outer:not(.disable_top_paspartu)").length&&($j("body").hasClass("paspartu_on_top_fixed")||p.closest(".q_slider").css("padding-top",Math.round(g+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&p.closest(".q_slider").css("padding-bottom",Math.round($window_width*paspartu_width)),p.hasClass("advanced_responsiveness")&&p.find(".item").each(function(e){a($j(this),e),n($j(this),e)}),$window_width<1e3?i(p,C):o(C),$j(window).resize(function(){$j(".paspartu_outer:not(.disable_top_paspartu)").length&&(g=$window_width>1e3&&!$j("header.page_header").hasClass("transparent")?$j("header.page_header").height():0,$j("body").hasClass("paspartu_on_top_fixed")||p.closest(".q_slider").css("padding-top",Math.round(g+$window_width*paspartu_width))),$j(".paspartu_outer.paspartu_on_bottom_slider").length&&p.closest(".q_slider").css("padding-bottom",Math.round($window_width*paspartu_width)),$window_width<1e3?(i(p,C),p.hasClass("advanced_responsiveness")&&p.find(".item").each(function(e){n($j(this),e)})):(o(C),p.hasClass("advanced_responsiveness")&&p.find(".item").each(function(e){s($j(this),e)}))});if($j("body:not(.boxed):not(.vertical_menu_transparency):not(.vertical_menu_hidden):not(.page-template-landing_page-php)").hasClass("vertical_menu_enabled")&&$j(window).width()>1e3){var x=$j("body").hasClass("paspartu_enabled")?2*Math.round($window_width*paspartu_width):0;p.find(".carousel-inner").width($window_width-260-x),$j(window).resize(function(){$j(window).width()>1e3?(x=$j("body").hasClass("paspartu_enabled")?2*Math.round($window_width*paspartu_width):0,p.find(".carousel-inner").width($window_width-260-x)):p.find(".carousel-inner").css("width","100%")})}if($j("body:not(.boxed):not(.vertical_menu_transparency):not(.page-template-landing_page-php)").hasClass("vertical_menu_hidden")&&$window_width>1e3){var x=$j("body").hasClass("paspartu_enabled")?2*Math.round($window_width*paspartu_width):0;p.find(".carousel-inner").width($window_width-40-x),$j(window).resize(function(){$j(window).width()>1e3?(x=$j("body").hasClass("paspartu_enabled")?2*Math.round($window_width*paspartu_width):0,p.find(".carousel-inner").width($window_width-40-x)):p.find(".carousel-inner").css("width","100%")})}$j(window).scroll(function(){$scroll>p.height()+$j("header.page_header").height()&&$j(window).width()>1e3?p.find(".carousel-inner, .carousel-indicators, button").hide():p.find(".carousel-inner, .carousel-indicators, button").show()});var k=p.data("slide_animation");""===k&&(k=6e3);var M=$j("div.item").length;if($j("html").hasClass("touch")){if(p.find(".item:first-child .mobile-video-image").length>0){if(src=e.exec(p.find(".item:first-child .mobile-video-image").attr("style"))){var S=new Image;S.src=src[1],$j(S).load(function(){$j(".qode_slider_preloader").fadeOut(500),d(),checkSVG(p)})}}else if(src=e.exec(p.find(".item:first-child .image").attr("style"))){var S=new Image;S.src=src[1],$j(S).load(function(){$j(".qode_slider_preloader").fadeOut(500),d(),checkSVG(p)})}}else if(p.find(".item:first-child video").length>0)p.find(".item:first-child video").get(0).addEventListener("loadeddata",function(){$j(".qode_slider_preloader").fadeOut(500),d(),checkSVG(p)});else if(src=e.exec(p.find(".item:first-child .image").attr("style"))){var S=new Image;S.src=src[1],$j(S).load(function(){$j(".qode_slider_preloader").fadeOut(500),d(),checkSVG(p)})}p.on("slide.bs.carousel",function(){p.addClass("in_progress"),p.find(".active .slider_content_outer").fadeTo(800,0)}),p.on("slid.bs.carousel",function(){if(p.removeClass("in_progress"),p.find(".active .slider_content_outer").fadeTo(0,1),checkSVG(p),$j("div.item.animate_image .image").stop().css({transform:"","-webkit-transform":""}),$j("div.item.active").hasClass("animate_image")&&$window_width>1e3&&$j("div.item.animate_image.active .image").transformAnimate({transform:"matrix("+t[$j("div.item.animate_image.active").data("animate_image")]+")",duration:3e4}),p.hasClass("slider_thumbs")){r($j("div.item").index($j("div.item.active")[0])+1,M),p.find(".active").prev("div.item").length?(p.find(".active").prev("div").find(".image").length?(src=e.exec(p.find(".active").prev("div").find(".image").attr("style")),prev_image=new Image,
prev_image.src=src[1]):(prev_image=p.find(".active").prev("div").find("> .video").clone(),prev_image.find(".video-overlay").remove(),prev_image.find(".video-wrap").width(170).height(95),prev_image.find(".mejs-container").width(170).height(95),prev_image.find("video").width(170).height(95)),p.find(".left.carousel-control .img .old").fadeOut(300,function(){$j(this).remove()}),p.find(".left.carousel-control .img").append(prev_image).find("img, div.video").fadeIn(300).addClass("old")):(p.find(".carousel-inner .item:last-child .image").length?(src=e.exec(p.find(".carousel-inner .item:last-child .image").attr("style")),prev_image=new Image,prev_image.src=src[1]):(prev_image=p.find(".carousel-inner .item:last-child > .video").clone(),prev_image.find(".video-overlay").remove(),prev_image.find(".video-wrap").width(170).height(95),prev_image.find(".mejs-container").width(170).height(95),prev_image.find("video").width(170).height(95)),p.find(".left.carousel-control .img .old").fadeOut(300,function(){$j(this).remove()}),p.find(".left.carousel-control .img").append(prev_image).find("img, div.video").fadeIn(300).addClass("old")),p.find(".active").next("div.item").length?(p.find(".active").next("div").find(".image").length?(src=e.exec(p.find(".active").next("div").find(".image").attr("style")),next_image=new Image,next_image.src=src[1]):(next_image=p.find(".active").next("div").find("> .video").clone(),next_image.find(".video-overlay").remove(),next_image.find(".video-wrap").width(170).height(95),next_image.find(".mejs-container").width(170).height(95),next_image.find("video").width(170).height(95)),p.find(".right.carousel-control .img .old").fadeOut(300,function(){$j(this).remove()}),p.find(".right.carousel-control .img").append(next_image).find("img, div.video").fadeIn(300).addClass("old")):(p.find(".carousel-inner .item:first-child .image").length?(src=e.exec(p.find(".carousel-inner .item:first-child .image").attr("style")),next_image=new Image,next_image.src=src[1]):(next_image=p.find(".carousel-inner .item:first-child > .video").clone(),next_image.find(".video-overlay").remove(),next_image.find(".video-wrap").width(170).height(95),next_image.find(".mejs-container").width(170).height(95),next_image.find("video").width(170).height(95)),p.find(".right.carousel-control .img .old").fadeOut(300,function(){$j(this).remove()}),p.find(".right.carousel-control .img").append(next_image).find("img, div.video").fadeIn(300).addClass("old"))}}),p.swipe({swipeLeft:function(e,t,i,o,a){p.carousel("next")},swipeRight:function(e,t,i,o,a){p.carousel("prev")},threshold:20})}),$j(".no-touch .carousel").length&&(skrollr_slider=skrollr.init({edgeStrategy:"set",smoothScrolling:!0,forceHeight:!1}),skrollr_slider.refresh())}}function checkSliderForHeaderStyle(e,t){"use strict";var i="",o=e.data("navigation-color");e.hasClass("light")&&(i="light"),e.hasClass("dark")&&(i="dark"),""!==i?(t&&($j("header.page_header").removeClass("dark light").addClass(i),$j("aside.vertical_menu_area").removeClass("dark light").addClass(i)),$j(".carousel .carousel-control, .carousel .carousel-indicators").removeClass("dark light").addClass(i)):(t&&($j("header.page_header").removeClass("dark light").addClass(default_header_style),$j("aside.vertical_menu_area").removeClass("dark light").addClass(default_header_style)),$j(".carousel .carousel-control, .carousel .carousel-indicators").removeClass("dark light").addClass(default_header_style)),void 0!==o?($j(".carousel-control .thumb_holder .thumb_top, .carousel-indicators li").css("background-color",o),$j(".carousel-control .prev_nav, .carousel-control .next_nav").css("border-color",o),$j(".carousel-control .prev_nav i, .carousel-control .next_nav i").css("color",o)):($j(".carousel-control .thumb_holder .thumb_top, .carousel-indicators li").css("background-color",""),$j(".carousel-control .prev_nav, .carousel-control .next_nav").css("border-color",""),$j(".carousel-control .prev_nav i, .carousel-control .next_nav i").css("color",""))}function calculateHeights(){$j(".portfolio_slides").length&&$j(".portfolio_slides").each(function(){$j(this).parents(".caroufredsel_wrapper").css({height:$j(this).find("li.item").outerHeight()-3+"px"})}),$j(".qode_carousels .slides").length&&$j(".qode_carousels .slides").each(function(){$j(this).parents(".caroufredsel_wrapper").css({height:$j(this).find("li.item").outerHeight()+"px"})}),$j(".blog_slides").length&&$j(".blog_slides").each(function(){$j(this).parents(".caroufredsel_wrapper").css({height:$j(this).find("li.item").outerHeight()-3+"px"})}),$j(".qode-bct-posts").length&&$j(".qode-bct-posts").each(function(){$j(this).parents(".caroufredsel_wrapper").css({height:$j(this).find(".qode-bct-post").outerHeight()+"px"})})}function initQodeCarousel(){"use strict";$j(".qode_carousels").length&&($j(".qode_carousels").each(function(){var e=$j(this),t=6;void 0!==e.data("number-of-visible-items")&&""!==e.data("number-of-visible-items")&&(4===e.data("number-of-visible-items")?t=4:5===e.data("number-of-visible-items")&&(t=5));var i=1==e.parents(".grid_section").length?170:315,o=6;4===t?(i=1==e.parents(".grid_section").length?255:472,o=4):5===t&&(i=1==e.parents(".grid_section").length?204:378,o=5),e.find(".slides").carouFredSel({circular:!0,responsive:!0,scroll:{items:1,duration:1e3,pauseOnHover:!1},items:{width:i,visible:{min:1,max:o}},auto:!0,mousewheel:!1,swipe:{onMouse:!0,onTouch:!0}}).animate({opacity:1},1e3)}),calculateHeights())}function initPortfolioSlider(){"use strict";$j(".portfolio_slider").length&&($j(".portfolio_slider").each(function(){var e,t;switch(e=void 0!==$j(this).data("number_of_items")?$j(this).data("number_of_items"):"auto"){case 4:t=500;break;case 5:t=350;break;default:t=500}var i=1==$j(this).parents(".grid_section").length?3:e,o=1==$j(this).parents(".grid_section").length?353:t;$j(this).find(".portfolio_slides").carouFredSel({circular:!0,responsive:!0,scroll:1,prev:{button:function(){return $j(this).parent().siblings(".caroufredsel-direction-nav").find("#caroufredsel-prev")}},next:{button:function(){return $j(this).parent().siblings(".caroufredsel-direction-nav").find("#caroufredsel-next")}},items:{width:o,visible:{min:1,max:i}},auto:!1,mousewheel:!1,swipe:{onMouse:!0,onTouch:!0}}).animate({opacity:1},1e3)}),calculateHeights(),$j(".portfolio_slider .flex-direction-nav a").click(function(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}))}function initBlogSlider(){"use strict";$j(".blog_slider").length&&($j(".blog_slider").each(function(){var e,t,i,o=$j(this),a=!1;if(e=void 0!==o.data("blogs_shown")?o.data("blogs_shown"):o.hasClass("simple_slider")?1:"auto",a=o.data("auto_start"),o.hasClass("simple_slider"))t=1,i=300;else{t=1==o.parents(".grid_section").length?3:e;var n;switch(e){case 3:n=667;break;case 4:n=500;break;case 5:n=400;break;case 6:n=334;break;default:n=500}i=1==o.parents(".grid_section").length?353:n}o.find(".blog_slides").carouFredSel({circular:!0,responsive:!0,scroll:1,prev:{button:function(){return $j(this).parent().siblings(".caroufredsel-direction-nav").find("#caroufredsel-prev")}},next:{button:function(){return $j(this).parent().siblings(".caroufredsel-direction-nav").find("#caroufredsel-next")}},items:{width:i,visible:{min:1,max:t}},auto:a,mousewheel:!1,swipe:{onMouse:!0,onTouch:!0}}).animate({opacity:1},1e3)}),calculateHeights(),$j(".blog_slider .flex-direction-nav a").click(function(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}))}function qodeInitBlogCarouselTitled(){"use strict";$j(".qode-blog-carousel-titled").length&&($j(".qode-blog-carousel-titled").each(function(){var e,t=$j(this),i=4;void 0!==t.data("posts-shown")&&(i=t.data("posts-shown")),$window_width<769&&i>2&&(i=2),$window_width<601&&i>1&&(i=1),e=t.width()/i,t.find(".qode-bct-posts").carouFredSel({circular:!0,responsive:!0,scroll:1,prev:{button:function(){return t.find(".qode-bct-caroufredsel-prev")}},next:{button:function(){return t.find(".qode-bct-caroufredsel-next")}},items:{width:e,visible:{min:1,max:i}},auto:!1,mousewheel:!1,swipe:{onMouse:!0,onTouch:!0}}),t.animate({opacity:1},1e3)}),calculateHeights())}function initSideMenu(){"use strict";$j("body").hasClass("side_area_uncovered_from_content")&&$j(".side_menu_button_wrapper a.side_menu_button_link, a.close_side_menu").click(function(e){if(e.preventDefault(),$j(".side_menu").css({right:"0"}),$j(".side_menu_button_wrapper a.side_menu_button_link").hasClass("opened")){$j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"),$j("body").removeClass("right_side_menu_opened");var t=setTimeout(function(){$j(".side_menu").css({visibility:"hidden"}),clearTimeout(t)},400)}else $j(".side_menu").css({visibility:"visible"}),$j(this).addClass("opened"),$j("body").addClass("right_side_menu_opened"),current_scroll=$j(window).scrollTop(),$j(window).scroll(function(){if(Math.abs($scroll-current_scroll)>400){$j("body").removeClass("right_side_menu_opened"),$j(".side_menu_button_wrapper a").removeClass("opened");var e=setTimeout(function(){$j(".side_menu").css({visibility:"hidden"}),clearTimeout(e)},400)}})}),$j("body").hasClass("side_menu_slide_with_content")&&$j(".side_menu_button_wrapper a.side_menu_button_link, a.close_side_menu").click(function(e){e.preventDefault(),$j(".side_menu_button_wrapper a.side_menu_button_link").hasClass("opened")?($j("body").removeClass("side_menu_open"),$j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"),$j("body").removeClass("side_menu_open")):($j(this).addClass("opened"),$j("body").addClass("side_menu_open"),current_scroll=$j(window).scrollTop(),$j(window).scroll(function(){Math.abs($scroll-current_scroll)>400&&($j("body").removeClass("side_menu_open"),$j(".side_menu_button_wrapper a").removeClass("opened"))})),e.stopPropagation(),$j(".wrapper").click(function(){e.preventDefault(),$j("body").removeClass("side_menu_open"),$j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"),$j("body").removeClass("side_menu_open")})}),$j("body").hasClass("side_menu_slide_from_right")&&($j(".wrapper").prepend(''),$j(".side_menu_button_wrapper a.side_menu_button_link, a.close_side_menu").click(function(e){e.preventDefault(),$j(".side_menu_button_wrapper a.side_menu_button_link").hasClass("opened")?($j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"),$j("body").removeClass("right_side_menu_opened")):($j(this).addClass("opened"),$j("body").addClass("right_side_menu_opened"),$j(" .wrapper .cover").click(function(){$j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"),$j("body").removeClass("right_side_menu_opened"),$j(".side_menu_button_wrapper a").removeClass("opened")}),current_scroll=$j(window).scrollTop(),$j(window).scroll(function(){Math.abs($scroll-current_scroll)>400&&($j("body").removeClass("right_side_menu_opened"),$j(".side_menu_button_wrapper a").removeClass("opened"))}))}))}function setDropDownMenuPosition(){"use strict";var e=$j(".drop_down > ul > li.narrow");e.each(function(t){var i,o=$j(window).width()-16;switch(!0){case qode_body.hasClass("qode_grid_1300"):i=1350;break;case qode_body.hasClass("qode_grid_1200"):i=1250;break;default:i=1150}var a=$j(e[t]).offset().left,n=$j(e[t]).find(".second .inner ul").width(),s=0;s=$j("body").hasClass("boxed")?i-(a-(o-i)/2)+17:o-a+17;var r;$j(e[t]).find("li.sub").length>0&&(r=s-n),(s ul > li");e.each(function(t){if($j(e[t]).find(".second").length>0){if($j(e[t]).hasClass("wide")){var i=$j(this),o=i.find(".inner > ul"),a=parseInt(o.css("padding-left").slice(0,-2))+parseInt(o.css("padding-right").slice(0,-2)),n=i.find(".second > .inner > ul > li"),s=n.length;i.hasClass("left_position")||i.hasClass("right_position")||i.find(".second").css("left",0);var r=0;if(n.each(function(){var e=$j(this).height();e>r&&(r=e)}),n.height(r),i.hasClass("full_width_wide_menu")){var d=100/s+"%";n.css("width",d)}else{s>4&&(s=4);var l=s*n.outerWidth();o.width(l)}if(i.hasClass("wide_background")){if(!i.hasClass("left_position")&&!i.hasClass("right_position")){var c=i.find(".second").offset().left;i.find(".second").css("left",-c),i.find(".second").css("width",$j(window).width())}}else if(!i.hasClass("left_position")&&!i.hasClass("right_position")){var c=($j(window).width()-2*($j(window).width()-$j(this).find(".second").offset().left))/2+(l+a)/2;i.find(".second").css("left",-c)}}if(menu_dropdown_height_set||($j(e[t]).data("original_height",$j(e[t]).find(".second").height()+"px"),$j(e[t]).find(".second").height(0)),navigator.userAgent.match(/(iPod|iPhone|iPad)/))$j(e[t]).on("touchstart mouseenter",function(){$j(e[t]).find(".second").css({height:$j(e[t]).data("original_height"),overflow:"visible",visibility:"visible",opacity:"1"})}).on("mouseleave",function(){$j(e[t]).find(".second").css({height:"0px",overflow:"hidden",visivility:"hidden",opacity:"0"})});else{var h={interval:0,over:function(){setTimeout(function(){$j(e[t]).find(".second").addClass("drop_down_start"),$j(e[t]).find(".second").stop().css({height:$j(e[t]).data("original_height")})},150)},timeout:150,out:function(){$j(e[t]).find(".second").stop().css({height:"0px"}),$j(e[t]).find(".second").removeClass("drop_down_start")}};$j(e[t]).hoverIntent(h)}}}),$j(".drop_down ul li.wide ul li a, .drop_down ul li.narrow ul li a").on("click",function(){var e=$j(this);e.next("ul").length||"http://#"===e.attr("href")||"#"===e.attr("href")||e.hasClass("no_link")||setTimeout(function(){e.mouseleave()},500)}),menu_dropdown_height_set=!0}function initVerticalMenu(){"use strict";if($j(".no-touch .vertical_menu_toggle").length){var e=$j(".no-touch .vertical_menu_toggle > ul > li"),t=$j(".no-touch .vertical_menu_toggle ul li ul li");e.each(function(t){if($j(e[t]).hasClass("has_sub")){var i=$j(e[t]).find(".inner > ul > li").length;$j(e[t]).hoverIntent({over:function(){$j(e[t]).addClass("open"),$j(e[t]).find(".second").slideDown(40*i,"easeInOutSine",function(){$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()})},out:function(){$j(e[t]).removeClass("open"),$j(e[t]).find(".second").slideUp(40*i,"easeInOutSine")},timeout:1e3})}}),t.each(function(e){if($j(t[e]).hasClass("menu-item-has-children")){var i=$j(t[e]).find("ul > li").length;$j(t[e]).hoverIntent({over:function(){$j(t[e]).addClass("open"),$j(t[e]).find("ul").slideDown(40*i,"easeInOutSine",function(){$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()})},out:function(){$j(t[e]).removeClass("open"),$j(t[e]).find("ul").slideUp(40*i,"easeInOutSine")},timeout:1e3})}})}else if($j(".vertical_menu_on_click").length){var e=$j(".vertical_menu_on_click > ul > li > a"),t=$j(".vertical_menu_on_click ul li ul li a");e.each(function(t){$j(e[t]).parent().hasClass("has_sub")&&$j(e[t]).on("tap click",function(e){return e.preventDefault(),$j(this).parent().hasClass("open")?($j(this).parent().removeClass("open"),$j(this).parent().find(".second").slideUp("fast",function(){$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()})):($j(".vertical_menu_on_click > ul > li").removeClass("open"),$j(".vertical_menu_on_click > ul > li").find(".second").slideUp("fast"),$j(this).parent().addClass("open"),$j(this).parent().find(".second").slideDown("slow",function(){$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()})),!1})}),t.each(function(e){$j(t[e]).parent().hasClass("menu-item-has-children")&&$j(t[e]).on("tap click",function(e){return e.preventDefault(),$j(this).parent().hasClass("open")?($j(this).parent().removeClass("open"),$j(this).parent().find("ul").slideUp("fast",function(){$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()})):($j(".vertical_menu_on_click ul li ul li").removeClass("open"),$j(".vertical_menu_on_click ul li ul li").find("ul").slideUp("fast"),$j(this).parent().addClass("open"),$j(this).parent().find("ul").slideDown("slow",function(){$j(".vertical_menu_area.with_scroll").getNiceScroll().resize()})),!1})})}else if($j(".no-touch .vertical_menu_float").length){var e=$j(".no-touch .vertical_menu_float > ul > li"),t=$j(".no-touch .vertical_menu_float ul li ul li");e.each(function(t){$j(e[t]).hasClass("has_sub")&&$j(e[t]).hoverIntent({over:function(){$j(e[t]).addClass("open"),$j(e[t]).find(".second").addClass("vertical_menu_start")},out:function(){$j(e[t]).removeClass("open"),$j(e[t]).find(".second").removeClass("vertical_menu_start")},timeout:300})}),t.each(function(e){if($j(t[e]).hasClass("menu-item-has-children")){$j(t[e]).find("ul > li").length;$j(t[e]).hoverIntent({over:function(){$j(t[e]).addClass("open"),$j(t[e]).find("ul").addClass("vertical_submenu_start")},out:function(){$j(t[e]).removeClass("open"),$j(t[e]).find("ul").removeClass("vertical_submenu_start")},timeout:300})}})}}function initVerticalMobileMenu(){"use strict";$j(".vertical_menu_toggle").length?($j(".touch .vertical_menu_toggle > ul > li.has_sub > a .plus").on("tap click",function(e){e.stopPropagation(),e.preventDefault(),$j(this).parent().next("div.second").is(":visible")?($j(this).parents(".touch .vertical_menu_toggle > ul > li.has_sub").removeClass("open"),$j(this).parent().next("div.second").slideUp(200)):($j(this).parents(".touch .vertical_menu_toggle > ul > li.has_sub").addClass("open"),$j(this).parent().next("div.second").slideDown(200))}),$j(".touch .vertical_menu_toggle ul li ul li > a .plus").on("tap click",function(e){e.stopPropagation(),e.preventDefault(),$j(this).parent().next("ul").is(":visible")?($j(this).parents(".touch .vertical_menu_toggle ul li ul li").removeClass("open"),$j(this).parent().next("ul").slideUp(200)):($j(this).parents(".touch .vertical_menu_toggle ul li ul li").addClass("open"),$j(this).parent().next("ul").slideDown(200))})):$j(".vertical_menu_float").length&&($j(".touch .vertical_menu_float > ul > li.has_sub > a .plus").on("tap click",function(e){e.stopPropagation(),e.preventDefault(),$j(this).parent().next("div.second").hasClass("vertical_menu_start")?($j(this).parents(".touch .vertical_menu_float > ul > li.has_sub").removeClass("open"),$j(this).parents(".touch .vertical_menu_float > ul > li.has_sub").find(".second").removeClass("vertical_menu_start")):($j(this).parents(".touch .vertical_menu_float > ul > li.has_sub").addClass("open"),$j(this).parents(".touch .vertical_menu_float > ul > li.has_sub").find(".second").addClass("vertical_menu_start"))}),$j(".touch .vertical_menu_float ul li ul li > a .plus").on("tap click",function(e){e.stopPropagation(),e.preventDefault(),$j(this).parent().next("ul").hasClass("vertical_submenu_start")?($j(this).parents(".touch .vertical_menu_float ul li ul li").removeClass("open"),$j(this).parents(".touch .vertical_menu_float ul li ul li").find("ul").removeClass("vertical_submenu_start")):($j(this).parents(".touch .vertical_menu_float ul li ul li").addClass("open"),$j(this).parents(".touch .vertical_menu_float ul li ul li").find("ul").addClass("vertical_submenu_start"))}))}function checkVerticalMenuTransparency(){0!==$scroll?$j("body.vertical_menu_transparency").removeClass("vertical_menu_transparency_on"):$j("body.vertical_menu_transparency").addClass("vertical_menu_transparency_on")}function showHideVerticalMenu(){if($j(".vertical_menu_hidden").length){var e=$j("aside.vertical_menu_area"),t=$j(".vertical_menu_area_bottom_logo"),i=!0;$j(".vertical_menu_hidden_button").on("click",function(o){o.preventDefault(),i?(i=!1,current_scroll=$j(window).scrollTop(),e.addClass("active"),t.addClass("active")):(i=!0,e.removeClass("active"),t.removeClass("active"))}),$j(window).scroll(function(){Math.abs($scroll-current_scroll)>400&&(i=!0,e.removeClass("active"),t.removeClass("active"))}),function(){var e,t;e=function(){function e(){this.objects=[]}return e.name="Outclick",e.prototype.check=function(e,t){return!e.is(t.target)&&0===e.has(t.target).length},e.prototype.trigger=function(e){var t,i=this;return t=!1,$j.each(this.objects,function(o,a){if(i.check(a.container,e)&&(a.related.length<1?t=!0:$j.each(a.related,function(o,a){return i.check(a,e)?t=!0:(t=!1,!1)}),t))return a.callback.call(a.container)})},e}(),t=new e,$j.fn.outclick=function(e){var i=this;return null==e&&(e={}),e.related||(e.related=[]),e.callback||(e.callback=function(){return i.hide()}),t.objects.push({container:this,related:e.related,callback:e.callback})},$j(document).mouseup(function(e){return t.trigger(e)})}.call(this),$j(e).outclick({callback:function(){i=!0,e.removeClass("active"),t.removeClass("active")}})}}function initToCounter(){"use strict";$j(".counter.zero").length&&$j(".counter.zero").each(function(){var e=$j(this).parent(),t=200;if(void 0!==e.data("element-appearance")&&!1!==e.data("element-appearance")&&(t=e.data("element-appearance")),!$j(this).hasClass("executed"))if($j(this).addClass("executed"),$j(this).parents(".vertical_split_slider").length){$j(this).parent().css("opacity","1");var i=parseFloat($j(this).text());$j(this).countTo({from:0,to:i,speed:1500,refreshInterval:100})}else $j(this).appear(function(){$j(this).parent().css("opacity","1");var e=parseFloat($j(this).text());$j(this).countTo({from:0,to:e,speed:1500,refreshInterval:100})},{accX:0,accY:-t})})}function initCounter(){"use strict";$j(".counter.random").length&&$j(".counter.random").each(function(){var e=$j(this).parent(),t=200;void 0!==e.data("element-appearance")&&!1!==e.data("element-appearance")&&(t=e.data("element-appearance")),$j(this).hasClass("executed")||($j(this).addClass("executed"),$j(this).parents(".vertical_split_slider").length?($j(this).parent().css("opacity","1"),$j(this).absoluteCounter({speed:2e3,fadeInDelay:1e3})):$j(this).appear(function(){$j(this).parent().css("opacity","1"),$j(this).absoluteCounter({speed:2e3,fadeInDelay:1e3})},{accX:0,accY:-t}))})}function initCountdown(){"use strict";$j(".countdown").length&&$j(".countdown").each(function(){var e,t,i,o,a,n,s,r,d,l,c,h,_,u,f=$j(this).attr("id"),p=$j("#"+f),g=0,m=0,$=0,j=0,v=0;void 0!==p.data("year")&&!1!==p.data("year")&&(g=p.data("year")),void 0!==p.data("month")&&!1!==p.data("month")&&(m=p.data("month")),void 0!==p.data("day")&&!1!==p.data("day")&&($=p.data("day")),void 0!==p.data("hour")&&!1!==p.data("hour")&&(j=p.data("hour")),void 0!==p.data("minute")&&!1!==p.data("minute")&&(v=p.data("minute")),void 0!==p.data("monthslabel")&&!1!==p.data("monthslabel")&&(e=p.data("monthslabel")),void 0!==p.data("monthlabel")&&!1!==p.data("monthlabel")&&(t=p.data("monthlabel")),void 0!==p.data("dayslabel")&&!1!==p.data("dayslabel")&&(i=p.data("dayslabel")),void 0!==p.data("daylabel")&&!1!==p.data("daylabel")&&(o=p.data("daylabel")),void 0!==p.data("hourslabel")&&!1!==p.data("hourslabel")&&(a=p.data("hourslabel")),void 0!==p.data("hourlabel")&&!1!==p.data("hourlabel")&&(n=p.data("hourlabel")),void 0!==p.data("minuteslabel")&&!1!==p.data("minuteslabel")&&(s=p.data("minuteslabel")),void 0!==p.data("minutelabel")&&!1!==p.data("minutelabel")&&(r=p.data("minuteLabel")),void 0!==p.data("secondslabel")&&!1!==p.data("secondslabel")&&(d=p.data("secondslabel")),void 0!==p.data("secondlabel")&&!1!==p.data("secondlabel")&&(l=p.data("secondlabel")),void 0!==p.data("tickf")&&!1!==p.data("tickf")&&p.data("tickf"),void 0!==p.data("timezone")&&!1!==p.data("timezone")&&(c=p.data("timezone")),void 0!==p.data("digitfs")&&!1!==p.data("digitfs")&&(h=p.data("digitfs")),void 0!==p.data("labelfs")&&!1!==p.data("labelfs")&&(_=p.data("labelfs")),void 0!==p.data("color")&&!1!==p.data("color")&&(u=p.data("color")),p.countdown({until:new Date(g,m-1,$,j,v,44),labels:["Years",e,"Weeks",i,a,s,d],labels1:["Year",t,"Week",o,n,r,l],format:"ODHMS",timezone:c,padZeroes:!0,significant:0,onTick:function(){"undefined"!==h&&""!==h&&p.find(".countdown-amount").css("font-size",h+"px").css("line-height",h+"px"),"undefined"!==_&&""!==_&&p.find(".countdown-period").css("font-size",_+"px"),"undefined"!==u&&""!==u&&p.find(".countdown_separator").css("background-color",u)}})})}function initProgressBars(){"use strict";$j(".q_progress_bar").length&&$j(".q_progress_bar").each(function(){if($j(this).parents(".vertical_split_slider").length){initToCounterHorizontalProgressBar($j(this));var e=$j(this).find(".progress_content").data("percentage");$j(this).find(".progress_content").css("width","0%"),$j(this).find(".progress_content").animate({width:e+"%"},1500),$j(this).find(".progress_number_wrapper").css("width","0%"),$j(this).find(".progress_number_wrapper").animate({width:e+"%"},1500)}else $j(this).appear(function(){initToCounterHorizontalProgressBar($j(this));var e=$j(this).find(".progress_content").data("percentage");$j(this).find(".progress_content").css("width","0%"),$j(this).find(".progress_content").animate({width:e+"%"},1500),$j(this).find(".progress_number_wrapper").css("width","0%"),$j(this).find(".progress_number_wrapper").animate({width:e+"%"},1500)},{accX:0,accY:-200})})}function initToCounterHorizontalProgressBar(e){"use strict";var t=parseFloat(e.find(".progress_content").data("percentage"));e.find(".progress_number span").length&&e.find(".progress_number span").each(function(){$j(this).parents(".progress_number_wrapper").css("opacity","1"),$j(this).countTo({from:0,to:t,speed:1500,refreshInterval:50})})}function initListAnimation(){"use strict";$j(".animate_list").length>0&&0===$j(".no_animation_on_touch").length&&$j(".animate_list").each(function(){$j(this).appear(function(){$j(this).find("li").each(function(e){var t=$j(this);setTimeout(function(){t.animate({opacity:1,top:0},1500)},100*e)})},{accX:0,accY:-200})})}function initPieChart(){"use strict";$j(".q_percentage").length&&$j(".q_percentage").each(function(){var e=piechartcolor;void 0!==$j(this).data("active")&&""!==$j(this).data("active")&&(e=$j(this).data("active"));var t="#eeeeee";void 0!==$j(this).data("noactive")&&""!==$j(this).data("noactive")&&(t=$j(this).data("noactive"));var i=10;void 0!==$j(this).data("linewidth")&&""!==$j(this).data("linewidth")&&(i=$j(this).data("linewidth"));var o=200;void 0!==$j(this).data("element-appearance")&&!1!==$j(this).data("element-appearance")&&(o=$j(this).data("element-appearance")),$j(this).appear(function(){initToCounterPieChart($j(this)),$j(this).parent().css("opacity","1"),$j(this).easyPieChart({barColor:e,trackColor:t,scaleColor:!1,lineCap:"butt",lineWidth:i,animate:1500,size:174})},{accX:0,accY:-o})})}function initPieChartWithIcon(){"use strict";$j(".q_percentage_with_icon").length&&$j(".q_percentage_with_icon").each(function(){var e=piechartcolor;""!==$j(this).data("active")&&(e=$j(this).data("active"));var t="#eeeeee";""!==$j(this).data("noactive")&&(t=$j(this).data("noactive"));var i=10;""!==$j(this).data("linewidth")&&(i=$j(this).data("linewidth"));$j(this).appear(function(){$j(this).parent().css("opacity","1"),$j(this).css("opacity","1"),$j(this).easyPieChart({barColor:e,trackColor:t,scaleColor:!1,lineCap:"butt",lineWidth:i,animate:1500,size:174})},{accX:0,accY:-200})})}function initToCounterPieChart(e){"use strict";$j(e).css("opacity","1");var t=parseFloat($j(e).find(".tocounter").text());$j(e).find(".tocounter").countTo({from:0,to:t,speed:1500,refreshInterval:50})}function initPortfolio(){"use strict";$j(".projects_holder_outer:not(.masonry_with_space, .justified_gallery)").length&&$j(".projects_holder_outer").each(function(){var e=$j(this).find(".projects_holder");if(9!=getIEversion()&&10!=getIEversion()||e.addClass("ie-specific-styles"),$j(".filter_holder .filter").on("click",function(){var t=$j(this).text(),i=$j(this).data("filter");e.children("article").length&&e.children("article").each(function(){var e=$j(this);e.hasClass(i)&&"all"!==i?(e.find("a.lightbox").attr("rel","prettyPhoto[pretty_photo_gallery_"+t.toLowerCase()+"]"),e.find("a.lightbox").attr("data-rel","prettyPhoto[pretty_photo_gallery_"+t.toLowerCase()+"]")):"all"===i&&(e.find("a.lightbox").attr("rel","prettyPhoto[pretty_photo_gallery]"),e.find("a.lightbox").attr("data-rel","prettyPhoto[pretty_photo_gallery]"))}),$j(".filter_holder").find(".label span").each(function(){$j(this).text(t)})}),e.hasClass("v1"))var t=new Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25);else if(e.hasClass("v2"))var t=new Array(1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20);else if(e.hasClass("v3"))var t=new Array(1,2,3,2,3,4,3,4,5,4,5,6,5,6,7,6,7,8,7,8,9,8,9,10,9,10,11,10,11,12,11,12,13,12,13,14,13,14,15,14,15,16,15,16,17,16,17,18,17,18,19,18,19,20,19,20,21,20,21,22);else if(e.hasClass("v4"))var t=new Array(1,2,3,4,2,3,4,5,3,4,5,6,4,5,6,7,5,6,7,8,6,7,8,9,7,8,9,10,8,9,10,11,9,10,11,12,10,11,12,13,11,12,13,14,12,13,14,15,13,14,15,16,14,15,16,17,15,16,17,18,16,17,18,19,17,18,19,20,18,19,20,21);else if(e.hasClass("v5"))var t=new Array(1,2,3,4,5,2,3,4,5,6,3,4,5,6,7,4,5,6,7,8,5,6,7,8,9,6,7,8,9,10,7,8,9,10,11,8,9,10,11,12,9,10,11,12,13,10,11,12,13,14,11,12,13,14,15,12,13,14,15,16,13,14,15,16,17,14,15,16,17,18,15,16,17,18,19,20,16,17,18,19,20,17,18,19,20,21,18,19,20,21,22,19,20,21,22,23);else if(e.hasClass("v6"))var t=new Array(1,2,3,4,5,6,2,3,4,5,6,7,3,4,5,6,7,8,4,5,6,7,8,9,5,6,7,8,9,10,6,7,8,9,10,11,7,8,9,10,11,12,8,9,10,11,12,13,9,10,11,12,13,14,10,11,12,13,14,15,11,12,13,14,15,16,12,13,14,15,16,17,13,14,15,16,17,18,14,15,16,17,18,19,15,16,17,18,19,20,16,17,18,19,20,21,17,18,19,20,21,22);var i;i=window.location.hash&&1==window.location.hash.indexOf("portfolio_category")?window.location.hash.replace("#",""):"all",qodeInitPortFilterCounter($j(this)),e.mixitup({showOnLoad:i,transitionSpeed:600,minHeight:150,onMixLoad:function(){$j(".projects_holder").addClass("hideItems"),$j(".projects_holder article").css("visibility","visible"),e.hasClass("portfolio_one_by_one")&&e.find("article").each(function(e){var t=$j(this);if($j(".vertical_split_slider").length);else;setTimeout(function(){t.addClass("show")},100*e)}),e.hasClass("slide_from_left")&&e.find("article").each(function(e){var t=$j(this);setTimeout(function(){t.addClass("show")},200*Math.random())}),e.hasClass("slide_from_top")&&e.find("article").each(function(e){var i=$j(this);setTimeout(function(){i.addClass("show")},50*t[e])}),e.hasClass("diagonal_fade")&&e.find("article").each(function(e){var i=$j(this);setTimeout(function(){i.addClass("show")},50*t[e])}),initParallax()},onMixEnd:function(){initParallax()}})})}function initPortfolioZIndex(){"use strict";$j(".projects_holder_outer.portfolio_no_space").length&&$j(".no_space.hover_text article").each(function(e){$j(this).css("z-index",e+10)})}function initPortfolioJustifiedGallery(){"use strict";var e=$j(".projects_holder_outer.justified_gallery");e.each(function(){var t=$j(this).find(".filter_holder");t.find("li.filter").first().addClass("current"),t.find(".filter").on("click",function(){var e=$j(this).text();t.find(".label span").each(function(){$j(this).text(e)});var o=$j(this).attr("data-filter"),a=i.find("article");return a.css("transition","all 500ms ease"),a.not(o).css({transform:"scale(0)"}),setTimeout(function(){a.filter(o).css({transform:""}),i.css("transition","height 500ms ease").justifiedGallery({selector:">article"+("*"!=o?o:"")})},550),setTimeout(function(){a.css("transition",""),i.css("transition","")},1100),$j(".filter").removeClass("current active"),$j(this).addClass("current active"),!1}),qodeInitPortFilterCounter(e);var i=$j(this).find(".projects_holder"),o=void 0!==i.data("row-height")?i.data("row-height"):200,a=void 0!==i.data("spacing")?i.data("spacing"):0,n=void 0!==i.data("last-row")?i.data("last-row"):"nojustify",s=void 0!==i.data("justify-threshold")?i.data("justify-threshold"):.75;i.justifiedGallery({captions:!1,rowHeight:o,margins:a,border:0,lastRow:n,justifyThreshold:s,selector:"> article"}).on("jg.complete jg.rowflush",function(){$j(this).find("article").addClass("show").each(function(){$j(this).height(Math.round($j(this).height()))})})})}function initPortfolioMasonryFilter(){"use strict";var e=$j(".projects_masonry_holder, .masonry_with_space .projects_holder")
;if(e.length){var t=null;$j(".filter:first").addClass("current"),$j(".filter").click(function(){clearTimeout(t),$j(".isotope, .isotope .isotope-item").css("transition-duration","0.8s"),t=setTimeout(function(){$j(".isotope, .isotope .isotope-item").css("transition-duration","0s")},700);var i=$j(this).attr("data-filter");e.isotope({filter:i}),$j(".filter").removeClass("current"),$j(this).addClass("current");var o=$j(this).text();return"*"!==i&&(i=i.substring(1)),e.children("article").length&&e.children("article").each(function(){var e=$j(this);e.hasClass(i)&&"*"!==i?(e.find("a.lightbox").attr("rel","prettyPhoto[pretty_photo_gallery_"+o.toLowerCase()+"]"),e.find("a.lightbox").attr("data-rel","prettyPhoto[pretty_photo_gallery_"+o.toLowerCase()+"]")):"*"===i&&(e.find("a.lightbox").attr("rel","prettyPhoto[pretty_photo_gallery]"),e.find("a.lightbox").attr("data-rel","prettyPhoto[pretty_photo_gallery]"))}),setTimeout(setPortfolioMasZIndex(),700),!1})}}function initPortfolioMasonry(){"use strict";var e=$j(".projects_masonry_holder, .masonry_with_space .projects_holder");e.length&&e.each(function(){var t=$j(this),i=t.find(".qode-portfolio-masonry-gallery-grid-sizer").width();e.hasClass("projects_masonry_holder")&&resizeMasonry(i,t),qodeInitMasonry(t),qodeInitPortFilterCounter(e.parent()),$j(window).resize(function(){setPortfolioMasZIndex(),e.hasClass("projects_masonry_holder")&&resizeMasonry(i,t),qodeInitMasonry(t)})})}function qodeInitMasonry(e){e.waitForImages(function(){e.animate({opacity:1}),e.isotope({itemSelector:".portfolio_masonry_item, .masonry_with_space .mix",masonry:{columnWidth:".qode-portfolio-masonry-gallery-grid-sizer"}}),e.hasClass("portfolio_one_by_one")&&e.find("article").each(function(e){var t=$j(this);setTimeout(function(){t.addClass("show")},100*e)}),e.hasClass("portfolio_fade_from_bottom")&&e.find("article").each(function(e){var t=$j(this);$j(this).css({opacity:"0",transform:"translateY(150px)"}),$j(this).appear(function(){setTimeout(function(){t.css({opacity:"1",transition:"all .8s ease",transform:"translateY(0)"})},100)},{accX:0,accY:-150})})})}function resizeMasonry(e,t){var i=jQuery(window);if(t.hasClass("portfolio_masonry_gallery_with_space")){var o=t.find(".portfolio_masonry_item.default"),a=t.find(".large_width"),n=t.find(".large_height"),s=t.find(".large_width_height");o.css("height",e),n.css("height",Math.round(2*e)),i.innerWidth()>480?(s.css("height",Math.round(2*e)),a.css("height",e)):s.css("height",e)}else{var r;r=t.find('article[class*="default"]:first img').height()?t.find('article[class*="default"]:first img').height():t.find('article[class*="large_width"]:not(.large_width_height):first img').height()?t.find('article[class*="large_width"]:not(.large_width_height):first img').height():t.find('article[class*="large_width_height"]:first img').height()?t.find('article[class*="large_width_height"]:first img').height()/2:t.find('article[class*="large_height"]:first img').height()/2;var d=i.innerWidth()>480?2:1;t.find('article[class*="large_width_height"] img, article[class*="large_height"] img').css("height",r*d)}}function setPortfolioMasZIndex(){var e={},t={};$j(".projects_masonry_holder article").each(function(){e[$j(this).index()]=getPortfolioXPos($j(this).css("left"))});var i=$j.map(e,function(e){return e});i=cleanPortfolioMasXArray(i),i.sort(function(e,t){return e-t});for(var o=0;o0&&0===$j(".no_animation_on_touch").length&&$j(".fade_in_circle_holder").each(function(){$j(this).appear(function(){$j(this).addClass("animate_circle")},{accX:0,accY:-200})})}function checkTitleToShowOrHide(){if($j(".title_outer.animate_title_area").length){var e=$j(".title_outer").data("height");$scroll>$j(".title").height()&&$j(".title_outer").css({height:e,opacity:"1",overflow:"visible"})}}function initTitleAreaAnimation(){if($j(".title_outer.animate_title_area").length){var e=$j(".title_outer").data("height");$j(".title_outer").hasClass("with_image")&&(e=$j(".image.responsive").height()),$scroll<$j(".title").height()&&$j(".title_outer").animate({height:e,opacity:1},500,function(){$j(this).css({overflow:"visible"}),initPortfolioSingleInfo(),$j("nav.content_menu").length>0&&(content_menu_position=$j("nav.content_menu").offset().top,contentMenuPosition())})}}function initParallaxTitle(){"use strict";if($j(".title").length>0&&0===$j(".touch").length){if($j(".title.has_fixed_background").length){var e=parseInt($j(".title.has_fixed_background").css("background-size").match(/\d+/)),t=$j(".title.has_fixed_background").height(),i=t/1e4*7,o=$scroll-$j(".title.has_fixed_background").offset().top;$j(".title.has_fixed_background").css({"background-position":"center "+(0+add_for_admin_bar)+"px"}),$j(".title.has_fixed_background").hasClass("zoom_out")&&$j(".title.has_fixed_background").css({"background-size":e-$scroll+"px auto"})}$j(window).on("scroll",function(){if($j(".title.has_fixed_background").length){var t=$scroll-$j(".title.has_fixed_background").offset().top,o=-t*i;$j(".title.has_fixed_background").css({"background-position":"center "+(o+add_for_admin_bar)+"px"}),$j(".title.has_fixed_background").hasClass("zoom_out")&&$j(".title.has_fixed_background").css({"background-size":e-$scroll+"px auto"})}})}}function initParallax(){"use strict";$j(".parallax_section_holder").length&&$j(".parallax_section_holder").each(function(){var e=$j(this);e.hasClass("qode_full_screen_height_parallax")&&e.height($window_height);var t=.4*e.data("speed");e.parallax("50%",t)})}function initSideAreaScroll(){"use strict";$j(".side_menu").length&&$j(".side_menu").niceScroll({scrollspeed:60,mousescrollstep:40,cursorwidth:0,cursorborder:0,cursorborderradius:0,cursorcolor:"transparent",autohidemode:!1,horizrailenabled:!1})}function initVerticalAreaMenuScroll(){"use strict";$j(".vertical_menu_area.with_scroll").length&&$j(".vertical_menu_area.with_scroll").niceScroll({scrollspeed:60,mousescrollstep:40,cursorwidth:0,cursorborder:0,cursorborderradius:0,cursorcolor:"transparent",autohidemode:!1,horizrailenabled:!1})}function loadMore(){"use strict";var e=1;$j(".load_more a").on("click",function(t){t.preventDefault();var i=($j(this),$j(this).closest(".projects_holder_outer")),o=$j(this).attr("href"),a=".projects_holder",n=".portfolio_paging .load_more a",s=$j(n).attr("href"),r=$j(".projects_holder .filler").length,d=$j(".portfolio_paging"),l=$j(".portfolio_paging_loading");d.hide(),l.show(),$j.get(o+"",function(t){if($j(a).is(".justified-gallery")){var i=$j(a,t).wrapInner("").html();s=$j(n,t).attr("href"),$j(a,t).waitForImages(function(){$j(a).find("article:last").after(i),$j(a).find("article").css("visibility","visible"),$j(a).justifiedGallery("norewind"),prettyPhoto(),$j(".load_more").attr("rel")>e?$j(".load_more a").attr("href",s):$j(".load_more").remove(),$j(".projects_holder .portfolio_paging:last").remove(),d.show(),l.hide()})}else{$j(".projects_holder .filler").slice(-r).remove();var i=$j(a,t).wrapInner("").html();s=$j(n,t).attr("href"),$j(a,t).waitForImages(function(){if($j("article.mix:last").after(i),$j(".projects_holder article").css("visibility","visible"),$j("article:not(.show)").each(function(e){$j(this).addClass("show")}),$j(".masonry_with_space").length)$j(".masonry_with_space .projects_holder").isotope("reloadItems").isotope();else{var t=$j("article.mix:first").height();$j("article.mix").css("min-height",t),$j(".projects_holder").mixitup("remix","all")}prettyPhoto(),$j(".load_more").attr("rel")>e?$j(".load_more a").attr("href",s):$j(".load_more").remove(),$j(".projects_holder .portfolio_paging:last").remove(),$j("article.mix").css("min-height",0),d.show(),l.hide()})}}).done(function(){setTimeout(function(){qodeInitPortFilterCounter(i)},1e3)}),e++})}function prettyPhoto(){"use strict";$j("a[data-rel]").each(function(){$j(this).attr("rel",$j(this).data("rel"))}),$j("a[rel^='prettyPhoto']").prettyPhoto({animation_speed:"normal",slideshow:!1,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,horizontal_padding:0,default_width:650,default_height:400,counter_separator_label:"/",theme:"pp_default",hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,overlay_gallery:!1,keyboard_shortcuts:!0,deeplinking:!1,social_tools:!1,changepicturecallback:function(){$j($j(this).context.activeElement).hasClass("qode-single-image-pretty-photo")&&$j(".pp_pic_holder").addClass("qode-pretty-photo-hide-navigation")}})}function initMobileMenu(){"use strict";$j(".mobile_menu_button > span").on("tap click",function(e){e.preventDefault(),$j(".mobile_menu > ul").is(":visible")?$j(".mobile_menu > ul").slideUp(200):$j(".mobile_menu > ul").slideDown(200)}),$j(".mobile_menu > ul > li.has_sub > span.mobile_arrow, .mobile_menu > ul > li.has_sub > h3, .mobile_menu > ul > li.has_sub > a[href*='#']").on("tap click",function(e){e.preventDefault(),$j(this).closest("li.has_sub").find("> ul.sub_menu").is(":visible")?($j(this).closest("li.has_sub").find("> ul.sub_menu").slideUp(200),$j(this).closest("li.has_sub").removeClass("open_sub")):($j(this).closest("li.has_sub").addClass("open_sub"),$j(this).closest("li.has_sub").find("> ul.sub_menu").slideDown(200))}),$j(".mobile_menu > ul > li.has_sub > ul.sub_menu > li.has_sub > span.mobile_arrow, .mobile_menu > ul > li.has_sub > ul.sub_menu > li.has_sub > h3, .mobile_menu > ul > li.has_sub > ul.sub_menu > li.has_sub > a[href*='#']").on("tap click",function(e){e.preventDefault(),$j(this).parent().find("ul.sub_menu").is(":visible")?($j(this).parent().find("ul.sub_menu").slideUp(200),$j(this).parent().removeClass("open_sub")):($j(this).parent().addClass("open_sub"),$j(this).parent().find("ul.sub_menu").slideDown(200))}),$j(".mobile_menu ul li > a, .q_logo a").on("click",function(){"http://#"!==$j(this).attr("href")&&"#"!==$j(this).attr("href")&&$j(".mobile_menu > ul").slideUp()})}function initFlexSlider(){"use strict";$j(".flexslider").each(function(){var e=$j(this),t=8e3;void 0!==e.data("interval")&&!1!==e.data("interval")&&(t=1e3*parseFloat(e.data("interval")));var i=!0;void 0!==e.data("direction")&&(i=e.data("direction"));var o=!1;void 0!==e.data("control")&&(o=e.data("control"));var a=!0;void 0!==e.data("pause-on-hover")&&(a=e.data("pause-on-hover"));var n=!1;void 0!==e.data("drag")&&(n=e.data("drag"));var s=!0;0===t&&(s=!1);var r="slide";void 0!==e.data("flex_fx")&&!1!==e.data("flex_fx")&&(r=e.data("flex_fx")),e.flexslider({animationLoop:!0,controlNav:o,directionNav:i,useCSS:!1,pauseOnAction:a,pauseOnHover:a,slideshow:s,animation:r,prevText:"