function SubItemInfo( link, text, homeId ) {
	this.link = link;
	this.text = text;
	this.homePhotoId = homeId;
}

function ListItemInfo( link, photo, title, description, subItems, homeId )
{
	this.link = link;
	this.photo = photo;
	this.title = title;
	this.description = description;
	if (subItems == null) {
		this.subItems = new Array(0);
	} else {
		this.subItems = subItems;
	}
	this.homePhotoId = homeId;
}

function ListPageInfo( trailArray, itemArray )
{
	this.trail = trailArray;
	this.items = itemArray;
}

function getListPageInfo( listPageID )
{
	var trailArray, itemArray;

	switch( listPageID )
	{
// EDUCATIONAL
		case 1:
			trailArray = new Array( 2 );
			trailArray[0] = new TrailInfo( "list.htm?id=0", "Top" );
			trailArray[1] = new TrailInfo( "list.htm?id=1", "K-12 Educational Facilities" );

			itemArray = new Array();
			itemArray[itemArray.length] = new ListItemInfo( "examples.htm?id=0", "graphics/list_tv1.jpg", "Academic", "" );
			itemArray[itemArray.length] = new ListItemInfo( "examples.htm?id=1", "graphics/list_track1.jpg", "Athletic", "" );
			itemArray[itemArray.length] = new ListItemInfo( "examples.htm?id=2", "graphics/list_nsci1.jpg", "Science Laboratories", "" );
			itemArray[itemArray.length] = new ListItemInfo( "examples.htm?id=4", "graphics/list_lobby4.jpg", "Historical", "" );
//			itemArray[itemArray.length] = new ListItemInfo( "examples.htm?id=3", "graphics/not.jpg", "Technology", "" );
			break;

// MUNICIPAL
		case 2: 
			trailArray = new Array( 2 );
			trailArray[0] = new TrailInfo( "list.htm?id=0", "Top" );
			trailArray[1] = new TrailInfo( "list.htm?id=2", "Municipal Facilities" );

			itemArray = new Array( 5 );
			itemArray[0] = new ListItemInfo( "examples.htm?id=5", "graphics/list_troy4.jpg", "Police & Fire", "" );
			itemArray[1] = new ListItemInfo( "examples.htm?id=6", "graphics/list_wind1.jpg", "Recreation", "" );
			itemArray[2] = new ListItemInfo( "examples.htm?id=7", "graphics/list_gpcity1.jpg", "Administration", "" );
			itemArray[3] = new ListItemInfo( "examples.htm?id=8", "graphics/list_fraser3.jpg", "Libraries", "" );
			itemArray[4] = new ListItemInfo( "examples.htm?id=9", "graphics/list_otter1.jpg", "Zoos", "" );
			break;
// BUSINESS FACILITIES
		case 3: 
			trailArray = new Array( 2 );
			trailArray[0] = new TrailInfo( "list.htm?id=0", "Top" );
			trailArray[1] = new TrailInfo( "list.htm?id=3", "Business Facilities" );

			itemArray = new Array( 3 );
			itemArray[0] = new ListItemInfo( "examples.htm?id=10", "graphics/list_art1.jpg", "Retail", "" );
			itemArray[1] = new ListItemInfo( "examples.htm?id=11", "graphics/list_bcbs1.jpg", "Offices", "" );
			itemArray[2] = new ListItemInfo( "examples.htm?id=12", "graphics/list_chry1.jpg", "Manufacturing", "" );
			break;
// TOP
		case 0:
		default:
			trailArray = null;
			itemArray = new Array(6);

			var subItems = new Array();
			subItems[subItems.length] = new SubItemInfo("examples.htm?id=0", "Academic", 26);
			subItems[subItems.length] = new SubItemInfo("examples.htm?id=1", "Athletic", 7);
			subItems[subItems.length] = new SubItemInfo("examples.htm?id=2", "Science Labs", 8);
			subItems[subItems.length] = new SubItemInfo("examples.htm?id=4", "Historical", 9);
//			subItems[subItems.length] = new SubItemInfo("examples.htm?id=3", "Technology", 10);
			itemArray[0] = new ListItemInfo( "list.htm?id=1", "graphics/list_nsci1.jpg", "K-12 Educational Facilities", "", subItems, 1 );

			subItems = new Array(5);
			subItems[0] = new SubItemInfo("examples.htm?id=5", "Police & Fire", 11);
			subItems[1] = new SubItemInfo("examples.htm?id=6", "Recreation", 12);
			subItems[2] = new SubItemInfo("examples.htm?id=7", "Administration", 13);
			subItems[3] = new SubItemInfo("examples.htm?id=8", "Libraries", 14);
			subItems[4] = new SubItemInfo("examples.htm?id=9", "Zoos", 15);
			itemArray[1] = new ListItemInfo( "list.htm?id=2", "graphics/list_otter1.jpg", "Municipal Facilities", "", subItems, 2 );

			subItems = new Array(3);
			subItems[0] = new SubItemInfo("examples.htm?id=10", "Retail", 16);
			subItems[1] = new SubItemInfo("examples.htm?id=11", "Offices", 17);
			subItems[2] = new SubItemInfo("examples.htm?id=12", "Manufacturing", 18);
			itemArray[2] = new ListItemInfo( "list.htm?id=3", "graphics/list_bcbs1.jpg", "Business Facilities", "", subItems, 3 );

			itemArray[3] = new ListItemInfo( "examples.htm?id=13", "graphics/list_cherry5.jpg", "Financial Facilities", "", null, 4 );

			itemArray[4] = new ListItemInfo( "examples.htm?id=14", "graphics/list_nfl8.jpg", "Community Services", "", null, 5 );

			itemArray[5] = new ListItemInfo( "examples.htm?id=15", "graphics/list_ranno2.jpg", "Senior Housing", "", null, 6 );
			break;
	}
	return new ListPageInfo( trailArray, itemArray );
}
