<!-- this is an HTML comment -->
// this is a JS comment
/* this is a JS/CSS comment */

// initialize variables
var iDrag=0;
var iResetMenu = 0;
var origY;  // needs to be instantiated here
function InitVars()
{
  if (navigator.appName.toUpperCase().match(/MICROSOFT INTERNET EXPLORER/) != null)
  { origY=0;
    document.getElementById('PRMenu').style.marginTop = origY;
    document.getElementById('PRMenu').style.marginLeft = origY;
    document.getElementById('ChangeFrameByID').style.marginTop = origY - 0
  }
  if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null)
  { origY=0;
    document.getElementById('PRMenu').style.marginTop = origY;
    document.getElementById('PRMenu').style.marginLeft = origY;
    document.getElementById('ChangeFrameByID').style.marginTop = origY - 0;
  }
}

function GetScrollAmount()
{
  <!-- ** style.margin-Top becomes style.marginTop in JavaScript ** -->
  //document.all.PRMenu.style.marginTop = GetScrollY() + this.origY;
	//document.getElementById('PRMenu').style.marginTop = GetScrollY() + this.origY;
	if(j=='undefined' || j=='') {
		var j=1;
		alert(j);
	}
//	for (i=1; i<100; i++) {}
	if (j<100) {
		document.getElementById('PRMenu').style.marginTop = GetScrollY() * j / 100 + this.origY;
		j++;
		setTimeout("GetScrollAmount()",100);
	}
}

// returns amount of vertical scroll
function GetScrollY()
{ var VertScroll = 0;
  if (document.documentElement && document.documentElement.scrollTop) {
    VertScroll = document.documentElement.scrollTop;
  }
  else if (document.body && document.body.scrollTop) {
    VertScroll = document.body.scrollTop;
  }
  else if (window.pageYOffset) {
    VertScroll = window.pageYOffset;
  }
  else if (window.scrollY) {
    VertScroll = window.scrollY;
  }
  return VertScroll;
}

// get mouse-click coordinates
function GetCoordinates(e)
{
if (iDrag == 1)
{
  var posx = 0;
  var posy = 0;
  if (!e){ var e = window.event; }
  if (e.pageX || e.pageY)
  { posx = e.pageX;
    posy = e.pageY;
  }
  else if (e.clientX || e.clientY)
  { posx = e.clientX + document.body.scrollLeft;
    posy = e.clientY + document.body.scrollTop;
  }
  if (iResetMenu == 1)
  { ResetMenu(); }
  else
  { if (navigator.appName.toUpperCase().match(/MICROSOFT INTERNET EXPLORER/) != null)
    { document.getElementById('PRMenu').style.marginLeft = posx - 70;
      document.getElementById('PRMenu').style.marginTop = posy - 60;
    }
    if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null)
    { document.getElementById('PRMenu').style.marginLeft = posx - 80;
      document.getElementById('PRMenu').style.marginTop = posy - 70;
    }
  }
}
  return false;
}

// reset menu location
function ResetMenu()
{ scroll(0,0);
  if (navigator.appName.toUpperCase().match(/MICROSOFT INTERNET EXPLORER/) != null)
  { document.getElementById('PRMenu').style.marginTop = 10;
  }
  if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null)
  { document.getElementById('PRMenu').style.marginTop = 0;
  }
  iResetMenu = 0;
}

function SetDragFlag()
{
 iDrag = 1;
}
function ClearDragFlag()
{
 iDrag = 0;
}

function ExpandCollapse(PRSection) {
//alert(document.getElementById(PRSection).style.display);
var tr = document.getElementById(PRSection);
var trVisible;

if(navigator.appName.indexOf("Microsoft") > -1)
	trVisible = "block"
else
	trVisible = "table-row"

if (tr.style.display == "none")
	tr.style.display = trVisible
else
	tr.style.display = "none"
//alert(document.getElementById(PRSection).style.display);
}
