var mostCommentedIntenseDebateArticles = [{"url":"http:\/\/www.corning-observer.com\/news\/day-10848-veterans-parade.html","title":"A special day to remember veterans","totalcommentno":2,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-14 23:44:50"},{"url":"http:\/\/www.corning-observer.com\/articles\/service-9058-projects-east.html","title":"Service projects sought","totalcommentno":21,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-12 19:07:25"},{"url":"http:\/\/www.corning-observer.com\/news\/state-10847-meyer-park.html","title":"New life for Woodson Bridge?","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-12 14:57:20"},{"url":"http:\/\/www.corning-observer.com\/news\/cole-10791-district-years.html","title":"High school chief announces retirement","totalcommentno":3,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-12 06:06:54"},{"url":"http:\/\/www.corning-observer.com\/news\/deputies-10787-horse-kevie.html","title":"Abused horse lands man in jail","totalcommentno":4,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-05 04:09:01"},{"url":"http:\/\/www.corning-observer.com\/news\/corning-10799-observer-inc.html","title":"Corning Observer owner sells TV stations","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-03 23:33:27"},{"url":"http:\/\/www.corning-observer.com\/news\/nielsen-10789-bird-ross.html","title":"Bird wiles petition against Tehama clerk-recorder","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-02 11:19:39"},{"url":"http:\/\/www.corning-observer.com\/news\/halloween-10775-children-corning.html","title":"Keeping Halloween scary fun, not dangerous","totalcommentno":2,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-29 01:50:45"},{"url":"http:\/\/www.corning-observer.com\/news\/work-10751-farm-partnership.html","title":"Supervisors give nod to work farm studies","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-26 02:10:35"},{"url":"http:\/\/www.corning-observer.com\/news\/bird-10747-accuses-think.html","title":"Bird accuses assemblyman's wife of lying under oath","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-26 00:57:53"},{"url":"http:\/\/www.corning-observer.com\/sports\/corning-10736-yreka-yard.html","title":"Corning causes Miners cave-in","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-23 04:01:47"},{"url":"http:\/\/www.corning-observer.com\/news\/park-10678-skate-bike.html","title":"Skate\/bike park design gets rave reviews","totalcommentno":4,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-20 17:19:22"},{"url":"http:\/\/www.corning-observer.com\/news\/city-10627-downtown-group.html","title":"Group begins push for improvements to downtown Corning","totalcommentno":15,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-18 12:57:04"},{"url":"http:\/\/www.corning-observer.com\/news\/gives-10628-child-nursery.html","title":"VFW sees a need and gives a hand up","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-08 10:40:27"},{"url":"http:\/\/www.corning-observer.com\/news\/nielsen-10605-bird-assemblyman.html","title":"Nielsen, Bird wage court battle","totalcommentno":2,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-06 02:49:35"},{"url":"http:\/\/www.corning-observer.com\/news\/street-10562-first-work.html","title":"Volunteers hit the streets to clean","totalcommentno":2,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-02 20:05:48"},{"url":"http:\/\/www.corning-observer.com\/news\/dogs-10452-clark-dog.html","title":"To get smart dogs, you need a brainy trainer","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-02 17:49:28"},{"url":"http:\/\/www.corning-observer.com\/news\/allison-10557-police-officer.html","title":"Allison set to retire","totalcommentno":3,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-01 22:03:55"},{"url":"http:\/\/www.corning-observer.com\/news\/downtown-10538-business-corning.html","title":"Community meetings focus on downtown","totalcommentno":2,"commentedinthelastperiod":0,"lastcommentdate":"2011-09-25 14:13:20"},{"url":"http:\/\/www.corning-observer.com\/news\/loper-10511-eagle-honor.html","title":"Local teen soars after earning Eagle Scout rank","totalcommentno":5,"commentedinthelastperiod":0,"lastcommentdate":"2011-09-22 03:24:05"}];
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>');
}
