

/*
SMMiLe JavaScript Object Model
Version 2.0
By Daryl Beattie, Xiang Chen
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, photo)
        |
        |--metadata(documentMetadata, publicationMetadata, structuralMetadata, subjectMetadata, relatedContentMetadata, processingMetadata)
        |    |--documentMetadata(storage, publisherReleaseDate,player-url)
        |    |--publicationMetadata(publicationName)
        |    |--structuralMetadata(width,height,format,resolution,duration,mimetype)
        |    |--subjectMetadata(featureName)
		|	 |--relatedContentMetadata(relatedContents)
	    |    |    |--relatedContents[type](id, type, refId, refType);
        |    |--processingMetadata()
        |
        |--core(summaryHeadline, docAbstract, headline, author, copyright, dateLine, dateTime, type, caption)
        |-- photo(url, width, height, alt, caption)

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, contentSetNum, targetWindowName) {
    // check the arguments...
    if (displayContentPage.arguments.length == 1 ) {
        contentNum=0;
        contentSetNum=0;
        targetWindowName="_self";
    } else if (displayContentPage.arguments.length == 2 ) {
        contentSetNum=0;
        targetWindowName="_self";
    } else if (displayContentPage.arguments.length == 3 ) {
        targetWindowName="_self";
    }

    window.open(url + "?SMDOCID=" + SMContentSet[contentSetNum].contents[contentNum].id + "&SMContentSet=" + contentSetNum, targetWindowName);
}

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);
        }
    }
    return value;
}

var SMChosenContent = Number(getParamValue("SMContentIndex=", 0));
var SMChosenContentSet = Number(getParamValue("SMContentSet=", 0));
var SMChosenSegment = getParamValue("SMSegment=", "original");
var SMDOCID = getParamValue("SMDOCID=", "");

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, myPlayerUrl) {
    this.storage = myStorage;
    this.publisherReleaseDate = myPublisherReleaseDate;
    this.playerUrl = myPlayerUrl;
}
function MakePublicationMetadata(myPublicationName) {
    this.publicationName = myPublicationName;
}

function MakeStructuralMetadata(myWidth,myHeight,myFormat,myResolution,myDuration,myMimeType) {
    this.width = myWidth;
    this.height= myHeight;
    this.format = myFormat;
    this.resolution = myResolution;
    this.duration = myDuration;
    this.mimetype = myMimeType;
}
function MakeSubjectMetadata(myFeatureName) { 
    this.featureName = myFeatureName;
}

function MakeRelatedContentMetadata(myRelatedContents) {
    this.relatedContents = myRelatedContents;
}

function MakeRelatedContent(myId, myType, myRefId, myRefType) {
    this.id=myId;
    this.type=myType;
    this.refId=myRefId;
    this.refType=myRefType;
}

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, myCaption) {
    this.summaryHeadline = mySummaryHeadline;
    this.docAbstract = myAbstract;
    this.headline = myHeadline;
    this.author = myAuthor;
    this.copyright = myCopyright;
    this.dateLine = myDateLine;
    this.dateTime = myDateTime;
    this.type = myType;
    this.caption = myCaption;
}

function MakePhoto (myURL,myWidth,myHeight,myAlt,myCaption) {
    this.url = myURL;
    this.width = myWidth;
    this.height = myHeight;
    this.alt = myAlt;
    this.caption = myCaption;
}

// Article element object
function MakeArticle(myTitle, myMetadata, myCore, myBody, myPhoto) {
    this.title = myTitle;
    this.metadata = myMetadata;
    this.core = myCore;
    this.body = myBody;
    this.photo = myPhoto;
}

//Segment element object
function MakeSegment (myId,myType,myIndex,myMetadata) {
    this.id = myId;
    this.type = myType;
    this.Index = myIndex;
    this.metadata = myMetadata;
}

// 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();

documentMetadata = new MakeDocumentMetadata('internal', '2009-06-25T01:30:00','');
publicationMetadata = new MakePublicationMetadata('PR Newswire');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'ARCADIS Sets Merger With Malcolm Pirnie',
'AMSTERDAM, June 25, 2009 /PRNewswire-FirstCall via COMTEX/ -- ARCADIS (EURONEXT: ARCAD), the international consultancy, design, engineering and management services company, announced today that it has signed a merger agreement to acquire 100% of the shares...',
'ARCADIS Sets Merger With Malcolm Pirnie',
'',
'Copyright (C) 2009 PR Newswire. All Rights Reserved',
'AMSTERDAM, June 25, 2009 /PRNewswire',
'',
'pr',
'');

title = 'ARCADIS Sets Merger With Malcolm Pirnie';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('comtex_2009_06_25_pr_0000-3587-arcadis-nv', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-25T03:00:03','');
publicationMetadata = new MakePublicationMetadata('The Atlanta Journal-Constitution');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'OpEd: Time for Atlanta to Lay New Tracks',
'Every morning on the way to work, I drive by the Amtrak Station at the corner of Peachtree Street and Deering Road. The small station sits on a spit of land adjacent to the rail line. Taxis vie to park on the limited sidewalk space. I watch passengers...',
'OpEd: Time for Atlanta to Lay New Tracks',
'Lee A. Kolber',
'Copyright 2009 The Atlanta Journal-Constitution',
'',
'',
'',
'');

title = 'OpEd: Time for Atlanta to Lay New Tracks';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('ajc_2009_06_25_A_101835341-0022-Main', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-25T00:00:00','');
publicationMetadata = new MakePublicationMetadata('The Philadelphia Inquirer');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'N.J. Lawmakers to Vote on Stimulus Bill',
'Jun. 25--While many New Jerseyans are bracing for the pinch of a tight state budget, lawmakers are expected to approve an economic-stimulus bill that would give developers significant tax breaks.',
'N.J. Lawmakers to Vote on Stimulus Bill',
'Adrienne Lu',
'',
'20090625',
'',
'',
'');

title = 'N.J. Lawmakers to Vote on Stimulus Bill';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_25__0000-2514-PH-N-J-lawmakers-to-vote-on-stimulus-bill-0625', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-24T17:18:15','');
publicationMetadata = new MakePublicationMetadata('Associated Press');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Land Deal Reworked for Atlantic Yards Arena',
'NEW YORK - The New York developer trying to bring the New Jersey Nets to Brooklyn has gotten approval for a land deal he said was necessary to keep the project on track.',
'Land Deal Reworked for Atlantic Yards Arena',
'',
'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
'',
'',
'',
'');

title = 'Land Deal Reworked for Atlantic Yards Arena';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('apdigital_2009_06_24_ap_online_sports_basketball_news_D991AC904_news_ap_org_anpa', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-24T16:42:18','');
publicationMetadata = new MakePublicationMetadata('Associated Press');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Slow Progress for Minn. Bridge Memorial',
'MINNEAPOLIS - Nearly two years after the Interstate 35W bridge crumbled, a proposed memorial to the 13 people killed in the collapse has barely moved from the drawing board.',
'Slow Progress for Minn. Bridge Memorial',
'By BRIAN BAKST (Associated Press Writer)',
'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
'',
'',
'',
'');

title = 'Slow Progress for Minn. Bridge Memorial';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('apdigital_2009_06_24_ap_online_regional_us_D9919RE00_news_ap_org_anpa', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-23T00:00:00','');
publicationMetadata = new MakePublicationMetadata('The Florida Times-Union, Jacksonville');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Fla. Power Plant $205M Upgrade Moves Forward',
'Jun. 23--The recession pushed back building plans for the Greenland Energy Center, but now the Jacksonville power project is moving forward with a cheaper price tag.',
'Fla. Power Plant $205M Upgrade Moves Forward',
'David Hunt',
'',
'20090623',
'',
'',
'');

title = 'Fla. Power Plant $205M Upgrade Moves Forward';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_23__0000-3183-JK-JEA-power-plant-project-moves-forward-0623', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-24T00:00:00','');
publicationMetadata = new MakePublicationMetadata('The Seattle Times');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Second Brightwater Tunnel-borer Breaks Down',
'Jun. 24--A second tunnel-boring machine for the Brightwater sewage-treatment plant has broken down, causing the layoff of 67 workers, King County officials said Tuesday.',
'Second Brightwater Tunnel-borer Breaks Down',
'Keith Ervin, Seattle Times',
'',
'20090624',
'',
'',
'');

title = 'Second Brightwater Tunnel-borer Breaks Down';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_24__0000-4958-SE-2nd-Brightwater-tunnel-borer-breaks-down-idling-67-workers-0624', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-24T00:00:00','');
publicationMetadata = new MakePublicationMetadata('Knight Ridder Washington Bureau');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Feds Issue First Exploratory Leases for Offshore Wind',
'Jun. 24--WASHINGTON -- The federal government on Tuesday issued its first exploratory leases for wind energy projects on the Outer Continental Shelf, the first step of what could be a race to harness the powerful Atlantic winds not far from major population...',
'Feds Issue First Exploratory Leases for Offshore Wind',
'Renee Schoof, McClatchy Newspapers',
'',
'20090624',
'',
'',
'');

title = 'Feds Issue First Exploratory Leases for Offshore Wind';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_24__0000-4786-WA-WIND-ENERGY-OFFSHORE-20090624', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-24T17:05:00','');
publicationMetadata = new MakePublicationMetadata('United Press International');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Man Takes City Asphalt Roller on Joyride',
'BOULDER, Colo., Jun 24, 2009 (UPI via COMTEX) -- Authorities in Boulder, Colo., said a man took a city asphalt roller for a joyride before crashing into a parked van and running off into the night.',
'Man Takes City Asphalt Roller on Joyride',
'',
'Copyright 2009 by United Press International',
'BOULDER, Colo., Jun 24, 2009 (UPI via COMTEX)',
'',
'',
'');

title = 'Man Takes City Asphalt Roller on Joyride';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('comtex_2009_06_24_up_0000-2079-_dstcommunity_05', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-24T16:05:30','');
publicationMetadata = new MakePublicationMetadata('Associated Press');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Sears Tower To Get $350M Green Upgrade',
'CHICAGO - Wind turbines, roof gardens and solar panels will join the pair of antennas atop the Sears Tower\'s staggered rooftops, said building officials who announced Wednesday that the skyscraper would undergo a $350 million green renovation.',
'Sears Tower To Get $350M Green Upgrade',
'By CARYN ROUSSEAU (Associated Press Writer)',
'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
'',
'',
'',
'');

title = 'Sears Tower To Get $350M Green Upgrade';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('apdigital_2009_06_24_ap_online_regional_us_D9919A5G0_news_ap_org_anpa', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-23T00:00:00','');
publicationMetadata = new MakePublicationMetadata('The Dallas Morning News');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Construction Worker Killed By Truck in Dallas',
'Jun. 23--A construction worker in The Colony was killed earlier today when he was run over and dragged by a truck he was repairing.',
'Construction Worker Killed By Truck in Dallas',
'',
'',
'20090623',
'',
'',
'');

title = 'Construction Worker Killed By Truck in Dallas';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_23__0000-4372-DA-BRF-Construction-worker-from-The-Colony-run-over-killed-by-truck-he-was-repairing-0623', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-23T16:40:43','');
publicationMetadata = new MakePublicationMetadata('Associated Press');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'GAO: Gov\'t Lacks High-Speed Rail Plan',
'WASHINGTON - The U.S. agency in charge of $8 billion in stimulus money for high-speed rail projects doesn\'t have an adequate plan to oversee the projects, and the system of super-fast trains ultimately will cost much more than even the $8 billion, a government...',
'GAO: Gov\'t Lacks High-Speed Rail Plan',
'By KIMBERLY HEFLING (Associated Press Writer)',
'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
'',
'',
'',
'');

title = 'GAO: Gov\'t Lacks High-Speed Rail Plan';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('apdigital_2009_06_23_ap_online_gov_congress_D990KNM02_news_ap_org_anpa', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-23T15:17:21','');
publicationMetadata = new MakePublicationMetadata('Associated Press');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Where Are the Renewable Energy Jobs?',
'Everywhere you turn there is talk of a shift to renewable energy, of building wind farms and solar plants, of making buildings more efficient, of developing biofuels. And of billions in federal funding to help make it all happen.',
'Where Are the Renewable Energy Jobs?',
'By SANDY SHORE (AP Energy Writer)',
'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
'',
'',
'',
'');

title = 'Where Are the Renewable Energy Jobs?';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('ap_2009_06_23_ap_ds_dsf_all_D990JGJG1_news_ap_org_anpa', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-23T00:00:00','');
publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'REX Pipeline Project Enters Restoration Phase',
'Jun. 23--DANVILLE -- Officials for the Rockies Express Pipeline (REX) are deep in restoring the land they have disturbed for the 1,679-mile cross-country project.',
'REX Pipeline Project Enters Restoration Phase',
'Brenda L. Holmes, Hendricks County Flyer, Avon, Ind.',
'',
'20090623',
'',
'',
'');

title = 'REX Pipeline Project Enters Restoration Phase';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_23__0000-4449-FX-REX-enters-restoration-phase-0623', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-20T00:00:00','');
publicationMetadata = new MakePublicationMetadata('The Journal-News, Hamilton, Ohio');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Ohio EPA: City Has 5 Yrs To Fix Sewage Issue',
'Jun. 20--HAMILTON -- Protecting the Great Miami River watershed is important to Ron Nelson, an avid fisherman who calls himself a "passionate stakeholder" in the natural resource.',
'Ohio EPA: City Has 5 Yrs To Fix Sewage Issue',
'Richard Wilson, Hamilton JournalNews, Ohio',
'',
'20090623',
'',
'',
'');

title = 'Ohio EPA: City Has 5 Yrs To Fix Sewage Issue';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_20__0000-4300-HL-EPA-SEWAGE-OVERFLOW-20090620', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-23T19:22:14','');
publicationMetadata = new MakePublicationMetadata('Associated Press');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'EPA Plan Targets Vast DDT Deposit Off Coast',
'LOS ANGELES - A plan to cap a vast, long-neglected deposit of the pesticide DDT on the ocean floor off Southern California got its first public airing Tuesday - nearly four decades after the poison was banned from use.',
'EPA Plan Targets Vast DDT Deposit Off Coast',
'By NOAKI SCHWARTZ (Associated Press Writer)',
'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
'',
'',
'',
'');

title = 'EPA Plan Targets Vast DDT Deposit Off Coast';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('ap_2009_06_23_ap_worldstream_english_D990N3D02_news_ap_org_anpa', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-22T00:00:00','');
publicationMetadata = new MakePublicationMetadata('Detroit Free Press');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'During Demo, Tiger Stadium Deck Collapses',
'A landmark of the west side skyline since before WWII, the upper deck collapsed suddenly about 2:30 p.m. today as demolition continued on the old ballpark.',
'During Demo, Tiger Stadium Deck Collapses',
'Bill Mcgraw',
'',
'20090622',
'',
'',
'');

title = 'During Demo, Tiger Stadium Deck Collapses';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_22__0000-3600-DE-BRF-Tiger-Stadium-upper-deck-collapses-0622', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-22T00:00:00','');
publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'N.Y., Vt. Agree To Crown Point Bridge Project',
'Jun. 22--CROWN POINT -- New York state and Vermont announced Monday that they have finalized a bi-state agreement to replace or repair the Champlain Bridge between Crown Point and Chimney Point, Vt.',
'N.Y., Vt. Agree To Crown Point Bridge Project',
'Lohr McKinstry, The Press-Republican, Plattsburgh, N.Y.',
'',
'20090622',
'',
'',
'');

title = 'N.Y., Vt. Agree To Crown Point Bridge Project';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_22__0000-3566-ZI-NY-Vt-agree-to-Crown-Point-bridge-project-0622', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-22T00:00:00','');
publicationMetadata = new MakePublicationMetadata('The Miami Herald');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Recession Crimps Miami Suburb Projects',
'Jun. 22--Behind the Pembroke Pines City Hall stretch 80 acres of finished streets with brick-paved sidewalks, old-fashioned streetlights, landscaped medians -- and even a clock tower.',
'Recession Crimps Miami Suburb Projects',
'Scott Andron',
'',
'20090622',
'',
'',
'');

title = 'Recession Crimps Miami Suburb Projects';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_22__0000-1402-MI-HLT-Recession-crimps-some-town-center-projects-0622', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-22T00:00:00','');
publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Fla. County To Spend $200M Improving Roads',
'Jun. 22--Osceola County will spend more than $200 million to improve roads starting this summer in the hope of stimulating the county\'s economy.',
'Fla. County To Spend $200M Improving Roads',
'Jeannette Rivera-Lyles, The Orlando Sentinel, Fla.',
'',
'20090622',
'',
'',
'');

title = 'Fla. County To Spend $200M Improving Roads';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_22__0000-3981-OS-Osceola-will-spend-200-million-improving-roads-0622', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-22T16:50:26','');
publicationMetadata = new MakePublicationMetadata('Associated Press');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Work Begins on World\'s Deepest Underground Lab',
'SIOUX FALLS, S.D. - Far below the Black Hills of South Dakota, crews are building the world\'s deepest underground science lab at a depth equivalent to more than six Empire State buildings - a place uniquely suited to scientists\' quest for mysterious particles...',
'Work Begins on World\'s Deepest Underground Lab',
'By DIRK LAMMERS (Associated Press Writer)',
'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
'',
'',
'',
'');

title = 'Work Begins on World\'s Deepest Underground Lab';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('apdigital_2009_06_22_ap_online_science_D98VVP8G1_news_ap_org_anpa', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-22T00:00:00','');
publicationMetadata = new MakePublicationMetadata('Tulsa World, Okla.');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Okla. DOT Awards $382M in Stimulus Contracts',
'Jun. 22--Those vacationing in Oklahoma this summer will likely cross paths with orange cones and caution signs.',
'Okla. DOT Awards $382M in Stimulus Contracts',
'Gavin Off',
'',
'20090622',
'',
'',
'');

title = 'Okla. DOT Awards $382M in Stimulus Contracts';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_22__0000-3723-TU-BRF-382-million-awarded-for-state-construction-contracts-0622', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-21T00:00:00','');
publicationMetadata = new MakePublicationMetadata('Knight Ridder/Tribune Business News');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Demo Contractor Drops 100-yr-old Minneapolis Bridge',
'Jun. 21--Broken into 30 sections by 198 pounds of explosives, the Lowry Bridge Sunday dropped into the Mississippi River severing a connection between north and northeast Minneapolis that had held since 1905.',
'Demo Contractor Drops 100-yr-old Minneapolis Bridge',
'Laurie Blake, Star Tribune, Minneapolis',
'',
'20090621',
'',
'',
'');

title = 'Demo Contractor Drops 100-yr-old Minneapolis Bridge';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_21__0000-3242-MS-Explosives-and-gravity-bring-down-bridge-0621', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-21T14:37:14','');
publicationMetadata = new MakePublicationMetadata('Associated Press');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'TVA Ash Spill Cleanup Drags On, Could Cost $1 Bil.',
'HARRIMAN, Tenn. - Glen Daugherty watches from his wooden dock, just beyond his prized pontoon boat, as a floating dredging machine growls from across the channel of the Emory River.',
'TVA Ash Spill Cleanup Drags On, Could Cost $1 Bil.',
'By DUNCAN MANSFIELD (Associated Press Writer)',
'Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.',
'',
'',
'',
'');

title = 'TVA Ash Spill Cleanup Drags On, Could Cost $1 Bil.';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('apdigital_2009_06_21_ap_online_biz_general_D98V8NQ00_news_ap_org_anpa', '01245950120078', 'article', 'en-US',    '', article);



documentMetadata = new MakeDocumentMetadata('internal', '2009-06-19T00:00:00','');
publicationMetadata = new MakePublicationMetadata('San Jose Mercury News, Calif.');


structuralMetadata = new MakeStructuralMetadata(0,0,'','','','');
subjectMetadata = new MakeSubjectMetadata('');
var relatedContents = new Array();

relatedContentMetadata = new MakeRelatedContentMetadata(relatedContents);
processingMetadata = new MakeProcessingMetadata();
metadata = new MakeMetadata(
documentMetadata,
publicationMetadata,
structuralMetadata,
subjectMetadata,
relatedContentMetadata,
processingMetadata);
core = new MakeCore(
'Construction Unemployment Pushes Silicon Valley into \'Freefall\'',
'Jun. 19--With more than 100,000 people looking for work in May, Silicon Valley\'s recession-gripped economy recorded the highest unemployment rate on record -- 11.2 percent.',
'Construction Unemployment Pushes Silicon Valley into \'Freefall\'',
'Pete Carey',
'',
'20090620',
'',
'',
'');

title = 'Construction Unemployment Pushes Silicon Valley into \'Freefall\'';

article = new MakeArticle(title, metadata, core, '','');




contents[++Index] = new MakeContent('knightridder_2009_06_19__0000-1947-SJ-Silicon-Valley-unemployment-rate-climbs-to-record-11_2-percent-0619', '01245950120078', 'article', 'en-US',    '', article);






contentSetId = '2409_BizLabor';
contentSetName = 'BizLabor';
contentSetLanguage = '';
contentSetPublishedDate = '2009-06-25T13:15:27';
id = '2409_BizLabor';
contentType = '';
} // End data initialization block.
if (typeof ContentIndex == "undefined") {
ContentIndex = -1;
}
SMContentSet[++ContentIndex] = new MakeContentSet(contentSetId, contentSetName, contentSetLanguage, contentSetPublishedDate, contents);
