
var listHeight = 72;

var current = 0;
function MN_displayHeadlines( id ) {
	if(!sliding) {
	
		if( current && current != id ) {
			slideOpenAndClose( id, current );
		}
		else if( !current ) {
			slideOpen( id );
		}
		current = id;
	}
}
  

var sliding = 0;
function slideOpen( id ) {
	sliding = 1;
	obj = document.getElementById(id);
	obj.style.display = "block"; 
	obj.style.borderBottom = "solid 1px #c5c5c5";
	obj.style.height = ( parseInt( obj.style.height )  + 12 ) + "px";
	if( parseInt( obj.style.height ) < listHeight ) {
		setTimeout("slideOpen('" + id + "')", 30 );
	}
	else {
		sliding = 0;
	}
}

function slideOpenAndClose( idOpen, idClose ) {
	sliding = 1;
	objOpen = document.getElementById( idOpen );
	objClose = document.getElementById( idClose );
	objOpen.style.display = "block";
	
	
	
	objClose.style.height = ( parseInt( objClose.style.height )  - 12 ) + "px";
	objOpen.style.height = ( parseInt( objOpen.style.height )  + 12 ) + "px";
	
	 
	 	if( parseInt( objOpen.style.height ) > 24 ) {
			objClose.style.borderBottom = "0";
			objOpen.style.borderBottom = "solid 1px #c5c5c5"; 
		}
	 
	
	if( parseInt( objClose.style.height ) > 0 ) {
		setTimeout("slideOpenAndClose('" + idOpen + "', '" + idClose + "')", 30);
	}
	else {
		objClose.style.display = "none";
		sliding = 0;
	}
}


