var y1 = 10;   // change the # on the left to adjuct the Y co-ordinate
(document.getElementById) ? dom = true : dom = false;

function hideIt() {	
	if (dom) {document.getElementById("loginform").style.visibility='hidden';}
  	if (document.layers) {document.layers["loginform"].visibility='hide';}
  	if (dom) {document.getElementById("gbcomment").style.visibility='hidden';}
  	if (document.layers) {document.layers["gbcomment"].visibility='hide';}
}

function showLogin() {

	if (dom) {document.getElementById("loginform").style.visibility='visible';}
  	if (document.layers) {document.layers["loginform"].visibility='show';}
}

function showGbComment(gbId, obj)
{
	document.getElementById("gbId").value=gbId;
	document.getElementById("gbcomment").style.top=obj.offsetTop+25;
	document.getElementById("gbcomment").style.left=obj.offsetLeft;
	if (dom) {document.getElementById("gbcomment").style.visibility='visible';}
  	if (document.layers) {document.layers["gbcomment"].visibility='show';}
}

function placeIt() {

  if (dom && !document.all) {document.getElementById("loginform").style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
  if (document.layers) {document.layers["loginform"].top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
  if (dom && !document.all) {document.getElementById("gbcomment").style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
  if (document.layers) {document.layers["gbcomment"].top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
  //if (document.all) {document.all["loginform"].style.top = document.body.scrollTop + (document.body.clientHeight - (document.body.clientHeight-y1));}

  	window.setTimeout("placeIt()", 20);   }
	//window.onload=placeIt();
	onResize="window.location.href = window.location.href";