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, 270, 120, hBar);
addItem('In questo numero', '/2006-3-4/', '');
addItem('Pubblicazioni', '?f=let', '');
addItem('Norme autori', '?f=nor', '');
addItem('Archivio', '?f=arc', '');
addItem('Chi siamo', '?f=who', '');
addItem('Scrivici', 'mailto:odv@zadig.it', '');
}
if (!isNS4)
{
pMenu.update(true);
}
else
{
var popOldOL = window.onload;
window.onload = function()
{
if (popOldOL) popOldOL();
pMenu.update();
}
}
window.onresize = function()
{
ns4BugCheck();
pMenu.position();
}
window.onscroll = function()
{
pMenu.position();
}
if (isNS4) document.captureEvents(Event.CLICK);
document.onclick = function(evt)
{
pMenu.click();
if (isNS4) return document.routeEvent(evt);
}
var nsWinW = window.innerWidth, nsWinH = window.innerHeight;
function ns4BugCheck()
{
if (isNS4 && (nsWinW!=innerWidth || nsWinH!=innerHeight)) location.reload()
}
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)
{
var mD = menuObj.menu[menuName][0];
if (!mD.timer) mD.timer = 0;
if (!mD.counter) mD.counter = 0;
with (mD)
{
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) );
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);
}
}
function changeMenu() { with (pMenu)
{
startMenu('mNewMenu', true, 0, 22, 130, subM);
addItem('TwinHelix Designs:
Extreme DHTML.
Small Code.
Click to Visit...',
'window.open("http://www.twinhelix.com")', 'js:', subM, 70);
actMenu = 'root';
nextItem = 4;
addItem(' Dynamism...', 'mNewMenu', 'sm:', hBar, 80);
update();
}}
function moveRoot()
{
with (pMenu.menu.root[0].lyr) x( (x()<100) ? 100 : 10);
}