var Tooltip=function(pos_left,pos_top,message){var container,INSTANCE=new VSModule;return INSTANCE.remove=function(){container.addClass("conceal"),setTimeout(function(){container.remove()},500)},container=$('
').css({left:pos_left,top:pos_top+13}).appendTo("body"),$("

").html(message).appendTo(container),$('').appendTo(container),Tooltip.current&&Tooltip.current.remove(),setTimeout(function(){Tooltip.current=INSTANCE,container.addClass("reveal")}),INSTANCE};Tooltip.galleries=null,VectorStock.LazyImage=function(container){var INSTANCE=new VSModule,windowframe=$(window);function checkVisibility(){var frame_top,frame_bottom,item_top;container.is(":hidden")||(frame_bottom=(frame_top=windowframe.scrollTop())+windowframe.height(),(item_top=container.offset().top)+container.height()>=frame_top-VectorStock.LazyImage.SCROLL_MARGIN&&item_top<=frame_bottom+VectorStock.LazyImage.SCROLL_MARGIN&&(loadImage(),windowframe.off("scroll resize",checkVisibility)))}function loadImage(){var icon=INSTANCE.anchor.loadingIcon(),img=new Image;img.onload=function(){$(img).appendTo(INSTANCE.anchor),setTimeout(function(){container.addClass("reveal"),icon.remove(),INSTANCE.dispatchEvent("loaded",[INSTANCE.id])},10)},img.onerror=function(){container.addClass("error"),icon.remove(),$('!').appendTo(INSTANCE.anchor),INSTANCE.dispatchEvent("error")},img.src=INSTANCE.src}return INSTANCE.anchor=$("a",container),INSTANCE.src=container.data("src"),INSTANCE.id=(INSTANCE.src.match(/(\d+)\.(jpe?g|png|webp)$/)||[null,null])[1],VectorStock.LazyImage.observer_load?(container.bind("loadImage",loadImage),VectorStock.LazyImage.observer_load.observe(container[0])):(windowframe.on("scroll resize",checkVisibility),checkVisibility()),INSTANCE},VectorStock.LazyImage.SCROLL_MARGIN=500,window.IntersectionObserver&&(VectorStock.LazyImage.observer_load=new IntersectionObserver(function(entries,observer){entries.forEach(function(entry){entry.isIntersecting&&($(entry.target).trigger("loadImage"),observer.unobserve(entry.target))})},{root:null,rootMargin:VectorStock.LazyImage.SCROLL_MARGIN+"px",threshold:0}));var VectorAttributionPopupCopyfield=function(fieldset){var input,button,INSTANCE=new VSModule;function highlightInput(){fieldset.addClass("highlight")}function unhighlightInput(){fieldset.removeClass("highlight")}function onURLCopied(){INSTANCE.dispatchEvent("copy",[input.val()])}function copyURLToClipboard(){try{input.select(),document.execCommand("copy")||copyURLToClipboardBackup()}catch(err){copyURLToClipboardBackup()}}function copyURLToClipboardBackup(){onURLCopied(),window.prompt("Copy failed - try copying here instead:",input.val())}return support_copy=!1,INSTANCE.setValue=function(value){input.val(value)},INSTANCE.select=function(){input.select()},function(){input=$("input",fieldset),button=$("button",fieldset);try{support_copy=document.queryCommandSupported("copy"),button.on("mousedown",highlightInput).on("mouseup mouseleave",unhighlightInput).on("click",copyURLToClipboard)}catch(e){fieldset.addClass("fallback")}input.on("copy",onURLCopied)}(),INSTANCE},VectorAttributionPopup=function(vector_id,vector_title,vector_url,vector_artist){var overlay,container,tab_list,tab_content,but_download,but_download_title,INSTANCE=new VSModule,tab_selected=null,copyfield_by_id={};function onClickOverlay(event){$(event.target)[0]==overlay[0]&&INSTANCE.close()}function onClickTab(event){var tab=$(event.target),tab_id=tab.data("tab-id");tab_id!==tab_selected&&(tab_list.filter(".selected").removeClass("selected"),tab.addClass("selected"),tab_content.filter(".selected").removeClass("selected"),tab_content.filter('[data-tab-id="'+tab_id+'"]').addClass("selected"),copyfield_by_id[tab_selected=tab_id].select(),INSTANCE.dispatchEvent("select_tab",[tab_id]))}function onClickDownload(event){but_download.hasClass("disabled")||INSTANCE.dispatchEvent("download"),event.preventDefault()}function onKeyPress(event){"Escape"===event.key&&(INSTANCE.close(),event.stopPropagation())}return INSTANCE.setDownloadStatus=function(is_downloading){is_downloading?(but_download.addClass("disabled"),but_download_title.text("Downloading...")):(but_download.removeClass("disabled"),but_download_title.text("Download Free Vector"))},INSTANCE.close=function(){container&&container.remove(),overlay.remove(),$(document).off("keypress",onKeyPress),INSTANCE.dispatchEvent("close")},function(){overlay=$('

').css({height:$(document).height()}).appendTo("body").on("click",onClickOverlay),setTimeout(function(){overlay.addClass("reveal")}),container=$('

Vector Attribution

This vector is FREE to use if you attribute the artist with the links below. Learn more...

').appendTo(overlay);var but_close=VectorStock.imagePath(vector_id,vector_title,"medium");$("figure",container).append(''+vector_title+''),tab_list=$("section nav li",container),tab_content=$("section .tab-content .tab",container),but_download=$("footer a",container),but_download_title=$(".title",but_download),but_close=$('button[data-action="close"]',container),tab_selected=tab_list.filter(".selected").data("tab-id"),tab_content.each(function(){var copy_field=$(this),tab_id=copy_field.data("tab-id"),copy_field=new VectorAttributionPopupCopyfield($(".fieldset",copy_field));"web"==tab_id?copy_field.setValue('Vector image by VectorStock / '+vector_artist+""):"print"==tab_id?copy_field.setValue("Designed by "+vector_artist+" (Image #"+vector_id+" at VectorStock.com)"):"video"==tab_id?copy_field.setValue(vector_title+" image designed by "+vector_artist+" at VectorStock.com"):"apps"==tab_id&©_field.setValue("Designed by "+vector_artist+" (Image #"+vector_id+" at VectorStock.com)"),copy_field.on("copy",function(url){INSTANCE.dispatchEvent("copy_url",[url])}),copyfield_by_id[tab_id]=copy_field}),but_download.attr("href",vector_url),tab_list.on("click",onClickTab),but_download.on("click",onClickDownload),but_close.on("click",INSTANCE.close),$(document).on("keypress",onKeyPress),setTimeout(function(){container.addClass("reveal")}),setTimeout(function(){copyfield_by_id[tab_selected].select()},250)}(),INSTANCE},VectorAttributionOverlay=function(target,vector_id,vector_title,vector_url,vector_artist){var container,tab_list,tab_content,but_close,INSTANCE=new VSModule,tab_selected=null,copyfield_by_id={};function onClickTab(event){var tab=$(event.target),tab_id=tab.data("tab-id");tab_id!==tab_selected&&(tab_list.filter(".selected").removeClass("selected"),tab.addClass("selected"),tab_content.filter(".selected").removeClass("selected"),tab_content.filter('[data-tab-id="'+tab_id+'"]').addClass("selected"),copyfield_by_id[tab_selected=tab_id].select())}return INSTANCE.close=function(){target.removeClass("attribution"),container&&container.remove(),INSTANCE.dispatchEvent("close")},container=$('
Artist Attribution

Image downloading... Don’t forget to attribute the artist!

').appendTo(target),target.addClass("attribution"),tab_list=$("section nav li",container),tab_content=$("section .tab-content .tab",container),but_close=$('button[data-action="close"]',container),tab_selected=tab_list.filter(".selected").data("tab-id"),tab_content.each(function(){var url_value,copy_field=$(this),tab_id=copy_field.data("tab-id"),copy_field=new VectorAttributionPopupCopyfield($(".fieldset",copy_field));"web"==tab_id?url_value=''+vector_title+" vector by "+vector_artist+"":"print"==tab_id?url_value="Designed by "+vector_artist+" (Image #"+vector_id+" at VectorStock.com)":"video"==tab_id?url_value=vector_title+" image designed by "+vector_artist+" at VectorStock.com":"apps"==tab_id&&(url_value="Designed by "+vector_artist+" (Image #"+vector_id+" at VectorStock.com)"),copy_field.setValue(url_value),copy_field.on("copy",function(){VectorStock.log({source:"AttributionPopup",issue:"Copy URL",detail:{source:"Overlay",vector:vector_id,url:url_value}},"info")}),copyfield_by_id[tab_id]=copy_field}),tab_list.on("click",onClickTab),but_close.on("click",function(){setTimeout(INSTANCE.close,20)}),container.on("click",function(event){event.stopPropagation()}),setTimeout(function(){copyfield_by_id[tab_selected].select()},250),INSTANCE},VectorDropdown=function(container){var display,display_label,select,INSTANCE=new VSModule;function onChange(){var opt_selected=$("option:selected",select),value=(opt_selected.closest("optgroup"),select.val()),label=opt_selected.data("label");opt_selected.data("details")&&(label+=" ("+opt_selected.data("details")+")"),display_label.html(label),container.attr("data-value",value),INSTANCE.value=value,INSTANCE.dispatchEvent("change",[value])}return INSTANCE.value=null,INSTANCE.select=function(value){var option=$('option[value="'+value+'"]');option.length&&!option.is(":selected")&&(select.val(value),onChange())},display=$("> .display",container),display_label=$(".label",display),select=$("> .select select",container),$("option",select),INSTANCE.value=select.val(),select.on("change",onChange),INSTANCE},VectorOptions=function(container,vector_details,account_details){var opts_payment_standard,opts_payment_editorial,opts_payment_expanded,opts_payment_exclusive,opts_customization,area_download,help_download,but_download,but_download_icon,but_download_label,INSTANCE=new VSModule;INSTANCE.license=null,INSTANCE.payment=null,INSTANCE.cost=null,INSTANCE.customization=null;var area_payment={},opts_payment={},area_options=$(".options",container),area_license=$('.option[data-type="license"]',area_options),opts_license=new VectorStock.FieldRadioboxes($(".radgroup fieldset",area_license)),field_customization=$('.option[data-type="attribution"]',area_options),but_attribution=$('button[data-action="popup"]',field_customization),area_payment_standard=$('.option[data-type="payment"][data-license="standard"]',area_options),area_payment_editorial=$('.option[data-type="payment"][data-license="editorial"]',area_options),area_payment_expanded=$('.option[data-type="payment"][data-license="expanded"]',area_options),area_payment_exclusive=$('.option[data-type="payment"][data-license="exclusive"]',area_options);area_payment_standard.length&&(opts_payment_standard=new VectorStock.FieldRadioboxes($('.radgroup[data-license="standard"] fieldset',area_payment_standard))),area_payment_editorial.length&&(opts_payment_editorial=new VectorStock.FieldRadioboxes($('.radgroup[data-license="editorial"] fieldset',area_payment_editorial))),area_payment_expanded.length&&(opts_payment_expanded=new VectorStock.FieldRadioboxes($('.radgroup[data-license="expanded"] fieldset',area_payment_expanded))),area_payment_exclusive.length&&(opts_payment_exclusive=new VectorStock.FieldRadioboxes($('.radgroup[data-license="exclusive"] fieldset',area_payment_exclusive))),field_customization=$('.option[data-type="customization"]',area_options),field_customization=$("fieldset",field_customization),opts_customization=new VectorStock.FieldCheckbox($("#f_payment_customization",field_customization)),area_download=$(".download",container),help_download=$("h6 .label",area_download),but_download=$('button[data-action="download"]',area_download),but_download_icon=$(".icon",but_download),but_download_label=$(".label",but_download),area_payment[VectorOptions.LICENSE_STANDARD]=area_payment_standard,area_payment[VectorOptions.LICENSE_EDITORIAL]=area_payment_editorial,area_payment[VectorOptions.LICENSE_EXPANDED]=area_payment_expanded,area_payment[VectorOptions.LICENSE_EXCLUSIVE]=area_payment_exclusive,opts_payment[VectorOptions.LICENSE_STANDARD]=opts_payment_standard,opts_payment[VectorOptions.LICENSE_EDITORIAL]=opts_payment_editorial,opts_payment[VectorOptions.LICENSE_EXPANDED]=opts_payment_expanded,opts_payment[VectorOptions.LICENSE_EXCLUSIVE]=opts_payment_exclusive;var but_download_label_copy,loaded_filesize=!1;function showTooltip(){function hideTooltip(){scope.removeClass("hover"),help.removeClass("reveal").hide(),$(this).off("mouseout",hideTooltip),$("body").off("click",hideTooltip)}var scope,help;VectorStock.isMobile()||(scope=$(this).closest(".option, .download").addClass("hover"),help=$(".help",scope).show(),setTimeout(function(){help.addClass("reveal")},25),$(this).on("mouseout",hideTooltip),scope.hasClass("option")&&$("body").on("click",hideTooltip))}function onHoverFileSizes(){var scope,loading,FILETYPES=["ai","eps","pdf","jpg","png","cdr","zip"];loaded_filesize||(scope=$(".help",area_download),(loading=$(".loading",scope)).loadingIcon("small"),$.get("/api/filesizes/"+vector_details.id,function(response){if(response.success){for(var file_label,file_size,file_desc,file_width,file_height,table=$("
File TypeSize
"),tbody=$("tbody",table),i=0;i("+file_width+"px by "+file_height+"px)"),file_desc=1e6MB":Math.round(file_size/1e3)+" KB",$(''+file_label+''+file_desc+"").appendTo(tbody));loading.remove(),table.appendTo(scope)}}),loaded_filesize=!0),showTooltip.call(this)}function onLicenseChange(){var label=opts_license.value;container.attr("data-license",label),area_license.attr("data-license",label);label=(INSTANCE.license=label)===VectorOptions.LICENSE_FREE?VectorOptions.BUTTON_LABEL_FREE:VectorOptions.BUTTON_LABEL_DOWNLOAD;but_download_label.html(label),INSTANCE.license==VectorOptions.LICENSE_EXPANDED&&INSTANCE.payment==VectorOptions.PAYMENT_SUBSCRIPTION&&opts_payment_expanded.set(VectorOptions.PAYMENT_CREDITS,!0),onPaymentChange(),INSTANCE.dispatchEvent("change_license",[INSTANCE.license])}function onPaymentChange(){var payment=opts_payment[INSTANCE.license]?opts_payment[INSTANCE.license].value:null;container.attr("data-payment",payment),opts_payment_expanded&&(INSTANCE.license==VectorOptions.LICENSE_STANDARD?opts_payment_expanded.set(opts_payment_standard.value,!0):INSTANCE.license==VectorOptions.LICENSE_EXPANDED&&opts_payment_standard.set(opts_payment_expanded.value,!0)),INSTANCE.payment=payment,INSTANCE.cost=opts_payment[INSTANCE.license]?opts_payment[INSTANCE.license].selected.data("cost"):null,INSTANCE.dispatchEvent("change_payment",[INSTANCE.payment])}function attemptDownload(){function announceDownloadEvent(){INSTANCE.dispatchEvent("download",[INSTANCE.license,INSTANCE.payment,INSTANCE.cost,INSTANCE.customization])}var prompt,buttons,alt_subscription=!1;function removePrompt(){area_download.removeClass("prompted"),prompt.remove()}alt_credits=!1,INSTANCE.payment===VectorOptions.PAYMENT_SINGLEIMAGE&&null===INSTANCE.customization&&(account_details.downloads&&0<=account_details.downloads&&(INSTANCE.license===VectorOptions.LICENSE_STANDARD||INSTANCE.license===VectorOptions.LICENSE_EDITORIAL)&&(alt_subscription=!0),account_details.credits&&account_details.credits>=INSTANCE.cost&&(alt_credits=!0)),alt_subscription||alt_credits?(area_download.addClass("prompted"),prompt=$('

Are you sure you’d like to purchase this license using Pay-per-Image?

').appendTo(area_download),buttons=$('
'),$('').appendTo(buttons).on("click",function(){removePrompt(),announceDownloadEvent()}),alt_subscription?($("

You could buy with your Subscription instead (you have "+account_details.downloads+" remaining)…

").appendTo(prompt),$('').appendTo(buttons).on("click",function(){opts_payment[INSTANCE.license].set("subscription"),removePrompt(),announceDownloadEvent()})):alt_credits&&($("

You could buy with your Credits instead (you have "+account_details.credits+" remaining)…

").appendTo(prompt),$('').appendTo(buttons).on("click",function(){opts_payment[INSTANCE.license].set("credits"),removePrompt(),announceDownloadEvent()})),buttons.appendTo(prompt),setTimeout(function(){prompt.addClass("reveal")},25)):announceDownloadEvent()}return INSTANCE.disableButton=function(label){but_download.prop("disabled",!0),but_download_icon.loadingIcon(),but_download_label_copy=but_download_label.html(),but_download_label.html(label)},INSTANCE.enableButton=function(){but_download.prop("disabled",!1),but_download_icon.empty(),but_download_label.html(but_download_label_copy)},INSTANCE.triggerDownload=function(){area_download.addClass("downloading"),setTimeout(function(){area_download.removeClass("downloading")},850)},INSTANCE.empty=function(){area_options.remove(),area_download.remove()},INSTANCE.license=opts_license.value,INSTANCE.payment=opts_payment[INSTANCE.license]?opts_payment[INSTANCE.license].value:null,INSTANCE.cost=opts_payment[INSTANCE.license]?opts_payment[INSTANCE.license].selected.data("cost"):null,INSTANCE.customization=opts_customization.checked?parseInt(opts_customization.input.data("cost"),10):null,container.attr("data-license")!==opts_license.value&&onLicenseChange(),container.on("mouseover",".option h6 a",showTooltip),opts_license.on("change",onLicenseChange),opts_payment_standard&&opts_payment_standard.on("change",onPaymentChange),opts_payment_editorial&&opts_payment_editorial.on("change",onPaymentChange),opts_payment_expanded&&opts_payment_expanded.on("change",onPaymentChange),opts_customization&&opts_customization.on("change",function(){INSTANCE.customization=opts_customization.checked?parseInt(opts_customization.input.data("cost"),10):null}),but_attribution.on("click",function(){INSTANCE.dispatchEvent("attribution_popup")}),help_download.on("mouseover",onHoverFileSizes),but_download.on("click",attemptDownload),INSTANCE};VectorOptions.LICENSE_FREE="free",VectorOptions.LICENSE_STANDARD="standard",VectorOptions.LICENSE_EDITORIAL="editorial",VectorOptions.LICENSE_EXPANDED="expanded",VectorOptions.LICENSE_EXCLUSIVE="exclusive",VectorOptions.PAYMENT_SINGLEIMAGE="single-image",VectorOptions.PAYMENT_CREDITS="credits",VectorOptions.PAYMENT_SUBSCRIPTION="subscription",VectorOptions.BUTTON_LABEL_FREE="Free Download",VectorOptions.BUTTON_LABEL_DOWNLOAD="Download Image";var VectorImage=function(container,vector_details,account_details){var icon,picture_loaded,picture_img,picture_load,picture_error,INSTANCE=new VSModule,img_high=$(".highres",container),area_panels=$(".panels",container),but_pinterest=$(".pinterest button",area_panels),but_facebook=$(".facebook button",area_panels),but_twitter=$(".twitter button",area_panels),but_email=$(".email button",area_panels),but_composite=$('.composite button[data-action="download"]',area_panels),img_path=vector_details.url.replace(/https?:\/\/[^\/]+/i,""),src_high=img_high.data("src");function onClickImage(event){area_panels.length&&event.target!==area_panels[0]||INSTANCE.dispatchEvent("click")}function popupWindow(url,name,width,height){var name=name||"",width=width||400,height=height||300,win_popup=0,win_left=window.screenX||window.screenLeft,win_top=window.screenY||window.screenTop,win_width=window.outerWidth||document.documentElement.clientWidth,win_height=window.outerHeight||document.documentElement.clientHeight-22,left=Math.round(win_left+(win_width-width)/2),win_popup=Math.round(win_top+(win_height-height)/2.5),win_popup=window.open(url,name,"scrollbars=no,menubar=no,resizable=yes,toolbar=no,location=no,status=yes,left="+left+",top="+win_popup+",width="+width+",height="+height);return win_popup&&win_popup.focus&&win_popup.focus(),win_popup}function shareOnPinterest(){var url_share=vector_details.url+"?utm_source=Pinterest";url_share+="&utm_medium=VectorStock Social Share",url_share+="&utm_campaign=Vector Social Share",url_share+="&utm_content="+vector_details.title;var url_pinterest="https://www.pinterest.com/pin/create/button/?";url_pinterest+="media="+encodeURIComponent(vector_details.media),url_pinterest+="&description="+encodeURIComponent(vector_details.description),url_pinterest+="&url="+encodeURIComponent(url_share),VectorStock.track("send","event","Share","Pinterest",img_path),popupWindow(url_pinterest,"SharePinterest",766,703)}function shareOnFacebook(){var url_share=vector_details.url+"?utm_source=Facebook";url_share+="&utm_medium=VectorStock Social Share",url_share+="&utm_campaign=Vector Social Share",url_share+="&utm_content="+vector_details.title;var url_facebook="https://www.facebook.com/dialog/share?";url_facebook+="app_id=241100862642313",url_facebook+="&display=popup",url_facebook+="&href="+encodeURIComponent(vector_details.url),url_facebook+="&redirect_uri="+encodeURIComponent(url_share),VectorStock.track("send","event","Share","Facebook",img_path),popupWindow(url_facebook,"ShareFacebook",555,469)}function shareOnTwitter(){var url_twitter="https://twitter.com/intent/tweet?";url_twitter+="text="+encodeURIComponent(vector_details.title),url_twitter+="&url="+encodeURIComponent(vector_details.url),VectorStock.track("send","event","Share","Twitter",img_path),popupWindow(url_twitter,"ShareTwitter",550,300)}function shareWithEmail(){VectorStock.track("send","event","Share","Email",img_path),window.location="mailto:?body="+encodeURIComponent(vector_details.url)}function downloadComposite(){INSTANCE.dispatchEvent("download_composite");var params=src_high.match(/\/i\/([a-z0-9\-]+)\/([0-9]+)\/([0-9]+)\/([a-z0-9\-]+)-([0-9]+)\.(jpg|webp)/i);window.location="https:"+VectorStock.domain+"/images/"+params[1]+"/"+params[2]+"/"+params[3]+"/"+params[5]+".jpg?download=1"}return icon=container.loadingIcon("large"),picture_loaded=!1,picture_img=$("img",img_high),picture_load=function(){picture_loaded||(picture_loaded=!0,setTimeout(function(){container.addClass("reveal"),icon.remove()},10))},picture_error=function(event){var img_low;picture_loaded||(picture_loaded=!0,img_low=$("
",{"class":"lowres"}),$("",{src:src_high.replace(/\/1000x1000\//gm,"/thumb-large/"),title:vector_details.title+" vector image",alt:vector_details.title}).appendTo(img_low),$("

High-res image couldn’t load

").appendTo(img_low),img_low.insertAfter(img_high),icon.remove(),setTimeout(function(){container.addClass("error")},10))},picture_img.on("load",picture_load).on("error",picture_error),picture_img.length&&picture_img[0].complete&&(0!==picture_img[0].naturalWidth?picture_load:picture_error)(),container.on("click",onClickImage),but_pinterest.on("click",shareOnPinterest),but_facebook.on("click",shareOnFacebook),but_twitter.on("click",shareOnTwitter),but_email.on("click",shareWithEmail),but_composite.on("click",downloadComposite),INSTANCE},VectorPurchasedOptions=function(parent,vector,account,customizations,cloud_options){var container,dd_filetype,but_download,list_license,list_customize,but_googledrive,but_dropbox,opt_cloud,payment_type,INSTANCE=new VSModule,COST_CUSTOMIZATION=85,cloud_buttons={};function updateDownloadButtonLabel(filetype){$(".label",but_download).text("Download "+filetype.toUpperCase())}function createCustomizationItem(customization){var status_customize=$("
  • ",list_customize).prependTo(list_customize),but_customize=$('
  • Vector LicenseLearn More

      The license type determines how you can use this image.

      Std.Exp.
      Print / Editorial
      Graphic Design
      Web Design
      Social Media
      Edit & Modify
      Multi-user
      Resale Items
      Unlimited Runs
      CustomizeNew!What is this?

        Love the image but just need a few modifications? Let our talented artists do the work for you!

        We’ll connect you with a designer who can make updates and send you the artwork in a format of your choice.

        Examples

        • Change the text
        • Modify colors
        • Resize to new dimensions
        • Include logo or symbol
        • Add your company or business name
        Save Vector to:
        Edit VectorNew!
        ').appendTo(parent),dd_filetype=new VectorDropdown($(".filedownload .dropdown",container)),but_download=$('button[data-action="download"]',container),opt_converter=$('.option[data-type="license"]',container),list_license=$("> ul",opt_converter),but_new_task=$('.option[data-type="customize"]',container),list_customize=$("> ul",but_new_task),opt_cloud=$('.option[data-type="cloud"]',container),but_googledrive=$('button[data-type="googledrive"]',opt_cloud),but_dropbox=$('button[data-type="dropbox"]',opt_cloud),cloud_buttons.googledrive=but_googledrive,cloud_buttons.dropbox=but_dropbox,opt_converter=$('.option[data-type="converter"]',container),payment_type=account.credits?VectorOptions.PAYMENT_CREDITS:VectorOptions.PAYMENT_SINGLEIMAGE,account.filetype)for(var filetype in vector.downloads)if(filetype===account.filetype){dd_filetype.select(filetype),updateDownloadButtonLabel(filetype);break}for(var i=0;i').appendTo(list_license);but_license=$('<').appendTo(cost_label),sub_license=$(".sub",but_license),license.owned?(but_license.prop("disabled",!0),sub_license.html('Purchased')):(cost_label=payment_type===VectorOptions.PAYMENT_CREDITS?license.cost[VectorOptions.PAYMENT_CREDITS]+'CR':"$"+license.cost[VectorOptions.PAYMENT_SINGLEIMAGE],sub_license.html(cost_label),but_license.on("click",function(){!function(license){{var message_license,item_license,but_license,sub_license,sub_contents,icon_loading;payment_type===VectorOptions.PAYMENT_SINGLEIMAGE?((item_license=new PaymentBox({id:vector.id,title:vector.title,license:license.type,cost:license.cost[payment_type],payment:payment_type},{total_cost:license.cost[payment_type],filetype:account.filetype})).on("purchase",function(response){markLicenseAsPurchased(license.type)}),item_license.on("view_options",function(){VectorStock.scrollTo($("#purchased-options"))})):(message_license=(license.type[0].match(/[aeiou]/i)?"an ":"a ")+license.type.toTitleCase(),item_license=license.cost[VectorOptions.PAYMENT_CREDITS],confirm("Upgrade to "+message_license+" license for "+item_license+" Credits?")&&(item_license=$('li[data-type="'+license.type+'"]',list_license),but_license=$("button",item_license),sub_license=$(".sub",but_license),sub_contents=sub_license.html(),sub_license.empty(),icon_loading=sub_license.loadingIcon("small"),but_license.prop("disabled",!0),INSTANCE.dispatchEvent("license_purchase",[license.type,payment_type,license.cost[VectorOptions.PAYMENT_CREDITS],function(success,response){success?markLicenseAsPurchased(license.type):(but_license.prop("disabled",!1),icon_loading.remove(),sub_license.html(sub_contents))}])))}}(license)}))}();if(customizations.length){$("h6 .label",but_new_task).html("Customize Vector"),$("h6 .label em",but_new_task).remove();for(i=customizations.length;i--;)createCustomizationItem(customizations[i])}if(but_new_task=$("
      • ").appendTo(list_customize),but_new_task=$('").appendTo(but_new_task),cloud_options.length)for(i=0;iVectorStock

        You have reached your limit of anonymous free downloads.

        Signup now to get unlimited access!

        '}),trackAttributionEvent({source:"Attribution Popup",event:"Limit Reached",detail:{vector:vector.id,tally:free_downloads.length}}))}),attr_popup.on("close",function(){trackAttributionEvent({source:"Attribution Popup",event:"Close",detail:{vector:vector.id}})})}function createPurchasedOptions(download_urls,license_options,customization){license_options||(license_options=[],(settings_account=$('input[id="vector_license_options"]',asset_form).val())&&(license_options=JSON.parse(settings_account))),download_urls||(download_urls=(cloud_options=$('input[id="vector_download_urls"]',asset_form).val())?JSON.parse(cloud_options):{});var settings_vector=$('input[id="account_customizations"]',asset_form).val(),customizations=[];settings_vector&&(customizations=JSON.parse(settings_vector)),customization&&customizations.push(customization);var settings_account=$('input[id="account_cloud"]',asset_form).val(),cloud_options=[];settings_account&&(cloud_options=JSON.parse(settings_account));settings_vector={id:vector.id,title:vector.title,downloads:download_urls,licenses:license_options},settings_account={credits:account.credits,downloads:account.downloads,filetype:account.filetype};new VectorPurchasedOptions(asset_form,settings_vector,settings_account,customizations,cloud_options).on("license_purchase",function(license_type,payment_type,payment_cost,callback){purchaseServerRequest(license_type,payment_type).done(function(response){callback(1==response.success,response),onPurchaseSuccess(license_type,payment_type,payment_cost,response)}).fail(function(jqxhr,text_status,error){callback(!1)})})}VectorStock.syncCartButton=function(){but_cart&&(VectorStock.userData.isInCart(vector.id)?but_cart.trigger("select"):but_cart.trigger("unselect"))},$(window).on("resize focus",setImageLimits),setImageLimits(),image_desktop.on("click",onClickImage),image_desktop.on("download_composite",function(){trackEvent("composite")}),image_mobile.on("click",onClickImage),but_repair.one("click",function(){var button=$(this);button.text("Repairing"),$.post("/api/vector/repair/"+vector.id,function(response){response.success?button.text("Repaired"):button.text("Failed"),button.addClass("repaired")})}),$('button[data-action="follow"]',mosaic_similar).each(function(){var tooltip,button=$(this),label=$(".label",button);button.on("mouseenter",function(){var left,top,message;button.hasClass("selected")||(left=button.offset().left+button.outerWidth()/2,top=button.offset().top+button.outerHeight()+5,message=button.attr("title"),tooltip=new Tooltip(left,top,message),button.attr("title",""),button.one("mouseleave",function(){tooltip&&tooltip.remove(),button.attr("title",message)}))}),button.on("click",function(){var is_following=button.hasClass("selected"),label_text=is_following?"Follow":"Following";button.toggleClass("selected"),label.text(label_text),tooltip&&tooltip.remove(),is_following?VectorStock.removeFromFollowing(vector.artist):(VectorStock.addToFollowing(vector.artist,function(response){response&&response.success||(button.removeClass("selected"),label.text("Follow")),response&&response.message&&"max_following_reached"==response.message&&alert("Could not follow artist - limit reached"+(response.following?" ("+response.following+")":""))}),trackEvent("follow"))})}),$('button[data-action="notfollow"]',mosaic_similar).each(function(){var tooltip,button=$(this),label=$(".label",button);button.on("mouseenter",function(){var left,top,message;button.hasClass("selected")||(left=button.offset().left+button.outerWidth()/2,top=button.offset().top+button.outerHeight()+5,message=button.attr("title"),tooltip=new Tooltip(left,top,message),button.attr("title",""),button.one("mouseleave",function(){tooltip&&tooltip.remove(),button.attr("title",message)}))}),button.on("click",function(){var is_notfollowing=button.hasClass("selected"),label_text=is_notfollowing?"Hide":"Hidden";button.toggleClass("selected"),label.text(label_text),tooltip&&tooltip.remove(),is_notfollowing?VectorStock.removeFromNotFollowing(vector.artist):(VectorStock.addToNotFollowing(vector.artist,function(response){response&&response.success||(button.removeClass("selected"),label.text("Hide")),response&&response.message&&"max_notfollowing_reached"==response.message&&alert("Could not hide artist - limit reached"+(response.notfollowing?" ("+response.notfollowing+")":""))}),trackEvent("notfollow"))})}),but_like.each(function(){var counter=but_like.data("count")||0,is_liked=but_like.hasClass("selected"),like_tracked=!1,label=$(".tally",but_like);function onActionComplete(response){response.likes_image&&response.likes_image!==counter&&setCounter(response.likes_image),response.likes_account&&VectorStock.setTally("likes",response.likes_account)}function setCounter(new_counter){new_counter=Math.max(0,new_counter),label.text(0==new_counter?"":"("+new_counter+")"),counter=new_counter}but_like.on("select",function(){setCounter(counter+1),but_like.addClass("selected"),VectorStock.likeImage(vector.id,onActionComplete),is_liked=!0}),but_like.on("unselect",function(){setCounter(counter-1),but_like.removeClass("selected"),VectorStock.unlikeImage(vector.id,onActionComplete),is_liked=!1}),but_like.on("click",function(){VectorStock.isLoggedIn()?is_liked?but_like.trigger("unselect"):but_like.trigger("select"):VectorStock.goToURL("/signup"),is_liked&&!like_tracked&&(trackEvent("like"),like_tracked=!0)})}),but_cart.each(function(){var in_cart=but_cart.hasClass("selected");but_cart.on("select",function(){var alert_message;but_cart.addClass("selected"),vector_options.payment&&vector_options.customization&&(alert_message={id:vector.id,license:vector_options.license,payment:vector_options.payment},VectorStock.track("send","event","Action","Added Customization to Cart",JSON.stringify(alert_message)),alert_message="Please note - Images placed in the Cart do not include customizations. To purchase a customization"+(vector_options.payment!==VectorOptions.PAYMENT_SINGLEIMAGE?", select the Pay-per-Image option and":"")+" click the Download Image button to initiate the payment.",alert(alert_message)),in_cart=!0}),but_cart.on("unselect",function(){but_cart.removeClass("selected"),in_cart=!1}),but_cart.on("click",function(){in_cart?(but_cart.trigger("unselect"),VectorStock.removeFromCart(vector.id)):(but_cart.trigger("select"),VectorStock.addToCart(vector.id,vector_options.license,function(response){response.success||(but_cart.trigger("unselect"),response.message&&"cart_full"==response.message&&alert("Could not add image #"+vector.id+" to Cart - limit reached"+(response.cart_total?" ("+response.cart_total+")":"")))}),trackEvent("cart"))})}),mosaic_artist.on("click",function(){new GalleryBox(vector.id,vector.title,vector.artist);trackEvent("gallery")}),vector_options.on("change_license",function(license){var but_cart_disabled=!1;vector.license_status!=license&&vector.license_status!=VectorOptions.LICENSE_EXPANDED||(but_cart_disabled=!0),but_cart.prop("disabled",but_cart_disabled)}),vector_options.on("attribution_popup",showAttributionPopup),vector_options.on("download",function(license,payment,cost,customization){account.is_owner||vector.license_status==license||vector.license_status==VectorOptions.LICENSE_EXPANDED?downloadAttempt(license):license==VectorOptions.LICENSE_FREE?(showAttributionPopup(),trackEvent("download_attempt")):payment==VectorOptions.PAYMENT_SINGLEIMAGE?(launchPaymentBox(license,cost,payment,customization),trackEvent("download_attempt")):account.logged_in?payment==VectorOptions.PAYMENT_SUBSCRIPTION?0