document.write('<table id="vista-buttons.com:idm4thm" width="0" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:0px" title ="Personalised Gifts | Shared Memories Gifts Australia"><a href="http://www.sharedmemories.com.au/index.php" onmouseover=\'xpe("m4thmo");\' onmouseout=\'xpe("m4thmn");\'><img id="xpi_m4thm" src="'+vbImgPath+'/btm4thm_0.gif" name="vbm4thm" width="57" height="30" border="0" alt="Home" /></a></td><td style="padding-right:0px" title ="Personalised Gifts"><a href="http://www.sharedmemories.com.au/personalised-gifts.html" onmouseover=\'xpe("54thmo");xpshow("54thm",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_54thm" src="'+vbImgPath+'/bt54thm_0.gif" name="vb54thm" width="125" height="30" border="0" alt="Personalised Gifts" /></a></td><td style="padding-right:0px" title ="Wedding Thank You Gifts"><a href="http://www.sharedmemories.com.au/wedding-thank-you-gifts.html" onmouseover=\'xpe("a4thmo");xpshow("a4thm",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_a4thm" src="'+vbImgPath+'/bta4thm_0.gif" name="vba4thm" width="106" height="30" border="0" alt="Wedding Gifts" /></a></td><td style="padding-right:0px" title ="Wedding Anniversary"><a href="http://www.sharedmemories.com.au/wedding-anniversary-gifts.html" onmouseover=\'xpe("s4thmo");xpshow("s4thm",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_s4thm" src="'+vbImgPath+'/bts4thm_0.gif" name="vbs4thm" width="145" height="30" border="0" alt="Wedding Anniversary" /></a></td><td style="padding-right:0px" title ="Photo Albums"><a href="http://www.sharedmemories.com.au/photo-albums.html" onmouseover=\'xpe("34thmo");xpshow("34thm",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_34thm" src="'+vbImgPath+'/bt34thm_0.gif" name="vb34thm" width="105" height="30" border="0" alt="Photo Albums" /></a></td><td style="padding-right:0px" title ="Christening Gifts"><a href="http://www.sharedmemories.com.au/christening-baptism-new-baby.html" onmouseover=\'xpe("r4thmo");xpshow("r4thm",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_r4thm" src="'+vbImgPath+'/btr4thm_0.gif" name="vbr4thm" width="118" height="30" border="0" alt="Christening Gifts" /></a></td><td style="padding-right:0px" title ="Windchimes"><a href="http://www.sharedmemories.com.au/windchimes.html" onmouseover=\'xpe("64thmo");\' onmouseout=\'xpe("64thmn");\'><img id="xpi_64thm" src="'+vbImgPath+'/bt64thm_0.gif" name="vb64thm" width="81" height="30" border="0" alt="Windchimes" /></a></td><td style="padding-right:0px" title ="Journal Books"><a href="http://www.sharedmemories.com.au/journal-books.html" onmouseover=\'xpe("24thmo");\' onmouseout=\'xpe("24thmn");\'><img id="xpi_24thm" src="'+vbImgPath+'/bt24thm_0.gif" name="vb24thm" width="95" height="30" border="0" alt="Journal Books" /></a></td><td style="padding-right:0px" title ="Clocks"><a href="http://www.sharedmemories.com.au/wall-clocks-en.html" onmouseover=\'xpe("t4thmo");xpshow("t4thm",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_t4thm" src="'+vbImgPath+'/btt4thm_0.gif" name="vbt4thm" width="65" height="30" border="0" alt="Clocks" /></a></td><td style="padding-right:0px" title ="Contact Us"><a href="http://www.sharedmemories.com.au/contact-us-1.html" onmouseover=\'xpe("p4thmo");\' onmouseout=\'xpe("p4thmn");\'><img id="xpi_p4thm" src="'+vbImgPath+'/btp4thm_0.gif" name="vbp4thm" width="75" height="30" border="0" alt="Contact Us" /></a></td></tr></table>');document.write('<ul id="vbUL_54thm" class="vbULm4thm" style="visibility:hidden;"><li><a href="http://www.sharedmemories.com.au/personalised-gifts/full-colour-photo-frames.html" title="Full Colour Photo Frames Personalised">Full&nbsp;Colour&nbsp;Photo&nbsp;Frames&nbsp;Personalised</a></li><li><a href="http://www.sharedmemories.com.au/personalised-gifts/personalised-photo-frames-with-engraving.html" title="Photo Frames Glass & Metal Personalised">Photo&nbsp;Frames&nbsp;Glass&nbsp;&&nbsp;Metal&nbsp;Personalised</a></li><li><a href="http://www.sharedmemories.com.au/personalised-gifts/personalised-mugs.html" title="Personalised Mugs">Personalised&nbsp;Mugs</a></li><li><a href="http://www.sharedmemories.com.au/personalised-gifts/personalised-clocks-with-photo-and-words.html" title="Clocks with Photo and Words">Clocks&nbsp;with&nbsp;Photo&nbsp;and&nbsp;Words</a></li><li><a href="http://www.sharedmemories.com.au/personalised-gifts/personalised-timber-albums.html" title="Timber Photo Albums - Personalised">Timber&nbsp;Photo&nbsp;Albums&nbsp;-&nbsp;Personalised</a></li><li><a href="http://www.sharedmemories.com.au/personalised-gifts/engraved-gifts.html" title="Engraved Gifts">Engraved&nbsp;Gifts</a></li><li><a href="http://www.sharedmemories.com.au/personalised-gifts/frameless-creations.html" title="Frameless Creations - Photo Panels">Frameless&nbsp;Creations&nbsp;-&nbsp;Photo&nbsp;Panels</a></li><li><a href="http://www.sharedmemories.com.au/personalised-gifts/plates.html" title="Gift Plates">Gift&nbsp;Plates</a></li><li><a href="http://www.sharedmemories.com.au/personalised-gifts/memorial-in-memory-of.html" title="Memorial In Memory of">Memorial&nbsp;In&nbsp;Memory&nbsp;of</a></li><li><a href="http://www.sharedmemories.com.au/personalised-gifts/personalised-pet-memories.html" title="Pet Memories">Pet&nbsp;Memories</a></li></ul><ul id="vbUL_a4thm" class="vbULm4thm" style="visibility:hidden;"><li><a href="http://www.sharedmemories.com.au/wedding-thank-you-gifts/wedding-party-gifts.html" title="Wedding Party Gifts">Wedding&nbsp;Party&nbsp;Gifts</a></li><li><a href="http://www.sharedmemories.com.au/wedding-thank-you-gifts/wedding-photo-panels.html" title="Wedding Photo Panels">Wedding&nbsp;Photo&nbsp;Panels</a></li><li><a href="http://www.sharedmemories.com.au/wedding-thank-you-gifts/wedding-photo-frames.html" title="Wedding Photo Frames">Wedding&nbsp;Photo&nbsp;Frames</a></li><li><a href="http://www.sharedmemories.com.au/wedding-thank-you-gifts/wedding-photo-albums-en.html" title="Wedding Photo Albums">Wedding&nbsp;Photo&nbsp;Albums</a></li><li><a href="http://www.sharedmemories.com.au/wedding-thank-you-gifts/wedding-guest-books.html" title="Wedding Guest Books">Wedding&nbsp;Guest&nbsp;Books</a></li><li><a href="http://www.sharedmemories.com.au/wedding-thank-you-gifts/wedding-clocks.html" title="Personalised Wedding Clocks">Personalised&nbsp;Wedding&nbsp;Clocks</a></li><li><a href="http://www.sharedmemories.com.au/wedding-thank-you-gifts/other-wedding-gifts.html" title="Other Wedding Gifts">Other&nbsp;Wedding&nbsp;Gifts</a></li><li><a href="http://www.sharedmemories.com.au/wedding-thank-you-gifts/wedding-gift-cards.html" title="Wedding Gift Cards">Wedding&nbsp;Gift&nbsp;Cards</a></li></ul><ul id="vbUL_s4thm" class="vbULm4thm" style="visibility:hidden;"><li><a href="http://www.sharedmemories.com.au/wedding-anniversary-gifts/60th-wedding-anniversary-gifts.html" title="60th Wedding Anniversary">60th&nbsp;Wedding&nbsp;Anniversary</a></li><li><a href="http://www.sharedmemories.com.au/wedding-anniversary-gifts/50th-wedding-anniversary-gifts.html" title="50th Wedding Anniversary">50th&nbsp;Wedding&nbsp;Anniversary</a></li><li><a href="http://www.sharedmemories.com.au/wedding-anniversary-gifts/40th-wedding-anniversary-gifts.html" title="40th Wedding Anniversary">40th&nbsp;Wedding&nbsp;Anniversary</a></li><li><a href="http://www.sharedmemories.com.au/wedding-anniversary-gifts/30th-wedding-anniversary-gifts.html" title="30th Wedding Anniversary">30th&nbsp;Wedding&nbsp;Anniversary</a></li><li><a href="http://www.sharedmemories.com.au/wedding-anniversary-gifts/25th-wedding-anniversary-gifts.html" title="25th Wedding Anniversary">25th&nbsp;Wedding&nbsp;Anniversary</a></li><li><a href="http://www.sharedmemories.com.au/wedding-anniversary-gifts/10th-wedding-anniversary-gifts.html" title="10th Wedding Anniversary">10th&nbsp;Wedding&nbsp;Anniversary</a></li><li><a href="http://www.sharedmemories.com.au/wedding-anniversary-gifts/1st-wedding-anniversary-gifts.html" title="1st Wedding Anniversary">1st&nbsp;Wedding&nbsp;Anniversary</a></li><li><a href="http://www.sharedmemories.com.au/wedding-anniversary-gifts/other-anniversary-gifts.html" title="Other Wedding Anniversaries">Other&nbsp;Wedding&nbsp;Anniversaries</a></li></ul><ul id="vbUL_34thm" class="vbULm4thm" style="visibility:hidden;"><li><a href="http://www.sharedmemories.com.au/photo-albums/dry-mount-albums.html" title="Dry Mount Albums">Dry&nbsp;Mount&nbsp;Albums</a></li><li><a href="http://www.sharedmemories.com.au/photo-albums/slip-in-albums.html" title="Slip-In Albums">Slip-In&nbsp;Albums</a></li><li><a href="http://www.sharedmemories.com.au/photo-albums/leather-photo-albums.html" title="Leather Photo Albums">Leather&nbsp;Photo&nbsp;Albums</a></li><li><a href="http://www.sharedmemories.com.au/photo-albums/wedding-photo-albums.html" title="Wedding Photo Albums">Wedding&nbsp;Photo&nbsp;Albums</a></li><li><a href="http://www.sharedmemories.com.au/photo-albums/scrapbook-albums.html" title="Scrap Book Albums">Scrap&nbsp;Book&nbsp;Albums</a></li><li><a href="http://www.sharedmemories.com.au/photo-albums/timber-photo-albums.html" title="Timber Photo Albums">Timber&nbsp;Photo&nbsp;Albums</a></li><li><a href="http://www.sharedmemories.com.au/photo-albums/guest-and-visitor-albums.html" title="Guest And Visitor Albums">Guest&nbsp;And&nbsp;Visitor&nbsp;Albums</a></li><li><a href="http://www.sharedmemories.com.au/photo-albums/baby-and-child-photo-albums.html" title="Baby and Child Photo Albums">Baby&nbsp;and&nbsp;Child&nbsp;Photo&nbsp;Albums</a></li><li><a href="http://www.sharedmemories.com.au/photo-albums/portfolio-photo-albums.html" title="Portfolio Photo Albums">Portfolio&nbsp;Photo&nbsp;Albums</a></li><li><a href="http://www.sharedmemories.com.au/photo-albums/photo-archive.html" title="Photo Archive">Photo&nbsp;Archive</a></li><li><a href="http://www.sharedmemories.com.au/photo-albums/bulk-buy-photo-albums.html" title="Bulk Buy Albums">Bulk&nbsp;Buy&nbsp;Albums</a></li></ul><ul id="vbUL_r4thm" class="vbULm4thm" style="visibility:hidden;"><li><a href="http://www.sharedmemories.com.au/christening-baptism-new-baby/baby-photo-frames.html" title="Baby Photo Frames">Baby&nbsp;Photo&nbsp;Frames</a></li><li><a href="http://www.sharedmemories.com.au/christening-baptism-new-baby/baby-photo-albums.html" title="Baby Photo Albums">Baby&nbsp;Photo&nbsp;Albums</a></li><li><a href="http://www.sharedmemories.com.au/christening-baptism-new-baby/baby-carousels.html" title="Baby Carousels">Baby&nbsp;Carousels</a></li><li><a href="http://www.sharedmemories.com.au/christening-baptism-new-baby/baby-keepsakes.html" title="Baby Keepsakes">Baby&nbsp;Keepsakes</a></li><li><a href="http://www.sharedmemories.com.au/christening-baptism-new-baby/baby-gift-cards.html" title="Baby Gift Cards">Baby&nbsp;Gift&nbsp;Cards</a></li></ul><ul id="vbUL_t4thm" class="vbULm4thm" style="visibility:hidden;"><li><a href="http://www.sharedmemories.com.au/wall-clocks-en/personalised.html" title="Personalised Clocks">Personalised&nbsp;Clocks</a></li><li><a href="http://www.sharedmemories.com.au/wall-clocks-en/tide.html" title="Tide Clocks">Tide&nbsp;Clocks</a></li><li><a href="http://www.sharedmemories.com.au/wall-clocks-en/wall-clocks-1.html" title="Wall Clocks">Wall&nbsp;Clocks</a></li><li><a href="http://www.sharedmemories.com.au/wall-clocks-en/desk-and-mantel-clocks.html" title="Desk and Mantel Clocks">Desk&nbsp;and&nbsp;Mantel&nbsp;Clocks</a></li></ul>');vbm4thmn=xppr('m4thm_0.gif');vbm4thmo=xppr('m4thm_1.gif');vb54thmn=xppr('54thm_0.gif');vb54thmo=xppr('54thm_1.gif');vba4thmn=xppr('a4thm_0.gif');vba4thmo=xppr('a4thm_1.gif');vbs4thmn=xppr('s4thm_0.gif');vbs4thmo=xppr('s4thm_1.gif');vb34thmn=xppr('34thm_0.gif');vb34thmo=xppr('34thm_1.gif');vbr4thmn=xppr('r4thm_0.gif');vbr4thmo=xppr('r4thm_1.gif');vb64thmn=xppr('64thm_0.gif');vb64thmo=xppr('64thm_1.gif');vb24thmn=xppr('24thm_0.gif');vb24thmo=xppr('24thm_1.gif');vbt4thmn=xppr('t4thm_0.gif');vbt4thmo=xppr('t4thm_1.gif');vbp4thmn=xppr('p4thm_0.gif');vbp4thmo=xppr('p4thm_1.gif');var arrowChar='&raquo;';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});
