function initENV(){

	load_complete = false;

	ENV='WIN_IE'		//デフォルトはWIN_IE

	CSSFNARY = new Array(
	'winie.css',
	'winnn.css',
	'macie.css',
	'macnn.css'
	);

	var theAgent = navigator.userAgent;
	theAgent = theAgent.toUpperCase();

	if ((theAgent.indexOf('WIN') >= 0 ) && document.all){ENV = 'WIN_IE'}
	if ((theAgent.indexOf('WIN') >= 0 ) && document.layers){ENV = 'WIN_NC'}		//for NC 4.75
	if ((theAgent.indexOf('MAC') >= 0 ) && document.all){ENV = 'MAC_IE'}		//for Mac IE6.0
	if ((theAgent.indexOf('MAC') >= 0 ) && document.layers){ENV = 'MAC_NC'}		//for NC 4.75

	IE5x = false;
	if (document.all && document.getElementById) IE5x = true;

}


function getCSSURL(input_path){

	var n = 0;

	switch(ENV){
		case 'WIN_IE':n=0;break;
		case 'WIN_NC':n=1;break;
		case 'MAC_IE':n=2;break;
		case 'MAC_NC':n=3;break;
		default:n=0;
	}

	return(input_path + CSSFNARY[n]);
}


