var sid = 1;
var allcnt = 0;
function init()
{
call_listTitleNews();
setTimeout('call_listTitleEvents()',500);
setTimeout('call_showArticles()',1000);
setTimeout('call_getNumOfArticles()',1500);
}
function call_listTitleNews()
{
document.getElementById('newsDIV').innerHTML = '
';
agent.call('library/do.infocenter.php','do_listTitleNews','callback_listTitleNews');
}
function callback_listTitleNews(str)
{
document.getElementById('newsDIV').innerHTML = getStr(str);
}
function call_listTitleEvents()
{
document.getElementById('eventsDIV').innerHTML = '';
agent.call('library/do.infocenter.php','do_listTitleEvents','callback_listTitleEvents');
}
function callback_listTitleEvents(str)
{
document.getElementById('eventsDIV').innerHTML = getStr(str);
}
function call_showArticles()
{
document.getElementById('ARloading').style.visibility = 'visible';
agent.call('library/do.infocenter.php','do_showArticles','callback_showArticles',sid);
}
function callback_showArticles(str)
{
document.getElementById('ARloading').style.visibility = 'hidden';
document.getElementById('articlesDIV').innerHTML = str;
}
function call_getNumOfArticles()
{
agent.call('library/do.infocenter.php','do_getNumOfArticles','callback_getNumOfArticles');
}
function callback_getNumOfArticles(str)
{
allcnt = str;
}