// 会員（CP_KBN == 1）
if (mmbflg == 1) {
	document.write('<TABLE border="0" width="135" height="200" cellpadding="0" cellspacing="0">');
	document.write('<TR>');
	document.write('<TD width="135" valign="top" bgcolor="#525252" height="200">');
	document.write('<TABLE border="0" cellpadding="0" cellspacing="3" width="100%">');
	document.write('<TR>');
	document.write('<TD colspan="2" height="50"><SPAN class="text2">');
	document.write('<CENTER><IMG src="/image_top/login_dot.gif" width="118" height="7" border="0"><BR>');
	document.write('<FONT color="#FFFFFF">ようこそ<BR>');
	document.write(utf8to16(my_unescape(getCookie("DEXUNAME2"))),"　様<BR>");
	document.write('<IMG src="/image_top/login_dot.gif" width="118" height="7" border="0"></FONT>');
	document.write('</CENTER></SPAN></TD></TR>');
	document.write('<TR><TD width="20">');
	document.write('<A href="https://can.dex.ne.jp/cgi-bin/WebObjects/Dexcan.woa/wa/MyPage" target="main">');
	document.write('<IMG src="/image_top/icn/icn_mypage.gif" width="20" height="20" border="0" alt=""></A></TD>');
	document.write('<TD width="160"><SPAN class="text1">');
	document.write('<A href="https://can.dex.ne.jp/cgi-bin/WebObjects/Dexcan.woa/wa/MyPage" TARGET="main">');
	document.write('<FONT color="#FFFFFF">クリエイターMY PAGE</FONT></A></SPAN></TD></TR>');
	document.write('<TR><TD width="20">');
	document.write('<A href="https://ssl.dex.ne.jp/cgi-bin/prevMemb.cgi" target="main">');
	document.write('<IMG src="/image_top/icn/icn_face.gif" width="20" height="20" border="0" alt=""></A></TD>');
	document.write('<TD width="160"><SPAN class="text1">');
	document.write('<A href="https://ssl.dex.ne.jp/cgi-bin/prevMemb.cgi" TARGET="main">');
	document.write('<FONT color="#FFFFFF">お客様情報</FONT></A></SPAN></TD></TR>');
	document.write('<TR><TD width="20">');
	document.write('<A href="http://www.dex.ne.jp/p/list/list.php" target="main">');
	document.write('<IMG src="/image_top/icn/icn_rireki.gif" width="20" height="20" border="0" alt=""></A></TD>');
	document.write('<TD width="160"><SPAN class="text1">');
	document.write('<A href="http://www.dex.ne.jp/p/list/list.php" TARGET="main">');
	document.write('<FONT color="#FFFFFF">ご購入履歴</FONT></A></SPAN></TD></TR>');
	document.write('<TR><TD>');
	document.write('<A href="/cgi-bin2/download_list.cgi" TARGET="main">');
	document.write('<IMG src="/image_top/icn/icn_cart.gif" width="20" height="20" border="0" alt=""></A></TD>');
	document.write('<TD><SPAN class="text1">');
	document.write('<A href="/cgi-bin2/cart_in.cgi?db_kind=D" TARGET="main"><FONT color="#FFFFFF">カート</FONT></A>');
	document.write('</SPAN></TD></TR>');
	document.write('<TR><TD>');
	document.write('<A href="/cgi-bin2/download_list.cgi" TARGET="main">');
	document.write('<IMG src="/image_top/icn/icn_dl.gif" width="20" height="20" border="0" alt=""></A></TD>');
	document.write('<TD><A href="/cgi-bin2/download_list.cgi" TARGET="main">');
	document.write('<SPAN class="text1"><FONT color="#FFFFFF">ダウンロード</FONT></SPAN></A></TD>');
	document.write('</TR>');
	document.write('<TR><TD>');
	document.write('<A href="/cgi-bin2/dexlogout.cgi?url=http://www.dex.ne.jp/download/photo/index.html" TARGET="_top">');
	document.write('<IMG src="/image_top/icn/icn_out.gif" width="20" height="20" border="0" alt=""></A></TD>');
	document.write('<TD><A href="/cgi-bin2/dexlogout.cgi?url=http://www.dex.ne.jp/download/photo/index.html" TARGET="_top">');
	document.write('<SPAN class="text1"><FONT color="#FFFFFF">ログアウト</FONT></SPAN></A>');
	document.write('</TD></TR>');
	document.write('</TABLE>');
	document.write('</TD>');
	document.write('</TR></TABLE>');

// 会員（CP_KBN != 1）
} else if (mmbflg == 2) {
	document.write('<TABLE border="0" width="135" height="200" cellpadding="0" cellspacing="0">');
	document.write('<TR>');
	document.write('<TD width="135" valign="top" bgcolor="#525252" height="200">');
	document.write('<TABLE border="0" cellpadding="0" cellspacing="3" width="100%">');
	document.write('<TR>');
	document.write('<TD colspan="2" height="50"><SPAN class="text2">');
	document.write('<CENTER><IMG src="/image_top/login_dot.gif" width="118" height="7" border="0"><BR>');
	document.write('<FONT color="#FFFFFF">ようこそ<BR>');
	document.write(utf8to16(my_unescape(getCookie("DEXUNAME2"))),"　様<BR>");
	document.write('<IMG src="/image_top/login_dot.gif" width="118" height="7" border="0"></FONT>');
	document.write('</CENTER></SPAN></TD></TR>');
	document.write('<TR><TD width="20">');
	document.write('<A href="https://ssl.dex.ne.jp/cgi-bin/prevMemb.cgi" target="main">');
	document.write('<IMG src="/image_top/icn/icn_face.gif" width="20" height="20" border="0" alt=""></A></TD>');
	document.write('<TD width="160"><SPAN class="text1">');
	document.write('<A href="https://ssl.dex.ne.jp/cgi-bin/prevMemb.cgi" TARGET="main">');
	document.write('<FONT color="#FFFFFF">お客様情報</FONT></A></SPAN></TD></TR>');
	document.write('<TR><TD width="20">');
	document.write('<A href="http://www.dex.ne.jp/p/list/list.php" target="main">');
	document.write('<IMG src="/image_top/icn/icn_rireki.gif" width="20" height="20" border="0" alt=""></A></TD>');
	document.write('<TD width="160"><SPAN class="text1">');
	document.write('<A href="http://www.dex.ne.jp/p/list/list.php" TARGET="main">');
	document.write('<FONT color="#FFFFFF">ご購入履歴</FONT></A></SPAN></TD></TR>');
	document.write('<TR><TD>');
	document.write('<A href="/cgi-bin2/download_list.cgi" TARGET="main">');
	document.write('<IMG src="/image_top/icn/icn_cart.gif" width="20" height="20" border="0" alt=""></A></TD>');
	document.write('<TD><SPAN class="text1">');
	document.write('<A href="/cgi-bin2/cart_in.cgi?db_kind=D" TARGET="main"><FONT color="#FFFFFF">カート</FONT></A>');
	document.write('</SPAN></TD></TR>');
	document.write('<TR><TD>');
	document.write('<A href="/cgi-bin2/download_list.cgi" TARGET="main">');
	document.write('<IMG src="/image_top/icn/icn_dl.gif" width="20" height="20" border="0" alt=""></A></TD>');
	document.write('<TD><A href="/cgi-bin2/download_list.cgi" TARGET="main">');
	document.write('<SPAN class="text1"><FONT color="#FFFFFF">ダウンロード</FONT></SPAN></A></TD>');
	document.write('</TR>');
	document.write('<TR><TD>');
	document.write('<A href="/cgi-bin2/dexlogout.cgi?url=http://www.dex.ne.jp/download/photo/index.html" TARGET="_top">');
	document.write('<IMG src="/image_top/icn/icn_out.gif" width="20" height="20" border="0" alt=""></A></TD>');
	document.write('<TD><A href="/cgi-bin2/dexlogout.cgi?url=http://www.dex.ne.jp/download/photo/index.html" TARGET="_top">');
	document.write('<SPAN class="text1"><FONT color="#FFFFFF">ログアウト</FONT></SPAN></A>');
	document.write('</TD></TR>');
	document.write('<TR><TD>');
	document.write('<IMG src="/image/dot.gif" width="1" height="20" border="0" alt=""></TD>');
	document.write('<TD>　</TD></TR>');
	document.write('</TABLE>');
	document.write('</TD>');
	document.write('</TR></TABLE>');


// 非会員
} else if (mmbflg == 3) {
	document.write('<TABLE BORDER="0" WIDTH="135" HEIGHT="200" CELLPADDING="0" CELLSPACING="0">');
	document.write('<TR>');
	document.write('<TD WIDTH="63" HEIGHT="20" VALIGN="bottom">');
	document.write('<IMG SRC="/download/photo/image/login_m1.gif" WIDTH="63" HEIGHT="20" ALT="メンバーログイン" TITLE="メンバーログイン" BORDER="0" NAME="member">');
	document.write('</TD>');
	document.write('<TD WIDTH="72" VALIGN="bottom">');
	document.write('<IMG SRC="/image/dot.gif" WIDTH="72" HEIGHT="1" ALT="" BORDER="0">');
	document.write('</TD>');
	document.write('</TR>');
	document.write('<TR>');
	document.write('<TD HEIGHT="180" COLSPAN="2" bgcolor="#525252" VALIGN="top">');
	document.write('<IMG SRC="/image_top/login_m2.gif" WIDTH="135" HEIGHT="22" ALT="メンバーログイン" TITLE="メンバーログイン" BORDER="0"><BR>');
	document.write('<!---*---->');
	document.write('<TABLE BORDER="0" CELLPADDING="3" CELLSPACING="3">');
	document.write('<FORM NAME="loginform" METHOD="post" ACTION="https://ssl.dex.ne.jp/cgi-bin/dexlogin-real" TARGET="_top" onSubmit="return SubmitCheck()">');
	document.write('<INPUT TYPE="hidden" NAME="url" VALUE="http://www.dex.ne.jp/download/photo/index.html">');
	document.write('<TR>');
	document.write('<TD><IMG SRC="/image_top/id.gif" WIDTH="50" HEIGHT="10" ALT="ID" TITLE="ID" BORDER="0"><BR>');
	document.write('<!---*---->');
	document.write('<INPUT NAME="login" VALUE="" SIZE="10" MAXLENGTH="10"></TD>');
	document.write('</TR><TR>');
	document.write('<TD><IMG SRC="/image_top/pass.gif" WIDTH="50" HEIGHT="10" ALT="PASSWORD" TITLE="PASSWORD" BORDER="0"><BR>');
	document.write('<INPUT TYPE="PASSWORD" NAME="password" SIZE="10" MAXLENGTH="10"></TD>');
	document.write('</TR><TR>');
	document.write('<TD>');
	document.write('<INPUT type="image" border="0" name="go" src="/image_top/btn_login_m.gif" width="53" height="18" alt="検索" style="width:53px">');
	document.write('</TD>');
	document.write('</TR>');
	document.write('<TR>');
	document.write('<TD><IMG SRC="/image_top/login_dot.gif" WIDTH="118" HEIGHT="7"><BR>');
	document.write('<SPAN CLASS="text1">');
	document.write('<IMG SRC="/image_top/arrow_white.gif" WIDTH="13" HEIGHT="6" BORDER="0" ALT="."><A HREF="https://ssl.dex.ne.jp/reg/A_photo/form.html" TARGET="main"><FONT COLOR="#FFFFFF">メンバー登録</FONT></A><BR>');
	document.write('<IMG SRC="/image_top/arrow_white.gif" WIDTH="13" HEIGHT="6" BORDER="0" ALT="."><A HREF="/forget/index.html" TARGET="main"><FONT COLOR="#FFFFFF">ID・パスワードを忘れた</FONT></A>');
	document.write('</SPAN>');
	document.write('</TD>');
	document.write('</TR>');
	document.write('</FORM>');
	document.write('</TABLE>');
	document.write('<!---*---->');
	document.write('</TD>');
	document.write('</TR>');
	document.write('</TABLE>');
}
