// JavaScript Document

// サイドメニュー　カテゴリーで探す

$(function(){
	$('#sm_cate ul').css('display','none');
});
$(function(){
	var handler = $('#sm_cate h4'),
	menus = $('#sm_cate ul');
	handler.click(function(){
		var _thisMenu = $(this).next();
		if(_thisMenu.is(':visible')){
		_thisMenu.slideToggle();
		}
		else {
		menus.slideUp();
		_thisMenu.slideDown();
		}
	});
});

$(function(){
	$('#sm_cate h4').mouseover(function () {
		$(this).css("background-position","bottom");
	});
	$('#sm_cate h4').mouseout(function () {
		$(this).css("background-position","top");
	});
});


// サイドメニュー　ブランドで探す

$(function(){
	$('#sm_brand ul').css('display','none');
});
$(function(){
	var handler = $('#sm_brand h4'),
	menus = $('#sm_brand ul');
	handler.click(function(){
		var _thisMenu = $(this).next();
		if(_thisMenu.is(':visible')){
		_thisMenu.slideToggle();
		}
		else {
		menus.slideUp();
		_thisMenu.slideDown();
		}
	});
});

$(function(){
	$('#sm_brand h4').mouseover(function () {
		$(this).css("background-position","bottom");
	});
	$('#sm_brand h4').mouseout(function () {
		$(this).css("background-position","top");
	});
});


// サイドメニュー　特徴で探す

$(function(){
	$('#sm_chara ul').css('display','none');
});
$(function(){
	var handler = $('#sm_chara h4'),
	menus = $('#sm_chara ul');
	handler.click(function(){
		var _thisMenu = $(this).next();
		if(_thisMenu.is(':visible')){
		_thisMenu.slideToggle();
		}
		else {
		menus.slideUp();
		_thisMenu.slideDown();
		}
	});
});

$(function(){
	$('#sm_chara h4').mouseover(function () {
		$(this).css("background-position","bottom");
	});
	$('#sm_chara h4').mouseout(function () {
		$(this).css("background-position","top");
	});
});



// ブランドプロフィール

$(function(){
	$('#profiles').css('display','none');
});


$(function(){
	$('.bp_close, #brand_profiles h4').click(function(){
		var _thisMenu = $('#profiles');
		if(_thisMenu.is(':visible')){
			$("h4").removeClass("aft");
			$("h4").addClass("bef");
			$('#profiles').slideToggle("slow");
			$(".mirukakusu").text("を見る");
		}
		else {
			$("h4").removeClass("bef");
			$("h4").addClass("aft");
			$('#profiles').slideToggle("slow");
			$(".mirukakusu").text("を閉じる");
		}
	});
});


// アイテム別表示
$(function(){
	var $thisBrandName = ($(".brand_name").text());
	var $newContent = '<p class="brand_item_category">■&nbsp;' + $thisBrandName + '&nbsp;アイテム別を見る</p>';
	$(".FS2_GroupList").prepend($newContent);
});





// メディア掲載情報

$(function(){
	$('.media_menu').css('display','none');
});
$(function(){
	var handler = $('.h4_media'),
	menus = $('.media_menu');
	handler.click(function(){
		var _thisMenu = $(this).next();
		if(_thisMenu.is(':visible')){
		_thisMenu.slideToggle();
		}
		else {
		menus.slideUp();
		_thisMenu.slideDown();
		}
	});
});


// オンマウスで薄く
$(function(){
	$('.onMouseOpacity').mouseover(function () {
		$(this).css("opacity","0.6");
	});
	$('.onMouseOpacity').mouseout(function () {
		$(this).css("opacity","1");
	});
});




