<\/div><\/a><\/div><\/div>'});i.find(".logoGroupCt").html(r);shutterAdsResize()}function shutterAdsResize(){var n=$(".shutterAdsGrpWp");$.each(n,function(n,t){$.each($(t).find(".logoPartWp"),function(n,t){var u=$(t).find(".logoImageWp"),r=u.find(".adsImageWp"),f=r.attr("data-imageW"),e=r.attr("data-imageH"),i;$(t).hasClass("hide")||(i=shutterAdsSize(f,e,u),r.css({width:i.w+"px",height:i.h+"px","margin-top":i.margin+"px"}))})})}function shutterAdsSize(n,t,i){var f=i.width(),u=i.height(),e=f/u,o=n/t,r={w:f,h:u,margin:0};return n>f||t>u?(r.w=f/e*o,r.h=u*e/o):(r.w=n,r.h=t),r.margin=u-r.h>0?(u-r.h)/2:0,r}function adsLogosDisplay(){var n=$(".logoGroupWp.shutterAdsDefault, .logoGroupWp.shutterAdsMultiRow");$.each(n,function(n,t){if($(t).css("display")!=="none"){var i=$(t).find(".logoPartWp"),u=Math.round($(t).find(".logoGroupCt").outerWidth()/i.outerWidth()),r=u*($(t).hasClass("shutterAdsMultiRow")?$(t).attr("data-row")?$(t).attr("data-row"):3:1);i.slice(r,i.length).addClass("hide");i.slice(0,r).removeClass("hide")}});shutterAdsResize()}function modalToggle(n,t){var i=n.attr("data-parent");modalClose();n.hasClass("noOuterClose")&&$(i).addClass("outerClickClose");i&&$(i).length&&($(i).addClass("open"),$("body").addClass("modalOpened"),n.hasClass("modalIframe")?$(i).find(".modalBox").append('
'):n.hasClass("modalAjax")&&($(i).find("#ajaxContainer").length||($(i+" .modalBox").append('
<\/div>'),$("#ajaxContainer").hide().siblings(".modalClose").hide(),$.get(t,function(n){$("#ajaxContainer").html(n)}).done(function(){$("#ajaxContainer").show().siblings(".modalClose").show()}).fail(function(){window.location.href=t}))))}function modalClose(){$(".pageModalWp.open #ajaxContainer").remove();$(".pageModalWp.open iframe").remove();$(".pageModalWp").removeClass("open");$("body").removeClass("modalOpened")}function searchPopup(n){if(navigator.cookieEnabled&&document.cookie.indexOf("ad_shutterstockpopup_opened=1")<0){cookieSet("ad_shutterstockpopup_opened","1",60);cookieDelete("count_download");cookieDelete("count_search");var t=urlFriendly(n);window.open("https://shutterstock.7eer.net/Az2K?sharedid=pop-up&subId1=popup&subId2="+t+"&subId3=popup&u=https%3A%2F%2Fwww.shutterstock.com%2Fsearch%2F"+t,"ShutterStock","width="+$(window).width()*.7+",height="+$(window).height()*.7+",toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left="+$(window).width()*.15+",top="+$(window).height()*.15+"");gtag("event","advertising",{event_type:"advertising",method:"ShutterStock Popup"})}}function cookieGet(n){if(navigator.cookieEnabled){var t={};return document.cookie.split(";").forEach(function(n){var[i,r]=n.split("=");t[i.trim()]=r}),t[n]}return""}function cookieSet(n,t,i){var u="",r;i&&(r=new Date,r.setTime(r.getTime()+i*6e4),u="; expires="+r.toUTCString());document.cookie=n+"="+t+u+"; path=/"}function cookieDelete(n){document.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/"}function increaseCookieCounter(n,t){if(navigator.cookieEnabled){var i=cookieGet(n);isNaN(parseFloat(i))?cookieSet(n,"1",t):cookieSet(n,parseFloat(i)+1,t)}}function refreshPage(){window.location.href=window.location.href}function remapInternationalCharToAscii(n){let t=n.toString().toLowerCase();return"àåáâäãåą".includes(t)?"a":"èéêëęê".includes(t)?"e":"ìíîïı".includes(t)?"i":"òóôõöøőð".includes(t)?"o":"ùúûüŭů".includes(t)?"u":"çćčĉ".includes(t)?"c":"żźž".includes(t)?"z":"śşšŝ".includes(t)?"s":"ñń".includes(t)?"n":"ýÿ".includes(t)?"y":"ğĝ".includes(t)?"g":n==="ř"?"r":n==="ł"?"l":n==="đ"?"d":n==="ß"?"ss":n==="Þ"?"th":n==="ĥ"?"h":n==="ĵ"?"j":""}function urlFriendly(n){if(n===null)return"";n=n.replace(/İ/g,"I").trim();const u=100;let f=n.length,r=!1,i="",t;for(let e=0;e="a"&&t<="z"||t>="0"&&t<="9")i+=t,r=!1;else if(t>="A"&&t<="Z")i+=String.fromCharCode(t.charCodeAt(0)|32),r=!1;else if(t===" "||t===","||t==="."||t==="/"||t==="\\"||t==="-"||t==="_"||t==="=")!r&&i.length>0&&(i+="-",r=!0);else if(t.charCodeAt()>=128){let n=i.length;i+=remapInternationalCharToAscii(t);n!==i.length&&(r=!1)}if(e===u)break}return r?i.substring(0,i.length-1):i}function decodeEmail(n){for(var i="",r=n.substr(0,2),u=parseInt(r,16),t=2;tc?(r.addClass("fixed"),f.height(u)):(r.removeClass("fixed"),f.removeAttr("style")),$(".logosPageCt").length&&$(".pageCenter").length&&(!$(".googleAdsCt").find(".adsbygoogle").length||$(".googleAdsCt").find(".adsbygoogle").length&&!t)&&$(".shutterAdsGrpWp").length&&shutterAdsResize(),$("#filterFormWp").length&&parseFloat($("#filterFormWp").css("z-index"))===17&&(a=$("#filterFormWp"),e=a.find(".filterForm"),n.scrollTop()>c?e.addClass("fixed").css({top:u,bottom:0}).height("auto"):e.removeClass("fixed").css("top",0).height(n.scrollTop()+n.outerHeight()-c-u-parseInt(e.css("margin-top"))-(n.scrollTop()+n.outerHeight()>$("footer").offset().top?$("footer").outerHeight()-($("body").outerHeight()-n.outerHeight()-n.scrollTop()):0)),e.hasClass("fixed")&&n.scrollTop()+n.outerHeight()>$("#pageFooter").offset().top?e.css({bottom:n.scrollTop()+n.outerHeight()-$("#pageFooter").offset().top,"min-height":0}):e.css("min-height","")),$(".logosPageCt").length&&$(".logosPageCt").find(".sideAdsWp").length&&$(".logosPageCt").find(".sideAdsWp").css("display")!=="none")){o=$(".sideAdsWp");s=o.find(".sideAdsCt");t&&(h=s.find(".googleAdsWp"),h.length===2&&h.eq(0).find(".adsbygoogle").attr("data-ad-status")==="unfilled"&&(h.eq(0).hide(),h.eq(1).find(".googleAdsCt").addClass("showTitle")),i=s.outerHeight(),o.height(i));var l=i+u>n.outerHeight()?"bottom":"top",v=l==="bottom"?n.scrollTop()+n.outerHeight()>o.offset().top+i:n.scrollTop()+u+10>o.offset().top,y=l==="bottom"?"top":"bottom";v?s.addClass("fixed").css(l,l==="bottom"?0:u+10).css(y,"").css("margin-bottom",n.scrollTop()+n.outerHeight()>$("#pageFooter").offset().top?n.scrollTop()+n.outerHeight()-$("#pageFooter").offset().top:0):s.removeClass("fixed").removeAttr("style")}}function o(){if($("#filterFormWp").length&&parseFloat($("#filterFormWp").css("z-index"))===17){setInterval(function(){e!==$("header").offset().top&&(t(),e=$("header").offset().top)},1);var n=setInterval(function(){$(".googleAdsCt").length&&$(".googleAdsCt").find(".adsbygoogle").length&&s()&&(t(!0),clearInterval(n),t())},1)}}function s(){if($(".googleAdsCt").length&&$(".googleAdsCt").find(".adsbygoogle").length){var n=$(".googleAdsCt").find(".adsbygoogle"),i=!0;return $.each(n,function(n,t){u[n]=$(t).attr("data-ad-status")}),$.each(u,function(r,f){f!==n.attr("data-ad-status")&&(t(!0),u[r]=n.attr("data-ad-status"));f===undefined&&(i=!1)}),i}}if($("#searchGrpWp").length&&!$("#searchGrpWp").hasClass("searchGrpIndex")){var n=$(window),r=$("#searchGrpWp"),f=$(".searchHelper"),e=0,i,u={};t(!0);n.on("scroll resize",function(n){t();n.type==="resize"&&o()});o()}});$(function(){function t(){$("#btnFilter").attr("data-filter-len")&&(parseFloat(n.css("z-index"))===17&&$("#btnFilter").hasClass("webClose")||parseFloat(n.css("z-index"))!==17)?$("#btnFilter").find(".filterNotifications").length||$("#btnFilter").append(''+$("#btnFilter").attr("data-filter-len")+"<\/span><\/span>"):$("#btnFilter").find(".filterNotifications").length&&$("#btnFilter").find(".filterNotifications").remove()}if($("#filterFormWp").length){var n=$("#filterFormWp");$("#btnFilter").on("click",function(){parseFloat(n.css("z-index"))===17?(n.hasClass("webClose")?(n.removeClass("webClose"),$(".logosPageCt .logoGroupWp").removeClass("biggerWp"),$(this).removeClass("webClose")):(n.addClass("webClose"),$(".logosPageCt .logoGroupWp").addClass("biggerWp"),$(this).addClass("webClose")),logoRelocate(),adsLogosDisplay(),$(window).trigger("resize")):n.hasClass("mobileOpen")?(n.removeClass("mobileOpen"),$("body").removeClass("menuOpened")):(n.addClass("mobileOpen"),$("body").addClass("menuOpened"));t()});n.on("click",function(n){if($(this).hasClass("mobileOpen")&&parseFloat($(this).css("z-index"))!==17){var i=$(n.target);(i.hasClass("filterFormWp")&&i.hasClass("mobileOpen")||i.hasClass("close")&&i.parents(".filterFormWp").length)&&($(this).removeClass("mobileOpen"),$("body").removeClass("menuOpened"));t()}});t();$(window).on("resize",function(){t()})}});$(function(){$("body").on("click",".showPassword",function(){$(this).hasClass("open")?$(this).removeClass("open").siblings(".formItem").attr("type","password"):$(this).addClass("open").siblings(".formItem").attr("type","text")})});$(function(){$("body").on("click",".btnModal",function(n){n.preventDefault();var t=$(this).attr("data-url")?$(this).attr("data-url"):$(this).attr("href");modalToggle($(this),t)}).on("click",".pageModal",function(n){var t=$(n.target);(t.hasClass("pageModal")&&!t.parents(".pageModalWp").hasClass("outerClickClose")||t.hasClass("modalClose"))&&modalClose()}).on("keydown",function(n){if($(".pageModalWp").length>0){var t=n.keyCode||n.which;t===27&&$.each($(".pageModalWp"),function(n,t){!$(t).hasClass("outerClickClose")&&$(t).hasClass("open")&&modalClose()})}})});$(function(){$(".alertBlock .alertClose").on("click",function(){$(this).parents(".alertBlock").hide()})});$(function(){var n=$(".charCount"),t,i,r;$.each(n,function(n,u){t=$($(u).attr("data-char"));i=$(u).val().length;r=$(u).attr("maxlength");t.html(i+"/"+r)});n.on("keydown keyup paste cut focusout",function(u){n=$(this);t=$(n.attr("data-char"));i=n.val().length;r=n.attr("maxlength");u.type==="keydown"||u.type==="keyup"||u.type==="focusout"?t.html(i+"/"+r):setTimeout(function(){n.trigger("keydown")})})});$(function(){$(".btnSocialShare").on("click",function(n){n.preventDefault();var f=$(this),i=f.parents(".boxSocialShare"),r=i.attr("data-url"),o=i.attr("data-media"),e=i.attr("data-title"),s=i.attr("data-logo-id"),u=f.attr("data-network"),h={name:"Facebook",url:"https://www.facebook.com/sharer/sharer.php?u="+r,width:557,height:585},c={name:"Twitter",url:"https://twitter.com/share?text="+e+"%20%23logo&url="+r,width:550,height:450},l={name:"Pinterest",url:"https://pinterest.com/pin/create/link/?url="+r+"&media="+o+"&description="+e,width:738,height:700},t=l;u==="facebook"&&(t=h);u==="twitter"&&(t=c);window.open(t.url,u,"width="+t.width+",height="+t.height+",resizable=1,toolbar=0,menubar=0,status=0,location=0,left="+($(window).width()-t.width)/2+",top="+($(window).height()-t.height)/2);gtag("event","share",{event_type:"share",method:t.name,item_id:"logo_"+s})})});$(function(){$("body").on("submit",function(n){var i=$(n.target),t=i.find('input[type="submit"]').length?i.find('input[type="submit"]'):i.find('input[type="button"]');t.hasClass("formSubmitHandler")&&(t.hasClass("validatorSubmit")&&i.valid()||!t.hasClass("validatorSubmit"))&&setTimeout(function(){t.prop("disabled",!0).addClass("disabled");t[0].hasAttribute("data-submit-value")&&t.siblings(".triggerSubmit").find("span i").html(t.attr("data-submit-value"));t[0].hasAttribute("data-submit-spinner")&&t.attr("data-submit-spinner")==="true"&&t.addClass("hasSpinner")})})});$(function(){$("#searchBarInput").on("keypress",function(n){if(n.keyCode===13)return $("#searchBarButton").click(),!1});$(".track-shutterstock").on("click",function(){gtag("event","advertising",{event_type:"advertising",method:"ShutterStock Logo"})});$(".track-shutterstock-couponLink").on("click",function(){gtag("event","advertising",{event_type:"advertising",method:"ShutterStock Coupon Link"})});$(".track-shutterstock-bannerPopup").on("click",function(){gtag("event","advertising",{event_type:"advertising",method:"ShutterStock Banner Popup"})})})