// JavaScript Document
function swap(id,img) {
	$(id).src = img;	
}



function showArticle(id) {
	
	
	var articles = $$('div.article');
	var readLinks = $$('div.readMore');
	
	// hide all articles, show all read more links
	for (i=0;i<articles.length;i++) {
			articles[i].style.height='65px';
			
	}
	for (i=0;i<readLinks.length;i++) {readLinks[i].style.display='block';}
	
	


// show article, but hide expand link
	$('article'+id).style.height='auto';
	$('rm'+id).style.display='none';
	
}
 
 
 
 
// new Effect.Opacity('article0'+[i], { from: 1.0, to: 0.5, duration: 0.5 });