var sElementActive	= "";
var ElementTimer	= null;
var aNavElementTemp		= "";

openNews = null;
function rollOpen(oElement,height) {
	if (openNews != oElement) {
		
		if (oElement.style.display == "none") {
			oElement.style.overflow	= "hidden";
			oElement.style.display	= "";
			oElement.maxHeight		= 90;
			height+=1;
			oElement.style.height	= height+"px";
		}
		if ((height > 0) && (height < oElement.maxHeight)) {
			setTimeout(function(){rollOpen(oElement,height+30);},10);
			oElement.style.height = height+"px";
		} else {
			openNews = oElement;
		}
	}
}

function rollCloseAll(param) {
	for (i=0;i<4;i++) {
		if (param != "detail"+i) {
			oElement = document.getElementById("detail"+i);
			if (oElement.style.display != "none") {
				rollClose(oElement,oElement.offsetHeight);
			}
		}
		if (param == "all") {
			openNews = null;
		}
	}
}

function rollClose(oElement,height) {
	if (height > 0) {
		setTimeout(function(){rollClose(oElement,height-30);},10);
		oElement.style.height = height+"px";
	} else {
		oElement.style.display	= "none";
	}
}
