$(document).ready(function(){
	$(".nojs").hide();
	$("a[rel~=external]").attr({ target: "_blank" });
});

// prototype functions:
Date.prototype.getMonthStr = function() {
	var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
	return months[this.getMonth()];
}

Date.prototype.addDays = function(n) {
	this.setDate(this.getDate() + n);
}

Date.prototype.addMonths = function(n) {
	this.setMonth(this.getMonth() + n);
}

Date.prototype.equalTo = function(d) {
	return (this.getFullYear() == d.getFullYear() && this.getMonth() == d.getMonth() && this.getDate() == d.getDate());
}
