function MailForm () {
	window.open('./mail.php','PoohMail','width=360,height=380,scrollbars=yes,resizable=yes');
}

function NengaForm () {
	window.open('./nenga.php','PoohNenga','width=360,height=380,scrollbars=yes,resizable=yes');
}

function MenuLoad() {
	imgURL = new Array('tp','tr','st','in','co','ga','li','gu','bb','ch','pr');
	imgSRC = new Array();
	for (i = 0;i < imgURL.length;i++) {
		imgSRC[i] = new Image();
		imgSRC[i].src = 'gif/mn-' + imgURL[i] + '_on.gif';
	}
}

function MouseOn(id) {
	document.getElementById(id).src = 'gif/mn-' + id + '_on.gif';
}

function MouseOff(id) {
	document.getElementById(id).src = 'gif/mn-' + id + '_off.gif';
}

function FormOn(id) {
	document.getElementById(id).style.backgroundColor = '#FFFFFF';
}

function FormOff(id) {
	document.getElementById(id).style.backgroundColor = '#FFFFCC';
}

function Gallery1 (query) {
	list = new Array();
	list['sara'] = new Array('21','gif');
	list['toki'] = new Array('3','gif');
	list['junjun'] = new Array('3','jpg');
	list['poooh'] = new Array('2','jpg');
	list['nara'] = new Array('1','gif');
	list['karinn'] = new Array('3','jpg');

	for (i = 0;i < 25;i++) {
		file = 'gif/blank.gif';
		if (i <= list[query][0]) {
			ex = i == 0 ? 'gif' : list[query][1];
			if (i < 10) i = '0' + i;
			file = ex + '/g_' + query + i + '.' + ex;
		}
		document.ImgView1[i].src = file;
	}
}

function Gallery2 (query) {
	document.getElementById('AdSense').style.display = 'none';
	document.ImgView2.src = 'jpg/omake_' + query + '.jpg';
}

function Gallery3 (g_no) {
	if (g_no < 41) {wid = 330; hei = 465;}
	else {wid = 220; hei = 275;}
	w=window.open('jpg/kokodayo' + g_no + '.jpg','Gallery3','width=' + wid + ',height=' + hei);
	w.focus();
}
