//==============================================
//
//
//		共通定義ファイル
//
//
//----------------------------------------------

//======================
//
//	サイトURL
//
//----------------------
//------
// 本物
//------
var ThisURL = "http://mymelody.org/";

//----------
// ローカル
//----------
//var ThisURL = "C:\\web\\ver13\\";



//==============================================
//
//	フレームセットタグ内のパラメータ
//
//----------------------------------------------
//------------------------------------------
// メインのフレーム名とオプションパラメータ
//------------------------------------------
var MainFrameOption = "scrolling=auto noresize frameborder=0 border=0";

//-----------------------
// index用フレームセット
// （各ページ共通）
//-----------------------
var FramesetOption1 = "border=0 frameSpacing=0 rows=25,* frameBorder=NO";
var FramesetOption2 = "border=0 frameSpacing=0 cols=769,* frameBorder=NO";
var FramesetOption3 = "border=0 frameSpacing=0 rows=*,5,10 frameBorder=NO";
var FramesetOption4 = "border=0 frameSpacing=0 cols=577,5,* frameBorder=NO";
var FramesetOption5 = "border=0 frameSpacing=0 cols=187,5,385 frameBorder=NO";

//----------
// ブランク
//----------
var BlankURL = ThisURL + "blank.htm";
var BlankOption = "frameborder=0 border=0 noResize scrolling=no";

//----------
// ヘッダー
//----------
var FooterURL = ThisURL + "footer.htm";

//--------
// バナー
//--------
var BannerURL = ThisURL + "banner.htm";

//-------------
// メニューURL
//-------------
var MenuURL = ThisURL + "menu.htm";
var MenuOption = "frameborder=0 border=0 noResize scrolling=auto";


//==============================================
//
//	CSSファイルの切り換え/読み込み
//
//----------------------------------------------
//----------------------
// OSによる切り換え判定
//----------------------
function getOSType()
{
    var uAgent  = navigator.userAgent.toUpperCase();
    if (uAgent.indexOf("WIN") >= 0) return "Windows";
    return "";
}

os = getOSType();
var osType;
if (os == "Windows") {
  osType = "win";
}else{
  osType = "mac";
}
cssName = ThisURL+ "style_" +osType+ ".css";  // OS別CSS
cssCommonName = ThisURL+ "/style_common.css"; // 共通CSS

//----------
// 読み込み
//----------
document.write("<link rel='stylesheet' href='"+cssName+"' type='text/css'>\n");
document.write("<link rel='stylesheet' href='"+cssCommonName+"' type='text/css'>");


//======================================
//
//	あれこれポップアップ読み込み
//
//--------------------------------------
//document.write("<link href='"+ThisURL+"ArekorePopup/ArekorePopup.css' rel='stylesheet' type='text/css'>\n");
//document.write("<script src='"+ThisURL+"ArekorePopup/ArekorePopup.js' type='text/javascript'></script>");
