/*	Insights & Ideas - Top Articles*/var insigtsTopDocsAjaxReq;var insigtsTopDocs = '';var insigtsTopTotal = 0;var topArticlesUNID = new Array();var insightsHTML = '';function showinsigtsTopDocuments() {	var url = 'LUIPInsightsTop?ReadViewEntries&start=' + '1' + '&count=' + '4' + '&restricttocategory=' + IndustrySectorUNID + '&outputformat=JSON' + '&ms='+ new Date().getTime();	insigtsTopDocsAjaxReq = createAJAXRequest(url, insigtsTopDocsResponseFunction);	insigtsTopDocsAjaxReq.send(null);	}function insigtsTopDocsResponseFunction() {	if (insigtsTopDocsAjaxReq.readyState === 4){		if (insigtsTopDocsAjaxReq.status === 200) {			eval("insigtsTopDocs = " + insigtsTopDocsAjaxReq.responseText );			outputinsigtsTopDocuments();		} else {			// returned other than complete			alert("AJAX failed with error: \n" + insigtsTopDocsAjaxReq.status + " - " + insigtsTopDocsAjaxReq.statusText);		}	}	}function outputinsigtsTopDocuments() {	if (typeof insigtsTopDocs != "object") {		alert("data not loaded [" + typeof insigtsTopDocs + "]")		return;	}		insigtsTopTotal = parseInt(insigtsTopDocs['@toplevelentries']);		var html = '';	if (typeof insigtsTopDocs.viewentry != "undefined") {		for (var i = 0; i < insigtsTopDocs.viewentry.length; i++) {			html += getViewColData (insigtsTopDocs.viewentry[i], "$40");			topArticlesUNID[i] = getViewColData (insigtsTopDocs.viewentry[i], "UNID");		}		} else {		insigtsTopTotal = 0;	}		insightsHTML = html;		if (insigtsTopTotal < 4) {		showinsigtsIdeasDocuments();	} else {		var tArea = document.getElementById("InsightsIdeasOutput");		tArea.innerHTML = html;		}}/*	Insights & Ideas - Remaining Articles (if there are no top articles or the number of top articles < 4)*/var insigtsIdeasDocsAjaxReq;var insigtsIdeasDocs = '';var insigtsIdeasStart = 1;var insigtsIdeasTotal = 0;function showinsigtsIdeasDocuments() {	var url = 'LUIPInsightsIdeas?ReadViewEntries&start=' + '1' + '&count=' + '4' + '&restricttocategory=' + qsIndustrySector + '&outputformat=JSON';	insigtsIdeasDocsAjaxReq = createAJAXRequest(url, insigtsIdeasDocsResponseFunction);	insigtsIdeasDocsAjaxReq.send(null);	}function insigtsIdeasDocsResponseFunction() {	if (insigtsIdeasDocsAjaxReq.readyState === 4){		if (insigtsIdeasDocsAjaxReq.status === 200) {			eval("insigtsIdeasDocs = " + insigtsIdeasDocsAjaxReq.responseText );			outputinsigtsIdeasDocuments();		} else {			// returned other than complete			alert("AJAX failed with error: \n" + insigtsIdeasDocsAjaxReq.status + " - " + insigtsIdeasDocsAjaxReq.statusText);		}	}	}function outputinsigtsIdeasDocuments() {	if (typeof insigtsIdeasDocs != "object") {		alert("data not loaded [" + typeof insigtsIdeasDocs + "]")		return;	}		insigtsIdeasTotal = parseInt(insigtsIdeasDocs['@toplevelentries']);		var html = '';	var k = 0;	if (typeof insigtsIdeasDocs.viewentry != "undefined") {		for (var i = 0; i < insigtsIdeasDocs.viewentry.length; i++) {			// check if UNID already used in Top Articles			var unid = getViewColData (insigtsIdeasDocs.viewentry[i], "UNID");			if (!topArticlesUNID.find(unid)) {				html += getViewColData (insigtsIdeasDocs.viewentry[i], "$40");				k++;								if ((insigtsTopTotal + k) >= 4)					break;			}		}		}		var tArea = document.getElementById("InsightsIdeasOutput");	tArea.innerHTML = insightsHTML + html;				}