
/*
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-05-06T02:30:32');
	publicationMetadata = new MakePublicationMetadata('USA TODAY');

	title = 'Case flummoxes Virginia officials';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Case flummoxes Virginia officials',
		'CHARLOTTESVILLE, Va. -- Yeardley Love will graduate with her class posthumously, University of Virginia President John T. Casteen III said Wednesday.',
		'Case flummoxes Virginia officials',
		'Erik Brady',
		'??? Copyright 2007 USA TODAY, a division of Gannett Co. Inc.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'usatoday_2010_05_06_eng-usatoday_sports_eng-usatoday_sports_023032_4184825756361770207.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-05T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Times Union, Albany, N.Y.');

	title = 'State ethics bill mirrors federal law: Two-house version of "honest services" statute offered';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'State ethics bill mirrors federal law: Two-house version of "honest services" statute offered',
		'May 5--ALBANY -- Manhattan District Attorney Cyrus Vance stood beside Eric Schneiderman and a group of senators to unveil yet another piece of legislation to beef up New York\'s ethics laws.',
		'State ethics bill mirrors federal law: Two-house version of "honest services" statute offered',
		'Jimmy Vielkind',
		'',
		'20100505',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_05__0000-1793-AL-State-ethics-bill-mirrors-federal-law-0505.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-05T07:11:09');
	publicationMetadata = new MakePublicationMetadata('Chicago Tribune');

	title = 'Law School Tuition Hikes Spark Talk of Bubble';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Law School Tuition Hikes Spark Talk of Bubble',
		'CHICAGO - The rising cost of law school is becoming a sore subject as the number of high-paying jobs shrink.',
		'Law School Tuition Hikes Spark Talk of Bubble',
		'',
		'(c) 2010, Chicago Tribune. Distributed by Mclatchy-Tribune News Service.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'krt_2010_05_05_knigt_9625-0050-CMP-LAWSCHOOL-COST.TB.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-05T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Charleston Gazette, W.Va.');

	title = 'Unsealed search warrants detail raid on Golden Heart offices';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Unsealed search warrants detail raid on Golden Heart offices',
		'May 5--CHARLESTON, W.Va. -- Federal agents raided the headquarters and two branch offices of a St. Albans-based in-home health-care provider last month, seizing patient and employee records as well as computer equipment and financial documents.',
		'Unsealed search warrants detail raid on Golden Heart offices',
		'Andrew Clevenger',
		'',
		'20100505',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_05__0000-3092-WV-Unsealed-search-warrants-detail-raid-on-Golden-Heart-offices-0505.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-05T06:22:38');
	publicationMetadata = new MakePublicationMetadata('World Entertainment News Network');

	title = 'JUDGE SIDES WITH COHEN IN BRUNO BINGO SUIT';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'JUDGE SIDES WITH COHEN IN BRUNO BINGO SUIT',
		'A woman who sued SACHA BARON COHEN for "emotional distress" after she was caught up in the filming of his outrageous BRUNO movie has lost her case and been ordered to pay the funnyman\'s legal fees.',
		'JUDGE SIDES WITH COHEN IN BRUNO BINGO SUIT',
		'',
		'(c) 2007 World Entertainment News Network',
		'WENN',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'wenn_2010_05_05_eng-wenn_eng-wenn_062238_5782329126921606447.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-05T07:11:07');
	publicationMetadata = new MakePublicationMetadata('The Kansas City Star, Mo.');

	title = 'Industry Giants And Law Enforcement Fight the Internet Chop Shop';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Industry Giants And Law Enforcement Fight the Internet Chop Shop',
		'KANSAS CITY, Mo. - From stolen baby formula to hot GPS devices, the Internet can be like a virtual chop shop on the wild Web frontier.',
		'Industry Giants And Law Enforcement Fight the Internet Chop Shop',
		'',
		'(c) 2010, The Kansas City Star. Distributed by Mclatchy-Tribune News Service.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'krt_2010_05_05_kniga_0027-0011-CPT-WEBCRIMES.KC.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-05T07:11:09');
	publicationMetadata = new MakePublicationMetadata('The Philadelphia Inquirer');

	title = 'Supreme Court Sanity Calls for Filibusters';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Supreme Court Sanity Calls for Filibusters',
		'Should senators filibuster Elena Kagan, Merrick Garland or Diane Wood for the Supreme Court? Yes, if there is any hope of fixing the broken appointment process and restoring limited constitutional government.',
		'Supreme Court Sanity Calls for Filibusters',
		'John Yoo',
		'(c) 2010, The Philadelphia Inquirer. Distributed by Mclatchy-Tribune News Service.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'krt_2010_05_05_knigp_9629-0051-YOO-COLUMN.PH.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-05T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Two Fridley men admit role in $650,000 ATM scheme';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Two Fridley men admit role in $650,000 ATM scheme',
		'May 5--Two men from Fridley pleaded guilty Tuesday for their roles in a scheme involving more than $650,000 in ATM withdrawals from other people\'s accounts using fake credit cards.',
		'Two Fridley men admit role in $650,000 ATM scheme',
		'Paul Walsh, Star Tribune, Minneapolis',
		'',
		'20100505',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_05__0000-1340-MS-Two-Fridley-men-admit-role-in-650.000-ATM-scheme-0505.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-05T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Victim IDs Kendricks as Plymouth bar shooter';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Victim IDs Kendricks as Plymouth bar shooter',
		'May 5--Prosecutors and defense attorneys at Jeremy Kendricks\' murder trial spent much of Tuesday showing jurors surveillance footage, offering their versions of what the grainy tapes do or do not show the night gunshots erupted and a man was killed at...',
		'Victim IDs Kendricks as Plymouth bar shooter',
		'Bob Kalinowski, The Citizens\' Voice, Wilkes-Barre, Pa.',
		'',
		'20100505',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_05__0000-3127-YC-Victim-IDs-Kendricks-as-Plymouth-bar-shooter-0505.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-05T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'DUI charges against ex-cop to be refiled';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'DUI charges against ex-cop to be refiled',
		'May 5--City police are refiling a drunken driving charge against a former Scranton detective found intoxicated in an unmarked police car on Christmas Eve, Chief David Elliott said Tuesday.',
		'DUI charges against ex-cop to be refiled',
		'David Singleton, The Times-Tribune, Scranton, Pa.',
		'',
		'20100505',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_05__0000-1721-YT-DUI-charges-against-ex-cop-to-be-refiled-0505.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-05T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Reading Eagle, Pa.');

	title = 'Insanity defense possible for murder suspect';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Insanity defense possible for murder suspect',
		'May 5--The lawyer for an Oley Township man charged in his ex-girlfriend\'s stabbing death near Gettysburg College may present an insanity defense at the trial, according to court papers obtained Tuesday.',
		'Insanity defense possible for murder suspect',
		'Holly Herman',
		'',
		'20100505',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_05__0000-2742-RE-Insanity-defense-possible-for-murder-suspect-0505.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-06T02:30:27');
	publicationMetadata = new MakePublicationMetadata('USA TODAY');

	title = 'Spill raises concerns of health effects';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Spill raises concerns of health effects',
		'Lawsuits are already being prepared alleging harm to people who are living near or working to clean up the Deepwater Horizon oil spill off the coast of Louisiana. The law firm Smith Stag in New Orleans says it has assembled a group of lawyers in the Gulf...',
		'Spill raises concerns of health effects',
		'Elizabeth Weise',
		'Copyright 2009 USA TODAY, a division of Gannett Co. Inc.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'usatoday_2010_05_06_eng-usatoday_news_eng-usatoday_news_023027_2535580963295161949.ew.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-06T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Hartford Courant, Connecticut');

	title = 'David Fein Confirmed As Connecticut\'s U.S. Attorney';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'David Fein Confirmed As Connecticut\'s U.S. Attorney',
		'May 6--The U.S. Senate on Wednesday confirmed President Barack Obama\'s nomination of David B. Fein, former White House lawyer and federal prosecutor, as Connecticut\'s next U.S. attorney.',
		'David Fein Confirmed As Connecticut\'s U.S. Attorney',
		'Edmund H. Mahony, The Hartford Courant, Conn.',
		'',
		'20100506',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_06__0000-0035-HC-David-Fein-Confirmed-As-Connecticut-s-U-S-Attorney-0506.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-06T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Pueblo Chieftain, Colo.');

	title = 'Suspect chooses attorney over potential conflict';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Suspect chooses attorney over potential conflict',
		'May 6--A Trinidad man accused in a Bessemer murder case that is approaching its two-year anniversary is keeping his attorney despite a potential conflict of interest between the attorney and a witness for the prosecution.',
		'Suspect chooses attorney over potential conflict',
		'Jeff Tucker',
		'',
		'20100506',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_06__0000-1269-PB-Suspect-chooses-attorney-over-potential-conflict-0506.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-05T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Spokesman-Review, Spokane, Wash.');

	title = 'City attorneys no longer will represent Thompson';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'City attorneys no longer will represent Thompson',
		'May 5--Attorneys employed by the city of Spokane no longer will represent Spokane Police Officer Karl F. Thompson in the legal battles stemming from the 2006 death of Otto Zehm, according to a recent court filing.',
		'City attorneys no longer will represent Thompson',
		'Thomas Clouse',
		'',
		'20100505',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_05__0000-9376-SR-City-attorneys-no-longer-will-represent-Thompson-0505.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-06T07:20:00');
	publicationMetadata = new MakePublicationMetadata('New York Times Syndicate');

	title = 'Doctor Calls Bill \'Repulsive\'';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Doctor Calls Bill \'Repulsive\'',
		'Requiring doctors to describe fetal development to women seeking abortions may make good politics. But physicians say it isn\'t good medicine.',
		'Doctor Calls Bill \'Repulsive\'',
		'Letitia Stein',
		'c.2009 St. Petersburg Times',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'nytsyn_2010_05_06_medic_3445-0001-pat_nytimes.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-06T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Drug ring boss gets 24 years in prison';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Drug ring boss gets 24 years in prison',
		'May 6--EL PASO -- A federal judge has sentenced a 38-year-old man with ties to the Sinaloa drug cartel to more than 24 years in prison for leading a major drug ring based in El Paso.',
		'Drug ring boss gets 24 years in prison',
		'Adriana M. Chavez, El Paso Times, Texas',
		'',
		'20100506',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_06__0000-0450-EY-Drug-ring-boss-gets-24-years-in-prison-0506.ew.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-06T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Sibling twist in drug case';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Sibling twist in drug case',
		'May 6--PITTSFIELD -- The brother of a man accused of being a major Pittsfield drug dealer now faces drug charges himself.',
		'Sibling twist in drug case',
		'Conor Berry, The Berkshire Eagle, Pittsfield, Mass.',
		'',
		'20100506',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_06__0000-0811-EJ-Sibling-twist-in-drug-case-0506.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-06T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Prosecutor still objects to Shiue\'s sentence';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Prosecutor still objects to Shiue\'s sentence',
		'May 6--Prosecutor Michael Roith earned a guilty verdict in a 1981 murder trial that resulted in a 40-year state prison sentence, but still feels he let the 6-year-old victim down.',
		'Prosecutor still objects to Shiue\'s sentence',
		'David Chanen, Star Tribune, Minneapolis',
		'',
		'20100506',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_06__0000-1223-MS-Prosecutor-still-objects-to-Shiue-s-sentence-0506.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-06T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Connecticut Post, Bridgeport');

	title = 'Court date too late in murder-suicide';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Court date too late in murder-suicide',
		'May 6--MILFORD -- Selami Ozdemir was supposed to be in court Wednesday for a hearing in his arrest for assaulting his wife last September.',
		'Court date too late in murder-suicide',
		'Frank Juliano',
		'',
		'20100506',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_06__0000-1150-BG-Court-date-too-late-in-murder-suicide-0506.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-06T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Connecticut Post, Bridgeport');

	title = 'Judge won\'t step aside in Milford sex-assault case';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Judge won\'t step aside in Milford sex-assault case',
		'May 6--MILFORD -- Judge Eddie Rodriguez Jr. denied prosecutors\' motions Wednesday to recuse himself from deciding a sex assault case.',
		'Judge won\'t step aside in Milford sex-assault case',
		'Frank Juliano',
		'',
		'20100506',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_06__0000-1152-BG-Judge-won-t-step-aside-in-Milford-sex-assault-case-0506.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-06T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Houston Chronicle');

	title = 'Jury hears details of injuries to slain baby';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Jury hears details of injuries to slain baby',
		'May 6--CONROE -- In the last hours of 13-month-old Amora Bain Carson\'s life, she endured inexplicable pain from 24 human bites, multiple fractures to her ribs and numerous abrasions to her entire face.',
		'Jury hears details of injuries to slain baby',
		'Renee C. Lee',
		'',
		'20100506',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_06__0000-0252-HO-Jury-hears-details-of-injuries-to-slain-baby-0506.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-06T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Agra reverses ruling on clan';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Agra reverses ruling on clan',
		'May 6--Acting Justice Secretary Alberto Agra on Wednesday reversed his earlier decision that absolved former Gov. Zaldy Ampatuan of the Autonomous Region in Muslim Mindanao (ARMM) and Vice Mayor Akmad',
		'Agra reverses ruling on clan',
		'Ruben D. Manahan 4th, The Manila Times, Philippines',
		'',
		'20100506',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_06__0000-0044-MF-Agra-reverses-ruling-on-clan-0506.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-05T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Las Vegas Review-Journal');

	title = 'Jury finds drugmakers liable in hepatitic C case';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Jury finds drugmakers liable in hepatitic C case',
		'May 5--A jury has found two drug companies liable for the hepatitis C infection of a Las Vegas man.',
		'Jury finds drugmakers liable in hepatitic C case',
		'Brian Haynes',
		'',
		'20100505',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_05_05__0000-9227-LV-Jury-finds-drugmakers-liable-in-hepatitic-C-case-0505.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-05-06T02:30:25');
	publicationMetadata = new MakePublicationMetadata('USA TODAY');

	title = 'Stevens: Risk of wrongful sentences higher';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Stevens: Risk of wrongful sentences higher',
		'COLUMBUS, Ohio -- Modern pressures on the judicial system have raised the chance a defendant could be wrongly sentenced to death, Supreme Court Justice John Paul Stevens said Wednesday, explaining his changed view on the constitutionality of capital ...',
		'Stevens: Risk of wrongful sentences higher',
		'Joan Biskupic',
		'Copyright 2009 USA TODAY, a division of Gannett Co. Inc.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'usatoday_2010_05_06_eng-usatoday_news_eng-usatoday_news_023025_1830281615034685647.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	

//////////////////////// End PER ARTICLE section

	contentSetId = 'PROWEB_Legal';
	contentSetName = 'Legal';
	contentSetLanguage = '';
	contentSetPublishedDate = '2010-05-06T17:45:25';

	id = 'PROWEB_Legal';
	contentType = '';

} // End data initialization block.

if (typeof ContentIndex == "undefined") {
	ContentIndex = -1;
}

SMContentSet[++ContentIndex] = new MakeContentSet(contentSetId, contentSetName, contentSetLanguage, contentSetPublishedDate, contents);
