
/* ランダムイメージ表示 ----------------------------------------------------- */
var images = new Array;

images[0]  = 'body12';
images[1]  = 'body13';
images[2]  = 'body14';
images[3]  = 'body15';
images[4]  = 'body16';
images[5]  = 'body16';
images[6]  = 'body18';
images[7]  = 'body19';
images[8]  = 'body20';
images[9]  = 'body21';
images[10]  = 'body22';
images[11]  = 'body23';
images[12]  = 'body24';
images[13]  = 'body25';

images[14]  = 'body02';
images[15]  = 'body05';
images[16]  = 'body06';
images[17]  = 'body09';
images[18]  = 'body11';

function myrandom(max)
{
	var value = max * Math.random();
	if (value == 0.0)
		value = 1;
	else
		value = Math.ceil(value);
	return value;
}

function showImage(index)
{
	if (index <= (images.length - 1))
	{
		var className = images[index] ;
		
		document.write("<body class='"+ className + "' >");
	}
}

function showImage_random()
{
	showImage(myrandom(images.length) - 1);
}

function showImage_all()
{
	for (var i = 0; i < images.length; i++)
		showImage(i);
}
/* -------------------------------------------------------------------------- */