var xOp7Up,xOp6Dn,xIE4Up,xIE4,xIE5,xNN4,xUA=navigator.userAgent.toLowerCase();if(window.opera){var i=xUA.indexOf("opera");if(i!=-1){var v=parseInt(xUA.charAt(i+6));xOp7Up=v>=7;xOp6Dn=v<7}}else{if(navigator.vendor!="KDE"&&document.all&&xUA.indexOf("msie")!=-1){xIE4Up=parseFloat(navigator.appVersion)>=4;xIE4=xUA.indexOf("msie 4")!=-1;xIE5=xUA.indexOf("msie 5")!=-1}else{if(document.layers){xNN4=true}}}xMac=xUA.indexOf("mac")!=-1;function xAddEventListener(e,eT,eL,cap){if(!(e=xGetElementById(e))){return}eT=eT.toLowerCase();if((!xIE4Up&&!xOp7Up)&&e==window){if(eT=="resize"){window.xPCW=xClientWidth();window.xPCH=xClientHeight();window.xREL=eL;xResizeEvent();return}if(eT=="scroll"){window.xPSL=xScrollLeft();window.xPST=xScrollTop();window.xSEL=eL;xScrollEvent();return}}var eh="e.on"+eT+"=eL";if(e.addEventListener){e.addEventListener(eT,eL,cap)}else{if(e.attachEvent){e.attachEvent("on"+eT,eL)}else{eval(eh)}}}function xGetElementById(a){if(typeof(a)!="string"){return a}if(document.getElementById){a=document.getElementById(a)}else{if(document.all){a=document.all[a]}else{a=null}}return a}function xClientHeight(){var a=0;if(xOp6Dn){a=window.innerHeight}else{if(document.compatMode=="CSS1Compat"&&!window.opera&&document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientHeight}else{if(document.body&&document.body.clientHeight){a=document.body.clientHeight}else{if(xDef(window.innerWidth,window.innerHeight,document.width)){a=window.innerHeight;if(document.width>window.innerWidth){a-=16}}}}}return a}function xClientWidth(){var a=0;if(xOp6Dn){a=window.innerWidth}else{if(document.compatMode=="CSS1Compat"&&!window.opera&&document.documentElement&&document.documentElement.clientWidth){a=document.documentElement.clientWidth}else{if(document.body&&document.body.clientWidth){a=document.body.clientWidth}else{if(xDef(window.innerWidth,window.innerHeight,document.height)){a=window.innerWidth;if(document.height>window.innerHeight){a-=16}}}}}return a}function xResizeEvent(){if(window.xREL){setTimeout("xResizeEvent()",250)}var a=xClientWidth(),b=xClientHeight();if(window.xPCW!=a||window.xPCH!=b){window.xPCW=a;window.xPCH=b;if(window.xREL){window.xREL()}}}function xScrollEvent(){if(window.xSEL){setTimeout("xScrollEvent()",250)}var a=xScrollLeft(),b=xScrollTop();if(window.xPSL!=a||window.xPST!=b){window.xPSL=a;window.xPST=b;if(window.xSEL){window.xSEL()}}}function xRemoveEventListener(e,eT,eL,cap){if(!(e=xGetElementById(e))){return}eT=eT.toLowerCase();if((!xIE4Up&&!xOp7Up)&&e==window){if(eT=="resize"){window.xREL=null;return}if(eT=="scroll"){window.xSEL=null;return}}var eh="e.on"+eT+"=null";if(e.removeEventListener){e.removeEventListener(eT,eL,cap)}else{if(e.detachEvent){e.detachEvent("on"+eT,eL)}else{eval(eh)}}}function xResizeTo(c,a,b){xWidth(c,a);xHeight(c,b)}function xScrollLeft(c,b){var d=0;if(!xDef(c)||b||c==document||c.tagName.toLowerCase()=="html"||c.tagName.toLowerCase()=="body"){var a=window;if(b&&c){a=c}if(a.document.documentElement&&a.document.documentElement.scrollLeft){d=a.document.documentElement.scrollLeft}else{if(a.document.body&&xDef(a.document.body.scrollLeft)){d=a.document.body.scrollLeft}}}else{c=xGetElementById(c);if(c&&xNum(c.scrollLeft)){d=c.scrollLeft}}return d}function xScrollTop(c,b){var d=0;if(!xDef(c)||b||c==document||c.tagName.toLowerCase()=="html"||c.tagName.toLowerCase()=="body"){var a=window;if(b&&c){a=c}if(a.document.documentElement&&a.document.documentElement.scrollTop){d=a.document.documentElement.scrollTop}else{if(a.document.body&&xDef(a.document.body.scrollTop)){d=a.document.body.scrollTop}}}else{c=xGetElementById(c);if(c&&xNum(c.scrollTop)){d=c.scrollTop}}return d}function xDef(){for(var a=0;a<arguments.length;++a){if(typeof(arguments[a])=="undefined"){return false}}return true}function xShow(a){return xVisibility(a,1)}function xHide(a){return xVisibility(a,0)}function xVisibility(b,a){if(!(b=xGetElementById(b))){return null}if(b.style&&xDef(b.style.visibility)){if(xDef(a)){b.style.visibility=a?"visible":"hidden"}return b.style.visibility}return null}function xImgRollSetup(g,d,a){var f,j;for(var c=3;c<arguments.length;++c){j=arguments[c];if(f=xGetElementById(j)){f.xIOU=g+j+a;f.xIOO=new Image();f.xIOO.src=g+j+d+a;f.onmouseout=b;f.onmouseover=h}}function b(k){if(this.xIOU){this.src=this.xIOU}}function h(k){if(this.xIOO&&this.xIOO.complete){this.src=this.xIOO.src}}}function mainNavRolls(){xImgRollSetup("/rugsusa/img/nav2/","_ov",".gif","home","rugs","tap","slip","clock","mirror","light","art","bed","hb")}xAddEventListener(window,"load",mainNavRolls);function showPop(a){e=xGetElementById(a);if(e){xShow(e)}}function hidePop(a){e=xGetElementById(a);if(e){xHide(e)}};
