var hBar = new ItemStyle(21, 0, '>', -13, 2, '#0D4D99', '#009B96', 'itemText', 'itemText', 'itemBorder', 'itemBorderOver',null, null); var subM = new ItemStyle(21, 0, '>', -13, 2, '#0D4D99', '#009B96', 'itemText', 'itemText', 'itemBorder', 'itemBorderOver', null, null); var pMenu = new PopupMenu('pMenu'); with (pMenu) { startMenu('root', true, 5, 115, 120, hBar); addItem('Home', '/', ''); addItem('In questo numero', './', ''); addItem('Editoriali', 'mEdi', 'sm:'); addItem('Notiziario', 'mNot', 'sm:'); addItem('Informed', 'mInf', 'sm:'); addItem('Desktop', 'mDes', 'sm:'); addItem('Letteratura', 'mPub', 'sm:'); addItem('Norme autori', '/?f=nor', ''); addItem('Archivio', '/?f=arc', ''); addItem('Chi siamo', '/?f=who', ''); addItem('Scrivici', 'mailto:odv@zadig.it', ''); startMenu('mPub', true, 119, 0, 350, subM); addItem('Abstract e recensioni', 'window.open("show_pdf.php?pdf=letteratura.pdf")', 'js:'); addItem('Pubblicazioni censite in Medline', '/?f=let&num=2006-3-4&periodo=1 marzo 2006 al 31 agosto 2006', ''); startMenu('mEdi', true, 119, 0, 350, subM); addItem('Due parole dal direttore', 'window.open("show_pdf.php?pdf=editoriale-01.pdf")', 'js:'); addItem('Le nuove strade della formazione in medicina', 'window.open("show_pdf.php?pdf=editoriale-02.pdf")', 'js:'); addItem('Un percorso per costruire l\'identitą professionale', 'window.open("show_pdf.php?pdf=editoriale-03.pdf")', 'js:'); startMenu('mNot', true, 119, 0, 350, subM); addItem('Un campus virtuale per aggiornarsi a distanza', 'window.open("show_pdf.php?pdf=notiziario-01.pdf")', 'js:'); addItem('Infermieri in corsa per la formazione', 'window.open("show_pdf.php?pdf=notiziario-02.pdf")', 'js:'); addItem('La letteratura guida l\'apprendimento sul campo', 'window.open("show_pdf.php?pdf=notiziario-03.pdf")', 'js:'); addItem('Psichiatri tra scienza e interesse', 'window.open("show_pdf.php?pdf=notiziario-04.pdf")', 'js:'); addItem('Quando il cavallo aiuta la terapia', 'window.open("show_pdf.php?pdf=notiziario-05.pdf")', 'js:'); startMenu('mInf', true, 119, 0, 350, subM); addItem('La tecnologia porta in alto la cardiochirurgia', 'window.open("show_pdf.php?pdf=informed-01.pdf")', 'js:'); addItem('Specialisti al servizio della neurologia', 'window.open("show_pdf.php?pdf=informed-02.pdf")', 'js:'); addItem('Cura dei tumori a 360 gradi', 'window.open("show_pdf.php?pdf=informed-03.pdf")', 'js:'); addItem('Una lunga storia di impegno contro il cancro', 'window.open("show_pdf.php?pdf=informed-04.pdf")', 'js:'); addItem('Curare i pił piccoli a ritmo di musica', 'window.open("show_pdf.php?pdf=informed-05.pdf")', 'js:'); addItem('Un punto di riferimento per la dialisi a Bologna', 'window.open("show_pdf.php?pdf=informed-06.pdf")', 'js:'); addItem('In campo al fianco degli sportivi', 'window.open("show_pdf.php?pdf=informed-07.pdf")', 'js:'); startMenu('mDes', true, 119, 0, 255, subM); addItem('Evoluzione e prospettive dell\'ecografia dell\'addome', 'window.open("show_pdf.php?pdf=desktop-01.pdf")', 'js:'); } if (!isNS4) { pMenu.update(true); } else { var popOldOL = window.onload; window.onload = function() { if (popOldOL) popOldOL(); pMenu.update(); } } // Other events must be assigned, these are less complicated, just add or remove menu objects. window.onresize = function() { ns4BugCheck(); pMenu.position(); //anotherMenu.position(); } window.onscroll = function() { pMenu.position(); //anotherMenu.position(); } if (isNS4) document.captureEvents(Event.CLICK); document.onclick = function(evt) { pMenu.click(); //anotherMenu.click(); if (isNS4) return document.routeEvent(evt); } // A small function that refreshes NS4 on window resize to avoid bugs, called above. var nsWinW = window.innerWidth, nsWinH = window.innerHeight; function ns4BugCheck() { if (isNS4 && (nsWinW!=innerWidth || nsWinH!=innerHeight)) location.reload() } // Activate the useful 'onscroll' event for non-Microsoft browsers. if (!isIE || window.opera) { var nsPX=pageXOffset, nsPY=pageYOffset; setInterval('if (nsPX!=pageXOffset || nsPY!=pageYOffset) ' + '{ nsPX=pageXOffset; nsPY=pageYOffset; window.onscroll() }', 50); } function menuClip(menuObj, menuName, dir) { // The array index of the named menu (e.g. 'mFile') in the menu object (e.g. 'pMenu'). var mD = menuObj.menu[menuName][0]; // Add timer and counter variables to the menu data structure, we'll need them. if (!mD.timer) mD.timer = 0; if (!mD.counter) mD.counter = 0; with (mD) { // Stop any existing animation and do our visibility tricks. clearTimeout(timer); if (dir==1) lyr.vis('visible'); lyr.clip(0, 0, menuW+2, (menuH+2)*Math.pow(Math.sin(Math.PI*counter/20),0.75) ); // Increment the counter and if it hasn't reached the end (10 steps either way) set the timer. // Clear the clipping value in DOM browsers as early NS6 versions are quite terrible at this. counter += dir; if (counter==11) { counter = 10; if (isDOM&&!isIE) lyr.sty.clip='' } else if (counter<0) { counter = 0; lyr.vis('hidden') } else timer = setTimeout(menuObj.myName+'.'+(dir==1?'show':'hide')+'Menu("'+menuName+'")', 40); } }