
function writeMenu() {
   with(document) {
      write('<div style="position: absolute; top: 6%; width: 148px;">');
      write('<br />');
      write('<a href="index.htm" id="home" class="menu" onmouseover="chngLinkOver(this.id);" onmouseout="chngLinkOut(this.id);">Home</a><br /><br />');
      write('<a href="shield.htm" id="persh" class="menu" onmouseover="chngLinkOver(this.id);" onmouseout="chngLinkOut(this.id);">Shield Out Hostility</a><br /><br />');
      write('<a href="test.htm" id="test" class="menu" onmouseover="chngLinkOver(this.id);" onmouseout="chngLinkOut(this.id);">Test Anxiety</a><br /><br />');
      write('<a href="panic.htm" id="panic" class="menu" onmouseover="chngLinkOver(this.id);" onmouseout="chngLinkOut(this.id);">Panic Control</a><br /><br />');
      write('<a href="roadrage.htm" id="rage" class="menu" onmouseover="chngLinkOver(this.id);" onmouseout="chngLinkOut(this.id);">Road Rage</a><br /><br />'); 
 
      //write('<a href="enemies.htm">Our own worst enemies</a><br>');
      //write('<a href="press.htm">Press release</a>');
      write('<br />');
      write('<div style="text-align: center;"><img src="http://counter.dreamhost.com/cgi-bin/Count.cgi?df=peacewit&pad=F&ft=0&dd=C&istrip=T"><br /></div>');
      write('</div>');
   }
}

function writeBodyDivCenter() {
   if (screen.width == 800)
      document.write('<div style="position: absolute; left: 210px; text-align: center;">');
   else
      document.write('<div style="text-align: center; position: absolute; left: 210px;">');
}

function writeBodyDivLeft() {
   if (screen.width == 800)
      document.write('<div style="position: absolute; left: 210px;">');
   else
      document.write('<div style="position: absolute; left: 210px;">');
}

function chngLinkOver(linkid) {
   menulink = document.getElementById(linkid);
   menulink.style.fontWeight = "bold";
}

function chngLinkOut(linkid) {
   menulink = document.getElementById(linkid);
   menulink.style.fontWeight = "normal";
}

function popUp(URL) {
   w = screen.availWidth * 0.9;
   h = screen.availHeight * 0.9;
   day = new Date();
   id = day.getTime();
   window.open(URL, id, "toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + w + ",height=" + h +",left = 0,top = 0");
}
