
// set Variable
	var csspath = '/scripts/css/';	// スタイルシートの場所
	var defhost = 'www.ways.co.jp';	// ドメインを自動で取得できなかった場合のホスト
	var gethost = true;			// 自動でホスト名を取得する場合は「true」、以外は「false」
	var cssTags = '<link rel="stylesheet" type="text/css" href="';
	var protocol = '';

var host = '';
if(gethost){
	protocol = location.protocol + '//';
	if(protocol.indexOf('http') == -1){ protocol = 'http://'; }
	if(location.host == '202.228.195.241'){ }
	else if(location.host == 'www.digitalways.net'){ }
	else if(parent.top != null){
		host= parent.location.host;
	}else{
		host = location.host;
	}
	if(host == ''){ host = defhost; }
}
var cssDir = protocol + host + csspath;
var Agent = navigator.userAgent;
var flag = null;
var title = null;
// CSS deverge for Cross Platform & Cross Browser
if (Agent.indexOf('Win') != -1) {
	// Win_IE
	if (document.all) {
		flag = "wie";
		title = "WinIE_style"
	// Win_NS
	} else {
		flag = "wns";
		title = "WinNS_style"
	}
}else if (Agent.indexOf('Mac') != -1) {
	// Mac_IE
	if (document.all) {
		flag = "mie";
		title = "MacIE_style"
	// Mac_NS
	} else {
		flag = "mns";
		title = "MacNS_style"
	}
}else{	// Other
	flag = "other";
	title = "Other_style"
}
document.open();
document.write(cssTags + cssDir + flag + '.css" title="' + title + '">');
document.close();

// for debug
// alert(cssTags + cssDir + flag + '.css" title="' + title + '">');




