1!function(p){var f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";p.fn.imagesLoaded=function(i){function o(){var e=p(u),t=p(h);r&&(h.length?r.reject(l,e,t):r.resolve(l)),p.isFunction(i)&&i.call(a,l,e,t)}function n(e){s(e.target,"error"===e.type)}function s(e,t){e.src!==f&&-1===p.inArray(e,c)&&(c.push(e),(t?h:u).push(e),p.data(e,"imagesLoaded",{isBroken:t,src:e.src}),d&&r.notifyWith(p(e),[t,l,p(u),p(h)]),l.length===c.length)&&(setTimeout(o),l.unbind(".imagesLoaded",n))}var a=this,r=p.isFunction(p.Deferred)?p.Deferred():0,d=p.isFunction(r.notify),l=a.find("img").add(a.filter("img")),c=[],u=[],h=[];return p.isPlainObject(i)&&p.each(i,function(e,t){"callback"===e?i=t:r&&r[e](t)}),l.length?l.bind("load.imagesLoaded error.imagesLoaded",n).each(function(e,t){var i=t.src,o=p.data(t,"imagesLoaded");o&&o.src===i?s(t,o.isBroken):t.complete&&void 0!==t.naturalWidth?s(t,0===t.naturalWidth||0===t.naturalHeight):(t.readyState||t.complete)&&(t.src=f,t.src=i)}):o(),r?r.promise(a):a}}(jQuery);var TB_refreshAds_handle,TB_headerAdHeight,Slide=function(e,t,i,o){this.index=e,this.type=t,this.src=i,this.alt=4==arguments.length?o:"",this.text=null,this.loaded=!1,this.loadAttempted=!1,this.lastAnimationStartTime=0,this.isAnimating=!1,this.animatingIn=!1,this.loadedItem=$("<img src='//images.totalbeauty.com/img/v2013/loader_white.gif' id='slideLoader"+this.index+"' class='slide"+this.index+"' width='66' height='66' />"),this.originalDims=[66,66]},TB_SLIDESHOW_ANIMATION_TIME=(Slide.prototype.loadSlide=function(e){var t,i;0==arguments.length&&(e=null),this.loadAttempted||(null==(i=e)&&("img"==this.type?i=$("<img src='"+this.src+"' alt='"+this.alt+"' />"):(t=$(this.src),(i=$("<div width='"+t.width()+"' height='"+t.height()+"'></div>")).append(t)),i.css("display","none"),$("body").append(i)),i.addClass("slide"+this.index),"img"==this.type?i.imagesLoaded(TB_slideLoaded):TB_slideLoaded(i)),this.loadAttempted=!0},Slide.prototype.resetSlideStyles=function(){var e=this.loadedItem,t=this.originalDims[1];e.css("left",Math.max(0,(TB_slideWidth-this.originalDims[0])/2)),e.css("margin-top",(TB_slideHeight-t)/2),e.css("opacity",1),e.css("height",t)},Slide.prototype.setPreAnimateSlideStyles=function(){var e=this.originalDims[1],e=Math.max(e-2*TB_shrinkMargin,60),t=this.loadedItem;t.css("height",e),t.css("margin-top",(TB_slideHeight-e)/2),t.css("opacity",0)},Slide.prototype.removeSlide=function(){var e=this.loadedItem;e.css("display","none"),this.resetSlideStyles(),e.remove()},Slide.prototype.addSlide=function(e){0==arguments.length&&(e=!1),this.loaded||this.loadSlide();var t=this.loadedItem;t.css("display","block"),0==$("#slide_holder *.slide"+this.index).length&&$("#slide_holder").append(t)},Slide.prototype.continueAnimateIn=function(e){var t=this.loadedItem,i=this.originalDims[0],o=this.originalDims[1],i=Math.min((TB_slideWidth-i)/2,0);t.animate({left:i,marginTop:(TB_slideHeight-o)/2,opacity:1,height:o}
1,e,function(){var e=$(this),e=TB_slides[TB_getSlideIndexOf(e)];e.animatingIn=!1,e.isAnimating=!1,e.resetSlideStyles()}),this.animatingIn=!0,this.isAnimating=!0},Slide.prototype.animateIn=function(e){0==arguments.length&&(e=TB_SLIDESHOW_ANIMATION_TIME);var t=TB_curSlide<this.index,i=this.loadedItem,o=this.originalDims[0],n=this.originalDims[1],o=Math.max(0,(TB_slideWidth-o)/2);this.setPreAnimateSlideStyles(),i.css("left",TB_slideWidth*(t?1:-1)+o+"px"),i.animate({left:o,marginTop:(TB_slideHeight-n)/2,opacity:1,height:n},"img"==this.type?e:0,function(){var e=$(this),e=TB_slides[TB_getSlideIndexOf(e)];e.animatingIn=!1,e.isAnimating=!1,e.resetSlideStyles()}),this.animatingIn=!0,this.isAnimating=!0,this.lastAnimationStartTime=(new Date).getTime()},Slide.prototype.animateOut=function(e,t){0==arguments.length&&(e=TB_SLIDESHOW_ANIMATION_TIME);var i=this.originalDims[0],o=this.originalDims[1],i=(TB_slideWidth-i)/2;this.loadedItem.animate({left:TB_slideWidth*(t?-1:1)+i,marginTop:TB_shrinkMargin+(TB_slideHeight-o)/2,opacity:0,height:o-2*TB_shrinkMargin},"img"==this.type?e:1,function(){var e=TB_getSlideIndexOf($(this));e!=TB_curSlide&&TB_slides[e].removeSlide(),TB_slides[e].isAnimating=!1}),this.lastAnimationStartTime=(new Date).getTime(),this.isAnimating=!0},700),TB_curSlide=0,TB_articleUrlName="",TB_photoIds=[],TB_slideWidth=360,TB_slideHeight=433,TB_isLegacy=0<=window.location.pathname.search("/content/gallery"),TB_shrinkMargin=100,TB_slides=[],TB_lastScrollTop=0,TB_MIN_AD_REFRESH_WAIT_TIME=1e3,TB_AD_REFRESH_TIME_IN_FULLSCREEN=2e4,TB_FILLED_AD_MIN_HEIGHT=250,TB_lastAdRefreshTime=0,TB_ssnsl=1;function showOptin(){$(".gall_end_callouts_row").eq(0).css({height:275,opacity:0}),$("#slideOptin").css("display","block").stop().animate({opacity:1},500),$("#optError a").click(function(){return hideOptin(),createCookie("pv",0,0),!1})}function hideOptin(){$("#slideOptin").stop().animate({opacity:0}
1,500,function(){$("#slideOptin").remove(),$(".gall_end_callouts_row").eq(0).css({opacity:1})})}function TB_initSlideshow(){$("a.leftSlideA").click(TB_decrementSlide),$("a.rightSlideA").click(TB_incrementSlide),$("html").keydown(function(e){if(!(0<$("input:focus").length)){switch(e.which){case 37:"#"!=$("a.leftSlideA").attr("href")&&TB_decrementSlide();break;case 39:"#"!=$("a.rightSlideA").attr("href")&&TB_incrementSlide();break;default:return}e.preventDefault()}});var e=$("#slide_holder"),e=(e.removeClass("initial"),TB_slideWidth=e.width(),TB_slideHeight=e.height(),e.find("*").eq(0));TB_slides[TB_curSlide].loadSlide(e),TB_curSlide+1<TB_slides.length&&TB_slides[TB_curSlide+1].loadSlide(),0<TB_curSlide&&TB_slides[TB_curSlide-1].loadSlide(),TB_updateControls(),new ResizeSensor($(".headerAd"),TB_adResized)}function TB_slideLoaded(e){var t,i=TB_getSlideIndexOf(e),o=TB_slides[i],n=!1,s=$("#slide_holder"),a=s.width(),r=s.height();o.loadedItem.attr("id")=="slideLoader"+i&&((t=o.loadedItem).is(":animated")&&(o.animatingIn=!1,n=!(o.isAnimating=!1),e.css("left",parseInt(t.css("left"),10)-e.width()/2+t.width()/2+"px"),e.css("margin-top",parseInt(t.css("margin-top"))-e.height()/2+t.height()/2+"px")),t.stop(!0),t.remove()),o.loadedItem=e,o.originalDims=[e.width(),e.height()],o.originalDims[0]>a&&(o.originalDims[1]*=a/o.originalDims[0],o.originalDims[0]=a),o.originalDims[1]>r&&(o.originalDims[0]*=r/o.originalDims[1],o.originalDims[1]=r),0!=o.originalDims[0]&&0!=o.originalDims[1]||(o.originalDims=[s.width(),s.height()]),o.loaded=!0,TB_curSlide==i&&o.addSlide(),n?(t=TB_SLIDESHOW_ANIMATION_TIME-((new Date).getTime()-o.lastAnimationStartTime),o.continueAnimateIn(t=t<100||TB_SLIDESHOW_ANIMATION_TIME<t?300:t)):TB_curSlide!=i||o.isAnimating||o.resetSlideStyles()}function TB_setSlideSrcs(e,t){for(var i=0;i<e.length;i++)TB_slides[i]=new Slide(i,0!=e[i].indexOf("<")?"img":"embed",e[i],t[i])}function TB_setSlideContents(e){for(var t=0;t<e.length;t++)TB_slides[t].text=e[t]}function TB_gotoSlide(e){var t,i,o,n;e=parseInt(e),(isNaN(e)||e<1)&&(e=1),TB_curSlide!=--e&&($("#slide_holder"),t=$("#scroller_text"),i=TB_curSlide<e,o=TB_slides[TB_curSlide],n=TB_slides[e],o.loaded?o.animateOut(TB_SLIDESHOW_ANIMATION_TIME,i):o.removeSlide(),n.addSlide(),n.setPreAnimateSlideStyles(),n.animateIn(),t.stop(!0,!0).animate({opacity:0}
1,TB_SLIDESHOW_ANIMATION_TIME/2,function(){$(".scroller_inner").html(n.text),$("#nbtnseo").click(TB_incrementSlide),$("html,body").animate({scrollTop:$(".gallery_frame").offset().top-$(".headerAd").height()-$("#header").height()-16+"px"},TB_SLIDESHOW_ANIMATION_TIME/2)}).animate({opacity:1},TB_SLIDESHOW_ANIMATION_TIME/2,function(){virtualPageManager.triggerVirtualPageLoaded()}),TB_curSlide=e,TB_updateControls(),e+1<TB_slides.length&&i&&TB_slides[TB_curSlide+1].loadSlide(),0<=e-1)&&!i&&TB_slides[TB_curSlide-1].loadSlide()}function TB_updateControls(){var e=$(".rightSlideBtn"),t=$(".leftSlideBtn");1!=e.css("opacity")&&e.stop(!0).animate({opacity:1},TB_SLIDESHOW_ANIMATION_TIME/2),0==TB_curSlide?t.addClass("disabled"):t.hasClass("disabled")&&t.removeClass("disabled"),$(".content_pag span").text("PHOTO "+(TB_curSlide+1)+"/"+TB_slides.length),TB_setNavLinks()}function TB_incrementSlide(){var e,t=TB_isLegacy?"gallery":"slideshows";return TB_curSlide==TB_slides.length-1?1<=$("#hiddenLastArticle").length?window.location.href=$("#hiddenLastArticle").val():window.location.href="/content/"+t+"/"+TB_articleUrlName+"/ls":(t=Math.min(TB_curSlide+1,TB_slides.length-1)+1,e=TB_isLegacy&&1<t?"/content/gallery/"+TB_articleUrlName+"/p"+TB_photoIds[t-2]:null,virtualPageManager.goto(t,e)),!1}function TB_decrementSlide(){var e=Math.max(TB_curSlide-1,0)+1,t=TB_isLegacy&&1<e?"/content/gallery/"+TB_articleUrlName+"/p"+TB_photoIds[e-2]:null;return virtualPageManager.goto(e,t),!1}function TB_getSlideIndexOf(e){return parseInt(e.attr("class").replace("slide",""))}function TB_setNavLinks(){var e=TB_isLegacy?"gallery":"slideshows";TB_curSlide+1<TB_slides.length?$(".rightSlideBtn").parent().attr("href","/content/"+e+"/"+TB_articleUrlName+(TB_isLegacy?"/p"+TB_photoIds[TB_curSlide]:"")+"/page"+(TB_curSlide+2)):$(".rightSlideBtn").parent().attr("href","/content/"+e+"/"+TB_articleUrlName+"/ls"),0==TB_curSlide?$(".leftSlideBtn").parent().attr("href","#"):1==TB_curSlide?$(".leftSlideBtn").parent().attr("href","/content/"+e+"/"+TB_articleUrlName):$(".leftSlideBtn").parent().attr("href","/content/"+e+"/"+TB_articleUrlName+(TB_isLegacy?"/p"+TB_photoIds[TB_curSlide-2]:"")+"/page"+TB_curSlide)}function TB_refreshAds(){console.log("TB_Slideshow refresh ads"),audienceScienceInit();var e=$(window).scrollTop(),t=[],i=e<$(".headerAd").offset().top+$(".headerAd").height()/2,e=e<$(".gall_ad").offset().top+$(".gall_ad").height()/2;gptAds.gpt_970x90_728x90.clearTargeting("gwd"),gptAds.gpt_300x250a.clearTargeting("gwd"),gptAds.gpt_300x250b.clearTargeting("gwd"),"1"==readCookie("ssArbitrage")?googletag.pubads().refresh():(i?gptAds.gpt_970x90_728x90.clearTargeting("pos"):gptAds.gpt_970x90_728x90.setTargeting("pos","Z"),t.push(gptAds.gpt_970x90_728x90),e&&t.push(gptAds.gpt_300x250a),t.push(gptAds.gpt_300x250b),googletag.pubads().clear(t)&&(t.push(gptAds.gpt_600x250),googletag.pubads().refresh(t))),TB_ssnsl%5==0?(TB_ssnsl=1,SSNewsletter.init({id:"#ssnewsletter",email:"#t_email"})):($("#ssnewsletter").html(""),TB_ssnsl++),TB_lastAdRefreshTime=(new Date).getTime(),TB_refreshAds_handle=$("body").hasClass("fullscreen-slideshow")?(console.log("set another timeout"),setTimeout(TB_refreshAds,TB_AD_REFRESH_TIME_IN_FULLSCREEN)):(console.log("clear timeout"),null)}
1function TB_adResized(){var e=$(".headerAd").height(),t=$(".headerAd").css("position");console.log("TB_adResized new height",e,"position",t),0<e&&("fixed"!=t&&"absolute"!=t||$(".headerAd").next().height(e),setTimeout(function(){var e=$(".headerAd").css("position");console.log("TB_adResized change done new position",e),"absolute"==e&&(e=$(".headerAd").offset().top-71,$(window).scrollTop()>e)&&(console.log("TB_adResized animating scrollTop to",e),$("html,body").animate({scrollTop:e},700))},100))}function audienceScienceInit(){}TB_isLegacy||virtualPageManager.redirectPaginationToNoHash(),virtualPageManager.bindVirtualPageChangeEvent(TB_gotoSlide),virtualPageManager.bindVirtualPageLoadedEvent(function(){(new Date).getTime()-TB_lastAdRefreshTime>TB_MIN_AD_REFRESH_WAIT_TIME&&!$("body").hasClass("fullscreen-slideshow")?TB_refreshAds():$("body").hasClass("fullscreen-slideshow")&&null==TB_refreshAds_handle&&(console.log("TB_Slideshow set timeout"),TB_refreshAds_handle=setTimeout(TB_refreshAds,TB_AD_REFRESH_TIME_IN_FULLSCREEN)),$("#slide_holder img").tbPinit()}),virtualPageManager.bindVirtualPageChangeEvent(function(){slug=location.pathname,slugpage=slug.replace(/\/page([0-9]+)/g,""),virtualPageview(slugpage+"/page"+(TB_curSlide+1),!1),loadZedo();var t=TB_slides[TB_curSlide].src;
1$(function(){var e=$("li.ptbutton a").attr("href").split("&"),e=(e[1]="media="+t,e.join("&"));$("li.ptbutton a").attr("href",e)})}),$(document).ready(function(){if(0<$("#slideOptin").length){var e=readCookie("pv");if(e&&""!=e)return!1;$("#slideOptin form").submit(function(){var e=$("#emailIn").val();submitMsOptin(e,{DAILY_SCOOP:"Y",SAMPLES:"Y",DEDICATED:"Y"},"DONTMISS",function(e){$("#slideOptin").css("background-color","#272727"),$("#slideOptin").html('<div class="tymsg" style="display: block;"><p class="ty">Thank you</p><p class="fs">for subscribing.</p></div>'),createCookie("pv",1,0)},function(e){$("#optError").addClass("errorTxt").html(e)})}),$("#emailIn").bind("focus",function(){$("#emailIn").val(""),$("#emailIn").css("color","black"),$("#emailIn").unbind("focus")}),showOptin()}var t;0<$(".sponsor-disclaimer").length&&(t=$(".sponsor-disclaimer"),setInterval(function(){var e;t.is(":hover")||(e=t.scrollTop(),t.scrollTop(e+2))},100)),"/ls"!==window.location.pathname.substr(window.location.pathname.length-3)&&(TB_isLegacy&&0<window.location.hash.length&&(1<(e=parseInt(window.location.hash.substring(1),10))?window.location.href="/content/gallery/"+TB_articleUrlName+"/p"+TB_photoIds[e-2]+"/page"+e:1==e&&(window.location.href="/content/gallery/"+TB_articleUrlName)),virtualPageManager.pollForHashChange(500),TB_initSlideshow()),$("#sv").click(function(){return $("html, body").animate({scrollTop:$(".sv").offset().top},700),!1})}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.ResizeSensor=t()}("undefined"!=typeof window?window:this,function(){var T,o;return"undefined"==typeof window?null:(T=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,20)},(o=function(t,m){var i;function _(){var i,o,n=[];this.add=function(e){n.push(e)},this.call=function(e){for(i=0,o=n.length;i<o;i++)n[i].call(this,e)},this.remove=function(e){var t=[];for(i=0,o=n.length;i<o;i++)n[i]!==e&&t.push(n[i]);n=t},this.length=function(){return n.length}}"undefined"!=typeof ResizeObserver?(i=new ResizeObserver(function(e){n(e,function(e){m.call(this,{width:e.contentRect.width,height:e.contentRect.height})})}),void 0!==t&&n(t,function(e){i.observe(e)})):n(t,function(e){var t,i,o,n,s,a,r,d,l,c,u,h,p,f,g;i=m,(t=e)&&(t.resizedAttached?t.resizedAttached.add(i):(t.resizedAttached=new _,t.resizedAttached.add(i),t.resizeSensor=document.createElement("div"),t.resizeSensor.dir="ltr",t.resizeSensor.className="resize-sensor",i="position: absolute; left: 0; top: 0; transition: 0s;",t.resizeSensor.style.cssText=e="position: absolute; left: -10px; top: -10px; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden; max-width: 100%",t.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+e+'"><div style="'+i+'"></div></div><div class="resize-sensor-shrink" style="'+e+'"><div style="'+i+' width: 200%; height: 200%"></div></div>',t.appendChild(t.resizeSensor),"absolute"!==(i=(e=window.getComputedStyle(t))?e.getPropertyValue("position"):null)&&"relative"!==i&&"fixed"!==i&&(t.style.position="relative"),o=t.resizeSensor.childNodes[0],n=o.childNodes[0],s=t.resizeSensor.childNodes[1],d=S(t),l=d.width,c=d.height,u=!0,p=function(){n.style.width="100000px",n.style.height="100000px",o.scrollLeft=1e5,o.scrollTop=1e5,s.scrollLeft=1e5,s.scrollTop=1e5},t.resizeSensor.resetSensor=f=function(){if(u){if(!o.scrollTop&&!o.scrollLeft)return p(),void(h=h||T(function(){h=0,f()}));u=!1}p()},g=function(){r=0,a&&(l=d.width,c=d.height,t.resizedAttached)&&t.resizedAttached.call(d)},(e=function(e,t,i){e.attachEvent?e.attachEvent("on"+t,i):e.addEventListener(t,i)})(o,"scroll",i=function(){d=S(t),(a=d.width!==l||d.height!==c)&&!r&&(r=T(g)),f()}),e(s,"scroll",i),T(f)))}),this.detach=function(e){"undefined"!=typeof ResizeObserver?n(t,function(e){i.unobserve(e)}):o.detach(t,e)},this.reset=function(){t.resizeSensor.resetSensor()}}).reset=function(e,t){n(e,function(e){e.resizeSensor.resetSensor()})},o.detach=function(e,t){n(e,function(e){!e||e.resizedAttached&&"function"==typeof t&&(e.resizedAttached.remove(t),e.resizedAttached.length())||e.resizeSensor&&(e.contains(e.resizeSensor)&&e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached)})},o);function n(e,t){var i=Object.prototype.toString.call(e),i="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"[object Object]"===i||"undefined"!=typeof jQuery&&e instanceof jQuery||"undefined"!=typeof Elements&&e instanceof Elements,o=0,n=e.length;if(i)for(;o<n;o++)t(e[o]);else t(e)}function S(e){var t;return e.getBoundingClientRect?(t=e.getBoundingClientRect(),{width:Math.round(t.width),height:Math.round(t.height)}):{width:e.offsetWidth,height:e.offsetHeight}}}),function(e){e.addTest("positionfixed",function(){var e,t,i,o,n,s=navigator.userAgent;
1return!s.match(/android [0-2]/i)&&!s.match(/(iphone|ipad|ipod).+(OS [0-4])/i)&&(t=(s=document.createElement("div")).cloneNode(!1),i=!1,n=(o=document.body||(i=!0,document.documentElement.appendChild(document.createElement("body")))).style.cssText,o.style.cssText="padding:0;margin:0",s.style.cssText="position:fixed;top:42px",o.appendChild(s),o.appendChild(t),e=s.offsetTop!==t.offsetTop,o.removeChild(s),o.removeChild(t),o.style.cssText=n,i&&document.documentElement.removeChild(o),e)})}(Modernizr,window),function(I){I.isScrollToFixed=function(e){return!!I(e).data("ScrollToFixed")},I.ScrollToFixed=function(e,t){var s,a,i,o,r=this,d=(r.$el=I(e),r.el=e,r.$el.data("ScrollToFixed",r),!1),l=r.$el,c=0,u=0,h=-1,p=-1,n=null;function f(){var e=r.options.limit;return e?"function"==typeof e?e.apply(l):e:0}function g(){return"fixed"===s}function m(){return"absolute"===s}function _(){return!(g()||m())}function T(){var e;g()||(e=l[0].getBoundingClientRect(),n.css({display:l.css("display"),width:e.width,height:e.height,float:l.css("float")}),cssOptions={"z-index":r.options.zIndex,position:"fixed",top:-1==r.options.bottom?y():"",bottom:-1==r.options.bottom?"":r.options.bottom,"margin-left":"0px"},r.options.dontSetWidth||(cssOptions.width=l.css("width")),l.css(cssOptions),l.addClass(r.options.baseClassName),""<r.options.bodyClassName.length&&I("body").addClass(r.options.bodyClassName),r.options.className&&l.addClass(r.options.className),s="fixed")}function S(){var e=f(),t=u;r.options.removeOffsets&&(t="",e-=c),cssOptions={position:"absolute",top:e,left:t,"margin-left":"0px",bottom:""},r.options.dontSetWidth||(cssOptions.width=l.css("width")),l.css(cssOptions),s="absolute"}function A(){_()||(p=-1,n.css("display","none"),l.css({"z-index":o,width:"",position:a,left:"",top:i,"margin-left":""}),l.removeClass(r.options.baseClassName),""<r.options.bodyClassName.length&&I("body").removeClass(r.options.bodyClassName),r.options.className&&l.removeClass(r.options.className),s=null)}function v(e){e!=p&&(l.css("left",u-e),p=e)}function y(){var e=r.options.marginTop;return e?"function"==typeof e?e.apply(l):e:0}function B(){var e,t,i,o,n;I.isScrollToFixed(l)&&!l.is(":hidden")&&(t=_(),(e=d)?_()&&(c=l.offset().top,u=l.offset().left):(l.trigger("preUnfixed.ScrollToFixed"),A(),l.trigger("unfixed.ScrollToFixed"),p=-1,c=l.offset().top,u=l.offset().left,r.options.offsets&&(u+=l.offset().left-l.position().left),-1==h&&(h=u),s=l.css("position"),d=!0,-1!=r.options.bottom&&(l.trigger("preFixed.ScrollToFixed"),T(),l.trigger("fixed.ScrollToFixed"))),i=I(window).scrollLeft(),o=I(window).scrollTop(),n=f(),r.options.minWidth&&I(window).width()<r.options.minWidth||r.options.maxWidth&&I(window).width()>r.options.maxWidth?_()&&e||(x(),l.trigger("preUnfixed.ScrollToFixed"),A(),l.trigger("unfixed.ScrollToFixed")):-1==r.options.bottom?0<n&&o>=n-y()?t||m()&&e||(x(),l.trigger("preAbsolute.ScrollToFixed"),S(),l.trigger("unfixed.ScrollToFixed")):o>=c-y()?(g()&&e||(x(),l.trigger("preFixed.ScrollToFixed"),T(),p=-1,l.trigger("fixed.ScrollToFixed")),v(i)):_()&&e||(x(),l.trigger("preUnfixed.ScrollToFixed"),A(),l.trigger("unfixed.ScrollToFixed")):0<n?o+I(window).height()-l.outerHeight(!0)>=n-(y()||-(r.options.bottom||0))?g()&&(x(),l.trigger("preUnfixed.ScrollToFixed"),("absolute"===a?S:A)(),l.trigger("unfixed.ScrollToFixed")):(g()||(x(),l.trigger("preFixed.ScrollToFixed"),T()),v(i),l.trigger("fixed.ScrollToFixed")):v(i))}function x(){var e=l.css("position");"absolute"==e?l.trigger("postAbsolute.ScrollToFixed"):"fixed"==e?l.trigger("postFixed.ScrollToFixed"):l.trigger("postUnfixed.ScrollToFixed")}function b(e){(l.is(":visible")?(d=!1,B):A)()}function w(e){window.requestAnimationFrame?requestAnimationFrame(B):B()}r.init=function(){r.options=I.extend({},I.ScrollToFixed.defaultOptions,t),console.log(t),console.log(r.options),o=l.css("z-index"),r.$el.css("z-index",r.options.zIndex),n=I("<div />"),s=l.css("position"),a=l.css("position"),l.css("float"),i=l.css("top"),_()&&r.$el.after(n),I(window).bind("resize.ScrollToFixed",b),I(window).bind("scroll.ScrollToFixed",w),"ontouchmove"in window&&I(window).bind("touchmove.ScrollToFixed",B),r.options.preFixed&&l.bind("preFixed.ScrollToFixed",r.options.preFixed),r.options.postFixed&&l.bind("postFixed.ScrollToFixed",r.options.postFixed),r.options.preUnfixed&&l.bind("preUnfixed.ScrollToFixed",r.options.preUnfixed),r.options.postUnfixed&&l.bind("postUnfixed.ScrollToFixed",r.options.postUnfixed),r.options.preAbsolute&&l.bind("preAbsolute.ScrollToFixed",r.options.preAbsolute),r.options.postAbsolute&&l.bind("postAbsolute.ScrollToFixed",r.options.postAbsolute),r.options.fixed&&l.bind("fixed.ScrollToFixed",r.options.fixed),r.options.unfixed&&l.bind("unfixed.ScrollToFixed",r.options.unfixed),r.options.spacerClass&&n.addClass(r.options.spacerClass),l.bind("resize.ScrollToFixed",function(){n.height(l.height())}),l.bind("scroll.ScrollToFixed",function(){l.trigger("preUnfixed.ScrollToFixed"),A(),l.trigger("unfixed.ScrollToFixed"),B()}),l.bind("detach.ScrollToFixed",function(e){(e=(e=e)||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1,l.trigger("preUnfixed.ScrollToFixed"),A(),l.trigger("unfixed.ScrollToFixed"),I(window).unbind("resize.ScrollToFixed",b),I(window).unbind("scroll.ScrollToFixed",w),l.unbind(".ScrollToFixed"),n.remove(),r.$el.removeData("ScrollToFixed")}),b()},r.init()},I.ScrollToFixed.defaultOptions={marginTop:0,limit:0,bottom:-1,zIndex:1e3,baseClassName:"scroll-to-fixed-fixed",bodyClassName:""},I.fn.scrollToFixed=function(e){return this.each(function(){new I.ScrollToFixed(this,e)})}}(jQuery),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var i=this.length>>>0;for(t=+t||0,(t=Math.abs(t)===1/0?0:t)<0&&(t+=i)<0&&(t=0);t<i;t++)if(this[t]===e)return t;return-1});var STACKER=function(){function r(e){return getCssAsInt(e,"padding-top")+e.he
1ight()+getCssAsInt(e,"padding-bottom")}var d={_stackedSelectors:[],_stackGapTops:[],_stackTop:0};return d.stack=function(e,t,i){var o=$(e),n=(arguments.length<2&&(t=0),arguments.length<3&&(i={}),d._stackedSelectors.indexOf(e));if(-1<n){for(var s=d._stackTop=0;s<n;s++)d._stackTop+=r($(d._stackedSelectors[s]))+d._stackGapTops[s];for(i.topOffset=d._stackTop+t,o.scrollToFixed("recalc",i),d._stackGapTops[n]=t,d._stackTop+=r(o)+t,s=n+1;s<d._stackedSelectors.length;s++){var a=$(d._stackedSelectors[s]);a.scrollToFixed("recalc",{topOffset:d._stackTop+d._stackGapTops[s]}),d._stackTop+=r(a)+d._stackGapTops[s]}}else d._stackTop+=t,i.topOffset=d._stackTop,o.scrollToFixed(i),d._stackedSelectors.push(e),d._stackGapTops.push(t),d._stackTop+=r(o)},d.unstack=function(e){var t=$(e),i=0;t.scrollToFixed("remove");for(var o=d._stackedSelectors.length;0<=o;o--)if(d._stackedSelectors[o]===e){d._stackedSelectors.splice(o,1),i=d._stackGapTops[o],d._stackGapTops.splice(o,1);break}d._stackTop-=r(t)+i},d}(),SSNewsletter=new function(){this._options={track_label:"Slideshow_newsletter",custom_list:"BUYINGGUIDEOPTIN"},this.init=function(e){this._options=$.extend(this._options,e),$(SSNewsletter._options.id).submit(function(e){return!1}),this.checkViewed()||this.getNewsletter()},this.checkViewed=function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){for(var i=e[t];" "==i.charAt(0);)i=i.substring(1,i.length);if(0==i.indexOf("ssnewsletter="))return!0}return!1},this.validation=function(){return!!/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test($(this._options.email).val())||(alert("Ooops, you did not enter a valid e-mail address."),!1)},this.gaTracking=function(e){},this.getNewsletter=function(){$.ajax({type:"GET",url:"/newsletter/ssnewsletter",dataType:"json",data:this._options,success:function(e){"success"==e.status&&(SSNewsletter.dataObj=e.options,$(SSNewsletter._options.id).html(e.content),GAManager.ga("send","event",SSNewsletter._options.track_label,"Impression",e.options.name,{nonInteraction:1}))},async:!1}).responseText},this.doSubscribe=function(){return this.validation()&&(email=$(this._options.email).val(),$.ajax({type:"GET",dataType:"JSON",url:"/newsletter/",data:"DAILY_SCOOP=Y&DEDICATED=Y&SAMPLES=Y&email="+email+"&"+SSNewsletter._options.custom_list+"="+SSNewsletter.dataObj.optin_source,success:function(e){"success"==e.status?SSNewsletter.subscribedComplete():alert(e.message)},async:!1}).responseText),!1},this.subscribedComplete=function(){$("#nsl_image").attr("src",this.dataObj.thankyou),"1"===this.dataObj.mobile?($("#t_email_form").hide(),GAManager.ga("send","event",SSNewsletter._options.track_label,"Subscribed",this.dataObj.ga_tracking,{nonInteraction:1})):($("<iframe />",{name:"nsl_pdf",id:"nsl_pdf",src:"/newsletter/ssnewsletter?dl=1&pdf="+this.dataObj.pdf}).appendTo(this._options.id).hide(),$("#t_email_form").html("<br /><p>If your download doesn't start, <br />please <a href=\"/newsletter/ssnewsletter?dl=1&pdf="+this.dataObj.pdf+'">CLICK HERE</a> </p>'),GAManager.ga("send","event",SSNewsletter._options.track_label,"Download",this.dataObj.ga_tracking,{nonInteraction:1}),createCookie("ssnewsletter","1",365)),$("p.privacy").show()}},AMAZON_API=($(document).ready(function(){$(".headerAd").scrollToFixed({limit:$("#bannerBottom").offset().top-$(".headerAd").height(),marginTop:68,bodyClassName:"fixedleaderboard"})}),function(){var c={},u={},h={},s={},p={},a=0,f=[];return c.getCachedLowestPrice=function(e){return h[e]},c.setCachedLowestPrice=function(e,t){h[e]=t},c.getCachedResults=function(e){return u[e]},c.recordAmazonClick=function(e,t){t=u[e][t];$.ajax("/reviews/product/"+e+"/amazon_product_click",{type:"POST",dataType:"json",data:t})},c.reportAmazonClick=function(e,t){},c.loadAmazonProducts=function(t){var e;u[t]||!p[t]&&(e=!1,$(document).ready(function(){e=!0}),f.push(t),p[t]=!0,e||1==f.length)&&$(document).ready(function(){var l=f.slice(0);$.ajax("/reviews/product/0/amazon_products",{dataType:"json",data:{prods:l.join(",")},type:"POST"}).done(function(e){var t,i=0,o=0;if(e&&0<e.length)for(i=0;i<e.length;i++)if(t=e[i].productId,e[i].result&&"success"==e[i].status&&0<e[i].result.length){for(var n=e[i].result,s=99999999,a=0,r=Math.min(n.length,4);a<r;a++){var d=+n[a].price;1<=d&&(s=Math.min(s,d)),n[a].price=d.toFixed(2)}for(s=(s=99999999==s?0:s).toFixed(2),h[t]=s,u[t]=n,c._dispatchProductsLoadedEvent(t,n,s),o=0;o<f.length;o++)if(f[o]==t){f.splice(o,1),delete p[t];break}}else c._dispatchProductsLoadedEvent(t,null,0),c._removeFromQueue(t);else for(i=0;i<l.length;i++)t=l[i],c._dispatchProductsLoadedEvent(t,null,0),c._removeFromQueue(t)}).fail(function(){for(var e=0;e<l.length;e++)t=l[e],c._dispatchProductsLoadedEvent(t,null,0),c._removeFromQueue(t)})})},c._removeFromQueue=function(e){delete p[e];for(var t=0;t<f.length;t++)if(f[t]==e)return f.splice(t,1),void delete p[e]},c.bindProductsLoadedListener=function(e,t){if(u[e])t(e,u[e],h[e]);else{for(var i=(i=s[e])||[],o=0;o<i.length;o++)if(t===i[o])return;i.push(t),s[e]=i}},c.unbindProductsLoadedListener=function(){for(var e=(e=s[productId])||[],t=0;t<e.length;t++)if(listener===e[t])return e.splice(t,1),void(s[productId]=e)},c._dispatchProductsLoadedEvent=function(e,t,i){var o=s[e];if(o){for(var n=0;n<o.length;n++)o[n](e,t,i);s[e]={}}},c.showBuyComparison=function(e){if(!a){var t='<div id="prodPop"><a class="close">X</a><h1>BUY IT NOW</h1><div class="buy_inner">',i=u[e];
1if(a=e,i)for(var o=0,n=Math.min(4,i.length);o<n;o++)t+=c._getAmazonProductHtml(i[o],o);else t+="<img class='buyLoading' src='//images.totalbeauty.com/img/v2013/loader.gif' />";t+="<div class='clearfix'></div></div>",i&&4<i.length&&(t+="<a href='#' class='showMore' onclick='javascript: AMAZON_API._showAllBuyProducts(); return false;'>SEE ALL "+Math.min(30,i.length)+" MATCHES</a>"),t+="</div>",$.prompt(t,{opacity:"0.85",classes:"buy_popup"}),$("a.close").click(function(){$.prompt.close(),a=0}),i||(c.bindProductsLoadedListener(e,function(e,t,i){if(t&&0!=t.length){for(var o=[],n=0,s=Math.min(4,t.length);n<s;n++)o.push(c._getAmazonProductHtml(t[n],n));var a=o.join("");4<t.length&&(a=(a+="<div class='clearfix'></div>")+"<a href='#' class='showMore' onclick='javascript: AMAZON_API._showAllBuyProducts(); return false;'>SEE ALL "+Math.min(30,t.length)+" MATCHES</a>"),$(".buy_inner").html(a)}else $(".buy_inner").html("<h1 style='margin-top: 170px;'>No results were found</h1>")}),c.loadAmazonProducts(e))}},c._getAmazonProductHtml=function(e,t){var i,o;return e?(i=0<e.price?"$"+(+e.price).toFixed(2):"See Details",o='<div class="amazon_prod'+((t+1)%4==0?" amazon_prod4":"")+'">',(o=(o=(o+='<table><tr><td><a rel="nofollow" onclick="javascript: AMAZON_API.reportAmazonClick(event, '+e.productId+"); AMAZON_API.recordAmazonClick("+e.productId+", "+t+');" target="_blank" href="'+e.link+'"><img src="'+e.img+'" nopin="nopin"/></a></td></tr></table>')+'<p><a rel="nofollow" onclick="javascript: AMAZON_API.reportAmazonClick(event, '+e.productId+"); AMAZON_API.recordAmazonClick("+e.productId+", "+t+');" class="title" target="_blank" href="'+e.link+'">'+e.name+"</a>")+'<span><a rel="nofollow" onclick="javascript: AMAZON_API.reportAmazonClick(event, '+e.productId+"); AMAZON_API.recordAmazonClick("+e.productId+", "+t+');" target="_blank" href="'+e.link+'">'+i+"</a></span></p>")+'<a rel="nofollow" onclick="javascript: AMAZON_API.reportAmazonClick(event, '+e.productId+"); AMAZON_API.recordAmazonClick("+e.productId+", "+t+');" target="_blank" href="'+e.link+'" class="button">Buy Now</a></div>'):""},c._showAllBuyProducts=function(){var o,n;a&&(o=$("#prodPop .buy_inner"),n=u[a],$(".showMore").remove(),$("#prodPop").animate({width:665,height:500},300,function(){o.addClass("inner_expanded");for(var e=4,t=Math.min(30,n.length);e<t;e++){var i=$(c._getAmazonProductHtml(n[e],e));i.css("opacity",0),o.append(i),i.animate({opacity:1},1e3),(e+1)%4==0&&o.append("<div class='clearfix'></div>")}}))},c}());function initSmallBuyButton(o,e,t,i,n){var s={productId:e,amazonUpdate:i};0<n.length&&(s.buyLink=n),$(o).tinyBuyButton(s),t=t.toFixed(2),4==arguments.length?$(o).tinyBuyButton("expandBuyButton",t):0<t?(AMAZON_API.setCachedLowestPrice(e,t),$(o).tinyBuyButton("setPrice",t)):(AMAZON_API.bindProductsLoadedListener(e,function(e,t,i){t?$(o).tinyBuyButton("setPrice",i):$(o).tinyBuyButton("hideBuyButton")}),AMAZON_API.loadAmazonProducts(e))}!function(a){var t={init:function(t){var i=a.extend({},t);return this.each(function(){var e=a(this);e.data("buyButton")||a(this).data("buyButton",{target:e,settings:i,productId:t.productId,buyLink:t.buyLink,amazonUpdate:t.amazonUpdate,animateTime:1500})})},expandBuyButton:function(s){return this.each(function(){var e=a(this),t=e.data("buyButton"),i=e.find("a"),o=e.find("p"),n="";if(e.addClass("expanded"),0==t.amazonUpdate){if(!t.buyLink)return void e.remove();0<s&&(n="$"+s),i.attr("href",t.buyLink)}else n=0<s?"AS LOW AS $"+s:"See Details";o.text(n),i.html("Buy Now"),t.buyLink||i.click(function(){return AMAZON_API.showBuyComparison(t.productId),!1}),animateTime=""==n?(buttonContWidth=125,t.animateTime):(buttonContWidth=270,.75*t.animateTime),e.animate({width:buttonContWidth},animateTime),i.animate({width:80},.75*t.animateTime,function(){""==n?o.hide():o.css({display:"block",opacity:0}
1).animate({opacity:1},.25*t.animateTime),t.buyLink?i.css({width:"110px"}):i.css({width:"130px"})}),t.buyLink||AMAZON_API.getCachedResults(t.productId)||e.bind("mouseover",function(){e.unbind("mouseover"),AMAZON_API.loadAmazonProducts(t.productId)})})},hideBuyButton:function(){return this.each(function(){var e=a(this),t=e.data("buyButton");e.animate({height:0},t.animateTime/2,function(){e.remove()})})}};a.fn.buyButton=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void a.error("Method "+e+" does not exist on jQuery.buyButton"):t.init.apply(this,arguments)}}(jQuery),function(a){var t={init:function(t){var i=a.extend({},t);return this.each(function(){var e=a(this);e.data("tinyBuyButton")||a(this).data("tinyBuyButton",{target:e,settings:i,productId:t.productId,buyLink:t.buyLink,amazonUpdate:t.amazonUpdate,animateTime:1500})})},expandBuyButton:function(e){},setPrice:function(s){return this.each(function(){var e,t=a(this),i=t.data("tinyBuyButton"),o=t.find("a"),n=t.find("p");i.buyLink?(e="Browse Shop",o.attr("href",i.buyLink)):e=0<s?"AS LOW AS $"+s:"See Details",n.text(e),i.buyLink||o.click(function(){return AMAZON_API.showBuyComparison(i.productId),!1}),i.buyLink||AMAZON_API.getCachedResults(i.productId)||t.bind("mouseover",function(){t.unbind("mouseover"),AMAZON_API.loadAmazonProducts(i.productId)})})},hideBuyButton:function(){return this.each(function(){var e=a(this),t=e.data("tinyBuyButton");e.animate({height:0},t.animateTime/2,function(){e.remove()})})}};a.fn.tinyBuyButton=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void a.error("Method "+e+" does not exist on jQuery.tinyBuyButton"):t.init.apply(this,arguments)}}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.