function preloadinit() {
  o01 = new Array();
  o02 = new Array();
  a = 0;
  count = 0;
}
function preload(name,file,n) {
  for (i=1; i<=n; i++) {
    k = i + a;
    if (i<10) { x = "0" + i; } else { x = i; }
    o01[k] = new Image();
    o01[k].src = name + "-" + x + "-01." + file;
    o02[k] = new Image();
    o02[k].src = name + "-" + x + "-02." + file;
    count++;
  }
  a = count;
}
function newwindow(page,mode) {
  a = 'no'; b = 'no'; c = 'no'; d = 'no'; e = 'no'; f = 'no'; g = 'no';
  if ( mode == 1 ) { w = 644; h = 500; }
  if ( mode == 2 ) { e = 'auto'; w = 367; h = 360; }
  window.open(page,a,"resizable="+b+",menubar="+c+",directories="+d+",scrollbars="+e+",status="+f+",location="+g+",width="+w+",height="+h);
}

