/*
atelier EMU ²ÝÀ°È¯Ä

Copyright 2001, 2002, 2003 atelier EMU.
All Rights Reserved.
*/

var min = 1, max = 100; //haikei_1
var current;
with (location)
{
	current = parseInt(href.substring(href.indexOf("?") + 1, href.indexOf("!")));
}
if (current)
{
	window.status = current;
}
else
{
	current = 1;
	window.defaultStatus = document.title;
}
preview.src = getURL();

function goBack()
{
	current --;
	if (current < min) current = min;
	preview.src = getURL();
}

function goForward()
{
	current ++;
	if (current > max) current = max;
	preview.src = getURL();
}

function getURL()
{
	var URL = "cliparts/large/"; //omakase-rom
	if (current) return URL + current + ".jpg"; else return "";
}

