var g_allArticles = new Array();
function newArticle(displayText_in, docUid_in, 
						url_in, 
						dateCreate_in, dateUpdated_in, 
						blurb_in) {
						
	var wld = new  _webLinkDocument(displayText_in, docUid_in, 
						url_in, 
						dateCreate_in, dateUpdated_in, 
						blurb_in);
						
	g_allArticles[g_allArticles.length] = wld;
	
		wld.sidebarLink = _articleItem_sidebarLink;
		wld.newsLink = _articleItem_articleLink;
	
	return wld;
}


// Special case
var article_notfound = _webLinkDocument(
		"Article Not Found", 
		"news_notfound", 
		"/news/notfound.html", 
		"01/01/2000", "04/20/2005", 
		""
		);

function fnAllArticles() {
	var arr = fnSortWebDocs(g_allArticles, -1);
	return arr;
}
function fnRecentArticles() {
	var arr = new Array();
	var arr = fnAllArticles();
	arr1 = fnSortWebDocs(arr, 5);
	return arr1;
}

function fnFeaturedArticles() {
	var arr = fnAllArticles();
	arr1 = fnSortWebDocs(arr, 5);
//	alert("returing : " + arr1.length);
	return arr1;
}


var art_byo = newArticle(
		"Build Your Own CRM", "art_byo", 
		"/articles/items/build_your_own_crm.html", 
		"08/18/2005", "08/18/2005", 
		"At SemaTre, we understand that the answer to the Build vs Buy decision is probably 'yes'. Most of our customers want to leverage their own best practices with a web solution born from custom improvement on an already existing system."
		+ "  This article explains our philosophy to helping you implement your own CRM solution."
		);
		
var art_crm_templ = newArticle(
		"SemaTree CRM Templates", "art_crm_templ", 
		"/articles/items/crm_templates.html", 
		"08/19/2005", "08/19/2005", 
		"Do you want your website to do more? Is your organization looking to leverage its website so that it can increase the value of "
		+ " each customer interaction while also reducing their cost? Read on ... "
		);
		
var art_crm_usecase = newArticle(
		"SemaTree Use Cases", "art_crm_usecase", 
		"/articles/items/use_cases.pdf", 
		"09/06/2005", "09/06/2005", 
		"This document describes ECS customer scenarios for the fictional ACME company. "
		);
		
var art_ecs_crm = newArticle(
		"SemaTree's ECS CRM", "art_ecs_crm", 
		"/articles/items/ecs_crm.html", 
		"06/06/2005", "06/06/2005", 
		"ECS CRM is an integrated  marketing, sales and customer service product enabling your organization to manage all of your customer's pre-sales and post-sales activity.  "
	 +  "This article provides a high-level overview of the ECS CRM product."
		);
		


//		alert("articles - ok");
		