// Any Java Script functions would go here

var xoff = -4;
var yoff = 5;

if (navigator.appName == "Netscape") {
  window.captureEvents(Event.MOUSEMOVE);
  window.onMouseMove = mouseMove;
  layerRef = "document.layers['";
  styleSwitch = "']";
  leftProp = ".left";
  topProp = ".top";
  mx = "evnt.pageX";
  my = "evnt.pageY";
  ST = "0";
  SL = "0";
}
else {
  self.window.mousemove = mouseMove;
  layerRef = "document.all.item('";
  styleSwitch = "').style";
  leftProp = ".pixelLeft";
  topProp = ".pixelTop";
  mx = "event.clientX";
  my = "event.clientY";
  ST = "document.body.scrollTop";
  SL = "document.body.scrollLeft"; 
}

function mouseMove(evnt) {
  eval("moveLayer('pointer', " + mx + ", " + my + ")");
}

function moveLayer(layerName, newLeft, newTop) { 
  eval(layerRef + layerName + styleSwitch + topProp+' = newTop + yoff + eval(ST)');
  eval(layerRef + layerName + styleSwitch + leftProp + ' = newLeft + xoff + eval(SL)');
}

function decline() {
  var r = document.addmsg.strMessage.rows;
  r = r - 5;
  if ( r < 5 ) r = 5;
  document.addmsg.strMessage.rows = r;
}

function incline() {
  var r = document.addmsg.strMessage.rows;
  r = r + 5;
  if ( r > 50 ) r = 50;
  document.addmsg.strMessage.rows = r;
}

function openGameStats(url) {
	var load = window.open(url,'','scrollbars=yes,menubar=no,height=500,width=460,resizable=no,toolbar=no,location=no,status=no');
}

function openpic(photo, width, height){
    sc = window.open("", "pic", "menubar=0,toolbar=0,location=0,status=0,scrollbars=1,width="+width+",height="+height+"");
    sc.document.open();
    sc.document.writeln("<html><head></head>");
    sc.document.writeln("<body bgcolor=#000000 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");
    sc.document.writeln("<img src=" + photo +"");
    sc.document.writeln("</body></html>");
    sc.document.close();
}

function print_email(lhs, rhs)
{
   document.write("<a class=\"guest_link\" href=\"mailto");
   document.write(":" + lhs + "@");
   document.write(rhs + "\">" + lhs + "@" + rhs + "<\/a>");
}