

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

var mnindyFeed = {"channel":{"title":"Minnesota Independent: News. Politics. Media.","link":"http:\/\/www.minnesotaindependent.com","description":"News. Politics. Media.","pubdate":"Sun, 21 Sep 2008 17:38:46 +0000","generator":"http:\/\/wordpress.org\/?v=2.6.2","language":"en","tagline":"News. Politics. Media."},"items":[{"title":"Obama rally hits McCain-Palin on economy, war","link":"http:\/\/www.minnesotaindependent.com\/9596\/obama-rally-hits-mccain-palin-on-economy-war"},{"title":"MnIndy video: McPalin crowd liked what it couldn?t see or hear","link":"http:\/\/www.minnesotaindependent.com\/9625\/mnindy-video-mcpalin-crowd-liked-what-it-couldnt-see-or-hear"},{"title":"Read my lipstick: Blaine loves McPalin!","link":"http:\/\/www.minnesotaindependent.com\/9579\/read-my-lipstick-blaine-loves-mcpalin"},{"title":"Coleman, Franken, Wall Street: Who?s received more campaign $$ from crisis and scandal-plagued FIRE sector?","link":"http:\/\/www.minnesotaindependent.com\/9500\/coleman-franken-wall-street-whos-received-more-campaign-from-crisis-plagued-wall-street"},{"title":"Big Ten Poll: Obama has narrow lead in Minnesota","link":"http:\/\/www.minnesotaindependent.com\/9524\/big-ten-poll-obama-has-narrow-lead-in-minnesota"},{"title":"Pilgrimage to Blaine: Huge, Palin-loving crowd gathers to see its heroine (and the old guy)","link":"http:\/\/www.minnesotaindependent.com\/9548\/pilgrimage-to-blaine-huge-palin-loving-crowd-masses-to-see-its-heroine"},{"title":"McCain vs. Obama: What would ChaCha do?","link":"http:\/\/www.minnesotaindependent.com\/9515\/mccain-vs-obama-what-would-chacha-do"},{"title":"McCain-Palin rally: Huge crowds flock to Sarahstock","link":"http:\/\/www.minnesotaindependent.com\/9513\/mccain-palin-rally-huge-crowds-flock-to-sarahstock"},{"title":"St. Paul won?t prosecute journalists facing ?unlawful assembly? charges from the RNC","link":"http:\/\/www.minnesotaindependent.com\/9489\/st-paul-wont-prosecute-journalists-facing-unlawful-assembly-charges-from-the-rnc"},{"title":"Now she?s an economics expert: Bachmann (R-N.M.?!) stiffs baristas with Starbucks shrug","link":"http:\/\/www.minnesotaindependent.com\/9478\/bachmann-r-nm-stiffs-baristas-with-starbucks-shrug"}]};
/* 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{ list-style: none outside url('+mnindyArrow+'); margin-bottom: 6px; }');
	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('');
	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";

