﻿var win
var timeoutId
function SetFocus(){
	win.focus();
	window.clearTimeout(timeoutId);
}
function show(me){
var w=new Number(me.width-16)*2
var h=new Number(me.height)*2
var s=me.parentElement.outerText

	setCookie("Image",me.src.replace(/s.jp/i,"L.jp")+"|"+w+"|"+h+"|"+s)
	win = window.open("image.htm","w_image","toolbar=0,location=0,scrollbars=1,resizable=1,width="+(w+60)+",height="+(h+110),0)
	if (win)
		timeoutId = window.setTimeout("SetFocus()",2);
	return;
}
function mover(me){
	window.document.body.style.cursor = 'pointer';
	me.alt="Click to enlarge"
}
function mout(){
	window.document.body.style.cursor = 'default';
}