
/*
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-10T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Free Lance-Star, Fredericksburg, Va.');

	title = 'Man admits to scheme in Stafford smuggling case';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Man admits to scheme in Stafford smuggling case',
		'Mar. 10--One of the 14 people charged in a major contraband cigarette probe started by the Stafford Sheriff\'s Office was convicted yesterday for his role in a murder-for-hire scheme.',
		'Man admits to scheme in Stafford smuggling case',
		'Keith Epps',
		'',
		'20100310',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_10__0000-2472-FB-Man-admits-to-scheme-in-Stafford-smuggling-case-0310.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-10T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Hartford Courant, Connecticut');

	title = 'Felon\'s \'Hit List\' Puts Him Under $1 Million Bail';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Felon\'s \'Hit List\' Puts Him Under $1 Million Bail',
		'Mar. 10--MIDDLETOWN -- The two violation-of-probation charges against Paul B. Graziani didn\'t seem like much.',
		'Felon\'s \'Hit List\' Puts Him Under $1 Million Bail',
		'Alaine Griffin, The Hartford Courant, Conn.',
		'',
		'20100310',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_10__0000-2774-HC-Felon-s-Hit-List-Puts-Him-Under-1-Million-Bail-0310.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-10T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Jury deliberates in trial of 2 accused of drug smuggling';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Jury deliberates in trial of 2 accused of drug smuggling',
		'Mar. 10--EL PASO -- Jurors will continue deliberating today in the drug-smuggling trial of Fernando Ontiveros-Arambula and Manuel Chavez-Betancourt.',
		'Jury deliberates in trial of 2 accused of drug smuggling',
		'Diana Washington Valdez, El Paso Times, Texas',
		'',
		'20100310',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_10__0000-2447-EY-Jury-deliberates-in-trial-of-2-accused-of-drug-smuggling-0310.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-10T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Scottdale garden grows legal battle';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Scottdale garden grows legal battle',
		'Mar. 10--Phyllis Georgic and her boyfriend, Thomas Zeller, see the front yard of their Scottdale home as an oasis of organic gardening.',
		'Scottdale garden grows legal battle',
		'Rich Cholodofsky, Tribune-Review, Greensburg, Pa.',
		'',
		'20100310',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_10__0000-2741-GP-Scottdale-garden-grows-legal-battle-0310.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-10T00:00:00');
	publicationMetadata = new MakePublicationMetadata('York Daily Record, Pa.');

	title = 'Last adult defendant in goat killing to get ARD';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Last adult defendant in goat killing to get ARD',
		'Mar. 10--The last of the three adult men accused of throwing a stolen, living goat off a bridge has been accepted into a non-incarceration probationary program, according to York County court records.',
		'Last adult defendant in goat killing to get ARD',
		'Rick Lee',
		'',
		'20100310',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_10__0000-2718-YO-Last-adult-defendant-in-goat-killing-to-get-ARD-0310.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-10T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Attorney challenges for District Court';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Attorney challenges for District Court',
		'A personal experience inspired F. Wesley Sigmon to run for District Court judge.',
		'Attorney challenges for District Court',
		'',
		'',
		'20100310',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_10__0000-2819-HI-Attorney-challenges-for-District-Court-0310.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-10T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Dallas Morning News');

	title = 'FBI informant\'s firm files civil suit over Dallas City Hall corruption case';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'FBI informant\'s firm files civil suit over Dallas City Hall corruption case',
		'Mar. 10--The first civil suit seeking millions in damages as a result of the bribery and extortion in the Dallas City Hall corruption case has been filed in a county civil court.',
		'FBI informant\'s firm files civil suit over Dallas City Hall corruption case',
		'Jason Trahan',
		'',
		'20100310',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_10__0000-2330-DA-FBI-informant-s-firm-files-civil-suit-over-Dallas-City-Hall-corruption-case-0310.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-10T02:31:24');
	publicationMetadata = new MakePublicationMetadata('USA TODAY');

	title = 'Roberts: Presidential address is \'pep rally\'';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Roberts: Presidential address is \'pep rally\'',
		'WASHINGTON -- Supreme Court Chief Justice John Roberts told an Alabama audience Tuesday that he found the atmosphere "very troubling" at January\'s State of the Union Address, during which President Obama criticized the high court.',
		'Roberts: Presidential address is \'pep rally\'',
		'Joan Biskupic',
		'Copyright 2009 USA TODAY, a division of Gannett Co. Inc.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'usatoday_2010_03_10_eng-usatoday_news_eng-usatoday_news_023124_7831056922906230399.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-10T02:31:20');
	publicationMetadata = new MakePublicationMetadata('USA TODAY');

	title = 'Authorities crack down on finch-fighting rings';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Authorities crack down on finch-fighting rings',
		'Tiny birds seem to be the next, albeit improbable, wave in fight-to-the-death blood sport.',
		'Authorities crack down on finch-fighting rings',
		'Sharon L. Peters',
		'Copyright 2009 USA TODAY, a division of Gannett Co. Inc.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'usatoday_2010_03_10_eng-usatoday_money_eng-usatoday_money_023120_3701694331360083927.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
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-09T07:22:08');
	publicationMetadata = new MakePublicationMetadata('World Entertainment News Network');

	title = 'Lohan suing for $100M over baby advert';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Lohan suing for $100M over baby advert',
		'LINDSAY LOHAN has filed a multi-million dollar lawsuit over an advert which allegedly used her name and parodied her life for profit.',
		'Lohan suing for $100M over baby advert',
		'',
		'(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_072208_3732189312177358668.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	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
		);

		
	

//////////////////////// End PER ARTICLE section

	contentSetId = 'PROWEB_Legal';
	contentSetName = 'Legal';
	contentSetLanguage = '';
	contentSetPublishedDate = '2010-03-10T08:30:07';

	id = 'PROWEB_Legal';
	contentType = '';

} // End data initialization block.

if (typeof ContentIndex == "undefined") {
	ContentIndex = -1;
}

SMContentSet[++ContentIndex] = new MakeContentSet(contentSetId, contentSetName, contentSetLanguage, contentSetPublishedDate, contents);
