   function popup (cnum) {
      overlib('<img src=' + urlprefix + 'snapshots/' + cnum + '.jpg width=65 height=93>', ABOVE);
   }

   function popup2 (cnum) {
      overlib('<img src=../' + urlprefix + 'snapshots/' + cnum + '.jpg width=65 height=93>', ABOVE);
   }

   function popupN (name) {
      overlib(name, WIDTH, 100);
   }

   function shcard (cnum2) {
      if (cnum2 == null)
	 document.writeln('<img src="' + urlprefix + 'snapshots/' + cnum + '.jpg">');
      else
	 document.writeln('<img src="' + urlprefix + 'snapshots/' + cnum2 + '.jpg" width=65 height=93>');
   }

   var urlprefix = ((document.location.hostname.indexOf("att.net") > 0) ? "http://smffcc.home.att.net/ygo/" : "");
   var urlprefix = "";
   curl = new String(document.location);
   offset = curl.lastIndexOf (".");
   cnum = curl.substring(offset-3, offset);

   if (navigator.appName != "Microsoft Internet Explorer")
      document.writeln("<table class=compat><tr><td>IE with JavaScript enable is recommended for optimal display.</td></tr></table>");

   if (!isNaN(cnum)) {
      p_num = parseInt(cnum,10) - 1;
      if (p_num < 10) p_cnum = "00" + p_num.toString();
      else if (p_num < 100) p_cnum = "0" + p_num.toString();
      else p_cnum = p_num.toString();

      n_num = parseInt(cnum,10) + 1;
      if (n_num < 10) n_cnum = "00" + n_num.toString();
      else if (n_num < 100) n_cnum = "0" + n_num.toString();
      else n_cnum = n_num.toString();

      if (p_num < 1) document.writeln("<div align=right>Prev | <a href='" + n_cnum + ".html'>Next</a></div>");
      else if (n_num > 722) document.writeln("<div align=right><a href='" + p_cnum + ".html'>Prev</a> | Next</div>");
      else document.writeln("<div align=right><a href='" + p_cnum + ".html'>Prev</a> | <a href='" + n_cnum + ".html'>Next</a></div>");
   }