
if(scspi_use_fallback_html === true){

	var fallbackKeyIssueObject = new Object();

	this.scspi_init_fallbackKeyIssueObject = function (fallbackObject, urlArray, nameArray){
		var tmpLength = urlArray.length;
		var tmpIndex = null;

		for(tmpIndex = (tmpLength - 1) ; tmpIndex >= 0 ; tmpIndex--){
			fallbackObject[urlArray[tmpIndex]] = nameArray[tmpIndex];
		}
	};
	var fallbackKeyIssuesURLs = new Array(
		'issue_children.html',						'issue_citizenship.html',
		'issue_conflict_war_instability.html',
		'issue_consumption.html',					'issue_crime.html',
		'issue_dev_economics.html',					'issue_disabilities.html',
		'issue_discrimination_prejudice.html',		'issue_education.html',
		'issue_elites.html',						'issue_environment.html',
		'issue_gender.html',						'issue_globalization.html',
		'issue_health_mental_health.html',			'issue_history_inequality.html',
		'issue_immigration.html',					'issue_income_wealth.html',
		'issue_labor_markets.html',					'issue_land_housing_homeless.html',
		'issue_lifecourse_family_demography.html',	'issue_measurement_methodology.html',
		'issue_organizations.html',					'issue_philosophy.html',
		'issue_policy.html',						'issue_politics_political_economy.html',
		'issue_poverty.html',						'issue_public_opinion_attitudes.html',
		'issue_race_ethnicity.html',				'issue_sexual_orientation.html',
		'issue_social_class_occupations.html',		'issue_social_mobility.html',
		'issue_social_networks.html',				'issue_theory.html',
		'issue_transportation.html',
		'issue_future_inequality.html');
	var fallbackKeyIssuesNames = new Array(
		'Children',								'Citizenship and Civil Rights',
		'Conflict - War and Instability',
		'Consumption and Lifestyles',			'Crime and the Legal System',
		'Development Economics',				'Disabilities',
		'Discrimination and Prejudice',			'Education',
		'Elites',								'Environment',
		'Gender',								'Globalization',
		'Health and Mental Health',				'History of Inequality',
		'Immigration',							'Income and Wealth',
		'Labor Markets',						'Land - Housing and Homelessness',
		'Lifecourse - Family and Demography',	'Measurement and Methodology',
		'Organizations',						'Philosophy',
		'Policy',								'Politics and Political Economy',
		'Poverty',								'Public Opinion and Attitudes',
		'Race and Ethnicity',					'Sexual Orientation',
		'Social Class and Occupations',			'Social Mobility',
		'Social Networks',						'Theory',
		'Transportation',
		'Future of Inequality');

	var div_footer_text_fb1a =
	'<font size="1"><em>With a more current or functional browser, we could serve you the data ' +
	'for this issue <br \/>' +
	'[e.g. affiliate specialists, working papers, media, books] ' +
	'directly on this webpage.<br \/>' +
	'Please visit our ' +
	'<a href="updateyourbrowser.html">browser update</a> ' +
	'page for assistance.</em></font><br /><br />'+

		'<div><form name="media_form"' +
					'action="cgi-bin\/scspi_ds_get_media_issue_page.php"' +
					'target="_new_media"' +
					'method="get"' +
		'><font size="1">&nbsp;Key Issue Media: <\/font><input name="media_issue" type="hidden" value="';

	var div_footer_text_fb1b ='" \/><input type="submit"' +
					'value="Get Media"' +
					'title="Click for Media associated with this Key Issue" \/><\/form' +
		'><br \/><\/div';

	var div_footer_text_fb2a =
		'><div><form name="affiliate_form"' +
					'action="cgi-bin\/scspi_ds_get_affiliate_issue_page.php"' +
					'target="_new_affil"' +
					'method="get"' +
		'><font size="1">Key Issue Affiliates: <\/font>' + '<input name="affiliate_issue"' +
					'type="hidden"' + 'value="';

	var div_footer_text_fb2b = '" \/><input type="submit"' +
					'value="Get Affiliates"' +
					'title="Click for Affiliates associated with this Key Issue" \/>' +
			'<\/form><br \/>' +
		'<\/div>';

		// extract the name of the issue from the URL
	var tempArray = null;
	var tempCurrentPageFileRoot;

		// get the name of the current document
	locURL = new String(window.location);
		// strip off the arguments
	tempArray = locURL.split('?');
	tempArray = tempArray[0].split('#');
		//  split into path components
	tempArray = tempArray[0].split('/');
		// strip off file extension
	tempArray = tempArray[tempArray.length - 1].split('.');
	tempCurrentPageFileRoot = tempArray[0];
		// split the root document name into type and category
	tempArray = tempCurrentPageFileRoot.split('_');
		// tempArray[0] contains the area:
		//		center, issue, media, people, peopleaffiliatebiotemplate, prog
		//		index (scspi)
		// tempArray[1] contains the category token or name
	switch(tempArray[0]){
		case 'issue':
				// we have a key issue page,
				// use the keyIssueLookupObject, the URL to key issue string
				// converter object, to get search string for db query
			this.scspi_init_fallbackKeyIssueObject(fallbackKeyIssueObject,
											  fallbackKeyIssuesURLs,
											  fallbackKeyIssuesNames);
			div_footer_text_key_issue = fallbackKeyIssueObject[tempCurrentPageFileRoot + '.html'];
			break;
		default:
			break;
	}

	document.write(div_footer_text_fb1a);
	document.write(div_footer_text_key_issue);
	document.write(div_footer_text_fb1b);
	document.write(div_footer_text_fb2a);
	document.write(div_footer_text_key_issue);
	document.write(div_footer_text_fb2b);
}
