function	isIE()
{
	//  Browser settings ------------------------
	isNS4  = (document.layers)? true:false;
	isNS6  = (document.getElementById)? true:false;
	isIE4  = (document.all)? true:false;
	isIE5  = false;
	if( isIE4 )
	{
		if( (navigator.userAgent.indexOf('MSIE 5') != -1) || (navigator.userAgent.indexOf('MSIE 6') != -1) )
			isIE5  = true;
		if( isNS6 )
			isNS6  = false;
	}
	isIE   = (isIE4 || isIE5 );
	//  END OF Browser settings ------------------------
	
	return	isIE;
}
////////////////////////////////////////////////////////////////////////////////

function	isXmlHttpAvailable()
{
	var	httpObj	= null;
	
	//	Check for IE
	if( isIE() )
	{
		try
		{
//alert( "construct IE" );
			httpObj	= new ActiveXObject( "Msxml2.XMLHTTP" );
//alert( "construct IE: success" );
			return	true;
		}
		catch( ex )
		{   
			httpObj	= null;
		}
		
		return	false;
	}	//	if( isIE() )
	//	END OF Check for IE


	//	Check for FF
	try
	{
	    if( typeof XMLHttpRequest != 'undefined' && httpObj == null )
	    {
//alert( "construct FF" );
            httpObj	= new XMLHttpRequest();
//alert( "construct FF: success" );
			return	true;
        }
	}
	catch( ex )
	{   
	    httpObj    = null;
	}
	//	END OF Check for FF

	return	false;
}
////////////////////////////////////////////////////////////////////////////////



var	vSimpleMode	= document.getElementById("inSimpleMode");
if( isXmlHttpAvailable() )
{
	//	The browser supports XML HTTP object.
	//	Load the standard mode page.
	//window.location	= "start_standard.html";
	vSimpleMode.value	= "no";
}
else
{
	//	The browser does not support XML HTTP object.
	//	Load the simple mode page.
	//window.location	= "start_simple.html";
	vSimpleMode.value	= "yes";
}

//alert( "Simple Mode: " + vSimpleMode.value + "/" + isIE4 );
////////////////////////////////////////////////////////////////////////////////

