/* global variables */

var root = '/gdm/en/';
var script_root = '/cgi-bin/gdm/';



/* event handlers for <body> tag */

function handleOnLoad(event) {
  preloadImages(root + 'addresses_over.gif', root + 'contact_over.gif', root + 'german_over.gif', root + 'home_over.gif', root + 'info_over.gif', root + 'publications_over.gif', root + 'projects_over.gif', root + 'links_over.gif');
  return true;
}

window.onload = handleOnLoad;



/* inject menubar HTML code */

function w(str) {
  document.write(str);
}

document.open();

w('<table border="0" cellspacing="0" cellpadding="0" width="100%">');
w('  <tr>');
w('    <td height="60" valign="top" style="background-color:#214e8a">');
w('      <table border="0" cellspacing="0" cellpadding="0" width="100%">');
w('        <tr>');
w('          <td style="text-align:left; padding:5px"><img src="' + root + 'logo.gif" alt="GDM - Gesellschaft f&uuml;r Didaktik der Mathematik"><\/td>');
w('          <td width="73" class="smlbtn"><a href="' + root + 'info_addresses.html"><img src="' + root + 'addresses.gif" alt="Addresses" border="0" onMouseOver="btnOver(this)" onMouseOut="btnOut(this)"><\/a><\/td>');
w('          <td width="60" class="smlbtn"><a href="' + script_root + 'contact.cgi"><img src="' + root + 'contact.gif" alt="Contact" border="0" onMouseOver="btnOver(this)" onMouseOut="btnOut(this)"><\/a><\/td>');
w('          <td width="125" class="smlbtn"><a href="' + root + '../index.html" target="_top"><img src="' + root + 'german.gif" alt="German version" border="0" onMouseOver="btnOver(this)" onMouseOut="btnOut(this)"><\/a><\/td>');
w('        <\/tr>');
w('      <\/table>');
w('    <\/td>');
w('  <\/tr>');
w('  <tr>');
w('    <td height="31" style="background-image:url(' + root + 'line.gif)">');
w('      <table border="0" cellspacing="0" cellpadding="0">');
w('        <tr>');
w('          <td width="68" class="btn"><a href="' + root + 'home.html"><img src="' + root + 'home.gif" alt="Home" border="0" onMouseOver="btnOver(this)" onMouseOut="btnOut(this)"><\/a><\/td>');
w('          <td width="106" class="btn"><a href="' + root + 'info.html"><img src="' + root + 'info.gif" alt="Information" id="infoImg" border="0" onMouseOver="btnOver(this)" onMouseOut="btnOut(this)"><\/a><\/td>');
w('          <td width="108" class="btn"><a href="' + root + 'publications.html"><img src="' + root + 'publications.gif" alt="Publications" id="publicationsImg" border="0" onMouseOver="btnOver(this)" onMouseOut="btnOut(this)"><\/a><\/td>');
/*w('          <td width="80" class="btn"><a href="' + root + 'projects.html"><img src="' + root + 'projects.gif" alt="Projects" border="0" onMouseOver="btnOver(this)" onMouseOut="btnOut(this)"><\/a><\/td>');*/
w('          <td width="62" class="btn"><a href="' + root + 'links.html"><img src="' + root + 'links.gif" alt="Links" border="0" onMouseOver="btnOver(this)" onMouseOut="btnOut(this)"><\/a><\/td>');
w('        <\/tr>');
w('      <\/table>');
w('    <\/td>');
w('  <\/tr>');
w('<\/table>');

w('<div id="info" class="pulldown" style="left:74px; width:180px; visibility:hidden" onMouseMove="menuMouseMove(this)" onMouseOut="menuMouseOut(this)">');
w('  <table border="0" cellspacing="0" cellpadding="0" width="100%">');
w('    <tr>');
w('      <td class="pulldown">&nbsp;<\/td>');
w('      <td>');
w('        <table border="0" cellspacing="0" cellpadding="0" class="pulldown">');
w('          <tr>');
w('            <td><a href="' + root + 'info_about.html" class="pulldown">About the GDM<\/a><\/td>');
w('          <\/tr>');

w('          <tr>');
w('            <td><a href="' + root + 'managment.shtml" class="pulldown">Managing and advisory board<\/a><\/td>');
w('          <\/tr>');


w('          <tr>');
w('            <td><a href="' + root + 'info_addresses.html" class="pulldown">Addresses<\/a><\/td>');
w('          <\/tr>');
w('          <tr>');
w('            <td style="padding-bottom:3px"><a href="' + script_root + 'contact.cgi" class="pulldown">Contact<\/a><\/td>');
w('          <\/tr>');
w('        <\/table>');
w('      <\/td>');
w('      <td class="pulldown">&nbsp;<\/td>');
w('    <\/tr>');
w('  <\/table>');
w('<\/div>');

w('<div id="publications" class="pulldown" style="left:180px; width:210px; visibility:hidden" onMouseMove="menuMouseMove()" onMouseOut="menuMouseOut()">');
w('  <table border="0" cellspacing="0" cellpadding="0" width="100%">');
w('    <tr>');
w('      <td class="pulldown">&nbsp;<\/td>');
w('      <td>');
w('        <table border="0" cellspacing="0" cellpadding="0" class="pulldown">');
w('          <tr>');
w('            <td><a href="' + root + 'publications_jmd.html" class="pulldown">Journal for Didactics of Mathematics<\/a><\/td>');
w('          <\/tr>');
w('          <tr>');
w('            <td style="padding-bottom:3px"><a href="' + root + 'publications_papers.html" class="pulldown">Selected Papers<\/a><\/td>');
w('          <\/tr>');
w('        <\/table>');
w('      <\/td>');
w('      <td class="pulldown">&nbsp;<\/td>');
w('    <\/tr>');
w('  <\/table>');
w('<\/div>');

document.close();
