// start popup
function popup(mypage,w,h){
var leftposition, topposition, settings, win;
leftposition = (screen.width)  ? (screen.width-w) /2 : 0;
topposition  = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'width='+w+',height='+h+',left='+leftposition+',top='+topposition+',scrollbars=yes,resizable,menubar=no,toolbar=no,location=no,status=no'
win = window.open(mypage,"popup",settings)  }

// start popupstd
function popupstd(mypage,w,h){
var settings = 'width='+w+',height='+h+',scrollbars,resizable'
window.open(mypage,"popupstd",settings)  }

// start popupmenu
function popupmenu(mypage){
var settings = 'top=0,left=0,width=200,height=500,scrollbars,resizable';
window.open(mypage,"popupmenu",settings);  }

// start newloc
var nltimeoutid = 0;
function newloc(newhref) { // new location
clearTimeout(nltimeoutid);
window.opener.parent.location.href = newhref; // invoke new URL in originating window
nltimeoutid = setTimeout("nlclose()",1000); //wait 1 sec
}
function nlclose() {
window.close(); // close this popup window
}
// end newloc

// start popupemail
function popupemail(mypage){
var settings = 'width=700,height=425,scrollbars,resizable';
window.open(mypage,"popupemail",settings);  }

/*  // start imgnum
var strtimgnum = 2; // start numbering with image 2
var imgnum = 1;
 function iin () { // increment image number
   if (imgnum >= strtimgnum)
    document.write("<SPAN CLASS=\"imgnum\">",imgnum++,"</SPAN><BR>");
   else imgnum++;
 return; }

If you want to start numbering with image 1, put in
var strtimgnum = 1; between script tags
somewhere after this code block and before the 1st image
*/

//start chmenu dropdown
var timeoutid = 0;
function dropdown(m00item) {
clearTimeout(timeoutid);
var menu = xbGetElementById(m00item);
var objstyle = new xbStyle(menu);
objstyle.setVisibility('visible');
}
function retract(m00item) {
clearTimeout(timeoutid);
var menu = xbGetElementById(m00item);
var objstyle = new xbStyle(menu);
objstyle.setVisibility('hidden');
}
function retractafterdelay(m00item) {
clearTimeout(timeoutid);
var mitems = "retract('" + m00item + "')";
timeoutid = setTimeout(mitems,1500); // wait 1 sec = 1000
}
/*-- 0.001 --*/