function st( container, index )
{
	var form = document.forms[ 0 ];
	var h = form[ ( container + "_h" ) ];
	var sa = eval( container + "_sa" );
	var currentIndex = h.value;
	
	if( index >= 0 && index != currentIndex )
	{
		var active = findObj( container + "_" + index );
		
		var reg = new RegExp( "/" + sa[ 1 ] + "/" );

		active.src = active.src.replace( reg, "/" + sa[ 0 ] + "/" );

		var activeLayer = findObj( sa[ 2 ] + "_" + index )
		
		if( activeLayer != null )
		{
			activeLayer.style.display = "block";
		}
		
		active.blur();
	}

	if( currentIndex >= 0 && currentIndex != index )
	{
		var passive = findObj( container + "_" + currentIndex );
	
		var reg = new RegExp( "/" + sa[ 0 ] + "/" );
		
		passive.src = passive.src.replace( reg, "/" + sa[ 1 ] + "/" );
		
		var passiveLayer = findObj( sa[ 2 ] + "_" + currentIndex )
		
		if( passiveLayer != null )
		{
			passiveLayer.style.display = "none";
		}
	}
	
	if( index >= 0 )
	{
		var ga = eval( container + "_ga" );
		
		for ( i = 0; i < ga.length ; i++ )
		{
			st( ga[ i ], -1 );
		}
	}
	
	h.value = index;
}


function stt( container, index )
{
	var form = document.forms[ 0 ];
	var h = form[ ( container + "_h" ) ];
	var sa = eval( container + "_sa" );
	var currentIndex = h.value;
	
	if( index >= 0 && index != currentIndex )
	{
		var active = findObj( container + "_" + index );
		
		active.className = sa[ 0 ];
		
		var activeLayer = findObj( sa[ 2 ] + "_" + index )
		
		if( activeLayer != null )
		{
			activeLayer.style.display = "block";
		}

		var activeLink = findObj( container + "_" + index + "_a");
		activeLink.className = sa[ 3 ];
		
		activeLink.blur();
	}

	if( currentIndex >= 0 && currentIndex != index )
	{
		var passive = findObj( container + "_" + currentIndex );
	
		passive.className = sa[ 1 ];

		var passiveLayer = findObj( sa[ 2 ] + "_" + currentIndex )
		
		if( passiveLayer != null )
		{
			passiveLayer.style.display = "none";

		}
		var hideLink = findObj( container + "_" + currentIndex + "_a");
		hideLink.className = sa[ 4 ];
	}
	
	h.value = index;
}

