function Browser() {
  var ua, s, i;

  this.isIE    = false;
  this.isNS    = false;
  this.version = null;

  ua = navigator.userAgent;

  s = "MSIE";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  // Treat any other "Gecko" browser as NS 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }
}

var browser = new Browser();

function moveContent(event, id) {
	var x, y;
	  
	if (browser.isIE) {
	x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft;
	y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop;
	}
	if (browser.isNS) {
	x = event.clientX + window.scrollX;
	y = event.clientY + window.scrollY;
	}
	  
	obj=document.getElementById(id);
	
	//obj.style.position = "absolute";
	obj.style.top = y + 20 + "px";
	obj.style.left = x + 20 + "px";

}

function showContent(event, id) {
	moveContent(event, id);
	obj=document.getElementById(id);
	obj.style.visibility="visible";
}

function hideContent(id) {
	obj=document.getElementById(id);
	obj.style.visibility="hidden";
}

function newWindow (mypage,myname,w,h,features)

{

if(screen.width)

{

	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;

}

else

{

	winl = 0;wint =0;

}

if (winl < 0) winl = 0;
if (wint < 0) wint = 0;

var settings = 'height=' + h + ',';
settings += 'width=' + w + ',';
settings += 'top=' + wint + ',';
settings += 'left=' + winl + ',';
settings += features;
settings += ' scrollbars=yes ';

win = window.open(mypage,myname,settings);

win.window.focus();

}