//******** WinとMacでfont指定のcssを振り分ける ****


if (navigator.appVersion.indexOf("Mac") != -1) {
	// MACの場合
	document.write("<link rel=\"stylesheet\" href=\"http://www.masasumide.com/css/font-mac.css\" type=\"text/css\">");

} else {
	// windowsの場合

	if (navigator.userAgent.indexOf("Firefox") != -1){
		// Firefox
		document.write("<link rel=\"stylesheet\" href=\"http://www.masasumide.com/css/font-modern.css\" type=\"text/css\">");
	} else if (navigator.userAgent.indexOf("Opera") != -1){
		// Opera
		document.write("<link rel=\"stylesheet\" href=\"http://www.masasumide.com/css/font-modern.css\" type=\"text/css\">");
	} else if (navigator.userAgent.indexOf("Safari") != -1){
		// Opera
		document.write("<link rel=\"stylesheet\" href=\"http://www.masasumide.com/css/font-modern.css\" type=\"text/css\">");
	} else if (navigator.userAgent.indexOf("MSIE 7") != -1) {
		// MSIE 7.x
		document.write("<link rel=\"stylesheet\" href=\"http://www.masasumide.com/css/font-winIE7.css\" type=\"text/css\">");
	} else if (navigator.userAgent.indexOf("MSIE 8") != -1) {
		// MSIE 8.x
		document.write("<link rel=\"stylesheet\" href=\"../css/font-winIE8.css\" type=\"text/css\">");
	} else {
		// その他
		document.write("<link rel=\"stylesheet\" href=\"http://www.masasumide.com/css/font-winIE.css\" type=\"text/css\">");
	}

}



//　西暦を２ケタで表示するため

dateObj = new Date();
todayYear = dateObj.getFullYear();
YY = todayYear.toString().substr(2, 2);
/* htmlに以下のように記述する
<script type="text/javascript">
<!--
document.write(YY);
// -->
</script>
*/



function soundWin(openMe) {
	pop=window.open(openMe,"soundbWin","width=468,height=180,left=20,top=20,menubar=0,location=0,resizable=0,scrollbars=0,status=0,directories=0"); 
}











//********　プルダウン --------

//******** サブメニュー非対応環境かどうかを判断する。********
function ifSupported() {
	if (window.opera && (!document.all)) {
		return(0);
	}
	if (document.all || document.getElementById) { return(1) }
	return(0);
	}
//******** 対応環境ではサブメニューを予め非表示にする。********
if (ifSupported()) {
	document.write(
		'<style type="text/css">'+
		'.subMenu {'+
		'	display: none;'+
		'	}'+
		'</style>'
		);
	}
//******** サブメニューの表示/非表示を切替える。********
function subMenu(id) {
	if (ifSupported()==0) { return; }

	if (document.all) {
		if (document.all[id].style.display!='block') {
			document.all[id].style.display='block';
			}
		else {
			document.all[id].style.display='none';
			}
		return;
		}

	if (document.getElementById(id).style.display!='block') {
		document.getElementById(id).style.display='block';
		}
	else {
		document.getElementById(id).style.display='none';
		}
	return;
	}





//********subWin ********

function subWin(openMe) {
    pop=window.open(openMe,"subWin","width=600,height=600,left=0,top=0,menubar=0,toolbar=0,location=0,resizable=1,scrollbars=1,status=0,directories=0");
	}



