
/*
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', '2009-11-01T21:37:36');
	publicationMetadata = new MakePublicationMetadata('McClatchy-Tribune Information Services -- Unrestricted');

	title = '50,000 words, 30 days, 1 writer';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'50,000 words, 30 days, 1 writer',
		'That\'s the challenge that thousands of writers across the U.S. accept every November as they participate in National Novel Writing Month, or NaNoWriMo to insiders. A handful of writers on the Strand took up the gauntlet last year and plan to do it again...',
		'50,000 words, 30 days, 1 writer',
		'Dan Golden',
		'Copyright (C) 2009, The Sun News, Myrtle Beach, S.C.',
		'Nov 01, 2009 (The Sun News - McClatchy-Tribune Information Services via COMTEX) --',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_xml_2009_11_01_comtex_comtex_203821_6001484775035357441',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-11-01T20:10:30');
	publicationMetadata = new MakePublicationMetadata('McClatchy-Tribune Information Services -- Unrestricted');

	title = 'Writers use old and new to publish book';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Writers use old and new to publish book',
		'A speaker at the Kentucky Women Writers Conference in 1997 said the chances of a member of that audience having her work published by a New York publishing company was just about nil.',
		'Writers use old and new to publish book',
		'Merlene Davis',
		'Copyright (C) 2009, The Lexington Herald-Leader, Ky.',
		'Nov 01, 2009 (The Lexington Herald-Leader - McClatchy-Tribune Information Services via COMTEX) --',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_xml_2009_11_01_comtex_comtex_191123_8332204370414423093',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-11-01T12:17:00');
	publicationMetadata = new MakePublicationMetadata('United Press International');

	title = 'Palin book \'Rogue\' expected to do well';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Palin book \'Rogue\' expected to do well',
		'WASHINGTON, Nov 1, 2009 (UPI via COMTEX) -- The upcoming release of former Alaskan Gov. Sarah Palin\'s book, "Going Rogue: An American Life," should be met with impressive sales, an expert said.',
		'Palin book \'Rogue\' expected to do well',
		'',
		'Copyright 2009 by United Press International',
		'WASHINGTON, Nov 1, 2009 (UPI via COMTEX)',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_2009_11_01_up_0000-0033-bc-us-palin-books',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-22T11:32:00');
	publicationMetadata = new MakePublicationMetadata('Business Wire');

	title = 'Introducing "Kindle for PC" -- The Free Application for Reading Kindle Books on the PC-Latest Kindle Application Brings over 360,000...';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Introducing "Kindle for PC" -- The Free Application for Reading Kindle Books on the PC-Latest Kindle Application Brings over 360,000...',
		'SEATTLE, Oct 22, 2009 (BUSINESS WIRE) -- Amazon.com, Inc. (NASDAQ: AMZN) today announced "Kindle for PC," the free application that lets readers around the world enjoy Kindle books on their personal computers (PC). The U.S. Kindle Store (www.amazon.com/kindlestore)...',
		'Introducing "Kindle for PC" -- The Free Application for Reading Kindle Books on the PC-Latest Kindle Application Brings over 360,000...',
		'',
		'Copyright Business Wire 2009',
		'SEATTLE, Oct 22, 2009 (BUSINESS WIRE)',
		'',
		'pr'
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_2009_10_22_bw_0000-0163-wa-amazon.com',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-20T18:34:48');
	publicationMetadata = new MakePublicationMetadata('Associated Press');

	title = 'Barnes & Noble unveils new e-reader: the \'nook\'';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Barnes & Noble unveils new e-reader: the \'nook\'',
		'NEW YORK - Barnes & Noble Inc. unveiled a new electronic-book reader Tuesday that will compete with Amazon.com\'s Kindle in a still-small arena where some see bookselling\'s future.',
		'Barnes & Noble unveils new e-reader: the \'nook\'',
		'By MAE ANDERSON (AP Retail Writer)',
		'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'ap_2009_10_20_ap.worldstream.english.business_D9BF4I5O1_news_ap_org.anpa',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-20T17:30:00');
	publicationMetadata = new MakePublicationMetadata('Business Wire');

	title = 'Adobe and Barnes & Noble Join Forces to Standardize eBook Technology-Barnes & Noble Adopts Open EPUB eBook Format, PDF and Adobe...';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Adobe and Barnes & Noble Join Forces to Standardize eBook Technology-Barnes & Noble Adopts Open EPUB eBook Format, PDF and Adobe...',
		'SAN JOSE, Calif. & NEW YORK, Oct 20, 2009 (BUSINESS WIRE) -- Adobe Systems Incorporated (Nasdaq:ADBE) and Barnes & Noble, Inc. (NYSE:BKS), the world\'s largest bookseller, today announced further advancements for eBook distribution by joining forces to...',
		'Adobe and Barnes & Noble Join Forces to Standardize eBook Technology-Barnes & Noble Adopts Open EPUB eBook Format, PDF and Adobe...',
		'',
		'(C) 2009 Business Wire. All Rights Reserved',
		'SAN JOSE, Calif. & NEW YORK, Oct 20, 2009 (BUSINESS WIRE)',
		'',
		'pr'
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_2009_10_20_bw_0000-2925-ca-adobe-systems',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-20T23:04:18');
	publicationMetadata = new MakePublicationMetadata('Associated Press');

	title = 'HP, Amazon to sell paperback versions of e-books';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'HP, Amazon to sell paperback versions of e-books',
		'SAN FRANCISCO - Some of technology\'s best-known companies are betting there\'s pent-up demand for on-demand books.',
		'HP, Amazon to sell paperback versions of e-books',
		'By MICHAEL LIEDTKE (AP Technology Writer)',
		'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'ap_2009_10_20_ap.online.all_D9BF8GFO0_news_ap_org.anpa',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-21T10:00:00');
	publicationMetadata = new MakePublicationMetadata('Business Wire');

	title = 'Houghton Mifflin Harcourt Announces First 100% Recycled Textbooks to U.S. Schools-Kicking-off in Florida and available nationally...';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Houghton Mifflin Harcourt Announces First 100% Recycled Textbooks to U.S. Schools-Kicking-off in Florida and available nationally...',
		'BOSTON, Oct 21, 2009 (BUSINESS WIRE) -- Global education leader Houghton Mifflin Harcourt today unveiled its Go Math! textbook series, the first textbook series made from one-hundred-percent recycled material. Available nationally in the Spring of 2010,...',
		'Houghton Mifflin Harcourt Announces First 100% Recycled Textbooks to U.S. Schools-Kicking-off in Florida and available nationally...',
		'',
		'Copyright Business Wire 2009',
		'BOSTON, Oct 21, 2009 (BUSINESS WIRE)',
		'',
		'pr'
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_2009_10_21_bw_0000-8629-ma-houghton-mifflin',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-21T07:05:02');
	publicationMetadata = new MakePublicationMetadata('The Philadelphia Inquirer');

	title = 'Another Stoker Bites Into the Dracula Legend';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Another Stoker Bites Into the Dracula Legend',
		'The vampire whose unquenchable thirst for blood Bram Stoker chronicled in the 1897 classic, "Dracula," has returned.',
		'Another Stoker Bites Into the Dracula Legend',
		'Tirdad Derakhshani',
		'(c) 2009, The Philadelphia Inquirer. Distributed by Mclatchy-Tribune News Service.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'krt_2009_10_21_knigp_5391-0032-BOOK-STOKER.PH',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-21T07:45:00');
	publicationMetadata = new MakePublicationMetadata('Business Wire');

	title = 'HP Makes Rare and Hard-to-find Books Available Through Collaboration with University of Michigan-HP BookPrep delivers access to...';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'HP Makes Rare and Hard-to-find Books Available Through Collaboration with University of Michigan-HP BookPrep delivers access to...',
		'PALO ALTO, Calif., Oct 21, 2009 (BUSINESS WIRE) -- HP (NYSE: HPQ) today announced it is making more than 500,000 rare and hard-to-find books available for sale through a new collaboration with the University of Michigan.',
		'HP Makes Rare and Hard-to-find Books Available Through Collaboration with University of Michigan-HP BookPrep delivers access to...',
		'',
		'(C) 2009 Business Wire. All Rights Reserved',
		'PALO ALTO, Calif., Oct 21, 2009 (BUSINESS WIRE)',
		'',
		'pr'
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_2009_10_21_bw_0000-6514-ca-hp',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-20T22:27:00');
	publicationMetadata = new MakePublicationMetadata('AScribe News');

	title = 'October Brings Much to Celebrate for University Presses : National Book Awards and Nobels Highlight the Importance of Not-for-Profit...';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'October Brings Much to Celebrate for University Presses : National Book Awards and Nobels Highlight the Importance of Not-for-Profit...',
		'NEW YORK, Oct 20, 2009 (ASCRIBE NEWS via COMTEX) -- Five members of the Association of American University Presses (AAUP) made a showing when the finalists for the 2009 National Book Awards were announced on October 14. Coming so shortly after the announcement...',
		'October Brings Much to Celebrate for University Presses : National Book Awards and Nobels Highlight the Importance of Not-for-Profit...',
		'',
		'(C)1999-2009 AScribe News',
		'NEW YORK, Oct 20, 2009 (ASCRIBE NEWS via COMTEX)',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_2009_10_20_ms_0000-3484-KEYWORD.Missing',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-14T09:44:12');
	publicationMetadata = new MakePublicationMetadata('Associated Press');

	title = 'Icelandic translation of Dan Brown novel stolen';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Icelandic translation of Dan Brown novel stolen',
		'REYKJAVIK, Iceland - Police are looking for someone who might be reading the Icelandic translation of Dan Brown\'s new novel, "The Lost Symbol."',
		'Icelandic translation of Dan Brown novel stolen',
		'',
		'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'ap_2009_10_14_ap.worldstream.english_D9BAU7F01_news_ap_org.anpa',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-14T09:44:24');
	publicationMetadata = new MakePublicationMetadata('Associated Press');

	title = 'Icelandic translation of Dan Brown novel stolen';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Icelandic translation of Dan Brown novel stolen',
		'REYKJAVIK, Iceland - Police are looking for someone who might be reading the Icelandic translation of Dan Brown\'s new novel, "The Lost Symbol."',
		'Icelandic translation of Dan Brown novel stolen',
		'',
		'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'ap_2009_10_14_ap.worldstream.english.features_D9BAU7H80_news_ap_org.anpa',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-14T14:28:00');
	publicationMetadata = new MakePublicationMetadata('Deutsche Presse-Agentur (dpa)');

	title = 'Book publishers fear advance of digital "glacier"';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Book publishers fear advance of digital "glacier"',
		'Frankfurt (dpa) - Online writing is like an unstoppable "glacier" coming towards the world book publishing industry, says a book industry expert, summing up the worries for the future this week at the Frankfurt Book Fair in Germany.',
		'Book publishers fear advance of digital "glacier"',
		'Jean-Baptiste Piggin, dpa',
		'Copyright 2009 dpa Deutsche Presse-Agentur GmbH',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'deutsche_2009_10_14_eca_0135-0111-.Germany-Culture.Media.',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-14T13:44:19');
	publicationMetadata = new MakePublicationMetadata('M2 Communications');

	title = 'Penguin to Establish New Publishing Programme for Writing About And from China';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Penguin to Establish New Publishing Programme for Writing About And from China',
		'Publisher Penguin announced today that it is establishing a new publishing programme focused on writing about and from China.',
		'Penguin to Establish New Publishing Programme for Writing About And from China',
		'',
		'(C)2000-2009 M2 Communications',
		'',
		'',
		'pr'
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'm2c_2009_10_14_m2b_0000-0506-m2b_200910141344191',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-14T10:08:00');
	publicationMetadata = new MakePublicationMetadata('Deutsche Presse-Agentur (dpa)');

	title = 'Mandela diaries sold to publishers at Book Fair';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Mandela diaries sold to publishers at Book Fair',
		'Frankfurt (dpa) - A future manuscript containing the diaries, letters and personal thoughts of South African liberation hero Nelson Mandela, 91, has been put up for sale at the Frankfurt Book Fair by his literary agent, a trade journal said Wednesday...',
		'Mandela diaries sold to publishers at Book Fair',
		'',
		'Copyright 2009 dpa Deutsche Presse-Agentur GmbH',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'deutsche_2009_10_14_eca_0074-0050-.Germany-Culture.Media.SAfrica.',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-14T02:10:00');
	publicationMetadata = new MakePublicationMetadata('Market Wire');

	title = 'Wolters Kluwer Celebrates Its Growing Market Position in China with Launches of China GOLD and Chinese-language OvidSP';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Wolters Kluwer Celebrates Its Growing Market Position in China with Launches of China GOLD and Chinese-language OvidSP',
		'FRANKFURT, GERMANY, Oct 14, 2009 (MARKETWIRE via COMTEX) -- Prominent presence of Wolters Kluwer at 2009 Frankfurt Book Fair with China as guest of honor',
		'Wolters Kluwer Celebrates Its Growing Market Position in China with Launches of China GOLD and Chinese-language OvidSP',
		'',
		'(C) 2009 Market Wire. All Rights Reserved',
		'FRANKFURT, GERMANY, Oct 14, 2009 (MARKETWIRE via COMTEX)',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_2009_10_14_iw_0000-3706-KEYWORD.Missing',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-13T07:56:30');
	publicationMetadata = new MakePublicationMetadata('Agence France-Presse');

	title = 'World\'s biggest book fair spotlights China';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'World\'s biggest book fair spotlights China',
		'The Frankfurt Book Fair\'s 61st edition opens Tuesday with the red carpet rolled out for guest of honour China, while hosts also stressed support for freedom of expression by dissident voices.',
		'World\'s biggest book fair spotlights China',
		'',
		'COPYRIGHT 2002 Agence France-Presse. All rights reserved.',
		'FRANKFURT, Oct 13, 2009 (AFP) -',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'afp_prod_2009_10_13_en-afp_en-afp_075630_3843731385552407750',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-13T07:15:01');
	publicationMetadata = new MakePublicationMetadata('Chicago Tribune');

	title = 'How Where the Wild Things Are\' Ambled from Page to Screen';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'How Where the Wild Things Are\' Ambled from Page to Screen',
		'CHICAGO - The promotional materials for Spike Jonze\'s long-gestating new film adaptation of Maurice Sendak\'s "Where the Wild Things Are" kick off with this quote from the director: "I didn\'t set out to make a children\'s movie; I set out to make a movie...',
		'How Where the Wild Things Are\' Ambled from Page to Screen',
		'Mark Caro',
		'(c) 2009, Chicago Tribune. Distributed by Mclatchy-Tribune News Service.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'krt_2009_10_13_knigt_1174-0049-MOVIE-WILDTHINGS.TB',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-12T12:32:47');
	publicationMetadata = new MakePublicationMetadata('McClatchy-Tribune Information Services -- Unrestricted');

	title = 'Breaking bank to buy books?: Students search for bargains on textbooks by going online, and some bookstores try to help cut costs...';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Breaking bank to buy books?: Students search for bargains on textbooks by going online, and some bookstores try to help cut costs...',
		'At many area colleges and universities, students spend an average of $600 a semester on books and other instructional materials, according to the universities, but the drive to save money is sending students online in search of bargain alternatives. At...',
		'Breaking bank to buy books?: Students search for bargains on textbooks by going online, and some bookstores try to help cut costs...',
		'Bob Caylor',
		'Copyright (C) 2009, The News-Sentinel, Fort Wayne, Ind.',
		'Oct 12, 2009 (The News-Sentinel - McClatchy-Tribune Information Services via COMTEX) --',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_xml_2009_10_12_comtex_comtex_113321_2724687177275444612',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-12T10:10:32');
	publicationMetadata = new MakePublicationMetadata('Efe');

	title = 'E-books won\'t mean end of printed books, Spanish experts say';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'E-books won\'t mean end of printed books, Spanish experts say',
		'Madrid, Oct 12 (EFE).- There\'s no going back from the move toward electronic books, but the new formats will coexist for a long time with editions printed on paper, experts attending the International Book Fair in Madrid said.',
		'E-books won\'t mean end of printed books, Spanish experts say',
		'',
		'Copyright 2009 Efe. All Rights Reserved.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'efe_english_2009_10_12_efe_english_efe_english_101032_4642024452650975030',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-08T10:53:00');
	publicationMetadata = new MakePublicationMetadata('United Press International');

	title = 'Matt Lauer to interview author Dan Brown';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Matt Lauer to interview author Dan Brown',
		'NEW YORK, Oct 8, 2009 (UPI via COMTEX) -- U.S. novelist Dan Brown has agreed to sit for a rare and exclusive interview with TV\'s Matt Lauer, NBC said.',
		'Matt Lauer to interview author Dan Brown',
		'',
		'Copyright 2009 by United Press International',
		'NEW YORK, Oct 8, 2009 (UPI via COMTEX)',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_2009_10_08_up_0000-8382-bc-us-danbrown',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-08T12:08:00');
	publicationMetadata = new MakePublicationMetadata('PR Newswire');

	title = 'University of Nebraska Press Author Recipient of 2009 Nobel Prize for Literature';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'University of Nebraska Press Author Recipient of 2009 Nobel Prize for Literature',
		'LINCOLN, Neb., Oct 08, 2009 /PRNewswire-USNewswire via COMTEX/ -- German writer Herta Muller, whose short story collection Nadirs was published by the University of Nebraska Press in 1999, is the winner of this year\'s Nobel Prize for Literature.',
		'University of Nebraska Press Author Recipient of 2009 Nobel Prize for Literature',
		'',
		'Copyright (C) 2009 PR Newswire. All Rights Reserved',
		'LINCOLN, Neb., Oct 08, 2009 /PRNewswire',
		'',
		'pr'
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_2009_10_08_pr_0000-0505-muller-nobel-prize',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-07T10:14:15');
	publicationMetadata = new MakePublicationMetadata('Associated Press');

	title = 'Judge sets deadline for amended Google book deal';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Judge sets deadline for amended Google book deal',
		'NEW YORK - A federal judge set a Nov. 9 deadline Wednesday for submitting a revised agreement in the battle over Google Inc.\'s effort to get digital rights to millions of out-of-print books.',
		'Judge sets deadline for amended Google book deal',
		'By LARRY NEUMEISTER (Associated Press Writer)',
		'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'ap_2009_10_07_ap.worldstream.english.business_D9B6B0H80_news_ap_org.anpa',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2009-10-06T02:46:25');
	publicationMetadata = new MakePublicationMetadata('Agence France-Presse');

	title = 'Nobel Literature Prize could go to a poet this year';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Nobel Literature Prize could go to a poet this year',
		'This year\'s Nobel Literature Prize could go to a poet for the first time since 1996, Swedish literary circles say as speculation mounts ahead of Thursday\'s announcement.',
		'Nobel Literature Prize could go to a poet this year',
		'',
		'COPYRIGHT 2002 Agence France-Presse. All rights reserved.',
		'STOCKHOLM, Oct 6, 2009 (AFP) -',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'afp_prod_2009_10_06_en-afp_en-afp_024625_1839861932889469418',
		'01257170606412',
		'article',
		'en-US',
		'',
		article
		);

		
	

//////////////////////// End PER ARTICLE section

	contentSetId = '172_BOOK_PUBLISHING';
	contentSetName = 'BOOK_PUBLISHING';
	contentSetLanguage = '';
	contentSetPublishedDate = '2009-11-02T08:03:34';

	id = '172_BOOK_PUBLISHING';
	contentType = '';

} // End data initialization block.

if (typeof ContentIndex == "undefined") {
	ContentIndex = -1;
}

SMContentSet[++ContentIndex] = new MakeContentSet(contentSetId, contentSetName, contentSetLanguage, contentSetPublishedDate, contents);
