document.write('<table id="vista-buttons.com:idxsg4i" width=0 cellpadding=0 cellspacing=0 border=0><tr><td style="padding-right:0px" title =" Home"><a href="index.html" target="_self" onmouseover=\'xpe("xsg4io");\' onmouseout=\'xpe("xsg4in");\'><img id="xpi_xsg4i" src="'+vbImgPath+'btxsg4i_0.gif" name="vbxsg4i" width="84" height="36" border="0" alt=" Home"/></a></td><td style="padding-right:0px" title ="  Visitors"><a href="Welcome.html" target="_self" onmouseover=\'xpe("lsg4io");xpshow("lsg4i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_lsg4i" src="'+vbImgPath+'btlsg4i_0.gif" name="vblsg4i" width="81" height="36" border="0" alt="  Visitors"/></a></td><td style="padding-right:0px" title ="  About Us"><a href="WhoWeAre.html" target="_self" onmouseover=\'xpe("bsg4io");xpshow("bsg4i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_bsg4i" src="'+vbImgPath+'btbsg4i_0.gif" name="vbbsg4i" width="94" height="36" border="0" alt="  About Us"/></a></td><td style="padding-right:0px" title ="  Leadership"><a href="Leadership.html" target="_self" onmouseover=\'xpe("fsg4io");xpshow("fsg4i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_fsg4i" src="'+vbImgPath+'btfsg4i_0.gif" name="vbfsg4i" width="101" height="36" border="0" alt="  Leadership"/></a></td><td style="padding-right:0px" title ="  Connect"><a target="_top" onmouseover=\'xpe("nsg4io");xpshow("nsg4i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_nsg4i" src="'+vbImgPath+'btnsg4i_0.gif" name="vbnsg4i" width="89" height="36" border="0" alt="  Connect"/></a></td><td style="padding-right:0px" title ="  Sunday School"><a href="SundaySchool.html" target="_self" onmouseover=\'xpe("hsg4io");xpshow("hsg4i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_hsg4i" src="'+vbImgPath+'bthsg4i_0.gif" name="vbhsg4i" width="123" height="36" border="0" alt="  Sunday School"/></a></td><td style="padding-right:0px" title ="  Ministries"><a href="Ministries.html" target="_self" onmouseover=\'xpe("jsg4io");xpshow("jsg4i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_jsg4i" src="'+vbImgPath+'btjsg4i_0.gif" name="vbjsg4i" width="91" height="36" border="0" alt="  Ministries"/></a></td><td style="padding-right:0px" title =" Spiritual Formation"><a href="Worship.html" target="_self" onmouseover=\'xpe("ksg4io");xpshow("ksg4i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_ksg4i" src="'+vbImgPath+'btksg4i_0.gif" name="vbksg4i" width="139" height="36" border="0" alt=" Spiritual Formation"/></a></td><td style="padding-right:0px" title =" Music"><a href="Music.html" target="_self" onmouseover=\'xpe("gsg4io");xpshow("gsg4i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_gsg4i" src="'+vbImgPath+'btgsg4i_0.gif" name="vbgsg4i" width="96" height="36" border="0" alt=" Music"/></a></td><td style="padding-right:0px" title =" Youth"><a href="Youth.html" target="_self" onmouseover=\'xpe("i3g4io");xpshow("i3g4i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_i3g4i" src="'+vbImgPath+'bti3g4i_0.gif" name="vbi3g4i" width="73" height="36" border="0" alt=" Youth"/></a></td></tr></table>');
document.write('<ul id="vbUL_lsg4i" class="vbULxsg4i" style="visibility:hidden;"><li><a href="Welcome.html" title="Welcome" target="_self">Welcome</a></li><li><img src="'+vbImgPath+'smnsg4i.gif"/><a href="ServiceTimes.html" title="Service Times" target="_self">Service&nbsp;Times</a></li><li><a href="ChildCare.html" title="Child Care" target="_self">Child&nbsp;Care</a></li><li><a href="WhatToExpect.html" title="What To Expect" target="_self">What&nbsp;To&nbsp;Expect</a></li><li><img src="'+vbImgPath+'smhsg4i.gif"/><a href="ContactUs.html" title="Contact Us" target="_self">Contact&nbsp;Us</a></li><li><a href="Directions.html" title="Directions" target="_self">Directions</a></li><li><a href="Parking.html" title="Parking" target="_self">Parking</a></li><li><a href="FloorPlans.html" title="Floor Plans" target="_self">Floor&nbsp;Plans</a></li><li><img src="'+vbImgPath+'smjsg4i.gif"/><a href="FAQ.html" title="FAQ" target="_self">FAQ</a></li></ul><ul id="vbUL_bsg4i" class="vbULxsg4i" style="visibility:hidden;"><li><a href="WhoWeAre.html" title="Who We Are" target="_self">Who&nbsp;We&nbsp;Are</a></li><li><a href="MissionVision.html" title="Mission & Vision" target="_self">Mission&nbsp;&&nbsp;Vision</a></li><li><a href="http://www.umc.org/site/c.1wL4KnN1LtH/b.1707359/k.BE59/Beliefs.htm" title="What We Believe" target="_parent">What&nbsp;We&nbsp;Believe</a></li><li><a href="http://www.umc.org/site/c.1wL4KnN1LtH/b.1720695/k.4FEC/Structure_Organization_Overview.htm" title="The United Methodist Church" target="_top">The&nbsp;United&nbsp;Methodist&nbsp;Church</a></li><li><a href="http://www.burlingtondistrictumc.org/templates/System/default.asp?id=28986" title="Burlington District" target="_top">Burlington&nbsp;District</a></li><li><a href="http://www.nccumc.org/" title="North Carolina Conference" target="_top">North&nbsp;Carolina&nbsp;Conference</a></li><li><a href="History.html" title="Bellemont\'s Heritage" target="_self">Bellemont\'s&nbsp;Heritage</a></li><li><img src="'+vbImgPath+'smgsg4i.gif"/><a href="photogallery.html" title="Photo Gallery" target="_self">Photo&nbsp;Gallery</a></li></ul><ul id="vbUL_fsg4i" class="vbULxsg4i" style="visibility:hidden;"><li><a href="Pastor.html" title="Senior Pastor" target="_self">Senior&nbsp;Pastor</a></li><li><a href="OfficeAdmin.html" title="Church Administrator" target="_self">Church&nbsp;Administrator</a></li><li><a href="YouthPastor.html" title="Youth Pastor" target="_self">Youth&nbsp;Pastor</a></li><li><a href="ChildrensPastor.html" title="Children\'s Pastor" target="_self">Children\'s&nbsp;Pastor</a></li><li><a href="MusicDirector.html" title="Music Director" target="_self">Music&nbsp;Director</a></li><li><a href="Pianist.html" title="Pianist" target="_self">Pianist</a></li><li><a href="NurseryDirector.html" title="Nursery Director" target="_self">Nursery&nbsp;Director</a></li><li><a href="Intern.html" title="Interns" target="_self">Interns</a></li><li><a href="LayLeadership.html" title="Lay Leadership" target="_self">Lay&nbsp;Leadership</a></li></ul><ul id="vbUL_nsg4i" class="vbULxsg4i" style="visibility:hidden;"><li><a href="http://www.mychurchevents.com/calendar/calendar.aspx?ci=G1J4F0G1G1F0O9L6I3" title="Calendar" target="_top">Calendar</a></li><li><a href="http://www.bellemontumc.org/PDFs/Bulletin.pdf" title="Bulletin" target="_top">Bulletin</a></li><li><a href="PDFs/Newsletter.pdf" title="Current Newsletter" target="_parent">Current&nbsp;Newsletter</a></li><li><a title="Audio Worship Service" target="_top">Audio&nbsp;Worship&nbsp;Service</a></li><li><a href="BellemontNews.html" title="Bellemont News" target="_top">Bellemont&nbsp;News</a></li><li><a href="Membership.html" title="Membership" target="_self">Membership</a></li><li><a href="Newsletter.html" title="Previous Newsletters" target="_top">Previous&nbsp;Newsletters</a></li></ul><ul id="vbUL_hsg4i" class="vbULxsg4i" style="visibility:hidden;"><li><a href="SSNewMom.html" title="New Parents" target="_self">New&nbsp;Parents</a></li><li><a href="SSPreK.html" title="Preschool" target="_self">Preschool</a></li><li><a href="SSElementary.html" title="Elementary" target="_self">Elementary</a></li><li><a href="SSMiddle.html" title="Middle School" target="_self">Middle&nbsp;School</a></li><li><a href="SSHigh.html" title="High School" target="_self">High&nbsp;School</a></li><li><a href="SSCollege.html" title="College" target="_self">College</a></li><li><a href="SSAdult.html" title="Adult Classes" target="_self">Adult&nbsp;Classes</a></li><li><a href="SSMen.html" title="Just For Men" target="_self">Just&nbsp;For&nbsp;Men</a></li><li><a href="SSWomen.html" title="Just For Women" target="_self">Just&nbsp;For&nbsp;Women</a></li><li><a href="SSSeniors.html" title="Seniors" target="_self">Seniors</a></li></ul><ul id="vbUL_jsg4i" class="vbULxsg4i" style="visibility:hidden;"><li><a href="UMM.html" title="United Methodist Men" target="_self">United&nbsp;Methodist&nbsp;Men</a></li><li><a href="UMW.html" title="United Methodist Women" target="_self">United&nbsp;Methodist&nbsp;Women</a></li><li><a href="GoldenAgers.html" title="Golden Agers" target="_self">Golden&nbsp;Agers</a></li><li><a href="Youth.html" title="Youth" target="_self">Youth</a></li><li><a href="ChildrensMinistry.html" title="Children" target="_self">Children</a></li><li><a href="Recreation.html" title="Recreation" target="_self">Recreation</a></li><li><a href="CubScouts.html" title="Cub Scouts" target="_self">Cub&nbsp;Scouts</a></li><li><a href="BoyScouts.html" title="Boy Scouts" target="_self">Boy&nbsp;Scouts</a></li><li><a href="GirlScouts.html" title="Girl Scouts" target="_self">Girl&nbsp;Scouts</a></li><li><a href="Multimedia.html" title="Multimedia" target="_self">Multimedia</a></li><li><a href="Prayer.html" title="Prayer" target="_self">Prayer</a></li><li><a href="PrisonMinistry.html" title="Prison Ministry" target="_self">Prison&nbsp;Ministry</a></li><li><a href="Outreach.html" title="Outreach" target="_self">Outreach</a></li><li><a href="ShutIn.html" title="Shut-in Tape Ministry" target="_self">Shut-in&nbsp;Tape&nbsp;Ministry</a></li><li><a href="Memorial.html" title="Memorial Association" target="_self">Memorial&nbsp;Association</a></li><li><a href="OtherMinistries.html" title="Other Ministries" target="_self">Other&nbsp;Ministries</a></li><li><a href="SafeSanctuary.html" title="Safe Sanctuary" target="_self">Safe&nbsp;Sanctuary</a></li></ul><ul id="vbUL_ksg4i" class="vbULxsg4i" style="visibility:hidden;"><li><a href="Worship.html" title="Worship" target="_self">Worship</a></li><li><a href="LayWitness.html" title="Lay Witness Mission" target="_self">Lay&nbsp;Witness&nbsp;Mission</a></li><li><a href="SundaySchool.html" title="Christan Education" target="_self">Christan&nbsp;Education</a></li><li><a href="Confirmation.html" title="Confirmation" target="_self">Confirmation</a></li><li><a href="BibleStudy.html" title="Bible Study" target="_self">Bible&nbsp;Study</a></li><li><a href="Retreats.html" title="Retreats" target="_self">Retreats</a></li><li><a href="District.html" title="District Events" target="_top">District&nbsp;Events</a></li><li><a href="SpiritualRenewal.html" title="Journey of Spiritual renewal" target="_self">Journey&nbsp;of&nbsp;Spiritual&nbsp;renewal</a></li></ul><ul id="vbUL_gsg4i" class="vbULxsg4i" style="visibility:hidden;"><li><a href="Choir.html" title="Choir" target="_self">Choir</a></li><li><a href="PraiseBand.html" title="Praise Band" target="_self">Praise&nbsp;Band</a></li><li><a href="Instrument.html" title="Instrumental Team" target="_self">Instrumental&nbsp;Team</a></li><li><a href="Special.html" title="Special Music" target="_self">Special&nbsp;Music</a></li><li><a href="Cantata.html" title="Cantata" target="_self">Cantata</a></li><li><a href="Sound.html" title="Sound" target="_self">Sound</a></li></ul><ul id="vbUL_i3g4i" class="vbULxsg4i" style="visibility:hidden;"><li><a href="FlamePit.html" title="Flame Pit" target="_self">Flame&nbsp;Pit</a></li><li><a href="ChildrensMinistry.html" title="Children" target="_self">Children</a></li></ul>');
vbxsg4in=xppr('xsg4i_0.gif');vbxsg4io=xppr('xsg4i_1.gif');vblsg4in=xppr('lsg4i_0.gif');vblsg4io=xppr('lsg4i_1.gif');vbbsg4in=xppr('bsg4i_0.gif');vbbsg4io=xppr('bsg4i_1.gif');vbfsg4in=xppr('fsg4i_0.gif');vbfsg4io=xppr('fsg4i_1.gif');vbnsg4in=xppr('nsg4i_0.gif');vbnsg4io=xppr('nsg4i_1.gif');vbhsg4in=xppr('hsg4i_0.gif');vbhsg4io=xppr('hsg4i_1.gif');vbjsg4in=xppr('jsg4i_0.gif');vbjsg4io=xppr('jsg4i_1.gif');vbksg4in=xppr('ksg4i_0.gif');vbksg4io=xppr('ksg4i_1.gif');vbgsg4in=xppr('gsg4i_0.gif');vbgsg4io=xppr('gsg4i_1.gif');vbi3g4in=xppr('i3g4i_0.gif');vbi3g4io=xppr('i3g4i_1.gif');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;

