
IMG_ADDR = './';


TABLE_MAIN_WIDTH = 1000;
TABLE_MAIN_HEIGHT = 700;
TABLE_MAIN_MARGIN = 20;

TABLE_MAIN_INNERWIDTH = TABLE_MAIN_WIDTH - TABLE_MAIN_MARGIN * 2;

TABLE_TITLE_BGCOLOR = "#FFefEF";

TITLE_COMMENT_FONTSIZE = 11;
TITLE_COMMENT = '毎日様々なピアノと、ピアノを持つお客様に触れ合うことが大好きな調律師が集まるピアノ屋さん';
TITLE_COMPANY_FONTSIZE = 24;
TITLE_COMPANY = 'イーエムピアノネットワーク';
TITLE_ADDRESS_FONTSIZE = 13;
TITLE_ADDRESS = '神奈川県横浜市保土ヶ谷区川辺町2-16-208';
TITLE_PHONE_FONTSIZE = 22;
TITLE_PHONE = '0120-306-355';

TABLE_MENU_SIDELINE_URL = IMG_ADDR + 'laboheme14_3.jpg';
TABLE_MENU_SIDELINE_WIDTH = 100;
TABLE_MENU_WIDTH = 150;
TABLE_MENU_FONTSIZE = 14;
TABLE_MENU_COLOR = "#5a3333";
TABLE_MENU_BGCOLOR = "#FFFFFF";
MENU_ICON = IMG_ADDR + 'arrow_62.gif';


TABLE_LINK_HEIGHT = 192;

TABLE_BODY_HEIGHT = 650;
TABLE_BODY_URL = IMG_ADDR + 'tori.gif';
TABLE_BODY_BG_POS = 'right bottom';

TABLE_BODY_INNER_WIDTH = 700; 
TABLE_BODY_INNER_HEIGHT = 445;

NEWS_WIDTH = 490;
NEWS_HEIGHT = 120;

NEWS2_WIDTH = 180;
NEWS2_HEIGHT = 110;

function html_main() {
	document.writeln('<table cellpadding="0" cellspacing="4" width='+ TABLE_MAIN_WIDTH +' height='+ TABLE_MAIN_HEIGHT +'>');
	document.writeln('  <tr>');
	document.writeln('    <td width='+ TABLE_MAIN_MARGIN +'></td>');

	html_title();

	document.writeln('    <td width='+ TABLE_MAIN_MARGIN +'></td>');
	document.writeln('  </tr>');
	document.writeln('  <tr valign=top>');
	document.writeln('    <td width='+ TABLE_MAIN_MARGIN +'></td>');

	html_menu();

}

function html_hooder() {
	document.writeln('    </td>');
	document.writeln('    <td width='+ TABLE_MAIN_MARGIN +'></td>');
	document.writeln('  </tr>');
	document.writeln('</table>');

// スペシャルサンクス

	document.writeln('<div align=right id="fuwa"><a href="http://shimizumari.com/fuwa2li"><img src="./fuwa_b2.gif" border=0></a></div>');


}

function html_title() {
	document.writeln('    <td>');
 	document.writeln('       <div id="title">');
 	document.writeln('         <table cellpadding="1" cellspacing="1" width='+ TABLE_MAIN_INNERWIDTH +' style="background-color: '+ TABLE_TITLE_BGCOLOR +';">');
 	document.writeln('           <tr>');
	document.writeln('             <td rowspan=2>');
	document.writeln('               <div align=left style="font-size: '+ TITLE_COMMENT_FONTSIZE +'px">'+ TITLE_COMMENT +'</div>');
	document.writeln('               <div align=left style="font-size: '+ TITLE_COMPANY_FONTSIZE +'px">'+ TITLE_COMPANY +'<span class="onpu"> </span></div>');
	document.writeln('             </td>');
	document.writeln('             <td style="font-size: '+ TITLE_ADDRESS_FONTSIZE +'px; text-align:right;">');
	document.writeln('               '+ TITLE_ADDRESS);
	document.writeln('             </td>');
	document.writeln('           </tr>');
	document.writeln('           <tr>');
	document.writeln('             <td style="font-size:'+ TITLE_PHONE_FONTSIZE +'px; text-align:right">');
	document.writeln('               phone: '+ TITLE_PHONE);
	document.writeln('             </td>');
	document.writeln('           </tr>');
  	document.writeln('         </table>');
	document.writeln('        </div>');
	document.writeln('      </td>');


}

function html_menu() {
	document.writeln('      <td>');
	document.writeln('        <table width='+ TABLE_MAIN_INNERWIDTH +' cellpadding="0" cellspacing="0">');
	document.writeln('      	<tr>');
	document.writeln('      	  <td width='+ TABLE_MENU_SIDELINE_WIDTH +' style=" background:url(\''+ TABLE_MENU_SIDELINE_URL +'\');"></td><td width='+ TABLE_MENU_WIDTH +'>');
	document.writeln('      	    <table width='+ TABLE_MENU_WIDTH +' height='+ TABLE_BODY_HEIGHT +' cellpadding="0" cellspacing="4" style="font-size:'+ TABLE_MENU_FONTSIZE +'px; color: '+ TABLE_MENU_COLOR +';background:'+ TABLE_MENU_BGCOLOR +'; ">');
	document.writeln('      	      <tr>');
	document.writeln('      		 <td valign=top>');
	document.writeln('      		   <ul id="sitemenu">');

	for (i=0; i<menu_dat.length; i++) {
		var value = menu_dat[i].split(",");
		document.write('<li id="sitemenu' + value[0] + '">');
		  document.write('<img src="'+ MENU_ICON +'" noborder>');
		  document.write('<a href="'+ value[1] +'">' + value[2] + '</a>');
		document.write('</li>');
		document.writeln();
	}
	
	document.writeln('      		   </ul>');
	document.writeln('      		 </td>');
	document.writeln('      	      </tr>');
	document.writeln('      	      <tr height='+ TABLE_LINK_HEIGHT +' valign=top>');
	document.writeln('      		 <td>');
	document.writeln('      		   <div style="font-size:12px; line-height:17px">');
	document.writeln('      		     登録リンクサイト<br>');
	document.writeln('      		     <A href="http://www.ongakudaisuki.com/" target="_blank">おんがくだいすきドットコム</A><br>');
	document.writeln('	  		     <A href="http://search.soramame.com/" target="_blank">ソラマメ・サーチ</A><br>');
	document.writeln('	  		     <A href="http://www.s-4g.com/index.html" target="_blank">まるるサーチ</A><br>');
	document.writeln('	  		     <A href="http://hiro.tekenweb.com/" target="_blank">HIROサーチ</A><br>');
 	document.writeln('	  		     <A href="http://p-smile.kiy.jp/" target="_blank">P-smile.NAVI</A><br>');
	document.writeln('	  		   </div>');
	document.writeln('	  		   <div class="explain">');
 	document.writeln('	  		     業務内容/ピアノ調律,ピアノ修理,ピアノリニューアル,ピアノ販売,ピアノ買取,ピアノクリーニング,ピアノ塗装,中古ピアノ買取,ピアノ地震対策,耐震用シュレーター出張設置,ピアノ運送,ピアノ保管,piano tuning,業務エリア/神奈川県,東京都,千葉県,埼玉県,栃木県,山梨県,静岡県,横浜市,川崎市,相模原市,関東全域,ヤマハ,カワイ,アップライトピアノ,グランドピアノ,調律士,調律師,');
	document.writeln('	  		   </div>');
	document.writeln('	  		 </td>');
	document.writeln('	  	      </tr>');
	document.writeln('	  	    </table>');
	document.writeln('	  	  </td>');
}


function html_body(hTITLE, hTITLEALIGN, hTITLEPOS, hBGURL, hBGPOS) {
	document.writeln('	  	  <td width=* valign=top style="background:#ffffff url(\''+ TABLE_BODY_URL +'\') no-repeat '+ TABLE_BODY_BG_POS +';">');
	document.writeln('	           <br>');
	document.write('	           <div align="'+ hTITLEALIGN +'">');
	if (hTITLEALIGN == 'left') { for (i=0;i<hTITLEPOS;i++) {document.write('&nbsp;');}}
	document.write('		      <u>'+ hTITLE +'</u>');
	if (hTITLEALIGN == 'right') { for (i=0;i<hTITLEPOS;i++) {document.write('&nbsp;');}}
	document.writeln('		    </div>');
	document.writeln('	           <table width='+ TABLE_BODY_INNER_WIDTH +' height='+ TABLE_BODY_INNER_HEIGHT +' cellpadding="0" cellspacing="10" style="background:url(\''+ hBGURL + '\') no-repeat '+ hBGPOS +';">');

}

function news_output() {
	document.writeln('<div class="news" style="width: '+ NEWS_WIDTH +'px;height: '+ NEWS_HEIGHT +'px;">');
	document.writeln('  <div style="color: #cc0000; font-family:Verdana,Arial,sans-serif;">イーエム 新着記事情報</div>');
	document.writeln('  <ul style="margin: 0.3em 0.3em 0.3em 0.3em; list-style-tyupe: disc">');

	for(i=0; i<NEWS.length; i++) {
		document.writeln("<li class=\"news\">"+NEWS[i]+"</li>");
	}

	document.writeln('  </ul>');
	document.writeln('</div>');

}

function news2_output() {
	document.writeln('<div class="news" style="width: '+ NEWS2_WIDTH +'px;height: '+ NEWS2_HEIGHT +'px;">');
	document.writeln('  <div style="color: #cc0000; font-family:Verdana,Arial,sans-serif;">ご成約状況<small>(2010.5〜)</small></div>');
	document.writeln('  <ul style="margin: 0.3em 0.3em 0.3em 0.3em; list-style-tyupe: disc">');

	for(i=0; i<NEWS2.length; i++) {
		document.writeln("<li class=\"news2\">☆"+NEWS2[i]+"</li>");
	}

	document.writeln('  </ul>');
	document.writeln('</div>');

}

function flame_open(width, height, overflow, style) {
	document.writeln('<div class="news" style="width: '+ width +'px;height: '+ height +'px;overflow: '+ overflow +'; '+ style +'">');
}

function flame_close() {
	document.writeln('</div>');

}
