﻿//os判別でフォント設定
var os;
if (navigator.appVersion.indexOf ("Win", 0) != -1) {
	os = "win";
} else {
	os = "mac";
}
document.write ('<link rel="stylesheet" type="text/css" href="/common/css/' + os + '.css">');

//ポップアップウィンドウ
function newWin(url, target, wW, wH, attr) {
	var toolbar = attr.charAt(0);
	var location = attr.charAt(1);
	var directories = attr.charAt(2);
	var status = attr.charAt(3);
	var menubar = attr.charAt(4);
	var resizable = attr.charAt(5);
	var scrollbars = (attr.charAt(6) == '1') ? 'yes':'0';
	var win_attr = 'toolbar='+toolbar+',location='+location+',directories='+directories+',status='+status+',menubar='+menubar+',resizable='+resizable+',scrollbars='+scrollbars+',width='+wW+',height='+wH;
	newWindow=open(url, target, win_attr);
	newWindow.focus();
}

//お気に入り追加
function addBookmark(title,url) {
    if (window.sidebar) {
        window.sidebar.addPanel(title, url,"");
    } else if( document.all ) {
        window.external.AddFavorite( url, title);
    } else if( window.opera && window.print ) {
        return true;
    }
}


