// CSS記述書き込み用スクリプト

/* set variable */
var cssDir = '../css/'; // CSS Directory
var cssTags = '<link rel="stylesheet" type="text/css" href="';
var flag = null;
var _poor = 'CSS no support'; 

/* css deverge for cross platform & cross browser */
if (_win) { // win os
	if (_ns6 || _ns6up || _ns7up) { // Windows Netscape6.Xup
		flag = 'winie';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		//alert('Windows Netscape6.X');
	}

	else if (_ns4 || _ns4up || _nav) { // Windows Netscape4.X
		flag = 'winnn';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		//alert('Windows Netscape4.X');
	}
	else if (_ie4 || _ie4up || _ie5 || _ie5up || _ie6) { // Windows IE
		flag = 'winie';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		//alert('Windows IE');
	}
	else if (_ns2 || _ns3 || _ie3) { // WindowsでCSS未対応のブラウザ
		flag = _poor + ' browser...';
		//alert(flag);
	}
	else if (_opera) { // Windows OPERA
		flag = 'winie';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		//alert('Windows OPERA');
	}
	else { // Windowsその他のブラウザ
		flag = 'other';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		//alert('other');
	}
}

else if (_mac) { // mac os
	if (_ns6 || _ns6up || _ns7up) { // Windows Netscape6.Xup
		flag = 'mac';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		//alert('Mac Netscape6.X');
	}
	else if (_ns4 || _ns4up || _nav) { // Mac Netscape4.X
		flag = 'mac';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		//alert('Mac Netscape4.X');
	}
	else if (_ie5 || _ie5up) { // Mac IE5
		flag = 'mac';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		//alert('Mac IE5');
	}
	else if (_ie4 || _ie45 || _ie4up) { // Mac IE4.X
		flag = 'mac';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		//alert('Mac IE4.X');
	}
	else if (_ns2 || _ns3 || _ie3) { // MacでCSS未対応のブラウザ
		flag = _poor + ' browser...';
		//alert(flag);
	}
	else if (_opera) { // Mac OPERA
		flag = 'mac';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		//alert('Mac OPERA');
	}
	else if (_safari) { // Mac safari
		flag = 'mac';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		//alert('Mac Safari');
	}
	else { // Macその他のブラウザ
		flag = 'other';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		//alert('other');
	}
}

else { // その他のブラウザ
		flag = 'other';
		document.open();
		document.write(cssTags + cssDir + flag + '.css">');
		document.close();
		alert('other');
}

