
/*
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', '2007-09-23T18:00:00');
	publicationMetadata = new MakePublicationMetadata('PRNewswire');

	title = 'Honeywell Aerospace Forecasts $233 Billion In New Business Jet Sales Through 2017';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Honeywell Aerospace Forecasts $233 Billion In New Business Jet Sales Through 2017',
		'ATLANTA, Sept 23, 2007 /PRNewswire-FirstCall via COMTEX/ -- NBAA -- In its 16th annual Business Aviation Outlook issued today, Honeywell (<a href=/e/t/invest/quotesresearch?qmenu=2&prod=HON:US:EQ>HON</a>, <a href=/e/t/applogic/OrderForm?Symbol=HON>Trade</a>)...',
		'Honeywell Aerospace Forecasts $233 Billion In New Business Jet Sales Through 2017',
		'',
		'Copyright 2007 PRNewswire . All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'etrade_2007_09_23_eng-etrade_cbs2_market_watch_eng-etrade_cbs2_market_watch_3809537D-5507-44D5-BE1B-4BEA6045FD3C',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-09-16T10:44:00');
	publicationMetadata = new MakePublicationMetadata('Australian Broadcasting Corporation: News Online');

	title = 'Tiger Moves Closer To Australian Take-Off';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Tiger Moves Closer To Australian Take-Off',
		'The Singarpore-owned Tiger Airways will move a step closer to entering Australia\'s domestic aviation market today, with the arrival of its first jet.',
		'Tiger Moves Closer To Australian Take-Off',
		'',
		'&iuml;&iquest;&frac12; 2006 Australian Broadcasting Corporation. All rights reserved.',
		'Sunday, September 16, 2007',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'abc_au_2007_09_15_eng-abc_au_eng-abc_au_195015_81455096647866415',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-09-05T12:27:53');
	publicationMetadata = new MakePublicationMetadata('Richmond Times-Dispatch');

	title = 'Airlines Get Better And Worse ; Fewer Delays Posted Than Month Before; More Than Year Ago';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Airlines Get Better And Worse ; Fewer Delays Posted Than Month Before; More Than Year Ago',
		'The nation\'s largest airlines had better on-time performance in July than in June, according to the U.S. Department of Transportation.',
		'Airlines Get Better And Worse ; Fewer Delays Posted Than Month Before; More Than Year Ago',
		'Peter Bacque Times-Dispatch Staff',
		'(C) 2007 Richmond Times-Dispatch. via ProQuest Information and Learning Company; All Rights Reserved',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'bhsuper_2007_09_11_RCHD_0000-3960-KEYWORD.Missing',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-09-11T12:23:36');
	publicationMetadata = new MakePublicationMetadata('The Independent - London');

	title = 'Ryanair Appeals Over Bid For Rival';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Ryanair Appeals Over Bid For Rival',
		'--Ryanair confirmed it has lodged an appeal with the European Court of First Instance against a decision by the EU to block its bid for the airline Aer Lingus. Europe\'s biggest low-cost carrier claims the EU\'s opposition to the bid was unlawful. The Commission...',
		'Ryanair Appeals Over Bid For Rival',
		'',
		'(C) 2007 The Independent - London. via ProQuest Information and Learning Company; All Rights Reserved',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'bhsuper_2007_09_11_INDT_0000-1857-KEYWORD.Missing',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-09-11T12:23:35');
	publicationMetadata = new MakePublicationMetadata('The Independent - London');

	title = 'Unmanned Flight Record Smashed';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Unmanned Flight Record Smashed',
		'--An ultra-lightweight solar-powered aircraft has smashed the world record for the longest unmanned flight, QinetiQ, the UK-based defence firm which developed it, said. It claims the Zephyr High Altitude Long Endurance Unmanned Aerial Vehicle flew for...',
		'Unmanned Flight Record Smashed',
		'',
		'(C) 2007 The Independent - London. via ProQuest Information and Learning Company; All Rights Reserved',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'bhsuper_2007_09_11_INDT_0000-1845-KEYWORD.Missing',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-09-10T17:52:25');
	publicationMetadata = new MakePublicationMetadata('Associated Press');

	title = 'Southwest Airlines Says 7 Percent Of Employees Take Buyout Offer';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Southwest Airlines Says 7 Percent Of Employees Take Buyout Offer',
		'DALLAS - Southwest Airlines Co. said Monday that 609 employees accepted buyouts to leave the company - just 7 percent of the 8,500 eligible workers.',
		'Southwest Airlines Says 7 Percent Of Employees Take Buyout Offer',
		'',
		'Copyright 2007 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_2007_09_10_ap.worldstream.english_D8RISM681_news_ap_org.anpa',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-09-07T06:31:02');
	publicationMetadata = new MakePublicationMetadata('Associated Press');

	title = 'Passenger Traffic Rises Nearly 18 Percent In August At Easyjet';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Passenger Traffic Rises Nearly 18 Percent In August At Easyjet',
		'LONDON - Discount airline easyJet PLC said Friday that passenger numbers rose almost 18 percent in August as the summer holiday season boosted demand for seats.',
		'Passenger Traffic Rises Nearly 18 Percent In August At Easyjet',
		'',
		'Copyright 2007 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_2007_09_07_ap.worldstream.english_D8RGJDPG0_news_ap_org.anpa',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-09-07T04:00:12');
	publicationMetadata = new MakePublicationMetadata('The Atlanta Journal-Constitution');

	title = 'Future Of Flight?';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Future Of Flight?',
		'Los Angeles --- It has taken wing a half-dozen times now, like a white manta ray streaking over the dusty Mojave Desert northeast of here.',
		'Future Of Flight?',
		'BOB KEEFE',
		'Copyright 2007 The Atlanta Journal-Constitution',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'ajc_2007_09_07_G_78737915-0089-Main',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-09-06T22:30:00');
	publicationMetadata = new MakePublicationMetadata('Xinhua Economic News');

	title = 'China Southern Airlines Orders 55 Boeing 737s';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'China Southern Airlines Orders 55 Boeing 737s',
		'WASHINGTON, Sept 6, 2007 (Xinhua via COMTEX) -- Boeing and China Southern Airlines announced on Thursday the carrier has ordered 55 additional Next- Generation 737-700s and 737-800s for its expandingfleet.',
		'China Southern Airlines Orders 55 Boeing 737s',
		'',
		'Copyright 2007 Xinhua News Agency.',
		'WASHINGTON, Sept 6, 2007 (Xinhua via COMTEX)',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_2007_09_06_xe_0000-5288-china-boeing',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-09-03T08:30:07');
	publicationMetadata = new MakePublicationMetadata('Associated Press');

	title = 'Iran Turns To Russia To Replace Aging Airliners';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Iran Turns To Russia To Replace Aging Airliners',
		'TEHRAN, Iran - Iran has increasingly turned to Russia to replace its aging U.S. and European-made airliners, a response to U.S. sanctions that affect the country\'s aviation industry, the official IRNA news agency reported Monday.',
		'Iran Turns To Russia To Replace Aging Airliners',
		'By ALI AKBAR DAREINI (Associated Press Writer)',
		'Copyright 2007 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_2007_09_03_ap.worldstream.english_D8RE0PJ83_news_ap_org.anpa',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-09-02T21:15:00');
	publicationMetadata = new MakePublicationMetadata('Xinhua Economic News');

	title = 'Xiamen Airlines, Boeing Confirm 25 Planes Order';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Xiamen Airlines, Boeing Confirm 25 Planes Order',
		'BEIJING, Sept 3, 2007 (Xinhua via COMTEX) -- Xiamen Airlines has ordered 25 Next- Generation 737-800s airplanes from the U.S.-based Boeing Co., according to the Chinese company.',
		'Xiamen Airlines, Boeing Confirm 25 Planes Order',
		'',
		'Copyright 2007 Xinhua News Agency. ********************************************************************** As of Wednesday, 08-29-2007 23:59, The Latest Comtex SmarTrend&reg; Alert, An Automated Pattern Recognition System, Indicated a Downtrend on 08-09-2007 for BA @ $100.23. For More Information on SmarTrend, Contact Your Market Data Provider Or Go to Www.mysmartrend.com SmarTrend Is a Registered Trademark of Comtex News Network, Inc. Copyright &copy; 2004-2007 Comtex News Network, Inc. All Rights Reserved.',
		'BEIJING, Sept 3, 2007 (Xinhua via COMTEX)',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_2007_09_02_xe_0000-0488-china-airlines',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-09-01T17:25:02');
	publicationMetadata = new MakePublicationMetadata('The Seattle Times');

	title = 'Boeing May Acknowledge Further 787 Delays Next Week';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Boeing May Acknowledge Further 787 Delays Next Week',
		'SEATTLE - Boeing is expected to announce Wednesday a further delay in the first flight of its 787 Dreamliner jet - one that could push that milestone into late October or beyond, according to a person close to the program.',
		'Boeing May Acknowledge Further 787 Delays Next Week',
		'Dominic Gates',
		'(c) 2007, The Seattle Times. Distributed by Mclatchy-Tribune News Service.',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'krt_2007_09_01_knihj_0030-0038-BOEING.SE',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-09-01T16:18:01');
	publicationMetadata = new MakePublicationMetadata('Birmingham Post');

	title = 'Rolls-Royce Says Tiger Airways Deal Is Worth Pounds 200m ; Aerospace';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Rolls-Royce Says Tiger Airways Deal Is Worth Pounds 200m ; Aerospace',
		'Rolls-Royce said yesterday it had won business worth up to pounds 200 million as its share of an order for V2500 engines and aftermarket services from Singapore\'s Tiger Airways.',
		'Rolls-Royce Says Tiger Airways Deal Is Worth Pounds 200m ; Aerospace',
		'',
		'(C) 2007 Birmingham Post. via ProQuest Information and Learning Company; All Rights Reserved',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'bhsuper_2007_09_01_BMPM_0000-2608-KEYWORD.Missing',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-08-28T18:07:33');
	publicationMetadata = new MakePublicationMetadata('Daily Mail');

	title = 'Airlines Will Scrap Paper Tickets Next Year';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Airlines Will Scrap Paper Tickets Next Year',
		'AIRLINES across the world will abandon paper tickets from next summer, it was announced yesterday.',
		'Airlines Will Scrap Paper Tickets Next Year',
		'',
		'(C) 2007 Daily Mail. via ProQuest Information and Learning Company; All Rights Reserved',
		'',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'bhsuper_2007_08_28_TDMA_0000-7211-KEYWORD.Missing',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-08-28T08:48:55');
	publicationMetadata = new MakePublicationMetadata('Associated Press');

	title = 'India Invites Fighter Jet Bid From Sweden\'s Saab Ab';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'India Invites Fighter Jet Bid From Sweden\'s Saab Ab',
		'STOCKHOLM, Sweden - Sweden\'s Saab AB, which makes the Gripen fighter jet, said Tuesday it had received a formal invitation to enter the bidding contest to supply 126 new combat planes to India.',
		'India Invites Fighter Jet Bid From Sweden\'s Saab Ab',
		'',
		'Copyright 2004 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(
		'asiawire_2007_08_28_ap.world.english.asian_D8RA2GDG1_news_ap_org.anpa',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-08-27T21:15:00');
	publicationMetadata = new MakePublicationMetadata('Xinhua Financial News');

	title = 'Lockheed, Boeing Vie For Satellite Deal';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Lockheed, Boeing Vie For Satellite Deal',
		'WASHINGTON, Aug 28, 2007 (AP via COMTEX) -- Lockheed Martin Corp. and Boeing Co. are rival bidders for the first phase of a military contract worth up to $2 billion to build a next-generation global satellite system, the companies said Monday.',
		'Lockheed, Boeing Vie For Satellite Deal',
		'',
		'(C) 2007 Xinhua Financial News. All Rights Reserved',
		'WASHINGTON, Aug 28, 2007 (AP via COMTEX)',
		'',
		''
		);

	article = new MakeArticle(title, metadata, core, '');

	contents[++Index] = new MakeContent(
		'comtex_2007_08_27_xn_0000-7333-.dsthightech_02',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	documentMetadata = new MakeDocumentMetadata('internal', '2007-08-27T22:42:57');
	publicationMetadata = new MakePublicationMetadata('Associated Press');

	title = 'Reports: China Eastern To Sell Stake To Singapore Airlines; Deal Set For Sunday';
	metadata = new MakeMetadata(documentMetadata, publicationMetadata, '', '', '', '');

	core = new MakeCore(
		'Reports: China Eastern To Sell Stake To Singapore Airlines; Deal Set For Sunday',
		'SHANGHAI, China - China Eastern may announce an agreement Sunday to sell a stake to Singapore Airlines, a deal that would bring welcome cash for the financially troubled Shanghai-based carrier, media reports said Tuesday.',
		'Reports: China Eastern To Sell Stake To Singapore Airlines; Deal Set For Sunday',
		'By ELAINE KURTENBACH (AP Business Writer)',
		'Copyright 2004 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(
		'asiawire_2007_08_27_ap.world.english.asian_D8R9PKB81_news_ap_org.anpa',
		'01190587364515',
		'article',
		'en-US',
		'',
		article
		);

		
	

//////////////////////// End PER ARTICLE section

	contentSetId = 'DT1402_Aeroworld';
	contentSetName = 'Aeroworld';
	contentSetLanguage = '';
	contentSetPublishedDate = '2007-09-23T17:42:49';

	id = 'DT1402_Aeroworld';
	contentType = '';

} // End data initialization block.

if (typeof ContentIndex == "undefined") {
	ContentIndex = -1;
}

SMContentSet[++ContentIndex] = new MakeContentSet(contentSetId, contentSetName, contentSetLanguage, contentSetPublishedDate, contents);

