document.write('<table id="vista-buttons.com:idv3skq" width=0 cellpadding=0 cellspacing=0 border=0><tr><td style="padding-bottom:8px" title ="Home"><a href="http://www.nvemc.org/index.html" target="_self" onmouseover=\'xpe("v3skqo");\' onmouseout=\'xpe("v3skqn");\' onmousedown=\'xpe("v3skqc");\'><img id="xpi_v3skq" src="'+vbImgPath+'btv3skq_0.gif" name="vbv3skq" width="180" height="28" border="0" alt="Home"/></a></td></tr><tr><td style="padding-bottom:8px" title ="Payments"><a onmouseover=\'xpe("y3skqo");xpshow("y3skq",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("y3skqc");\'><img id="xpi_y3skq" src="'+vbImgPath+'bty3skq_0.gif" name="vby3skq" width="180" height="28" border="0" alt="Payments"/></a></td></tr><tr><td style="padding-bottom:8px" title ="Receiving Service"><a onmouseover=\'xpe("x3skqo");xpshow("x3skq",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("x3skqc");\'><img id="xpi_x3skq" src="'+vbImgPath+'btx3skq_0.gif" name="vbx3skq" width="180" height="28" border="0" alt="Receiving Service"/></a></td></tr><tr><td style="padding-bottom:8px" title ="Energy Information"><a onmouseover=\'xpe("l3skqo");xpshow("l3skq",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("l3skqc");\'><img id="xpi_l3skq" src="'+vbImgPath+'btl3skq_0.gif" name="vbl3skq" width="180" height="28" border="0" alt="Energy Information"/></a></td></tr><tr><td style="padding-bottom:8px" title ="Grassroots Energy"><a href="http://www.nvemc.org/grassroots.htm" target="_self" onmouseover=\'xpe("b3skqo");\' onmouseout=\'xpe("b3skqn");\' onmousedown=\'xpe("b3skqc");\'><img id="xpi_b3skq" src="'+vbImgPath+'btb3skq_0.gif" name="vbb3skq" width="180" height="28" border="0" alt="Grassroots Energy"/></a></td></tr><tr><td style="padding-bottom:8px" title ="Goodwil Fund"><a onmouseover=\'xpe("f3skqo");xpshow("f3skq",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("f3skqc");\'><img id="xpi_f3skq" src="'+vbImgPath+'btf3skq_0.gif" name="vbf3skq" width="180" height="28" border="0" alt="Goodwil Fund"/></a></td></tr><tr><td style="padding-bottom:8px" title ="Irrigation"><a onmouseover=\'xpe("n3skqo");xpshow("n3skq",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("n3skqc");\'><img id="xpi_n3skq" src="'+vbImgPath+'btn3skq_0.gif" name="vbn3skq" width="180" height="28" border="0" alt="Irrigation"/></a></td></tr><tr><td style="padding-bottom:8px" title ="Coop News"><a onmouseover=\'xpe("h3skqo");xpshow("h3skq",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("h3skqc");\'><img id="xpi_h3skq" src="'+vbImgPath+'bth3skq_0.gif" name="vbh3skq" width="180" height="28" border="0" alt="Coop News"/></a></td></tr><tr><td style="padding-bottom:8px" title ="Safety Links"><a href="http://www.NVEMC.org/safety.htm" target="_self" onmouseover=\'xpe("j3skqo");\' onmouseout=\'xpe("j3skqn");\' onmousedown=\'xpe("j3skqc");\'><img id="xpi_j3skq" src="'+vbImgPath+'btj3skq_0.gif" name="vbj3skq" width="180" height="28" border="0" alt="Safety Links"/></a></td></tr><tr><td style="padding-bottom:8px" title ="About Us"><a onmouseover=\'xpe("k3skqo");xpshow("k3skq",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("k3skqc");\'><img id="xpi_k3skq" src="'+vbImgPath+'btk3skq_0.gif" name="vbk3skq" width="180" height="28" border="0" alt="About Us"/></a></td></tr><tr><td style="padding-bottom:8px" title ="Contact Us"><a onmouseover=\'xpe("g3skqo");xpshow("g3skq",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("g3skqc");\'><img id="xpi_g3skq" src="'+vbImgPath+'btg3skq_0.gif" name="vbg3skq" width="180" height="28" border="0" alt="Contact Us"/></a></td></tr><tr><td style="padding-bottom:8px" title ="Area Links"><a onmouseover=\'xpe("irskqo");xpshow("irskq",1,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("irskqc");\'><img id="xpi_irskq" src="'+vbImgPath+'btirskq_0.gif" name="vbirskq" width="180" height="28" border="0" alt="Area Links"/></a></td></tr></table>');
document.write('<ul id="vbUL_y3skq" class="vbULv3skq" style="visibility:hidden;"><li><img src="'+vbImgPath+'smn3skq.gif"/><a href="http://www.autopayments.com/niobrara/niobrara.html" title="Online Payments" target="_self">Online&nbsp;Payments</a></li><li><a href="http://www.NVEMC.org/budgetbill.htm" title="Budget Billing Option" target="_self">Budget&nbsp;Billing&nbsp;Option</a></li><li><a href="http://www.nvemc.org/autopay.htm" title="Automatic Bank Withdrawal" target="_self">Automatic&nbsp;Bank&nbsp;Withdrawal</a></li><li><a href="http://NVEMC.org/meterreading.htm" title="Submit Meter Readings" target="_self">Submit&nbsp;Meter&nbsp;Readings</a></li></ul><ul id="vbUL_x3skq" class="vbULv3skq" style="visibility:hidden;"><li><a href="http://www.NVEMC.org/newmember.htm" title="Becoming a Member" target="_self">Becoming&nbsp;a&nbsp;Member</a></li><li><a href="http://wwww.nvemc.org/services.htm" title="Services Provided" target="_self">Services&nbsp;Provided</a></li><li><a href="http://www.nvemc.org/meterreading.htm" title="Reading Your Meter">Reading&nbsp;Your&nbsp;Meter</a></li></ul><ul id="vbUL_l3skq" class="vbULv3skq" style="visibility:hidden;"><li><a href="http://www.nvemc.org/energytips.htm" title="Energy Efficiency Tips">Energy&nbsp;Efficiency&nbsp;Tips</a></li><li><a href="http://www.nvemc.org/energysitelinks.htm" title="Energy Information Site Links">Energy&nbsp;Information&nbsp;Site&nbsp;Links</a></li><li><a href="http://nvemc.apogee.net/homesuite/reshouse/select.aspx" title="Calculate Your Energy Cost" target="_self">Calculate&nbsp;Your&nbsp;Energy&nbsp;Cost</a></li><li><a title="Energy Rebate Programs">Energy&nbsp;Rebate&nbsp;Programs</a><img src="'+vbImgPath+'arv3skq.gif"/><ul id="vbUL_1rskq" class="vbULv3skq"><li><a href="http://www.nvemc.org/rebatearealighting.htm" title="Area Lighting " target="_self">Area&nbsp;Lighting&nbsp;</a></li><li><a href="http://www.nvemc.org/rebateheatpump.htm" title="Heat Pumps" target="_self">Heat&nbsp;Pumps</a></li><li><a href="http://www.nvemc.org/rebatecfl.htm" title="CFL\'s">CFL\'s</a></li></ul></li></ul><ul id="vbUL_f3skq" class="vbULv3skq" style="visibility:hidden;"><li><a href="http://www.NVEMC.org/roundupstory.htm" title="Operation RoundUp Story" target="_self">Operation&nbsp;RoundUp&nbsp;Story</a></li><li><a href="http://www.NVEMC.org/donations.htm" title="What\'s Been Done" target="_self">What\'s&nbsp;Been&nbsp;Done</a></li><li><a href="http://www.NVEMC.org/goodwillboard.htm" title="Goodwill Fund Board " target="_self">Goodwill&nbsp;Fund&nbsp;Board&nbsp;</a></li><li><a href="http://www.NVEMC.org/scholarship.htm" title="Scholarship Program" target="_self">Scholarship&nbsp;Program</a></li><li><a href="http://www.NVEMC.org/goodwillapplications.htm" title="Application Forms">Application&nbsp;Forms</a></li></ul><ul id="vbUL_n3skq" class="vbULv3skq" style="visibility:hidden;"><li><a href="http://demand.nppd.com/demand/demand.asp?group=b&domain=nvemc" title="Load Control Information" target="_self">Load&nbsp;Control&nbsp;Information</a></li><li><a href="http://www.NVEMC.org/irrig.htm" title="Load Control Program" target="_self">Load&nbsp;Control&nbsp;Program</a></li></ul><ul id="vbUL_h3skq" class="vbULv3skq" style="visibility:hidden;"><li><img src="'+vbImgPath+'smdrskq.gif"/><a href="http://www.NVEMC.org/newsletters.htm" title="Newsletters" target="_self">Newsletters</a></li><li><img src="'+vbImgPath+'sm1rskq.gif"/><a href="http://www.NVEMC.org/annualmeeting.htm" title="Annual Meeting News" target="_self">Annual&nbsp;Meeting&nbsp;News</a></li><li><img src="'+vbImgPath+'smcrskq.gif"/><a href="http://www.NVEMC.org/coopnews.htm" title="Cooperative News" target="_self">Cooperative&nbsp;News</a></li><li><img src="'+vbImgPath+'smirskq.gif"/><a href="http://www.NVEMC.org/photogallery.htm" title="Photo Gallery" target="_self">Photo&nbsp;Gallery</a></li></ul><ul id="vbUL_k3skq" class="vbULv3skq" style="visibility:hidden;"><li><a href="http://www./NVEMC.org/history.htm" title="Cooperative History" target="_self">Cooperative&nbsp;History</a></li><li><a href="http://www.NVEMC.org/board.htm" title="Board of Directors" target="_self">Board&nbsp;of&nbsp;Directors</a></li><li><a href="http://www.NVEMC.org/servicearea.htm" title="Service Area" target="_self">Service&nbsp;Area</a></li></ul><ul id="vbUL_g3skq" class="vbULv3skq" style="visibility:hidden;"><li><a href="http://www.NVEMC.org/emergency.htm" title="Contact Us 24/7" target="_self">Contact&nbsp;Us&nbsp;24/7</a></li><li><a href="http://www.NVEMC.org/staff.htm" title="Staff Listing" target="_self">Staff&nbsp;Listing</a></li></ul><ul id="vbUL_irskq" class="vbULv3skq" style="visibility:hidden;"><li><a href="http://www.NVEMC.org/recreation.htm" title="Local Area Information" target="_self">Local&nbsp;Area&nbsp;Information</a></li><li><a title="Local Industry">Local&nbsp;Industry</a><img src="'+vbImgPath+'arv3skq.gif"/><ul id="vbUL_crskq" class="vbULv3skq"><li><a href="http://www.NVEMC.org/alphagalv.htm" title="Alpha Galvanizing" target="_self">Alpha&nbsp;Galvanizing</a></li><li><a href="http://www.NVEMC.org/olsons.htm" title="Olson Industries" target="_self">Olson&nbsp;Industries</a></li><li><a href="http://www.rowserakes.com" title="Rowse Hydraulic Rakes" target="_self">Rowse&nbsp;Hydraulic&nbsp;Rakes</a></li><li><a href="http://www.NVEMC.org/rustgo.htm" title="Rust Construction" target="_self">Rust&nbsp;Construction</a></li></ul></li><li><a href="http://www.NVEMC.org/otherlinks.htm" title="Out of Area Links" target="_self">Out&nbsp;of&nbsp;Area&nbsp;Links</a></li></ul>');
vbv3skqn=xppr('v3skq_0.gif');vbv3skqo=xppr('v3skq_1.gif');vbv3skqc=xppr('v3skq_2.gif');vby3skqn=xppr('y3skq_0.gif');vby3skqo=xppr('y3skq_1.gif');vby3skqc=xppr('y3skq_2.gif');vbx3skqn=xppr('x3skq_0.gif');vbx3skqo=xppr('x3skq_1.gif');vbx3skqc=xppr('x3skq_2.gif');vbl3skqn=xppr('l3skq_0.gif');vbl3skqo=xppr('l3skq_1.gif');vbl3skqc=xppr('l3skq_2.gif');vbb3skqn=xppr('b3skq_0.gif');vbb3skqo=xppr('b3skq_1.gif');vbb3skqc=xppr('b3skq_2.gif');vbf3skqn=xppr('f3skq_0.gif');vbf3skqo=xppr('f3skq_1.gif');vbf3skqc=xppr('f3skq_2.gif');vbn3skqn=xppr('n3skq_0.gif');vbn3skqo=xppr('n3skq_1.gif');vbn3skqc=xppr('n3skq_2.gif');vbh3skqn=xppr('h3skq_0.gif');vbh3skqo=xppr('h3skq_1.gif');vbh3skqc=xppr('h3skq_2.gif');vbj3skqn=xppr('j3skq_0.gif');vbj3skqo=xppr('j3skq_1.gif');vbj3skqc=xppr('j3skq_2.gif');vbk3skqn=xppr('k3skq_0.gif');vbk3skqo=xppr('k3skq_1.gif');vbk3skqc=xppr('k3skq_2.gif');vbg3skqn=xppr('g3skq_0.gif');vbg3skqo=xppr('g3skq_1.gif');vbg3skqc=xppr('g3skq_2.gif');vbirskqn=xppr('irskq_0.gif');vbirskqo=xppr('irskq_1.gif');vbirskqc=xppr('irskq_2.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;

