$(function() {

	// チェックボックス全てにチェック
	$('p#allcheck input').click(function(){
		if($(this).attr('checked')){
			$('div.article input').attr('checked','true');
	} else {
			$('div.article input').removeAttr('checked');
		}
	});

	// 店舗詳細 プルダウンメニュー
	$('div#mainContents div.shopNav ul.nav li').not('li.current').hover(function(){
		$(this).addClass('hover');
	},function(){
		$(this).removeClass('hover');
	});

	// from navigation.js
	$('div#mainContents select.pulldownLinks option').mouseup(function() {
		location.href = this.value;
	});

	// 特集ロールオーバー
	$('div#private p.image a img,div#party p.image a img').hover(function(){
		$(this).css('opacity', '0.7');
	},function(){
		$(this).css('opacity', '1');
	});

	// キープリスト
	if (hpr.keeplist.ON_LOAD_ENABLED) {
		if ($(hpr.keeplist.STORES_ELM_ID).size() > 0) {
			hpr.keeplist.showStores();
		}
	}

	// image roll over
	$("ul.tabNav img, .hover, div.shopNav img").not("img[@src*='_on.'],img[@src*='_cr.']").each(function() {
		var imgsrc = this.src;
		var dot = this.src.lastIndexOf('.');
		var imgsrc_on = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
		if (!(this.src in image_cache)) {
			var img = new Image();
			img.src = imgsrc_on;
			image_cache[this.src] = imgsrc_on;
		}
		$(this).hover(
			function() { this.src = imgsrc_on; },
			function() { this.src = imgsrc; }
		);
	});

});

image_cache = new Object();

// ちらつき回避
try {
	document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}
