MACYS.namespace("MACYS.util");MACYS.namespace("MACYS.util.Dom");MACYS.util.Dom.transparentLayerId="MACYS_OverlayTransparentLayer";MACYS.util.Dom.showTransparentLayer=function(E,A,C){if(!E||typeof E!="number"){E=10}if(!A||typeof A!="string"){A="#FFF"}if(!C||typeof C!="number"){C=80}if(C<0||C>100){C=80}var D=YAHOO.util.Dom.get(this.transparentLayerId);if(!D){D=document.body.insertBefore(document.createElement("div"),document.body.firstChild);D.id=this.transparentLayerId}D.style.display="";D.style.zIndex=E;D.style.backgroundColor=A;D.style.height=document.body.scrollHeight+"px";if(YAHOO.env.ua.ie>0){D.style.filter="alpha(opacity="+C+")";if(D.childNodes.length==0){var B=document.createElement("iframe");B.style.height=D.style.height;B.style.zIndex=E-1;B.style.width="100%";B.style.top=B.style.left=B.frameborder=0;B.style.position="absolute";B.style.filter="alpha(opacity=0)";D.appendChild(B)}}else{D.style.opacity=C/100}D.style.position="absolute";D.style.top=0;D.style.left=0;D.style.width="100%"};MACYS.util.Dom.hideTransparentLayer=function(){var A=YAHOO.util.Dom.get(this.transparentLayerId);if(A){A.style.display="none"}};MACYS.util.Dom.getLastChildNode=YAHOO.util.Dom.getLastChild;MACYS.util.Dom.getChildWithClass=function(B,A){var C=YAHOO.util.Dom.getElementsByClassName(A,undefined,B);return C&&C[0]};MACYS.util.Dom.getChildWithId=function(A,C){var B=YAHOO.util.Dom.getElementsBy(function(D){if(D.id==C){return true}return false},undefined,A);return B&&B[0]};MACYS.util.Dom.getChildWithNodeName=function(A,C){var B=MACYS.util.Dom.getChildrenWithNodeName(A,C);return B&&B[0]};MACYS.util.Dom.getChildrenWithNodeName=function(A,B){return YAHOO.util.Dom.getElementsBy(function(){return true},B,A)};MACYS.util.Dom.getNestedChildWithNodeName=function(A,C){var B=YAHOO.util.Dom.getElementsBy(function(){return true},C,A);return B&&B[0]};MACYS.util.Dom.getNestedChildrenWithNodeName=function(A,B){return YAHOO.util.Dom.getElementsBy(function(){return true},B,A)};MACYS.util.Dom.removeNode=function(A){var B=YAHOO.util.Dom.get(A);B.parentNode.removeChild(B)};MACYS.util.Dom.getScrollLeft=function(){return MACYS.util.Dom.f_filterResults(window.pageXOffset?window.pageXOffset:0,document.documentElement?document.documentElement.scrollLeft:0,document.body?document.body.scrollLeft:0)};MACYS.util.Dom.setScrollLeft=function(A){try{window.pageXOffset=A}catch(B){}try{if(document.documentElement){document.documentElement.scrollLeft=A}}catch(B){}try{document.body.scrollLeft=A}catch(B){}};MACYS.util.Dom.getScrollTop=function(){return MACYS.util.Dom.f_filterResults(window.pageYOffset?window.pageYOffset:0,document.documentElement?document.documentElement.scrollTop:0,document.body?document.body.scrollTop:0)};MACYS.util.Dom.setScrollTop=function(A){try{window.pageYOffset=A}catch(B){}try{if(document.documentElement){document.documentElement.scrollTop=A}}catch(B){}try{document.body.scrollTop=A}catch(B){}};MACYS.util.Dom.f_filterResults=function(D,B,A){var C=D?D:0;if(B&&(!C||(C>B))){C=B}return A&&(!C||(C>A))?A:C};MACYS.util.Dom.replaceNodeType=function(C,A){var B=document.createElement(A);B.className=C.className;B.id=C.id;B.href=C.href;B.value=C.value;B.innerHTML=C.innerHTML;C.parentNode.replaceChild(B,C)};