
/**
 * The following three function toggleMoreLess, showMoreNode and showLessNode
 * are used by the Link flexinode type (node-flexinode-2.tpl.php) to limit the amount of the 
 * descriptions that are show when the Link nodes are interestd into other pages. 
 */
function toggleMoreLess(nid) {
				
	var more = document.getElementById('more' + nid);
	var less = document.getElementById('less' + nid);  
	
	if (more.style.display == 'inline') {
		more.style.display = 'none';
		less.style.display = 'inline';
	} else {
		more.style.display = 'inline';
		less.style.display = 'none';
	}
	
}

function showMoreNode(nid) {
	var text = document.getElementById('desc' + nid);  
	
	text.style.display = 'inline';
	
	toggleMoreLess(nid);
}

function showLessNode(nid) {
	var text = document.getElementById('desc' + nid);  
	
	text.style.display = 'none';
	
	toggleMoreLess(nid);
	
}