document.write('<table id="vista-buttons.com:id6fmht" width="0" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:4px" title =""><a href="http://www.mycatsheaven.com/cat_furniture_styles" target="_parent" onmouseover=\'xpe("6fmhto");xpshow("6fmht",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("6fmhtc");\'><img id="xpi_6fmht" src="'+vbImgPath+'/bt6fmht_0.gif" name="vb6fmht" width="150" height="24" border="0" alt=":|:  The Collections" /></a></td><td style="padding-right:4px" title =""><a href="http://www.mycatsheaven.com/style" target="_parent" onmouseover=\'xpe("2fmhto");xpshow("2fmht",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("2fmhtc");\'><img id="xpi_2fmht" src="'+vbImgPath+'/bt2fmht_0.gif" name="vb2fmht" width="150" height="24" border="0" alt=":|:  Shop by Style" /></a></td><td style="padding-right:4px" title =""><a href="http://www.mycatsheaven.com/all_products_3" target="_parent" onmouseover=\'xpe("tfmhto");xpshow("tfmht",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("tfmhtc");\'><img id="xpi_tfmht" src="'+vbImgPath+'/bttfmht_0.gif" name="vbtfmht" width="150" height="24" border="0" alt=":|:  Shop by Price" /></a></td><td style="padding-right:4px" title =""><a href="http://www.mycatsheaven.com/specials" target="_parent" onmouseover=\'xpe("pfmhto");xpshow("pfmht",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("pfmhtc");\'><img id="xpi_pfmht" src="'+vbImgPath+'/btpfmht_0.gif" name="vbpfmht" width="150" height="24" border="0" alt=":|:  Specials & Featured " /></a></td><td style="padding-right:4px" title =""><a onmouseover=\'xpe("ofmhto");xpshow("ofmht",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("ofmhtc");\'><img id="xpi_ofmht" src="'+vbImgPath+'/btofmht_0.gif" name="vbofmht" width="150" height="24" border="0" alt=":|:  FAQs & Info" /></a></td></tr></table>');
document.write('<ul id="vbUL_6fmht" class="vbUL6fmht" style="visibility:hidden;"><li><a href="http://www.mycatsheaven.com/modern" target="_parent">Modern&nbsp;Contemporary&nbsp;&nbsp;</a><ul id="vbUL_wfmht" class="vbUL6fmht"><li><a href="http://www.mycatsheaven.com/fatboy" target="_parent">Fatboy&nbsp;Beds&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/store/1957480/product/FR-TREE">Franklin&nbsp;Tower</a></li><li><a href="http://www.mycatsheaven.com/katkabin" title=" " target="_parent">KatKabin&nbsp;Outdoor&nbsp;Condo&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/store/1957480/product/KG-LITTER" target="_parent">Kitty&nbsp;A&nbsp;Go-Go&nbsp;Litter&nbsp;Cover</a></li><li><a href="http://www.mycatsheaven.com/moderncatdesigns" target="_parent">Modern&nbsp;Cat&nbsp;Designs&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/store/1957480/product/MK-LITTER" title="ModKat">ModKat</a></li><li><a href="http://www.mycatsheaven.com/neko_habitat" target="_parent">Neko&nbsp;Habitat</a></li><li><a href="http://www.mycatsheaven.com/pfp" target="_parent">Pre-Fab&nbsp;Pets&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/pet_lounge_studios" target="_parent">Pet&nbsp;Lounge&nbsp;Studios&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/refined_feline" target="_parent">Refine&nbsp;Feline,&nbsp;Lotus&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/rondo" target="_parent">RONDO&nbsp;European&nbsp;Cat&nbsp;Designs&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/squarecat" target="_parent">Square&nbsp;Cat&nbsp;Habitat&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/urban_pet_haus">Urban&nbsp;Pet</a></li><li><a></a></li><li><a href="http://www.mycatsheaven.com/modern" target="_parent">All&nbsp;Modern&nbsp;&nbsp;</a></li></ul></li><li><a href="http://www.mycatsheaven.com/classic" target="_parent">Prestige&nbsp;Designer&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/traditional" target="_parent">Traditional&nbsp;&&nbsp;Custom&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/euro_value" target="_parent">Euro&nbsp;VALUE</a><ul id="vbUL_4fmht" class="vbUL6fmht"><li><a href="http://www.mycatsheaven.com/trixie_special" title="Trixie Pet Speciality">Trixie&nbsp;Pet&nbsp;Speciality</a></li></ul></li><li><a href="http://www.mycatsheaven.com/cat_art_gifts" target="_parent">Cat&nbsp;Art,&nbsp;Gifts&nbsp;&&nbsp;Boutique&nbsp;</a></li></ul><ul id="vbUL_2fmht" class="vbUL6fmht" style="visibility:hidden;"><li><a href="http://www.mycatsheaven.com/trees_towers_gyms" target="_parent">Trees,&nbsp;Towers&nbsp;&&nbsp;Gyms&nbsp;&nbsp;</a><ul id="vbUL_zfmht" class="vbUL6fmht"><li><a href="http://www.mycatsheaven.com/modern_cat_trees" title="Modern Trees   " target="_parent">Modern&nbsp;Trees&nbsp;&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/designer_cat_trees" target="_parent">Designer&nbsp;Trees&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/traditional_cat_trees" target="_parent">Traditional&nbsp;Trees&nbsp;&nbsp;</a><ul id="vbUL_ufmht" class="vbUL6fmht"><li><a href="http://www.mycatsheaven.com/cat_trees_short" target="_parent">Short&nbsp;&&nbsp;Medium&nbsp;Trees&nbsp;:|:&nbsp;20"&nbsp;-&nbsp;36"&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/cat_trees_tall" target="_parent">Tall&nbsp;Trees&nbsp;:|:&nbsp;39"&nbsp;&&nbsp;up&nbsp;&nbsp;</a></li></ul></li><li><a href="http://www.mycatsheaven.com/trees_towers_gyms" target="_parent">All&nbsp;Trees&nbsp;&nbsp;</a></li></ul></li><li><a href="http://www.mycatsheaven.com/litter_cabinets" target="_parent">Litter&nbsp;Center&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/cat_condo" target="_parent">Condos&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/cat_perch" target="_parent">Perches&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/pet_beds" target="_parent">Beds&nbsp;&nbsp;</a><ul id="vbUL_vfmht" class="vbUL6fmht"><li><a href="http://www.mycatsheaven.com/cat_beds" target="_parent">Cat&nbsp;Beds&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/heated_cat_beds" target="_parent">Heated&nbsp;Beds&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/dog_beds" target="_parent">Dog&nbsp;Beds&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/pet_beds" target="_parent">All&nbsp;Beds</a></li></ul></li><li><a href="http://www.mycatsheaven.com/pet_steps" target="_parent">Pet&nbsp;Steps&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/outdoor_cat" title=" " target="_parent">Outdoor&nbsp;Cat&nbsp;Care&nbsp;&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/cat_scratch" target="_parent">Scratchers&nbsp;&&nbsp;Posts&nbsp;&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/pet_feeders" target="_parent">Feeders&nbsp;&&nbsp;Treat&nbsp;Jars&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/carriers_pet_travel" title="Carriers & Travel" target="_parent">Carriers&nbsp;&&nbsp;Travel</a></li></ul><ul id="vbUL_tfmht" class="vbUL6fmht" style="visibility:hidden;"><li><a href="http://www.mycatsheaven.com/price_$100" target="_parent">$100&nbsp;&&nbsp;under&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/price_101-200" target="_parent">$101&nbsp;-&nbsp;$200&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/price_201" target="_parent">$201&nbsp;&&nbsp;up&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/all_products_3" target="_parent">All&nbsp;Products&nbsp;&nbsp;</a></li></ul><ul id="vbUL_pfmht" class="vbUL6fmht" style="visibility:hidden;"><li><img src="'+vbImgPath+'/sm4fmht.gif" alt="Custom & Hand-Crafted    " /><a href="http://www.mycatsheaven.com/custom" target="_parent">Custom&nbsp;&&nbsp;Hand-Crafted&nbsp;&nbsp;&nbsp;&nbsp;</a></li><li><img src="'+vbImgPath+'/smwfmht.gif" alt="Earth-Friendly Green  " /><a href="http://www.mycatsheaven.com/green" target="_parent">Earth-Friendly&nbsp;Green&nbsp;&nbsp;</a></li><li><img src="'+vbImgPath+'/smpfmht.gif" alt="FREE Shipping!  " /><a href="http://www.mycatsheaven.com/free_ship" target="_parent">FREE&nbsp;Shipping!&nbsp;&nbsp;</a></li><li><img src="'+vbImgPath+'/smofmht.gif" alt="Most Popular" /><a href="http://www.mycatsheaven.com/most_popular" target="_parent">Most&nbsp;Popular</a></li><li><img src="'+vbImgPath+'/smtfmht.gif" alt="New Additions  " /><a href="http://www.mycatsheaven.com/new_cat_furniture" target="_parent">New&nbsp;Additions&nbsp;&nbsp;</a></li><li><img src="'+vbImgPath+'/sm6fmht.gif" alt="On Sale  " /><a href="http://www.mycatsheaven.com/onsale" target="_parent">On&nbsp;Sale&nbsp;&nbsp;</a></li><li><img src="'+vbImgPath+'/smzfmht.gif" alt="Quick Ship  " /><a href="http://www.mycatsheaven.com/quick_ship" target="_parent">Quick&nbsp;Ship&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/specials" target="_parent">All&nbsp;Specials&nbsp;&nbsp;</a></li></ul><ul id="vbUL_ofmht" class="vbUL6fmht" style="visibility:hidden;"><li><a href="http://www.mycatsheaven.com/about" target="_parent">About&nbsp;&&nbsp;Contact&nbsp;Us&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/we_care" target="_parent">Because&nbsp;We&nbsp;Care&nbsp;&nbsp;</a></li><li><a href="http://thedailycat.com/mycatsheaven/index.html" target="_parent">Daily&nbsp;Cat&nbsp;:|:&nbsp;Health&nbsp;Care&nbsp;&&nbsp;Articles&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/faq" target="_parent">Frequently&nbsp;Asked&nbsp;Questions&nbsp;&nbsp;</a></li><li><a href="http://www.catviews.com/" target="_parent">MyCats&nbsp;Blog&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/authorize.net" target="_parent">Online&nbsp;Security&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/shipping" target="_parent">Returns&nbsp;&&nbsp;Guarantees&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/shipping" target="_parent">Shipping&nbsp;&&nbsp;Policies&nbsp;&nbsp;</a></li><li><a href="http://www.mycatsheaven.com/tracking" target="_parent">Track&nbsp;Your&nbsp;Order&nbsp;&nbsp;</a></li></ul>');
vb6fmhtn=xppr('6fmht_0.gif');vb6fmhto=xppr('6fmht_1.gif');vb6fmhtc=xppr('6fmht_2.gif');vb2fmhtn=xppr('2fmht_0.gif');vb2fmhto=xppr('2fmht_1.gif');vb2fmhtc=xppr('2fmht_2.gif');vbtfmhtn=xppr('tfmht_0.gif');vbtfmhto=xppr('tfmht_1.gif');vbtfmhtc=xppr('tfmht_2.gif');vbpfmhtn=xppr('pfmht_0.gif');vbpfmhto=xppr('pfmht_1.gif');vbpfmhtc=xppr('pfmht_2.gif');vbofmhtn=xppr('ofmht_0.gif');vbofmhto=xppr('ofmht_1.gif');vbofmhtc=xppr('ofmht_2.gif');var arrowChar='&raquo;';//////////////////////////////////////////////
// Obfuscated by Javascript Obfuscator 4.2  //
// http://javascript-source.com             //
//////////////////////////////////////////////
/******************************************************************************
 *	Copyright (c) 2007-2009, by Vista-buttons.com
 *	Version 2.1i
 *	http://vista-buttons.com
 *****************************************************************************/
var btIdPref="vb";function xppr(im){var i=new Image;i.src=vbImgPath+"bt"+im;return i;}function xpe(id){x=id.substring(0,id.length-1);if(document[btIdPref+x]){document[btIdPref+x].src=eval(btIdPref+id+".src");}}function vistaButtons(params){var xobtn=null;var menuContId="xpMenuCont";var ulIdPref="vbUL_";var O00=document.getElementById;var o0O=oooO=window.ooo0&&O00;var OO0=o0O&&document.readyState;var OOo=document.all&&document.all.item&&!o0O;var oooo=O00&&navigator.appName=="Netscape";document.write("<div id=\""+menuContId+"\" ></div>");var menuCont=document.getElementById(menuContId);var ULs=document.getElementsByTagName("UL");for(var i=0,cnt=ULs.length;i<cnt;i++){if(ULs[i].id&&ULs[i].id.substring(0,ulIdPref.length)==ulIdPref&&!(ULs[i].parentNode&&ULs[i].parentNode.parentNode&&ULs[i].parentNode.parentNode.id.substring(0,ulIdPref.length)==ulIdPref)){var A=document.getElementById(ULs[i].id+"a");if(A){A.style.display="none";}createMenu(ULs[i],0,0,params,menuCont);}}function createMenu(ulParent,iParent,level,params,owner){var oo=document.createElement(params.subFrame?"table":"div");owner.appendChild(oo);if(oo.tagName=="TABLE"){oo.cellSpacing=0;}var oMenuCont;if(params.subFrame){for(var i=0;i<3;i++){var row=oo.insertRow(-1);for(var j=0;j<3;j++){var cell=row.insertCell(-1);if(i==1&&j==1){oMenuCont=cell;}else{cell.className="imgFrame"+i+j;}}}}else{oMenuCont=oo.tagName=="DIV"?oo:oo.insertRow(-1).insertCell(-1);}oMenuCont.className="subContent";var O0o=document.createElement("table");oMenuCont.appendChild(O0o);oo.id=ulParent.id+"tbl";oo.className=ulParent.className;oo.style.position="absolute";oo.xpItems=[];oo.iParent=iParent;oo.level=level;oo.style.zIndex=9+oo.level;O0o.cellSpacing=0;oo.onmouseover=function(){xpStopTimeOut(this);};oo.onmouseout=function(){Ooo(xpShownMenu);};oo.xpClearMenuMark=function(){for(var j=0;j<this.xpItems.length;j++){p=this.xpItems[j];if(p.tagName=="TR"){p.className=p.className.replace("over","");if(p.className.indexOf("popup")<0){p.clrOverImg();}}}};oo.smShown=0;for(var i=0,cntLI=ulParent.childNodes.length;i<cntLI;i++){var Oo=ulParent.childNodes[i];if(Oo.tagName!="LI"){continue;}var O=O0o.insertRow(-1);var InnerAnchor=0;O.Img=null;O.ImgOver=null;var InnerUl=0;O.ImgArrow=null;O.ImgArrowOver=null;for(var j=0;j<Oo.childNodes.length;j++){if(Oo.childNodes[j].tagName=="A"){InnerAnchor=Oo.childNodes[j];}else if(Oo.childNodes[j].tagName=="IMG"){if(!InnerAnchor){if(!O.Img){O.Img=Oo.childNodes[j];}else{O.ImgOver=Oo.childNodes[j];}}else{if(!O.ImgArrow){O.ImgArrow=Oo.childNodes[j];}else{O.ImgArrowOver=Oo.childNodes[j];}}}else if(Oo.childNodes[j].tagName=="UL"){InnerUl=Oo.childNodes[j];}}if(InnerAnchor||InnerUl||O.ImgArrow){O.className=Oo.className;O.menu=oo;O.setPopup=function(){this.className+=" popup";};O.clrPopup=function(){this.className=this.className.replace("popup","");if(this.className.indexOf("over")<0){this.clrOverImg();}};O.clrOverImg=function(){if(this.Img){this.Img.style.display="inline";}if(this.ImgOver){this.ImgOver.style.display="none";}if(this.ImgArrow){this.ImgArrow.style.display="inline";}if(this.ImgArrowOver){this.ImgArrowOver.style.display="none";}};var oOO=O.insertCell(-1);var o00=O.insertCell(-1);var ooO=O.insertCell(-1);oOO.style.borderRightWidth="0px";o00.style.borderRightWidth="0px";o00.style.borderLeftWidth="0px";ooO.style.borderLeftWidth="0px";oOO.style.paddingRight="4px";o00.style.paddingRight="4px";o00.style.paddingLeft="4px";ooO.style.paddingLeft="4px";if(O.Img){oOO.appendChild(O.Img);}else{oOO.innerHTML="&nbsp;";}if(O.ImgOver){O.ImgOver.style.display="none";oOO.appendChild(O.ImgOver);}if(InnerAnchor){var newText=document.createElement("SPAN");newText.innerHTML=InnerAnchor.innerHTML;if(InnerAnchor.href.indexOf(".pdf")>=0&&document.all){o00.appendChild(newText);}else{o00.appendChild(InnerAnchor);InnerAnchor.onclick=function(){return false;};}O.linkHref=InnerAnchor.href;O.linkTarget=InnerAnchor.target;with(oo){xpItems[xpItems.length]=O;}O.onclick=function(){if(this.linkHref){open(this.linkHref,this.linkTarget?this.linkTarget:"_self");}};}else{o00.innerHTML="&nbsp;";}O.onmouseover=function(){this.menu.xpClearMenuMark();this.className+=" over";if(this.ImgOver){this.Img.style.display="none";this.ImgOver.style.display="inline";}if(this.ImgArrowOver){this.ImgArrow.style.display="none";this.ImgArrowOver.style.display="inline";}if(this.smPopup){OOO(this.smPopup,1,this);}else{Ooo(this.menu.smShown);}};O.onmouseout=function(){this.menu.xpClearMenuMark();};if(InnerUl){ooO.className="arrow";if(O.ImgArrow){ooO.appendChild(O.ImgArrow);if(O.ImgArrowOver){O.ImgArrowOver.style.display="none";ooO.appendChild(O.ImgArrowOver);}}else{if(typeof arrowChar!="undefined"&&arrowChar){ooO.appendChild(document.createElement("a"));ooO.lastChild.innerHTML=arrowChar;}else{ooO.innerHTML="&nbsp;";}}O.smPopup=createMenu(InnerUl,O,level+1,params,owner);}else{ooO.innerHTML="&nbsp;";}}else{O.className="separator";var oTD=O.insertCell(-1);oTD.colSpan=3;oTD.innerHTML="<div></div>";}}return oo;}function xpDef(){for(var i=0;i<arguments.length;++i){if(typeof arguments[i]=="undefined"){return false;}}return true;}function xpClientSize(){var x=0,y=0,w=0,h=0,doc=document,win=window;var cond=(!doc.compatMode||doc.compatMode=="CSS1Compat")&&doc.documentElement;if(cond&&doc.documentElement.clientHeight){h=doc.documentElement.clientHeight;}else if(doc.body&&doc.body.clientHeight){h=doc.body.clientHeight;}else if(xpDef(win.innerWidth,win.innerHeight,doc.width)){h=win.innerHeight;if(doc.width>win.innerWidth){h-=16;}}if(cond&&doc.documentElement.clientWidth){w=doc.documentElement.clientWidth;}else if(doc.body&&doc.body.clientWidth){w=doc.body.clientWidth;}else if(xDef(win.innerWidth,win.innerHeight,doc.height)){w=win.innerWidth;if(doc.height>win.innerHeight){w-=16;}}if(doc.documentElement&&doc.documentElement.scrollLeft){x=doc.documentElement.scrollLeft;}else if(doc.body&&xpDef(doc.body.scrollLeft)){x=doc.body.scrollLeft;}if(doc.documentElement&&doc.documentElement.scrollTop){y=doc.documentElement.scrollTop;}else if(doc.body&&xpDef(doc.body.scrollTop)){y=doc.body.scrollTop;}return{x:x,y:y,w:w,h:h};}function OoO(o){var w=o0O&&!OO0?o.style.pixelWidth:document.layers?o.clip.width:o.offsetWidth;var h=o0O&&!OO0?o.style.pixelHeight:document.layers?o.clip.height:o.offsetHeight;return{x:w,y:h};}function xppos(obj){var l=0,t=0;while(obj){l+=obj.offsetLeft;t+=obj.offsetTop;obj=obj.offsetParent;}if(document.body){with(document){if(body.leftMargin){l-=body.leftMargin;}if(body.topMargin){t-=body.topMargin;}}}return{x:l,y:t};}var xpshow=window.xpshow=function(ind,isVertical,iParent){OOO(ulIdPref+ind+"tbl",isVertical,iParent);};function OOO(menu,isVertical,iParent){menu=get(menu);if(!menu){return;}if(menu.style.visibility=="visible"){xpStopTimeOut(menu);return;}if(iParent&&iParent.menu){xphide(iParent.menu.smShown);}if(!menu.level&&xpShownMenu!=menu){xphide(xpShownMenu);}if(!menu.level){xobtn=menu.id.replace(ulIdPref,"").replace("tbl","");}var parentObj=iParent.tagName=="A"?iParent.parentNode:iParent;var pos=xppos(parentObj);var size=OoO(parentObj);menu.xpMenuX=1;menu.xpMenuDx=1;if(menu.level>0){menu.xpMenuX=menu.iParent.menu.xpMenuX;menu.xpMenuDx=menu.iParent.menu.xpMenuDx;}menu.style.overflow="visible";menu.style.height="auto";menu.style.width="auto";menu.style.left="0px";menu.style.top="0px";var parentAbs=xppos(menu);var Oo0=xpClientSize();var oOo=OoO(menu);var OO=xpCalcMenuPos(Oo0.y,Oo0.h,pos.y,size.y,oOo.y,menu.xpMenuDx,isVertical);menu.xpMenuDx=OO.align;if(o0O&&!menu.OrigWidth){menu.OrigWidth=menu.clientWidth;}if(OO.size<oOo.y){menu.style.overflow="auto";if(OOo){menu.style.overflowX="visible";}if(OOo){menu.style.width=menu.offsetWidth+17+"px";}else if(oooo){menu.style.magrinRight=20;}menu.style.height=OO.size+"px";menu.scrollTop=0;menu.scrollLeft=0;if(o0O){menu.style.width=menu.OrigWidth+"px";}}menu.style.top=OO.xy-parentAbs.y+"px";oOo=OoO(menu);OO=xpCalcMenuPos(Oo0.x,Oo0.w,pos.x,size.x,oOo.x,menu.xpMenuX,!isVertical);menu.xpMenuX=OO.align;if(OO.size<oOo.x){if(menu.xpMenuX>0){OO.xy-=(oOo.x-OO.size);}}menu.style.left=OO.xy-parentAbs.x+"px";menu.style.visibility="visible";if(!menu.level){xpShownMenu=menu;}else{iParent.menu.smShown=menu;iParent.setPopup();}}function xpCalcMenuPos(oO,o0o,ooo,oO0,size,align,O0O){var xy=ooo;var O0=size;var oo0=align;var o0=5;if(align==0&&!O0O){align=1;}if(!O0O){if(oo0>=0&&ooo+oO0+size>o0o+oO-o0||oo0<0&&ooo-size<o0){if(ooo-oO>o0o+oO-(ooo+oO0)){oo0=-1;}else{oo0=1;}}if(oo0>=0){xy=ooo+oO0;if(o0o+oO-o0-xy<O0){O0=o0o+oO-o0-xy;}}else{xy=ooo-O0;if(xy-oO<o0){xy=o0+oO;O0=ooo-o0-oO;}}}else{if(O0>o0o-2*o0){xy=o0+oO;O0=o0o-2*o0;}else{xy=ooo+oO0/2-O0/2+oo0*(O0/2-oO0/2);if(xy<o0+oO){oo0=1;xy=o0+oO;}if(xy+size>o0o+oO-o0){oo0=-1;xy-=xy+O0-(o0o+oO-o0);}}}return{xy:xy,size:O0,align:oo0};}function get(o){return typeof o=="string"?document.getElementById(o):o;}function xphide(menu){menu=get(menu);if(!menu||menu.style.visibility!="visible"){return;}xphide(menu.smShown);menu.xpClearMenuMark();menu.style.visibility="hidden";if(menu.level==0){xpe(xobtn+"n");}menu.smShown=0;if(menu.iParent){menu.iParent.clrPopup();}if(menu.hideTimer){clearTimeout(menu.hideTimer);menu.hideTimer=null;}}window.xphide=xphide;window.xpsmout=function(sender){if(!sender){return;}Ooo(xpShownMenu);};window.xpsmover=function(menu){xpStopTimeOut(menu);};function xpStopTimeOut(menu){for(var o=menu;o;o=o.iParent?o.iParent.menu:0){if(o.hideTimer){o.hideTimer=clearTimeout(o.hideTimer);}}}function Ooo(menu){if(menu){if(!menu.hideTimer){menu.hideTimer=setTimeout(function(){xphide(menu);},300);}Ooo(menu.smShown);}}}var xpShownMenu=0;new vistaButtons({subFrame:0});
