<?php

class PageClass {
  var $title;
  var $url;

  function PageClass($xx,$yy) {
    $this->title = $xx;
    $this->url = $yy;
  }
}

$item[0] = new PageClass('ホーム','index.php');
$item[1] = new PageClass('プログラム','prog.php');
$item[2]= new PageClass('会場案内','loca.php');
$item[3] = new PageClass('協賛・後援','supp.php');
$item[4] = new PageClass('懇親会','part.php');
$item[5] = new PageClass('お問合せ先','cont.php');

function html_begin($temp,$j) {
  print "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
  print "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"ja\" lang=\"ja\">\n";
  print "<head>\n";
  print "<link rel=\"shortcut icon\" href=\"favicon.ico\"/>";
  print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=shift_jis\"/>\n";
  print "<meta name=\"author\" content=\"Kazutoshi Ando (Shizuoka University)\"/>\n";
  print "<meta name=\"keywords\" content=\"game theory, internet, routing, auction theory, computer network\"/>\n";
  print "<title>第5回日本OR学会中部支部シンポジウム「インターネット時代のゲーム理論」</title>\n";
  print "<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\"/>\n";
  print "</head>\n";
  print "<body>\n";
}

function print_header() {
  print "<div class=\"header\">";
  //    print "<a id=\"nooutline\" href=\".\"><img src=\"Banner2s.png\" alt=\"Banner2s\"/></a>";
  print "<img src=\"Banner2s.png\" alt=\"Banner2s\"/>";
  print "<h1>第5回日本OR学会中部支部シンポジウム</h1>";
  print "<h2>「インターネット時代のゲーム理論」</h2>";
  print "<h1>2008年9月5日(金) 13:10-16:50</h1>";
  print "</div>";
}

function print_menu($temp,$j) {
  print "<div class=\"menu\">";
  for($i=0;$i<count($temp);$i++) {
    if($temp[$i]->url!=$j) 
      print "<div><a href=\"./".$temp[$i]->url."\">".$temp[$i]->title."</a></div>";
    else 
      print "<div id=\"current\">".$temp[$i]->title."</div>";
  }
  print "<br style=\"clear:left\" />";
  print "</div>";
}

function print_footer() {
  print "<div class=\"footer\">";
  print "Copyright &copy; 2008 <a href=\"http://www.orsj.or.jp/\">
        日本オペレーションズ・リサーチ学会</a>中部支部 All Rights Reserved.";
  print "</div>";
}

function  html_end($temp,$j){
  if($temp[2]->url!=$j)
    print "<div><a href=\"http://validator.w3.org/check?url=referer\"><img src=\"http://www.w3.org/Icons/valid-xhtml10\" alt=\"Valid XHTML 1.0 Strict!\" style=\"border:0;width:88px;height:31px\" /></a> ";
  print "<a href=\"http://jigsaw.w3.org/css-validator/check/referer&amp;warning=no&amp;profile=css3&amp;usermedium=all\"><img style=\"border:0;width:88px;height:31px\" src=\"http://jigsaw.w3.org/css-validator/images/vcss\" alt=\"正当なCSSです!\" /></a></div>";
  print "</body>\n";
  print "</html>\n";
}

?>
