function init_month_archive () {
	$('#archivemonths > li > a').each(function() {
		var temp = this.innerHTML.split(" ");
		var mo=temp[0].substring(0,3);
		var yr = temp[1];
		var html = "<strong>"+mo+"</strong> "+yr;
		this.innerHTML = html;
		if(yr%2 == 1) {this.parentNode.className="evenyear";}
		else {
			this.parentNode.className="oddyear";
		
			if (navigator.userAgent.indexOf('MSIE') == -1){ // If not on IE
				if(mo == 'Jan' || mo == 'Feb' || mo == 'Mar' || mo == 'Apr' || mo == 'May' || mo == 'Jun' ){ this.parentNode.style.marginBottom="5px"; }
				if(mo == 'Jul' || mo == 'Aug' || mo == 'Sep' || mo == 'Oct' || mo == 'Nov' || mo == 'Dec' ){ this.parentNode.style.marginTop="5px"; }
				
			}
		}
		if (navigator.userAgent.indexOf('MSIE') == -1){ // If not on IE
			if(mo == 'Dec'){this.parentNode.style.clear="left";}
			if(mo == 'Jun'){this.parentNode.style.clear="left";}			
		}
		var count = $.trim(this.nextSibling.nodeValue);
		$(this.nextSibling).wrap("<span class='count'></span>");
	});
}

function init_category_archive() {
	$('.cat-item > a').each(function() {
		$.trim(this.nextSibling.nodeValue);
		$(this.nextSibling).wrap("<span class='count'></span>");
	});
}

function resize_wide_images() {
	//Resize legacy graphics that were 500px wide (mainly Flickr 500px width images)
	$('.entry > p > a > img').each(function() {
		if(this.width > 450){
			this.style.width="450px";
			this.style.height="auto";
		}
	});
}