document.write('<table id="vista-buttons.com:idxthm3" width=0 cellpadding=0 cellspacing=0 border=0><tr><td style="padding-right:0px" title ="Home"><a href="http://www.drviggiano.com/index.html" onmouseover=\'xpe("xthm3o");\' onmouseout=\'xpe("xthm3n");\' onmousedown=\'xpe("xthm3c");\'><img id="xpi_xthm3" src="'+vbImgPath+'/btxthm3_0.gif" name="vbxthm3" width="133" height="29" border="0" alt="Home"/></a></td><td style="padding-right:0px" title ="Our Practice"><a onmouseover=\'xpe("lthm3o");xpshow("lthm3",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("lthm3c");\'><img id="xpi_lthm3" src="'+vbImgPath+'/btlthm3_0.gif" name="vblthm3" width="133" height="29" border="0" alt="Our Practice"/></a></td><td style="padding-right:0px" title ="Services"><a onmouseover=\'xpe("bthm3o");xpshow("bthm3",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("bthm3c");\'><img id="xpi_bthm3" src="'+vbImgPath+'/btbthm3_0.gif" name="vbbthm3" width="133" height="29" border="0" alt="Services"/></a></td><td style="padding-right:0px" title ="Information"><a onmouseover=\'xpe("fthm3o");xpshow("fthm3",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("fthm3c");\'><img id="xpi_fthm3" src="'+vbImgPath+'/btfthm3_0.gif" name="vbfthm3" width="134" height="29" border="0" alt="Information"/></a></td><td style="padding-right:0px" title ="Testimonials"><a href="http://www.drviggiano.com/Testimonials.html" onmouseover=\'xpe("nthm3o");\' onmouseout=\'xpe("nthm3n");\' onmousedown=\'xpe("nthm3c");\'><img id="xpi_nthm3" src="'+vbImgPath+'/btnthm3_0.gif" name="vbnthm3" width="134" height="29" border="0" alt="Testimonials"/></a></td><td style="padding-right:0px" title ="Gallery"><a href="http://www.drviggiano.com/Honduras_Gallery.html" onmouseover=\'xpe("hthm3o");xpshow("hthm3",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("hthm3c");\'><img id="xpi_hthm3" src="'+vbImgPath+'/bththm3_0.gif" name="vbhthm3" width="133" height="29" border="0" alt="Gallery"/></a></td><td style="padding-right:0px" title ="Contact"><a href="http://www.drviggiano.com/Contact.html" onmouseover=\'xpe("jthm3o");\' onmouseout=\'xpe("jthm3n");\' onmousedown=\'xpe("jthm3c");\'><img id="xpi_jthm3" src="'+vbImgPath+'/btjthm3_0.gif" name="vbjthm3" width="133" height="29" border="0" alt="Contact"/></a></td></tr></table>');
document.write('<ul id="vbUL_lthm3" class="vbULxthm3" style="visibility:hidden;"><li><a href="http://www.drviggiano.com/The_Doctor.html" title="About Doctor Viggiano">&nbsp;&nbsp;&nbsp;&nbsp;About&nbsp;Doctor&nbsp;Viggiano</a></li><li><a href="http://www.drviggiano.com/Our_Staff.html" title="Our Staff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Our&nbsp;Staff</a></li><li><a title=" Facility">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Facility</a><ul id="vbUL_kthm3" class="vbULxthm3"><li><a href="http://www.drviggiano.com/Location_Description.html" title="Facility Description">Facility&nbsp;Description</a></li><li><a href="http://www.drviggiano.com/Location_Map.html" title="Facility Location Map">Facility&nbsp;Location&nbsp;Map</a></li></ul></li></ul><ul id="vbUL_bthm3" class="vbULxthm3" style="visibility:hidden;"><li><a title="Body Contouring">Body&nbsp;Contouring</a><ul id="vbUL_gthm3" class="vbULxthm3"><li><a href="http://www.drviggiano.com/Body_Contouring_Overview.html" title="Body Contouring Overview">Body&nbsp;Contouring&nbsp;Overview</a></li><li><a href="http://www.drviggiano.com/Liposuction_Overview.html" title=" Liposuction Overview">&nbsp;Liposuction&nbsp;Overview</a></li><li><a title="Abdomen">Abdomen</a><ul id="vbUL_iphm3" class="vbULxthm3"><li><a href="http://www.drviggiano.com/Abdominal_Improvement.html" title="Abdominal Improvement Overview">Abdominal&nbsp;Improvement&nbsp;Overview</a></li><li><a href="http://www.drviggiano.com/Abdominal_Liposuction.html " title="Abdominal Liposuction ">Abdominal&nbsp;Liposuction&nbsp;</a></li><li><a href="http://www.drviggiano.com/Abdominoplasty.html" title="Abdominoplasty">Abdominoplasty</a></li></ul></li><li><a title="Breast">Breast</a><ul id="vbUL_1phm3" class="vbULxthm3"><li><a href="http://www.drviggiano.com/Breast_Improvement_Overview.html" title="Breast Improvement Overview">Breast&nbsp;Improvement&nbsp;Overview</a></li><li><a href="http://www.drviggiano.com/Augmentation.html" title="Augmentation">Augmentation</a></li><li><a href="http://www.drviggiano.com/Mastopexy.html" title="Mastopexy">Mastopexy</a></li><li><a href="http://www.drviggiano.com/Reduction_Mammoplasty.html" title="Reduction Mammoplasty ">Reduction&nbsp;Mammoplasty&nbsp;</a></li><li><a href="http://www.drviggiano.com/Gynecomastia.html" title="Gynecomastia (Male Breasts)">Gynecomastia&nbsp;(Male&nbsp;Breasts)</a></li></ul></li><li><a href="http://www.drviggiano.com/Arm_LiftLiposuction.html" title="Arm Lift/Liposuction">Arm&nbsp;Lift/Liposuction</a></li><li><a href="http://www.drviggiano.com/Thigh_Liposuction.html" title="Thigh Liposuction">Thigh&nbsp;Liposuction</a></li><li><a href="http://www.drviggiano.com/FlankBack_Liposuction.html" title="Flank/Back Liposuction">Flank/Back&nbsp;Liposuction</a></li></ul></li><li><a title="Head and Face       ">Head&nbsp;and&nbsp;Face&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a><ul id="vbUL_cphm3" class="vbULxthm3"><li><a title="Face          ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Face&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a><ul id="vbUL_dphm3" class="vbULxthm3"><li><a href="http://www.drviggiano.com/Face_Overview.html" title="Face Overview">Face&nbsp;Overview</a></li><li><a href="http://www.drviggiano.com/Facelift.html" title="Facelift">Facelift</a></li><li><a href="http://www.drviggiano.com/Facial_Liposuction.html" title="Facial Liposuction">Facial&nbsp;Liposuction</a></li><li><a href="http://www.drviggiano.com/Microdermabrasion.html" title="Microdermabrasion">Microdermabrasion</a></li><li><a href="http://www.drviggiano.com/Laser_Resurfacing.html" title="Laser Resurfacing">Laser&nbsp;Resurfacing</a></li><li><a href="http://www.drviggiano.com/Neck_Suspension.html" title="Neck Suspension">Neck&nbsp;Suspension</a></li><li><a href="http://www.drviggiano.com/Botox.html" title="Botox">Botox</a></li><li><a href="http://www.drviggiano.com/Fillers.html" title="Filling Agents">Filling&nbsp;Agents</a></li></ul></li><li><a title="Eyes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Eyes</a><ul id="vbUL_7phm3" class="vbULxthm3"><li><a href="http://www.drviggiano.com/Eyes_Overview.html" title="Eyes Overview">Eyes&nbsp;Overview</a></li><li><a href="http://www.drviggiano.com/Upper_Eyelid_Blepharoplasty.html" title="Upper Eyelid Blepharoplasty">Upper&nbsp;Eyelid&nbsp;Blepharoplasty</a></li><li><a href="http://www.drviggiano.com/Lower_Eyelid_Blepharoplasty.html" title="Lower Eyelid Blepharoplasty">Lower&nbsp;Eyelid&nbsp;Blepharoplasty</a></li><li><a href="http://www.drviggiano.com/Lower_Eyelidlaser.html" title="Lower Eyelid Laser">Lower&nbsp;Eyelid&nbsp;Laser</a></li><li><a href="http://www.drviggiano.com/Browlift.html" title="Browlift">Browlift</a></li></ul></li><li><a title="Ears">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ears</a><ul id="vbUL_qphm3" class="vbULxthm3"><li><a href="http://www.drviggiano.com/Otoplasty.html" title="Otoplasty (Prominent Ears)">Otoplasty&nbsp;(Prominent&nbsp;Ears)</a></li><li><a href="http://www.drviggiano.com/Split_Earlobes.html" title="Split (Torn) Earlobes">Split&nbsp;(Torn)&nbsp;Earlobes</a></li></ul></li><li><a title="Nose">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Nose</a><ul id="vbUL_mphm3" class="vbULxthm3"><li><a href="http://www.drviggiano.com/Rhinoplasty.html" title="Rhinoplasty">Rhinoplasty</a></li><li><a href="http://www.drviggiano.com/Rhinophyma.html" title="Rhinophyma (W.C. Fields Nose)">Rhinophyma&nbsp;(W.C.&nbsp;Fields&nbsp;Nose)</a></li></ul></li></ul></li><li><a title="Skin care">Skin&nbsp;care</a><ul id="vbUL_5phm3" class="vbULxthm3"><li><a title="Skin Programs">Skin&nbsp;Programs</a><ul id="vbUL_aphm3" class="vbULxthm3"><li><a href="http://www.drviggiano.com/Skin_Programs_Overview.html" title="Skin Programs Overview">Skin&nbsp;Programs&nbsp;Overview</a></li><li><a href="http://www.drviggiano.com/Obagi_Nu_Derm_System.html" title="Obagi Nu-Derm System ">Obagi&nbsp;Nu-Derm&nbsp;System&nbsp;</a></li><li><a href="http://www.drviggiano.com/Blue_Peel.html" title="Blue Peel">Blue&nbsp;Peel</a></li></ul></li><li><a href="http://www.drviggiano.com/Skin_cancer.html" title="Skin cancer">Skin&nbsp;cancer</a></li><li><a href="http://www.drviggiano.com/Skin_Facts.html" title="Skin Facts">Skin&nbsp;Facts</a><ul id="vbUL_sphm3" class="vbULxthm3"><li><a href="http://www.drviggiano.com/Skin_Facts.html" title="Proper Skin Care">Proper&nbsp;Skin&nbsp;Care</a></li><li><a href="http://www.drviggiano.com/Protectig_Skin.html" title="Proper Skin Protection">Proper&nbsp;Skin&nbsp;Protection</a></li></ul></li></ul></li></ul><ul id="vbUL_fthm3" class="vbULxthm3" style="visibility:hidden;"><li><a href="http://www.drviggiano.com/Who_can_do_Cosmetic_Surgery.html" title="Who can do Cosmetic Surgery?">Who&nbsp;can&nbsp;do&nbsp;Cosmetic&nbsp;Surgery?</a></li><li><a href="http://www.drviggiano.com/FAQ.html" title="Frequently Asked Questions">Frequently&nbsp;Asked&nbsp;Questions</a></li><li><a href="http://www.drviggiano.com/Insurance_Information.html" title=" Insurance Information">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Insurance&nbsp;Information</a></li><li><a href="http://www.drviggiano.com/Credit_Care.html" title=" CareCredit®">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CareCredit®</a></li><li><a title="Newsletter">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Newsletter</a><ul id="vbUL_3phm3" class="vbULxthm3"><li><a href="http://www.drviggiano.com/Spring_2009.pdf" title="Spring 2009" target="_blank">Spring&nbsp;2009</a></li></ul></li></ul><ul id="vbUL_hthm3" class="vbULxthm3" style="visibility:hidden;"><li><a href="http://www.drviggiano.com/Honduras_Gallery.html" title="Honduras Gallery">Honduras&nbsp;Gallery</a></li><li><a href="http://www.drviggiano.com/Educational_Gallery.html" title="Educational Gallery">Educational&nbsp;Gallery</a></li></ul>');
vbxthm3n=xppr('xthm3_0.gif');vbxthm3o=xppr('xthm3_1.gif');vbxthm3c=xppr('xthm3_2.gif');vblthm3n=xppr('lthm3_0.gif');vblthm3o=xppr('lthm3_1.gif');vblthm3c=xppr('lthm3_2.gif');vbbthm3n=xppr('bthm3_0.gif');vbbthm3o=xppr('bthm3_1.gif');vbbthm3c=xppr('bthm3_2.gif');vbfthm3n=xppr('fthm3_0.gif');vbfthm3o=xppr('fthm3_1.gif');vbfthm3c=xppr('fthm3_2.gif');vbnthm3n=xppr('nthm3_0.gif');vbnthm3o=xppr('nthm3_1.gif');vbnthm3c=xppr('nthm3_2.gif');vbhthm3n=xppr('hthm3_0.gif');vbhthm3o=xppr('hthm3_1.gif');vbhthm3c=xppr('hthm3_2.gif');vbjthm3n=xppr('jthm3_0.gif');vbjthm3o=xppr('jthm3_1.gif');vbjthm3c=xppr('jthm3_2.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;
