var _expandTimeouts=new Array();var _expandTries=new Array();var _goBackAnimating=false;
jQuery(document).ready(function(){jQuery(document).bind("click",document_click);jQuery("a.goBackToButton").each(function(){jQuery(this).bind("click",goBackClick);
});});function document_click(A){dropDownManager.hidePrevious(A);hidePreviousTooltip(A);
hideAllGoBackToLists(A);}function attachToTree(){jQuery("div.cmsPostingTreeview a").each(function(){if(this.href.indexOf("TreeView_ToggleNode")>=0||this.href.indexOf("TreeView_PopulateNode")>=0){this.onclick=expandClick;
}});jQuery("div.cmsPostingTreeview div").css("height","auto");}function expandClick(){var A=this.id.substring(0,this.id.lastIndexOf("n"))+"t"+this.id.substring(this.id.lastIndexOf("n")+1)+"i";
var B=document.getElementById(A).href.replace("http://");B="/Channels"+B.substring(B.indexOf("/"),B.lastIndexOf("/")+1);
if(this.href.indexOf("TreeView_PopulateNode")<0){UI.Services.AjaxWebService.UpdateCmsTreeNodeState(B);
}else{_expandTimeouts[this.id+"Nodes"]=setInterval('attachToChildNodes("'+this.id+'Nodes");',50);
_expandTries[this.id+"Nodes"]=0;}}function attachToChildNodes(B){var A=jQuery("#"+B+" a");
if(A.length>0){A.each(function(){if(this.href.indexOf("TreeView_ToggleNode")>=0||this.href.indexOf("TreeView_PopulateNode")>=0){this.onclick=expandClick;
}});jQuery("#"+B+" div").css("height","auto");clearInterval(_expandTimeouts[B]);}else{if(_expandTries[B]>=200){clearInterval(_expandTimeouts[B]);
}_expandTries[B]++;}}function showToolTip(B){var A=jQuery(B).children("div.toolTip").get(0);
jQuery(A).show();_previousToolTip=A;}function hideToolTip(A){jQuery(A).children("div.toolTip").hide();
}function hidePreviousTooltip(B){var C=false;var A=null;if(B){A=B.target?B.target:B.srcElement;
if(A){C=jQuery(A).parents("span.toolTipContainer").length>0||A.className=="toolTip";
}}if(_previousToolTip&&!C){jQuery(_previousToolTip).hide();}}function toolTipButtonClick(B){var A=jQuery(B).next();
if(A){if(jQuery(A).css("display")=="none"){hidePreviousTooltip();jQuery(A).animate({opacity:"show"});
_previousToolTip=A;}else{_previousToolTip=null;jQuery(A).animate({opacity:"hide"});
}}}function safariTextBoxHandleKey(e,buttonId){if(e.keyCode==13||e.keyCode==3){eval(Url.decode(document.getElementById(buttonId).href.replace("javascript:","")));
e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation();}}}function textBoxHandleKey(B,A){if(!B){B=window.event;
}if(B.keyCode==13||(jQuery.browser.safari&&B.keyCode==3)){document.getElementById(A).focus();
}}function attachTextBoxKeyHandler(B,A){if(document.getElementById(A)&&document.getElementById(B)){if(jQuery.browser.safari&&document.getElementById(A).tagName.toLowerCase()=="a"){document.getElementById(B).onkeypress=function(C){safariTextBoxHandleKey(C,A);
};}else{if(jQuery.browser.safari){document.getElementById(B).onkeypress=function(C){textBoxHandleKey(C,A);
};}else{document.getElementById(B).onkeydown=function(C){textBoxHandleKey(C,A);};
}}}}var dropDownEvents={init:function(id,itemContainerFixedWidth){var dropDown=document.getElementById(id);
if(dropDown){if(dropDown.getAttribute("onchange")!=""||!dropDown.getAttribute("onchange")){dropDown.onchange=function(){eval(dropDown.getAttribute("onchange"));
};}dropDown.items=jQuery(dropDown).find("a");dropDown.itemContainer=jQuery(dropDown).children("div.itemContainer")[0];
dropDown.textContainer=jQuery(dropDown).find("div.textContainer")[0];dropDown.textBox=jQuery(dropDown).find("input")[1];
dropDown.itemContainerFixedWidth=itemContainerFixedWidth;dropDown.value=function(val){if(val){var item=dropDown.getItem(val);
if(item){jQuery(dropDown.textBox).val(val.replace("&amp;","&").replace("&lt;","<").replace("&gt;",">"));
jQuery(dropDown).find("input")[0].value=(item.getAttribute("Value").replace("&amp;","&").replace("&lt;","<").replace("&gt;",">"));
}}return jQuery(dropDown).find("input").val();};dropDown.searchText="";dropDown.numSearches=0;
dropDown.searchTimeout=null;dropDown.searchText="";dropDown.close=dropDownEvents.close;
dropDown.open=dropDownEvents.open;dropDown.focus=dropDownEvents.focus;dropDown.onclick=dropDownEvents.click;
dropDown.onkeydown=dropDownEvents.keyDown;dropDown.getNext=dropDownEvents.getNext;
dropDown.getPrev=dropDownEvents.getPrev;dropDown.getItem=dropDownEvents.getItem;dropDown.updateSelected=dropDownEvents.updateSelected;
dropDown.clearSearch=dropDownEvents.clearSearch;dropDown.initSize=dropDownEvents.initSize;
dropDown.safariItemClicking=false;jQuery(dropDown.itemContainer).find("a").bind("click",dropDownEvents.itemClick);
jQuery(dropDown.itemContainer).find("a").bind("mouseover",{dropDown:dropDown},dropDownEvents.itemMouseOver);
dropDown.selectedItem=dropDown.getItem(dropDown.textBox.value);if(jQuery.browser.mozilla&&jQuery.browser.version=="1.7.8"){jQuery(dropDown).bind("mouseover",function(){var s=this.itemContainer.scrollTop;
this.itemContainer.childNodes[1].focus();this.itemContainer.scrollTop=s;});}dropDown.initSize();
dropDownManager.dropDownArray[dropDownManager.dropDownArray.length]=dropDown;}},click:function(A){if(!A){A=window.event;
}if(this.safariItemClicking){this.safariItemClicking=false;return true;}if(this!=dropDownManager.previousDropDown){if(dropDownManager.previousDropDown){dropDownManager.previousDropDown.close();
}this.open();if(this.selectedItem!=null){jQuery(this).find("div.itemContainer a").removeClass();
jQuery(this.selectedItem).addClass("hover");}dropDownManager.previousDropDown=this;
}else{this.close();}A.cancelBubble=true;if(A.stopPropagation){A.stopPropagation();
}return false;},initSize:function(){jQuery(this.itemContainer).css("display","block");
if(parseInt(jQuery(this.textBox).css("width").replace("px",""))==0){jQuery(this.textBox).css("width",this.itemContainer.clientWidth+"px");
if(this.itemContainerFixedWidth){jQuery(this.itemContainer).css("width",this.itemContainer.clientWidth+20+"px");
}}columns=jQuery(this.itemContainer).children("div.column");if(!this.columnsInitialized&&columns.length>0){columnHeight=0;
totalColumnWidth=0;for(var A=0;A<columns.length;A++){totalColumnWidth+=columns[A].clientWidth;
if(jQuery(columns[A]).height()>columnHeight){columnHeight=jQuery(columns[A]).height();
}}columns.height(columnHeight);jQuery(this.itemContainer).css("width",totalColumnWidth+(columns.length-1)+(jQuery.browser.msie?8*columns.length:0));
}if(this.itemContainer!=null){if(this.itemContainer.clientHeight>270&&jQuery(this).children("div.noScroll").length==0){jQuery(this.itemContainer).css("height",270);
if(jQuery.browser.safari){jQuery(this.itemContainer).css("overflow","auto");}else{jQuery(this.itemContainer).css("overflow-y","auto");
}if(this.itemContainerFixedWidth){jQuery(this.itemContainer).css("overflow-x","hidden");
}}}if(jQuery.browser.msie){jQuery(this.textBox).css("font-size","11px");jQuery(this.textBox).css("margin","-1px 0");
jQuery(this.itemContainer).children("a").css("font",jQuery(this.textBox).css("font"));
jQuery(this.itemContainer).children("a").css("font-family",jQuery(this.textBox).css("font-family"));
jQuery(this.itemContainer).children("a").css("font-size","11px");jQuery(this.itemContainer).children("a").css("font-style",jQuery(this.textBox).css("font-style"));
jQuery(this.itemContainer).children("a").css("font-variant",jQuery(this.textBox).css("font-variant"));
if(jQuery.browser.version<7){if(jQuery(this.itemContainer).children("div.column").length==0){jQuery(this.itemContainer).css("width",(this.itemContainer.clientWidth-17)+"px");
}jQuery(this.items).css("width","100%");}else{if(!this.itemContainerFixedWidth){jQuery(this.itemContainer).css("width",jQuery(this.itemContainer).width()+20);
}}}if(jQuery.browser.safari&&!this.itemContainerFixedWidth){jQuery(this.itemContainer).css("width",jQuery(this.itemContainer).width()+20);
}if(jQuery(this.itemContainer).width()<jQuery(this.textBox).width()){jQuery(this.itemContainer).css("width",jQuery(this.textBox).width()+20+(jQuery.browser.msie?2:0));
}jQuery(this.itemContainer).css("display","none");},itemClick:function(B){var A=jQuery(this).parents(".dropDown")[0];
if(typeof(A)!="undefined"){if(this.getAttribute("href")==null||this.getAttribute("href")==""){A.updateSelected(this);
}A.close();if(jQuery.browser.safari){A.safariItemClicking=true;}B.cancelBubble=true;
if(B.stopPropagation){B.stopPropagation();}}},itemMouseOver:function(B){var A=B.data.dropDown;
jQuery(A).find("a").removeClass("hover");jQuery(this).addClass("hover");},keyDown:function(C){if(!C){C=window.event;
}key=C.keyCode?C.keyCode:C.which;if(key==38&&this.selectedItem!=null){if(prev=this.getPrev()){this.updateSelected(prev);
}return false;}else{if(key==40&&this.selectedItem!=null){if(next=this.getNext()){this.updateSelected(next);
}return false;}else{if(key!=13){if(key==9){this.updateSelected(this.selectedItem);
this.close();return true;}if((key>=48&&key<=57)||(key>=65&&key<=90)||(key>=96&&key<=105)){if(key>=96&&key<=105){key-=48;
}character=String.fromCharCode(key);if(this.searchText!=character){if(this.searchText.length==0){this.searchText=character;
}else{this.searchText+=character;}this.numSearches=0;}else{if(this.searchText=character){this.numSearches++;
}}var A=null;var B=this.numSearches;var D=0;for(i=0;i<this.items.length;i++){if(this.items[i].innerHTML.substring(0,this.searchText.length).toUpperCase()==this.searchText.toUpperCase()&&B>=0){A=this.items[i];
D=i;B--;}}clearTimeout(this.searchTimeout);this.searchTimeout=setTimeout("document.getElementById('"+this.id+"').clearSearch()",500);
if(A){this.updateSelected(A);}}else{if((key>=16&&key<=20)||(key>=112&&key<=123)){return true;
}}}}}return false;},clearSearch:function(){this.searchText="";this.numSearches=0;
},focus:function(){jQuery(this.textBox).focus();},open:function(){jQuery(this.itemContainer).show();
this.focus();},close:function(){jQuery(this.itemContainer).hide();dropDownManager.previousDropDown=null;
},updateSelected:function(A){if(A){jQuery(this.itemContainer).find("a").removeClass();
jQuery(A).addClass("hover");this.value(A.innerHTML);this.focus();this.selectedItem=A;
if(!(jQuery.browser.msie)&&this.onchange){this.onchange();}else{if(this.textBox.onchange){this.textBox.onchange();
}}}},getItem:function(A){if(this.items){for(i=0;i<this.items.length;i++){if(jQuery(this.items[i]).html()==A){return this.items[i];
}}return this.items[0];}},getNext:function(){var A=null;if(this.items){for(i=0;i<this.items.length-1;
i++){if(this.items[i]==this.selectedItem){A=this.items[i+1];}}}return A;},getPrev:function(){var A=null;
if(this.items){for(i=1;i<this.items.length;i++){if(this.items[i]==this.selectedItem){A=this.items[i-1];
}}}return A;}};function options(A){var B=new Array();B.add=function(C){if(C instanceof Option){this[this.length]=C;
jQuery(A.itemContainer).append("<a value='"+C.value+"'>"+C.text+"</a>");}};B.load=function(C){if(C){this[this.length]=C;
}};return B;}dropDownManager={previousDropDown:null,dropDownArray:new Array(),hidePrevious:function(A){if(!A){A=window.event;
}if(A.target){if(dropDownManager.previousDropDown!=null&&A.target.className!="optGroup"){dropDownManager.previousDropDown.close();
dropDownManager.previousDropDown=null;}}else{if(A.srcElement){if(dropDownManager.previousDropDown!=null&&A.srcElement.className!="optGroup"){dropDownManager.previousDropDown.close();
dropDownManager.previousDropDown=null;}}}},getDropDown:function(A){for(i=0;i<this.dropDownArray.length;
i++){if(this.dropDownArray[i].id==A){return this.dropDownArray[i];}}}};function resizeBrands(){jQuery("div.brandSlot div.row").each(function(){var C=0;
var A=0;var B=0;var D=0;jQuery(this).children().width(jQuery(this).width()/jQuery(this).children().length-15);
jQuery(this).children().each(function(){D=jQuery(this).find("div.name").height();
if(D>A){A=D;}D=jQuery(this).find("div.description").height();if(D>C){C=D;}D=jQuery(this).find("div.status").height();
if(D>B){B=D;}});jQuery(this).find("div.name").height(A);jQuery(this).find("div.description").height(C);
jQuery(this).find("div.status").height(B);});jQuery("div.brandSlot div.row").each(function(){jQuery(this).children("div.brandTile:last").addClass("brandTileLast");
});}function resizeHomeTiles(){var A=new Array(0,0,0);var B=0;jQuery("div.featured div.tileRow").each(function(){var C=jQuery(this).height();
var G=80;for(i=0;i<jQuery(this).children("div.tile").length;i++){var E=jQuery(this).children("div.tile")[i];
var D=jQuery(E).children("div#ProductContainer").children("div")[1];var F=0;if(D!=undefined){if(D.clientHeight>G){F+=(D.clientHeight-G);
}if(F>C){C=F;}}}A[B]=C;B++;});B=0;jQuery("div.featured div.tileRow").each(function(){jQuery(this).children("div.tile,div.htmltile").height(5+A[B]);
B++;});}function resizeTiles(C){var A=new Array(0,0,0);var B=0;jQuery(C+" div.tileRow").each(function(){var D=jQuery(this).height();
var H=80;for(i=0;i<jQuery(this).children("div.tile").length;i++){var F=jQuery(this).children("div.tile")[i];
var E=jQuery(F).children("div#ProductContainer").children("div")[1];var G=0;if(E!=undefined){if(E.clientHeight>H){G+=(E.clientHeight-H);
}if(G>D){D=G;}}}A[B]=D;B++;});B=0;jQuery(C+" div.tileRow").each(function(){jQuery(this).children("div.tile,div.htmltile").height(5+A[B]);
B++;});}function resizeSearchFeaturedResults(){jQuery(".featuredResultsControl").each(function(){var A=jQuery(this).height()-6;
var B=jQuery(this).children("div.verticalBorder");for(var C=0;C<B.length;C++){jQuery(B[C]).height(A);
}});jQuery("#searchControl").css("z-index","2");}function resizeReportPanels(){var A=0;
jQuery(".reportPanel").each(function(){if(jQuery(this).height()>A){A=jQuery(this).height();
}});A+=6;jQuery(".reportPanel").each(function(){jQuery(this).height(A);});}function makeSameHeight(B){var A=0;
jQuery(B).each(function(){var C=this.clientHeight;if(C>A){A=C;}});jQuery(B).each(function(){jQuery(this).height(A);
});}function goBackClick(){var A=document.getElementById(this.parentNode.id+"_list");
var B=this;if(A&&!_goBackAnimating){_goBackAnimating=true;if(jQuery(A).css("display")=="block"){jQuery(A).animate({opacity:"hide",width:"hide",height:"hide"},function(){_goBackAnimating=false;
});}else{if(A.childNodes.length==0){jQuery(A).animate({opacity:"show",width:"show",height:"show"},function(){_goBackAnimating=false;
showLoadingDiv("recentHistory",A,"Loading");UI.Services.AjaxWebService.GetRecentHistory(function(D){for(var F=0;
F<D.length;F++){var C=document.createElement("div");C.className="historyLine";var E=document.createElement("span");
E.innerHTML="&raquo; ";jQuery(C).append(E);var G=document.createElement("a");G.innerHTML=D[F].Key.length>50?D[F].Key.substring(0,50)+"...":D[F].Key;
G.href=D[F].Value;jQuery(C).append(G);jQuery(A).prepend(C);}jQuery(A).children("div.loadingDiv").animate({opacity:"hide"},500);
});});}else{jQuery(A).animate({opacity:"show",width:"show",height:"show"},function(){_goBackAnimating=false;
});}}}}function hideAllGoBackToLists(B){var A=B.target?B.target:B.sourceElement;if(A.className.indexOf("goBackToButton")<0){jQuery("div.goBackToContainer").each(function(){var C=document.getElementById(this.id+"_list");
if(C){jQuery(C).hide();}});}}var balloonManager={timeout:null,show:function(A,C,B){var D=document.getElementById("balloon_"+A);
if(typeof(B)=="string"){B=document.getElementById(B);}if(jQuery(B).css("position")=="static"){jQuery(B).css("position","relative");
}if(_alertImage==""){clearTimeout(balloonManager.timeout);balloonManager.timeout=setTimeout('balloonManager.show("'+A+'", "'+C.replace(/\"/g,'\\"')+'", "'+B.id+'");',100);
return;}if(!D){D=document.createElement("div");D.id="balloon_"+A;jQuery(D).css("position","absolute");
jQuery(D).addClass("balloon");jQuery(D).css("top",10);jQuery(D).css("display","none");
jQuery(D).html('<div class="balloonTop clear"><div class="balloonTopLeft"></div><div class="balloonTopBorder"></div><div class="balloonTopRight"></div></div><div class="balloonBody"><img src="'+_alertImage+'" /><div class="balloonMessage">'+C+'</div><div class="balloonArrow"></div><div class="closeButton">x</div></div><div class="balloonBottom clear"><div class="balloonBottomLeft"></div><div class="balloonBottomBorder"></div><div class="balloonBottomRight"></div></div>');
jQuery(D).find("div.closeButton").bind("click",function(){jQuery(D).animate({opacity:"hide"},350);
});jQuery(B).append(D);jQuery(D).css("left",-(parseInt(jQuery(D).width())));jQuery(D).animate({opacity:"show"},350);
}else{jQuery(D).find("div.balloonMessage").html(C);if(jQuery.browser.safari){jQuery(D).find("div.balloonBody").css("height",jQuery(D).find("div.balloonBody").height());
}if(jQuery(D).css("display")=="none"){jQuery(D).animate({opacity:"show"},350);}else{balloonManager.blink(A);
}}},hide:function(A){jQuery("#balloon_"+A).hide();},blink:function(A){var B=document.getElementById("balloon_"+A);
if(B){jQuery(B).find("img").animate({opacity:"hide"},500);jQuery(B).find("img").animate({opacity:"show"},500);
jQuery(B).find("img").animate({opacity:"hide"},500);jQuery(B).find("img").animate({opacity:"show"},500);
}}};function killEvent(A){if(!A){A=window.event;}return false;}var autoExpandLabel={init:function(B){var D=jQuery(B).find("div.longContainer")[0];
var C=new rolloverAnimation(B,D);if(jQuery.browser.msie){jQuery(D).show();var A=0;
jQuery(D).children().each(function(){A+=jQuery(this).width();});jQuery(D).css("width",A);
jQuery(D).hide();}jQuery(D).css("left",jQuery("#orderinfoWarrantiesRebates").offset().left+jQuery("#orderinfoWarrantiesRebates div.orderDetails").width()/2-(jQuery(D).width()+10)/2);
C.showAnimation={opacity:"show"};C.hideAnimation={opacity:"hide"};}};var breadCrumbs={init:function(A){jQuery("#"+A).find("div.item").each(function(){var B=this;
var C=new rolloverAnimation(this,jQuery(this).children("ul")[0]);C.showAnimation={opacity:"show",height:"show"};
C.hideAnimation={opacity:"hide",height:"hide"};C.hoverDelay=250;C.hoverOutDelay=250;
C.hoverAnimationLength=250;C.hoverOutAnimationLength=250;C.onPreHover=function(){jQuery(B).addClass("selectedItem");
};C.onPreHoverOut=function(){jQuery(B).removeClass("selectedItem");};});}};