document.write('<table id="vista-buttons.com:idxptx1" width=0 cellpadding=0 cellspacing=0 border=0><tr><td style="padding-right:1px" title ="Home"><a href="http://www.marksrvandmarine.com/index.html" target="_self" onmouseover=\'xpe("xptx1o");\' onmouseout=\'xpe("xptx1n");\'><img id="xpi_xptx1" src="'+vbImgPath+'btxptx1_0.gif" name="vbxptx1" width="60" height="32" border="0" alt="Home"/></a></td><td style="padding-right:1px" title ="New RVs"><a href="http://marksrvandmarine.rvusa.com/inventory.asp?condition=1" target="_self" onmouseover=\'xpe("lptx1o");\' onmouseout=\'xpe("lptx1n");\'><img id="xpi_lptx1" src="'+vbImgPath+'btlptx1_0.gif" name="vblptx1" width="84" height="32" border="0" alt="New RVs"/></a></td><td style="padding-right:1px" title ="Used RVs"><a href="http://marksrvandmarine.rvusa.com/inventory.asp?condition=2" target="_self" onmouseover=\'xpe("bptx1o");\' onmouseout=\'xpe("bptx1n");\'><img id="xpi_bptx1" src="'+vbImgPath+'btbptx1_0.gif" name="vbbptx1" width="88" height="32" border="0" alt="Used RVs"/></a></td><td style="padding-right:1px" title ="New Boats"><a href="http://marksrvandmarine.boatplace.net/inventory_b.asp?condition=1" target="_self" onmouseover=\'xpe("fptx1o");\' onmouseout=\'xpe("fptx1n");\'><img id="xpi_fptx1" src="'+vbImgPath+'btfptx1_0.gif" name="vbfptx1" width="93" height="32" border="0" alt="New Boats"/></a></td><td style="padding-right:1px" title ="Used Boats"><a href=" http://marksrvandmarine.boatplace.net/inventory_b.asp?condition=0" target="_self" onmouseover=\'xpe("nptx1o");\' onmouseout=\'xpe("nptx1n");\'><img id="xpi_nptx1" src="'+vbImgPath+'btnptx1_0.gif" name="vbnptx1" width="97" height="32" border="0" alt="Used Boats"/></a></td><td style="padding-right:1px" title ="RV Center"><a onmouseover=\'xpe("hptx1o");xpshow("hptx1",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_hptx1" src="'+vbImgPath+'bthptx1_0.gif" name="vbhptx1" width="103" height="32" border="0" alt="RV Center"/></a></td><td style="padding-right:1px" title ="Boat Center"><a onmouseover=\'xpe("jptx1o");xpshow("jptx1",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_jptx1" src="'+vbImgPath+'btjptx1_0.gif" name="vbjptx1" width="112" height="32" border="0" alt="Boat Center"/></a></td><td style="padding-right:1px" title ="Specials"><a onmouseover=\'xpe("kptx1o");xpshow("kptx1",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_kptx1" src="'+vbImgPath+'btkptx1_0.gif" name="vbkptx1" width="85" height="32" border="0" alt="Specials"/></a></td><td style="padding-right:1px" title ="Mark\'s"><a onmouseover=\'xpe("gptx1o");xpshow("gptx1",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_gptx1" src="'+vbImgPath+'btgptx1_0.gif" name="vbgptx1" width="80" height="32" border="0" alt="Mark\'s"/></a></td><td style="padding-right:1px" title ="Lifestyle"><a onmouseover=\'xpe("iotx1o");xpshow("iotx1",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\'><img id="xpi_iotx1" src="'+vbImgPath+'btiotx1_0.gif" name="vbiotx1" width="89" height="32" border="0" alt="Lifestyle"/></a></td></tr></table>');
document.write('<ul id="vbUL_hptx1" class="vbULxptx1" style="visibility:hidden;"><li><img src="'+vbImgPath+'smxptx1.gif"/><a href="http://marksrvandmarine.rvusa.com/inventory.asp" title="All RV Inventory Search" target="_self">All&nbsp;RV&nbsp;Inventory&nbsp;Search</a></li><li><img src="'+vbImgPath+'smdotx1.gif"/><a href="http://www.marksrvandmarine.com/coleman-camping-trailers.html" title="Coleman Camping Trailers" target="_self">Coleman&nbsp;Camping&nbsp;Trailers</a></li><li><img src="'+vbImgPath+'smdotx1.gif"/><a href="http://www.marksrvandmarine.com/coachmen_rvs.htm" title="Coachmen RV" target="_self">Coachmen&nbsp;RV</a><ul id="vbUL_1otx1" class="vbULxptx1"><li><a href="http://www.marksrvandmarine.com/coachmen_catalina_travel_trailer.htm" title="Catalina Travel Trailer">Catalina&nbsp;Travel&nbsp;Trailer</a></li><li><a href="http://www.marksrvandmarine.com/coachmen_chapparal_fifth_wheel.htm" title="Chapparal Fifth Wheel">Chapparal&nbsp;Fifth&nbsp;Wheel</a></li><li><a href="http://www.marksrvandmarine.com/coachmen_chaparral_lite_fifth_wh.htm" title="Chaparral Lite Fifth Wheel">Chaparral&nbsp;Lite&nbsp;Fifth&nbsp;Wheel</a></li><li><a href="http://www.marksrvandmarine.com/coachmen_freedom_express_travel.htm" title="Freedom Express Trailer">Freedom&nbsp;Express&nbsp;Trailer</a></li><li><a href="http://www.marksrvandmarine.com/coachmen_class_c_freelander_moto.htm" title="Freelander Class C Motorhome">Freelander&nbsp;Class&nbsp;C&nbsp;Motorhome</a></li></ul></li><li><img src="'+vbImgPath+'smdotx1.gif"/><a href="http://www.marksrvandmarine.com/forest_river_rvs.htm" title="Forest River RV" target="_self">Forest&nbsp;River&nbsp;RV</a><ul id="vbUL_cotx1" class="vbULxptx1"><li><a href="http://www.marksrvandmarine.com/forest_river_cedar_creek_fifth_wh.htm" title="Cedar Creek Fifth Wheel" target="_self">Cedar&nbsp;Creek&nbsp;Fifth&nbsp;Wheel</a></li><li><a href="http://www.marksrvandmarine.com/forest_river_silverback_fifth_wh.htm" title="Silverback Fifth Wheel">Silverback&nbsp;Fifth&nbsp;Wheel</a></li><li><a href="http://www.marksrvandmarine.com/cherokee-travel-trailers.html" title="Cherokee Travel Trailers">Cherokee&nbsp;Travel&nbsp;Trailers</a></li><li><a href="http://www.marksrvandmarine.com/grey-wolf-travel-trailers.html" title="Grey Wolf Travel Trailers">Grey&nbsp;Wolf&nbsp;Travel&nbsp;Trailers</a></li><li><a href="http://www.marksrvandmarine.com/wolf-pack-travel-trailers.html" title="Wolf Pack Travel Trailers">Wolf&nbsp;Pack&nbsp;Travel&nbsp;Trailers</a></li></ul></li><li><img src="'+vbImgPath+'sm5otx1.gif"/><a href="http://www.marksrvandmarine.com/rv-parts-and-accessories.html" title="RV Accessories and Parts" target="_self">RV&nbsp;Accessories&nbsp;and&nbsp;Parts</a></li><li><img src="'+vbImgPath+'smqotx1.gif"/><a href="http://www.marksrvandmarine.com/boat-and-rv-storage.html" title="RV Storage">RV&nbsp;Storage</a></li><li><img src="'+vbImgPath+'sm7otx1.gif"/><a href="http://www.marksrvandmarine.com/rv-service.html" title="RV Service">RV&nbsp;Service</a></li><li><img src="'+vbImgPath+'smkptx1.gif"/><a href="http://www.marksrvandmarine.com/rv-finance.html" title="RV Financing" target="_self">RV&nbsp;Financing</a></li></ul><ul id="vbUL_jptx1" class="vbULxptx1" style="visibility:hidden;"><li><img src="'+vbImgPath+'smxptx1.gif"/><a href="http://marksrvandmarine.boatplace.net/inventory_b.asp" title="All Boat Inventory Search" target="_self">All&nbsp;Boat&nbsp;Inventory&nbsp;Search</a></li><li><img src="'+vbImgPath+'smdotx1.gif"/><a href="http://www.marksrvandmarine.com/bayliner_boats.htm" title="Bayliner Boats" target="_self">Bayliner&nbsp;Boats</a></li><li><img src="'+vbImgPath+'smdotx1.gif"/><a href="http://www.marksrvandmarine.com/harris_flote_bote.htm" title="Harris Pontoons">Harris&nbsp;Pontoons</a></li><li><img src="'+vbImgPath+'smdotx1.gif"/><a href="http://www.marksrvandmarine.com/regal_boats.htm" title="Regal Boats">Regal&nbsp;Boats</a></li><li><img src="'+vbImgPath+'smdotx1.gif"/><a href="http://www.marksrvandmarine.com/trophy_boats.htm" title="Trophy Boats">Trophy&nbsp;Boats</a></li><li><img src="'+vbImgPath+'smdotx1.gif"/><a href="http://www.marksrvandmarine.com/mercury-motors.html" title="Mercury Outboard Motors">Mercury&nbsp;Outboard&nbsp;Motors</a></li><li><img src="'+vbImgPath+'smmotx1.gif"/><a href="http://www.marksrvandmarine.com/boat-parts-accessories.html" title="Boat Accessories & Parts">Boat&nbsp;Accessories&nbsp;&&nbsp;Parts</a></li><li><img src="'+vbImgPath+'smqotx1.gif"/><a href="http://www.marksrvandmarine.com/boat-and-rv-storage.html" title="Boat Storage">Boat&nbsp;Storage</a></li><li><img src="'+vbImgPath+'sm7otx1.gif"/><a href="http://www.marksrvandmarine.com/boat-service.html" title="Boat Service">Boat&nbsp;Service</a></li><li><img src="'+vbImgPath+'smkptx1.gif"/><a href="http://www.marksrvandmarine.com/boat-finance.html" title="Boat Finance">Boat&nbsp;Finance</a></li></ul><ul id="vbUL_kptx1" class="vbULxptx1" style="visibility:hidden;"><li><img src="'+vbImgPath+'smaotx1.gif"/><a href="http://www.marksrvandmarine.com/boat-specials.html" title="Boat Specials">Boat&nbsp;Specials</a></li><li><img src="'+vbImgPath+'smaotx1.gif"/><a href="http://www.marksrvandmarine.com/rv-specials.html" title="RV Specials">RV&nbsp;Specials</a></li><li><img src="'+vbImgPath+'smbptx1.gif"/><a href="http://www.marksrvandmarine.com/coupon-offers.html" title="Coupon Offers">Coupon&nbsp;Offers</a></li><li><img src="'+vbImgPath+'smcotx1.gif"/><a href="http://www.marksrvandmarine.com/news-events.html" title="Events Schedule">Events&nbsp;Schedule</a></li></ul><ul id="vbUL_gptx1" class="vbULxptx1" style="visibility:hidden;"><li><img src="'+vbImgPath+'smsotx1.gif"/><a href="http://www.marksrvandmarine.com/index.html" title="Home Page">Home&nbsp;Page</a></li><li><img src="'+vbImgPath+'smgptx1.gif"/><a href="http://www.marksrvandmarine.com/about-marks.html" title="About Us">About&nbsp;Us</a></li><li><img src="'+vbImgPath+'smnptx1.gif"/><a href="http://www.marksrvandmarine.com/media-press.html" title="Media / Press">Media&nbsp;/&nbsp;Press</a></li><li><img src="'+vbImgPath+'sm1otx1.gif"/><a href="http://www.marksrvandmarine.com/churchville.html" title="Churchville, NY">Churchville,&nbsp;NY</a></li><li><img src="'+vbImgPath+'sm1otx1.gif"/><a href="http://www.marksrvandmarine.com/conesus.html" title="Conesus, NY">Conesus,&nbsp;NY</a></li><li><img src="'+vbImgPath+'smlptx1.gif"/><a href="http://www.marksrvandmarine.com/employment.html" title="Job Opportunities">Job&nbsp;Opportunities</a></li><li><img src="'+vbImgPath+'smfptx1.gif"/><a href="http://www.marksrvandmarine.com/contact.html" title="Contact Us">Contact&nbsp;Us</a></li></ul><ul id="vbUL_iotx1" class="vbULxptx1" style="visibility:hidden;"><li><img src="'+vbImgPath+'smhptx1.gif"/><a href="http://www.marksrvandmarine.com/boating-lifestyle.html" title="Boating Lifestyle">Boating&nbsp;Lifestyle</a></li><li><img src="'+vbImgPath+'smiotx1.gif"/><a href="http://www.marksrvandmarine.com/rv-lifestyle.html" title="RV Lifestyle">RV&nbsp;Lifestyle</a></li><li><img src="'+vbImgPath+'smjptx1.gif"/><a href="http://www.marksrvandmarine.com/truck-tricks.html" title="Truck Tricks">Truck&nbsp;Tricks</a></li></ul>');
vbxptx1n=xppr('xptx1_0.gif');vbxptx1o=xppr('xptx1_1.gif');vblptx1n=xppr('lptx1_0.gif');vblptx1o=xppr('lptx1_1.gif');vbbptx1n=xppr('bptx1_0.gif');vbbptx1o=xppr('bptx1_1.gif');vbfptx1n=xppr('fptx1_0.gif');vbfptx1o=xppr('fptx1_1.gif');vbnptx1n=xppr('nptx1_0.gif');vbnptx1o=xppr('nptx1_1.gif');vbhptx1n=xppr('hptx1_0.gif');vbhptx1o=xppr('hptx1_1.gif');vbjptx1n=xppr('jptx1_0.gif');vbjptx1o=xppr('jptx1_1.gif');vbkptx1n=xppr('kptx1_0.gif');vbkptx1o=xppr('kptx1_1.gif');vbgptx1n=xppr('gptx1_0.gif');vbgptx1o=xppr('gptx1_1.gif');vbiotx1n=xppr('iotx1_0.gif');vbiotx1o=xppr('iotx1_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;
