function toggleTab(num) {
	var listEl = document.getElementById("most_popular").getElementsByTagName("li");
	var boxTopStories = document.getElementById("top_stories");
	var boxMostViewed = document.getElementById("most_viewed");
	var boxMostComment = document.getElementById("most_commented");
	
	for (var i=0; i<listEl.length; i++) {
		if (i==num) {
			listEl[i].className+=listEl[i].className?' here':' here';
		} else {
			listEl[i].className='';
		}
	}
	
	if (num==0) {
		boxTopStories.className+=boxTopStories.className?' here':' here';
		boxMostViewed.className='';
		boxMostComment.className='';
	} else if (num==1) {
		boxTopStories.className='';
		boxMostViewed.className+=boxTopStories.className?' here':' here';			
		boxMostComment.className='';
	} else if (num==2) {
		boxTopStories.className='';
		boxMostViewed.className='';
		boxMostComment.className+=boxTopStories.className?' here':' here';			
	}
}
