NS4=document.layers?true:false;var focussed=false,code=0;function QuickSearch(event){if(event){if(NS4)code=event.which;else code=event.keyCode;if(code==13)return QuickSearchNoParam()}}function QuickSearchNoParam(){var obj=document.getElementById("ctl00_E2wHeader1_E2wSearchCatalog1_searchText");if(obj)if(obj.value.replace(/^\s+|\s+$/g,"").length<3){var msg="Please enter at least 3 characters";if(document.getElementById("ctl00_E2wHeader1_E2wSearchCatalog1_lbl1_reqdCharsMsg"))msg=document.getElementById("ctl00_E2wHeader1_E2wSearchCatalog1_lbl1_reqdCharsMsg").innerText;alert(msg);if(code==13)return false}else{var baseUrl=document.getElementById("ctl00_hdnBaseUrl").value;document.location.href=baseUrl+"/e2wItemQuickSearch.aspx?searchText="+obj.value;return false}}function AddToCartFromCatalog(e){var code = (e.keyCode ? e.keyCode : e.which); if (code == 13){__doPostBack('ctl00$CustomerMainContent$e2wItemLayout1$lnkbtn1_addtocart','');}}function OpenWindowPrint(url,strWinAttribute){window.open(url,"new",strWinAttribute);return false}function OpenWindow(url){popupwin=window.open(url,"info","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=300,left=200,top=200");popupwin.focus()}function OpenWindow(url,name,atr){if(atr="undefined")atr="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=300,left=200,top=200";window.open(url,name,atr);return}function OpenSecurityCode(){var url="SecurityCode.aspx",name="SecurityCode",attr="height=370,width=400,left=200, top=190, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0";window.open(url,name,attr);return}function OpenWindowChat(url){var strWinAttribute="'left=100,top=75,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,fullscreen=0,width=750,height=400'";window.open(url,"new",strWinAttribute,true);return false}function OpenSearchItemID(control){var url="e2wItemIDSearch.aspx?tn="+control;window.open(url,"Testing","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=400,left=350,top=200");return}function OpenItemIDSearch(control,control2){var url="e2wItemIDSearch.aspx?tn="+control+"&tn2="+control2;window.open(url,"Testing","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=400,left=350,top=200");return false}function processingConfig(divId,btnDivId){if(divId!=null){var divProcessing=document.getElementById(divId);if(divProcessing!=null)divProcessing.style.visibility="visible"}if(btnDivId!=null){var btnDiv=document.getElementById(btnDivId);if(btnDiv!=null)btnDiv.style.visibility="hidden"}}function Count(text,allowedLength){var maxlength=new Number(allowedLength);if(text.value.length>maxlength)text.value=text.value.substring(0,maxlength);else return}function hide(targetElement,sourceElement){targetElement.style.display="block";sourceElement.style.display="none"}function CheckAndLogin(e){var code=e.keyCode?e.keyCode:e.which;if(code==13)if(!focussed)document.getElementById("ctl00_E2wHeader1_btn1_login")&&document.getElementById("ctl00_E2wHeader1_btn1_login").click()}function FocusOnLink(value){if(value=="1")focussed=true;else focussed=false}function isNumberKey(evt){var charCode=evt.which?evt.which:event.keyCode;if((charCode<48 && charCode!=8)|charCode>57)return false;else return true}function ProcessingWait(modal){InitDialogs(modal);setTimeout("UpdateSWF()","60");Loading(true)}function UpdateSWF(){var baseUrl=document.getElementById("ctl00_hdnBaseUrl").value,params={version:9.115,useExpressInstall:false,fixedAttributes:{scale:"noscale",salign:"TL"}},newswf=new YAHOO.widget.SWF("swfContainer",baseUrl+"/images/processing.swf",params)}function InitDialogs(modal){var baseUrl=document.getElementById("ctl00_hdnBaseUrl").value;DialogBox_Loading=new YAHOO.widget.Panel("waitBox",{fixedcenter:true,modal:modal,visible:true,width:"258px",close:false,draggable:true});DialogBox_Loading.setBody('<div id="swfContainer" style="width:252px;height:130px"></div><script type="text/javascript">var baseUrl = document.getElementById("ctl00_hdnBaseUrl").value; var params = {version: 9.115, useExpressInstall: false, fixedAttributes: {scale: "noscale", salign: "TL"} }; var newswf = new YAHOO.widget.SWF("swfContainer", "images/processing.swf", params);</script>');DialogBox_Loading.render(document.body)}function Loading(b){if(b==true)DialogBox_Loading.show();else DialogBox_Loading.hide()}(function(){scrollCatalog=function(scrollType,count,autoScroll,mouseoverScroll){if(scrollType=="auto")count>3&&$(autoScroll).jCarouselLite({vertical:true,hoverPause:true,circular:true,visible:3,auto:true,speed:3e3});else if(scrollType=="mouseover"){if(count>3)count=3;$.fn.hoverscroll.params={vertical:true,width:153,height:80*count,arrows:true,arrowsOpacity:.7,debug:false};$(mouseoverScroll).hoverscroll()}}})(jQuery);(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,hoverPause:false,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},o||{});return this.each(function(){var running=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width",div=$(this),ul=$("ul",div),tLi=$("li",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v+1).clone()).append(tLi.slice(0,o.scroll).clone());o.start+=v-1}var li=$("li",ul),itemLength=li.size(),curr=o.start;div.css("visibility","visible");li.css({overflow:"hidden","float":o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"0"});div.css({overflow:"hidden",position:"relative","z-index":"0",left:"0px"});var liSize=o.vertical?height(li):width(li),ulSize=liSize*itemLength,divSize=liSize*v;li.css({width:li.width(),height:li.height()});ul.css(sizeCss,ulSize+"px").css(animCss,-(curr*liSize));div.css(sizeCss,divSize+"px");if(o.btnPrev){$(o.btnPrev).click(function(){return go(curr-o.scroll)});o.hoverPause&&$(o.btnPrev).hover(function(){stopAuto()},function(){startAuto()})}if(o.btnNext){$(o.btnNext).click(function(){return go(curr+o.scroll)});o.hoverPause&&$(o.btnNext).hover(function(){stopAuto()},function(){startAuto()})}o.btnGo&&$.each(o.btnGo,function(i,val){$(val).click(function(){return go(o.circular?o.visible+i:i)})});o.mouseWheel&&div.mousewheel&&div.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll)});var autoInterval;function startAuto(){stopAuto();autoInterval=setInterval(function(){go(curr+o.scroll)},o.auto+o.speed)}function stopAuto(){clearInterval(autoInterval)}if(o.auto){o.hoverPause&&div.hover(function(){stopAuto()},function(){startAuto()});startAuto()}function vis(){return li.slice(curr).slice(0,v)}function go(to){if(!running){o.beforeStart&&o.beforeStart.call(this,vis());if(o.circular)if(to<0){ul.css(animCss,-((curr+tl)*liSize)+"px");curr=to+tl}else if(to>itemLength-v){ul.css(animCss,-((curr-tl)*liSize)+"px");curr=to-tl}else curr=to;else if(to<0||to>itemLength-v)return;else curr=to;running=true;ul.animate(animCss=="left"?{left:-(curr*liSize)}:{top:-(curr*liSize)},o.speed,o.easing,function(){o.afterEnd&&o.afterEnd.call(this,vis());running=false});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$(curr-o.scroll<0&&o.btnPrev||curr+o.scroll>itemLength-v&&o.btnNext||[]).addClass("disabled")}}return false}})};function css(el,prop){return parseInt($.css(el[0],prop))||0}function width(el){return el[0].offsetWidth+css(el,"marginLeft")+css(el,"marginRight")}function height(el){return el[0].offsetHeight+css(el,"marginTop")+css(el,"marginBottom")}})(jQuery);(function($){$.fn.hoverscroll=function(params){if(!params)params={};params=$.extend({},$.fn.hoverscroll.params,params);this.each(function(){var $this=$(this);params.debug&&$.log("[HoverScroll] Trying to create hoverscroll on element "+this.tagName+"#"+this.id);$this.wrap('<div class="listcontainer"></div>');$this.addClass("list");var listctnr=$this.parent();listctnr.wrap('<div class="ui-widget-content hoverscroll"></div>');var ctnr=listctnr.parent();if(params.arrows)if(!params.vertical)listctnr.append('<div class="arrow left"></div>').append('<div class="arrow right"></div>');else listctnr.append('<div class="arrow top"></div>').append('<div class="arrow bottom"></div>');ctnr.width(params.width).height(params.height);listctnr.width(params.width).height(params.height);var size=0;if(!params.vertical){ctnr.addClass("horizontal");$this.children().each(function(){$(this).addClass("item");if($(this).outerWidth)size+=$(this).outerWidth(true);else size+=$(this).width()+parseInt($(this).css("padding-left"))+parseInt($(this).css("padding-right"))+parseInt($(this).css("margin-left"))+parseInt($(this).css("margin-right"))});$this.width(size);params.debug&&$.log("[HoverScroll] Computed content width : "+size+"px");if(ctnr.outerWidth)size=ctnr.outerWidth();else size=ctnr.width()+parseInt(ctnr.css("padding-left"))+parseInt(ctnr.css("padding-right"))+parseInt(ctnr.css("margin-left"))+parseInt(ctnr.css("margin-right"));params.debug&&$.log("[HoverScroll] Computed container width : "+size+"px")}else{ctnr.addClass("vertical");$this.children().each(function(){$(this).addClass("item");if($(this).outerHeight)size+=$(this).outerHeight(true);else size+=$(this).height()+parseInt($(this).css("padding-top"))+parseInt($(this).css("padding-bottom"))+parseInt($(this).css("margin-bottom"))+parseInt($(this).css("margin-bottom"))});$this.height(size);params.debug&&$.log("[HoverScroll] Computed content height : "+size+"px");if(ctnr.outerHeight)size=ctnr.outerHeight();else size=ctnr.height()+parseInt(ctnr.css("padding-top"))+parseInt(ctnr.css("padding-bottom"))+parseInt(ctnr.css("margin-top"))+parseInt(ctnr.css("margin-bottom"));params.debug&&$.log("[HoverScroll] Computed container height : "+size+"px")}var zone={1:{action:"move",from:0,to:.06*size,direction:-1,speed:16},2:{action:"move",from:.06*size,to:.15*size,direction:-1,speed:8},3:{action:"move",from:.15*size,to:.25*size,direction:-1,speed:4},4:{action:"move",from:.25*size,to:.4*size,direction:-1,speed:2},5:{action:"stop",from:.4*size,to:.6*size},6:{action:"move",from:.6*size,to:.75*size,direction:1,speed:2},7:{action:"move",from:.75*size,to:.85*size,direction:1,speed:4},8:{action:"move",from:.85*size,to:.94*size,direction:1,speed:8},9:{action:"move",from:.94*size,to:size,direction:1,speed:16}};ctnr[0].isChanging=false;ctnr[0].direction=0;ctnr[0].speed=1;function checkMouse(x,y){x=x-ctnr.offset().left;y=y-ctnr.offset().top;var pos;if(!params.vertical)pos=x;else pos=y;for(i in zone)if(pos>=zone[i].from&&pos<zone[i].to)if(zone[i].action=="move")startMoving(zone[i].direction,zone[i].speed);else stopMoving()}function setArrowOpacity(){if(!params.arrows)return;var maxScroll,scroll;if(!params.vertical){maxScroll=listctnr[0].scrollWidth-listctnr.width();scroll=listctnr[0].scrollLeft}else{maxScroll=listctnr[0].scrollHeight-listctnr.height();scroll=listctnr[0].scrollTop}var opacity=scroll/maxScroll,limit=params.arrowsOpacity;if(isNaN(opacity))opacity=0;var done=false;if(opacity<=0){$("div.arrow.left, div.arrow.top",ctnr).hide();done=true}if(opacity>=limit||maxScroll<=0){$("div.arrow.right, div.arrow.bottom",ctnr).hide();done=true}if(!done){$("div.arrow.left, div.arrow.top",ctnr).show().css("opacity",opacity>limit?limit:opacity);$("div.arrow.right, div.arrow.bottom",ctnr).show().css("opacity",1-opacity>limit?limit:1-opacity)}}function startMoving(direction,speed){if(ctnr[0].direction!=direction){params.debug&&$.log("[HoverScroll] Starting to move. direction: "+direction+", speed: "+speed);stopMoving();ctnr[0].direction=direction;ctnr[0].isChanging=true;move()}if(ctnr[0].speed!=speed){params.debug&&$.log("[HoverScroll] Changed speed: "+speed);ctnr[0].speed=speed}}function stopMoving(){if(ctnr[0].isChanging){params.debug&&$.log("[HoverScroll] Stoped moving");ctnr[0].isChanging=false;ctnr[0].direction=0;ctnr[0].speed=1;clearTimeout(ctnr[0].timer)}}function move(){if(ctnr[0].isChanging==false)return;setArrowOpacity();var scrollSide;if(!params.vertical)scrollSide="scrollLeft";else scrollSide="scrollTop";listctnr[0][scrollSide]+=ctnr[0].direction*ctnr[0].speed;ctnr[0].timer=setTimeout(function(){move()},50)}ctnr.mousemove(function(e){checkMouse(e.pageX,e.pageY)}).bind("mouseleave",function(){stopMoving()});if(params.arrows)setArrowOpacity();else $(".arrowleft, .arrowright, .arrowtop, .arrowbottom",ctnr).hide()});return this};if(!$.fn.offset)$.fn.offset=function(){this.left=this.top=0;if(this[0]&&this[0].offsetParent){var obj=this[0];do{this.left+=obj.offsetLeft;this.top+=obj.offsetTop}while(obj=obj.offsetParent)}return this};$.fn.hoverscroll.params={vertical:true,width:165,height:200,arrows:false,arrowsOpacity:.7,debug:false};$.log=function(msg){console&&console.log&&console.log(msg)}})(jQuery);(function($){var style=document.createElement("div").style,moz=style["MozBorderRadius"]!==undefined,webkit=style["WebkitBorderRadius"]!==undefined,radius=style["borderRadius"]!==undefined||style["BorderRadius"]!==undefined,mode=document.documentMode||0,noBottomFold=$.browser.msie&&($.browser.version<8&&!mode||mode<8),expr=$.browser.msie&&function(){var div=document.createElement("div");try{div.style.setExpression("width","0+0");div.style.removeExpression("width")}catch(e){return false}return true}();function sz(el,p){return parseInt($.css(el,p))||0}function hex2(s){var s=parseInt(s).toString(16);return s.length<2?"0"+s:s}function gpc(node){while(node){var v=$.css(node,"backgroundColor");if(v&&v!="transparent"&&v!="rgba(0, 0, 0, 0)"){if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return "#"+hex2(rgb[0])+hex2(rgb[1])+hex2(rgb[2])}return v}node=node.parentNode}return "#ffffff"}function getWidth(fx,i,width){switch(fx){case "round":return Math.round(width*(1-Math.cos(Math.asin(i/width))));case "cool":return Math.round(width*(1+Math.cos(Math.asin(i/width))));case "sharp":return Math.round(width*(1-Math.cos(Math.acos(i/width))));case "bite":return Math.round(width*Math.cos(Math.asin((width-i-1)/width)));case "slide":return Math.round(width*Math.atan2(i,width/i));case "jut":return Math.round(width*Math.atan2(width,width-i-1));case "curl":return Math.round(width*Math.atan(i));case "tear":return Math.round(width*Math.cos(i));case "wicked":return Math.round(width*Math.tan(i));case "long":return Math.round(width*Math.sqrt(i));case "sculpt":return Math.round(width*Math.log(width-i-1,width));case "dogfold":case "dog":return i&1?i+1:width;case "dog2":return i&2?i+1:width;case "dog3":return i&3?i+1:width;case "fray":return i%2*width;case "notch":return width;case "bevelfold":case "bevel":return i+1}}$.fn.corner=function(options){if(this.length==0){if(!$.isReady&&this.selector){var s=this.selector,c=this.context;$(function(){$(s,c).corner(options)})}return this}return this.each(function(index){var $this=$(this),o=[$this.attr($.fn.corner.defaults.metaAttr)||"",options||""].join(" ").toLowerCase(),keep=/keep/.test(o),cc=(o.match(/cc:(#[0-9a-f]+)/)||[])[1],sc=(o.match(/sc:(#[0-9a-f]+)/)||[])[1],width=parseInt((o.match(/(\d+)px/)||[])[1])||10,re=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/,fx=(o.match(re)||["round"])[0],fold=/dogfold|bevelfold/.test(o),edges={T:0,B:1},opts={TL:/top|tl|left/.test(o),TR:/top|tr|right/.test(o),BL:/bottom|bl|left/.test(o),BR:/bottom|br|right/.test(o)};if(!opts.TL&&!opts.TR&&!opts.BL&&!opts.BR)opts={TL:1,TR:1,BL:1,BR:1};if($.fn.corner.defaults.useNative&&fx=="round"&&(radius||moz||webkit)&&!cc&&!sc){opts.TL&&$this.css(radius?"border-top-left-radius":moz?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",width+"px");opts.TR&&$this.css(radius?"border-top-right-radius":moz?"-moz-border-radius-topright":"-webkit-border-top-right-radius",width+"px");opts.BL&&$this.css(radius?"border-bottom-left-radius":moz?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",width+"px");opts.BR&&$this.css(radius?"border-bottom-right-radius":moz?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",width+"px");return}var strip=document.createElement("div");$(strip).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:sc||"transparent",borderStyle:"solid"});var pad={T:parseInt($.css(this,"paddingTop"))||0,R:parseInt($.css(this,"paddingRight"))||0,B:parseInt($.css(this,"paddingBottom"))||0,L:parseInt($.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined)this.style.zoom=1;if(!keep)this.style.border="none";strip.style.borderColor=cc||gpc(this.parentNode);var cssHeight=$(this).outerHeight();for(var j in edges){var bot=edges[j];if(bot&&(opts.BL||opts.BR)||!bot&&(opts.TL||opts.TR)){strip.style.borderStyle="none "+(opts[j+"R"]?"solid":"none")+" none "+(opts[j+"L"]?"solid":"none");var d=document.createElement("div");$(d).addClass("jquery-corner");var ds=d.style;bot?this.appendChild(d):this.insertBefore(d,this.firstChild);if(bot&&cssHeight!="auto"){if($.css(this,"position")=="static")this.style.position="relative";ds.position="absolute";ds.bottom=ds.left=ds.padding=ds.margin="0";if(expr)ds.setExpression("width","this.parentNode.offsetWidth");else ds.width="100%"}else if(!bot&&$.browser.msie){if($.css(this,"position")=="static")this.style.position="relative";ds.position="absolute";ds.top=ds.left=ds.right=ds.padding=ds.margin="0";if(expr){var bw=sz(this,"borderLeftWidth")+sz(this,"borderRightWidth");ds.setExpression("width","this.parentNode.offsetWidth - "+bw+'+ "px"')}else ds.width="100%"}else{ds.position="relative";ds.margin=!bot?"-"+pad.T+"px -"+pad.R+"px "+(pad.T-width)+"px -"+pad.L+"px":pad.B-width+"px -"+pad.R+"px -"+pad.B+"px -"+pad.L+"px"}for(var i=0;i<width;i++){var w=Math.max(0,getWidth(fx,i,width)),e=strip.cloneNode(false);e.style.borderWidth="0 "+(opts[j+"R"]?w:0)+"px 0 "+(opts[j+"L"]?w:0)+"px";bot?d.appendChild(e):d.insertBefore(e,d.firstChild)}if(fold&&$.support.boxModel){if(bot&&noBottomFold)continue;for(var c in opts){if(!opts[c])continue;if(bot&&(c=="TL"||c=="TR"))continue;if(!bot&&(c=="BL"||c=="BR"))continue;var common={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:strip.style.borderColor},$horz=$("<div/>").css(common).css({width:width+"px",height:"1px"});switch(c){case "TL":$horz.css({bottom:0,left:0});break;case "TR":$horz.css({bottom:0,right:0});break;case "BL":$horz.css({top:0,left:0});break;case "BR":$horz.css({top:0,right:0});break}d.appendChild($horz[0]);var $vert=$("<div/>").css(common).css({top:0,bottom:0,width:"1px",height:width+"px"});switch(c){case "TL":$vert.css({left:width});break;case "TR":$vert.css({right:width});break;case "BL":$vert.css({left:width});break;case "BR":$vert.css({right:width});break}d.appendChild($vert[0])}}}}})};$.fn.uncorner=function(){(radius||moz||webkit)&&this.css(radius?"border-radius":moz?"-moz-border-radius":"-webkit-border-radius",0);$("div.jquery-corner",this).remove();return this};$.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);(function($){var arrowimages={down:["downarrowclass","images/menu-arrow-down.gif",23],right:["rightarrowclass","images/menu-arrow-right.gif"]},jqueryslidemenu={animateduration:{over:200,out:100},buildmenu:function(menuid,arrowsvar){jQuery(document).ready(function($){var $mainmenu=$("#"+menuid+">ul"),$headers=$mainmenu.find("ul").parent();$headers.each(function(i){var $curobj=$(this),$subul=$(this).find("ul:eq(0)");this._dimensions={w:this.offsetWidth,h:this.offsetHeight,subulw:$subul.outerWidth(),subulh:$subul.outerHeight()};this.istopheader=$curobj.parents("ul").length==1?true:false;$subul.css({top:this.istopheader?this._dimensions.h+"px":0});$curobj.children("a:eq(0)").css(this.istopheader?{paddingRight:arrowsvar.down[2]}:{}).append('<img src="'+(this.istopheader?arrowsvar.down[1]:arrowsvar.right[1])+'" class="'+(this.istopheader?arrowsvar.down[0]:arrowsvar.right[0])+'" style="border:0; display:none;" />');$curobj.hover(function(e){var $targetul=$(this).children("ul:eq(0)");this._offsets={left:$(this).offset().left,top:$(this).offset().top};var menuleft=this.istopheader?0:this._dimensions.w;menuleft=this._offsets.left+menuleft+this._dimensions.subulw>$(window).width()?this.istopheader?-this._dimensions.subulw+this._dimensions.w:-this._dimensions.w:menuleft;$targetul.queue().length<=1&&$targetul.css({left:menuleft+"px",width:this._dimensions.subulw+"px"}).slideDown(jqueryslidemenu.animateduration.over)},function(e){var $targetul=$(this).children("ul:eq(0)");$targetul.slideUp(jqueryslidemenu.animateduration.out)})});$mainmenu.find("ul").css({display:"none",visibility:"visible"})})}};jqueryslidemenu.buildmenu("ctl00_E2wHeader1_E2wTopMenuCustomer1_Menu1",arrowimages)})(jQuery)
