def script_OnStart

print <<-'HEADER'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>                          
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>Ruby/XSLT</title> 
  <link rel="stylesheet" type="text/css" media="All" href="blue.css">
  
  <script type="text/javascript">
  var bikky = document.cookie;

  function getCookie( name ) {
    var index = bikky.indexOf(name + "=");
    if (index == -1) return null;
    index = bikky.indexOf("=", index) + 1;
    var endstr = bikky.indexOf(";", index);
    if (endstr == -1) endstr = bikky.length;
    return unescape(bikky.substring(index, endstr));
  }

  function swapStyle(styleSheetURL) {
    document.getElementsByTagName("link")[0].href = styleSheetURL;
    window.scrollTo(0,0);
	document.cookie = "style="+styleSheetURL;
  }

  if( !getCookie( "style" ) ) {
    swapStyle( "blue.css" );
  } else {
    swapStyle( getCookie( "style" ) );
  }
  </script>
</head>
<body>
<div class="mainWin">

<div class="menuBox">
  <a href="index.asp">Home</a><br>
  <a href="index.asp#idx-info">Documentation</a><br>
  <a href="index.asp#idx-licence">Licence</a><br>
  <a href="http://www.webtime-project.net/ruby-asp/">Ruby/Asp</a><br>
</div>

<div class="titleBox">
  <h1><a name="idx-top" id="idx-top">Ruby/XSLT</a></h1>
  Ruby/XSLT is a simple XSLT class based on <a href="http://xmlsoft.org/">libxml</a> and <a href="http://xmlsoft.org/XSLT/">libxslt</a>
</div>

<p></p>
HEADER

end

def script_OnEnd

print <<-'FOOTER'

<div class="footerBox">
  <p>
  Style : [ <A HREF="javascript:swapStyle( 'orange.css' );">mozilla</a> |
  <A HREF="javascript:swapStyle( 'blue.css' );">blue</a> |
  <A HREF="javascript:swapStyle( 'print.css' );">print</a> |
  <A HREF="javascript:swapStyle( 'basic.css' );">basic</a> ]
  </p>
    
  <p>
    <a href="http://validator.w3.org/check/referer">
      <img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" height="31" width="88">
    </a>
    <a href="http://jigsaw.w3.org/css-validator/">
      <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" height="31" width="88" />
    </a>
    <a href="http://modruby.net">
      <img src="mod_ruby.png" alt="mod_ruby">
    </a>
  </p>
  
  <p>Copyright &copy; 2003, Gr&eacute;goire Lejeune.</p>
</div> 
  
</div>
</body>
</html>
FOOTER

end

def application_OnStart
end

def application_OnEnd
end

def session_OnStart
end

def session_OnEnd
end

def server_OnStart
end

def script_OnFlush
end
