function fillWindow (func, subfunc)
{
	lastfunc = func;
	lastsubfunc = subfunc;

	switch(func) {
	case 1:
		fillFrame('body.html','1000px');
		break;
	case 2:
		fillFrame('gallery.html','750px');
		break;
	case 3:
		switch (subfunc) {
		case 0:
			fillFrame('gallery.html','750px');
			break;
		case 1:
			fillThumbsGalleryText(silvergelatin, silvergelatinText);
			break;
		case 2:
			fillThumbsGalleryText(toned,tonedText);
			break;
		case 3:
			fillThumbsGalleryText(cyanotype,cyanotypeText);
			break;
		case 4:
			fillThumbsGalleryText(lith,lithText);
			break;
		case 5:
			fillThumbsGalleryText(vdb,vdbText);
			break;
		case 6:
			fillThumbsGalleryText(gum,gumText);
			break;
		case 7:
			fillThumbsGalleryText(pinhole,pinholeText);
			break;
		}
		break;
	case 4:
		switch(subfunc) {
		case 0:
			fillFrame('gallery.html','750px');
			break;
		case 1:
			fillThumbsGalleryText(capecod,capecodText);
			break;
		case 2:
			fillThumbsGalleryText(paris,parisText);
			break;
		case 3:
			fillThumbsGalleryText(lighthouses,lighthousesText);
			break;
		case 4:
			fillThumbsGalleryText(italy,italyText);
			break;
		}
		break;
	case 5:
		fillFrame('contact.html','1000px');
		break;
	case 6:
		fillFrame('services.html','100px');
		break;
	case 7:
		fillFrame('technical.html','1000px');
		break;
	}
}

