

var Root = 'http://www.delihel.co.jp/';

//---------------------------------------------------------------------------------------
//   MenuWrite
//---------------------------------------------------------------------------------------
MenuArray = [
  ['UP速報','up','n1','_parent'],
  ['出勤予定','syukkin','n2','_parent'],
  ['新人情報','newface','n3','_parent'],
  ['常連様特典','vip','n4','_parent'],
  ['ホテル料金','hotel','n5','_parent'],
  ['ご利用案内','system','n6','_parent'],
  ['割引イベント','event','n7','_parent'],
  ['掲示板','bbs/bbs.cgi','n8','_parent']
];

function naviWrite(Position){
var s = new String();
s += '<ul id="navi">';

for(i=0;i<MenuArray.length;i++){
  s += '<li class="' + MenuArray[i][2] + '">';
  
  if(Position == MenuArray[i][1]){
    s += MenuArray[i][0];
  }else if(MenuArray[i][1] == ''){
    s += '<a href="' + Root + '" title="' + MenuArray[i][0] + '">' + MenuArray[i][0] + '</a>';
  }else{
    s += '<a href="' + Root + MenuArray[i][1] + '" title="' + MenuArray[i][0] + '" target="' + MenuArray[i][3] + '">' + MenuArray[i][0] + '</a>';
  } 
  s += '</li>\n';
}
s += '</ul>';

s += '<ul id="shopNavi">';
s +=    '<li class="s1"><a href="http://www.harejo.co.jp/main.htm" target="_blank">ハレンチ女学園</a></li>';
s +=    '<li class="s2"><a href="http://www.kyonyu.co.jp/main.htm" target="_blank">巨乳カレッジ</a></li>';
s +=   ' <li class="s3"><a href="http://www.haretsuma.co.jp/main.htm" target="_blank">ハレンチな妻たち</a></li>';
s +=  '</ul>';
s +=  '<hr />';

document.write(s);
}

//---------------------------------------------------------------------------------------
//   formWrite
//---------------------------------------------------------------------------------------
function leftContWrite() {
	var s = new String();
	s += '<dl class="mobile">';
    s += '      <dt>モバイルサイト</dt>';
    s += '      <p>携帯でもご覧になれます</p>';
	s += '<form name="mobile" id="mobile" style="margin:0px;" onsubmit="Send_Addr(document.mobile.addr.value,document.mobile.domain.options[document.mobile.domain.selectedIndex].value);return false;">';
    s += '        <input size="16" type="text" name="addr" value="携帯アドレスを記入" class="input_text" onfocus="focusText(\'mobile\')" onblur="blurText(\'mobile\')" style="margin:0 2px 0px 0; width:130px;" />@<br />';
    s += '        <select name="domain" style="width:115px;">';
    s += '          <option value="docomo.ne.jp" selected="selected">docomo.ne.jp</option>';
    s += '          <option value="ezweb.ne.jp">ezweb.ne.jp</option>';
    s += '          <option value="softbank.ne.jp">softbank.ne.jp</option>';
    s += '          <option value="b.vodafone.ne.jp">h.vodafone.ne.jp</option>';
    s += '          <option value="h.vodafone.ne.jp">h.vodafone.ne.jp</option>';
    s += '          <option value="t.vodafone.ne.jp">t.vodafone.ne.jp</option>';
    s += '          <option value="c.vodafone.ne.jp">c.vodafone.ne.jp</option>';
    s += '          <option value="k.vodafone.ne.jp">k.vodafone.ne.jp</option>';
    s += '          <option value="r.vodafone.ne.jp">r.vodafone.ne.jp</option>';
    s += '          <option value="n.vodafone.ne.jp">n.vodafone.ne.jp</option>';
    s += '          <option value="s.vodafone.ne.jp">s.vodafone.ne.jp</option>';
    s += '          <option value="q.vodafone.ne.jp">q.vodafone.ne.jp</option>';
    s += '        </select>';
    s += '        <input type="image" class="send" src="'+ Root +'images/send.jpg" value=" 送信 " />';
	s += '	  </form>';
    s += '  </dl>';
	
	s += '<ul id="leftLink">';
    s += '  <li><a href="'+ Root +'magazine/"><img src="'+ Root +'images/magazine.jpg" alt="メールマガジン" /></a></li>';
	s += '  <li><a href="javascript:void(0);" onclick="window.open(\'http://www.harenchi.co.jp/cell/clubharenchi.htm\',\'event\',\'width=500,height=500,scrollbars=yes\');"><img src="'+ Root +'images/mobile_mail.jpg" alt="メールマガジン" /></a></li>';
    s += '  <li><a href="http://www.cnf.co.jp/recruit/shharenchi/" target="_blank"><img src="'+ Root +'/images/g_rec.jpg" alt="女の子大募集" /></a></li>';
    s += '  <li><a href="http://www.delihel.co.jp/recruit/" target="_blank"><img src="'+ Root +'/images/b_rec.jpg" alt="男性社員・アルバイト募集" /></a></li>';
    s += '</ul>';
	


document.write(s);
}

//---------------------------------------------------------------------------------------
//   foorNavi
//---------------------------------------------------------------------------------------
function footWrite() {
	var s = new String();
    s += '<ul id="footNavi">';
    s += '  <li><a href="/main.htm">HOME</a></li>';
    s += '  <li><a href="/up/">UP速報</a></li>';
    s += '  <li><a href="/syukkin/">出勤予定</a></li>';
    s += '  <li><a href="/newface/">新人速報</a></li>';
    s += '  <li><a href="/vip/">常連様特典</a></li>';
    s += '  <li><a href="/hotel/">ホテル料金</a></li>';
    s += '  <li><a href="/system/">ご利用案内</a></li>';
    s += '  <li><a href="/search/">女の子検索</a></li>';
    s += '  <li><a href="/mail/">お問い合わせ</a></li>';
//    s += '  <li id="gotop"><a href="#top"><img src="'+ Root +'images/gotop.jpg"></a></li>';
    s += '</ul>';
    s += '<p>Copyright (C) 1998-2008 Club Harenchi All rights reserved.<br />掲載されている全てのコンテンツは「クラブハレンチ新宿歌舞伎町風俗店・ホテルヘルス情報」が著作権を所有しています。無断転載および無許可での使用はご遠慮願います。</p>';
    s += '<ul id="footLink">';
    s += '  <li><a href="http://www.nightwalker.co.jp/" target="_blank"><img src="http://www.delihel.co.jp/images/ban/nw.gif" alt="風俗情報ナイトウォーカー" /></a></li>';
    s += '  <li><a href="http://www.delihelwalker.com/" target="_blank"><img src="http://www.delihel.co.jp/images/ban/dw.gif" alt="風俗情報デリヘルウォーカー" /></a></li>';
    s += '  <li><a href="http://www.soapwalker.com/" target="_blank"><img src="http://www.delihel.co.jp/images/ban/sw.gif" alt="風俗情報ソープウォーカー" /></a></li>';
    s += '</ul>';
	s += '<hr />';
//	s += '<div id="gotop"><a href="#top">TOP</a></div>';
document.write(s);
}


//---------------------------------------------------------------------------------------
//   汎用WindowOpen
//---------------------------------------------------------------------------------------
function winopen(ads,wname,wi,he,tf) {
  if(!tf) tf=',scrollbars=no';
  prop = 'width=' + wi + ',height=' + he + tf;
  CWin = window.open(ads,wname,prop);
  CWin.focus();
}


//---------------------------------------------------------------------------------------
//   eventWindowOpen
//---------------------------------------------------------------------------------------
function eventOpen(Target,W,H,P){
  var s = new String();
  s += '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n';
  s += '<html lang="ja">\n';
  s += '<head>\n';
  s += '<meta http-equiv="content-language" content="jp">\n';
  s += '<meta http-equiv="content-type" content="text/html;charset=Shift_JIS">\n';
  s += '<meta http-equiv="content-script-type" content="text/javascript">\n';
  s += '<meta http-equiv="content-style-type" content="text/css">\n';
  s += '<style type="text/css">\n';
  s += '<!--\n';
  s += 'body { background:#f7f4df; margin:0px;padding:10px;}\n';
  s += 'a img{border:1px solid #d9d3a5; padding:10px;\n}';
 // s += 'input{background:#555; background:#2badff; border:1px solid #dddddd; color:#ffffff; font-size:10px; padding:5px 10px 10px 5px;}';
  s += '.print{text-align:center; width:440px; margin:10px 0 0 0;}';
  s += '-->\n';
  s += '</style>';
  s += '<title>クラブハレンチ</title>\n';
  s += '</head>\n';
  s += '<body>\n';
  s += '<div align="center">\n';
  s += '<a href="javascript:void(0);" onClick="window.close();"><img src="'+ Root +'event/'+Target+'/swf.jpg"></a>\n';
  s += '<div class="print" margin:10px 0 0 0;"><input type="button" value="print" onClick="javascript:window.print();"></div>'
  s += '</div>\n';
  //if(P == 'yes'){
    
  //}
  s += '</body>\n';
  s += '</html>\n';
  coverWin = window.open('','Images','width=' + W + ',height=' + H + ',scrollbars=no');
  coverWin.document.open();
  coverWin.document.write(s);
  coverWin.document.close();
  coverWin.focus();
}

//---------------------------------------------------------------------------------------
// kikakuWindowOpen
//---------------------------------------------------------------------------------------
function kikakuWin(Target){
  window.open('http://www.delihel.co.jp/kikaku/' + Target + '/index.htm','EVENT','width=480,height=640');
}

//---------------------------------------------------------------------------------------
// eventWindowOpen
//---------------------------------------------------------------------------------------
function eventWin(Target){
  window.open('http://www.delihel.co.jp/event/' + Target + '/index.htm','EVENT','width=480,height=640');
}


//---------------------------------------------------------------------------------------
//  movieWindowOpen
//---------------------------------------------------------------------------------------
function MovieOpen(Target){
  window.open('http://mov.nightwalker.co.jp/nw_swf/open2.html?' + Target,'MOVIE','width=451,height=326');
}

//---------------------------------------------------------------------------------------
//  MagRecord
//---------------------------------------------------------------------------------------
function MagRecord(myAddr,myDomain,Typeon,Typeoff){
  if(myAddr == ''){
    alert('メールアドレスを入力してから送信ボタンを押してください.');
    return;
  }
  if(!Typeon&&!Typeoff){
    alert('登録か解除を選択してから送信ボタンを押してください.');
    return;
  }
  if(Typeon){
    myType = "on";
  }else{
    myType = "off";
  }
    nWin = window.open('/cgi-bin/magazine/m.cgi?mail_add=' + myAddr + '@' + myDomain + '&anl=chk_send&subscribe=' + myType,'','width=365,height=200');
    var sw = screen.width;
    var sh = screen.height;
    var w = (sw-200)/2;
    var h = (sh-300)/2;
    window.nWin.moveTo(w,h);
}
function MagRecordpc(myAddr,Typeon,Typeoff){
  if(myAddr == ''){
    alert('メールアドレスを入力してから送信ボタンを押してください.');
    return;
  }
  if(!Typeon&&!Typeoff){
    alert('登録か解除を選択してから送信ボタンを押してください.');
    return;
  }
  if(Typeon){
    myType = "on";
  }else{
    myType = "off";
  }
    nWin = window.open('/cgi-bin/magazine/m.cgi?mail_add=' + myAddr + '&anl=chk_send&subscribe=' + myType,'','width=365,height=200');
    var sw = screen.width;
    var sh = screen.height;
    var w = (sw-200)/2;
    var h = (sh-300)/2;
    window.nWin.moveTo(w,h);
}


function AddrSend(addr,domain){
  if(addr == ''){
    alert('メールアドレスを入力してから送信ボタンを押してください.');
    return;
  }
  sends = addr + "@" + domain;
  nWin = window.open(Root + 'cgi-bin/i/addr_send.cgi?addr=' + sends,'','width=300,height=100');
  var sw = screen.width;
  var sh = screen.height;
  var w = (sw-200)/2;
  var h = (sh-300)/2;
  window.nWin.moveTo(w,h);
}


//---------------------------------------------------------------------------------------
//   FlashPlayerVersionの判定
//---------------------------------------------------------------------------------------
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
    for (var i = 0; i < words.length; ++i){
		if (isNaN(parseInt(words[i]))){
		continue;
		}
		MM_PluginVersion = words[i]; 
    }
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
    document.write('MM_contentVersion = Array("7","6","5")\n');
	document.write('MM_PluginVersion = 0\n');
	document.write('for i=0 to 2\n');
	document.write('if IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion(i))) then\n');
	document.write('MM_PluginVersion = MM_contentVersion(i)\n');
	document.write('exit for\n');
	document.write('end if\n');
	document.write('next');
	document.write('</SCR' + 'IPT\> \n');
}else {
	MM_PluginVersion = 0;
}
//FlashPlayerVersionの判定
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
    for (var i = 0; i < words.length; ++i){
		if (isNaN(parseInt(words[i]))){
		continue;
		}
		MM_PluginVersion = words[i]; 
    }
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
    document.write('MM_contentVersion = Array("7","6","5")\n');
	document.write('MM_PluginVersion = 0\n');
	document.write('for i=0 to 2\n');
	document.write('if IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion(i))) then\n');
	document.write('MM_PluginVersion = MM_contentVersion(i)\n');
	document.write('exit for\n');
	document.write('end if\n');
	document.write('next');
	document.write('</SCR' + 'IPT\> \n');
}else {
	MM_PluginVersion = 0;
}
//フラッシュのためのスクリプト
function EmbedPlugIn(id,source,width,height,param,version){
	// Active X の classID の判別
	var classID; var CodeBase; var PlugInSpace; var MimeType;
	if(source.match("swf$")){
		if(MM_PluginVersion >= version){
		classID = 'clsid:D27CDB6E-AE6D-11CF-96B8-444553540000';
		CodeBase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab';
		PlugInSpace = 'http://www.macromedia.com/go/getflashplayer';
		MimeType = 'application/x-shockwave-flash';
		TargetFile = '<param name="movie" value="' + source + '">'; // Flash の場合は Param name="movie"
		}else{
		  eval(id)();
		  return;
		}
	}else if(source.match("mov$")){
		classID = 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';
		CodeBase = 'http://www.apple.com/qtactivex/qtplugin.cab';
		PlugInSpace = 'http://www.apple.co.jp/quicktime/download/';
		MimeType = 'video/quicktime';
		TargetFile = '<param name="src" value="' + source + '">'; // QT の場合は Param name="src"
	}

	document.write('<object classid="' + classID + '" id="');
	document.write(id);
	document.write('" width="' + width + '" height="' + height + '" codebase="' + CodeBase + '">');
	document.write(TargetFile);
	var Params = new Array(); // 受け取ったパラメータを分解して格納する
	var forEmbed = new Array(); // embed 用の一時配列
	Params = param.split(","); // パラメータをカンマで分解、配列に格納
	for(i=0; i<Params.length; i++){ // パラメータの数だけループして処理
		var Tmp = new Array(); // パラメータの属性と値を一時的に格納する配列
		Tmp = Params[i].split(":"); // Tmp[0] が属性、Tmp[1] が値
		document.write('<param name="' + Tmp[0] + '" value="' + Tmp[1] + '">');
		forEmbed[i] = Tmp[0] + '="' + Tmp[1] + '"'; // embed 用に「属性="値"」を作成し一時配列に格納
	}
	//embed 用のパラメータをまとめる
	var EmbedParam = forEmbed.join(" "); // 「属性="値"」をスペースで文字列にする
	if(source.match("swf$")){EmbedParam += ' swiliveconnect="true"'}
	document.write('<embed width="' + width + '" height="' + height + '" src="' + source + '" ' + EmbedParam + ' type="' + MimeType + '" pluginspage="' + PlugInSpace + '"></embed>');
	document.write('</object>');
}
//フラッシュプレーヤーのバージョンが「version」パラメータ以下の場合
function mainswf(){
	document.write('<div style="width:780px; height:370px; border:1px solid #fff; background-color:#fff;">');
	document.write('<div style="font-size:12px; color:#333; text-align:center; margin-top:150px;">');
	document.write('このスペースのコンテンツ表示には最新のFlashPlayerが必要です。');
	document.write('<a href="http://www.macromedia.com/jp/shockwave/download/?P1_Prod_Version=ShockwaveFlash&Lang=Japanese" target="flash">こちらからダウンロードして下さい。</a>');
	document.write('</div>');
	document.write('</div>');
}




// 共通フッタ
function HareFoot(){
  document.write('  <hr size="1">\n');
  document.write('<table style="clear:left; width:740px; margin:0px auto; padding-top:0px; font-size:10px; " border="0" cellpadding="0" cellspacing="0">\n');
  document.write('  <tr>\n');
  document.write('    <td width="500"><a href="http://www.delihel.co.jp/index.htm" target="_blank"><img src="http://www.delihel.co.jp/new_images/foot_rogo.gif" border="0" alt="新宿歌舞伎町風俗店・ホテルヘルス情報"></a></td>\n');
  document.write('</tr><tr>');
  document.write('<td><div class="esioh"></div>\n');
  document.write('    Copyright (C) 1998-2006 Club Harenchi All rights reserved. \n');
  document.write('掲載されている全てのコンテンツは「クラブハレンチ新宿歌舞伎町風俗店・ホテルヘルス情報」が著作権を所有しています。<br>\n');
  document.write('無断転載および無許可での使用はご遠慮願います。</td>\n');
  document.write('  </tr>\n');
  document.write('</table>\n');
}

// 共通フッタNEW
function DeliFoot(){
  document.write('<div class="footCont">\n');
  document.write('  <p>Copyright (C) 1998-2009 Club Harenchi All rights reserved. <br />\n');
  document.write('  掲載されている全てのコンテンツは「クラブハレンチ新宿歌舞伎町風俗店・ホテルヘルス情報」が著作権を所有しています。<br />\n');
  document.write('  無断転載および無許可での使用はご遠慮願います。</p>\n');
  document.write('  <ul>\n');
  document.write('    <li><a href="http://www.nightwalker.co.jp/" title="風俗店情報ナイトウォーカー" target="_blank"><img src="http://www.harenchi.co.jp/yokohama/new_images/banner/nw.gif" alt="風俗店情報ナイトウォーカー" /></a></li>\n');
  document.write('    <li><a href="http://www.delihelwalker.com" title="デリヘル情報(東京、神奈川、埼玉、千葉)デリヘルウォーカー" target="_blank"><img src="http://www.harenchi.co.jp/yokohama/new_images/banner/dw.gif" alt="デリヘル情報(東京、神奈川、埼玉、千葉)デリヘルウォーカー" /></a></li>\n');
  document.write('    <li><a href="http://www.soapwalker.com/" title="ソープ情報(吉原、川崎)ソープウォーカー" target="_blank"><img src="http://www.harenchi.co.jp/yokohama/new_images/banner/sw.gif" alt="ソープ情報(吉原、川崎)ソープウォーカー" /></a></li>\n');
  document.write('    <li><a href="http://www.cnf.co.jp/" title="高収入アルバイト風俗求人クラブネットフードル" target="_blank"><img src="http://www.cnf.co.jp/links/images/cnf_bana/cnf88_31_3.gif" alt="高収入風俗求人アルバイト情報クラブネットフードル" /></a></li>\n');
  document.write('    <li><a href="http://www.7city.jp/index.cgi?03034" title="風俗総合情報セブンシティ" target="_blank"><img src="http://www.harenchi.co.jp/tokyo/images/bana/7city.jpg" alt="風俗総合情報セブンシティ" /></a></li>\n');
  document.write('    <li><a href="http://www.otosen.com/" target="_blank" title="風俗総合情報"><img src="http://www.harenchi.co.jp/link/bimg/otosen.jpg" alt="風俗総合情報／おとせんパンチ" /></a></li>\n');
  document.write('    <li><a href="http://www.lvg.co.jp/" target="_blank"><img src="http://www.harenchi.co.jp/link/bimg/lvg.gif" alt="風俗情報ラブギャラリー"></a></li>\n');
  document.write('  </ul>\n');
  document.write('  <hr />\n');
  document.write('</div>\n');
}


// 共通左メニュー
function deliLeft(){
  document.write('<div class="history">\n');
  document.write('          <h3>ご来店記録</h3>\n');
  document.write('          <div class="cont">\n');
  document.write('            <p>下記フォームに必要事項を入力し「GO」を押すと以前に遊ばれた女の子をご覧頂けます。</p>\n');
  document.write('            <form action="http://www.delihel.co.jp/history/" method="post" target="_blank">\n');
  document.write('              <input type="hidden" name="anl" value="view">\n');
  document.write('              <span>お名前</span>\n');
  document.write('              <input type="text" name="name" value="" size="21"><br />\n');
  document.write('              <span>暗証番号</span>\n');
  document.write('              <input type="password" name="id" value="" size="21"><br />\n');
  document.write('              <input type="image" src="'+ Root +'/images/history_go.jpg" value="GO!">\n');
  document.write('            </form>\n');
  document.write('          </div>\n');
  document.write('          <p class="end"></p>\n');
  document.write('        </div>\n'); 
  document.write('        <div class="magazine">\n');
  document.write('          <h3>メールマガジン</h3>\n');
  document.write('          <div class="cont">\n');
  document.write('            <dl>\n');
  document.write('              <dt>毎週火曜日・絶好調配信中！</dt>\n');
  document.write('              <dd>クラブハレンチ各店の、おすすめ情報や、お得なイベント情報、女の子情報等！<br />\n');
  document.write('              様々な情報を絶賛配信中！<br />\n');
  document.write('              もちろんご登録は無料です！</dd>\n');
  document.write('              <dd><a href="http://www.delihel.co.jp/magazine/" target="_blank">ご登録はこちら！</a></dd>\n');
  document.write('            </dl>\n');
  document.write('          </div>\n');
  document.write('          <p class="end"></p>\n');
  document.write('        </div>\n');
  document.write('        <div class="mobilemagazine">\n');
  document.write('          <h3>モバイル版メールマガジン</h3>\n');
  document.write('          <div class="cont">\n');
  document.write('            <dl>\n');
  document.write('              <dt>ご利用の携帯に不定期配信！</dt>\n');
  document.write('              <dd>携帯メルマガ登録者の方には登録者限定のお得なイベント、お得な割引情報を配信！携帯電話から素早くチェック！</dd>\n');
  document.write('              <dd><a href="javascript:void(0);" onclick="window.open(\'http://www.harenchi.co.jp/cell/clubharenchi.htm\',\'event\',\'width=540,height=580,scrollbars=yes\');">ご登録はこちら！</a></dd>\n');
  document.write('            </dl>\n');
  document.write('          </div>\n');
  document.write('          <p class="end"></p>\n');
  document.write('        </div>\n');
  document.write('        <div class="box">\n');
  document.write('          <h4>お知らせ</h4>\n');
  document.write('          <ul>\n');
  document.write('            <li><a href="http://www.cnf.co.jp/recruit/shharenchi/" target="_blank" title="CNFリクルート"><img src="http://www.harenchi.co.jp/tokyo/kikaku/00kyujinBana/bana.gif" alt="女の子求人情報" /></a></li>\n');
  document.write('            <li><a href="http://www.hdoor.com/i/club/" target="_blank" title="女の子求人情報"><img src="http://www.harenchi.co.jp/tokyo/kikaku/00kyujinBana/bana_heavensdoor.jpg" alt="女の子求人情報" /></a></li>\n');
  document.write('          </ul>\n');
  document.write('        </div>\n');
  document.write('        <div class="box">\n');
  document.write('          <h4>グループニュース</h4>\n');
  document.write('          <ul>\n');
  document.write('            <li><a href="http://www.kyonyu.co.jp/main.htm" target="_blank" title="巨乳カレッジ"><img src="http://www.delihel.co.jp/images/bana/kyonyu_bana.jpg" alt="巨乳カレッジ"></a></li>\n');
  document.write('            <li><a href="http://www.harejo.co.jp/main.htm" target="_blank" title="ハレンチ女学園"><img src="http://www.delihel.co.jp/images/bana/harejo_bana.jpg" alt="ハレンチ女学園"></a></li>\n');
  document.write('            <li><a href="http://www.haretsuma.co.jp/main.htm" target="_blank" title="ハレンチな妻たち"><img src="http://www.delihel.co.jp/images/bana/haretsuma_bana.jpg" alt="ハレンチな妻たち"></a></li>\n');  
  document.write('          </ul>\n');
  document.write('        </div>\n');
}

Gazou = new Array();
 for(i=1; i<=3; i++){
  Gazou[i] = new Image();
  Gazou[i].src="./images/"+i+"_on.jpg";
 }

 function ChgImg(start,end){
    for(i=start; i<=end; i++){
      if(document.getElementById){
	    document.getElementById("IMG"+i).src= Gazou[i].src;
      }else if(document.all){
	    document.all("IMG"+i).src= Gazou[i].src;
      }
      if(start==i){
        if(document.getElementById){
          document.getElementById("BkCol"+i).style.backgroundColor="#EC008C";
        }else if(document.all){
          document.all("BkCol"+i).style.backgroundColor="#EC008C";
        }
      }
    }
	}

  function ReturnImg(start,end){
    for(i=start; i<=end; i++){
      if(document.getElementById){
	    document.getElementById("IMG"+i).src="./images/"+i+".jpg";
      }else if(document.all){
	    document.all("IMG"+i).src="./images/"+i+".jpg";
      }
      if(start==i){
        if(document.getElementById){
          document.getElementById("BkCol"+i).style.backgroundColor="#58595B";
        }else if(document.all){
          document.all("BkCol"+i).style.backgroundColor="#58595B";
        }

      }
    }
	}


function MenuPut(onselectid) {

  //トップメニュー初期設定

        //ボタンスタイルセット
        ButtonStyle = "" ;
        ButtonStyle += "font-size: 11px;" ;
        ButtonStyle += "color:black;" ;
        ButtonStyle += "padding: 3px 5px 3px 3px;" ;
        ButtonStyle += "cursor:pointer;" ;
        ButtonStyle += "vertical-align: middle ;" ;
        ButtonStyle += "line-height:12px;" ;
        //メニューセット
        menu_config = new Object() ;
        menu_config.width = 725 ;
        menu_config.height = 45 ;
        menu_config.color = "cecfce" ;
        menu_config.topselect = onselectid ;

        //エリアメニュー
        area_array = [
          [ "id"      , "name"              , "action" , "value"                                , "visible" , "color"  , "hover_color" , "active_color"  ] ,
                [ "yk_area" , "横浜／川崎"  , "open"   , "http://www.harenchi.co.jp/yokohama/"  , "all"     , "cecfce" , "d6ffff"      , "6bffff"        ] ,
                [ "tk_area" , "東京"        , "open"   , "http://www.harenchi.co.jp/tokyo/"            , "all"     , "cecfce" , "d6ffff"      , "6bffff"        ] ,
                [ "sj_area" , "新宿ホテヘル"        , "open"   , "http://www.delihel.co.jp/"            , "all"     , "cecfce" , "d6ffff"      , "6bffff"        ] ,
                [ "sp_area" , "札幌"        , "open"   , "http://www.harenchi.co.jp/sapporo/"   , "all"     , "cecfce" , "d6ffff"      , "6bffff"        ] ,
                [ "fk_area" , "福岡"        , "open"   , "http://www.harenchi.co.jp/fukuoka/"   , "all"     , "cecfce" , "d6ffff"      , "6bffff"        ],
                [ "km_area" , "熊本"        , "open"   , "http://www.harenchi.co.jp/kumamoto/"   , "all"     , "cecfce" , "d6ffff"      , "6bffff"        ]
        ] ;

        //コンテンツメニュー
        content_array = [
          [ "id"          , "name"           , "action"   , "value"     , "visible" , "color"  , "hover_color" , "active_color"  ] ,
                [ "sj_contents" , "コンテンツ" , "menuopen" , "sjcontent" , "all"     , "cecfce" , "ffd7ff"      , "ff9cff"        ]
        ] ;

        //メニュー
        zone_array = [
          [ "id"            , "name"     , "action"    , "value"      , "visible"                       , "color"  , "hover_color" , "active_color"  ] ,
                [ "sj_shops"      , "デリヘル店" , "menuopen"  , "sjshop"     , "all"                           , "cecfce" , "ceffce"      , "9cff9c"        ] 
//                [ "yk_frequenter" , "常連入口" , "form_view" , "frequenter" , "yk_contents,yk_shops,kw_shops" , "cecfce" , "ceffff"      , "9cffff"        ]
        ] ;

        //各種メニュー
        menu_array = new Object() ;
       //新宿コンテンツ
        menu_array["sjcontent"] = [
          [ "id"                   , "name"            , "action"     , "value"        , "color"  , "hover_color" , "active_color"  ] ,
                [ "sjcontents_up"          , "UP速報"          , "open"       , "http://www.delihel.co.jp/up/"              , "ff9eff" , "ffd7ff"      , "ff69ff"        ] ,
                [ "sjcontents_new"         , "新人情報"        , "open"       , "http://www.delihel.co.jp/newface/"           , "ff9eff" , "ffd7ff"      , "ff69ff"        ] ,
                [ "sjcontents_search"      , "女の子検索"      , "open"       , "http://www.delihel.co.jp/search/"            , "ff9eff" , "ffd7ff"      , "ff69ff"        ] ,
                [ "sjcontents_syukkin"     , "全店出勤表"      , "open"       , "http://www.delihel.co.jp/syukkin/"            , "ff9eff" , "ffd7ff"      , "ff69ff"        ] ,
//                [ "sjcontents_midnight"    , "深夜出勤表"      , "open"       , "http://www.delihel.co.jp/syukkin/midnight.htm"            , "ff9eff" , "ffd7ff"      , "ff69ff"        ] ,
// 		[ "sjcontents_taiken"      , "体験マンガ"        , "script"     , "window.open('http://www.delihel.co.jp/manga/','manga','scrollbars=yes,width=560,height=680');"              , "ff9eff" , "ffd7ff"      , "ff69ff"        ] ,
                [ "sjcontents_search"      , "アクセスマップ"      , "script"       , "window.open('http://www.delihel.co.jp/map/index.htm','osirase','scrollbars=no,width=720,height=580');"            , "ff9eff" , "ffd7ff"      , "ff69ff"        ] ,
//                [ "sjcontents_bbs"         , "掲示板一覧"      , "open"       , "http://www.delihel.co.jp/bbs/index.htm"            , "ff9eff" , "ffd7ff"      , "ff69ff"        ] ,
                [ "sjcontents_magazine"         , "メールマガジン"      , "open"       , "http://www.delihel.co.jp/magazine/"            , "ff9eff" , "ffd7ff"      , "ff69ff"        ]// ,
//                [ "sjcontents_magazine"    , "メルマガ"        , "subwindow"  , "http://h-mag.harenchi.co.jp/haremail/h_mag/h_mag.htm"  , "ff9eff" , "ffd7ff"      , "ff69ff"        ] 
        ] ;

        //横浜店舗
        menu_array["ykshop"] = [
          [ "id"           , "name"              , "action"     , "value"                       , "color"  , "hover_color" , "active_color" ] ,
                [ "yk_milk"      , "ナースＤＥ横浜"    , "open"       , "http://www.yk-milk.com"      , "ffff9c" , "ffffce"    , "ffff6b"  ] ,
                [ "yk_cute"      , "キュートクラブ"    , "open"       , "http://www.yk-cute.com"      , "ffff9c" , "ffffce"    , "ffff6b"  ] ,
                [ "yk_hamahel"   , "ハマヘル同好会"    , "open"       , "http://www.yk-hamahel.com"   , "ffff9c" , "ffffce"    , "ffff6b"  ] ,
                [ "yk_caprico"   , "カプリ娘"          , "open"       , "http://www.yk-caprico.com"   , "ffff9c" , "ffffce"    , "ffff6b"  ] ,
                [ "yk_matto"     , "マットＤＥ横浜"    , "open"       , "http://www.yk-matto.com"     , "ffff9c" , "ffffce"    , "ffff6b"  ] ,
                [ "yk_boing"     , "ボーイング９９"    , "open"       , "http://www.yk-boing.com"     , "ffff9c" , "ffffce"    , "ffff6b"  ] ,
                [ "yk_bully"     , "イッツ・ブーリー"  , "open"       , "http://www.yk-bully.com"     , "ffff9c" , "ffffce"    , "ffff6b"  ] ,
                [ "yk_wife"      , "クラブワイフ"      , "open"       , "http://www.yk-wife.com"      , "ffff9c" , "ffffce"    , "ffff6b"  ] ,
                [ "yk_kintsuma"  , "金妻倶楽部"        , "open"       , "http://www.yk-kintsuma.com"  , "ffff9c" , "ffffce"    , "ffff6b"  ]
        ] ;

        //川崎店舗
        menu_array["kwshop"] = [
          [ "id"         , "name"                    , "action"     , "value"                      , "color"  , "hover_color" , "active_color" ] ,
                [ "kw_matty"   , "マッティ−夫人南町店"    , "open"       , "http://www.kw-matty.com/"   , "9cffff" , "ceeffff"      , "6bffff"       ] ,
                [ "kw_matty2"  , "マッティ−夫人堀之内店"  , "open"       , "http://www.kw-matty2.com/"  , "9cffff" , "ceeffff"      , "6bffff"       ]
        ] ;

        //東京店舗
        menu_array["tkshop"] = [
          [ "id"         , "name"                    , "action"     , "value"                      , "color"  , "hover_color" , "active_color" ] ,
                [ "tk_celeb"   , "セレブショップ新宿"    , "open"       , "http://www.tk-celeb.jp/"   , "ffce00" , "ffce66"    , "ffce33"       ],
                [ "tk_pafe"   , "鶯谷スポーツパフェ"    , "open"       , "http://www.tk-pafe.jp/"   , "ffce00" , "ffce66"    , "ffce33"       ],
                [ "tk_maid"   , "メイドin中野"    , "open"       , "http://www.tk-maid.jp/"   , "ffce00" , "ffce66"    , "ffce33"       ]
        ] ;


        //新宿店舗
        menu_array["sjshop"] = [
          [ "id"            , "name"              , "action"     , "value"                        , "color"  , "hover_color" , "active_color" ] ,
          [ "sj_haretsuma"  , "ハレンチな妻たち"  , "open"       , "http://www.haretsuma.co.jp/main.htm"  , "9cff9c" , "ceffce"     , "6bff6b"       ] ,
          [ "sj_kyonyu"     , "巨乳カレッジ"      , "open"       , "http://www.kyonyu.co.jp/main.htm"     , "9cff9c" , "ceffce"     , "6bff6b"       ] ,
          [ "sj_harejo"     , "ハレンチ女学園"    , "open"       , "http://www.harejo.co.jp/main.htm"     , "9cff9c" , "ceffce"     , "6bff6b"       ] 
          //[ "hare_ol"       , "ボディーライン"    , "open"       , "http://www.hare-ol.com/main.htm"      , "9cff9c" , "ceffce"     , "6bff6b"       ] 
        ] ;

        form_array = new Object() ;

        //クォーテーション、ダブルクォーテーションは使えないので注意
        FormStyle = "" ;
        FormStyle += "width:100%;" ;
        FormStyle += "margin:0px;" ;
        FormStyle += "padding:0px;" ;
        FormStyle += "border-width:0px;" ;
        FormStyle += "background-color:#" + menu_config.color + ";" ;
        aa = "" ;
        aa += "<div style=position:absolute;top:-1px;left:0px;height:45px;" + FormStyle + ">" ;
        aa += "  <table width=740px height=100% border=0 cellspacing=0 cellpadding=2>" ;
        aa += "    <tr><td>" ;
        aa += "<form action=http://www.harenchi.co.jp/vip/yk_index.php method=post target=_blank style=" + FormStyle + ">" ;
        aa += "      <table width=740px height=100% border=1 cellspacing=0 cellpadding=1>" ;
        aa += "        <tr><td>" ;
        aa += "          <input type=hidden name=anl value=chk>" ;
        aa += "          <table border=0 cellpadding=0 cellspacing=0 style=color:#444444;>" ;
        aa += "            <tr>" ;
        aa += "              <td width=4px nowrap> </td>" ;
        aa += "              <td style=font-size:11px;>名前　<input type=text name=name size=20 style=ime-mode:active;></td>" ;
        aa += "              <td width=8px nowrap></td>" ;
        aa += "              <td style=font-size:11px;>誕生日　<input type=text name=id size=16 style=ime-mode:disabled;></td>" ;
        aa += "              <td width=4px nowrap> </td>" ;
        aa += "              <td><input type=submit name=Go! value=認証 onMouseOver=this.style.cursor=mouse_c onMouseOut=this.style.cursor=mouse_o style=font-size:12px;color:white;background-color:#777777;>" ;
        aa += "              <input type=button value=メニューへ戻る onClick=BackMenu(); onMouseOver=this.style.cursor=mouse_c onMouseOut=this.style.cursor=mouse_o style=font-size:12px;color:white;background-color:#777777;></td>" ;
        aa += "            </tr><tr>" ;
        aa += "              <td width=4px nowrap></td>" ;
        aa += "              <td style=font-size:11px;>ひらがなで入力→<span style=color:red;>はれんちたろう</span></td>" ;
        aa += "              <td width=8px nowrap> </td>" ;
        aa += "              <td style=font-size:11px;>西暦の６桁で入力　１９６７年９月２５日→<span style=color:red;>６>７０９２５</span></td>" ;
        aa += "              <td width=4px nowrap> </td>" ;
        aa += "              <td style=line-height:12px;></td>" ;
        aa += "            </tr>" ;
        aa += "          </table>" ;
        aa += "        </td></tr>" ;
        aa += "      </table>" ;
        aa += "</form>" ;
        aa += "    </td></tr>" ;
        aa += "  </table>" ;
        aa += "</div>" ;
        //aa += "<br style=clear:both;>" ;
        mouse_c = "pointer" ;
        mouse_o = "auto" ;
       form_array["frequenter"] = aa ;
        aa = "" ;

        //トップメニュー初期設定ここまで

        //初期設定を分かりやすい様オブジェクトへ代入

        area = new Object() ;
        aac = 0 ;
        for (aaa in area_array) {
          if (area_array[aaa][0] != "id") {
                  area[aac] = new Object() ;
                  for (aab in area_array[aaa]) {
                          area[aac][ area_array[0][aab] ] = area_array[aaa][aab] ;
                        }
                        aac++ ;
                }
        }
        content = new Object() ;
        aac = 0 ;
        for (aaa in content_array) {
          if (content_array[aaa][0] != "id") {
                  content[aac] = new Object() ;
                  for (aab in content_array[aaa]) {
                          content[aac][ content_array[0][aab] ] = content_array[aaa][aab] ;
                        }
                        aac++ ;
                }
        }

        zone = new Object() ;
        aac = 0 ;
        for (aaa in zone_array) {
          if (zone_array[aaa][0] != "id") {
                  zone[aac] = new Object() ;
                  for (aab in zone_array[aaa]) {
                          zone[aac][ zone_array[0][aab] ] = zone_array[aaa][aab] ;
                        }
                        aac++ ;
                }
        }

        //代入ココまで
        chr = "" ;
        chr += "<div id='topmenu_form' onselectstart=\"return false\" style=\"padding: 0px 0px 0px 8px;width:100%;height:45px;background-color:#"+menu_config.color+";\">" ;
        chr += "</div>" ;

        document.write( chr ) ;

        chr = "<table align='center' cellpadding='0' cellspacing='0' width='740'><tr><td>" ;
        chr += "<table cellpadding='0' cellspacing='0' border='0' align='left' height='100%' bgcolor='" + menu_config.color + "'>" ;
        chr += "<tr height='50%'><td valign='bottom' align='left' nowrap><span id='topmenu_top'></span></td></tr>" ;
        chr += "<tr height='50%'><td valign='top' align='left' nowrap><span id='topmenu_bottom'></span></td></tr>" ;
        chr += "</table>" ;
        chr += "</td></tr></table>" ;
        //chr += "<br style=clear:both;>" ;
        if(document.getElementById){
          document.getElementById('topmenu_form').innerHTML = chr ;
        }else if(document.all){
          document.all('topmenu_form').innerHTML = chr ;
        }


  topid = onselectid ;
        bottomid = "" ;
  for(aca in menu_array) {
          for (acb in menu_array[aca]) {
                  if (menu_array[aca][acb][0] == onselectid) {
                          topid = id_get("value",aca,"id") ;
                                bottomid = menu_array[aca][acb][0] ;
                        }
                }
        }

        form_flg = "off" ;
        if (topid == onselectid) {
          aa = id_get("id",topid,"action") ;
                if (aa == "form_view") {
                  aa = id_get("id",topid,"value") ;
                  if(document.getElementById){
                    document.getElementById('topmenu_form').innerHTML = form_array[ aa ] ;
                  }else if(document.all){
                    document.all('topmenu_form').innerHTML = form_array[ aa ] ;
                  }
                        form_flg = "on" ;
                }
        }
  if (form_flg == "off") { top_view(topid,bottomid) ; }
}
function action_check( id , action , value ) {
  script = "" ;
  if (action == "open") {
          script = "location.href='"+value+"'" ;
        }
        if (action == "subwindow") {
          script = "window.open('"+value+"','topmenu')" ;
        }
        if (action == "menuopen") {
          script = "top_view('" + id + "');bottom_view('" + value + "')" ;
        }
        if (action == "form_view") {
          if(document.getElementById){
            script = "document.getElementById('topmenu_form').innerHTML = '" + form_array[ value ] + "';" ;
          }else if(document.all){
            script = "document.all('topmenu_form').innerHTML = '" + form_array[ value ] + "';" ;
          }
          //script = "document.getElementById('topmenu_form').innerHTML = 'aa' ;" ;
        }
        if (action == "script") {
          script = value ;
        }
  return script ;
}
function top_view(celectid,bottomid) {

        topHTML = "" ;

        menuid = new Array() ;
        menuidcolor = new Array() ;

        topHTML += "<table cellpadding='0' cellspacing='0' align='left' valign='bottom'>" ;
        topHTML += "<tr>" ;
        topHTML += "" ;

        cellcount = 0 ;
        selectcell = 0 ;
        selectvalue = "" ;
        selectcolor = "" ;

        //エリアメニュー表示
//        for (aaa in area) {
//          pr = "NG" ;
//          if (area[aaa]['visible'] == "all") {
//                  pr = "OK" ;
//                } else {
//                  a_array = area[aaa]['visible'].split(",") ;
//                        for (vi in a_array) {
//                          if (a_array[vi] == celectid) { pr = "OK" ; }
//                        }
//                }
//
//                if (pr == "OK") {
//                        script = action_check( area[aaa]['id'] , area[aaa]['action'] , area[aaa]['value'] ) ;
//                  if (area[aaa]['id'] == celectid) {
//                  topHTML += "<td valign='bottom' nowrap>" ;
//                  topHTML += "<div " ;
//                                topHTML += "onClick=\"javascript:" + script + "\" " ;
//                                topHTML += "onMouseover=\"ch_style(3,this,'#" + area[aaa]['hover_color'] + "');\" " ;
//                                topHTML += "onMouseout=\"ch_style(2,this,'#" + area[aaa]['active_color'] + "');\" " ;
//                                topHTML += "style='"+ButtonStyle+"background:#" + area[aaa]['active_color'] + ";border-style:solid; border-width:1px 1px 0px 1px;border-color:black white white black;'" ;
//                                topHTML += ">" ;
//                                topHTML += area[aaa]['name'] + "</div></td>" ;
//                                selectcell = cellcount ;
//                                selectcolor = area[aaa]['active_color'] ;
//                                selectvalue = area[aaa]['value'] ;
//                        } else {
//                                topHTML += "<td valign='bottom' nowrap>" ;
//                                topHTML += "<div " ;
//                                topHTML += "onClick=\"javascript:" + script + "\" " ;
//                                topHTML += "onMouseover=\"ch_style(0,this,'#" + area[aaa]['hover_color'] + "');\" " ;
//                                topHTML += "onMouseout=\"ch_style(1,this,'#" + area[aaa]['color'] + "');\" " ;
//                                topHTML += "onMousedown=\"ch_style(-1,this,'#" + area[aaa]['active_color'] + "');\" " ;
//                                topHTML += "style='"+ButtonStyle+"'>" ;
//                                topHTML += area[aaa]['name'] + "</div></td>" ;
//                        }
//                        cellcount++ ;
//                }
//        }
        topHTML += "<td nowrap><table cellspacing='0' cellpadding='0' width='64px'><tr><td> </td></tr></table></td>" ;
        cellcount++ ;

        //コンテンツメニュー表示
        for (aaa in content) {
          pr = "NG" ;
          if (content[aaa]['visible'] == "all") {
                  pr = "OK" ;
                } else {
                  c_array = content[aaa]['visible'].split(",") ;
                        for (vi in c_array) {
                          if (c_array[vi] == celectid) { pr = "OK" ; }
                        }
                }

                if (pr == "OK") {
                  script = action_check( content[aaa]['id'] , content[aaa]['action'] , content[aaa]['value'] ) ;
                  if (content[aaa]['id'] == celectid) {
                          topHTML += "<td valign='bottom' nowrap>" ;
                          topHTML += "<div " ;
                                topHTML += "onClick=\"javascript:" + script + "\" " ;
                                topHTML += "onMouseover=\"ch_style(3,this,'#" + content[aaa]['hover_color'] + "');\" " ;
                                topHTML += "onMouseout=\"ch_style(2,this,'#" + content[aaa]['active_color'] + "');\" " ;
                                topHTML += "style='"+ButtonStyle+"background:#" + content[aaa]['active_color'] + ";border-style:solid; border-width:1px 1px 0px 1px;border-color:black white white black;'" ;
                                topHTML += ">" ;
                  topHTML += content[aaa]['name'] + "</div></td>" ;
                                selectcell = cellcount ;
                                selectcolor = content[aaa]['active_color'] ;
                                selectvalue = content[aaa]['value'] ;
                        } else {
                  topHTML += "<td valign='bottom' nowrap>" ;
                                topHTML += "<div " ;
                                topHTML += "onClick=\"javascript:" + script + "\" " ;
                                topHTML += "onMouseover=\"ch_style(0,this,'#" + content[aaa]['hover_color'] + "');\" " ;
                                topHTML += "onMouseout=\"ch_style(1,this,'#" + content[aaa]['color'] + "');\" " ;
                                topHTML += "onMousedown=\"ch_style(-1,this,'#" + content[aaa]['active_color'] + "');\" " ;
                                topHTML += "style='"+ButtonStyle+"'>" ;
                                topHTML += content[aaa]['name'] + "</div></td>" ;
                        }
                        cellcount++ ;
                }
        }
        //地域メニュー表示
        for (aaa in zone) {
          pr = "NG" ;
          if (zone[aaa]['visible'] == "all") {
                  pr = "OK" ;
                } else {
                  z_array = zone[aaa]['visible'].split(",") ;
                        for (vi in z_array) {
                          if (z_array[vi] == celectid) { pr = "OK" ; }
                        }
                }

                if (pr == "OK") {
                  script = action_check( zone[aaa]['id'] , zone[aaa]['action'] , zone[aaa]['value'] ) ;
                  if (zone[aaa]['id'] == celectid) {
                  topHTML += "<td valign='bottom' nowrap>" ;
                  topHTML += "<div " ;
                                topHTML += "onClick=\"javascript:" + script + "\" " ;
                                topHTML += "onMouseover=\"ch_style(3,this,'#" + zone[aaa]['hover_color'] + "');\" " ;
                                topHTML += "onMouseout=\"ch_style(2,this,'#" + zone[aaa]['active_color'] + "');\" " ;
                                topHTML += "style='"+ButtonStyle+"background:#" + zone[aaa]['active_color'] + ";border-style:solid; border-width:1px 1px 0px 1px;border-color:black white white black;'" ;
                                topHTML += ">" ;
                  topHTML += zone[aaa]['name'] + "</div></td>" ;
                                selectcell = cellcount ;
                                selectcolor = zone[aaa]['active_color'] ;
                                selectvalue = zone[aaa]['value'] ;
                        } else {
                  topHTML += "<td valign='bottom' nowrap>" ;
                                topHTML += "<div " ;
                                topHTML += "onClick=\"javascript:" + script + "\" " ;
                                topHTML += "onMouseover=\"ch_style(0,this,'#" + zone[aaa]['hover_color'] + "');\" " ;
                                topHTML += "onMouseout=\"ch_style(1,this,'#" + zone[aaa]['color'] + "');\" " ;
                                topHTML += "onMousedown=\"ch_style(-1,this,'#" + zone[aaa]['active_color'] + "');\" " ;
                                topHTML += "style='"+ButtonStyle+"'>" ;
                                topHTML += zone[aaa]['name'] + "</div></td>" ;
                        }
                        cellcount++ ;
                }
        }

        topHTML += "<td valign='bottom' width='100%'> </td>" ;
        cellcount++ ;
        topHTML += "</tr>" ;
        topHTML += "<tr height='1px'>" ;
        for (aba=0;aba<cellcount;aba++) {
          if (selectcell == aba) {
          topHTML += "<td valign='bottom' style='background:#" + selectcolor + ";' nowrap>" ;
                        topHTML += "<table width='100%' cellpadding='0' cellspacing='0'><tr height='1px'>" ;
                        topHTML += "<td width='1px' bgcolor='black' align='left' nowrap><table cellpadding='0' cellspacing='0'><tr><td width='1px'> </td></tr></table></td>" ;
                        topHTML += "<td width='100%'> </td>" ;
                        topHTML += "<td width='1px' bgcolor='white' align='left' nowrap><table cellpadding='0' cellspacing='0'><tr><td width='1px'> </td></tr></table></td>" ;
                        topHTML += "</tr></table>" ;
                        topHTML += "</td>" ;
                } else {
                  if (selectcell == 0) {
          topHTML += "<td style='background:#" + menu_config.color + ";' nowrap> </td>" ;
                        } else {
          topHTML += "<td style='background:black;' nowrap> </td>" ;
                        }
                }
        }
        topHTML += "</tr>" ;
        topHTML += "</table>" ;

        if(document.getElementById){
          document.getElementById('topmenu_top').innerHTML = topHTML ;
        }else if(document.all){
          document.all('topmenu_top').innerHTML = topHTML ;
        }
  if (selectvalue) {
          if (bottomid) {
          bottom_view(selectvalue,bottomid) ;
                } else {
          bottom_view(selectvalue) ;
                }
        }

}

function bottom_view(menuid,celectid) {
        background = "00ff00" ;
        chr = "" ;
        if (menuid) {
                for (aba in menu_array[menuid]) {
                  if (menu_array[menuid][aba][0] != "id") {
                        script = action_check( menu_array[menuid][aba][0] , menu_array[menuid][aba][2] , menu_array[menuid][aba][3] ) ;
                          if (celectid == menu_array[menuid][aba][0]) {
                          chr += "<td valign='bottm' nowrap>" ;
                                        chr += "<div " ;
                                        chr += "onClick=\"javascript:" + script + "\" " ;
                                        chr += "onMouseover=\"ch_style(-1,this,'#" + menu_array[menuid][aba][5] + "');\" " ;
                                        chr += "onMouseout=\"ch_style(-1,this,'#" + menu_array[menuid][aba][6] + "');\" " ;
                                        chr += "style='"+ButtonStyle+"background: #" + menu_array[menuid][aba][6] + ";border-style:solid;border-width:1px;border-color:black white white black;padding: 2px 4px 2px 2px;'" ;
                                        chr += ">" ;
                                        chr += menu_array[menuid][aba][1] ;
                                        chr += "</div></td>" ;
                                } else {
                          chr += "<td valign='bottm' nowrap>" ;
                                        chr += "<div " ;
                                        chr += "onClick=\"javascript:" + script + "\" " ;
                                        chr += "onMouseover=\"ch_style(1,this,'#" + menu_array[menuid][aba][5] + "');\" " ;
                                        chr += "onMouseout=\"ch_style(1,this,'#" + menu_array[menuid][aba][4] + "');\" " ;
                                        chr += "onMousedown=\"ch_style(-1,this,'#" + menu_array[menuid][aba][6] + "');\" " ;
                                        chr += "style='"+ButtonStyle+"background: #" + menu_array[menuid][aba][4] + ";'" ;
                                        chr += ">" ;
                                        chr += menu_array[menuid][aba][1] ;
                                        chr += "</div></td>" ;
                                }
                background = menu_array[menuid][aba][4] ;
                        }
                }
          bottomHTML = "" ;
          bottomHTML += "<table cellpadding='0' border='0' cellspacing='0' align='left' width='100%' bgcolor='#" + background + "'>" ;
          bottomHTML += "<tr>" ;
          bottomHTML += "<td bgcolor='black' width='1px' nowrap> </td>" ;
          bottomHTML += "<td nowrap>" ;

          bottomHTML += "<table cellpadding='0' cellspacing='0' align='left'>" ;
          bottomHTML += "<tr>" ;
          bottomHTML += "<td width='4px' nowrap> </td>" ;
          bottomHTML += chr ;
          bottomHTML += "</tr>" ;
          bottomHTML += "</table>" ;

          bottomHTML += "<td bgcolor='white' width='1px' nowrap> </td>" ;
          bottomHTML += "</tr>" ;
          bottomHTML += "<tr height='1px'>" ;
          bottomHTML += "<td bgcolor='black' width='1px' nowrap> </td>" ;
          bottomHTML += "<td bgcolor='white' nowrap> </td>" ;
          bottomHTML += "<td bgcolor='white' width='1px' nowrap> </td>" ;
          bottomHTML += "</tr>" ;
          bottomHTML += "</table>" ;

          if(document.getElementById){
                document.getElementById('topmenu_bottom').innerHTML = bottomHTML ;
          }else if(document.all){
                document.all('topmenu_bottom').innerHTML = bottomHTML ;
          }
        }
}
function ch_style(type,obj,background) {
  if (type < 2) {
    obj.style.paddingBottom = "2px" ;
          obj.style.paddingRight = "4px" ;
          obj.style.paddingTop = "2px" ;
          obj.style.paddingLeft = "2px" ;
          obj.style.borderStyle = "solid" ;
          obj.style.borderWidth = "1px" ;
        }
        if (type == -1) {
    obj.style.background = background ;
          obj.style.borderColor = "black white white black" ;
        }
  if (type == 0) {
    obj.style.background = background ;
          obj.style.borderColor = "white black black white" ;
        }
        if (type == 1) {
    obj.style.background = background ;
          obj.style.borderColor = background + " " + background + " " + background + " " + background  ;
        }
        if (type == 2) {
    obj.style.background = background ;
        }
        if (type == 3) {
    obj.style.background = background ;
          obj.style.borderColor = "black white white black" ;
        }
}
function BackMenu(onselectid) {

        //メニューへ戻るを押した時最初に選択していたメニューへ戻る
        onselectid = menu_config.topselect ;

        if(document.getElementById){
          document.getElementById('topmenu_form').innerHTML = "" ;
        }else if(document.all){
          document.all('topmenu_form').innerHTML = "" ;
        }

        chr = "" ;
        chr += "<table align='center' cellpadding='0' cellspacing='0' width='740'><tr><td>" ;
        chr += "<table cellpadding='0' cellspacing='0' border='0' align='left' height='100%' bgcolor='" + menu_config.color + "'>" ;
        chr += "<tr height='50%'><td valign='bottom' align='left' nowrap><span id='topmenu_top'></span></td></tr>" ;
        chr += "<tr height='50%'><td valign='top' align='left' nowrap><span id='topmenu_bottom'></span></td></tr>" ;
        chr += "</table>" ;
        chr += "</td></tr></table>" ;
        //chr += "<br style=clear:both;>" ;

        if(document.getElementById){
          document.getElementById('topmenu_form').innerHTML = chr ;
        }else if(document.all){
          document.getElementById('topmenu_form').innerHTML = chr ;
        }

  topid = onselectid ;
        bottomid = "" ;
  for(aca in menu_array) {
          for (acb in menu_array[aca]) {
                  if (menu_array[aca][acb][0] == onselectid) {
                          topid = id_get("value",aca,"id") ;
                                bottomid = menu_array[aca][acb][0] ;
                        }
                }
        }
  top_view(topid,bottomid) ;
}

function id_get(target,value,fname) {
  ret = "" ;
  for (ada in area) {
                  if (area[ada][target] == value) { ret = area[ada][fname] ; }
        }
  for (ada in content) {
                  if (content[ada][target] == value) { ret = content[ada][fname] ; }
        }
  for (ada in zone) {
                  if (zone[ada][target] == value) { ret = zone[ada][fname] ; }
        }
        return ret ;
}

//割引情報js先読み
//document.write('<script language="javascript" src="http://www.delihel.co.jp/discount/discount.js"></script>');




var dtCal = new Date;
var strYear;
var strMonth;
var strDate;
var strDay = new Array("日","月","火","水","木","金","土");
var nMonthCount = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);

//年月日を取得
strYear = dtCal.getFullYear();
strMonth = dtCal.getMonth();
strTodaysMonth = dtCal.getMonth()+1;
strNextMonth = dtCal.getMonth()+2;
strDate = dtCal.getDate();

//表示のための準備
dtCal.setDate(1);
dtCal.setMonth(strMonth);
var nDayCount = nMonthCount[strMonth];
if ((strMonth == 1)&&(((strYear%4 == 0)&&(strYear%100 != 0))||(strYear%400 == 0)))
{
  nDayCount = 29;
}


function CalWrite(){

var s = new String();
DateContruction(20060408)
s += '<script type="text/javascript">EventHeader()</script>';

for(i=0;i<=1;i++){
  if(i==0){
    var M = strTodaysMonth;
  }else{
    var M = strNextMonth;
  }
  s += '<h3>■' + M + '月のイベント</h3>'
  s += '<div class="calbody">';
  s += '<table cellspacing="0">';
  s += '<tr>';
  s += '<th class="sunday">日</th>';
  s += '<th class="weekday">月</th>';
  s += '<th class="weekday">火</th>';
  s += '<th class="weekday">水</th>';
  s += '<th class="weekday">木</th>';
  s += '<th class="weekday">金</th>';
  s += '<th class="saturday">土</th>';
  s += '</tr>';
  
  
  for(NUMBER=0;NUMBER< dtCal.getDay(); NUMBER++){
    s += '<td>&nbsp;</td>';
  }
  
//  s += dtCal.getDate();
    if(M < 10){
    M = "0" + M;
  }
  
  
  //日付を挿入
  for(nLoop = 0; nLoop < nDayCount; nLoop++){
    if(dtCal.getDate() > nLoop){
      if (dtCal.getDay() == 0){
        s +='<tr>';
      }if (dtCal.getDay() != 7){  
        s += '<td>';
        var D = dtCal.getDate();
        s += D;
        for(n=0;n<EventNewArray.length;n++){
        
        if(D < 10){
          D = "0" + dtCal.getDate();
        }
          var Val =strYear +"_"+  M + "_" + D;
          var SP = Val.split("_");
          Val = new String();
      
          for(num=0;num<SP.length;num++){
            Val += SP[num];
          }
//          s += '<br>'+Val;
            if((EventNewArray[n][3] <= Val)&&(EventNewArray[n][4] >= Val)){
              if(EventNewArray[n][6] == 1){
                s += '<a class="line ' + EventNewArray[n][0] + '" href="javascript:void(0)" onClick="window.open(\'' + EventNewArray[n][2] + '\',\'stanp\',\'scrollbars=no,width=480,height=640\')">' + EventNewArray[n][5] + '</a>';
              }else{
                s += '<span class="line "' + EventNewArray[n][0] + '>' + EventNewArray[n][5] + '</span>';
              }
            }
        }
        
        s += '</td>';
      }if(dtCal.getDay() == 7){
        s += '</tr>';
      }
    }
    dtCal.setDate(dtCal.getDate()+1);
  }
  s += '</table>';
  s += '</div>';
} 
document.write(s);
}


function EventHeader(){
  Cal = new String();
 
  
  for(var i=0; i<EventNewArray.length; i++){
    var shopName;
    shopName = shopHash(EventNewArray[i][0])
//    alert(shopName)
    if(EventNewArray[i][6] == 1){
		Cal += '<table cellspacing="0">';
        Cal += '<tr>';
        
        Cal += '<td valign="top"><a class="mark ';
        Cal += EventNewArray[i][0];
        Cal += '" href="javascript:void(0)" onClick="window.open(\'';
        Cal += EventNewArray[i][2];
        Cal += '\',\'stanp\',\'scrollbars=no,width=480,height=640\')">';
        Cal += EventNewArray[i][5];
        Cal += '</a></td>';
        Cal += '<td style="font-size:10px;">' + shopName + '</td>'
        Cal += '<td class="eventname">…「<a href="javascript:void(0)" onClick="window.open(\'';
        Cal += EventNewArray[i][2];
        Cal += '\',\'stanp\',\'scrollbars=no,width=480,height=640\')">';
        Cal += EventNewArray[i][1];
        Cal += '</a>」<span style="font-size:10px;">';
        Cal += DateContruction(EventNewArray[i][3]);
        Cal += '〜';
        Cal += DateContruction(EventNewArray[i][4]);
        Cal += '</span></td>';
        
        Cal += '</tr>';
		Cal += '</table>';
    }else{
		Cal += '<table cellspacing="0">';
        Cal += '<tr>';
        
        Cal += '<td valign="top"><span class="mark ';
        Cal += EventNewArray[i][0];
        Cal += '">';
        Cal += EventNewArray[i][5];
        Cal += '</span></td>';
         Cal += '<td style="font-size:10px;">' + shopName + '</td>'
        Cal += '<td class="eventname">…「';
        Cal += EventNewArray[i][1];
        Cal += '」<span style="font-size:10px;">';
        Cal += DateContruction(EventNewArray[i][3]);
        Cal += '〜';
        Cal += DateContruction(EventNewArray[i][4]);
        Cal += '</span></td>';
        
        Cal += '</tr>';
		Cal += '</table>';
        }
    }

  document.write(Cal);

}

function DateContruction(num){
  num = num.toString();
  var lgh = num.length;
  var s = new Array;
  for(i=0;i<lgh;i++){
    s[i] = num.substr(i,2)
    var v = s[i].substr(0,1);
    var v2 = s[i].substr(1,1);
    if(v==0){
      s[i]=v2;
    }
    i++
  }
  var dateNum = s[4] + '/' +s[6];
  return(dateNum);
}

function shopHash(shopName){
  shopArray = [
    ['delihel','CLUB HARENCHI','http://www.delihel.co.jp'],
    ['haretsuma','ハレンチな妻たち','http://www.haretsuma.co.jp'],
    ['kyonyu','巨乳カレッジ','http://www.kyonyu.co.jp'],
    ['harejo','ハレンチ女学園','http://www.harejo.co.jp'],
    ['body','Body Line','http://www.hare-ol.com']
  ];
  for(i=0;i<shopArray.length;i++){
    if(shopName == shopArray[i][0]){
      shopName = shopArray[i][1];
      return(shopName);
    }
  }
}

function Send_Addr(addr,domain){
  if(addr == '' || addr == '携帯アドレスを記入'){
    alert('メールアドレスを入力してから送信ボタンを押してください.');
    return;
  }
  sends = addr + "@" + domain;
  nWin = window.open(Root + 'i/addr_send.cgi?addr=' + sends,'','width=300,height=100');
  var sw = screen.width;
  var sh = screen.height;
  var w = (sw-200)/2;
  var h = (sh-300)/2;
  window.nWin.moveTo(w,h);

}
