document.write('<table id="vista-buttons.com:id51c7c" width=0 cellpadding=0 cellspacing=0 border=0><tr><td style="padding-right:0px" title ="Home page of web site"><a href="http://www.lilynook.mb.ca/index.html" target="_self" onmouseover=\'xpe("51c7co");\' onmouseout=\'xpe("51c7cn");\'><img id="xpi_51c7c" src="'+vbImgPath+'bt51c7c_0.gif" name="vb51c7c" width="119" height="28" border="0" alt="Home page of web site"/></a></td><td style="padding-right:0px" title ="Info"><a onmouseover=\'xpe("a1c7co");xpshow("a1c7c",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_a1c7c" src="'+vbImgPath+'bta1c7c_0.gif" name="vba1c7c" width="119" height="28" border="0" alt="Info"/></a></td><td style="padding-right:0px" title ="Articles"><a onmouseover=\'xpe("s1c7co");xpshow("s1c7c",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_s1c7c" src="'+vbImgPath+'bts1c7c_0.gif" name="vbs1c7c" width="119" height="28" border="0" alt="Articles"/></a></td><td style="padding-right:0px" title ="Our colection of lily photos for reference"><a onmouseover=\'xpe("31c7co");xpshow("31c7c",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_31c7c" src="'+vbImgPath+'bt31c7c_0.gif" name="vb31c7c" width="119" height="28" border="0" alt="Our colection of lily photos for reference"/></a></td><td style="padding-right:0px" title ="Join a Lily Society near you for those Lily enthuisists!"><a onmouseover=\'xpe("r1c7co");xpshow("r1c7c",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_r1c7c" src="'+vbImgPath+'btr1c7c_0.gif" name="vbr1c7c" width="119" height="28" border="0" alt="Join a Lily Society near you for those Lily enthuisists!"/></a></td></tr></table>');
document.write('<ul id="vbUL_a1c7c" class="vbUL51c7c" style="visibility:hidden;"><li><img src="'+vbImgPath+'smo1c7c.gif"/><a title="The Lily King">About&nbsp;Us</a><ul id="vbUL_61c7c" class="vbUL51c7c"><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/About_Us.html" title="The Lily Nook short story" target="_self">The&nbsp;Lily&nbsp;Nook</a></li><li class="separator"></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/Articles/About_Barrie.html" title="History about Barrie Strohman and the Lily Nook" target="_self">Barrie&nbsp;Strohman</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.recreatingeden.com/index.php?pid=8&season=03&episode=38" title="Recreating Eden web site page about us" target="_self">The&nbsp;Lily&nbsp;King</a></li></ul></li><li><img src="'+vbImgPath+'smo1c7c.gif"/><a href="http://www.lilynook.mb.ca/come_visit_us.htm" title="Visit us" target="_self">Visit&nbsp;us</a><ul id="vbUL_21c7c" class="vbUL51c7c"><li><img src="'+vbImgPath+'sm21c7c.gif"/><a href="http://www.lilynook.mb.ca/Visit_Us.html" title="Open Gardens - July 1 - July31">Open&nbsp;Gardens</a></li><li><img src="'+vbImgPath+'sm21c7c.gif"/><a href="http://www.lilyfestival.com/" title="Neepawa & Area Annual Lily Festival web site" target="_self">Lily&nbsp;Festival</a></li></ul></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/webupdates.html" title="Updates to our web site" target="_self">Web&nbsp;Updates</a></li></ul><ul id="vbUL_s1c7c" class="vbUL51c7c" style="visibility:hidden;"><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/Articles/Lily_Culture.html" title="Planting & care of your bulbs" target="_self">Planting&nbsp;&&nbsp;Care</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/Articles/Diseases_Pest.html" title="Diseases & pests of lilies" target="_self">Diseases&nbsp;&&nbsp;Pests</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/Articles/Lilies_from_Seed.html" title="Growing lilies from seed" target="_self">Lilies&nbsp;from&nbsp;seed</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/Articles/Species.html" title="Species I have grown at the Lily Nook" target="_self">Species</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/Article_Links.html" title="Other lily articles and links" target="_self">Other&nbsp;articles&nbsp;&&nbsp;links</a></li></ul><ul id="vbUL_31c7c" class="vbUL51c7c" style="visibility:hidden;"><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/library/library-Asiatics-A.html" title="Asiatics" target="_self">Asiatics</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/library/library-martagons.html" title="Martagons" target="_self">Martagons</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/library/library-trumpets.html" title="Trumpets & Aurelians" target="_self">Trumpets&nbsp;&&nbsp;Aurelians</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/library/library-Orientals.html" title="Orientals" target="_self">Orientals</a></li><li><img src="'+vbImgPath+'smp1c7c.gif"/><a title="Interdivisional Hybrids">Interdivisional&nbsp;Hybrids</a><ul id="vbUL_t1c7c" class="vbUL51c7c"><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/library/library-LA\'s.html" title="L x A Hybrids (longiflorum x asiatic)" target="_self">L&nbsp;x&nbsp;A&nbsp;Hybrids</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/library/library-Div%20VIII_OTs.html" title="Orienpets (Oriental x Trumpets)" target="_self">Orienpets</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/library/library-Div%20VIII_AAs.html" title="Asiapets x Asiatics" target="_self">Asiapets</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/library/library-Div%20VIII_LOs.html" title="L x O Hybrids ( Longiflorum x Oriental)" target="_self">L&nbsp;x&nbsp;O&nbsp;Hybrids</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/library/library-Div%20VIII_OAs.html" title="O x A Hybrids (Oriental x Asiatics)" target="_self">O&nbsp;x&nbsp;A&nbsp;Hybrids&nbsp;</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/library/library-Div%20VIII_TLs.html" title="T x L Hybrids (trumpet x longiflorum)">T&nbsp;x&nbsp;L&nbsp;Hybrids</a></li></ul></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilynook.mb.ca/library/library-species.html" title="Species lilies">Species</a></li></ul><ul id="vbUL_r1c7c" class="vbUL51c7c" style="visibility:hidden;"><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilies.org/" title="North American Lily Society" target="_self">N.A.L.S.</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.lilies.org/slpg.html" title="The Species Lily Preservation Group" target="_self">Species&nbsp;Society</a></li><li class="separator"></li><li><img src="'+vbImgPath+'smt1c7c.gif"/><a title="Canada">Canada</a><ul id="vbUL_p1c7c" class="vbUL51c7c"><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.orls.ca/" title="Ontario Regional Lily Society" target="_self">Ontario</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.manitobalilies.ca/" title="Manitoba Regional Lily Society" target="_self">Manitoba</a></li><li><img src="'+vbImgPath+'smt1c7c.gif"/><a title="Sakatchewan Lily Societies">Saskatchewan</a><ul id="vbUL_o1c7c" class="vbUL51c7c"><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.prairielily.ca/" title="Canadian Prairie Lily Society" target="_self">C.P.L.S</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.ssls.tussana.com/" title="South Saskatchewan Lily Society" target="_self">S.S.L.S.</a></li></ul></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.arls-lilies.org/" title="Alberta Regional Lily Society" target="_self">Alberta</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.members.shaw.ca/lilynet/viclil/" title="Victoria Lily Society" target="_self">British&nbsp;Columbia</a></li></ul></li><li><img src="'+vbImgPath+'smt1c7c.gif"/><a title="U.S.A.">U.S.A.</a><ul id="vbUL_w1c7c" class="vbUL51c7c"><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.irls.org/" title="Iowa Regional Lily Society" target="_self">Iowa&nbsp;Regional&nbsp;Lily&nbsp;Society</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.marls.org/" title="Mid America Lily Society" target="_self">Mid&nbsp;America&nbsp;Lily&nbsp;Society</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.mrls.org/" title="Michigan Regional Lily  Society" target="_parent">Michigan&nbsp;Regional&nbsp;Lily&nbsp;&nbsp;Society</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.northstarlilysociety.com/" title="North Star Lily Society" target="_self">North&nbsp;Star&nbsp;Lily&nbsp;Society</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.ohiolilysociety.org/" title="Ohio Regional Lily Society" target="_self">Ohio&nbsp;Regional&nbsp;Lily&nbsp;Society</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://edgiddens.home.mchsi.com/Lily/Lily.htm" title="Ozarks Regional Lily Society" target="_self">Ozarks&nbsp;Regional&nbsp;Lily&nbsp;Society</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://pnwls.org/index.html" title="Pacific Northwest Lily Society" target="_self">Pacific&nbsp;Northwest&nbsp;Lily&nbsp;Society</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.potomaclilysociety.org/" title="Potomac Lily Society" target="_self">Potomac&nbsp;Lily&nbsp;Society</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.wrls.org/" title="Wisconsin Regional Lily Society" target="_self">Wisconsin&nbsp;Regional&nbsp;Lily&nbsp;Society</a></li></ul></li><li><img src="'+vbImgPath+'smt1c7c.gif"/><a title="Lily societies around the world" target="_top">World</a><ul id="vbUL_41c7c" class="vbUL51c7c"><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.rhslilygroup.org/" title="Royal Horticultural Lily Group" target="_self">RHS&nbsp;Lily&nbsp;Group</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.dils.dk/dk-pages/news.php" title="Danish Iris & Lily Group" target="_self">Danish&nbsp;Iris&nbsp;&&nbsp;Lily</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.liliengesellschaft.org/" title="European Lily Society" target="_self">European&nbsp;Lily&nbsp;Society</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://www.nzlilies.org.nz/" title="New Zealand Lily Society" target="_self">New&nbsp;Zealand</a></li><li><img src="'+vbImgPath+'sm61c7c.gif"/><a href="http://ntls.liliums.org/" title="Northern Tasmanian Lilium Society" target="_self">Northern&nbsp;Tasmanian</a></li></ul></li></ul>');
vb51c7cn=xppr('51c7c_0.gif');vb51c7co=xppr('51c7c_1.gif');vba1c7cn=xppr('a1c7c_0.gif');vba1c7co=xppr('a1c7c_1.gif');vbs1c7cn=xppr('s1c7c_0.gif');vbs1c7co=xppr('s1c7c_1.gif');vb31c7cn=xppr('31c7c_0.gif');vb31c7co=xppr('31c7c_1.gif');vbr1c7cn=xppr('r1c7c_0.gif');vbr1c7co=xppr('r1c7c_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');return false;};
var hideTimeout=300,menuContId='xpMenuCont',ulIdPref='vbUL_',imgIdPref='xpi_';function xpinit(){isDOM=document.getElementById;isOp=isO5=window.opera&&isDOM;isOp7=isOp&&document.readyState;isIE=document.all&&document.all.item&&!isOp;isNS4=document.layers;isMz=isDOM&&navigator.appName=="Netscape";document.write('<div id="'+menuContId+'" ></div>');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))){xpCreateMenu(ULs[i],0,0);};};xpinit();function xpObjectSize(o){var w=(isOp&&!isOp7)?o.style.pixelWidth:isNS4?o.clip.width:o.offsetWidth,h=(isOp&&!isOp7)?o.style.pixelHeight:isNS4?o.clip.height:o.offsetHeight;return{x:w,y:h};};function xpClientSize(){var x=0,y=0,w=0,h=0,doc=document,win=window,cond=(!doc.compatMode||doc.compatMode=='CSS1Compat')&&!win.opera&&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(win.document.documentElement&&win.document.documentElement.scrollLeft)x=win.document.documentElement.scrollLeft;else if(win.document.body&&xpDef(win.document.body.scrollLeft))x=win.document.body.scrollLeft;if(win.document.documentElement&&win.document.documentElement.scrollTop)y=win.document.documentElement.scrollTop;else if(win.document.body&&xpDef(win.document.body.scrollTop))y=win.document.body.scrollTop;return{x:x,y:y,w:w,h:h};};function xpDef(){for(var i=0;i<arguments.length;++i){if(typeof(arguments[i])=='undefined')return false;};return true;};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};};function xpCreateMenu(ulParent,iParent,level){var menuCont=document.getElementById(menuContId),oMenu=document.createElement('div');menuCont.appendChild(oMenu);var oTable=document.createElement('table');oMenu.appendChild(oTable);oMenu.id=ulParent.id+'tbl';oMenu.className=ulParent.className;oMenu.style.position='absolute';oMenu.iParent=iParent;oMenu.level=level;oMenu.style.zIndex=9+oMenu.level;oTable.cellSpacing=0;oMenu.onmouseover=function(){xpsmover(this)};oMenu.onmouseout=function(){xpsmout(this)};oMenu.ClearMenuMark=function(){for(var j=0;j<this.childNodes[0].rows.length;j++){p=this.childNodes[0].rows[j];if(p.tagName=='TR'){p.className=p.className.replace('over','');if(p.className.indexOf('popup')<0)p.clrOverImg();};};};oMenu.smShown=0;for(var i=0,cntLI=ulParent.childNodes.length;i<cntLI;i++){var oLI=ulParent.childNodes[i];if(oLI.tagName=='LI'){var oItem=oTable.insertRow(-1);oItem.menu=oMenu;oItem.setPopup=function(){this.className+=' popup';};oItem.clrPopup=function(){this.className=this.className.replace('popup','');if(this.className.indexOf('over')<0)this.clrOverImg();};oItem.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'};oItem.className=oLI.className;var InnerAnchor=0;oItem.Img=null;oItem.ImgOver=null;var InnerUl=0;oItem.ImgArrow=null;oItem.ImgArrowOver=null;for(var j=0;j<oLI.childNodes.length;j++)if(oLI.childNodes[j].tagName=='A')InnerAnchor=oLI.childNodes[j];else if(oLI.childNodes[j].tagName=='IMG'){if(!InnerAnchor){if(!oItem.Img)oItem.Img=oLI.childNodes[j];else oItem.ImgOver=oLI.childNodes[j]}else{if(!oItem.ImgArrow)oItem.ImgArrow=oLI.childNodes[j];else oItem.ImgArrowOver=oLI.childNodes[j]};}else if(oLI.childNodes[j].tagName=='UL')InnerUl=oLI.childNodes[j];if(InnerAnchor||InnerUl||oItem.ImgArrow){var oTDIMG=oItem.insertCell(-1),oTDLabel=oItem.insertCell(-1),oTDArrow=oItem.insertCell(-1);oTDIMG.style.borderRightWidth='0px';oTDLabel.style.borderRightWidth='0px';oTDLabel.style.borderLeftWidth='0px';oTDArrow.style.borderLeftWidth='0px';oTDIMG.style.paddingRight='4px';oTDLabel.style.paddingRight='4px';oTDLabel.style.paddingLeft='4px';oTDArrow.style.paddingLeft='4px';if(oItem.Img)oTDIMG.appendChild(oItem.Img);else oTDIMG.innerHTML='&nbsp;';if(oItem.ImgOver){oItem.ImgOver.style.display='none';oTDIMG.appendChild(oItem.ImgOver);};if(InnerAnchor){oTDLabel.appendChild(InnerAnchor);oItem.ItemLink=InnerAnchor;InnerAnchor.onclick=function(){return false;};oItem.onclick=function(){open(this.ItemLink.href,(this.ItemLink.target?this.ItemLink.target:"_self"));return true;};}else oTDLabel.innerHTML='&nbsp;';oItem.onmouseover=function(){this.menu.ClearMenuMark();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.smPopupId)xpshowmenu(this.smPopupId,1,this);else if(this.menu.smShown)xpStartTimeOut(this.menu.smShown);};oItem.onmouseout=function(){this.menu.ClearMenuMark();};if(InnerUl){oTDArrow.className='arrow';if(oItem.ImgArrow){oTDArrow.appendChild(oItem.ImgArrow);if(oItem.ImgArrowOver){oItem.ImgArrowOver.style.display='none';oTDArrow.appendChild(oItem.ImgArrowOver)}}else{if(typeof(arrowChar)!='undefined'&&arrowChar){oTDArrow.appendChild(document.createElement('a'));oTDArrow.lastChild.innerHTML=arrowChar;}else oTDArrow.innerHTML='&nbsp;';};oItem.smPopupId=xpCreateMenu(InnerUl,oItem,level+1);}else oTDArrow.innerHTML='&nbsp;';}else{var oTD=oItem.insertCell(-1);oTD.colSpan=3;oTD.innerHTML='<div></div>';};};};return oMenu.id;};function xpshow(ind,isVertical,iParent){xpshowmenu(ulIdPref+ind+'tbl',isVertical,iParent);};function xpshowmenu(menuID,isVertical,iParent){var menu=document.getElementById(menuID);if(!menu)return;if(menu.style.visibility=='visible'){xpStopTimeOut(menu);return;};if(iParent&&iParent.menu&&iParent.menu.smShown)xphide(iParent.menu.smShown.id);if(!menu.level&&(ShownMenu!=menu))xphide(ShownMenu.id);if(!menu.level)xobtn=menuID.replace(ulIdPref,'').replace('tbl','');var parentObj;if(iParent.tagName=='A'){parentObj=iParent.parentNode;}else parentObj=iParent;var pos=xppos(parentObj),size=xpObjectSize(parentObj);menu.goMenuX=1;menu.goMenuDx=1;if(menu.level>0){menu.goMenuX=menu.iParent.menu.goMenuX;menu.goMenuDx=menu.iParent.menu.goMenuDx;};menu.style.overflow='visible';menu.style.height='auto';menu.style.width='auto';menu.style.left='0px';menu.style.top='0px';var parentAbs=xppos(menu),WinSize=xpClientSize(),menuSize=xpObjectSize(menu),CalcedPos=xp_CalcMenuPos(WinSize.y,WinSize.h,pos.y,size.y,menuSize.y,menu.goMenuDx,isVertical);menu.goMenuDx=CalcedPos.align;if(isOp&&!menu.OrigWidth)menu.OrigWidth=menu.clientWidth;if(CalcedPos.size<menuSize.y){menu.style.overflow='auto';if(isIE)menu.style.overflowX='visible';if(isIE)menu.style.width=menu.offsetWidth+17+'px';else if(isMz)menu.style.magrinRight=20;menu.style.height=CalcedPos.size+'px';menu.scrollTop=0;menu.scrollLeft=0;if(isOp)menu.style.width=menu.OrigWidth+'px';}else{};menu.style.top=CalcedPos.xy-parentAbs.y+'px';menuSize=xpObjectSize(menu);CalcedPos=xp_CalcMenuPos(WinSize.x,WinSize.w,pos.x,size.x,menuSize.x,menu.goMenuX,!isVertical);menu.goMenuX=CalcedPos.align;if(CalcedPos.size<menuSize.x)if(menu.goMenuX>0)CalcedPos.xy-=(menuSize.x-CalcedPos.size);menu.style.left=CalcedPos.xy-parentAbs.x+'px';menu.style.visibility='visible';if(!menu.level)ShownMenu=menu;else{iParent.menu.smShown=menu;iParent.setPopup();};};function xp_CalcMenuPos(screenXY,screenSize,parentXY,parentSize,size,align,oHoriz){var xy=parentXY,newSize=size,newAlign=align,space=5;if((align==0)&&(!oHoriz))align=1;if(!oHoriz){if(((newAlign>=0)&&(parentXY+parentSize+size>screenSize+screenXY-space))||((newAlign<0)&&(parentXY-size<space))){if(parentXY-screenXY>screenSize+screenXY-(parentXY+parentSize))newAlign=-1;else newAlign=1;};if(newAlign>=0){xy=parentXY+parentSize;if(screenSize+screenXY-space-xy<newSize)newSize=screenSize+screenXY-space-xy;}else{xy=parentXY-newSize;if(xy-screenXY<space){xy=space+screenXY;newSize=parentXY-space-screenXY;};};}else{if(newSize>screenSize-2*space){xy=space+screenXY;newSize=screenSize-2*space;}else{xy=parentXY+parentSize/2-newSize/2+newAlign*(newSize/2-parentSize/2);if(xy<space+screenXY){newAlign=1;xy=space+screenXY;};if(xy+size>screenSize+screenXY-space){newAlign=-1;xy-=xy+newSize-(screenSize+screenXY-space);};};};return{xy:xy,size:newSize,align:newAlign};};function xphide(menuId){var menu=document.getElementById(menuId);if(!menu)return;if(menu.style.visibility=='visible'){if(menu.smShown)xphide(menu.smShown.id);menu.ClearMenuMark();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;};};};function xpsmout(sender){if(!sender)return;xpStartTimeOut(ShownMenu)};function xpsmover(menu){if(!menu)return;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 xpStartTimeOut(menu){for(var o=menu;o;o=o.smShown){var code='xphide("'+o.id+'");';if(!o.hideTimer&&o.id)o.hideTimer=setTimeout(code,hideTimeout);};};var ShownMenu=0,xobtn=null;
