//Function to change the text and background image for the home page's feature box
//JMA 11/29/06
function setFeature(feature) {
	//set the content
	var content = new String("");
	var bgImage = new String("");
	
	switch(feature) {
		case "clerk":
			content="<h2>About the Clerk's Office</h2>"
				+ "<ul>"
				+ "	<li><a href=\"#\">Duties of the Clerk</a></li>"
				+ "	<li><a href=\"#\">History of the Clerk’s Office</a></li>"
				+ "	<li><a href=\"#\">Offices under the Clerk</a></li>"
				+ "	<li><a href=\"#\">Solicitations & Important Forms</a></li>"
			+ "	</ul>";
			bgImage = "../images/main_clerk.jpg";
			break;
			
		case "mem":
			content="<h2>Member Information</h2>"
				+ "<ul>"
				+ "	<li><a href=\"#\">Member Directory</a></li>"
				+ "	<li><a href=\"#\">Representatives’ Contact Information</a></li>"
				+ "	<li><a href=\"#\">Congressional Profile</a></li>"
				+ "	<li><a href=\"#\">Election Statistics</a></li>"
				+ "	<li><a href=\"#\">Vacant Districts</a></li>"
			+ "	</ul>";
			bgImage = "../images/main_mem.jpg";
			break;
		
		case "comm":
			content="<h2>Committee Information</h2>"
				+ "<ul>"
				+ "	<li><a href=\"#\">Committee & Sumcommittee Rosters</a></li>"
				+ "	<li><a href=\"#\">Committee Jurisdictions</a></li>"
				+ "	<li><a href=\"#\">Committee Reports</a></li>"
			+ "	</ul>";
			bgImage = "../images/main_comm.jpg";
			break;
		
		case "legis":
			content="<h2>Legislative Activities</h2>"
				+ "<ul>"
				+ "	<li><a href=\"#\">House Floor Proceedings</a></li>"
				+ "	<li><a href=\"#\">Congressional Schedule</a></li>"
				+ "	<li><a href=\"#\">Roll Call Votes</a></li>"
				+ "	<li><a href=\"#\">Legislative Congress</a></li>"
				+ "	<li><a href=\"#\">House Documents</a></li>"
			+ "	</ul>";
			bgImage = "../images/main_legis.jpg";
			break;
				
		case "art":
			content="<h2>Art &amp; History</h2>"
				+ "<ul>"
				+ "	<li><a href=\"#\">Congressional History</a></li>"
				+ "	<li><a href=\"#\">Previous House Leadership</a></li>"
				+ "	<li><a href=\"#\">Historic Events</a></li>"
				+ "	<li><a href=\"#\">House Artwork</a></li>"
			+ "	</ul>";
			bgImage = "../images/main_art.jpg";
			break;
					
		case "pd":
			content="<h2>Public Disclosure</h2>"
				+ "<ul>"
				+ "	<li><a href=\"#\">Information for Lobbyists</a></li>"
				+ "	<li><a href=\"#\">Reports & Filings</a></li>"
				+ "	<li><a href=\"#\">Forms for Congressional Offices</a></li>"
			+ "	</ul>";
			bgImage = "../images/main_pd.jpg";
			break;
						
		case "kids":
			content="<h2>Kids in the House</h2>"
				+ "<ul>"
				+ "	<li><a href=\"#\">Link 1</a></li>"
				+ "	<li><a href=\"#\">Link 2</a></li>"
				+ "	<li><a href=\"#\">Link 3</a></li>"
				+ "	<li><a href=\"#\">Link 4</a></li>"
			+ "	</ul>";
			bgImage = "../images/main_kids.jpg";
			break;
			
		default:
			case "clerk":
			content="<h2>About the Clerk's Office</h2>"
				+ "<ul>"
				+ "	<li><a href='#'>Duties of the Clerk</a></li>"
				+ "	<li><a href='#'>History of the Clerk’s Office</a></li>"
				+ "	<li><a href='#'>Offices under the Clerk</a></li>"
				+ "	<li><a href='#'>Solicitations & Important Forms</a></li>"
			+ "	</ul>";
			bgImage = "../images/main_clerk.jpg";
			break;
	}
	//set the content
	document.getElementById("section_features").innerHTML=content;
	//change the background image
	document.getElementById('section_features').style.background='url('+ bgImage +')';
}