
Array.prototype.findIdx = function(value){
    for (var i=0; i < this.length; i++) {
        if (this[i] == value) {
            return i;
        }
    }
}

function jump($element) {
	location.href = "#" + $element.attr('id');
}

var resizeContentWrapper = function () {
	var $contentWrapper = $('#contentwrapper');
	var $contentColumn = $('#contentcolumn'); 	
	$contentWrapper.css('height', $contentColumn.height() + 20);
	ddequalcolumns.resetHeights();
}

Date.patterns = {
    ISO8601Long:"Y-m-d H:i:s",
    ISO8601Short:"Y-m-d",
    ShortDate: "n/j/Y",
    LongDate: "l, F d, Y",
    FullDateTime: "l, F d, Y g:i:s A",
    MonthDay: "F d",
    ShortTime: "g:i A",
    LongTime: "g:i:s A",
    SortableDateTime: "Y-m-d\\TH:i:s",
    UniversalSortableDateTime: "Y-m-d H:i:sO",
    YearMonth: "F, Y"
};
