// JavaScript Document

function showpop(name) {
	var returnVar = document.getElementById(name); 
	returnVar.style.visibility = 'visible';
	var bod=document.getElementById('container'); 
	setOpacity(bod,40);
	setOpacity(returnVar,99);
}

function hidepop(name) {
	var returnVar = document.getElementById(name); 
	ht=returnVar.offsetHeight;
	returnVar.style.overflow="hidden";
	//returnVar.style.height="50px";
	//alert (ht);
	disapp(name,ht);
	//returnVar.style.visibility = 'hidden';
	//returnVar.style.display = 'none';
	
}


function fadeindiv(name) {
	
	o=document.getElementById(name);
o.style.overflow="auto";
	o.style.height="auto";

opacity=0;
o.style.visibility = 'visible';
o.style.display = 'block';
setOpacity (o, opacity);


ddown=0;
fadeLoop1 ();
}


function disapp(id,ht) {
	ht=ht-3;
	if (ht<2) {
	document.getElementById(id).visibility = 'hidden';
	document.getElementById(id).style.display = 'none';
	return;
	}
	document.getElementById(id).style.height=ht+"px";
	window.setTimeout(function(){disapp(id,ht);},40);
	
}