if(typeof STIPPLE==="undefined"){STIPPLE={};if(!this.JSON)this.JSON={};(function(){function l(c){return c<10?"0"+c:c}function p(c){f.lastIndex=0;return f.test(c)?'"'+c.replace(f,function(c){var f=r[c];return typeof f==="string"?f:"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+c+'"'}function c(f,l){var n,o,v,r,z=i,t,k=l[f];k&&typeof k==="object"&&typeof k.toJSON==="function"&&(k=k.toJSON(f));typeof s==="function"&&(k=s.call(l,f,k));switch(typeof k){case "string":return p(k);case "number":return isFinite(k)?
String(k):"null";case "boolean":case "null":return String(k);case "object":if(!k)return"null";i+=w;t=[];if(Object.prototype.toString.apply(k)==="[object Array]"){r=k.length;for(n=0;n<r;n+=1)t[n]=c(n,k)||"null";v=t.length===0?"[]":i?"[\n"+i+t.join(",\n"+i)+"\n"+z+"]":"["+t.join(",")+"]";i=z;return v}if(s&&typeof s==="object"){r=s.length;for(n=0;n<r;n+=1)o=s[n],typeof o==="string"&&(v=c(o,k))&&t.push(p(o)+(i?": ":":")+v)}else for(o in k)Object.hasOwnProperty.call(k,o)&&(v=c(o,k))&&t.push(p(o)+(i?": ":
":")+v);v=t.length===0?"{}":i?"{\n"+i+t.join(",\n"+i)+"\n"+z+"}":"{"+t.join(",")+"}";i=z;return v}}if(typeof Date.prototype.toJSON!=="function")Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+l(this.getUTCMonth()+1)+"-"+l(this.getUTCDate())+"T"+l(this.getUTCHours())+":"+l(this.getUTCMinutes())+":"+l(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var f=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
i,w,r={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;if(typeof JSON.stringify!=="function")JSON.stringify=function(f,l,n){var o;w=i="";if(typeof n==="number")for(o=0;o<n;o+=1)w+=" ";else typeof n==="string"&&(w=n);if((s=l)&&typeof l!=="function"&&(typeof l!=="object"||typeof l.length!=="number"))throw Error("JSON.stringify");return c("",{"":f})}})();(function(){var l=location.protocol+"//",p,c,f={},i,w=0,r,s,x,B={},n,o=null,v={},J,z,t,k,A,C,D,E,K,L,F,G,H,
y,M,N,O,I,P;if(location.protocol==="https:")switch("production"){case "production":p="https://s3.amazonaws.com/z.stipplestatic.com";break;case "staging":p="https://s3.amazonaws.com/staging.stipplestatic.com";break;case "development":p="http://stippleit.com/images"}else p="http://stipple.cachefly.net/production";r=p+"/dots/";s=p+"/external/";(function(){f=f||{};var c=function(c){return new Function("obj","var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+c.replace(/\\/g,
"\\\\").replace(/'/g,"\\'").replace(/<%=([\s\S]+?)%>/g,function(a,d){return"',"+d.replace(/\\'/g,"'")+",'"}).replace(/<%([\s\S]+?)%>/g,function(a,d){return"');"+d.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');")};f.ajax_spinner=c('<div class="stipple-ajax-spinner-background stipple-centered" style="display: none;">\n  <img style="height: 19px; width: 19px;" src="<%= staticHostname %>/external/spinner.gif" />\n</div>\n');
f.autocomplete_add_product=c('<li class="stipple-autocomplete-item stipple-autocomplete-add-product">\n  <div class="stipple-autocomplete-add-product-prompt">Don\'t see what you are looking for?</div>\n  <%= JST.button({elementType: \'a\', link: \'#\', cssClass: "stipple-autocomplete-add-product-button", newWindow: false, text: "Add a product"}) %>\n</li>');f.autocomplete_box=c('<div class="stipple-autocomplete-box">\n  <div class="stipple-autocomplete-no-results" style="display: none;">\n    <div class="stipple-autocomplete-add-product-prompt">\n      No results for "<span class="stipple-autocomplete-no-results-search-term"></span>"\n    </div>\n    <%= JST.button({elementType: \'a\', link: \'#\', cssClass: "stipple-autocomplete-add-product-button", newWindow: false, text: "Add a product"}) %>\n  </div>\n  \n  <div class="stipple-autocomplete-ajax-loader" style="display: none;">\n    <img class="stipple-ajax-spinner" src="<%= staticHostname %>/external/spinner-white.gif" alt="ajax spinner"/>\n  </div>\n  \n  <ul class="stipple-autocomplete-items">\n\n  </ul>\n</div>');
f.autocomplete_item=c('<li class="stipple-autocomplete-item">\n  <span class="stipple-autocomplete-partial-match"><%= text.substr(0, boldLength) %></span><%= text.substr(boldLength) %>\n</li>');f.autocomplete_item_product=c('<li class="stipple-autocomplete-item stipple-autocomplete-item-product">\n  <img src="<%= data.image_url %>" class="stipple-autocomplete-product-image" />\n  <div class="stipple-autocomplete-names">\n    <div class="stipple-autocomplete-name">\n      <%= data.name %>\n    </div>\n    <div class="stipple-autocomplete-brand-name">\n      <% if (data.brand && data.brand.length) { %>\n        by <%= data.brand %>\n      <% } %>\n      <% if (data.brand && data.brand.length && data.price && data.price.length) { %>\n        &bull;\n      <% } %>\n      <% if (data.price && data.price.length) { %>\n        <%= data.price %>\n      <% } %>\n    </div>\n  </div>\n</li>');
f.button=c("<% var styleString = typeof style === 'undefined' ? '' : 'style=\"' + style + '\"'; %>\n<% if (elementType === 'input') { %>\n  <input type=\"<%= inputType %>\" class=\"<%= cssClass %> stipple-button stipple-toolbar-button\" <%= newWindow ? 'target=\"_blank\"' : '' %> value=\"<%= text %>\" <%= styleString %> />\n<% } else { %>\n  <a href=\"<%= link %>\" class=\"<%= cssClass %> stipple-button stipple-toolbar-button\" <%= newWindow ? 'target=\"_blank\"' : '' %>><%= text %></a>\n<% } %>\n");
f.context_help_popup=c('<div class="stipple-help-popup">\n  <div class="stipple-help-popup-close-button">\n  </div>\n  <div class="stipple-help-popup-message">\n    <%= JST[template]({}) %>\n  </div>\n</div>');f.dot=c('<img class="stipple-dot" src="<%= image_url %>" />\n');f.dot_box_button=c('<a href="<%= link %>" class="<%= cssClass %> stipple-dot-box-button" target="_stippleNewWindow" >\n  <div class="stipple-button-label"><%= label %></div>\n</a>\n');f.dot_box_edit_drawer=c('<div class="stipple-dot-box-edit-drawer" style="display: none;">\n  <div class="stipple-dot-edit-link-container">\n    <a class="stipple-dot-edit-link" href="#">Edit tag</a>\n  </div>\n  <div class="stipple-dot-delete-link-container">\n    <a class="stipple-dot-delete-link" href="#">Delete tag</a>\n  </div>\n</div>\n');
f.dot_box_edit_toggler=c('<% if (userCanEdit) { %>\n  <div class="stipple-dot-box-edit-toggler stipple-toggler-off">\n        \n  </div>\n<% } %>\n');f.dot_info=c("<% var extra_class = (typeof link_data === 'object' && link_data) ? 'stipple-dot-box-info-' + link_data.name.toLowerCase() : ''; %>\n<div class=\"stipple-dot-box stipple-dot-box-info <%= extra_class %>\">\n  <div class=\"stipple-dot-box-inner\">\n    <% if (typeof link_data === 'object' && link_data) { %>\n      <%= JST['info_dot_' + helpers.infoDotTemplateType(link_data.name)]({JST: JST, link: link, title: title, note: note, link_data: link_data, staticHostname: staticHostname}) %>\n    <% } else { %>\n      <%= JST.info_dot_content({JST: JST, link: link, title: title, note: note, link_data: null, staticHostname: staticHostname}) %>\n    <% } %>\n    <%= JST.dot_box_edit_toggler({userCanEdit: userCanEdit}) %>\n  </div>\n\n  <%= JST.dot_box_edit_drawer({}) %>\n</div>\n");
f.dot_product=c('<div class="stipple-dot-box stipple-dot-box-product" <% if (has_product) { %> data-product-id="<%= product_id %>" <% } %>>\n  <div class="stipple-dot-box-inner">\n\n    <% if (has_offer && campaigned) { %>\n      <a href="<%= buy_now_link %>" class="stipple-dot-box-popup-link" target="_stippleNewWindow" style="background-color: #FFF;">\n        <div class="stipple-product-dot-image-container">\n          <img class="stipple-product-dot-image" src="<%= image_url %>" title="<%= title %>" alt="Image for <%= title %>" />\n        </div>\n      </a>\n    <% } else { %>\n      <div class="stipple-product-dot-image-container">\n        <img class="stipple-product-dot-image" src="<%= image_url %>" title="<%= title %>" alt="Image for <%= title %>" />\n      </div>\n    <% } %>\n    \n    <div class="stipple-product-info">\n      <h1 class="stipple-dot-box-title">\n        <%= title %>\n      </h1>\n    \n      <div style="clear: both;"></div>\n      \n      <div class="stipple-price-and-links">\n        <% if (rental_price) { %>\n          <span class="stipple-price"><%= rental_price %></span>\n        <% } else if (price) { %>\n          <span class="stipple-price"><%= price %></span>\n        <% } %>\n\n        <% if (price && brand && brand.length) { %>\n          <span class="stipple-product-price-separator">&bull;</span>\n        <% } %>\n            \n        <% if (brand && brand.length) { %>\n          <span class="stipple-product-brand">By <%= brand %></span>\n        <% } %>\n            \n        <div class="stipple-product-dot-button-container">\n          <% if (buy_now_link && has_offer && campaigned) { %>\n            <% var shop_text = rental_price ? "Rent" : "Shop"; %>\n            <a href="<%= buy_now_link %>" class="stipple-shop" target="_blank"><%= shop_text %></a>\n          <% } %>\n        </div>\n\n        <div style="clear: both;"></div>\n      </div>\n    </div>\n\n    <div style="clear: both;"></div>\n    <%= JST.dot_box_edit_toggler({userCanEdit: userCanEdit}) %>\n  </div>\n\n  <%= JST.dot_box_edit_drawer({}) %>\n</div>\n');
f.dot_wrapper=c('<div class="stipple-dottable-wrapper">\n</div>');f.editor_tools=c('<div class="stipple-editor-tools">\n  <%= JST.button({elementType: \'input\', inputType: \'button\', cssClass: "stipple-edit-button", newWindow: false, text: "Tag Image"}) %>\n</div>');f.external_css=c('<style type="text/css">\n.stipple-toolbar div,.stipple-toolbar span,.stipple-toolbar object,.stipple-toolbar iframe,.stipple-toolbar h1,.stipple-toolbar h2,.stipple-toolbar h3,.stipple-toolbar h4,.stipple-toolbar h5,.stipple-toolbar h6,.stipple-toolbar p,.stipple-toolbar pre,.stipple-toolbar a,.stipple-toolbar abbr,.stipple-toolbar acronym,.stipple-toolbar address,.stipple-toolbar code,.stipple-toolbar del,.stipple-toolbar dfn,.stipple-toolbar em,.stipple-toolbar img,.stipple-toolbar dl,.stipple-toolbar dt,.stipple-toolbar dd,.stipple-toolbar ol,.stipple-toolbar ul,.stipple-toolbar li,.stipple-toolbar fieldset,.stipple-toolbar form,.stipple-toolbar label,.stipple-toolbar legend,.stipple-toolbar caption,.stipple-toolbar tbody,.stipple-toolbar tfoot,.stipple-toolbar thead,.stipple-toolbar tr,.stipple-dot-box div,.stipple-dot-box span,.stipple-dot-box object,.stipple-dot-box iframe,.stipple-dot-box h1,.stipple-dot-box h2,.stipple-dot-box h3,.stipple-dot-box h4,.stipple-dot-box h5,.stipple-dot-box h6,.stipple-dot-box p,.stipple-dot-box pre,.stipple-dot-box a,.stipple-dot-box abbr,.stipple-dot-box acronym,.stipple-dot-box address,.stipple-dot-box code,.stipple-dot-box del,.stipple-dot-box dfn,.stipple-dot-box em,.stipple-dot-box img,.stipple-dot-box dl,.stipple-dot-box dt,.stipple-dot-box dd,.stipple-dot-box ol,.stipple-dot-box ul,.stipple-dot-box li,.stipple-dot-box fieldset,.stipple-dot-box form,.stipple-dot-box label,.stipple-dot-box legend,.stipple-dot-box caption,.stipple-dot-box tbody,.stipple-dot-box tfoot,.stipple-dot-box thead,.stipple-dot-box tr,.stipple-new-dot-container div,.stipple-new-dot-container span,.stipple-new-dot-container object,.stipple-new-dot-container iframe,.stipple-new-dot-container h1,.stipple-new-dot-container h2,.stipple-new-dot-container h3,.stipple-new-dot-container h4,.stipple-new-dot-container h5,.stipple-new-dot-container h6,.stipple-new-dot-container p,.stipple-new-dot-container pre,.stipple-new-dot-container a,.stipple-new-dot-container abbr,.stipple-new-dot-container acronym,.stipple-new-dot-container address,.stipple-new-dot-container code,.stipple-new-dot-container del,.stipple-new-dot-container dfn,.stipple-new-dot-container em,.stipple-new-dot-container img,.stipple-new-dot-container dl,.stipple-new-dot-container dt,.stipple-new-dot-container dd,.stipple-new-dot-container ol,.stipple-new-dot-container ul,.stipple-new-dot-container li,.stipple-new-dot-container fieldset,.stipple-new-dot-container form,.stipple-new-dot-container label,.stipple-new-dot-container legend,.stipple-new-dot-container caption,.stipple-new-dot-container tbody,.stipple-new-dot-container tfoot,.stipple-new-dot-container thead,.stipple-new-dot-container tr{margin:0!important;padding:0!important;border:0!important;outline:0!important;text-index:0!important;position:static;font-weight:inherit!important;font-style:inherit!important;font-size:100%!important;font-family:inherit!important;vertical-align:baseline!important}.stipple-toolbar table,.stipple-dot-box table,.stipple-new-dot-container table{border-collapse:separate!important;border-spacing:0!important;vertical-align:middle!important}.stipple-toolbar caption,.stipple-toolbar th,.stipple-toolbar td,.stipple-dot-box caption,.stipple-dot-box th,.stipple-dot-box td,.stipple-new-dot-container caption,.stipple-new-dot-container th,.stipple-new-dot-container td{text-align:left!important;font-weight:normal!important;vertical-align:middle!important}.stipple-toolbar q,.stipple-toolbar blockquote,.stipple-dot-box q,.stipple-dot-box blockquote,.stipple-new-dot-container q,.stipple-new-dot-container blockquote{quotes:"" ""!important}.stipple-toolbar q:before,.stipple-toolbar q:after,.stipple-toolbar blockquote:before,.stipple-toolbar blockquote:after,.stipple-dot-box q:before,.stipple-dot-box q:after,.stipple-dot-box blockquote:before,.stipple-dot-box blockquote:after,.stipple-new-dot-container q:before,.stipple-new-dot-container q:after,.stipple-new-dot-container blockquote:before,.stipple-new-dot-container blockquote:after{content:""!important}.stipple-toolbar a img,.stipple-dot-box a img,.stipple-new-dot-container a img{border:none!important}img.stipple-dot{z-index:155000!important;width:25px!important;height:25px!important;background:none repeat scroll 0 0 transparent!important;border:none!important;padding:0!important;box-shadow:none!important;-moz-box-shadow:none!important;-webkit-box-shadow:none!important}.stipple-dottable-wrapper .stipple-status-box-container{width:100%!important;position:absolute!important;top:50px!important;text-align:center!important}.stipple-dottable-wrapper .stipple-status-box{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;border-radius:10px!important;-moz-border-radius:10px!important;-webkit-border-radius:10px!important;color:white!important;background-color:black!important;background-color:rgba(0,0,0,0.75)!important;padding:15px!important;font-size:18px!important;font-weight:bold!important;text-align:center!important;margin:0 auto!important}.stipple-new-dot-overlay{z-index:150000!important;position:absolute!important;left:0!important;top:0!important;height:100%!important;width:100%!important;background-color:transparent;cursor:crosshair!important}.stipple-new-dot-overlay.stipple-inactive{cursor:auto!important}.stipple-new-dot-container{-moz-border-radius:4px!important;-webkit-border-radius:4px!important;border-radius:4px!important;background:white!important;width:270px!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:12px!important;line-height:1!important;z-index:300000!important;color:#1e1e1e!important;-moz-box-shadow:0 1px 7px rgba(0,0,0,0.4),inset 1px 1px 0 rgba(255,255,255,0.5),inset -1px -1px 0 rgba(255,255,255,0.5),1px 1px 0 rgba(0,0,0,0.15),-1px -1px 0 rgba(0,0,0,0.15)!important;-webkit-box-shadow:0 1px 7px rgba(0,0,0,0.4),inset 1px 1px 0 rgba(255,255,255,0.5),inset -1px -1px 0 rgba(255,255,255,0.5),1px 1px 0 rgba(0,0,0,0.15),-1px -1px 0 rgba(0,0,0,0.15)!important;box-shadow:0 1px 7px rgba(0,0,0,0.4),inset 1px 1px 0 rgba(255,255,255,0.5),inset -1px -1px 0 rgba(255,255,255,0.5),1px 1px 0 rgba(0,0,0,0.15),-1px -1px 0 rgba(0,0,0,0.15)!important}.stipple-new-dot-container input{float:none!important}.stipple-new-dot-container .stipple-dot-specific-fields{margin-left:15px!important;margin-right:15px!important;margin-bottom:15px!important}.stipple-new-dot-container .stipple-new-dot-buttons{text-align:right!important;margin-top:0!important;margin-bottom:5px!important;background-color:transparent!important;padding:10px 13px 5px!important;height:24px!important;border-top:1px solid #bebebe!important}.stipple-new-dot-container .stipple-new-dot-buttons input:active,.stipple-new-dot-container .stipple-new-dot-buttons img:active{position:relative!important;top:1px!important}.stipple-new-dot-container .stipple-new-dot-buttons .stipple-new-dot-save-button,.stipple-new-dot-container .stipple-new-dot-buttons .stipple-new-dot-edit-button{height:24px!important}.stipple-new-dot-container .stipple-new-dot-buttons .stipple-new-dot-cancel-button{height:24px!important;float:left!important}.stipple-new-dot-container form input[type="text"],.stipple-new-dot-container form input[type="url"],.stipple-new-dot-container form textarea,.stipple-new-dot-container form select{-moz-border-radius:4px!important;-webkit-border-radius:4px!important;border-radius:4px!important;margin-top:6px!important;margin-bottom:6px!important;display:block;width:230px!important;padding:2px 5px!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:12px!important;border:1px solid #d3d3d3!important;text-transform:none!important}.stipple-new-dot-container form input[type="text"],.stipple-new-dot-container form input[type="url"],.stipple-new-dot-container form textarea{border:1px solid black!important;border:1px solid rgba(0,0,0,0.293)!important;background-color:white!important;-moz-box-shadow:0 2px 0 #fff,0 1px 1px rgba(0,0,0,0.2) inset!important;-webkit-box-shadow:0 2px 0 #fff,0 1px 1px rgba(0,0,0,0.2) inset!important;box-shadow:0 2px 0 #fff,0 1px 1px rgba(0,0,0,0.2) inset!important}.stipple-new-dot-container form input[type="text"].stipple-empty-input,.stipple-new-dot-container form input[type="url"].stipple-empty-input,.stipple-new-dot-container form textarea.stipple-empty-input{color:#a7a7a7!important;font-style:italic!important}.stipple-new-dot-container form textarea{padding-top:5px!important;padding-bottom:5px!important;border:1px solid #999!important;box-shadow:0 1px 0 #e7e7e7 inset!important}.stipple-new-dot-container form select{font-size:11px!important;background-color:#f7f7f7!important;width:242px!important;-moz-box-shadow:0 2px 0 #FFF!important;-webkit-box-shadow:0 2px 0 #FFF!important;box-shadow:0 2px 0 #FFF!important;margin-bottom:10px!important;margin-top:6px!important}.stipple-new-dot-container form label{display:inline!important;color:#666!important;font-size:11px!important}.stipple-new-dot-container form label .stipple-validation-error{float:right!important;color:#fc4a4a!important}.stipple-new-dot-container form .stipple-new-dot-main-prompt{display:block!important;text-align:center!important;width:auto!important;float:none!important;padding:0!important}.stipple-new-dot-container form .stipple-fetching-link{height:140px!important;text-align:center!important}.stipple-new-dot-container form .stipple-fetching-link .stipple-ajax-spinner{text-align:center!important;position:relative!important;top:60px!important}.stipple-new-dot-container form .stipple-fetching-link img{height:20px!important;width:20px!important}.stipple-new-dot-container form .stipple-info-preview{padding:0 13px 5px!important}.stipple-new-dot-container form .stipple-info-preview .stipple-dot-box-title{background-image:none!important;height:auto!important;width:auto!important;text-indent:0!important;margin:auto!important;color:black!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:12px!important;font-weight:bold!important;float:left!important;line-height:normal!important;-moz-text-shadow:0 1px 0 white!important;-webkit-text-shadow:0 1px 0 white!important;text-shadow:0 1px 0 white!important;margin-top:0!important;word-wrap:break-word!important;max-width:250px!important}.stipple-new-dot-container form .stipple-info-preview .stipple-dot-box-title a{color:#262626!important;text-decoration:none!important;border-bottom:1px dotted #ccc!important}.stipple-new-dot-container form .stipple-info-preview .stipple-note{margin-top:10px!important;word-wrap:break-word!important}.stipple-new-dot-container form .stipple-link-previews{padding:0 13px 5px!important;margin-top:10px!important;margin-bottom:10px!important}.stipple-new-dot-container form .stipple-link-previews .stipple-link-data{margin-top:10px!important;word-wrap:break-word!important}.stipple-new-dot-container form .stipple-link-previews .stipple-link-data:first-child{margin-top:0!important}.stipple-new-dot-container form .stipple-link-previews .stipple-link-data .stipple-link-data-image{display:inline-block!important;margin-left:2px!important;margin-right:10px!important;text-align:center!important;float:left!important}.stipple-new-dot-container form .stipple-link-previews .stipple-link-data .stipple-link-data-image img{display:block!important;max-width:60px!important;max-height:60px!important;margin:auto!important;height:auto!important;width:auto!important}.stipple-new-dot-container form .stipple-link-previews .stipple-link-data .stipple-link-data-description-container{display:inline-block!important;font-size:12px!important;line-height:16px!important;color:#666!important;max-width:170px!important}.stipple-new-dot-container form .stipple-link-previews .stipple-link-data .stipple-link-data-description-container strong{font-weight:bold!important;color:#666!important}.stipple-new-dot-container form .stipple-link-previews .stipple-link-data .stipple-link-data-description-wide-container{display:inline-block!important;font-size:12px!important;line-height:16px!important;color:#666!important;max-width:250px!important}.stipple-new-dot-container form .stipple-link-previews .stipple-link-data .stipple-link-data-description-wide-container strong{font-weight:bold!important;color:#666!important}.stipple-new-dot-container form .stipple-link-previews .stipple-link-data .stipple-embed-container{margin:10px 0 0!important;padding:0!important;text-align:center!important}.stipple-new-dot-container form .stipple-link-previews .stipple-link-data .stipple-embed-container:first-child{margin-top:0!important}.stipple-new-dot-container form .stipple-link-previews .stipple-link-data .stipple-embed-container .stipple-embedded-image{width:auto!important;height:auto!important;max-width:250px!important;max-height:none!important}.stipple-new-dot-container .stipple-new-product-dot-form .stipple-selected-product{padding:5px 5px 9px!important}.stipple-new-dot-container .stipple-new-product-dot-form .stipple-selected-product li{list-style-type:none!important}.stipple-new-dot-container .stipple-new-product-dot-form .stipple-selected-product .stipple-autocomplete-product-image{height:auto!important;width:auto!important;max-width:60px!important;max-height:60px!important;border:1px solid #989898!important;margin-left:10px!important}.stipple-new-dot-container .stipple-new-product-dot-form .stipple-selected-product .stipple-autocomplete-name{font-weight:bold!important}.stipple-new-dot-container .stipple-new-dot-chooser{width:100%!important;background-color:transparent!important;color:black!important;-moz-text-shadow:0 1px 0 white!important;-webkit-text-shadow:0 1px 0 white!important;text-shadow:0 1px 0 white!important;font-size:11px!important;font-weight:bold!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-style:normal!important;height:45px!important;-moz-border-radius-topleft:4px!important;-moz-border-radius-topright:4px!important;-webkit-border-top-left-radius:4px!important;-webkit-border-top-right-radius:4px!important;border-top-left-radius:4px!important;border-top-right-radius:4px!important}.stipple-new-dot-container .stipple-new-dot-chooser .stipple-new-dot-choice{width:135px!important;height:30px!important;line-height:30px!important;margin:0!important;padding:0!important;background-color:#e6e6e6!important;display:inline-block!important;text-align:center!important;cursor:pointer!important;border-bottom:1px solid #bebebe!important}.stipple-new-dot-container .stipple-new-dot-chooser .stipple-new-dot-choice.stipple-selected{display:inline-block!important;background-color:transparent!important;border-bottom:none!important}.stipple-new-dot-container .stipple-new-dot-chooser .stipple-new-dot-choice:first-child{-moz-border-radius-topleft:4px!important;-webkit-border-top-left-radius:4px!important;border-top-left-radius:4px!important}.stipple-new-dot-container .stipple-new-dot-chooser .stipple-new-dot-choice:last-child{-moz-border-radius-topright:4px!important;-webkit-border-top-right-radius:4px!important;border-top-right-radius:4px!important;border-left:1px solid #bebebe!important;width:134px!important}a.stipple-button,input.stipple-button{-moz-border-radius:4px!important;-webkit-border-radius:4px!important;border-radius:4px!important;border:1px solid #b3aaaa!important;height:20px!important;line-height:20px!important;color:#404040!important;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e6e6e6))!important;background:-moz-linear-gradient(top,#fff,#e6e6e6)!important;background:-webkit-linear-gradient(top,#fff,#e6e6e6)!important;text-align:center!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-weight:bold!important;font-size:11px!important;font-style:normal!important;cursor:pointer!important;text-decoration:none!important;height:20px!important;width:60px!important;display:inline-block;line-height:normal!important}a.stipple-button:active,input.stipple-button:active{position:relative!important;top:1px!important}.stipple-dot-box a.stipple-dot-box-button{-moz-border-radius:10px!important;-webkit-border-radius:10px!important;border-radius:10px!important;color:black!important;cursor:pointer!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:12px!important;font-weight:normal!important;font-style:normal!important;height:20px!important;width:70px!important;text-decoration:none!important;display:inline-block!important;text-align:center!important}.stipple-dot-box a.stipple-dot-box-button .stipple-button-label{display:inline-block!important;vertical-align:top!important;line-height:20px!important}.stipple-dot-box a.stipple-dot-box-button:active .stipple-button-label{margin-top:1px!important}.stipple-editor-tools{z-index:161000!important;background-color:transparent!important;margin:0!important;padding:0!important;position:absolute!important;top:0!important;left:0!important;display:none}.stipple-editor-tools .stipple-edit-button{-moz-border-radius:4px!important;-webkit-border-radius:4px!important;border-radius:4px!important;border:1px solid #b3aaaa!important;height:20px!important;line-height:20px!important;color:#404040!important;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e6e6e6))!important;background:-moz-linear-gradient(top,#fff,#e6e6e6)!important;background:-webkit-linear-gradient(top,#fff,#e6e6e6)!important;text-align:center!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-weight:bold!important;font-size:11px!important;font-style:normal!important;cursor:pointer!important;text-decoration:none!important;margin:0!important;position:absolute!important;left:10px!important;top:10px!important;padding:3px!important;cursor:pointer!important;max-width:none!important;min-width:80px!important;max-height:none!important;width:auto!important;height:auto!important;background-color:transparent!important}.stipple-editor-tools .stipple-edit-button:active{position:relative!important;top:1px!important}.stipple-editor-tools .stipple-edit-button:active:not(.stipple-disabled){top:11px!important}.stipple-edit-caption-container{border-top:1px solid #d8d8d8!important;padding:15px!important}.stipple-edit-caption-container .stipple-edit-caption-label{display:block!important;margin-bottom:5px!important;text-align:left!important}.stipple-edit-caption-container .stipple-edit-caption-form input{vertical-align:middle!important}.stipple-edit-caption-container .stipple-caption-input{font-size:12px!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;background-color:white!important;width:135px!important;-moz-border-radius:4px!important;-webkit-border-radius:4px!important;border-radius:4px!important;margin-right:4px!important}.stipple-edit-caption-container .stipple-edit-caption-save-button:disabled{color:#999!important}.stipple-dot-box{z-index:180000!important;position:absolute!important;line-height:normal!important;display:none;border:none!important;background-color:white!important;background-color:rgba(255,255,255,0.92)!important;*background-color:white!important;-moz-border-radius:2px!important;-webkit-border-radius:2px!important;border-radius:2px!important;border:none!important;-moz-box-shadow:0 1px 7px rgba(0,0,0,0.4),inset 1px 1px 0 rgba(255,255,255,0.5),inset -1px -1px 0 rgba(255,255,255,0.5),1px 1px 0 rgba(0,0,0,0.15),-1px -1px 0 rgba(0,0,0,0.15)!important;-webkit-box-shadow:0 1px 7px rgba(0,0,0,0.4),inset 1px 1px 0 rgba(255,255,255,0.5),inset -1px -1px 0 rgba(255,255,255,0.5),1px 1px 0 rgba(0,0,0,0.15),-1px -1px 0 rgba(0,0,0,0.15)!important;box-shadow:0 1px 7px rgba(0,0,0,0.4),inset 1px 1px 0 rgba(255,255,255,0.5),inset -1px -1px 0 rgba(255,255,255,0.5),1px 1px 0 rgba(0,0,0,0.15),-1px -1px 0 rgba(0,0,0,0.15)!important;-moz-text-shadow:0 1px 0 white!important;-webkit-text-shadow:0 1px 0 white!important;text-shadow:0 1px 0 white!important;color:#404040!important}.stipple-dot-box .stipple-dot-box-inner{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:12px!important;font-weight:normal!important;font-style:normal!important;line-height:16px!important;text-align:left!important;padding:10px!important;border-radius:2px!important;-moz-border-radius:2px!important;-webkit-border-radius:2px!important;position:relative!important}.stipple-dot-box .stipple-dot-box-inner .stipple-dot-box-title{background-image:none!important;height:auto!important;width:auto!important;text-indent:0!important;margin:auto!important;color:black!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:12px!important;font-weight:bold!important;float:left!important;line-height:normal!important;-moz-text-shadow:0 1px 0 white!important;-webkit-text-shadow:0 1px 0 white!important;text-shadow:0 1px 0 white!important;margin-top:0!important;word-wrap:break-word!important;max-width:250px!important}.stipple-dot-box .stipple-dot-box-inner .stipple-dot-box-title a{color:#262626!important;text-decoration:none!important;border-bottom:1px dotted #ccc!important}.stipple-dot-box .stipple-dot-box-inner .stipple-attribution{font-size:11px!important;color:#999!important}.stipple-dot-box .stipple-dot-box-inner span.stipple-attribution{float:left!important;margin-left:10px!important}.stipple-dot-box .stipple-dot-box-inner .stipple-provider-logo-topright{border:none!important;position:absolute!important;top:10px!important;right:10px!important;left:auto!important;bottom:auto!important}.stipple-dot-box .stipple-dot-box-inner .stipple-provider-logo-topright img{height:16px!important;width:16px!important}.stipple-dot-box .stipple-dot-box-inner .stipple-info-dot-box-note{margin-top:5px!important;word-wrap:break-word!important}.stipple-dot-box .stipple-dot-box-inner .stipple-external-link{display:inline-block!important;float:right!important;text-align:right!important;width:17px!important}.stipple-dot-box .stipple-dot-box-inner .stipple-dot-box-bottom-ad-container{margin-top:10px!important;text-align:center!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data{margin-top:10px!important;word-wrap:break-word!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data:first-child{margin-top:0!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-link-data-image{display:inline-block!important;margin-left:2px!important;margin-right:10px!important;text-align:center!important;float:left!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-link-data-image img{display:block!important;max-width:60px!important;max-height:60px!important;margin:auto!important;height:auto!important;width:auto!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-link-data-description-container{display:inline-block!important;font-size:12px!important;line-height:16px!important;color:#666!important;max-width:170px!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-link-data-description-container strong{font-weight:bold!important;color:#666!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-link-data-description-wide-container{display:inline-block!important;font-size:12px!important;line-height:16px!important;color:#666!important;max-width:250px!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-link-data-description-wide-container strong{font-weight:bold!important;color:#666!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-embed-container{margin:10px 0 0!important;padding:0!important;text-align:center!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-embed-container:first-child{margin-top:0!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-embed-container .stipple-embedded-image{width:auto!important;height:auto!important;max-width:250px!important;max-height:none!important}.stipple-dot-box .stipple-dot-box-inner .stipple-dot-box-edit-toggler{display:block!important;height:10px!important;width:10px!important;position:absolute!important;right:10px!important;bottom:10px!important;cursor:pointer!important}.stipple-dot-box .stipple-dot-box-inner .stipple-dot-box-edit-toggler.stipple-toggler-off{background-image:url(//s3.amazonaws.com/z.stipplestatic.com/external/point-down.png)!important}.stipple-dot-box .stipple-dot-box-inner .stipple-dot-box-edit-toggler.stipple-toggler-on{background-image:url(//s3.amazonaws.com/z.stipplestatic.com/external/point-up.png)!important}.stipple-dot-box .stipple-dot-box-edit-drawer{height:35px!important;border-top:1px solid #d8d8d8!important;background-color:#fcfcfc!important;-moz-border-radius-bottomleft:4px!important;-webkit-border-bottom-left-radius:4px!important;border-bottom-left-radius:4px!important;-moz-border-radius-bottomright:4px!important;-webkit-border-bottom-right-radius:4px!important;border-bottom-right-radius:4px!important;overflow:hidden}.stipple-dot-box .stipple-dot-box-edit-drawer .stipple-dot-edit-link-container,.stipple-dot-box .stipple-dot-box-edit-drawer .stipple-dot-delete-link-container{text-align:center!important;height:25px!important;padding-top:10px!important}.stipple-dot-box .stipple-dot-box-edit-drawer .stipple-dot-edit-link-container{border-right:1px solid #d8d8d8!important;width:50%!important;float:left!important}.stipple-dot-box .stipple-dot-box-edit-drawer .stipple-dot-delete-link-container{overflow:hidden!important}.stipple-dot-box .stipple-dot-box-edit-drawer .stipple-dot-edit-link,.stipple-dot-box .stipple-dot-box-edit-drawer .stipple-dot-delete-link{border:none!important;text-decoration:underline!important;font-size:11px!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important}.stipple-dot-box .stipple-dot-box-edit-drawer .stipple-dot-edit-link{color:#666!important}.stipple-dot-box .stipple-dot-box-edit-drawer .stipple-dot-delete-link{color:#bf0000!important}.stipple-dot-box-info .stipple-dot-box-inner{width:250px!important}.stipple-dot-box-info .stipple-note{margin-top:5px!important}.stipple-dot-box-info-eventbrite .stipple-dot-box-inner span.stipple-attribution{float:none!important;margin-left:0!important;display:block!important;clear:both!important}.stipple-dot-box a,.stipple-link-previews .stipple-link-data a{color:#666!important;text-decoration:none!important;border-bottom:1px dotted #ccc!important}.stipple-dot-box a.stipple-linked-image,.stipple-link-previews .stipple-link-data a.stipple-linked-image{border-bottom:none!important}.stipple-dot-box-product .stipple-dot-box-title{display:block!important}.stipple-dot-box-product .stipple-product-brand{font-size:12px!important}.stipple-dot-box-product .stipple-price-and-links{display:block!important;vertical-align:top!important}.stipple-dot-box-product .stipple-price-and-links .stipple-price{font-size:12px!important;word-wrap:break-word!important}.stipple-dot-box-product .stipple-price-and-links .stipple-product-price-separator{font-size:9px!important}.stipple-dot-box-product .stipple-product-info{float:left!important;margin-left:10px!important;min-width:130px!important;max-width:230px!important}.stipple-dot-box-product .stipple-dot-box-inner{min-width:200px!important;min-height:60px!important;max-width:300px!important;padding:10px!important;-moz-border-radius-bottomleft:0!important;-webkit-border-bottom-left-radius:0!important;border-bottom-left-radius:0!important;-moz-border-radius-bottomright:0!important;-webkit-border-bottom-right-radius:0!important;border-bottom-right-radius:0!important}.stipple-dot-box-product .stipple-dot-box-inner img.stipple-product-dot-image{width:inherit!important;height:auto!important;display:block!important;max-width:60px!important;max-height:60px!important;margin-left:auto!important;margin-right:auto!important;-webkit-border-radius:2px!important;border-radius:2px!important}.stipple-dot-box-product .stipple-dot-box-inner .stipple-product-dot-image-container{max-width:60px!important;max-height:60px!important;float:left!important;word-wrap:break-word!important;margin:0!important;-moz-border-radius:2px!important;-webkit-border-radius:2px!important;border-radius:2px!important;position:relative}.stipple-dot-box-product .stipple-dot-box-inner .stipple-product-dot-image-container:after{-webkit-border-radius:2px!important;border-radius:2px!important;-moz-box-shadow:1px 1px 0 rgba(0,0,0,0.3) inset,-1px -1px 0 rgba(0,0,0,0.3) inset,0 1px 0 rgba(255,255,255,0.75)!important;-webkit-box-shadow:1px 1px 0 rgba(0,0,0,0.3) inset,-1px -1px 0 rgba(0,0,0,0.3) inset,0 1px 0 rgba(255,255,255,0.75)!important;box-shadow:1px 1px 0 rgba(0,0,0,0.3) inset,-1px -1px 0 rgba(0,0,0,0.3) inset,0 1px 0 rgba(255,255,255,0.75)!important;position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;content:""!important}.stipple-dot-box-product .stipple-dot-box-inner .stipple-product-dot-image-container .stipple-dot-box-popup-link{width:60px!important;display:block!important;float:left!important;margin:0!important;overflow:hidden!important;-moz-box-shadow:0 1px 0 white!important;-webkit-box-shadow:0 1px 0 white!important;box-shadow:0 1px 0 white!important}.stipple-dot-box-product .stipple-dot-box-inner .stipple-product-dot-image-container .stipple-dot-box-popup-link>div{float:none!important}.stipple-dot-box-product .stipple-dot-box-inner .stipple-product-dot-button-container{margin-top:9px!important}.stipple-dot-box-product .stipple-local-offers-container{max-width:300px!important;font-size:12px!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important}.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-prompt{color:#efefef!important;-moz-text-shadow:0 -1px 0 #000!important;-webkit-text-shadow:0 -1px 0 #000!important;text-shadow:0 -1px 0 #000!important;-moz-box-shadow:0 1px 0 #b2b2b2 inset,0 1px 6px rgba(0,0,0,0.2)!important;-webkit-box-shadow:0 1px 0 #b2b2b2 inset,0 1px 6px rgba(0,0,0,0.2)!important;box-shadow:0 1px 0 #b2b2b2 inset,0 1px 6px rgba(0,0,0,0.2)!important;-webkit-text-stroke:1px solid #202020!important;background-color:#262626!important;cursor:pointer!important;text-align:center!important;height:25px!important;-moz-border-radius-bottomleft:4px!important;-webkit-border-bottom-left-radius:4px!important;border-bottom-left-radius:4px!important;-moz-border-radius-bottomright:4px!important;-webkit-border-bottom-right-radius:4px!important;border-bottom-right-radius:4px!important}.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-prompt .stipple-local-offers-prompt-inner{padding-top:4px!important}.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-prompt img,.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-prompt .stipple-local-offers-text{vertical-align:middle!important}.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list{background-color:white!important;padding:3px 6px 3px 6px!important}.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list a,.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list a:hover{color:#09f!important}.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list .stipple-local-offer-container{padding:3px 0!important;text-align:left!important}.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list .stipple-local-offer-container .stipple-local-offer-content{vertical-align:middle!important;display:inline-block!important}.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list .stipple-local-offer-container .stipple-local-offer-image ~ .stipple-local-offer-content{max-width:263px!important}.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list .stipple-local-offer-container .stipple-local-offer-image{width:20px!important;vertical-align:middle!important;word-wrap:break-word!important;-moz-border-radius:2px!important;-webkit-border-radius:2px!important;border-radius:2px!important}.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list .stipple-local-offer-provider,.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list .stipple-local-offer-price{font-weight:bold!important}.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list .stipple-local-offer-address{font-size:10px!important}.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list .stipple-local-offer-address a,.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list .stipple-local-offer-address a:hover{color:#333!important}a.stipple-shop{-moz-border-radius:4px!important;-webkit-border-radius:4px!important;border-radius:4px!important;border:1px solid #b3aaaa!important;height:20px!important;line-height:20px!important;color:#404040!important;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e6e6e6))!important;background:-moz-linear-gradient(top,#fff,#e6e6e6)!important;background:-webkit-linear-gradient(top,#fff,#e6e6e6)!important;text-align:center!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-weight:bold!important;font-size:11px!important;font-style:normal!important;cursor:pointer!important;text-decoration:none!important;display:inline-block!important;height:20px!important;width:48px!important}a.stipple-shop:active{position:relative!important;top:1px!important}a.stipple-shop:active{position:relative!important;top:1px!important}.stipple-new-dot-container form .stipple-product-fields .stipple-autocomplete-box{position:absolute!important;border-top:none!important}.stipple-new-dot-container form .stipple-product-fields .stipple-autocomplete-box .stipple-autocomplete-item{width:220px!important}.stipple-new-dot-container .stipple-autocomplete-box{border-top:1px solid #bebebe!important;padding:5px 0!important;z-index:125000!important;display:none;height:140px!important;overflow-x:hidden!important;overflow-y:auto!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-add-product-button{-moz-border-radius:4px!important;-webkit-border-radius:4px!important;border-radius:4px!important;border:1px solid #b3aaaa!important;height:20px!important;line-height:20px!important;color:#404040!important;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e6e6e6))!important;background:-moz-linear-gradient(top,#fff,#e6e6e6)!important;background:-webkit-linear-gradient(top,#fff,#e6e6e6)!important;text-align:center!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-weight:bold!important;font-size:11px!important;font-style:normal!important;cursor:pointer!important;text-decoration:none!important;margin-bottom:5px!important;margin-top:10px!important;width:100px!important;margin-top:4px!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-add-product-button:active{position:relative!important;top:1px!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-add-product-prompt{color:#666!important;font-style:italic!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-ajax-loader,.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-no-results{height:140px!important;text-align:center!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-ajax-loader .stipple-autocomplete-add-product-button,.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-ajax-loader .stipple-autocomplete-add-product-prompt,.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-ajax-loader .stipple-ajax-spinner,.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-no-results .stipple-autocomplete-add-product-button,.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-no-results .stipple-autocomplete-add-product-prompt,.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-no-results .stipple-ajax-spinner{text-align:center!important;position:relative!important;top:60px!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-ajax-loader .stipple-autocomplete-add-product-button:active,.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-no-results .stipple-autocomplete-add-product-button:active{top:61px!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-ajax-loader img,.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-no-results img{height:20px!important;width:20px!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-items{list-style:none!important;padding:0!important;margin:0!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-items .stipple-autocomplete-add-product-prompt{text-align:center!important;margin-top:10px!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-item{cursor:pointer!important;padding:5px 0 5px 10px!important;font-style:normal!important;font-weight:normal!important;background-color:transparent!important;color:#666!important;margin:0!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-add-product{text-align:center!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-selected{background-color:#f1f1f1!important}.stipple-new-dot-container .stipple-autocomplete-box .stipple-autocomplete-partial-match{text-decoration:underline!important;font-weight:bold!important}.stipple-new-dot-container .stipple-autocomplete-provider-photo,.stipple-new-dot-container .stipple-autocomplete-names{display:inline-block!important;vertical-align:top!important;-moz-box-shadow:none!important;-webkit-box-shadow:none!important;box-shadow:none!important;border:none!important}.stipple-new-dot-container .stipple-autocomplete-provider-photo .stipple-autocomplete-brand-name,.stipple-new-dot-container .stipple-autocomplete-names .stipple-autocomplete-brand-name{max-width:190px!important;margin-top:4px!important}.stipple-new-dot-container .stipple-autocomplete-item-product .stipple-autocomplete-friend-avatar,.stipple-new-dot-container .stipple-autocomplete-item-product .stipple-autocomplete-provider-photo,.stipple-new-dot-container .stipple-autocomplete-item-product .stipple-autocomplete-product-image{width:32px!important;height:32px!important;padding:0!important}.stipple-new-dot-container .stipple-autocomplete-item-product .stipple-autocomplete-product-image{-moz-border-radius:2px!important;-webkit-border-radius:2px!important;border-radius:2px!important;border:1px solid #989898!important;margin-left:6px!important}.stipple-new-dot-container .stipple-autocomplete-item-product .stipple-autocomplete-names{margin-left:9px!important;max-width:190px!important}.stipple-toolbar{z-index:145000!important;line-height:1.5!important;color:white!important;-moz-text-shadow:0 1px 1px black!important;-webkit-text-shadow:0 1px 1px black!important;text-shadow:0 1px 1px black!important;position:absolute!important;left:0!important;bottom:0!important;width:100%!important;min-height:39px!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:11px!important;font-weight:normal!important;font-style:normal!important}.stipple-toolbar .stipple-caption{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:16px!important;line-height:16px!important;font-weight:bold!important;padding:8px 20px 0!important;text-align:left!important;word-wrap:break-word!important}.stipple-toolbar .stipple-credit{color:#d2d2d2!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:10px!important;line-height:10px!important;padding:0 20px!important;text-align:left!important;word-wrap:break-word!important}.stipple-new-dot{height:25px!important;width:25px!important;border:none!important;padding:0!important;margin:0!important;background:transparent!important;-moz-box-shadow:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}.stipple-dottable-wrapper .stipple-call-to-action{display:inline-block;position:absolute!important;-moz-border-radius:0!important;-webkit-border-radius:0!important;border-radius:0!important;top:5px!important;right:5px!important;left:auto!important;bottom:auto!important;margin:0!important;padding:0!important;border:none!important;width:25px!important;height:25px!important}.stipple-dottable-wrapper .stipple-metadata-beacon{display:none;z-index:175001!important;position:absolute!important;-moz-border-radius:13px!important;-webkit-border-radius:13px!important;border-radius:13px!important;top:5px!important;right:5px!important;left:auto!important;bottom:auto!important;margin:0!important;padding:0!important;border:none!important;width:25px!important;height:25px!important}.stipple-dottable-wrapper .stipple-metadata-box{background-color:white!important;background-color:rgba(255,255,255,0.92)!important;*background-color:white!important;border:none!important;color:#666!important;position:absolute!important;top:35px!important;right:35px!important;left:auto!important;bottom:auto!important;margin:0!important;padding:0!important;min-width:150px!important;max-width:240px!important;z-index:175000!important;font-size:11px!important;line-height:normal!important;-moz-border-radius:4px!important;-webkit-border-radius:4px!important;border-radius:4px!important;-moz-text-shadow:0 1px 0 white!important;-webkit-text-shadow:0 1px 0 white!important;text-shadow:0 1px 0 white!important}.stipple-dottable-wrapper .stipple-metadata-box a{-moz-box-shadow:none!important;-webkit-box-shadow:none!important;box-shadow:none!important;display:inline!important;padding:0!important;font-size:11px!important;-moz-text-shadow:0 1px 0 white!important;-webkit-text-shadow:0 1px 0 white!important;text-shadow:0 1px 0 white!important;background:none!important;border:none!important;border-bottom:1px dotted #ccc!important;-moz-border-radius:0!important;-webkit-border-radius:0!important;border-radius:0!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;text-decoration:none!important;color:#666!important}.stipple-dottable-wrapper .stipple-metadata-box .stipple-metadata-content{margin:2px 15px 0!important;word-wrap:break-word!important}.stipple-dottable-wrapper .stipple-metadata-box .stipple-metadata-title{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-weight:bold!important;font-size:12px!important;line-height:12px!important;margin-top:10px!important;margin-bottom:10px!important;padding-bottom:10px!important;border-bottom:1px solid #d8d8d8!important;color:black!important;-moz-text-shadow:0 1px 0 white!important;-webkit-text-shadow:0 1px 0 white!important;text-shadow:0 1px 0 white!important}.stipple-dottable-wrapper .stipple-metadata-box .stipple-metadata-title .stipple-metadata-content{float:left!important}.stipple-dottable-wrapper .stipple-metadata-box .stipple-metadata-field-container{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;color:#666!important}.stipple-dottable-wrapper .stipple-metadata-box .stipple-metadata-field-container:last-child{margin-bottom:5px!important}.stipple-dottable-wrapper .stipple-metadata-box .stipple-metadata-powered-by{text-align:left!important;color:#666!important;margin-top:5px!important;margin-bottom:10px!important}.stipple-dottable-wrapper .stipple-metadata-box .stipple-metadata-powered-by a{color:#666!important;font-weight:bold!important}.stipple-dottable-wrapper .stipple-metadata-box span.stipple-metadata-field-label{float:left!important;text-align:left!important;margin-right:5px!important;font-weight:bold!important}.stipple-dottable-wrapper .stipple-metadata-box span.stipple-metadata-field-value{float:left!important;word-wrap:break-word!important;text-align:left!important}.stipple-dottable-wrapper .stipple-metadata-box div.stipple-metadata-field-label{font-weight:bold!important}.stipple-dottable-wrapper .stipple-metadata-box div.stipple-metadata-field-value{line-height:13px!important}.stipple-dottable-wrapper .stipple-metadata-box div.stipple-metadata-field-label,.stipple-dottable-wrapper .stipple-metadata-box div.stipple-metadata-field-value{text-align:left!important}.stipple-dottable-wrapper .stipple-metadata-box label{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important}.stipple-help-beacon{width:16px!important;height:16px!important;cursor:pointer!important}.stipple-help-popup{z-index:425000!important;position:absolute!important;-moz-border-radius:10px!important;-webkit-border-radius:10px!important;border-radius:10px!important;max-width:200px!important;padding:5px!important;display:none;border:1px solid #808080!important;color:#333!important;-moz-text-shadow:0 1px 0 white!important;-webkit-text-shadow:0 1px 0 white!important;text-shadow:0 1px 0 white!important;-moz-box-shadow:0 1px 0 #fff inset,0 1px 6px rgba(0,0,0,0.2)!important;-webkit-box-shadow:0 1px 0 #fff inset,0 1px 6px rgba(0,0,0,0.2)!important;box-shadow:0 1px 0 #fff inset,0 1px 6px rgba(0,0,0,0.2)!important;-webkit-text-stroke:1px solid #a5a5a5!important;background:-moz-linear-gradient(top,#fff 0,#d6d6d6 100%)!important;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#d6d6d6))!important;background-color:#e2e2e2!important}.stipple-help-popup h1{color:#333!important;background-image:none!important;height:auto!important;width:auto!important;text-indent:0!important;margin:auto!important}.stipple-help-popup .stipple-help-popup-close-button{float:right!important;background-image:url(//s3.amazonaws.com/z.stipplestatic.com/external/delete-dot.png)!important;background-repeat:no-repeat!important;height:23px!important;width:23px!important;cursor:pointer!important}.stipple-help-popup .stipple-help-popup-close-button:hover{background-position:0 -29px!important}.stipple-help-popup .stipple-help-popup-message p{margin:0 0 5px 0!important}.stipple-dottable-wrapper .stipple-hidden,.stipple-new-dot-container .stipple-hidden{display:none}.stipple-ajax-spinner-background{z-index:425000!important;width:107px!important;height:107px!important;background-image:url(//s3.amazonaws.com/z.stipplestatic.com/external/spinner-bg.png)!important;background-repeat:no-repeat!important;position:absolute!important}.stipple-ajax-spinner-background img{position:absolute!important;top:40px!important;left:44px!important}\n</style>\n');
f.external_css_ie=c('<\!--[if IE]>\n<style type="text/css">\n.stipple-editor-tools{width:180px!important;height:50px!important}a.stipple-shop,a.stipple-want,a.stipple-button,.stipple-edit-button{background-color:#f3f3f3!important;width:auto!important;overflow:visible!important}a.stipple-want.stipple-wanted{background-color:#565656!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-link-data-image,.stipple-new-dot-container-form form .stipple-link-previews .stipple-link-data .stipple-link-data-image{width:60px!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-link-data-description-container,.stipple-new-dot-container-form form .stipple-link-previews .stipple-link-data .stipple-link-data-description-container{width:160px!important}.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-link-data-description-wide-container,.stipple-new-dot-container-form form .stipple-link-previews .stipple-link-data .stipple-link-data-description-wide-container{width:240px!important}\n</style>\n<![endif]--\>\n');
f.external_css_ie7=c('<\!--[if IE 7]>\n<style type="text/css">\na.stipple-toolbar-button,.stipple-dot-box .stipple-dot-box-inner .stipple-info img,.stipple-dot-box .stipple-price-and-links,.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-link-data-image,.stipple-dot-box .stipple-dot-box-inner .stipple-link-data .stipple-link-data-description-container,.stipple-new-dot-container .stipple-new-dot-chooser .stipple-new-dot-choice,.stipple-new-dot-container form .stipple-new-person-dot-providers-container .stipple-new-person-dot-provider,a.stipple-dot-box-button .stipple-button-label,.stipple-autocomplete-box .stipple-autocomplete-item-person .stipple-autocomplete-provider-photo,.stipple-autocomplete-box .stipple-autocomplete-item-person .stipple-autocomplete-friend-avatar,.stipple-autocomplete-box .stipple-autocomplete-item-person .stipple-autocomplete-names-and-link,.stipple-new-dot-container .stipple-autocomplete-item-product .stipple-autocomplete-product-image,.stipple-new-dot-container .stipple-autocomplete-item-product .stipple-autocomplete-names,.stipple-dot-box-person .stipple-dot-box-person-avatar,.stipple-dot-box-person .stipple-dot-box-person-content,.stipple-dot-box-person .stipple-dot-box-person-byline .stipple-dot-box-person-screen-name,.stipple-dot-box-person .stipple-dot-box-person-byline .stipple-dot-box-person-url,.stipple-call-to-action,.stipple-dot-box-product .stipple-local-offers-container .stipple-local-offers-list .stipple-local-offer-container .stipple-local-offer-content{display:inline!important;zoom:1!important}.stipple-new-dot-container form .stipple-new-person-dot-providers-container .stipple-new-person-dot-provider label{position:relative!important;bottom:18px!important}.stipple-new-dot-container .stipple-new-dot-forms input{display:block;width:235px!important;margin-top:3px!important;margin-bottom:3px!important}.stipple-new-dot-container .stipple-new-dot-forms .stipple-new-dot-buttons .stipple-button{width:60px!important;display:inline}.stipple-new-dot-container .stipple-new-dot-container-close.mswin{top:-2px!important}.stipple-local-offers-container{width:215px!important;min-width:215px!important;max-width:300px!important}\n</style>\n<![endif]--\>\n');
f.info_dot_content=c('<div>\n  <h1 class="stipple-dot-box-title stipple-info-dot-box-title">\n    <% if (link && link.length) { %>\n      <a href="<%= link %>" target="_blank">\n        <%= title %>\n      </a>\n    <% } else { %>\n      <%= title %>\n    <% } %>\n  </h1>\n  \n  <% if (typeof link_data === \'object\' && link_data) { %>\n    <% if (link_data.attribution && link_data.attribution.length) { %>\n      <span class="stipple-attribution">\n        <%= link_data.attribution %>\n      </span>\n    <% } %>\n  <% } %>\n\n  <div style="clear: both;">  </div>\n</div>\n\n<% if (note && note.length) { %>\n  <div class="stipple-note stipple-info-dot-box-note">\n    <%= note %>\n  </div>\n<% } %>\n\n<% if (typeof link_data === \'object\' && link_data) { %>\n  <% \n    var name = link_data.name.toLowerCase();\n    link_data.staticHostname = staticHostname;\n  %>\n              \n  <%= JST[\'link_template_\' + name] ? JST[\'link_template_\' + name](link_data) : JST.link_template(link_data) %>\n<% } %>\n');
f.info_dot_media=c('<% if (typeof link_data === \'object\' && link_data) { %>\n  <%\n    var name = link_data.name.toLowerCase();\n    link_data.staticHostname = staticHostname;\n  %>\n  <%= JST[\'link_template_\' + name] ? JST[\'link_template_\' + name](link_data) : JST.link_template(link_data) %>\n<% } %>\n\n<div style="margin-top: 10px !important;">\n  <h1 class="stipple-dot-box-title stipple-info-dot-box-title">\n    <% if (link && link.length) { %>\n      <a href="<%= link %>" target="_blank">\n        <%= title %>\n      </a>\n    <% } else { %>\n      <%= title %>\n    <% } %>\n  </h1>\n\n  <div style="clear: both;"></div>\n  \n  <% if (typeof link_data === \'object\' && link_data) { %>\n    <% if (link_data.attribution && link_data.attribution.length) { %>\n      <div class="stipple-attribution">\n        <%= link_data.attribution %>\n      </div>\n    <% } %>\n  <% } %>\n\n</div>\n\n<% if (note && note.length) { %>\n  <div class="stipple-note stipple-info-dot-box-note">\n    <%= note %>\n  </div>\n<% } %>\n\n');
f.link_template=c('<div class="stipple-link-data">\n  <% if (image && image.length) { %>\n    <div class="stipple-link-data-image" style="height: 60px;">\n      <a href="<%= url %>" target="_blank">\n        <img src="<%= image %>" />\n      </a>\n    </div>\n  <% } %>\n    \n  <div class="stipple-link-data-description-container <%= (image && image.length) ? \'\' : "stipple-link-data-description-wide-container"%>">\n    <div class="stipple-link-data-description">\n      <%= content %>\n    </div>\n  </div>\n  \n  <div style="clear: both;"></div>\n</div>');
f.link_template_eventbrite=c('<div class="stipple-link-data">\n  <div class="stipple-link-data-image" style="height: 60px;">\n    <a href="<%= url %>" target="_blank">\n      <img src="<%= image %>" />\n    </a>\n  </div>\n  \n  <div class="stipple-link-data-description-container">\n    <div class="stipple-link-data-description">\n      <strong>Location:</strong> <%= content.address %>\n      <br />\n      <strong>Time:</strong> <%= content.datetime %>\n      <br />\n      <strong>Hosted By:</strong> <%= content.host %>\n    </div>\n  </div>\n  \n  <div style="clear: both;"></div>\n</div>');
f.link_template_flickr=c('<div class="stipple-link-data">\n  <div class="stipple-embed-container">\n    <a href="<%= url %>" class="stipple-linked-image" target="_blank">\n      <img class="stipple-embedded-image" src="<%= image %>" alt="<%= url %>" />\n    </a>\n  </div>\n</div>');f.link_template_googlemaps=c('<div class="stipple-link-data">\n  <div class="stipple-embed-container" style="height: 205px;">\n    <iframe src="<%= url.replace("http:", "https:") %>&amp;t=m&amp;ie=UTF8&amp;output=embed&amp;iwloc=" width="250" height="205" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" webkitAllowFullScreen allowFullScreen></iframe>\n  </div>\n</div>');
f.link_template_image=c('<div class="stipple-link-data">\n  <div class="stipple-embed-container">\n    <a href="<%= url %>" class="stipple-linked-image" target="_blank">\n      <img class="stipple-embedded-image" src="<%= image %>" alt="<%= url %>" />\n    </a>\n  </div>\n</div>');f.link_template_imgur=c('<div class="stipple-link-data">\n  <div class="stipple-embed-container">\n    <a href="<%= url %>" class="stipple-linked-image" target="_blank">\n      <img class="stipple-embedded-image" src="<%= image %>" alt="<%= url %>" />\n    </a>\n  </div>\n</div>');
f.link_template_soundcloud=c('<div class="stipple-link-data">\n  <div class="stipple-embed-container" style="height: 81px;">\n    <object height="81" width="100%"> <param name="movie" value="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F<%= numeric_id %>"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="81" src="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F<%= numeric_id %>" type="application/x-shockwave-flash" width="100%"></embed> </object> \n  </div>\n</div>');
f.link_template_twitter=c('<a class="stipple-provider-logo-topright" href="<%= url %>" target="_blank">\n  <img src="<%= staticHostname %>/api/social/twitter-icon-dotbox.png" alt="Twitter icon" />\n</a>\n<div class="stipple-link-data">\n  <div class="stipple-link-data-image" style="height: 60px;">\n    <a href="<%= url %>" target="_blank">\n      <img src="<%= image %>" />\n    </a>\n  </div>\n  \n  <div class="stipple-link-data-description-container">\n    <div>\n      <strong>\n        <%= date %>\n      </strong>\n    </div>\n    <div class="stipple-link-data-description">\n      <%= content %>\n    </div>\n  </div>\n  \n  <div style="clear: both;"></div>\n</div>');
f.link_template_vimeo=c('<div class="stipple-link-data">\n  <div class="stipple-embed-container" style="height: 187px;">\n    <iframe src="https://player.vimeo.com/video/<%= id %>?title=0&amp;byline=0&amp;portrait=0&amp;color=ffffff" width="250" height="187" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe>\n  </div>\n</div>');f.link_template_youtube=c('<div class="stipple-link-data">\n  <div class="stipple-embed-container" style="height: 187px;">\n    <iframe width="250" height="187" src="https://www.youtube.com/embed/<%= id %>?rel=0&showsearch=0<%= start ? "&start=" + start : "" %>" frameborder="0" allowfullscreen></iframe>\n  </div>\n</div>');
f.local_offer=c('<div class="stipple-local-offer-container">\n  <% if (product_image) { %>\n    <img src="<%= product_image %>" class="stipple-local-offer-image" alt="Thumbnail for <%= product_name %>" title="<%= product_name %>"/>\n  <% } %>\n  <div class="stipple-local-offer-content">\n    <a href="<%= buy_link %>" target="_blank">\n    <span class="stipple-local-offer-provider">\n      <%= retailer_name %>\n    </span>\n      has <%= product_name %> for <span class="stipple-local-offer-price">$<%= price %></span>\n    </a>\n    <div class="stipple-local-offer-address">\n      <a href="<%= map_link %>" target="_blank">\n        <%= street %>, <%= city %> <%= state %>, <%= zip %>, <%= phone %>\n      </a>\n    </div>\n  </div>\n</div>\n');
f.metadata_box=c('<div class="stipple-metadata-box" style="display: none;">\n  <div class="stipple-metadata-title">\n    <div class="stipple-metadata-content">\n      Image Info\n    </div>\n    <div style="clear: both;"></div>\n  </div>\n  \n  <div class="stipple-login-container" style="display: none;">\n    <form class="stipple-login-form">\n      <input type="hidden" name="site_id" value="<%= data.site_id %>" />\n      <div class="stipple-login-field">\n        <label for="stipple-login-username-<%= data.domId %>">Username:</label>\n        <input id="stipple-login-username-<%= data.domId %>" type="text" name="user_session[login]" />\n      </div>\n      \n      <div class="stipple-login-field">\n        <label for="stipple-login-password-<%= data.domId %>">Password:</label>\n        <input id="stipple-login-password-<%= data.domId %>" type="password" name="user_session[password]" />\n      </div>\n      \n      <%= JST.button({elementType: \'input\', inputType: \'submit\', cssClass: "stipple-login-button", newWindow: false, text: "Log In"}) %>\n      <img style="height: 19px; width: 19px; display: none;" src="<%= externalImgPath %>spinner.gif" />\n      \n    </form>\n  </div>\n  \n  <% if (metadata) { %>\n    <% if (metadata.location) { %>\n      <div class="stipple-metadata-location stipple-metadata-field-container">\n        <div class="stipple-metadata-content">\n          <span class="stipple-metadata-location-label stipple-metadata-field-label">\n            Location:\n          </span>\n          <span class="stipple-metadata-location-value stipple-metadata-field-value">\n            <%= metadata.location %>\n          </span>\n          <div style="clear: both;"></div>\n        </div>\n      </div>\n    <% } %>\n    \n    <% if (metadata.credit) { %>\n      <div class="stipple-metadata-credit stipple-metadata-field-container">\n        <div class="stipple-metadata-content">\n          <span class="stipple-metadata-credit-label stipple-metadata-field-label">\n            Credit:\n          </span>\n          <span class="stipple-metadata-credit-value stipple-metadata-field-value">\n            <% if (metadata.credit_link) { %>\n              <a href="<%= metadata.credit_link %>" target="_blank">\n                <%= metadata.credit %>\n              </a>\n            <% } else { %>\n              <%= metadata.credit %>\n            <% } %>\n          </span>\n          <div style="clear: both;"></div>\n        </div>\n      </div>\n    <% } %>\n\n    <% if (metadata.metadata_date) { %>\n      <div class="stipple-metadata-date stipple-metadata-field-container">\n        <div class="stipple-metadata-content">\n          <span class="stipple-metadata-date-label stipple-metadata-field-label">\n            Date:\n          </span>\n          <span class="stipple-metadata-date-value stipple-metadata-field-value">\n            <%= metadata.metadata_date %>\n          </span>\n          <div style="clear: both;"></div>\n        </div>\n      </div>\n    <% } %>\n    \n    <% if (metadata.copyright_notice) { %>\n      <div class="stipple-metadata-copyright stipple-metadata-field-container">\n        <div class="stipple-metadata-content">\n          <span class="stipple-metadata-copyright-label stipple-metadata-field-label">\n            Copyright:\n          </span>\n          <span class="stipple-metadata-copyright-value stipple-metadata-field-value">\n            <%= metadata.copyright_notice %>\n          </span>\n          <div style="clear: both;"></div>\n        </div>\n      </div>\n    <% } %>\n    \n    <% if (metadata.image_object_name) { %>\n      <div class="stipple-metadata-pictured stipple-metadata-field-container">\n        <div class="stipple-metadata-content">\n          <span class="stipple-metadata-pictured-label stipple-metadata-field-label">\n            Pictured:\n          </span>\n          <span class="stipple-metadata-pictured-value stipple-metadata-field-value">\n            <%= metadata.image_object_name %>\n          </span>\n          <div style="clear: both;"></div>\n        </div>\n      </div>\n    <% } %>\n    \n    <% if (metadata[\'abstract\']) { %>\n      <div class="stipple-metadata-description stipple-metadata-field-container">\n        <div class="stipple-metadata-content">\n          <div class="stipple-metadata-description-label stipple-metadata-field-label">\n            Description:\n          </div>\n          <div class="stipple-metadata-description-value stipple-metadata-field-value">\n            <%= metadata[\'abstract\'] %>\n          </div>\n        </div>\n      </div>\n    <% } %>\n  <% } %>\n  \n  <div <%= metadata ? \'style="margin-top: 15px !important;"\' : \'\' %> class="stipple-metadata-powered-by">\n    <div class="stipple-metadata-content">\n      <a href="http://stippleit.com" target="_blank">\n        Powered by Stipple\n      </a>\n    </div>\n  </div>\n\n  <% if (editor) { %>\n    <div class="stipple-edit-caption-container">\n      <div class="stipple-edit-caption-inner">\n        <form class="stipple-form stipple-edit-caption-form">\n          <input type="hidden" name="image_height" value="<%= data.imageHeight %>" />\n          <input type="hidden" name="image_width" value="<%= data.imageWidth %>" />\n          <input type="hidden" name="image_src" value="<%= encodeURIComponent(data.photoUrl) %>" />\n          <input type="hidden" name="site_id" value="<%= data.site_id %>" />\n          <input type="hidden" name="site_url" value="<%= encodeURIComponent(data.location_href) %>" />\n          \n          <label for="stipple-edit-caption-input-<%= data.domId %>" class="stipple-edit-caption-label">Image Caption:</label>\n          <input type="text" id="stipple-edit-caption-input-<%= data.domId %>" class="stipple-caption-input" name="caption" value="<%= data.photoCaption %>" />\n\n          <%= data.JST.button({elementType: \'input\', inputType: \'submit\', cssClass: "stipple-edit-caption-save-button", newWindow: false, text: "Save"}) %>\n        </form>\n    \n      </div>\n    </div>\n  <% } %>\n</div>');
f.new_dot_container=c('<div class="stipple-new-dot-container" style="display: none; position: absolute;">\n  <div class="stipple-new-dot-chooser">\n    <div class="stipple-new-dot-choice stipple-new-dot-choose-info" data-stipple-new-dot-type="info">Link</div><div class="stipple-new-dot-choice stipple-new-dot-choose-product stipple-selected" data-stipple-new-dot-type="product">Product</div>\n  </div>\n  \n  <div class="stipple-new-dot-forms">\n  \n    <div class="stipple-new-info-dot-form-container" data-stipple-new-dot-type="info">\n      <form class="stipple-new-info-dot-form stipple-form" >\n        <input type="hidden" name="dot[dot_type]" value="info"/>\n        <input type="hidden" name="dot[site_id]" value="<%= site_id %>" />\n        <input type="hidden" name="dot[url]" value="<%= encodeURIComponent(location_href) %>" />\n        <input type="hidden" name="dot[start_x]" value="0" />\n        <input type="hidden" name="dot[start_y]" value="0" />\n        <input type="hidden" name="image_height" value="<%= imageHeight %>" />\n        <input type="hidden" name="image_width" value="<%= imageWidth %>" />\n        <input type="hidden" name="url" value="<%= encodeURIComponent(photoUrl) %>" />\n\n        <div class="stipple-info-fields stipple-dot-specific-fields stipple-default-show stipple-dot-start-fields">\n          <label for="stipple-url-title" class="stipple-new-dot-main-prompt">Paste a URL or type a title to create a tag.</label>\n          <input id="stipple-url-title" type="text" name="url_or_title" class="stipple-url-title stipple-empty-input" value="URL or Title" data-stipple-empty-val="URL or Title" autocomplete="off" />\n        </div>\n        \n        <div class="stipple-info-fields stipple-dot-specific-fields stipple-default-hide" style="display: none;">\n          <input type="text" name="dot[link]" class="stipple-empty-input" value="URL" data-stipple-empty-val="URL" autocomplete="off" />\n          <input type="text" name="dot[title]" class="stipple-empty-input" value="Title" data-stipple-empty-val="Title" autocomplete="off" />\n          <textarea name="dot[note]" class="stipple-empty-input" data-stipple-empty-val="Description">Description</textarea>\n        </div>\n        \n        <div class="stipple-info-preview stipple-default-hide stipple-default-empty" style="display: none;">\n          \n        </div>\n\n        <div class="stipple-link-previews stipple-default-hide stipple-default-empty" style="display: none;">\n          \n        </div>\n        \n        <div class="stipple-fetching-link stipple-default-hide" style="display: none;">\n          <img class="stipple-ajax-spinner" src="<%= image_host %>/external/spinner-white.gif" alt="ajax spinner" />\n        </div>\n\n        <div class="stipple-new-dot-buttons">\n          <%= JST.button({elementType: \'input\', inputType: \'button\', cssClass: "stipple-new-dot-cancel-button", newWindow: false, text: "Cancel"}) %>\n          <%= JST.button({elementType: \'input\', inputType: \'submit\', cssClass: "stipple-new-dot-save-button", newWindow: false, text: "Preview"}) %>\n        </div>\n        \n      </form>\n    </div>\n    \n    <div class="stipple-new-product-dot-form-container" style="display: none;" data-stipple-new-dot-type="product">\n      <form class="stipple-new-product-dot-form stipple-form">\n        <input type="hidden" name="dot[dot_type]" value="product"/>\n        <input type="hidden" name="dot[site_id]" value="<%= site_id %>" />\n        <input type="hidden" name="dot[product_id]" value="" />\n        <input type="hidden" name="dot[url]" value="<%= encodeURIComponent(location_href) %>" />\n        <input type="hidden" name="dot[start_x]" value="0" />\n        <input type="hidden" name="dot[start_y]" value="0" />\n        <input type="hidden" name="image_height" value="<%= imageHeight %>" />\n        <input type="hidden" name="image_width" value="<%= imageWidth %>" />\n        <input type="hidden" name="url" value="<%= encodeURIComponent(photoUrl) %>" />\n\n        <div class="stipple-selected-product stipple-product-fields" style="display: none;">\n          <ul>\n          </ul>\n        </div>\n        \n        <div class="stipple-product-dot-autocomplete-input-container stipple-product-fields stipple-dot-specific-fields">\n          <div class="stipple-item">\n            <div>\n              <label for="stipple-new-product-dot-autocomplete" class="stipple-new-dot-main-prompt">Type the name of a product or brand.</label>\n              <input type="text" id="stipple-new-product-dot-autocomplete" class="stipple-product-autocomplete stipple-empty-input" data-stipple-empty-val="Example: Prada shirt" value="Example: Prada shirt" autocomplete="off"/>\n              <%= JST.autocomplete_box({staticHostname: image_host, JST: JST}) %>\n            </div>\n          </div>\n        </div>\n\n        <div style="display: none;" class="stipple-product-fields stipple-product-specific-fields stipple-dot-specific-fields">\n          <div class="stipple-item">\n            <div>\n              <input type="hidden" name="product[entity_id]" value="<%= site_id %>" />\n              <input type="hidden" name="product[entity_type]" value="Site" />\n              <label for="stipple-new-product-name">Product Name:</label>\n              <input id="stipple-new-product-name" type="text" name="product[name]" class="stipple-empty-input stipple-validation-required" data-stipple-empty-val="Blue Polo Shirt" value="Blue Polo Shirt" autocomplete="off" data-stipple-validate-required="required" />\n              <label for="stipple-new-product-brand">Brand Name:</label>\n              <input id="stipple-new-product-brand" type="text" name="product[brand]" class="stipple-empty-input" data-stipple-empty-val="My Brand" value="My Brand" autocomplete="off" data-stipple-validate-required="required" />\n              <label for="stipple-new-product-price">Price:</label>\n              <input id="stipple-new-product-price" type="text" name="product[price]" class="stipple-empty-input" data-stipple-empty-val="29.99 (optional)" value="29.99 (optional)" autocomplete="off" />\n              <label for="stipple-new-product-currency">Currency:</label>\n              <select id="stipple-new-product-currency" name="product[currency]">\n                <option value="USD" data-stipple-currency-symbol="$" selected="selected">US Dollar ($)</option>\n                <option value="EUR" data-stipple-currency-symbol="\u20ac">Euro (\u20ac)</option>\n                <option value="AUD" data-stipple-currency-symbol="$" >Australian Dollar ($)</option>\n                <option value="CAD" data-stipple-currency-symbol="$">Canadian Dollar ($)</option>\n                <option value="CNY" data-stipple-currency-symbol="\u00a5">Chinese Yuan (\u00a5)</option>\n                <option value="JPY" data-stipple-currency-symbol="\u00a5">Japanese Yen (\u00a5)</option>\n                <option value="GBP" data-stipple-currency-symbol="\u00a3">Pound Sterling (\u00a3)</option>\n              </select>\n              <label for="stipple-new-product-url">Shop URL:</label>\n              <input id="stipple-new-product-url" type="url" name="product[url]" class="stipple-empty-input" data-stipple-empty-val="http://example.com" value="http://example.com" autocomplete="off" />\n              <label for="stipple-new-product-image-url">Thumbnail Image URL:</label>\n              <input id="stipple-new-product-image-url" type="url" name="product[image_url]" class="stipple-empty-input" data-stipple-empty-val="http://example.com/image.jpg" value="http://example.com/image.jpg" autocomplete="off" data-stipple-validate-required="required" />\n            </div>\n          </div>\n        </div>\n\n        <%= JST.autocomplete_box({staticHostname: image_host, JST: JST}) %>\n        \n        <div class="stipple-new-dot-buttons">\n          <%= JST.button({elementType: \'input\', inputType: \'button\', cssClass: "stipple-new-dot-cancel-button stipple-default-show", newWindow: false, text: "Cancel"}) %>\n          <%= JST.button({elementType: \'input\', inputType: \'button\', cssClass: "stipple-new-dot-edit-button stipple-default-hide stipple-hidden", newWindow: false, text: "Edit", style: "display: none;"}) %>\n          <%= JST.button({elementType: \'input\', inputType: \'submit\', cssClass: "stipple-new-dot-save-button stipple-default-hide stipple-hidden", newWindow: false, text: "Save", style: "display: none;"}) %>\n        </div>\n        \n      </form>\n    </div>\n  </div>\n  \n</div>\n');
f.person_provider_help=c("<p>\nTo quickly create a person dot, type the sigil corresponding to the service ('@' for Twitter, etc.),\n  followed by the user's name.\n</p>\n\n<p>\n  autocomplete and stuff\n</p>\n\n<p>i am really bad at writing help text.</p>\n");f.status_box=c('<div class="stipple-status-box-container" style="display: none;">\n  <span class="stipple-status-box">\n    <%= status %>\n  </span>\n</div>');f.toolbar=c('<div class="stipple-toolbar stipple-template" style="display: none; background: url(<%= image_host %>/external/bg-black.png); background: rgba(0, 0, 0, 0.6); *background: url(<%= image_host %>/external/bg-black.png);">\n  <div class="stipple-toolbar-contents">\n\n    <div class="stipple-caption">\n      <%= photoCaption %>\n    </div>\n    \n    <% if (photoCaption && photoCaption.length && photoCredit && photoCredit.length) { %>\n      <div class="stipple-caption-spacer" style="height: 6px;"></div>\n    <% } else { %>\n      <div class="stipple-caption-spacer" style="height: 6px; display: none;"></div>\n    <% } %>\n      \n    <% if (photoCredit && photoCredit.length) { %>\n      <div class="stipple-credit">\n        Credit: <%= photoCredit %>\n      </div>\n    <% } %>\n        \n    <div style="height: 10px;"></div>\n  </div>\n</div>\n')})();
var Q=function(){var c,b,a=1,d;return{postMessage:function(d,c,b){if(c)if(b=b||parent,window.postMessage)b.postMessage(d,c.replace(/([^:]+:\/\/[^\/]+).*/,"$1"));else if(c)b.location=c.replace(/#.*$/,"")+"#"+ +new Date+a++ +"&"+d},receiveMessage:function(a,q){if(window.postMessage)if(a&&(d=function(d){if(typeof q==="string"&&d.origin!==q||Object.prototype.toString.call(q)==="[object Function]"&&q(d.origin)===!1)return!1;a(d)}),window.addEventListener)window[a?"addEventListener":"removeEventListener"]("message",
d,!1);else window[a?"attachEvent":"detachEvent"]("onmessage",d);else c&&clearInterval(c),c=null,a&&(c=setInterval(function(){var d=document.location.hash,c=/^#?\d+&/;d!==b&&c.test(d)&&(b=d,a({data:d.replace(c,"")}))},100))}}}();x={truncateStringOnSpace:function(c,b){var a=c.substring(0,b),d;if(c.length<=b)return c;c[b]!==" "&&(d=a.lastIndexOf(" "),a=a.substring(0,d));return a},utf8Encode:function(c){var b="",a,d=c.length,g;for(a=0;a<d;a+=1)g=c.charCodeAt(a),b+=g>255?encodeURIComponent(c[a]):c[a];
return b},cssCamelCase:function(c){return c.replace(/-[a-z]/g,function(c){return c.slice(1).toUpperCase()})},openWin:function(c,b){var a;a=window.open(c,"_blank",b||"width=800,height=600,toolbar=no,status=no,directories=no,menubar=no,copyhistory=no");window.focus&&a.focus();return a},shareFacebook:function(){x.openWin("http://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(location.href))},shareTwitter:function(){x.openWin("http://twitter.com/share?url="+encodeURIComponent(location.href))},
loginWindow:function(e,b){var a,d,g;g="http://stippleit.com/voulez/login";b&&(g+="?"+c.param({post_login_action:b}));a=x.openWin(g,"width=600,height=600,modal=yes,dependent=yes,resizeable=yes,alwaysRaised=yes,dialog=yes,location=no,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no,copyhistory=no");d=setInterval(function(){a.closed&&(clearInterval(d),e&&e())},50)},infoDotTemplateType:function(c){switch(c.toLowerCase()){case "flickr":case "youtube":case "vimeo":case "soundcloud":case "image":case "googlemaps":case "imgur":return"media";
default:return"content"}}};v={"dot:local_offers":function(e){var b,a,d,g;e.status==="success"?(b=c(".stipple-dot-box[data-stipple-dom-id="+e.dom_id+"]"),b.find(".stipple-local-offers-prompt").removeClass(".stipple-disabled").end().find(".stipple-local-offers-text").text("Close").prevAll(".stipple-ajax-spinner").hide(),e=e.data.offers.slice(0,3),d=b.find(".stipple-local-offers-list"),d.data("hasOffers",!!e.length),e.length?(c.each(e,function(){if(this.image)g=new Image,g.src=this.image;a=f.local_offer({buy_link:this.url,
price:this.price,street:this.location.address.line1,city:this.location.address.city,state:this.location.address.state,zip:this.location.address.zip,phone:this.location.phone,map_link:this.location.map_link,location_name:this.location.name,product_name:this.name,retailer_name:this.retailer.name,product_image:this.image});d.append(a)}),d.slideDown("fast")):b.find(".stipple-local-offers-text").text("We found no offers.").prevAll(".stipple-ajax-spinner").hide()):alert("There was an error finding the local offers for this dot. The message was: "+
e.message)}};J=function(e){(e?e.find(".stipple-ajax-spinner-background"):c(".stipple-ajax-spinner-background")).filter(".stipple-centered").each(function(){var b=c(this);b.css({top:b.parent().height()/2-b.height()/2,left:b.parent().width()/2-b.width()/2})}).end().show()};z=function(){c(".stipple-ajax-spinner-background").hide()};t=function(e){e||(e=c);return!(e.browser.msie&&parseFloat(e.browser.version)<7)&&!/playstation 3/i.test(navigator.userAgent)};k=function(){return c.browser.msie};A=function(){return c.browser.msie&&
parseFloat(c.browser.version)===7};C=function(){return c.browser.webkit};D=function(e){var b={},e=(e||"").split(/\s+/);c(e).each(function(){if(this.indexOf("stippleit-sid-")!==-1){var a=this.split("-");b[a[1]]=a[2]}});return b};E=function(c){var b;b=(b=c.css("background-image"))&&b!=="none"?b:void 0;c=c.attr("src")||b||c.children("[src]:first").attr("src");(b=/url\(['"]?([a-zA-Z0-9_$.+!*()-:\/?]+)['"]?\)/.exec(c))&&(c=b[1]);if(typeof c==="undefined")return"";/^https?:/.test(c)||(c.charAt(0)==="/"?
c=l+location.host+c:(b=location.pathname.lastIndexOf("/"),b=b>-1?location.pathname.substring(0,b):location.pathname,b.charAt(b.length-1)!=="/"&&(b+="/"),c=l+location.host+b+c));return c};K=function(){var e={};c("[class*=stippleit-sid-]").each(function(){var b=c(this),a=D(b.attr("class"));e[a.sid]=e[a.sid]||[];e[a.sid].push(b)});return e};L=function(e){var b,a,d,g,q,h,j;d=e.parent();h=e.is("img")||e.css("background-image")&&!e.is("a")?e:e.find("img:first");g=h.getRealDimension("width");q=h.getRealDimension("height");
d.is("a")&&(e=d);b=e.css("position");if(b==="static"||b===void 0)b="relative";a=e.css("display");if(a==="inline"||a===void 0)a="inline-block";a==="inline-block"&&h.css("display")==="block"&&(a="block");a==="block"&&parseInt(e.css("margin-left"),10)===0&&parseInt(e.position().left,10)>0&&(j=!0);if(d.is(".stipple-dottable-wrapper"))d=e.parent(),d.css({height:q,width:g}),e.siblings(":not(.stipple-new-dot-overlay)").remove();else{d=c(f.dot_wrapper({}));d=e.wrap(d).parent();d.css({height:q,width:g,display:a,
position:b});e.css({position:"",display:""});d.append(f.ajax_spinner({staticHostname:p}));b=c('<div class="stipple-new-dot-overlay" style="display: none;" />');b.prependTo(d);k()&&b.css({"background-color":"black",opacity:0.01});b=["margin-top","margin-right","margin-left","margin-bottom"];if(e.is("img")||e.is("a"))b=b.concat([["float","none"],"padding-top","padding-right","padding-left","padding-bottom","border-top-right-radius","border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius",
"border-top-width","border-top-color","border-top-style","border-bottom-width","border-bottom-color","border-bottom-style","border-left-width","border-left-color","border-left-style","border-right-width","border-right-color","border-right-style",["-webkit-box-shadow","none"],["-moz-box-shadow","none"],["box-shadow","none"]]);e.is("a")&&(a=D(h.attr("class")),a.sid&&(a="stippleit-sid-"+a.sid,h.removeClass(a),e.addClass(a)));h.moveStyles(b,d);e.is("a")&&e.moveStyles(b,d);h.css("max-width").length&&h.css("max-width",
"100%");h.css("max-height").length&&h.css("max-height","100%");j&&(d.css("margin-left","auto"),d.css("margin-right","auto"))}d.attr("data-stipple-dom-id",w);w+=1;return d};F=function(e,b){var a,d,g,q,h,j,u,R,k,i,m;a=L(e);a.data("photoData",b);a.data("site_id",e.data("site_id"));h=E(e);q=b.user_can_edit;i=e.is("a")?e.find("img:first"):e;j=i.getRealDimension("width");u=i.getRealDimension("height");i={JST:f,photoUrl:h,imageWidth:j,imageHeight:u,site_id:e.data("site_id"),product_id:e.data("product_id"),
image_host:p,hostName:l+"stippleit.com",photoCaption:b.caption||null,photoLocation:b.location,photoEvent:b.event,location_href:n,userCanEdit:q,wishlistUrl:b.user.wishlist_link,photoCredit:b.credit,domId:a.data("stipple-dom-id"),user:b.user};a.data("toolbarData",i);b.show_caption&&(d=c(f.toolbar(i)),d.appendTo(a));q&&(h=c(f.editor_tools({JST:f,image_host:p})),h.appendTo(a));A()&&(d&&d.css("width",j),a.find("*").andSelf().each(function(){var a=c(this);a.css("display")==="inline-block"&&a.css({display:"inline",
zoom:1})}));b&&!c.isEmptyObject(b)&&b.dots&&((q||b.show_caption&&b.caption&&b.caption.length||b.dots.length||b.metadata)&&a.append(c('<img class="stipple-call-to-action" src="'+s+'cta.png" alt="Stipple" />')),a.append(c('<img class="stipple-metadata-beacon" style="display:none;" src="'+s+'metadata-beacon.png" alt="Information" />')).append(c(f.metadata_box({metadata:b.metadata,externalImgPath:s,editor:q,data:i,JST:f}))),c.each(b.dots,function(){g=c(f.dot({image_url:r+"plain.png"}));m=new Image;switch(this.dot_type){case "product":m.src=
this.product_image;break;case "info":if(this.link_data&&this.link_data.data&&this.link_data.data.image)m.src=this.link_data.data.image}R=this.start_x*parseInt(j,10)/b.image_width;k=this.start_y*parseInt(u,10)/b.image_height;g.data("dotData",this).css({opacity:0.6,position:"absolute",left:R-12,top:k-12,display:"block"}).appendTo(a).animate({opacity:0},1500)}))};G=function(e){var b,a,d,g,q;c.each(e,function(h,f){c.each(f,function(f,j){b=E(j);j.data("site_id",h);q=j.is("a")?j.find("img:first"):j;d=q.getRealDimension("width");
g=q.getRealDimension("height");a={url:b,image_height:g,image_width:d};if(j.attr("data-stipple-photo-id"))a.photo_id=j.attr("data-stipple-photo-id");c.get(l+"stippleit.com/dots/recall/"+h+"/",a,function(a){var b;j.is("img")&&(!d||!g)&&!j[0].complete?(j.load(function(){F(j,a)}),C()||j.attr("src",j.attr("src"))):F(j,a);if(b=j.data("stipple-callbackBatches"))c.each(b,function(a){B[a].stillLoading-=1;B[a].stillLoading||(B[a].callback(e),delete B[a])}),j.removeData("stipple-callbackBatches")},"jsonp")})})};
H=function(c){return setTimeout(function(){c.data("removeTimer",0).stippleDisappear()},300)};M=function(){var e,b=l+"stippleit.com";if(i)return i;e=A()?encodeURIComponent(l+location.host+location.pathname+location.search):encodeURIComponent(l+location.host);e=l+"stippleit.com/external_embeds/?cachebust="+Date.parse(new Date)+"&parent_href="+e;A()&&(b=e+"#");i=c('<iframe src="'+e+'" style="display: none;"/>');c("body").append(i);Q.receiveMessage(function(a){var d=c.parseJSON(a.data),a=c("div[data-stipple-dom-id="+
d.dom_id+"]"),g,b;if(A())location.hash="";switch(d.action){case "dot:create":a.stippleEnableForms();if(d.status==="success")STIPPLE.callbacks.onDotCreate&&STIPPLE.callbacks.onDotCreate.success&&STIPPLE.callbacks.onDotCreate.success(d.data),g=a.data("photoData"),g.dots=g.dots||[],g.dots.push(d.data),a.find(".stipple-new-dot").removeClass("stipple-new-dot").addClass("stipple-dot").attr("src",d.data?r+d.data.dot_type+".png":"").css("z-index",parseInt(a.children(".stipple-new-dot-overlay").css("z-index"),
10)+100).data("dotData",d.data).end().find(".stipple-new-dot-overlay").removeClass("stipple-inactive"),a.data("new_dot_container")&&a.data("new_dot_container").fadeOut("fast",function(){c(this).stippleResetForms()});else{try{b=d.data.join("\n")}catch(e){b=d.message}STIPPLE.callbacks.onDotCreate&&STIPPLE.callbacks.onDotCreate.error&&STIPPLE.callbacks.onDotCreate.error(d.data);alert("There was an error creating your dot. The errors were:\n\n"+b);a.data("new_dot_container").stippleResetForms(!0)}break;
case "dot:update":a.stippleEnableForms();if(d.status==="success")g=a.data("photoData"),g.dots=g.dots||[],c.each(g.dots,function(a){if(g.dots[a].id===d.data.id)g.dots[a]=d.data}),a.find(".stipple-updatable-dot").each(function(){c(this).data("dotBox").remove();c(this).removeData("dotBox")}).removeClass("stipple-updatable-dot").addClass("stipple-dot").attr("src",d.data?r+d.data.dot_type+".png":"").data("dotData",d.data).end().find(".stipple-new-dot-overlay").removeClass("stipple-inactive").end().data("new_dot_container").removeData("stippleMode").fadeOut("fast",
function(){c(this).stippleResetForms()});else{try{b=d.data.join("\n")}catch(j){b=d.message}alert("There was an error creating your dot. The errors were:\n\n"+b);a.data("new_dot_container").stippleResetForms(!0)}break;case "photo:caption":a.stippleEnableForms();if(d.status==="success")a.data("photoData",d.data).stippleGrowlStatus("Caption Updated").find(".stipple-caption").text(d.data.caption?d.data.caption:"").end().find(".stipple-edit-caption-save-button, .stipple-edit-button").removeClass("stipple-disabled"),
d.data.caption?a.find(".stipple-caption-spacer").show():a.find(".stipple-caption-spacer").hide();else{try{b=d.data.join("\n")}catch(f){b=d.message}alert("There was a problem editing the caption. The errors were:\n\n"+b)}break;case "dot:delete":d.status==="success"?(STIPPLE.callbacks.onDotDelete&&STIPPLE.callbacks.onDotDelete.success&&STIPPLE.callbacks.onDotDelete.success(d.data),a.stippleEnableForms().stippleGrowlStatus("Dot Deleted").find(".stipple-dot[data-delete-dot-id="+d.data+"]").addClass("stipple-fading").fadeOut(400,
function(){c(this).remove()}),g=a.data("photoData"),g.dots=c.grep(g.dots,function(){return this.id!==d.data}),a.data("photoData",g)):alert("There was an error deleting the dot. The message was: "+d.message);break;case "user:toggle_want_for":d.status==="success"?(b=c(".stipple-dot-box[data-product-id="+d.data.product_id+"]").find(".stipple-want"),d.message==="wanted"?b.addClass("stipple-wanted").find(":last").text("- Want"):b.removeClass("stipple-wanted").find(":last").text("+ Want")):d.error_id===
1?(b={act:"user:toggle_want_for",data:{product_id:d.data.product_id},dom_id:d.dom_id},x.loginWindow(function(){window.location.reload()},b)):alert(d.message)}},b);return i};y=function(e){var b=l+"stippleit.com";i&&(A()&&(b=i.attr("src")),typeof e!=="string"&&(e=c.param(e)),Q.postMessage(e,b,i[0].contentWindow))};N=function(){c.fn.getRealDimension=function(e){var b=c(this),a=b.css(e);parseInt(a,10)||(a=parseInt(b.attr(e),10)||b[e]()||parseInt(b.get(0).style[e],10));return a}};O=function(){var e=c(document),
b;c.fn.stippleFadeToDistance=function(a,d){var g=c(this);c.each(g,function(){var g=c(this),b,e;e=g.position();b=parseInt(e.left,10)+12;e=parseInt(e.top,10)+12;b-=a;e-=d;b=Math.sqrt(b*b+e*e);b=Math.round(b);g.is(".stipple-metadata-beacon")||(b<100?g.attr("src",r+g.data("dotData").dot_type+".png"):g.attr("src",r+"plain.png"));e=0.6;b<200&&(e=Math.max(0.6,1-b/200));g.css({opacity:e})});return g};c.fn.stippleUserCanEdit=function(){var a=c(this).stippleWrapper().data("photoData");return a&&a.user_can_edit};
c.fn.stippleWrapper=function(){return c(this).closest(".stipple-dottable-wrapper")};c.fn.stippleDisappear=function(a,d){var g=c(this);c.isFunction(a)?d?a=a():d=a:a||(a="fast");g.stop().fadeTo(a,0,function(){g.hide(0,d)});return g};c.fn.stippleAppear=function(a){var d=c(this);d.stop().show().fadeTo("fast",1,a);return d};c.fn.cleanupNewDots=function(){var a=c(this).stippleWrapper();a.children(".stipple-dot:hidden").show().end().children(".stipple-new-dot").fadeOut("fast",function(){c(this).remove()}).end().children(".stipple-deleteable-dot").css("cursor",
"auto").removeClass("stipple-deleteable-dot").end().children(".stipple-updatable-dot").css("cursor","auto").removeClass("stipple-updatable-dot").end().children(".stipple-new-dot-overlay").removeClass("stipple-inactive");a.data("new_dot_container")&&a.data("new_dot_container").fadeOut("fast",function(){a.data("new_dot_container").stippleResetForms()})};c.fn.stippleEnableEditMode=function(){c(this).stippleWrapper().stippleEnableNewDotMode().find(".stipple-edit-button").val("Done Tagging").end().children(".stipple-new-dot-overlay").show().end().children(".stipple-toolbar").fadeOut("fast")};
c.fn.stippleCancelEditMode=function(){var a=c(this).stippleWrapper();a.stippleDisableNewDotMode();a.cleanupNewDots();a.data("photoData").caption&&a.children(".stipple-toolbar").fadeIn("fast");a.find(".stipple-edit-button").val("Tag Image");return a};c.fn.stippleGrowlStatus=function(a){var d=c(this);c(f.status_box({status:a})).appendTo(d).fadeIn(100,function(){c(this).fadeOut(2E3,function(){c(this).remove()})});return d};c.fn.stippleUpdateFormCoordinates=function(a,d){var g=c(this);g.find('input[name="dot[start_x]"]').val(a);
g.find('input[name="dot[start_y]"]').val(d);return g};c.fn.stippleResetForms=function(a){var d=c(this);a?a=".stipple-empty-input":(d.removeData("dotData"),a='input[type="text"], input[type="url"], textarea',d.find("select option").removeProp("selected").filter(":first").prop("selected",!0));d.find(a).each(function(){var a=c(this);a.val(a.attr("data-stipple-empty-val"));a.addClass("stipple-empty-input")}).end().find(".stipple-autocomplete-box ul").empty().end().find("form").trigger("stipple:mode:default");
return c(this)};c.fn.stippleValidateForm=function(){var a,d,g,b,e,f;d=c(this).find('[data-stipple-validate-required="required"]');c.each(d,function(d,i){f=c(i);if(f.val()===""||f.val()===f.data("stipple-empty-val"))typeof a==="undefined"&&(a={}),b=f.attr("name"),e=(g=/^(\w+)\[(\w+)\]\[(\w+)\]$/.exec(b))?g[1]+" "+g[2]+" "+g[3]:(g=/^(\w+)\[(\w+)\]$/.exec(b))?g[1]+" "+g[2]:b,e=e.replace(/_/g," "),a[f.attr("name")]={el:f,message:"is required",stringName:e}});return typeof a==="object"?[!1,a]:[!0,{}]};
c.fn.stipplePlaceNewDotContainer=function(a){var d=c(this),g,b;g=a.pageY-d.height()/5;a=a.pageX+30;b=c(window);g<b.scrollTop()?g=b.scrollTop():g+d.height()>b.height()+b.scrollTop()&&(g=b.height()+b.scrollTop()-(d.height()+10));a+d.width()>b.width()+b.scrollLeft()&&(a-=d.width()+60);d.css({top:g,left:a});d.fadeIn("fast")};c.fn.stipplePlaceHelpPopup=function(a){var d=c(this),g,b;g=a.pageY-(d.height()+30);a=a.pageX-d.width()/2;b=c(window);g<b.scrollTop()?g=b.scrollTop():g+d.height()>b.height()+b.scrollTop()&&
(g=b.height()+b.scrollTop()-(d.height()+10));a+d.width()>b.width()+b.scrollLeft()&&(a-=d.width()+60);d.css({top:g,left:a});d.fadeIn("fast")};c.fn.stippleLoadDotIntoContainer=function(a,d){var g=c(this),b,e,f,u={};g.stippleResetForms();b=a.data("dotData");g.data("dotData",b);switch(b.dot_type){case "product":g.find(".stipple-new-dot-chooser").children(":first").click();e=g.find("form:first");f={name:b.title,brand:b.brand,image_url:b.product_image,price:b.product_price||b.product_rental_price};e.trigger("stipple:mode:show_product",
f);g.stipplePlaceNewDotContainer(d);return;case "info":f=0,e=g.find(".stipple-new-info-dot-form"),e.trigger("stipple:mode:preview_unlinked_dot"),u={"dot[title]":b.title,"dot[link]":b.link,"dot[note]":b.note}}g.find(".stipple-new-dot-chooser").children(":eq("+f+")").click();u["dot[site_id]"]=g.data("wrapper").data("site_id");u["dot[start_x]"]=parseInt(a.css("top"),10)+12;u["dot[start_y]"]=parseInt(a.css("left"),10)+12;u["dot[url]"]=b.url;u.url=b.photo_url;u.image_height=g.data("wrapper").height();
u.image_width=g.data("wrapper").width();e=g.find("form:eq("+f+")");c.each(u,function(a,d){d&&d.toString().length&&e.find('[name="'+a+'"]').removeClass("stipple-empty-input").val(d)});g.data("stippleMode","edit");g.stipplePlaceNewDotContainer(d)};c.fn.stippleCreateNewDotContainer=function(){var a=c(this).stippleWrapper(),d={wrapperId:a.data("stipple-dom-id")},d=c(f.new_dot_container(c.extend(d,a.data("toolbarData"))));a.data("new_dot_container",d);d.data("wrapper",a);d.appendTo("body");return d};c.fn.stippleSetDotFormType=
function(a){var d=c(this);d.addClass("stipple-selected").siblings().removeClass("stipple-selected").end().closest(".stipple-new-dot-container").find(".stipple-new-dot-forms").children("div[data-stipple-new-dot-type!="+a+"]").hide().siblings("div[data-stipple-new-dot-type="+a+"]").show();return d};c.fn.stippleNewAutoCompleteSuggestions=function(a,d,b){var e=c(this),h,j=e.children(".stipple-autocomplete-items");j.empty();c.each(a,function(){b.acTemplate?(h=c(f[b.acTemplate]({data:this,staticHostname:p})),
h.data("autocomplete",this),j.append(h)):this.toLowerCase&&j.append(f.autocomplete_item({text:this,boldLength:d}))});b.acType&&b.acType==="product"&&!STIPPLE.pipeline&&j.append(f.autocomplete_add_product({JST:f}));e.removeData("selectedIndex").find(".stipple-selected").removeClass("stipple-selected");return e};c.fn.stippleArrowPressed=function(a,d){var b=c(this),e=b.data("acBox"),h,f;if(!e)return b;h=e.data("selectedIndex");f=e.find("li");typeof h==="undefined"?h=a:(f.eq(h).removeClass("stipple-selected"),
h=d(h,f.length-1));e.data("selectedIndex",h);f.eq(h).addClass("stipple-selected");return b};c.fn.stippleUpArrowPressed=function(){var a=c(this),d=a.data("acBox");if(!d)return a;d=d.find("li.stipple-autocomplete-item");return a.stippleArrowPressed(d.length-1,function(a,d){a-=1;a<0&&(a=d);return a})};c.fn.stippleDownArrowPressed=function(){var a=c(this),d=a.data("acBox");if(!d)return a;d.find("li.stipple-autocomplete-item");return a.stippleArrowPressed(0,function(a,d){a+=1;a>d&&(a=0);return a})};c.fn.stippleDisableForms=
function(){var a=c(this),d=a.stippleWrapper();d.data("disableForms",!0).siblings(".stipple-toolbar-contents").hide().end().find('input[type="submit"]').prop("disabled",!0);J(d);return a};c.fn.stippleEnableForms=function(){var a=c(this);a.stippleWrapper().removeData("disableForms").siblings(".stipple-toolbar-contents").fadeIn("fast").end().find('input[type="submit"]').removeProp("disabled");z();return a};c.fn.stippleEnableNewDotMode=function(){var a=c(this);a.stippleWrapper().data("wrapperMode","edit").children(".stipple-new-dot-overlay").show();
return a};c.fn.stippleDisableNewDotMode=function(){var a=c(this);a.stippleWrapper().removeData("wrapperMode").children(".stipple-new-dot-overlay").hide();return a};c.fn.moveStyles=function(a,d){var b=c(this),e,f,j;c.each(a,function(a,i){c.isArray(i)?(e=i[0],j=i[1]):(e=i,j=0);if((f=b.css(e))&&f.length)d.css(e,f),b.css(e,j)})};b=".stipple-dot:visible:not(.stipple-fading)";e.on("mouseenter",b,function(){var a=c(this),d=a.stippleWrapper(),b=a.data("dotData"),e=b.dot_type||"product",h=a.data("dotBox");
h||(h=c(f["dot_"+e]({JST:f,model:b.model,brand:b.brand,title:b.title,image_url:b.product_image,price:b.product_price,rental_price:b.product_rental_price,buy_now_link:b.buy_product_link,landing_link:b.landing_link,product_id:b.product_id,is_wanted:b.is_wanted,want_count:b.want_count,note:b.note,link:b.link,has_offer:b["has_offer?"],has_product:b["has_product?"],staticHostname:p,externalImgPath:s,helpers:x,inEditMode:d.data("wrapperMode")==="edit",wishlistUrl:d.data("toolbarData").wishlistUrl,userCanEdit:d.data("toolbarData").userCanEdit,
prototype_image_id:b.prototype_image_id,campaigned:b["campaigned?"],link_data:b.link_data&&typeof b.link_data==="object"?b.link_data.data:void 0})),h.data("wrapper",d),h.data("dotData",b),h.data("dotElement",a),h.attr("data-stipple-dom-id",w),w+=1,a.data("dotBox",h),h.appendTo("body"));h.data("removeTimer")&&(clearTimeout(h.data("removeTimer")),h.removeData("removeTimer"));d=function(a){return a-h.height()-8}(a.offset().top);e=function(a){return a-h.width()/2+12}(a.offset().left);d<c(window).scrollTop()&&
(d+=a.height()+h.height()+16);e<c(window).scrollLeft()?e+=h.width()/2+12:e+h.width()>c(window).width()+c(window).scrollLeft()&&(e-=h.width()/2+12);h.css({opacity:0,top:d,left:e}).stop().show().fadeTo("fast",1);STIPPLE.pipeline||y({act:"dot:mouseover",id:b.id})}).on("mouseleave",b,function(){var a=c(this),d=a.data("dotData"),b=a.data("dotBox");a.attr("src",l+"stippleit.com"+d.image_file);b&&(a=H(b),b.data("removeTimer",a))});b=".stipple-dot-edit-link";e.on("click",b,function(a){var d=c(this).closest(".stipple-dot-box").data("dotElement"),
b=d.stippleWrapper(),e;if(e=b.data("new_dot_container")){if(e.is(":visible"))return!0}else e=b.stippleCreateNewDotContainer();d.addClass("stipple-updatable-dot").data("dotBox").stippleDisappear();e.stippleLoadDotIntoContainer(d,a);return!1});b=".stipple-dot-box";e.on("mouseenter",b,function(){var a=c(this);a.data("removeTimer")&&(clearTimeout(a.data("removeTimer")),a.removeData("removeTimer"))}).on("mouseleave",b,function(){var a=c(this),d;d=H(a);a.data("removeTimer",d)});b=".stipple-dottable-wrapper";
e.on("mouseenter",b,function(){var a=c(this);if(a.data("wrapperMode")==="edit"||a.data("disableForms"))return!1;a.find(".stipple-call-to-action").fadeOut("fast",function(){c(this).remove()}).end().find(".stipple-metadata-beacon, .stipple-editor-tools").stippleAppear();a.data("photoData")&&((a.data("photoData").caption||a.data("photoData").credit)&&a.find(".stipple-toolbar").stippleAppear(),!STIPPLE.pipeline&&a.data("photoData").id&&y({act:"photo:mouseover",id:a.data("photoData").id}))}).on("mouseleave",
b,function(){var a=c(this);if(a.data("wrapperMode")==="edit"||a.data("disableForms"))return!1;a.find(".stipple-dot, .stipple-metadata-beacon").stop().animate({opacity:0},{queue:!1,duration:200},"linear",function(){c(this).hide()}).end().find(".stipple-toolbar, .stipple-editor-tools").stippleDisappear()}).on("click",b,function(a){var d=c(this),b,e;if(!STIPPLE.dot_template)return!0;b=Math.round(a.pageX-d.offset().left);a=Math.round(a.pageY-d.offset().top);e={photo_id:d.data("photoData").id,image_width:d.data("toolbarData").imageWidth,
image_height:d.data("toolbarData").imageHeight,act:"dot:create",dom_id:d.attr("data-stipple-dom-id"),pipeline:!!STIPPLE.pipeline};e=c.extend(!0,e,STIPPLE.dot_template);e.dot.start_x=b;e.dot.start_y=a;c(f.dot({image_url:r+e.dot.dot_type+".png"})).css({position:"absolute",left:b-12,top:a-12,display:"block",width:"1px",height:"1px"}).removeClass("stipple-dot").addClass("stipple-new-dot").css("opacity",0).appendTo(d).fadeTo("fast",1);y(c.param(e));return!1});b=".stipple-new-dot-overlay";e.on("click",
b,function(a){var d=c(this),b=d.stippleWrapper(),e,h;h=b.data("new_dot_container");if(!b.stippleUserCanEdit()||b.data("wrapperMode")!=="edit"||b.children(".stipple-new-dot").length||h&&h.is(":visible"))return!1;if(STIPPLE.dot_template)return!0;d.addClass("stipple-inactive");b.children(":not(.stipple-new-dot-overlay):first");d=Math.round(a.pageX-b.offset().left);e=Math.round(a.pageY-b.offset().top);c(f.dot({image_url:r+"plain.png"})).css({position:"absolute",left:d-12,top:e-12,display:"block",width:"1px",
height:"1px"}).removeClass("stipple-dot").addClass("stipple-new-dot").css("opacity",0).appendTo(b).fadeTo("fast",1);h||(h=b.stippleCreateNewDotContainer());h.find(".stipple-new-dot-chooser").children(":first").click();h.stippleUpdateFormCoordinates(d,e);h.find('[name="dot[product_id]"]').val(null);h.stipplePlaceNewDotContainer(a);return!1});b=".stipple-dottable-wrapper [class*=stippleit-sid-], .stipple-dottable-wrapper .stipple-new-dot-overlay";e.on("mousemove",b,function(a){var d=c(this),b=d.stippleWrapper();
d.siblings(".stipple-dot:not(.stipple-fading), .stipple-metadata-beacon").stop().stippleFadeToDistance(a.pageX-b.offset().left,a.pageY-b.offset().top)});b=".stipple-dottable-wrapper .stipple-toolbar";e.on("mouseenter",b,function(a){var d=c(this),b=d.stippleWrapper();d.siblings(".stipple-dot:not(.stipple-fading), .stipple-metadata-beacon").stippleFadeToDistance(a.pageX-b.offset().left,a.pageY-b.offset().top)}).on("click",b+" input[type=text], "+b+" textarea, "+b+" select",function(){if(!c(this).stippleWrapper().parent().is("a"))return!0;
c(this).is("select")&&c(this).blur();return!1});e.on("click",".stipple-edit-button",function(){var a=c(this),d=a.stippleWrapper(),b=a.closest(".stipple-editor-tools");if(d.data("disableForms")||a.is(".stipple-disabled"))return!1;a.is(".stipple-editing")?a.removeClass("stipple-editing").stippleCancelEditMode():(b.is(":visible")||b.stippleAppear(),a.addClass("stipple-editing").stippleEnableEditMode());return!1});e.on("click",".stipple-dot-box-edit-toggler",function(){c(this).toggleClass("stipple-toggler-off stipple-toggler-on").closest(".stipple-dot-box").find(".stipple-dot-box-edit-drawer").toggle();
return!1});e.on("click",".stipple-dot-delete-link",function(){var a=c(this).closest(".stipple-dot-box"),d=a.data("wrapper");if(d.data("disableForms"))return!1;confirm("Are you sure you want to delete dot '"+a.data("dotData").title+"'?")&&(d.stippleDisableForms(),a.data("dotElement").attr("data-delete-dot-id",a.data("dotData").id),y({act:"dot:delete",id:a.data("dotData").id,dom_id:d.attr("data-stipple-dom-id"),pipeline:!!STIPPLE.pipeline}));return!1});b=".stipple-new-dot-container";e.on("keyup",b,
function(a){if(a.keyCode===27)return c(this).find(".stipple-new-dot-cancel-button").click(),!1});e.on("click",".stipple-new-dot-edit-button",function(){c(this).closest("form").trigger("stipple:mode:create_product");return!1});e.on("click",".stipple-new-dot-cancel-button",function(){var a=c(this).closest(".stipple-new-dot-container");a.data("wrapper").cleanupNewDots();c(".stipple-autocomplete-box").hide();a.removeData("stippleMode");return!1});b=".stipple-new-product-dot-form";e.on("submit",b,function(a){var d=
c(this);switch(d.data("stipple-mode")){case "showProduct":break;case "createProduct":a.stopImmediatePropagation();c(".stipple-validation-error").remove();c(".stipple-invalid").removeClass("stipple-invalid");a=d.stippleValidateForm();if(a[0]===!0)d.trigger("stipple:mode:preview_new_product");else{c.each(a[1],function(a,d){var c=d.el.prev("label");d.el.addClass("stipple-invalid");c.append('<span class="stipple-validation-error">* required</span>')});break}c("[data-stipple-empty-val]").blur();break;
case "previewProduct":case "previewNewProduct":return!0;default:a.stopImmediatePropagation()}return!1}).on("stipple:mode:search_product stipple:mode:default",b,function(){var a=c(this);a.data("stipple-mode","searchProduct");a.find(".stipple-default-hide").hide().siblings(".stipple-default-show").show().end().end().find(".stipple-product-fields").hide().filter(".stipple-product-dot-autocomplete-input-container").show()}).on("stipple:mode:create_product",b,function(a){var d=c(this),b=d.closest(".stipple-new-dot-container");
d.data("stipple-mode","createProduct");c(".stipple-autocomplete-box:visible").stippleDisappear(0,function(){b.stipplePlaceNewDotContainer(a)});d.find(".stipple-new-dot-save-button").val("Preview").show().siblings(".stipple-new-dot-edit-button").hide().end().end().find(".stipple-product-fields").hide().filter(".stipple-product-specific-fields").show()}).on("stipple:mode:preview_product",b,function(a,d,b){a=c(this);a.data("stipple-mode","previewProduct");b||(b=f.autocomplete_item_product({data:d}));
a.find('[name="dot[product_id]"]').val(d.id).end().find(".stipple-selected-product").find("ul").empty().append(b).end().end().find(".stipple-new-dot-save-button").val("Save").show().focus().siblings(".stipple-new-dot-edit-button").hide().end().end().find(".stipple-product-fields").hide().filter(".stipple-selected-product").show()}).on("stipple:mode:show_product",b,function(a,d){var b=c(this);b.trigger("stipple:mode:preview_product",d);b.find(".stipple-new-dot-save-button").hide().blur();b.data("stipple-mode",
"showProduct")}).on("stipple:mode:preview_new_product",b,function(){var a=c(this),d,b,e,h;a.data("stipple-mode","previewNewProduct");a.find("[data-stipple-empty-val]").each(function(){var a=c(this);a.attr("data-stipple-empty-val")===a.val()&&a.val("")});b=a.serializeArray();d=function(a){var d=c.grep(b,function(d){return d.name===a});return d.length?d[0].value:""};e=d("product[price]");e.length&&(h=c("#stipple-new-product-currency option:selected").data("stipple-currency-symbol"),e=h+e);d={image_url:d("product[image_url]"),
name:d("product[name]"),brand:d("product[brand]"),price:e};d=f.autocomplete_item_product({data:d});a.find(".stipple-new-dot-save-button, .stipple-new-dot-edit-button").show().filter(".stipple-new-dot-save-button").val("Save").focus().end().end().find(".stipple-product-fields").hide().filter(".stipple-selected-product").empty().append(d).show()});(function(){b=".stipple-new-info-dot-form";e.on("submit",b,function(a){var d=c(this),b;switch(d.data("stipple-mode")){case "fetch_link":break;case "preview_unlinked_dot":case "preview_linked_dot":a.stopImmediatePropagation();
c("[data-stipple-empty-val]").blur();if(d.find('.stipple-empty-input[name="dot[title]"]').length){alert("Please add a title for your dot.");break}a=d.find('[name="dot[link]"]');b=d.data("stipple-saved-link");d.removeData("stipple-saved-link");if(a.is(".stipple-empty-input")||a.val()===""||b===a.val()){d.trigger("stipple:real_submit");break}else d.trigger("stipple:mode:fetch_link",a.val());break;default:a.stopImmediatePropagation();a=d.find('[name="url_or_title"]');if(a.is(".stipple-empty-input")){alert("Please add a title or URL for your dot.");
break}else a=a.val();/^(?:https?:\/\/|@)/.test(a)?d.trigger("stipple:mode:fetch_link",a):d.trigger("stipple:mode:preview_unlinked_dot",[null,a])}return!1}).on("stipple:mode:url_or_title stipple:mode:default",b,function(){var a=c(this);a.data("stipple-mode","url_or_title");a.find(".stipple-new-dot-save-button").val("Preview").end().find(".stipple-link-previews").hide().empty().end().find(".stipple-default-empty").empty().end().find(".stipple-default-hide").hide().siblings(".stipple-default-show").show();
return a}).on("stipple:mode:fetch_link",b,function(a,d){var b=c(this),e=b.find(".stipple-fetching-link");b.data("stipple-mode","fetch_link");d=d||b.find('[name="url_or_title"]').val();c.ajax({url:l+"stippleit.com/external_embeds/message_handler",dataType:"jsonp",data:{act:"link:fetch",url:d},beforeSend:function(){c(".stipple-link-previews").hide().empty();e.show()},success:function(a){e.hide();a.data&&a.data.data?b.trigger("stipple:mode:preview_linked_dot",[a.data.data.url,a.data.data]):b.trigger("stipple:mode:preview_unlinked_dot",
d)},error:function(){e.hide();b.trigger("stipple:mode:preview_unlinked_dot",d)}});return b}).on("stipple:mode:preview_unlinked_dot",b,function(a,d,b){var a=c(this),e=a.find('[name="dot[title]"]'),f=a.find('[name="dot[link]"]'),j=a.closest(".stipple-new-dot-container");a.data("stipple-mode","preview_unlinked_dot");e.parent().show();b&&b.length&&e.focus().val(b).blur();d&&d.length&&f.focus().val(d).blur();a.find(".stipple-new-dot-save-button").val("Save").end().find(".stipple-dot-start-fields").hide();
j.stipplePlaceNewDotContainer({pageX:j.offset().left-30,pageY:j.offset().top+j.height()/5});a.data("stipple-saved-link",d);return a}).on("stipple:mode:preview_linked_dot",b,function(a,d,b){var a=c(this),e=a.find('[name="dot[title]"]'),h=a.find('[name="dot[link]"]'),j=a.find('[name="dot[note]"]'),i=a.closest(".stipple-new-dot-container");a.data("stipple-mode","preview_linked_dot");e.parent().show();b&&b.title&&b.title.length&&e.focus().val(b.title).blur();b&&b.note&&b.note.length&&j.focus().val(b.note).blur();
d&&d.length&&h.focus().val(d).blur();a.find(".stipple-new-dot-save-button").val("Save").end().find(".stipple-dot-start-fields").hide().end().find(".stipple-info-preview").empty().hide();d&&a.data("stipple-saved-link",d);if(b){if(b.image)d=new Image,d.onload=function(){i.stipplePlaceNewDotContainer({pageX:i.offset().left-30,pageY:i.offset().top+i.height()/5})},d.src=b.image;c.extend(b,{staticHostname:p});b=f["link_template_"+b.name.toLowerCase()]?f["link_template_"+b.name.toLowerCase()](b):f.link_template(b);
c(".stipple-link-previews").empty().append(b).show();i.stipplePlaceNewDotContainer({pageX:i.offset().left-30,pageY:i.offset().top+i.height()/5})}return a})})();b=".stipple-new-dot-forms .stipple-form";e.on("submit",b,function(){var a=c(this),b=a.closest(".stipple-new-dot-container");if(a.is(".stipple-new-product-dot-form")&&b.find(".stipple-autocomplete-box:visible").length)return!1;a.trigger("stipple:real_submit")}).on("stipple:real_submit",b,function(){var a=c(this),b,e;e=a.closest(".stipple-new-dot-container");
b=e.data("wrapper");if(b.data("disableForms"))return!1;b.stippleDisableForms();a.find("[data-stipple-empty-val]").each(function(){var a=c(this);a.attr("data-stipple-empty-val")===a.val()&&a.val("")});a=a.serialize();a+="&act="+encodeURIComponent(e.data("stippleMode")==="edit"?"dot:update":"dot:create");a+="&dom_id="+b.attr("data-stipple-dom-id");e.data("dotData")&&(a+="&id="+e.data("dotData").id);STIPPLE.pipeline&&(a+="&pipeline=true&photo_id="+b.data("photoData").id);y(a);return!1});e.on("paste",
"input.stipple-url-title",function(){var a=c(this).closest("form");setTimeout(function(){a.submit()},100);return!0});e.on("click",".stipple-link-data .stipple-edit-info-dot-link",function(){c(this).closest("form").trigger("stipple:mode:preview_linked_dot");return!1});e.on("click",".stipple-edit-info-dot-link",function(){var a=c(this).closest("form");a.find(".stipple-link-previews").length?a.trigger("stipple:mode:preview_linked_dot"):a.trigger("stipple:mode:preview_unlinked_dot");return!1});e.on("click",
".stipple-new-dot-chooser [data-stipple-new-dot-type]:not(stipple-selected)",function(){var a=c(this);a.stippleSetDotFormType(a.attr("data-stipple-new-dot-type"))});e.on("submit",".stipple-edit-caption-form",function(){var a=c(this),b;b=a.stippleWrapper();if(b.data("disableForms"))return!1;b.stippleDisableForms();a=a.serialize();a+="&act="+encodeURIComponent("photo:caption");STIPPLE.pipeline&&(a+="&pipeline=true&photo_id="+b.data("photoData").id);a+="&dom_id="+b.attr("data-stipple-dom-id");y(a);return!1});
b="[data-stipple-empty-val]";e.on("focus",b,function(){var a=c(this);a.val()===a.attr("data-stipple-empty-val")&&(a.val(""),a.removeClass("stipple-empty-input"))}).on("blur",b,function(){var a=c(this);c.trim(a.val())===""&&(a.val(a.attr("data-stipple-empty-val")),a.addClass("stipple-empty-input"))});(function(){var a=function(a,b,e){var f=a.data("acBox"),j,i,k,n,p,m=a.closest(".stipple-new-dot-container");i=e.urlFragment;k=e.requestData;n=e.completeCallback;j=e.acBoxElement;p=e.acType;f||(f=j||a.nextAll(".stipple-autocomplete-box:first"),
a.data("acBox",f),f.data("input",a),f.data("completeCallback",n));if(a.val().length<2)f.is(":visible")&&f.stippleDisappear(),o&&(clearTimeout(o),o=null);else{j=f.find("li.stipple-selected");switch(b.keyCode){case 27:return f.is(":visible")?(f.stippleDisappear(function(){m.stipplePlaceNewDotContainer({pageX:m.offset().left-30,pageY:m.offset().top+m.height()/5})}),!1):!0;case 38:return a.stippleUpArrowPressed(),!1;case 40:return a.stippleDownArrowPressed(),!1;case 13:return!1;case 9:if(j.is(".stipple-autocomplete-add-product"))return b.keyCode===
9;j.length&&n(a,j);f.stippleDisappear(function(){m.stipplePlaceNewDotContainer({pageX:m.offset().left-30,pageY:m.offset().top+m.height()/5})});return b.keyCode===9}o&&(clearTimeout(o),o=null);o=setTimeout(function(){var b=a.val().replace(/^[%@]+/,"");c.ajax({url:l+"stippleit.com/"+i+"/"+encodeURIComponent(b),data:k,dataType:"jsonp",beforeSend:function(){a.is(":visible")&&(f.children().hide().filter(".stipple-autocomplete-ajax-loader").show(),f.stippleAppear(function(){m.stipplePlaceNewDotContainer({pageX:m.offset().left-
30,pageY:m.offset().top+m.height()/5})}))},success:function(b){var c;b.list&&b.list.length?(c=".stipple-autocomplete-items",f.stippleNewAutoCompleteSuggestions(b.list,a.val().length,e),f.children().hide().filter(c).show(),m.stipplePlaceNewDotContainer({pageX:m.offset().left-30,pageY:m.offset().top+m.height()/5})):(c=".stipple-autocomplete-no-results",f.is(":visible")&&a.is(":visible")&&(p==="product"&&!STIPPLE.pipeline?f.find(".stipple-autocomplete-add-product-button").show():f.find(".stipple-autocomplete-add-product-button").hide(),
f.children().hide().filter(c).show().find(".stipple-autocomplete-no-results-search-term").text(a.val()),m.stipplePlaceNewDotContainer({pageX:m.offset().left-30,pageY:m.offset().top+m.height()/5})))}})},1E3);return!0}};c("input.stipple-product-autocomplete").live("keyup keydown",function(b){var e,f;if(b.type==="keyup"&&b.keyCode!==9||b.type==="keydown"&&b.keyCode===9)return e=c(this),f={},STIPPLE.entity_id?f.entity_id=STIPPLE.entity_id:(f.entity_id=e.closest(".stipple-new-dot-container").data("wrapper").data("toolbarData").site_id,
f.entity_type="Brand"),a(c(this),b,{urlFragment:"product_ac",requestData:f,acBoxElement:c(this).closest("form").find(".stipple-autocomplete-box:last"),acTemplate:"autocomplete_item_product",acType:"product",completeCallback:function(a,b){var c=b.data("autocomplete");a.closest("form").trigger("stipple:mode:preview_product",c,b.clone())}})})})();b=".stipple-autocomplete-box";e.on("focusin",b,function(){c(this).data("stipple-focused",!0)}).on("focusout",b,function(){c(this).removeData("stipple-focused")});
b=".stipple-autocomplete-item";e.on("mouseenter",b,function(){c(this).addClass("stipple-selected")}).on("mouseleave",b,function(){c(this).removeClass("stipple-selected")}).on("click",".stipple-autocomplete-box "+b,function(){var a=c(this),b=a.closest(".stipple-autocomplete-box");a.is(".stipple-autocomplete-add-product")||(b.data("completeCallback")(b.data("input"),a),b.stippleDisappear());return!1});e.on("click",".stipple-autocomplete-add-product-button",function(){c(".stipple-new-dot-container").find(".stipple-new-product-dot-form").trigger("stipple:mode:create_product");
return!1});e.on("submit",".stipple-form",function(){return!1});e.on("click",".stipple-want",function(){var a=c(this),b=a.closest(".stipple-dot-box"),e=b.data("wrapper"),a={act:"user:toggle_want_for",data:{product_id:a.closest(".stipple-dot-box-product").attr("data-product-id"),photo_id:e.data("photoData").id,dot_id:b.data("dotData").id},dom_id:e.attr("data-stipple-dom-id")};e.data("toolbarData").user.id?y(a):x.loginWindow(function(){window.location.reload()},a);return!1});e.on("click",".stipple-local-offers-prompt:not(.stipple-disabled)",
function(){var a=c(this),b=a.closest(".stipple-local-offers-container").find(".stipple-local-offers-list"),e;if(b.is(":visible"))return b.slideUp("fast"),a.find(".stipple-local-offers-text").text("Search Local Stores"),!1;e=b.data("hasOffers");e===!0?(b.slideDown("fast"),a.find(".stipple-local-offers-text").text("Close")):typeof e==="undefined"&&(a.addClass(".stipple-disabled"),b=a.closest(".stipple-dot-box-product"),a.find(".stipple-local-offers-text").text("Checking for local offers...").prevAll(".stipple-ajax-spinner").show(),
c.ajax({url:l+"stippleit.com/dots/local_offers",data:{message:{act:"dot:local_offers",data:{product_id:b.attr("data-product-id")},id:b.data("dotData").id},dom_id:b.attr("data-stipple-dom-id")},dataType:"jsonp",success:function(a){v["dot:local_offers"](a)}}));return!1});e.on("click",".stipple-help-beacon",function(a){var b=c(this),e=b.data("template");e?e.is(":visible")?e.stippleDisappear():e.stippleAppear():(e=c(f.context_help_popup({JST:f,template:b.attr("data-stipple-help-template")})),e.css({top:100,
left:100}).appendTo("body").stipplePlaceHelpPopup(a),b.data("template",e));return!1});b=".stipple-metadata-beacon";e.on("mouseenter",b,function(){c(this).siblings(".stipple-metadata-box").stippleAppear()}).on("mouseleave",b,function(){var a=c(this).siblings(".stipple-metadata-box"),b;b=setTimeout(function(){a.stippleDisappear().removeData("stipple-fade-timer")},200);a.data("stipple-fade-timer",b)});b=".stipple-metadata-box";e.on("mouseenter",b,function(){var a=c(this),b=a.data("stipple-fade-timer");
b&&(clearTimeout(b),a.removeData("stipple-fade-timer"))}).on("mouseleave",b,function(){c(this).stippleDisappear()});e.on("click",".stipple-help-popup-close-button",function(){c(this).closest(".stipple-help-popup").stippleDisappear()})};I=function(){var e=function(){for(var b=window._stippleq,a;b.length;)a=b.shift(),STIPPLE[a[0]].apply(this,a.slice(1))};c(function(){var b=window._stippleq;c(f.external_css({externalImgPath:s})).appendTo("head");c(f.external_css_ie({})).appendTo("head");c(f.external_css_ie7({})).appendTo("head");
N();if(b)b.proto_push=b.push,b.push=function(a){var b=Array.prototype.slice.call(a,0);STIPPLE[b[0]].apply(this,b.slice(1));e();return a};b&&b.length?e():G(K());O();M()})};P=function(e,b){var a={},d,f,i,h,j;if(b&&typeof b==="object")(d=b.selector)?d=c(d):(h=parseInt(b.minWidth,10)||200,j=parseInt(b.minHeight,10)||200,d=c("img").filter(function(){var a=c(this),b;b=parseInt(a.getRealDimension("width"),10);a=parseInt(a.getRealDimension("height"),10);return b>=h&&a>=j}).map(function(){var a=c(this);return a.parent().is("a")?
a.parent().get(0):this})),b.afterAll&&(f=(new Date).getTime().toString()+Math.floor(Math.random()*1E3),B[f]={callback:b.afterAll,stillLoading:d.length},d.each(function(){i=(i=c(this).data("stipple-callbackBatches"))||{};i[f]=1;c(this).data("stipple-callbackBatches",i)}));d.addClass("stippleit-sid-"+e);a[e]=d.map(function(){return c(this)});G(a)};STIPPLE.callbacks={};STIPPLE.addCallbacks=function(c,b){STIPPLE.callbacks[c]=b};STIPPLE.load=function(e,b){var a;STIPPLE.loaded_site_id&&STIPPLE.loaded_site_id!==
e&&console&&console.log?console.log("Stipple received a message to load site ID "+e+", but already has loaded site ID "+STIPPLE.loaded_site_id):(STIPPLE.loaded_site_id=STIPPLE.loaded_site_id||e,b||(b={}),typeof c==="undefined"?setTimeout(function(){STIPPLE.load(e,b)},40):c(function(){C()&&document.readyState!=="complete"?setTimeout(arguments.callee,100):P(e,b)}))};n=/\bSafari\b/.test(navigator.userAgent)?x.utf8Encode(location.href):location.href;(function(){var e,b;typeof jQuery!=="undefined"&&jQuery.fn.jquery===
"1.7.1"?(c=jQuery.sub(),I(c)):(e=document.createElement("script"),e.src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js",document.documentElement.getElementsByTagName("HEAD")[0].appendChild(e),b=setInterval(function(){typeof jQuery!=="undefined"&&jQuery.fn.jquery==="1.7.1"&&(clearInterval(b),c=jQuery.noConflict(!0),t(c)&&I(c))},25))})()})()};

