var Basic = {
GetQueryString:function(){
var result = {};
if( 1 < window.location.search.length ){
var query = window.location.search.substring(1);
var parameters = query.split('&');
for( var i = 0; i < parameters.length; i++ ){
var element = parameters[ i ].split('=');
var paramName = decodeURIComponent(element[0]);
var paramValue = decodeURIComponent(element[1]);
result[ paramName ] = paramValue;
}
}
return result;
}
}
//ドメインセレクト無しアドレス飛ばし
//アドレスチェック
function addr_check(form){
if(form.addr.value.match(/^[A-Za-z0-9]+[\w-]+@[\w\.-]+\.\w{2,}$/)){
addrSend_window(form.addr.value,form.shop.value);
return false;
}else{
window.alert('メールアドレスが正しくありません'); // メールアドレス以外が入力された場合は警告ダイアログを表示
return false;
}
}
function addrSend_window(addr,shop){
winopen("http://www.harenchi.co.jp/tokyo/i/addr_send/addr_send_nodomain.php?addr=" + addr + "&shop=" + shop,'mail',365,240);
}
jQuery(document).ready(function($){
$(function(){
// 営業再開したら消す
$("#recommend").css('display', 'none');
// 消すここまで
input_text = "メールアドレスを記入";
$(".addr_send_form :text").each(function() {
$(this).val(input_text).css("color","#999999");
$(this).focus(function(){
if($(this).val() == input_text){
$(this).val("").css("color","#666666");
}
});
$(this).blur(function(){
if($(this).val() == ""){
$(this).val(input_text).css("color","#999999");
}
if($(this).val() != input_text){
$(this).css("color","#666666");
}
});
});
});
});
//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(' \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(' \n');
}else {
MM_PluginVersion = 0;
}
//ウィンドウオープン(アドレス,ウィンドウネーム,幅,高さ,スクロールyes,no,auto)
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();
}
function shamopen(ymds) {
var ads = 'http://www.harenchi.co.jp/yokohama/shamail/' + ymds + '.htm';
CWin = window.open(ads,'shamail','width=604,height=445,scrollbars=no,status=no,location=no,resizable=no');
CWin.focus();
}
//必ずフルパスで渡すこと!
function ykeventOpen(target){
window.open(target,'kikaku','width=418,height=590,scrollbars=no');
}
function yk_setsuden(){ var s = new String();
s += '\n';
s += '\n';
s += '
\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '';
s += 'ご協力をお願いいたします\n';
s += '\n';
s += '\n';
s += '
\n';
s += '\n';
s += '
\n';
s += '\n';
s += '\n';
coverWin = window.open('','Images','width=452,height=640,scrolling=no');
coverWin.document.open();
coverWin.document.write(s);
coverWin.document.close();
coverWin.focus();
}
function yk_extension(){ var s = new String();
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '';
s += 'もう少しだけ楽しみたい貴方へ 延長20分6,900円\n';
s += '\n';
s += '\n';
s += '
\n';
s += '\n';
s += '
\n';
s += '\n';
s += '\n';
coverWin = window.open('','Images','width=540,height=764,scrolling=no');
coverWin.document.open();
coverWin.document.write(s);
coverWin.document.close();
coverWin.focus();
}
function yk_ecocap2012(){ var s = new String();
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '';
s += '2012年もペットボトルキャップを持ってハレ系へ行こう!!\n';
s += '\n';
s += '\n';
s += '
\n';
s += '\n';
s += '
\n';
s += '\n';
s += '\n';
coverWin = window.open('','Images','width=570,height=780,scrolling=no');
coverWin.document.open();
coverWin.document.write(s);
coverWin.document.close();
coverWin.focus();
}
//チケット告知
function yk_ticket(){ var s = new String();
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '';
s += '期限切れの割引チケットを3枚お持ち頂くとそのばで1,000円割引\n';
s += '\n';
s += '\n';
s += '
\n';
s += '\n';
s += '
\n';
s += '\n';
s += '\n';
coverWin = window.open('','Images','width=540,height=700,scrolling=no');
coverWin.document.open();
coverWin.document.write(s);
coverWin.document.close();
coverWin.focus();
}
//横浜の常連様誕生日特典
function yk_birthday(){ var s = new String();
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '';
s += 'ご常連様特典「誕生日割引」追加のお知らせ\n';
s += '\n';
s += '\n';
s += '
\n';
s += '\n';
s += '
\n';
s += '\n';
s += '\n';
coverWin = window.open('','Images','width=540,height=765,scrolling=no');
coverWin.document.open();
coverWin.document.write(s);
coverWin.document.close();
coverWin.focus();
}
//川崎の常連様誕生日特典
function kw_birthday(){ var s = new String();
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '';
s += 'ご常連様特典「誕生日割引」変更のお知らせ\n';
s += '\n';
s += '\n';
s += '
\n';
s += '\n';
s += '
\n';
s += '\n';
s += '\n';
coverWin = window.open('','Images','width=540,height=765,scrolling=no');
coverWin.document.open();
coverWin.document.write(s);
coverWin.document.close();
coverWin.focus();
}
//アネ グッド・バイエコキャップ
function yk_anelast(){ var s = new String();
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '';
s += 'エコキャップ\n';
s += '\n';
s += '\n';
s += '
\n';
s += '\n';
s += '
\n';
s += '\n';
s += '\n';
coverWin = window.open('','Images','width=540,height=765,scrolling=no');
coverWin.document.open();
coverWin.document.write(s);
coverWin.document.close();
coverWin.focus();
}
//年末年始の出勤予定 ノーマル
function yk_nenshi(){ var s = new String();
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '';
s += '2012年末年始の営業時間のお知らせ\n';
s += '\n';
s += '\n';
s += '
\n';
s += '\n';
s += '
\n';
s += '\n';
s += '\n';
coverWin = window.open('','Images','width=540,height=764,scrolling=no');
coverWin.document.open();
coverWin.document.write(s);
coverWin.document.close();
coverWin.focus();
}
//年末年始の出勤予定 川崎
function yk_nenshi_kw(){ var s = new String();
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '';
s += '2012年末年始の営業時間のお知らせ\n';
s += '\n';
s += '\n';
s += '
\n';
s += '\n';
s += '
\n';
s += '\n';
s += '\n';
coverWin = window.open('','Images','width=540,height=764,scrolling=no');
coverWin.document.open();
coverWin.document.write(s);
coverWin.document.close();
coverWin.focus();
}
//年末年始の出勤予定 人妻
function yk_nenshi_tsuma(){ var s = new String();
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '';
s += '2012年末年始の営業時間のお知らせ\n';
s += '\n';
s += '\n';
s += '
\n';
s += '\n';
s += '
\n';
s += '\n';
s += '\n';
coverWin = window.open('','Images','width=540,height=764,scrolling=no');
coverWin.document.open();
coverWin.document.write(s);
coverWin.document.close();
coverWin.focus();
}
//ベイスターズを応援しよう!
function yk_baseball(){ var s = new String();
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '\n';
s += '';
s += 'ベイスターズを応援しよう!\n';
s += '\n';
s += '\n';
s += '
\n';
s += '\n';
s += '
\n';
s += '\n';
s += '\n';
coverWin = window.open('','Images','width=540,height=764,scrolling=no');
coverWin.document.open();
coverWin.document.write(s);
coverWin.document.close();
coverWin.focus();
}
//企画専用ウィンドウオープン
function kikakuopen(ads){
var add = 'http://www.harenchi.co.jp/yokohama/kikaku/?' + ads;
window.open(add,'kikaku','width=740,height=510,scrollbars=no');
}
//イベントPOS縮小専用企画ウィンドウオープン
function posopen(ads){
var add = 'http://www.harenchi.co.jp/yokohama/kikaku/' + ads +'/';
window.open(add,'kikaku','width=418,height=590,scrollbars=no');
}
//画像なし[/i.htm]オープン専用企画ウィンドウオープン
function txtopen(ads){
var add = 'http://www.harenchi.co.jp/yokohama/kikaku/' + ads +'/i.htm';
window.open(add,'kikaku','width=240,height=320,scrollbars=yes');
}
function UrlSend(myAddr,domain,shop){
if(myAddr == ''){
alert('メールアドレスを入力してから送信ボタンを押してください.');
return;
}
winopen("http://www.yk-harekei.com/i/addr_send/addr_send.php?addr=" + myAddr + "&shop=" + shop + "&domain=" + domain,'mail',365,260);
//winopen("http://www.yk-harekei.com/i/addr_send.php?addr=" + myAddr + "&shop=" + shop + "&domain=" + domain,'mail',365,600);
}
function focusText(name){
if(document.forms[name].addr.value=="携帯アドレスを記入"){
document.forms[name].addr.value = '';
}
}
//フラッシュのためのスクリプト
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 = ''; // 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 = ''; // QT の場合は Param name="src"
}
document.write('');
}
//ykmenuのバージョンチェックが満たなかったら呼び出すファンクション
function YKMenu(){
document.write('
" ;
//chr += " " ;
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 ;
}
//↑横浜、川崎、新宿トップメニューここまで
//各店企画カレンダー弄りをちょっとだけ簡略化するスクリプト
//['色','企画名','kikakuディレクトリ以下のフォルダ名','開催日もしくは開催期間','略称','リンクの種類[POStype=2,有=1,無=0]']
var Cal = new String();
var CalCL = new String();
function CalHeader(){
Cal += '