var mostCommentedIntenseDebateArticles = [{"url":"http:\/\/www.waltonsun.com\/news\/school-6594-shuffle-better.html","title":"School shuffle is a lesson in better communication","totalcommentno":37,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-19 19:00:27"},{"url":"http:\/\/www.waltonsun.com\/news\/one-6611-fraud-degree.html","title":"Texas woman arrested by WCSO for internet fraud","totalcommentno":3,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-19 17:49:06"},{"url":"http:\/\/www.waltonsun.com\/news\/city-92781-newsherald-dismissed-abuse.html","title":"Abuse charges against former boys academy workers dismissed","totalcommentno":2,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-18 19:59:30"},{"url":"http:\/\/www.waltonsun.com\/news\/see-6642-accident-bicycles.html","title":"Shining a light on an accident waiting to happen","totalcommentno":2,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-18 04:35:45"},{"url":"http:\/\/www.waltonsun.com\/news\/county-6401-commissioners-set.html","title":"John Stark","totalcommentno":13,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-15 12:18:03"},{"url":"http:\/\/www.waltonsun.com\/news\/walton-6282-ordinance-family.html","title":"'Everybody is going to feel this'","totalcommentno":5,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-15 12:17:28"},{"url":"http:\/\/www.waltonsun.com\/news\/county-6294-editorial-beach.html","title":"County playing the role of wedding crasher","totalcommentno":11,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-15 12:16:47"},{"url":"http:\/\/www.waltonsun.com\/news\/beach-6411-made-ordinance.html","title":"'No firm decision has been made' on beach wedding ordinance","totalcommentno":27,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-15 12:16:07"},{"url":"http:\/\/www.waltonsun.com\/news\/ordinance-6432-county-event.html","title":"Residents make the case for wedding ordinance as county delays hearing","totalcommentno":3,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-15 12:15:12"},{"url":"http:\/\/www.waltonsun.com\/articles\/weddings-6478-asunder-torn.html","title":"A union that must not be torn asunder","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-15 12:14:01"},{"url":"http:\/\/www.waltonsun.com\/articles\/wilson-3081-davis-life.html","title":"Building Biophilia","totalcommentno":11,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-15 00:27:46"},{"url":"http:\/\/www.waltonsun.com\/news\/springs-6621-defuniak-makeup.html","title":"Runoff will determine DeFuniak Springs City Council makeup","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-14 20:04:13"},{"url":"http:\/\/www.waltonsun.com\/news\/bird-6596-solves-column.html","title":"Hey, you guys! Killing Big Bird solves nothing","totalcommentno":6,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-13 21:41:12"},{"url":"http:\/\/www.waltonsun.com\/news\/defuniak-6608-videos-middle.html","title":"Walton Middle students win statewide video contest (VIDEOS)","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-13 18:23:12"},{"url":"http:\/\/www.waltonsun.com\/news\/correctional-6222-murder-county.html","title":"Correctional officer Col. Greg Malloy killed in shootout with murder suspect","totalcommentno":4,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-12 13:49:20"},{"url":"http:\/\/www.waltonsun.com\/news\/beaches-6607-state-analysis.html","title":"BP cleaning up tar on South Walton beaches; doesn't think it's related to DeepWater Horizon spill","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-11 21:34:23"},{"url":"http:\/\/www.waltonsun.com\/news\/votes-6571-graders-walton.html","title":"Walton School Board votes to move fifth-graders","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-09 23:04:27"},{"url":"http:\/\/www.waltonsun.com\/news\/school-6597-parents-board.html","title":"Superintendent prevails with offer of olive branch","totalcommentno":5,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-09 20:46:34"},{"url":"http:\/\/www.waltonsun.com\/news\/walton-6570-involved-money.html","title":"Man involved in suspicious money-giving incident arrested in Panama City","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-06 12:52:54"},{"url":"http:\/\/www.waltonsun.com\/news\/superintendent-6566-school-concerns.html","title":"Superintendent addresses parents concerns","totalcommentno":6,"commentedinthelastperiod":0,"lastcommentdate":"2011-04-05 13:34:53"}];
function putInIntenseDebateMostCommentedArticles(howMany, showNoOfComments)
{					
	document.write('<ul class="idc">');
	for(var i=0; i< mostCommentedIntenseDebateArticles.length && i < howMany; i++)
	{
		var item = '<li><a href="' + mostCommentedIntenseDebateArticles[i].url + '">' + mostCommentedIntenseDebateArticles[i].title + '</a>';		
		if( showNoOfComments == true ) item += ' (comments ' + mostCommentedIntenseDebateArticles[i].totalcommentno + ').</li>';
		else
			item += '</li>';
		document.write( item );
	}
	document.write('</ul>');
}
