
function aidflip(aid, dstate)
{
	// 0 = close, 1 = open

	if (dstate == 0)
	{
		// close article
		try {
			document.getElementById('art_tr_' + aid).style.display = 'none';
			document.getElementById('art_open_' + aid).style.display = 'block';
			document.getElementById('art_close_' + aid).style.display = 'none';
		} catch (e) {}
	} else {
		// open article
		try {
			document.getElementById('art_title_' + aid).scrollIntoView(true);
			document.getElementById('art_tr_' + aid).style.display = '';
			document.getElementById('art_open_' + aid).style.display = 'none';
			document.getElementById('art_close_' + aid).style.display = 'block';
		} catch (e) {}
	}
}



function loadaidflip()
{
	var durl = location.href;
	var dsplit = durl.split('#art_title_');
	//alert(typeof(dsplit[1]));
	if (typeof(dsplit[1]) == 'string') aidflip(parseInt(dsplit[1]), 1);
}



function onLoadCalls()
{
	try {
		document.getElementById('resizeColumn').style.height = document.body.clientHeight + 'px';
	} catch (e) {}
}



function fwd(dtarget, dtimeout)
{
	if (dtimeout >= 0)
	     window.setTimeout('fwd("' + dtarget + '", -1)', dtimeout);
		else location.href = dtarget;
}
