/////////このファイルのメニュー/////////

//+++++0.ウィンドウオープン関連
//+++++1.グループリンク(上)
//+++++2.css振り分け
//+++++3.各店共通右メニュー
//+++++4.オープン時間
//+++++5.テキストインデックス


//+++0.ウィンドウオープン関連+++//

// コンテンツのウィンドウを開くスクリプト
function contwin(dir,file,wid,hei){
  filez = dir + '/' + file;
  prop = 'SCROLLBARS=no,resizable=no,menubar=no,directories=no,status=0,locationbar=no,width=' + wid + ',height=' + hei;
  win_name = 'window' + file;
  win_name = window.open(filez,'photo',prop);  
}
// ポップアップ
function popup(di,na,wi,he){
  filez = di;
  prop = 'SCROLLBARS=no,resizable=no,menubar=no,directories=no,status=0,locationbar=no,width=' + wi + ',height=' + he;
  nam = na;
  winopen = window.open(filez,nam,prop);
}

// ポップアップ イベントカレンダー
function popEvent(shop,di,wi,he){
  if(shop == 'kumamoto'){
    filez = 'http://www.harenchi.co.jp/kumamoto/events/' + di;
  }else{
    filez = 'http://www.km-' + shop + '.com/events/' + di;
  }
  prop = 'SCROLLBARS=no,resizable=no,menubar=no,directories=no,status=0,locationbar=no,width=' + wi + ',height=' + he;
  nam = di;
  win_name = window.open(filez,nam,prop);
}


//ハレンチイベント
function pophare(di,wi,he){
  filez = 'http://www.harenchi.co.jp/kumamoto/events/' + di + '/';
  popup(filez,di,wi,he);
}
//ハレンチ常連イベント
function viphare(di,wi,he){
  filez = 'http://www.harenchi.co.jp/vip/km/events/' + di + '/';
  popup(filez,di,wi,he);
}
// プロフィール用
function profwin(shop,girl){
  popup('http://www.km-' + shop + '.com/zaiseki/' + girl + '/',girl,'750','655');
}


// 新プロフィール用
function popprof(shop,girl){
  filez = 'http://www.km-' + shop + '.com/zaiseki/' + girl + '/';
  prop  = 'SCROLLBARS=1,resizable=no,menubar=no,directories=no,status=0,locationbar=no,width=795';
  girls = girl;
  window.open(filez,girls,prop);
}

//欠勤情報
function restwin(shop){
  filez = 'http://www.km-' + shop + '.com/syukkin/off.htm';
  prop = 'SCROLLBARS=auto,resizable=no,menubar=no,directories=no,status=0,locationbar=no,width=650,height=320';
  win_name = window.open(filez,'off',prop);
}
// ムービーのポップアップ
function OpenMovieWindow(pid){
  var file = 'movie.php?id=' + pid;
  window.open(file,'profmovie','width=400,height=400,toolbar=no,location=no,status=no,menubar=no,scrollbars=no');
}

// コンテンツのウィンドウを開くスクリプト
function popSeifuku(no,girls){
  filez = 'http://www.km-harejo.com/costume/' + no + '/' + girls + '.htm';
  prop  = 'SCROLLBARS=1,resizable=no,menubar=no,directories=no,status=0,locationbar=no,width=765';
  girls = girls + 'cos';
  window.open(filez,girls,prop);
}

// ポップアップ スタッフからのコメント
function popPr(di){
  var files = '/zaiseki/' + di + '/staff.htm';
  var names = di + 'pr'
  window.open(files,names,'width=600,height=612,toolbar=no,location=no,status=no,menubar=no,scrollbars=no');
}

// カプリ娘コスチューム動画のポップアップ
function OpenCosMovie(pid){
  var file = '../movies/movie.php?id=' + pid;
  window.open(file,'profmovie','width=400,height=400,toolbar=no,location=no,status=no,menubar=no,scrollbars=no');
}

// ハレンチ女学園コスチュームのウィンドウを開くスクリプト
function coswin(no,girls){
  filez = '/costume/' + no + '/' + girls + '.htm';
  prop  = 'SCROLLBARS=1,resizable=no,menubar=no,directories=no,status=0,locationbar=no,width=765';
  girls = girls + 'cos';
  window.open(filez,girls,prop);
}
// メイド服コスチュームのウィンドウを開くスクリプト
function maidCosWin(no){
  filez = '/costume/' + no + '/';
  prop  = 'SCROLLBARS=1,resizable=no,menubar=no,directories=no,status=0,locationbar=no,width=765';
  cosno = 'cos' + no;
  window.open(filez,cosno,prop);
}

// トップグラビア
function popgra(){
  filez = 'http://www.harenchi.co.jp/kumamoto/extra/gravure/';
  prop = 'SCROLLBARS=no,resizable=no,menubar=no,directories=no,status=0,locationbar=no,width=730,height=600';
  nam = 'gravure';
  win_name = window.open(filez,nam,prop);
}

// 熊マ／マット技
function mtechpop(na){
	filez = '' + na + '/index.htm';
	prop = 'SCROLLBARS=no,resizable=no,menubar=no,directories=no,status=0,locationbar=no,width=480,height=400';
	nam = na;
	win_name = window.open(filez,nam,prop);
}

// 熊夫マット技
function techpop(na){
	filez = '' + na + '/index.htm';
	prop = 'SCROLLBARS=no,resizable=no,menubar=no,directories=no,status=0,locationbar=no,width=530,height=440';
	nam = na;
	win_name = window.open(filez,nam,prop);
}

