// This Array holds the page taxonomy and channel
// The first column is the key which is used in pages to fetch the taxonomy and channel
var pageValues = [["honeywell","HON:","Home"]];

// Site base list
var baseSiteList = [["honeywell","HON:"]];


s.pageType="";


function generateKey(tempTitle) {
	var key=tempTitle.charAt(0);
	while(tempTitle.indexOf(" ")> -1) {
		var pos = tempTitle.indexOf(" ");
		key = key + tempTitle.charAt(pos+1);
		tempTitle = tempTitle.substring(pos+1,tempTitle.length);
	}
	return key;
}

function getFirstWords(titleString,count){
	var fwString = "";
	
	splitArray = titleString.split(" ");
	
	if(count > splitArray.length)
		count = splitArray.length;
		
	for(i=0;i<count;i++) {
		fwString = fwString + " " +splitArray[i];
	}
	return fwString;
}