//*****************************************************************
//********** JavaScript 定義 **************************************
//*****************************************************************

//----------------------------------------------
//--- ヘッダー部定義 ---------------------------
//----------------------------------------------
// パラメータ：position（1:index.html, 2:src内）
//----------------------------------------------
function head(position){

    // 画像変更時は以下の画像名を変更してください。---------------------------
    var title_back        = "back_01.gif";                // ヘッダー背景(700*100)
    var title_logo        = "title_logo_01.gif";          // 文字ロゴ    (500*90以下)
    var title_syoryu_logo = "title_logo.gif";             // ギルド名ロゴ(250*90以下)
    //------------------------------------------------------------------------
    
    var img = "img/";
    if (position == 2) img = "../" + img;
    
    var src = "";
    if (position == 1) src = "src/";

    document.write('        <tr height="100">');
    document.write('            <td class="title" align="center" valign="middle">');
                
    document.write('                <table width="650" height="90" border="0" cellspacing="0" cellpadding="0">');
    document.write('                    <tr>');
    document.write('                        <td class="title_back" valign="bottom"><img src="'+ img + title_logo +'" border="0"></td>');
    document.write('                        <td class="title_back"  align="right" ><img src="'+ img + title_syoryu_logo +'" border="0"></td>');
    document.write('                    </tr>');
    document.write('                </table>');

    document.write('            </td>');
    document.write('        </tr>');
    document.write('        <tr height="15">');
    document.write('            <td class="border" align="right">');
    document.write('                | <a href="http://syoryu.fc2web.com/" class="menu" target="_top">ホーム</a>');
    document.write('                | <a href="'+ src +'kokoro.htm" class="menu" target="_top">ギルド心得</a>');
    document.write('                | <a href="'+ src +'profile.htm" class="menu" target="_top">ギルドメンバー</a>');
    document.write('                | <a href="'+ src +'bord.htm" class="menu" target="_top">掲示板</a>');
    document.write('                | <a href="'+ src +'link.htm" class="menu" target="_top">リンクについて</a>');
    document.write('                |');
    document.write('            </td>');
    document.write('        </tr>');
}



//----------------------------------------------
//--- ボトム部定義 -----------------------------
//----------------------------------------------
function bottom(){
    document.write('        <tr>');
    document.write('            <td height="40" class="border" align="right">');
    document.write('                &copy;2005 SYORYU-GUN ALL Rights Reserved.　');
    document.write('                &copy;2005 GAMEON.CO.,LTD.');
    document.write('            </td>');
    document.write('        </tr>');
}






//----------------------------------------------
//--- プロフィールTBL定義 ----------------------
//----------------------------------------------
// パラメータ：img     画像名
//             name    キャラクター名
//             weapon  使用武器
//             equip   使用装備
//             prof    自己紹介
//----------------------------------------------
function profile(img, name, weapon, equip, prof){
    
    document.write('                    <tr><td align="center" valign="top" class="title_back">');
    
    document.write('                        <table width="600" height="120" border="1" cellspacing="10" cellpadding="5" bgcolor="#000000" bordercolordark="#ffff99" bordercolorlight="#ffff99">');
    document.write('                            <tr>');
    document.write('                                <td width="120" rowspan="2" align="center" class="prof"><img src="../img/profile/' + img + '" border="0" alt="' + name + '" width="100" height="100"></td>');
    document.write('                                <td width="180" class="prof"><b>Name:</b><br>' + name + '</td>');
    document.write('                                <td width="140" class="prof"><b>Weapon:</b><br>' + weapon + '</td>');
    document.write('                                <td width="160" class="prof"><b>Equipment:</b><br>' + equip + '</td>');
    document.write('                            </tr>');
    document.write('                            <tr>');
    document.write('                                <td width="450" colspan="3" class="prof">' + prof + '</td>');
    document.write('                            </tr>');
    document.write('                        </table>');
    
    document.write('                    </td></tr>');
    document.write('                    <tr height="20"><td class="title_back"></td></tr>');
    
}








