
/*
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-18T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Houston Chronicle');

	title = 'In census, same-sex couples counted';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'In census, same-sex couples counted',
		'Mar. 18--The federal government and the state of Texas won\'t recognize Noel Freeman\'s eight-year relationship with another man as marriage, but the 2010 U.S. census will.',
		'In census, same-sex couples counted',
		'Lindsay Wise',
		'',
		'20100318',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_18__0000-0296-HO-HLT-In-census-same-sex-couples-counted-0318.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-17T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'AU employees may file lawsuit';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'AU employees may file lawsuit',
		'Mar. 17--A complaint by Auburn University employees alleging discriminatory pay may become a lawsuit after negotiations mediated by the Equal Employment Opportunity Commission failed to produce a solution in last month.',
		'AU employees may file lawsuit',
		'Ed Enoch, Opelika-Auburn News, Ala.',
		'',
		'20100317',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_17__0000-3879-OP-AU-employees-may-file-lawsuit-0317.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-18T10:20:00');
	publicationMetadata = new MakePublicationMetadata('Deutsche Presse-Agentur (dpa)');

	title = 'Australia reverses landmark no-sex ruling';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Australia reverses landmark no-sex ruling',
		'Sydney (dpa) - An Australian who made world headlines by being officially declared neuter vowed Thursday not to surrender the "sex not specified" identification document authorities in Sydney now claim they issued in error.',
		'Australia reverses landmark no-sex ruling',
		'',
		'Copyright 2010 dpa Deutsche Presse-Agentur GmbH',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'deutsche_2010_03_18_eca_0070-0045-.Australia-People.Society..ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-18T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Connecticut Post, Bridgeport');

	title = 'Botti\'s lawyer grills witness on inconsistencies in testimony';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Botti\'s lawyer grills witness on inconsistencies in testimony',
		'Mar. 18--NEW HAVEN -- Andre Czaplinski remembered being told by James Botti that he had to bribe Shelton Mayor Mark A. Lauretti to get his 828 Bridgeport Ave. project approved by the Planning and Zoning Commission.',
		'Botti\'s lawyer grills witness on inconsistencies in testimony',
		'Michael P Mayko',
		'',
		'20100318',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_18__0000-1279-BG-Botti-s-lawyer-grills-witness-on-inconsistencies-in-testimony-0318.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-18T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Lawyers angry about TV station error';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Lawyers angry about TV station error',
		'Mar. 18--An apparent mistake by a local television station has several criminal defense attorneys scrambling to clear their names.',
		'Lawyers angry about TV station error',
		'Logan G. Carver, Lubbock Avalanche-Journal, Texas',
		'',
		'20100318',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_18__0000-1375-QZ-Lawyers-angry-about-TV-station-error-0318.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-18T03:00:02');
	publicationMetadata = new MakePublicationMetadata('The Atlanta Journal-Constitution');

	title = 'Access Laws Need Legal Remedies to Work Better';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Access Laws Need Legal Remedies to Work Better',
		'Sunshine Week is the national initiative to encourage dialogue about the importance of open government. It coincides with the March 16 birthday of James Madison (the father of the First Amendment), and is a good time to review Georgia\'s open government...',
		'Access Laws Need Legal Remedies to Work Better',
		'Hollie Manheimer',
		'Copyright 2010 The Atlanta Journal-Constitution',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'ajc_2010_03_18_A_107978122-0008-Main.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-18T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Arizona Daily Star, Tucson');

	title = '2 realty agents settle investment case';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'2 realty agents settle investment case',
		'Mar. 18--Two Tucson real estate agents and their affiliated companies agreed to a $120,000 settlement for their role in a deal that state prosecutors say deceived novice investors, lenders and unqualified home buyers.',
		'2 realty agents settle investment case',
		'Dale Quinn',
		'',
		'20100318',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_18__0000-1186-AZ-HLT-2-realty-agents-settle-investment-case-0318.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-18T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'BRIEF: Lawyer in Kia case escapes sanction';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'BRIEF: Lawyer in Kia case escapes sanction',
		'Mar. 18--A federal judge declined Wednesday to sanction a lawyer who Kia Motors claims tampered with a court exhibit during a product liability case.',
		'BRIEF: Lawyer in Kia case escapes sanction',
		'',
		'',
		'20100318',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_18__0000-0576-PZ-BRF-Lawyer-in-Kia-case-escapes-sanction-0318.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-18T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Appellate court overrules Kellogg';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Appellate court overrules Kellogg',
		'Mar. 18--Jeffrey Cornelius believed his stay in prison would last 120 days back in 2004, when the Missouri Department of Corrections took him into custody.',
		'Appellate court overrules Kellogg',
		'R.J. Cooper, St. Joseph News-Press, Mo.',
		'',
		'20100318',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_18__0000-1323-JM-Appellate-court-overrules-Kellogg-0318.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-17T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Morning Call, Allentown, Pennsylvania');

	title = 'Man to plea in Craigslist scam';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Man to plea in Craigslist scam',
		'Mar. 17--A former East Stroudsburg University student charged with posting fake online ads to lure victims so he could steal expensive jewelry and a laptop will plead guilty to robbery and theft charges, according to court testimony Tuesday.',
		'Man to plea in Craigslist scam',
		'Pamela Lehman, The Morning Call, Allentown, Pa.',
		'',
		'20100317',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_17__0000-3423-AA-Man-to-plea-in-Craigslist-scam-0317.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-18T02:00:29');
	publicationMetadata = new MakePublicationMetadata('USA TODAY');

	title = 'Privacy vs. public right to know';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Privacy vs. public right to know',
		'The fear in the little boy\'s voice was palpable. "There\'s some guy who\'s going to kill my mom and dad," a 7-year-old identified only as Carlos told the 911 operator. "Bring cops. A lot of them! ... And soldiers, too."',
		'Privacy vs. public right to know',
		'Ken Paulson',
		'Copyright 2009 USA TODAY, a division of Gannett Co. Inc.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'usatoday_2010_03_18_eng-usatoday_news_eng-usatoday_news_020030_1397910927684440091.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-18T07:58:02');
	publicationMetadata = new MakePublicationMetadata('United Press International');

	title = '\'Jihad Jane\' to be arraigned';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'\'Jihad Jane\' to be arraigned',
		'The Pennsylvania woman known as "Jihad Jane" has confessed to the FBI about her role in a plot to kill a Swedish cartoonist, knowledgeable sources said. Colleen LaRose, who used the moniker "Jihad Jane" on the Internet, was scheduled to be arraigned Thursday...',
		'\'Jihad Jane\' to be arraigned',
		'',
		'Copyright United Press International 2010',
		'PHILADELPHIA, March 18 (UPI) --',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_yb_2010_03_18_comtex_142640361.anpa.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-18T04:04:03');
	publicationMetadata = new MakePublicationMetadata('Canadian Press');

	title = 'Chicago man accused of scouting Mumbai before attack expected to plead guilty';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Chicago man accused of scouting Mumbai before attack expected to plead guilty',
		'CHICAGO - A Chicago man accused of helping scout out the Indian city of Mumbai before the 2008 terrorist attack that left 166 people dead is expected to plead guilty Thursday to federal charges in a case involving a Canadian.',
		'Chicago man accused of scouting Mumbai before attack expected to plead guilty',
		'',
		'?? The Canadian Press, 2010',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'canadianp_eng_2010_03_18_eng-canadianp_world_eng-canadianp_world_040403_2623480814495470567.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-18T03:34:25');
	publicationMetadata = new MakePublicationMetadata('Canadian Press');

	title = 'Attorney General: Jurors convict member of Texas polygamist group of child sexual assault';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Attorney General: Jurors convict member of Texas polygamist group of child sexual assault',
		'SAN ANGELO, Texas - Prosecutors say a member of a polygamist group whose sprawling West Texas ranch was raided in 2008 has been found guilty of sexual assault of a child.',
		'Attorney General: Jurors convict member of Texas polygamist group of child sexual assault',
		'',
		'?? The Canadian Press, 2010',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'canadianp_eng_2010_03_18_eng-canadianp_world_eng-canadianp_world_033425_678217412309754577.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-17T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Lawyers\' licenses suspended: One of the attorneys was accused of beating a client with baseball bat';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Lawyers\' licenses suspended: One of the attorneys was accused of beating a client with baseball bat',
		'Mar. 17--CHARLESTON, W.Va.--The state Supreme Court has suspended the licenses of two Charleston lawyers who have had their own run-ins with the law.',
		'Lawyers\' licenses suspended: One of the attorneys was accused of beating a client with baseball bat',
		'Cheryl Caswell, Charleston Daily Mail, W.Va.',
		'',
		'20100317',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_17__0000-2919-ML-Lawyers-licenses-suspended-0317.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-17T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'State dismisses 16 felony charges';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'State dismisses 16 felony charges',
		'Mar. 17--SEBRING -- A Loxahatchee man was relieved that 16 felony charges against him were dismissed by the state attorney\'s office when he showed up to court to begin his trial, but his finances were left in ruins as a result.',
		'State dismisses 16 felony charges',
		'Joe Seelig, Highlands Today, Sebring, Fla.',
		'',
		'20100317',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_17__0000-2033-HG-State-dismisses-16-felony-charges-0317.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-17T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Daily Press, Newport News, Va.');

	title = 'Mistrial declared in Newport News forcible sodomy case';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Mistrial declared in Newport News forcible sodomy case',
		'Mar. 17--A judge called a mistrial Tuesday in the case of a Newport News man accused of forcing a 12-year-old girl to commit sodomy while other relatives were in the next room.',
		'Mistrial declared in Newport News forcible sodomy case',
		'Peter Dujardin',
		'',
		'20100317',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_17__0000-3036-NN-Mistrial-declared-in-Newport-News-forcible-sodomy-case-0317.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-17T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Fresno Bee, Calif.');

	title = 'Suspect\'s sanity in Fresno baseball-bat slaying questioned';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Suspect\'s sanity in Fresno baseball-bat slaying questioned',
		'Mar. 17--Criminal proceedings against a Fresno man accused of killing his half-brother with a baseball bat were suspended Tuesday so two doctors can examine him and determine whether he is competent to stand trial.',
		'Suspect\'s sanity in Fresno baseball-bat slaying questioned',
		'Pablo Lopez',
		'',
		'20100317',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_17__0000-3672-FR-Suspect-s-sanity-in-Fresno-baseball-bat-slaying-questioned-0317.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-16T15:05:12');
	publicationMetadata = new MakePublicationMetadata('Canadian Press');

	title = 'Wife of conservative Supreme Court justice involved in Tea Party movement';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Wife of conservative Supreme Court justice involved in Tea Party movement',
		'WASHINGTON - United States Supreme Court Justice Clarence Thomas once raised eyebrows when he performed a wedding ceremony for conservative superstar Rush Limbaugh in the judge\'s Virginia home.',
		'Wife of conservative Supreme Court justice involved in Tea Party movement',
		'',
		'?? The Canadian Press, 2010',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'canadianp_eng_2010_03_16_eng-canadianp_world_eng-canadianp_world_150512_4691908838691858371.ew.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-17T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Dumfries police probe grows wider';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Dumfries police probe grows wider',
		'Mar. 17--Investigators from Fairfax city police--called in to conduct an administrative investigation of the Dumfries Police Department--copied the contents of three computers as part of their probe.',
		'Dumfries police probe grows wider',
		'Aileen Streng, News and Messenger, Manassas, Va.',
		'',
		'20100317',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_17__0000-2601-MJ-Dumfries-police-probe-grows-wider-0317.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-17T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Felon gets 10 years for assaults';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Felon gets 10 years for assaults',
		'Mar. 17--A violent felon who, while handcuffed, wrestled a gun away from a police officer and fired a shot at him has been sentenced to 10 years in prison.',
		'Felon gets 10 years for assaults',
		'Mike Gellatly, Aiken Standard, S.C.',
		'',
		'20100317',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_17__0000-2497-AY-Felon-gets-10-years-for-assaults-0317.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-17T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Fresno Bee, Calif.');

	title = 'Central High blocks return of expelled students';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Central High blocks return of expelled students',
		'Mar. 17--Five students expelled from Central High School for cutting down two trees in a senior prank tried to return to class Tuesday morning, only to be turned away by school officials -- which prompted their attorneys to call the police.',
		'Central High blocks return of expelled students',
		'Tracy Correa',
		'',
		'20100317',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_17__0000-3676-FR-HLT-Central-High-blocks-return-of-expelled-students-0317.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-17T00:00:00');
	publicationMetadata = new MakePublicationMetadata('The Brownsville Herald, Texas');

	title = 'Trial begins for outspoken detainee';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Trial begins for outspoken detainee',
		'Mar. 17--A federal jury will determine this week whether a man born in the Democratic Republic of Congo is guilty of assaulting two officers at Port Isabel Detention Center in Bayview.',
		'Trial begins for outspoken detainee',
		'Jazmine Ulloa',
		'',
		'20100317',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_17__0000-2979-BV-Trial-begins-for-outspoken-detainee-0317.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-17T00:00:00');
	publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');

	title = 'Westmoreland judge upholds guilty verdict in strangulation';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Westmoreland judge upholds guilty verdict in strangulation',
		'Mar. 17--A Westmoreland County judge ruled Tuesday that a first-degree murder conviction will stand against a Latrobe man convicted of killing his part-time roommate two years ago.',
		'Westmoreland judge upholds guilty verdict in strangulation',
		'Rich Cholodofsky, Tribune-Review, Greensburg, Pa.',
		'',
		'20100317',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'knightridder_2010_03_17__0000-2207-GP-Westmoreland-judge-upholds-guilty-verdict-in-strangulation-0317.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2010-03-17T08:04:11');
	publicationMetadata = new MakePublicationMetadata('Canadian Press');

	title = 'Wal-Mart trying to determine who told \'all black people\' to leave US store';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Wal-Mart trying to determine who told \'all black people\' to leave US store',
		'WASHINGTON TOWNSHIP, N.J. - Wal-Mart Stores Inc. officials are reviewing security tapes to try to determine who used a southern New Jersey store\'s public-address system to tell "all black people" to leave.',
		'Wal-Mart trying to determine who told \'all black people\' to leave US store',
		'',
		'?? The Canadian Press, 2010',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'canadianp_eng_2010_03_17_eng-canadianp_world_eng-canadianp_world_080411_8591375415600661844.ew',
		'01',
		'article',
		'en-US',
		'',
		article
		);

		
	

//////////////////////// End PER ARTICLE section

	contentSetId = 'PROWEB_Legal';
	contentSetName = 'Legal';
	contentSetLanguage = '';
	contentSetPublishedDate = '2010-03-18T06:50:24';

	id = 'PROWEB_Legal';
	contentType = '';

} // End data initialization block.

if (typeof ContentIndex == "undefined") {
	ContentIndex = -1;
}

SMContentSet[++ContentIndex] = new MakeContentSet(contentSetId, contentSetName, contentSetLanguage, contentSetPublishedDate, contents);
