var nLandingOffset=0;(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(q){var o=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;while(o&&o!=this){try{o=o.parentNode}catch(q){o=this}}if(o==this){return false}var g=jQuery.extend({},q);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(q.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);$(document).ready(function(){var a=$("div#body_middle_lower").height();if($.browser.msie&&$.browser.version==="6.0"){$("div#body_middle_lower").css({height:(a)+"px"})}else{$("div#body_middle_lower").css({"min-height":(a)+"px"})}if($("div#landingPage").length>0){nLandingOffset=$("div#landingPage").height();$("#productDetailCont").css({top:nLandingOffset+"px"})}$("#productDetailCont").show();$("select#sortby").show();$(".productCont").hoverIntent(function(){if(!$(this).hasClass("firstLine")){$("#productDetailCont").css({"margin-top":"-50px"})}else{$("#productDetailCont").css({"margin-top":"76px"})}pInfo=$(this).attr("id").split("--");$("#lrgImage").attr({src:"/pws/images/catalogue/products/"+pInfo[2]+"/large/"+pInfo[2]+"_1.jpg"});$(".productDetail").load("/pws/AJProductDetails.ice?layout=productquickinfo.layout&ProductID="+pInfo[0].substring(1)+"&colour="+pInfo[1]);if(getPageScroll()>(50+nLandingOffset)){$("#productDetailCont").css({top:(getPageScroll()-10)+"px"})}else{$("#productDetailCont").css({top:nLandingOffset+"px"})}},function(){$("#lrgImage").attr({src:"/pws/images/prod_default.gif"});$(".productDetail").html("")})});function getPageScroll(){var a;if(self.pageYOffset){a=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop}else{if(document.body){a=document.body.scrollTop}}}return a}function productSwap(b,a){$("#lrgImage").attr({src:b});$(".productDetail").load("/pws/AJProductDetails.ice?layout=productquickinfo.layout&ProductID="+a);if(getPageScroll()>50){$("#productDetailCont").css({top:(getPageScroll()-10)+"px"})}else{$("#productDetailCont").css({top:"0px"})}}function productReset(){$("#lrgImage").attr({src:"/pws/images/prod_default.gif"});$(".productDetail").html("")}function productSwap1(b,a){$("#lookBookDescription2").css({display:"block"});if($("#mainImagemens").length>0){$("#mainImagemens").css({display:"inline"})}else{$("#mainImagewomens").css({display:"inline"})}$("#lrgImage1").attr({src:b});$(".lookbookProductDetail").hide();$("#productContent"+a).show()}function passSelectValues(){};