var mostCommentedIntenseDebateArticles = [{"url":"http:\/\/www.orland-press-register.com\/news\/school-8228-marijuana-students.html","title":"Student admits selling pot brownies","totalcommentno":8,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-15 04:31:30"},{"url":"http:\/\/www.orland-press-register.com\/news\/percent-8268-garbage-city.html","title":"Garbage rates raised","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-15 02:04:06"},{"url":"http:\/\/www.orland-press-register.com\/news\/orland-8236-plant-company.html","title":"Geyser leaves after 2-year battle to build plant","totalcommentno":7,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-14 19:22:50"},{"url":"http:\/\/www.orland-press-register.com\/news\/city-8249-benson-senior.html","title":"Council deadlocks on senior subdivision change","totalcommentno":2,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-11 01:52:30"},{"url":"http:\/\/www.orland-press-register.com\/news\/ban-8242-smoking-council.html","title":"Smoking likely banned in certain areas","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-09 03:13:07"},{"url":"http:\/\/www.orland-press-register.com\/articles\/orland-8204-job-seeing.html","title":"Hector Geurrero","totalcommentno":2,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-03 20:37:56"},{"url":"http:\/\/www.orland-press-register.com\/news\/register-8213-inc-owner.html","title":"Press-Register owner sells TV stations","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-02 20:20:58"},{"url":"http:\/\/www.orland-press-register.com\/news\/dui-8192-halloween-tolle.html","title":"Trick-or-treating for DUIs","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-11-01 07:04:45"},{"url":"http:\/\/www.orland-press-register.com\/articles\/rotary-6264-food-orland.html","title":"Food, song, spirits at Brew and Wine Fest","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-22 16:34:36"},{"url":"http:\/\/www.orland-press-register.com\/news\/nielsen-8147-bird-assemblyman.html","title":"Bird, Nielsen settle case","totalcommentno":2,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-22 13:02:33"},{"url":"http:\/\/www.orland-press-register.com\/news\/jones-8054-patrols-orland.html","title":"Police, sheriff scramble to fill patrols","totalcommentno":3,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-22 03:17:47"},{"url":"http:\/\/www.orland-press-register.com\/news\/smith-8143-highway-chp.html","title":"CHP memorial; 'We&rsquo;re not just out there enforcing laws and writing tickets'","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-22 03:15:44"},{"url":"http:\/\/www.orland-press-register.com\/news\/tolle-8095-powell-department.html","title":"OPD's tarnished image being polished","totalcommentno":2,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-17 19:00:08"},{"url":"http:\/\/www.orland-press-register.com\/news\/city-8087-council-agenda.html","title":"Garbage disposal fees, subdivision on agenda","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-17 18:51:36"},{"url":"http:\/\/www.orland-press-register.com\/news\/law-8071-gun-enforcement.html","title":"More money to hunt armed felons; legal owners say they will pay cost","totalcommentno":2,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-17 04:42:59"},{"url":"http:\/\/www.orland-press-register.com\/articles\/county-2505-tcnsyndication-highway-set.html","title":"October 12, 2011","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-17 04:24:58"},{"url":"http:\/\/www.orland-press-register.com\/articles\/highway-2502-tcnsyndication-corning-street.html","title":"Wednesday, October 5, 2011","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-11 18:34:13"},{"url":"http:\/\/www.orland-press-register.com\/articles\/tolle-7887-police-orland.html","title":"Tolle back in charge of Orland police","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-11 18:30:35"},{"url":"http:\/\/www.orland-press-register.com\/news\/thompson-7997-jones-state.html","title":"State prisoners are coming","totalcommentno":4,"commentedinthelastperiod":0,"lastcommentdate":"2011-10-11 17:19:16"},{"url":"http:\/\/www.orland-press-register.com\/news\/city-7981-manager-council.html","title":"City manager's authority debated","totalcommentno":1,"commentedinthelastperiod":0,"lastcommentdate":"2011-09-25 01:35:29"}];
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>');
}
