scW = screen.availWidth;					//スクリーンの有効領域幅
scH = screen.availHeight;					//スクリーンの有効領域高さ
np		= navigator.platform;				//ユーザーのプラットフォーム取得

//choose css file for mac or win
function chngCss(dir,name) {
	pass	= "";								//カレントドキュメントのディレクトリ設定用

	for (i = 1; i <= dir; i++)
		pass += "../";

	if (np.indexOf("Mac") >= 0) {
		document.write ('<link rel="StyleSheet" href="' + pass + name + '_mac.css" type="text/css" />');
	}
	else {
		document.write ('<link rel="StyleSheet" href="' + pass + name + '_win.css" type="text/css" />');
	}

}


//コピーライト表記
function copyright(dir) {
	pass	= "";								//カレントドキュメントのディレクトリ設定用

	for (i = 1; i <= dir; i++)
		pass += "../";

	prop = "JavaScript:openGeneWin1('" + pass +"thanks.html','thanksYukari','340','500','no','auto');";

	document.write ('copyright (c) A g a p e co.,ltd. All rights reserved 2006 | <a href="' + prop + '" class="thanks">*special thanks!</a>');
}


//任意の名前付きwindow
function openGeneWin(theURL,name,w,h,resize,scrll) {
	geneWin = name;
       // theURL = 'http://blog.excite.co.jp/yukarisono/';
        theURL = 'http://ameblo.jp/yukari-sonohara/';
	resize = 'yes';
	scrll = 'yes';
	//ウィンドウサイズ
	w = scW*w;
	h = scH*h;
	
	features = "width=" + w +",height=" + h +",menubar=yes,toolbar=yes,resizable=" + resize + ",scrollbars=" + scrll;
	geneWin = window.open(theURL,name,features);
	geneWin.focus();
}

//任意 window オープン
function openGeneWin1(theURL,name,w,h,resize,scrll) {
	geneWin = name;
	
	//ウィンドウサイズ
	//w = scW*w;
	//h = scH*h;
	
	features = "width=" + w +",height=" + h +",resizable=" + resize + ",scrollbars=" + scrll;
	geneWin = window.open(theURL,name,features);
	geneWin.focus();
}