(function(b){var a={cutoutPath:"/lib/img/products/cutouts/",cutoutExt:".jpg",cutoutId:"#cutout",rotatorBase:"/lib/packages/rotator"};b.fn.liv=function(f){var c={init:function(g){this.init(g)},test:function(){this.test()},banners:function(){this.rotateBanners()},searchHelper:function(h,g){this.searchHelper(h,g)},zoom:function(){this.productZoom()},swatches:function(){this.productSwatches()}};var d={zoomWidth:285,zoomHeight:399,xOffset:10,yOffset:0,position:"right",lens:false,fadeoutSpeed:"fast",showPreload:true,preloadText:"Loading photo",title:false};this.init=function(g){b.each(g,function(h,j){a[h]=j})};this.test=function(){return true};this.rotateBanners=function(){if(b(this).size()>1){try{b.getScript(a.rotatorBase+"/js/custom.wt-rotator.js",function(){b.fn.wtBannerInit(a.rotatorBase)})}catch(g){return false}return true}};this.searchHelper=function(h,g){b(this).bind({focus:function(){b(this).attr("size",g)},blur:function(){b(this).attr("size",h)}})};this.productZoom=function(){var h=b(this);var j;var k;var i=b(".zoom");if(h.size()>0||i.size()>0){i.jqzoom(d);h.find("a").removeAttr("href").css("cursor","pointer");h.find("img").bind({click:function(){j=b(this);k=b("#lifestyle-full");k.attr("src",j.attr("src"));k.parent().attr("href",j.attr("src").replace("products/","products/large/"))},mouseenter:function(){b(this).click()}})}if(h.size()>0){if(b.browser.msie!=true||b.browser.msie&&b.browser.version.slice(0,1)>8){var g=b("<link>");g.attr({type:"text/css",rel:"stylesheet",href:"/lib/css/scroller.css"});b("head").append(g);b.getScript("/lib/js/scroller.js")}else{b(".scroll-bar-wrap.ui-widget-content").remove();b(".scroll-pane").css("margin-bottom","1em");b(".scroll-content").css("width","430px")}return true}return false};this.productSwatches=function(){var j=b(this);var g=b(a.cutoutId);var i;var h;if(j.size()==0){return false}j.find("img").bind({click:function(){i=b(this);h=i.attr("id");i.css("cursor","pointer");g.attr("src",a.cutoutPath+h+a.cutoutExt);g.parent().attr("href",a.cutoutPath+"/large/"+h+a.cutoutExt)},mouseenter:function(){b(this).click()},mouseleave:function(){b(this).css("cursor","default")}})};if(c[f]){return c[f].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof f==="object"||!f){return c.init.apply(this,arguments)}else{b.error("Method "+f+" does not exist on jQuery.liv")}}}})(jQuery);try{$("document").ready(function(){var a=$("#q");$("#q").liv("searchHelper",20,40);$("#banner-list li").liv("banners");$("#lifestyle-thumbnails").liv("zoom");$("#swatches").liv("swatches");$("button, input:submit").button();$(".noscript, noscript").remove()})}catch(e){};
