//	original
/*
function bigifyImage(i) {
	//	take and image URL with size specificity and remove that specificity
	var r = false;
	iparts = i.split('/');
	oparts = new Array;
	var size_position = -1;
	var j = 0;
	iparts.forEach(function(e,i,a) {
		if (e == 'size') {
			if (size_position < 0) size_position = i;
		}
		if (i > size_position+1 && size_position > 0 && e != undefined) {
			oparts[j] = e;
			j++;
		}
	});
	r = '/' + oparts.join('/');
	return r;
}
*/

//	extend Array to support forEach()
if (!Array.prototype.forEach)
{
  Array.prototype.forEach = function(fun /*, thisp */)
  {
    "use strict";
    if (this === void 0 || this === null)
		throw new TypeError();
    var t = Object(this);
    var len = t.length >>> 0;
    if (typeof fun !== "function")
      throw new TypeError();

    var thisp = arguments[1];
    for (var i = 0; i < len; i++)
    {
      if (i in t)
        fun.call(thisp, t[i], i, t);
    }
  };
}

//	JSLint-ed
function bigifyImage(i) {
	//	take and image URL with size specificity and remove that specificity
	//	it won't necessarily make the image bigger, it will just not resize it
	var r, iparts, oparts, size_position;
	r = false;
	iparts = i.split('/');
	oparts = [];
	size_position = -1;
	iparts.forEach(function (e, i, a) {
		if (e === 'size') {
			if (size_position < 0) { size_position = i; }
		}
		if (i > size_position + 1 && size_position > 0 && e !== undefined) {
			oparts.push(e);
		}
	});
	r = '/' + oparts.join('/');
	//console.log(r);
	return r;
}
