// ----------------------------------------------------------------------------
if (typeof(__waa__) == "undefined") var __waa__ = [];
__waa__[__waa__.length] = 
new function(appInfo) {
var emburl = new URL(document.location.href);
var cgiurl = new URL("http://" + appInfo.server + appInfo.cgiPath);
var resurl = new URL("http://" + appInfo.server + "/cgi/NewsTicker/StringScroller.js");

cgiurl.setParameter("accountId", appInfo.accountId, true);
cgiurl.setParameter("uid", appInfo.internalId, true);
cgiurl.setParameter("cc", Math.random(), true);
// alert("msg aus newstickerinc.js:\n"+cgiurl.toString());
//alert(resurl.toString() );
// alert(cgiurl.toString() );

if (appInfo.proxyIncludes) {
	cgiurl = new URL(appInfo.proxyUrl + URL.jencode(cgiurl.toString()));
	resurl = new URL(appInfo.proxyUrl + URL.jencode(resurl.toString()));
}

window.showTicker = function (obj) {
	var msg = "+++ News +++ News +++";

	if (obj.msg)
		msg = jdecode(obj.msg);

	var tickerTextStoreElem = document.getElementById("tickerTextStore");
	var theText = tickerTextStoreElem.innerHTML;
	// quick fix to replace common entities
	theText = theText.replace(/&amp;/g, "&").replace(/&gt;/g, ">").replace(/&lt;/g, "<");
		
	g_stringScroller = new StringScroller(window, "scrollMe");
	g_stringScroller.setSpeed(15, 1);
	g_stringScroller.setString(theText); 
	g_stringScroller.start();
}

document.writeln("<SCRIPT src='" + resurl.toString() + "'></SCRIPT>");
document.writeln("<SCRIPT src='" + cgiurl.toString() + "'></SCRIPT>");





}({
    accountId       : "AUS030IN2DEI", 
    internalId      : "6166152", 
    customField     : "1501", 
    server          : "rcm8.perfora.net", 
    cgiPath         : "/cgi-bin/CMNewsTicker", 
    cgiRes          : "http://rcm8.perfora.net/cgi", 
    proxyIncludes   : false, 
    proxyUrl        : "", 
    pos             : __waa__.length
});
// ----------------------------------------------------------------------------

