

var mnindyFeedUrl = "http://www.minnesotamonitor.com/rss/rss2.xml";

var mnindyFeed = {"channel":{"title":"Minnesota Monitor - Front Page","link":"http:\/\/www.minnesotamonitor.com","description":"Minnesota Monitor","lastbuilddate":"Tue, 21 Apr 2009 15:31:29 GMT","tagline":"Minnesota Monitor"},"items":[{"title":"Minnesota Monitor is now the Minnesota Independent","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4222"},{"title":"Video: O'Reilly Factor ambush on Moyers backfires at media conference","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4221"},{"title":"Franken wins DFL endorsement","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4220"},{"title":"DFL Convention: Let the balloting begin!","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4219"},{"title":"DFL convention: Franken v. Nelson-Pallmeyer","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4218"},{"title":"Lowe's ads get OK in Minneapolis parks","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4217"},{"title":"Howard Dean addresses DFL convention","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4215"},{"title":"Klobuchar on Franken","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4216"},{"title":"Senate committee: Bush misled public on Iraq intelligence","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4214"},{"title":"North Dakota is the Saudi Arabia of... oil","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4213"},{"title":"The Uptake's update","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4212"},{"title":"Friday Financials: How to put you money where your mouth is. Literally.","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4211"},{"title":"Media Monitor: Ask a 'stupid' question...","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4210"},{"title":"You don't know Jack: Can Nelson-Pallmeyer beat Franken for the DFL nomination?","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4209"},{"title":"U of M grain disease research threatened by U.S. ag policies","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4208"},{"title":"Convenient: RNC's Obama attack ignores convention planner's own Rezko baggage","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4207"},{"title":"Religious rights or classroom disruption? Student sues over anti-abortion shirts","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4206"},{"title":"Campaign songs: The good, the bad, and the ABBA","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4202"},{"title":"VP or not VP: Pawlenty raises his national profile","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4205"},{"title":"Central Corridor rail: Traffic, parking a game of inches","link":"http:\/\/www.minnesotamonitor.com\/showDiary.do?diaryId=4204"}]};
/* prototype lite minified */

var Class={create:function(){return function(){this.initialize.apply(this,arguments);}}}
Object.extend=function(destination,source){for(property in source)destination[property]=source[property];return destination;}
Function.prototype.bind=function(object){var __method=this;return function(){return __method.apply(object,arguments);}}
Function.prototype.bindAsEventListener=function(object){var __method=this;return function(event){__method.call(object,event||window.event);}}
function $(){if(arguments.length==1)return get$(arguments[0]);var elements=[];$c(arguments).each(function(el){elements.push(get$(el));});return elements;function get$(el){if(typeof el=='string')el=document.getElementById(el);return el;}}
if(!window.Element)var Element=new Object();Object.extend(Element,{remove:function(element){element=$(element);element.parentNode.removeChild(element);},hasClassName:function(element,className){element=$(element);if(!element)return;var hasClass=false;element.className.split(' ').each(function(cn){if(cn==className)hasClass=true;});return hasClass;},addClassName:function(element,className){element=$(element);Element.removeClassName(element,className);element.className+=' '+className;},removeClassName:function(element,className){element=$(element);if(!element)return;var newClassName='';element.className.split(' ').each(function(cn,i){if(cn!=className){if(i>0)newClassName+=' ';newClassName+=cn;}});element.className=newClassName;},cleanWhitespace:function(element){element=$(element);$c(element.childNodes).each(function(node){if(node.nodeType==3&&!/\S/.test(node.nodeValue))Element.remove(node);});},find:function(element,what){element=$(element)[what];while(element.nodeType!=1)element=element[what];return element;}});var Position={cumulativeOffset:function(element){var valueT=0,valueL=0;do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;element=element.offsetParent;}while(element);return[valueL,valueT];}};document.getElementsByClassName=function(className){var children=document.getElementsByTagName('*')||document.all;var elements=[];$c(children).each(function(child){if(Element.hasClassName(child,className))elements.push(child);});return elements;}
Array.prototype.each=function(func){for(var i=0;ob=this[i];i++)func(ob,i);}
function $c(array){var nArray=[];for(i=0;el=array[i];i++)nArray.push(el);return nArray;}/* writes a rss box for newjournalist.org  sites*/


// private variables
if (!mnindyArrow)
	var mnindyArrow = 'http://rss.newjournalist.org/img/arrowGreen.gif';

if (!mnindyArrowOver)
	var mnindyArrowOver = 'http://rss.newjournalist.org/img/arrowOlive.gif';

if (!mnindyBgImage)
	var mnindyBgImage =  "http://rss.newjournalist.org/img/mnIndyBg.jpg";	

if (!mnindyBorderColor)
	var mnindyBorderColor = "#eadcce";

if (!mnindyItemColor)
	var mnindyItemColor = "#000";
	
if (!mnindyItemColorOver)
	var mnindyItemColorOver = "#556622";
	
if (!mnindyContainerWidth)
	var mnindyContainerWidth = 200;	

if (!mnindyContainerHeight)
	var mnindyContainerHeight = 300;
	
mnindyContainerWidth -= 14;
mnindyContainerHeight -= 14;

var mnindyMaxHeight = mnindyContainerHeight - 56;


with(document){
	write('<div style=" height: '+mnindyContainerHeight+'px; width: '+mnindyContainerWidth+'px; background: #ebe1d2 url(\''+mnindyBgImage+'\') no-repeat top center; text-align: left; font: bold 10px/12px Arial, Helvetica, sans-serif; padding: 7px; border: 1px solid '+mnindyBorderColor+';" id="mnindyFeedBox">');

	write('<a href="'+mnindyFeed.channel.link+'" style="border:0;"><img src="http://rss.newjournalist.org/img/blank.gif" alt="" height="51" width="'+(mnindyContainerWidth)+'" style="border:0;"/></a>');

	write('\t <div id="mnindyNewsBox" style=" width:'+mnindyContainerWidth+'px; height: 0px; overflow: hidden;padding-top: 3px">');
	write('<style type="text/css" media="screen">');
	write('ul#mnindyFeedList{ margin: 0px; padding: 0px 0px 0px 17px; letter-spacing: 0px; line-height: 14.2px; text-align: left; font: bold 12px/14px Arial, Helvetica, sans-serif;}');
	write('ul#mnindyFeedList li{ text-indent: 0; list-style: none outside url('+mnindyArrow+'); margin-bottom: 6px; padding:0px;}');
	write('ul#mnindyFeedList li:hover{ list-style: none outside url('+mnindyArrowOver+'); }');
	write('ul#mnindyFeedList li a{ color: '+mnindyItemColor+'; text-decoration: none;}');
	write('ul#mnindyFeedList li a:hover{ color: '+mnindyItemColorOver+';');
	write('ul#mnindyFeedList li.mnindyNewsItem{ text-indent:0px; padding: 0px; }');
	write('\n');
	write('');
	write('</style>');
	write('\t <ul id="mnindyFeedList">');
}

for (var i=0; i < mnindyFeed.items.length; i++) {	document.write('\t\t <li class="mnindyNewsItem"><a href="'+ mnindyFeed.items[i].link +'">'+ mnindyFeed.items[i].title + '</a></li>');};

with(document){
	write('\t </ul>');
	write('\t </div>');
	


	
	

	write('<!-- feed updated: '+mnindyFeed.channel.lastbuilddate+' -->')
	write('</div>');
}



var mnindyLis = document.getElementsByClassName('mnindyNewsItem');
var mnindyHeight = 0;
mnindyLis.each(function(mnindyLi){
	mnindyHeight += mnindyLi.scrollHeight+6;
	if (mnindyHeight >mnindyMaxHeight){
		mnindyLi.style.display="none";
	}
});
$('mnindyNewsBox').style.height= mnindyMaxHeight+"px";
//$('mnindyRssLink').style.display= "block";

