// ｽﾀｲﾙｼｰﾄの読み込み
function dspCSS(vDepth) {
	window.document.write("<LINK REL=\"stylesheet\" HREF=\"" + vDepth + "css/happyecho.css\">");
}

// 固定枠先頭表示関数
function dspFixBegin(vActive,vDepth) {

	// 配列初期化
	var strActive	= new Array("","","","","","","");
	var strLink		= new Array(vDepth + "index.html",
								vDepth + "cons/index.html",
								vDepth + "score/index.html",
								vDepth + "cd/index.html",
								"http://www.happy-echo.com/happyecho/",
								vDepth + "recomm/index.html",
								vDepth + "prof/index.html");
	// アクティブタブ選択
	switch (vActive){
		case 0:	strActive[0]= "_a";
				strLink[0]	= "./index.html";
				break;
		case 1:	strActive[1] = "_a";
				strLink[1]	= "./index.html";
				break;
		case 2:	strActive[2] = "_a";
				strLink[2]	= "./index.html";
				break;
		case 3:	strActive[3] = "_a";
				strLink[3]	= "./index.html";
				break;
		case 4:	strActive[4] = "_a";
				strLink[4]	= "./index.html";
				break;
		case 5:	strActive[5] = "_a";
				strLink[5]	= "./index.html";
				break;
		case 6:	strActive[6] = "_a";
				strLink[6]	= "./index.html";
				break;
	}

	window.document.write("<TABLE WIDTH=\"1000\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" HEIGHT=\"810\">");
	window.document.write("<TR><TD ROWSPAN=\"3\" BGCOLOR=\"#FF6633\" WIDTH=\"8\">　</TD>");
	window.document.write("<TD WIDTH=\"992\" HEIGHT=\"80\" ALIGN=\"LEFT\" VALIGN=\"TOP\">");
	window.document.write("<TABLE WIDTH=\"992\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" HEIGHT=\"80\"><TR>");
	window.document.write("<TD ROWSPAN=\"2\" ALIGN=\"RIGHT\" VALIGN=\"MIDDLE\" BGCOLOR=\"#FF6633\" WIDTH=\"280\" HEIGHT=\"80\"><IMG SRC=\"" + vDepth + "img/helogo.jpg\" WIDTH=\"263\" HEIGHT=\"67\" ALT=\"音楽出版ハピーエコー\"></TD>");
	window.document.write("<TD ROWSPAN=\"2\" HEIGHT=\"80\" WIDTH=\"88\" ALIGN=\"LEFT\" VALIGN=\"TOP\">");
	window.document.write("<TABLE WIDTH=\"88\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" HEIGHT=\"80\" BACKGROUND=\"" + vDepth + "img/maru.gif\">");
	window.document.write("<TR VALIGN=\"BOTTOM\"><TD><A HREF=\"" + strLink[0] + "\"><IMG BORDER=\"0\" SRC=\"" + vDepth + "img/home" + strActive[0] + ".gif\" WIDTH=\"88\" HEIGHT=\"22\"></A></TD></TR>");
	window.document.write("</TABLE></TD><TD HEIGHT=\"58\" WIDTH=\"624\">");
	window.document.write("<TABLE WIDTH=\"624\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" HEIGHT=\"58\" BACKGROUND=\"" + vDepth + "img/menuback.gif\"><TR>");
	window.document.write("<TD><IMG SRC=\"" + vDepth + "img/cmpmsg.jpg\" WIDTH=\"480\" HEIGHT=\"50\" ALT=\"会社情報\"></TD>");
	window.document.write("</TR></TABLE></TD></TR><TR>");
	window.document.write("<TD HEIGHT=\"22\" WIDTH=\"624\">");
	window.document.write("<TABLE WIDTH=\"624\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" HEIGHT=\"22\" BACKGROUND=\"" + vDepth + "img/menuback.gif\"><TR>");
	window.document.write("<TD><A HREF=\"" + strLink[1] + "\"><IMG BORDER=\"0\" SRC=\"" + vDepth + "img/cons" + strActive[1] + ".gif\" WIDTH=\"88\" HEIGHT=\"22\"></A>");
	window.document.write("<A HREF=\"" + strLink[2] + "\"><IMG BORDER=\"0\" SRC=\"" + vDepth + "img/score" + strActive[2] + ".gif\" WIDTH=\"88\" HEIGHT=\"22\"></A>");
	window.document.write("<A HREF=\"" + strLink[3] + "\"><IMG BORDER=\"0\" SRC=\"" + vDepth + "img/cd" + strActive[3] + ".gif\" WIDTH=\"88\" HEIGHT=\"22\"></A>");
	window.document.write("<IMG BORDER=\"0\" SRC=\"" + vDepth + "img/search" + strActive[4] + ".gif\" WIDTH=\"88\" HEIGHT=\"22\">");
	window.document.write("<A HREF=\"" + strLink[5] + "\"><IMG BORDER=\"0\" SRC=\"" + vDepth + "img/info" + strActive[5] + ".gif\" WIDTH=\"88\" HEIGHT=\"22\"></A>");
	window.document.write("<A HREF=\"" + strLink[6] + "\"><IMG BORDER=\"0\" SRC=\"" + vDepth + "img/prof" + strActive[6] + ".gif\" WIDTH=\"88\" HEIGHT=\"22\"></A>");
	window.document.write("</TD>");
	window.document.write("</TR></TABLE></TD></TR></TABLE></TD></TR>");
	window.document.write("<TR><TD WIDTH=\"992\" HEIGHT=\"16\" ALIGN=\"LEFT\" VALIGN=\"TOP\"><IMG SRC=\"" + vDepth + "img/corner.gif\" WIDTH=\"16\" HEIGHT=\"16\"></TD></TR>");
	window.document.write("<TR><TD WIDTH=\"992\" ALIGN=\"LEFT\" VALIGN=\"TOP\">");
}

// 固定枠末尾表示関数
function dspFixEnd(vActive,vDepth) {
	window.document.write("</TD></TR></TABLE>");
}

// ちらし画像拡大表示
function window_open_flier(vpath)
{
	window.open("../../flier.html?path=" + vpath, "flier", "width=510,height=710,location=no,menubar=no,scrollbars=no,status=no,titlebar=no,toolbar=no");
}

