







// default to home topic
var topicId = 2;
// default to Blink topic name
var topicName = 'Blink';
// tab level topics
var mainTopics = new Array('Buying','Facilities','Finance','People','Research','Safety','Technology','Travel');
// corresponding topic ids

	var mainTopids = new Array(5,6,4,3,412,7,8,365);
// obtain the topic ID if this is a topic page
var thisURL = new String(window.location);
if (thisURL.search('/Blink/External/Topics/0') != -1 || thisURL.search('/Blink/External/Topics/1') != -1 || thisURL.search('/Blink/Subtopic/Index/') != -1) {
	topicId = (((thisURL.split(','))[2]).split('~'))[0];
	for (i = 0; i < mainTopids.length; i++) if (parseInt(mainTopids[i]) == parseInt(topicId)) topicName = mainTopics[i];
}

// relocate the current window to the what's new page
function newArticles() {
	var whatsNewURL = '/Blink/External/Topics/recent/1,1519,t'+window.topicId+'sonlylive,00.html';
	window.location = whatsNewURL;
}

function newArticleStatus() {
	// alert(setStatus + ' : ' + window.topicName);
	setStatus('See what\'s new in ' + window.topicName + '.');
}

