function first()
{
	URL	= unescape(window.location)
	key	= URL.indexOf("jezus/")
	file	= URL.substring(key + 6)
	if	((file != "index.php") && (file != ""))
		window.open("index.phpl", "_self")
}

function last()
{
	URL	= unescape(window.location)
	key	= URL.indexOf("jezus/")
	file	= URL.substring(key + 6)
	if	(file != "11.php")
		window.open("11.php", "_self")
}

function previous()
{
	URL	= unescape(window.location)
	key	= URL.indexOf("jezus/")
	file	= URL.substring(key + 6)
	if	((file != "index.php") && (file != ""))
	{	
		dot	= file.indexOf(".")
		number	= file.substring(0, dot)
		current	= parseInt(number)
		prev	= --current
		sPrev	= prev.toString()
		file	= sPrev + ".php"
		if	(file == "1.php")
			file = "index.php"
		window.open(file, "_self")
	}
}

function next()
{
	URL	= unescape(window.location)
	key	= URL.indexOf("jezus/")
	file	= URL.substring(key + 6)
	if	(file != "11.php")
	{	
		if	(file != "")
		{
			dot	= file.indexOf(".")
			number	= file.substring(0, dot)
			if	(number == "index")
				number = "1"
			current	= parseInt(number)
			next	= ++current
			sNext	= next.toString()
			file	= sNext + ".php"
			window.open(file, "_self")
		}
		else
		{
			current	= 1
			next	= ++current
			sNext	= next.toString()
			file	= sNext + ".php"
			window.open(file, "_self")
		}
	}
}
