/* Image Resizer by Leinardo Smith */
function img() {
/* Change only the numbers here the known numbers are: 320 400 640 1280 1600 */

var oldImgSize = "400"; /* This is the old image size */
/* You can find the old image size by Google'ing "s1600 blogger images" */

var newImgSize = "640"; /* This is the new image size */
/* Try out the different sizes: 320 400 640 1280 1600 */

/* DO NOT CHANGE ANYTHING AFTER THIS LINE! */
var x=document.images;
oldImgSize = "/s" + oldImgSize + "/";
newImgSize = "/s" + newImgSize + "/";
var j, k, find, page, repl;
find = oldImgSize;
repl = newImgSize;
var blogger=".blogspot.com/";

for (var s=0;s<x.length;s++) {
	page = x[s].src;
	if (page.indexOf(blogger)) {
		if(page.indexOf(find)!=-1) {
			var j = page.indexOf(find);
			var k = find.length;
			page = page.substr(0,j) + repl + page.substr(j+k);
			x[s].src = page;
			x[s].style.display='';
			x[s].style.width='auto';
			x[s].style.height='auto';
		}
	}
}
}

window.onmousedown = img;
window.onmousemove = img;
document.onkeyup = img;
