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

//var host = '';

//強制的にホスト指定（蓬）
var host = 'http://www.shiono-ya.co.jp';
gethost = false;

if(gethost){
	protocol = location.protocol + '//';
	if(protocol.indexOf('http') == -1){ protocol = 'http://'; }
	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 + '">');


