
/*
SMMiLe JavaScript Object Model
Version 1.0
By Daryl Beattie
Copyright 2000, ScreamingMedia

SAMPLE USAGE [note that "script" tag is broken as "sc ript" so that it does not end this script]:

The code blow goes in the <HEAD> section of your HTML file
replace "JSDir/ContentSetID" with your JavaScript file path and name

	<sc ript language="JavaScript" src="JSDir/ContentSetID.js"></sc ript>
	<sc ript language="JavaScript">
		if(typeof SMChosenContent != \'undefined\') {
			document.write("<scri" + "pt language=\"JavaScript\" src=\"JSDir/ContentSetID" + SMChosenContent + ".js\"></sc" + "ript>");
		}
	</scr ipt>

The JavaScript objects are modelled after the SMMiLe XML structure:

<content-set>
	<content>
		<article>
			<title>...</title>
			<metadata>...</metadata>
			<core>...</core>
			<body>...</body>
		</article>
	</content>
</content-set>

As for the JavaScript, it is structured like this:

contentSet[0](id, name, language, publishedDate, contents)
|--	contents[i](id, revisionId, type, language, role, article) 
	|
	|--	article(title, metadata, core, body)
		|
		|--	metadata(documentMetadata, publicationMetadata, structuralMetadata, subjectMetadata, relatedContentMetadata, processingMetadata)
		|	|--	documentMetadata(storage, publisherReleaseDate)
		|	|--	publicationMetadata(publicationName)
		|	|--	structuralMetadata()
		|	|--	subjectMetadata()
		|	|--	relatedContentMetadata()
		|	|--	processingMetadata()
		|
		|--	core(summaryHeadline, docAbstract, headline, author, copyright, dateLine, dateTime, type)

An example of using this object model to print out the body of the second
article is:

	document.write(SMContentSet[0].contents[1].article.body);

*/


function displayContentPage(url, contentNum) {
	window.location = url + "?SMContentIndex=" + contentNum + "&SMContentSet=" + 0;
}

function displayContentPage(url, contentNum, contentSetNum) {
	window.location = url + "?SMContentIndex=" + contentNum + "&SMContentSet=" + contentSetNum;
}

function getParamValue(matchString, defaultValue) {
	var thisURL = window.location.toString();
	var value = defaultValue;
	if ((thisURL.indexOf("?") != -1) &&
	    (thisURL.indexOf(matchString) != -1) &&
	    (thisURL.charAt(thisURL.indexOf(matchString) + matchString.length) != "&")) {
		start = thisURL.indexOf(matchString) + matchString.length;
		if (thisURL.indexOf("&", start) > -1) {
			value = thisURL.substring(start, (thisURL.indexOf("&", start)));
		}
		else {
			value = thisURL.substring(start, thisURL.length);
		}
	}
	if (value == "NaN") {
		value = devaultValue;
	}
	return value;
}

var SMChosenContent = Number(getParamValue("SMContentIndex=", -1));
var SMChosenContentSet = Number(getParamValue("SMContentSet=", 0));

function prettyDate(date) {
	var result;
	if (date.substring(5,7) == "01") {result = "January ";}
	else if (date.substring(5,7) == "02") {result = "February ";}
	else if (date.substring(5,7) == "03") {result = "March ";}
	else if (date.substring(5,7) == "04") {result = "April ";}
	else if (date.substring(5,7) == "05") {result = "May ";}
	else if (date.substring(5,7) == "06") {result = "June ";}
	else if (date.substring(5,7) == "07") {result = "July ";}
	else if (date.substring(5,7) == "08") {result = "August ";}
	else if (date.substring(5,7) == "09") {result = "September ";}
	else if (date.substring(5,7) == "10") {result = "October ";}
	else if (date.substring(5,7) == "11") {result = "November ";}
	else {result = "December ";}
	if (date.charAt(8) == "0") {result += date.charAt(9);}
	else {result += date.substring(8,10);}
	return result + ", " + date.substring(0,4);
}

// Metadata sub-type element objects.
function MakeDocumentMetadata(myStorage, myPublisherReleaseDate) {
	this.storage = myStorage;
	this.publisherReleaseDate = myPublisherReleaseDate;
}
function MakePublicationMetadata(myPublicationName) {
	this.publicationName = myPublicationName;
}
function MakeStructuralMetadata() { }
function MakeSubjectMetadata() { }
function MakeRelatedContentMetadata() { }
function MakeProcessingMetadata() { }

// Metadata element object (made up of the sub-types).
function MakeMetadata(myDocumentMetadata, myPublicationMetadata, myStructuralMetadata, mySubjectMetadata, myRelatedContentMetadata, myProcessingMetadata) {
	this.documentMetadata = myDocumentMetadata;
	this.publicationMetadata = myPublicationMetadata;
	this.structuralMetadata = myStructuralMetadata;
	this.subjectMetadata = mySubjectMetadata;
	this.relatedContentMetadata = myRelatedContentMetadata;
	this.processingMetadata = myProcessingMetadata;
}

// Core element object
function MakeCore(mySummaryHeadline, myAbstract, myHeadline, myAuthor, myCopyright, myDateLine, myDateTime, myType) {
	this.summaryHeadline = mySummaryHeadline;
	this.docAbstract = myAbstract;
	this.headline = myHeadline;
	this.author = myAuthor;
	this.copyright = myCopyright;
	this.dateLine = myDateLine;
	this.dateTime = myDateTime;
	this.type = myType;
}

// Article element object
function MakeArticle(myTitle, myMetadata, myCore, myBody) {
	this.title = myTitle;
	this.metadata = myMetadata;
	this.core = myCore;
	this.body = myBody;
}

// Content element object
function MakeContent(myId, myRevisionId, myType, myLanguage, myRole, myArticle) {
	this.id = myId;
	this.revisionId = myRevisionId;
	this.type = myType;
	this.language = myLanguage;
	this.role = myRole;
	this.article = myArticle;
}

// Content-set master element object
function MakeContentSet(myId, myName, myLanguage, myPublishedDate, myContents) {
	this.id = myId;
	this.name = myName;
	this.language = myLanguage;
	this.publishedDate = myPublishedDate;
	this.contents = myContents;
}

{ // This block intializes the data objects.

	var Index = -1;
	if (typeof SMContentSet == "undefined") {
		var SMContentSet = new Array();
	}
	var contents = new Array();
//////////////////////// This section is made PER CONTENT (because the actual data is written in here)

	
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T07:22:06');
	publicationMetadata = new MakePublicationMetadata('World Entertainment News Network');

	title = 'Jackson estate embroiled in battle with tribute band';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Jackson estate embroiled in battle with tribute band',
		'The executors of MICHAEL JACKSON\'s estate are embroiled in a legal battle with a tribute band - over the right to use the name of the King of Pop\'s Neverland ranch.',
		'Jackson estate embroiled in battle with tribute band',
		'',
		'(c) 2007 World Entertainment News Network',
		'WENN',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'wenn_2010_03_09_eng-wenn_eng-wenn_072206_1965683980447912512.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Doctor\'s role with terminal patients argued in court';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Doctor\'s role with terminal patients argued in court',
		'Mar. 9--HARTFORD -- The question of whether a doctor can be charged with manslaughter for helping a patient end his life came before a Superior Court judge Monday.',
		'Doctor\'s role with terminal patients argued in court',
		'Ed Stannard, New Haven Register, Conn.',
		'',
		'20100309',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_09__0000-2497-NR-Doctor-s-role-with-terminal-patients-argued-in-court-0309.ew.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The News & Observer, Raleigh, N.C.');

	title = 'Inmates can write, state says after ACLU suit';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Inmates can write, state says after ACLU suit',
		'Mar. 9--RALEIGH -- Prison inmates in North Carolina will be able to write novels and other manuscripts and send them to publishers without interference from guards under a settlement reached with the ACLU.',
		'Inmates can write, state says after ACLU suit',
		'Matt Ehlers, The News and Observer, Raleigh, N.C.',
		'',
		'20100309',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_09__0000-1622-RA-HLT-Inmates-can-write-state-says-after-ACLU-suit-0309.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T08:58:02');
	publicationMetadata = new MakePublicationMetadata('United Press International');

	title = 'Sex offender suspect in teen\'s death';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Sex offender suspect in teen\'s death',
		'A sex offender charged in the death of 17-year-old Chelsea King also is a suspect in the death of 14-year-old Amber Dubois, police in Escondido, Calif., said. John Albert Gardner III, 30, is charged with murder in the death of King, who disappeared Feb....',
		'Sex offender suspect in teen\'s death',
		'',
		'Copyright United Press International 2010',
		'ESCONDIDO, Calif., March 9 (UPI) --',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_yb_2010_03_09_comtex_142252044.anpa.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T02:30:43');
	publicationMetadata = new MakePublicationMetadata('USA TODAY');

	title = 'Contract for only federally sanctioned pot farm aims to limit abuse';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Contract for only federally sanctioned pot farm aims to limit abuse',
		'OXFORD, Miss. -- It is the smell -- pungent and slightly citrusy -- that first greets visitors to Mahmoud ElSohly\'s office on the University of Mississippi campus.',
		'Contract for only federally sanctioned pot farm aims to limit abuse',
		'Chris Joyner',
		'Copyright 2009 USA TODAY, a division of Gannett Co. Inc.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'usatoday_2010_03_09_eng-usatoday_news_eng-usatoday_news_023043_845591559480594582.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T04:34:44');
	publicationMetadata = new MakePublicationMetadata('Canadian Press');

	title = 'US: Ring took English proficiency tests, helped Middle Eastern students get visas';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'US: Ring took English proficiency tests, helped Middle Eastern students get visas',
		'SANTA ANA, Calif. - Eamonn Higgins has never earned a college degree in his own name, but prosecutors allege that for the past seven years the 46-year-old has been going to school non-stop for dozens of other students.',
		'US: Ring took English proficiency tests, helped Middle Eastern students get visas',
		'',
		'?? The Canadian Press, 2010',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'canadianp_eng_2010_03_09_eng-canadianp_world_eng-canadianp_world_043444_7697089693743656806.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T01:34:31');
	publicationMetadata = new MakePublicationMetadata('Canadian Press');

	title = '9th US missionary heads home after Haitian judge frees her, leaving group\'s leader in jail';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'9th US missionary heads home after Haitian judge frees her, leaving group\'s leader in jail',
		'PORT-AU-PRINCE, Haiti - A U.S. missionary held for more than a month in Haiti on kidnapping charges flew back to the United States after being released from prison, while the leader of her Baptist group remained in custody.',
		'9th US missionary heads home after Haitian judge frees her, leaving group\'s leader in jail',
		'',
		'?? The Canadian Press, 2010',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'canadianp_eng_2010_03_09_eng-canadianp_world_eng-canadianp_world_013431_2868791963319101192.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-08T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Chicago Tribune');

	title = 'Attorney called a power broker in brother\'s ward';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Attorney called a power broker in brother\'s ward',
		'Mar. 8--Samuel Vincent Panebianco Banks, 73, an attorney who for years was synonymous with influence in Chicago\'s 36th Ward on the Far Northwest Side, died Saturday, March 6, at Northwestern Memorial Hospital after a yearlong battle with cancer, his family...',
		'Attorney called a power broker in brother\'s ward',
		'William Lee',
		'',
		'20100308',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_08__0000-1043-TB-Attorney-called-a-power-broker-in-brother-s-ward-0308.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-08T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Stepdaughter battles \'deception\'';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Stepdaughter battles \'deception\'',
		'Mar. 8--Marlene Owens\' stepfather is gone, but she hopes her battle with a nursing home over a document he signed while suffering from delusions and memory loss will shed light on what she called an "outrageous and deceptive" practice.',
		'Stepdaughter battles \'deception\'',
		'Jessica Fargen, Boston Herald',
		'',
		'20100308',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_08__0000-0101-YB-Stepdaughter-battles-deception-0308.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-08T00:00:00');
	publicationMetadata = new MakePublicationMetadata('San Gabriel Valley Tribune, Calif.');

	title = 'Court sides with Glendora in appeal of 2008 lawsuit';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Court sides with Glendora in appeal of 2008 lawsuit',
		'Mar. 8--GLENDORA -- For the second time, the city scored a legal victory over residents who wanted to stop construction on the Glendora Hospital Partners medical clinic.',
		'Court sides with Glendora in appeal of 2008 lawsuit',
		'Daniel Tedford, San Gabriel Valley Tribune, West Covina, Calif.',
		'',
		'20100308',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_08__0000-1656-GB-Court-sides-with-Glendora-in-appeal-of-2008-lawsuit-0308.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-08T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Mail Tribune, Medford, Ore.');

	title = 'Ten percent in jail are suspected illegals';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Ten percent in jail are suspected illegals',
		'Mar. 8--MEDFORD -- Inmates with no-bail immigration holds placed upon them by the federal government make up close to 10 percent of the Jackson County Jail population, a number that has held steady for the past five years, according to Jackson County...',
		'Ten percent in jail are suspected illegals',
		'Chris Conrad',
		'',
		'20100308',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_08__0000-1911-ME-Ten-percent-in-jail-are-suspected-illegals-0308.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-08T10:18:00');
	publicationMetadata = new MakePublicationMetadata('Deutsche Presse-Agentur (dpa)');

	title = 'School trip Swiss students trial begins for attempted murder';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'School trip Swiss students trial begins for attempted murder',
		'Munich (dpa) - Three Swiss teenagers went on trial for attempted murder on Monday, after allegedly beating passers-by in a 30-minute rampage after drinking and smoking cannabis during a school trip to Munich.',
		'School trip Swiss students trial begins for attempted murder',
		'',
		'Copyright 2010 dpa Deutsche Presse-Agentur GmbH',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'deutsche_2010_03_08_eca_0078-0037-.Germany-Crime..ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-07T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Charleston Gazette, W.Va.');

	title = 'Kanawha woman alleges rape by state trooper';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Kanawha woman alleges rape by state trooper',
		'Mar. 7--CHARLESTON, W.Va. -- A Kanawha County woman says she was raped by a West Virginia state trooper and that the troopers\' internal affairs unit told her not to tell anyone about it.',
		'Kanawha woman alleges rape by state trooper',
		'Gary A. Harki',
		'',
		'20100307',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_07__0000-5696-WV-Kanawha-woman-alleges-rape-by-state-trooper-0307.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-08T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Connecticut Post, Bridgeport');

	title = 'Hooker principal sent termination warning';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Hooker principal sent termination warning',
		'Mar. 8--BRIDGEPORT -- Five months after Thomas Hooker School Principal Andrew Cimmino was removed from his job and put on administrative leave, he has received a letter notifying him that termination of his contract is being considered by the Board of...',
		'Hooker principal sent termination warning',
		'Linda Conner Lambeck',
		'',
		'20100308',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_08__0000-0866-BG-Hooker-principal-sent-termination-warning-0308.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-07T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Sacramento Bee, Calif.');

	title = 'Sacramento man on trial for taking pot on airplane';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Sacramento man on trial for taking pot on airplane',
		'Mar. 7--Matthew Zugsberger checked his luggage at Sacramento International Airport in December 2008, with marijuana bags concealed in a metal dominoes case and duct-taped inside a wetsuit.',
		'Sacramento man on trial for taking pot on airplane',
		'Peter Hecht',
		'',
		'20100307',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_07__0000-5542-SA-Sacramento-man-on-trial-for-taking-pot-on-airplane-0307.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-08T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Chicago Tribune');

	title = 'Darien family remembered as suspects in slayings denied bail';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Darien family remembered as suspects in slayings denied bail',
		'Mar. 8--When Joe Jacobazzi got a flat tire about 20 years ago on a cold morning, he didn\'t hesitate to call Jeffrey Kramer at 2 a.m. and ask for help.',
		'Darien family remembered as suspects in slayings denied bail',
		'Art Barnum and Kristen Schorsch',
		'',
		'20100308',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_08__0000-1041-TB-HLT-Darien-family-remembered-as-suspects-in-slayings-denied-bail-0308.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-08T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Buffalo News, N.Y.');

	title = 'Extradition to Lockport at center of legal snarl: Personal issues aired in misdemeanor case';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Extradition to Lockport at center of legal snarl: Personal issues aired in misdemeanor case',
		'Mar. 8--LOCKPORT -- Two police officers drove to Indiana last week and returned with a criminal suspect who says he plans to marry a city police captain\'s niece.',
		'Extradition to Lockport at center of legal snarl: Personal issues aired in misdemeanor case',
		'Nancy A. Fischer',
		'',
		'20100308',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_08__0000-1802-BF-Extradition-to-Lockport-at-center-of-legal-snarl-0308.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T08:04:22');
	publicationMetadata = new MakePublicationMetadata('Canadian Press');

	title = 'Closing statements near in trial of man accused of killing Broncos cornerback Darrent Williams';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Closing statements near in trial of man accused of killing Broncos cornerback Darrent Williams',
		'DENVER - Jurors hearing the case against a man accused of killing Denver Broncos cornerback Darrent Williams could soon hear closing statements, a day after the defendant declined to testify.',
		'Closing statements near in trial of man accused of killing Broncos cornerback Darrent Williams',
		'',
		'?? The Canadian Press, 2010',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'canadianp_eng_2010_03_09_eng-canadianp_football_eng-canadianp_football_080422_3840392818898961545.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The News Tribune, Tacoma, Wash.');

	title = 'Ex-Army Ranger gets more time in prison';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Ex-Army Ranger gets more time in prison',
		'Mar. 9--A former Army Ranger convicted two years ago of masterminding the takeover-style robbery of a Tacoma bank branch was sentenced Monday to an additional 20 years in prison for soliciting the murder of an assistant U.S. attorney and assaulting a...',
		'Ex-Army Ranger gets more time in prison',
		'Adam Lynn',
		'',
		'20100309',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_09__0000-2746-TC-SEATTLE-Ex-Army-Ranger-gets-more-time-in-prison-0309.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Tulsa World, Okla.');

	title = 'BRIEF: Ex-lawmaker from BA to enter AG race';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'BRIEF: Ex-lawmaker from BA to enter AG race',
		'Mar. 9--OKLAHOMA CITY -- Scott Pruitt, a former state senator from Broken Arrow, intends to seek the Republican nomination for attorney general, he said Monday.',
		'BRIEF: Ex-lawmaker from BA to enter AG race',
		'Randy Krehbiel',
		'',
		'20100309',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_09__0000-2841-TU-BRF-Ex-lawmaker-from-BA-to-enter-AG-race-0309.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Tulsa World, Okla.');

	title = 'Six pleas of guilty bring trial to a halt';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Six pleas of guilty bring trial to a halt',
		'Mar. 9--Bringing his jury trial to a halt, a Tulsa man pleaded guilty Monday to six felonies, including allegations that he raped an 8-year-old girl twice in 2008.',
		'Six pleas of guilty bring trial to a halt',
		'Bill Braun',
		'',
		'20100309',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_09__0000-2888-TU-Six-pleas-of-guilty-bring-trial-to-a-halt-0309.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Sacramento Bee, Calif.');

	title = 'Sacramento jury awards record $24.3 million to girl run over by dad\'s truck';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Sacramento jury awards record $24.3 million to girl run over by dad\'s truck',
		'Mar. 9--An Oregon girl whose truck-driver father accidentally ran her over with his big rig has won $24.3 million in damages from the Portland company that a Sacramento judge found legally responsible for her injuries.',
		'Sacramento jury awards record $24.3 million to girl run over by dad\'s truck',
		'Andy Furillo',
		'',
		'20100309',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_09__0000-2719-SA-HLT-Sacramento-jury-awards-record-24.3-million-to-girl-run-over-by-dad-s-truck-0309.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Chattanooga Times/Free Press, Tenn.');

	title = 'Employers face audit on illegal workers';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Employers face audit on illegal workers',
		'Mar. 9--As part of the government\'s new immigration enforcement strategy, 180 businesses in five states, including Tennessee, will be audited to make sure they are not hiring illegal workers.',
		'Employers face audit on illegal workers',
		'Perla Trevizo, Chattanooga Times Free Press, Tenn.',
		'',
		'20100309',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_09__0000-2793-TN-Employers-face-audit-on-illegal-workers-0309.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-08T01:55:06');
	publicationMetadata = new MakePublicationMetadata('United Press International');

	title = 'Some victims matter more than others';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Some victims matter more than others',
		'A study of a Texas county found a defendant is much more likely to be sentenced to death if he or she kills a so-called high-status victim, researchers said. Scott Phillips, associate professor of sociology and criminology at the University of Denver,...',
		'Some victims matter more than others',
		'',
		'Copyright United Press International 2010',
		'DENVER, March 8 (UPI) --',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_yb_2010_03_08_comtex_142190466.anpa.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T13:57:00');
	publicationMetadata = new MakePublicationMetadata('Deutsche Presse-Agentur (dpa)');

	title = 'Two years\' prison for Cindy Crawford\'s blackmailer';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Two years\' prison for Cindy Crawford\'s blackmailer',
		'Kirchheim unter Teck, Germany (dpa) - A 26-year-old German was sentenced on Tuesday to two years\' prison for blackmailing US former supermodel Cindy Crawford.',
		'Two years\' prison for Cindy Crawford\'s blackmailer',
		'',
		'Copyright 2010 dpa Deutsche Presse-Agentur GmbH',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'deutsche_2010_03_09_eca_0111-0089-.Germany-Justice.US..ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	

//////////////////////// End PER ARTICLE section

	contentSetId = 'PROWEB_Legal';
	contentSetName = 'Legal';
	contentSetLanguage = '';
	contentSetPublishedDate = '2010-03-09T09:13:59';

	id = 'PROWEB_Legal';
	contentType = '';

} // End data initialization block.

if (typeof ContentIndex == "undefined") {
	ContentIndex = -1;
}

SMContentSet[++ContentIndex] = new MakeContentSet(contentSetId, contentSetName, contentSetLanguage, contentSetPublishedDate, contents);
