var comicsCurrentPage;
var comicsPictureNames = [];
comicsPictureNames.push("01.jpg");

function ChangeComicsPage(newComicsPage)
{
	if ((newComicsPage == -1) || (newComicsPage == comicsPictureNames.length))
		return;
		
	comicsCurrentPage = newComicsPage;

	document.getElementById("imgComicsStripPrevious").disabled = (comicsCurrentPage == 0);
	document.getElementById("imgComicsStripNext").disabled = (comicsCurrentPage == (comicsPictureNames.length - 1));
	document.getElementById("slctComicsStripPageSelect").selectedIndex = comicsCurrentPage;
	
	document.getElementById("imgComicsStrip").src = "ComicsStrip/" + comicsPictureNames[comicsCurrentPage];
}

function SetComicsStripPageSelect()
{
	var selectObj = document.getElementById("slctComicsStripPageSelect");
	for (var i = 0; i < comicsPictureNames.length; i++)
		selectObj.options[selectObj.options.length] = new Option((i + 1), i);
		
	selectObj.onchange = function()
	{
		ChangeComicsPage(this.value * 1);
	}
}