MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //usr/local/ssl/local/frontpage/version5.0/help/1033/ExpColla.js
	var DHTML_ARROW_MIN = 37;
	var DHTML_ARROW_MAX = 40;
	var DHTML_LEFT_ARROW = 37; 	// left-arrow
	var DHTML_UP_ARROW = 38; 	// up-arrow
	var DHTML_RIGHT_ARROW = 39;  // right-arrow
	var DHTML_DOWN_ARROW = 40;   // down-arrow



function tabClick( nTab )
{
	event.cancelBubble = true;
	el = event.srcElement;

	for (i = 0; i < tabs.length; i++)
	{
		tabs[i].className = "clsTab";
		newsContent[i].style.display = "none";
	}
	newsContent[nTab].style.display = "block";
	tabs[nTab].className = "clsTabSelected";
}


function ToggleDisplay(oButton, oItems)
{

	if ((oItems.style.display == "") || (oItems.style.display == "none"))	{
		oItems.style.display = "block";
		oButton.src = "minus.gif";
	}	else {
		oItems.style.display = "none";
		oButton.src = "plus.gif";
	}
	return false;
}

function leftnav_keyup()
{
	var iKey = window.event.keyCode;
	

	var oActive = window.event.srcElement;
	
	if( DHTML_LEFT_ARROW == iKey || DHTML_RIGHT_ARROW == iKey )
	{
		if ('clsTocHead' == oActive.className)
		{
			// handle headings that expand/collapse
			HandleKeyForHeading(oActive, iKey);
		} 
		else if( "A" == oActive.tagName )
		{
			MoveFocus( oActive, iKey );
		}
	}
	
	return;
}


function MoveFocus( oActive, iKey )
{
	iSrcIndex = oActive.sourceIndex;
	
	if( iKey == DHTML_RIGHT_ARROW)
	{
		while( oItem = document.all[ ++iSrcIndex ] )
		{
			if( !leftNavTable.contains( oItem ) ) return;
			if( "A" == oItem.tagName )
			{
				oItem.focus();
				break;
			}

		}
	}
	else
	{
		while( oItem = document.all[ --iSrcIndex ] )
		{
			if( ( "clsTocHead" == oItem.className || "clsTocHead" == oItem.parentElement.className ) && "A" == oItem.tagName )
			{
				oItem.focus();
				break;
			}

		}
	}
}


// Handle keyboard action on a section
function HandleKeyForHeading(oActive, iKey)
{
	
	sActiveId = oActive.id;
	oItem = document.all[ sActiveId + "Items" ];
	oBtn = document.all[ sActiveId + "Btn" ];

	if( ( "block" != oItem.style.display ) ^ ( DHTML_LEFT_ARROW == iKey ) )
	{
		ToggleDisplay( oBtn ,oItem );
	}
	else
	{
		MoveFocus( oActive, iKey );		
	}
}


function handleMouseover() {
	eSrc = window.event.srcElement;
	eSrcTag=eSrc.tagName.toUpperCase();
	if (eSrcTag=="DIV" && eSrc.className.toUpperCase()=="CLSTOCHEAD")	eSrc.style.textDecoration = "underline";
	if (eSrcTag=="LABEL") eSrc.style.color="#003399";
}

function handleMouseout() {
	eSrc = window.event.srcElement;
	eSrcTag=eSrc.tagName.toUpperCase();
	if (eSrcTag=="DIV" && eSrc.className.toUpperCase()=="CLSTOCHEAD")	eSrc.style.textDecoration = "";
	if (eSrcTag=="LABEL") eSrc.style.color="";
}


document.onmouseover=handleMouseover;
document.onmouseout=handleMouseout;