// JavaScript Document
function getBrowserHeight() 
{
	var x = 0;
	var y = 0;
	
	var bd_ht = document.body.scrollHeight;
	var bd_wd = document.body.offsetHeight;
	if (bd_ht > bd_wd)
	{
		x = document.body.scrollWidth;
		y = document.body.scrollHeight;
	}
	else
	{
		x = document.body.offsetWidth;
		y = document.body.offsetHeight;
	}
	
	return { width: parseInt(x), height: parseInt(y) };
}  


function getPageScroll()
{
	var yScroll; 
	if (self.pageYOffset) 
	{ 
		yScroll = self.pageYOffset;
	} 
	else if (document.documentElement && document.documentElement.scrollTop)
	{ 
		yScroll = document.documentElement.scrollTop; // Explorer 6 Strict
	} 
	else if (document.body) 
	{
		yScroll = document.body.scrollTop; // all other Explorers
	}
	//else{yScroll=100;}  alert(yScroll);
	return { scrollheight: parseInt(yScroll) };
	}

function setLayerPosition() 
	{
	var ScrollHeight = getPageScroll();  
	var show = document.getElementById("show");
	var bws = getBrowserHeight();  
	show.style.left = 350;
	show.style.top = 160;
	//show.style.top = parseInt(ScrollHeight.scrollheight + 150);
	//show = null;
	}


function showLayerNew() 
	{ 
	setLayerPosition();
	document.getElementById("show").style.display = "block";
	}

function hideLayerNew() 
	{
	document.getElementById("show").style.display = "none";
	}
	
function showLayercomments() 
	{
	setLayerPosition(); 
	document.getElementById("comments").style.display = "block";
	}

function hideLayercomments() 
	{
	document.getElementById("comments").style.display = "none";
	}