function over(x) {
    var c = x.src;
	var i = c.substr(c.lastIndexOf("."), 3);
	x.src = (c.substr(c.lastIndexOf(".")-5,5).indexOf("over") == 1) ? c.replace("_over","") : c.replace(i, "_over" + i);
}

function view(x,w,h) {
	var i = x.src.lastIndexOf('photos/');
	var n = (x.src.substr(i, x.src.length - i)).replace("thumbnails","images");
	w = (w != null) ? w : "300";
	h = (h != null) ? h : "300";
	window.open("../browser.aspx?image=" + n, "browser", "width=" + w + ",height=" + h + ",screenX=50,screenY=50");
}

function blowup(x,prev) {
	window.open('browser.aspx?image=' + x, 'image', 'width=300, height=300, screenX=50, screenY=50, resizable=yes');
}

function viewAutoImg(x) {
	var n = (x.src.replace("getthumbnail.asph?src=", ""));
	blowup(n);
}

function sendto() {
		window.open("sendtofriend.aspx?url=" + location.href,"sendto","width=400, height=300");
}

