function hideLayer(){
	pLayer = document.getElementById("photoLayer");
	pLayer.style.display = "none";
	
}
function makeLayer(photoSrc){
	photo200Dir = photoSrc.match(/(images\/\d{4}\/)(\w+\.jpg)/);
	photo400Dir = RegExp.$1 + "400/" + RegExp.$2;
	pLayer = document.getElementById("photoLayer");
	pLayer.style.display = "block";
	pLayer.style.top = "0px";
	pLayer.style.right = "0px";
	pLayer.style.borderLeft = "dotted 1px #FC0";
	pLayer.style.borderBottom = "dotted 1px #FC0";
	pLayer.innerHTML = '<img src="' + photo400Dir + '"><div style="text-align:right;margin-top:3px;"><a href="javascript:hideLayer()">閉じる ×</a></div>';
	pLayer.style.backgroundColor = "#FFFFFF";
	pLayer.style.padding = "20px";
	scrollBy(0, -1);
}
