var vBar=new ItemStyle(23,2,'',0,2,'15#D0D0D0','10#FFFFFF','highText','highText','itemBorder','itemBorder',null,null,'hand','default');
var subM=new ItemStyle(21,2,'',0,2,'#D0D0D0','#FFFFFF','highText','highText','itemBorder','itemBorder',null,null,'hand','default');
var pMenu=new PopupMenu('pMenu');with(pMenu){
startMenu('root',true,5,308,100,vBar);
addItem('Home','home','sm:').onclick='window.location.href="index.htm"';
addItem('Research','research','sm:').onclick='window.location.href="research.htm"';addItem('Publications','publications','sm:').onclick='window.location.href="publications.htm"';addItem('Patents','patents','sm:').onclick='window.location.href="patents.htm"';addItem('Gallery','gallery','sm:').onclick='window.location.href="gallery.htm"';addItem('Downloads','downloads','sm:').onclick='window.location.href="downloads.htm"';addItem('Biography','biography','sm:').onclick='window.location.href="biography.htm"';

startMenu('home',true,101,5,150,subM);addItem('Welcome','index.htm');addItem('Announcements','index.htm#announcements');addItem('News \& events','news','sm:').onclick='window.location.href="index.htm#news"';addItem('Search me on web','index.htm#search');addItem('Related links','index.htm#links');addItem('Contact info','contact','sm:').onclick='window.location.href="index.htm#contact"';addItem('Feedback','index.htm#feedback');addItem('Sponsors','index.htm#sponsors');addItem('Credits','index.htm#credits');addItem('Notes','index.htm#notes');addItem('Page map','window.open("map.htm")','js:',subM,21);

startMenu('news',true,151,5,150,subM);addItem('Archive','window.open("home/archive.htm")','js:',subM,21);startMenu('contact',true,151,5,150,subM);addItem('Directions','window.open("directions.htm")','js:',subM,21);

startMenu('research',true,101,5,150,subM);addItem('Catalytic nanoparticles','research.htm#deposition2009');addItem('Robot-nanopositioner','research.htm#miniature2007');addItem('CNT characterization','research.htm#characterization2007');addItem('Test structure','research.htm#method2006');addItem('VUV treatment','research.htm#polymer2006');addItem('Distributed calibration','research.htm#drift-insensitive2005');addItem('Counter-scanning','research.htm#drift2005');addItem('FOS methodology','research.htm#fos1996');addItem('FOP methodology','research.htm#fop1996');

startMenu('publications',true,101,5,150,subM);addItem('Selected publications','publications.htm#selection');addItem('Ph. D. thesis','publications.htm#object2002');addItem('List of papers','publications.htm#papers');addItem('List of reports','publications.htm#reports');

startMenu('patents',true,101,5,150,subM);addItem('Robot-nanopositioner','patents.htm#walking2010');addItem('Drift correction','patents.htm#method2006');addItem('Distributed calibration','patents.htm#method2005');addItem('Probe movement','patents.htm#procedure1999');addItem('Surface measurement','patents.htm#method1999');addItem('Probe storage','patents.htm#method1998');

startMenu('gallery',true,101,5,150,subM);addItem('SPM scans','gallery.htm#scans');addItem('Collages \& artworks','gallery.htm#collages');

startMenu('downloads',true,101,5,150,subM);addItem('Recognizer','downloads.htm#recognizer');addItem('Stylizer','downloads.htm#stylizer');addItem('Calibrator','downloads.htm#calibrator');addItem('Corrector','downloads.htm#corrector');

startMenu('biography',true,101,5,150,subM);addItem('Experience','experience','sm:').onclick='window.location.href="biography.htm#experience"';addItem('Achievements','achievements','sm:').onclick='window.location.href="biography.htm#achievements"';addItem('Grants','biography.htm#grants','');addItem('Membership','biography.htm#membership');addItem('Services','biography.htm#services');addItem('Honours \& awards','biography.htm#honours');addItem('Education','biography.htm#education');addItem('Miscellanea','biography.htm#miscellanea');

startMenu('experience',true,151,5,150,subM);addItem('CV','window.open("biography/R. V. Lapshin, Curriculum Vitae.pdf","_blank","resizable=yes,menubar=no,location=no,directories=no,status=no")','js:',subM,21);startMenu('achievements',true,151,5,150,subM);addItem('Citations','window.open("http://scholar.google.com/scholar?q=%22RV+Lapshin%22|%22Lapshin+RV%22|%22Rostislav+V+Lapshin%22|%22Lapshin+Rostislav+V%22|%22Rostislav+Vladimirovich+Lapshin%22|%22Lapshin+Rostislav+Vladimirovich%22|%22%D0%A0%D0%92+%D0%9B%D0%B0%D0%BF%D1%88%D0%B8%D0%BD%22|%22%D0%9B%D0%B0%D0%BF%D1%88%D0%B8%D0%BD+%D0%A0%D0%92%22|%22%D0%A0%D0%BE%D1%81%D1%82%D0%B8%D1%81%D0%BB%D0%B0%D0%B2+%D0%92+%D0%9B%D0%B0%D0%BF%D1%88%D0%B8%D0%BD%22&amp;hl=en")','js:',subM,21);}

addDropShadow(pMenu,window.subM,[70,"#707070",2,2,0,0],[70,"#808080",3,3,0,0],[70,"#C0C0C0",4,4,0,0]);

function addDropShadow(mObj,iS){for(var mN in mObj.menu){var a=arguments,mD=mObj.menu[mN][0],addW=addH=0;if(mD.itemSty!=iS)continue;for(var shad=2;shad<a.length;shad++){var s=a[shad];var alpha=(s[0]!=null&&navigator.userAgent.indexOf('AppleWebKit')==-1);if(isNS4)mD.extraHTML+='<layer bgcolor="'+s[1]+'"left="'+s[2]+'"top="'+s[3]+'"width="'+(mD.menuW+s[4])+'"height="'+(mD.menuH+s[5])+'"z-index="'+(arguments.length-shad)+'"></layer>';else mD.extraHTML+='<div style="position:absolute;background:'+s[1]+';left:'+s[2]+'px;top:'+s[3]+'px;width:'+(mD.menuW+s[4])+'px;height:'+(mD.menuH+s[5])+'px;z-index:'+(a.length-shad)+';'+(alpha?'filter:alpha(opacity='+s[0]+');-moz-opacity:'+s[0]+'%;opacity:'+(s[0]/100):'')+'"></div>';addW=Math.max(addW,s[2]+s[4]);addH=Math.max(addH,s[3]+s[5]);}mD.menuW+=addW;mD.menuH+=addH;}};