/* =========================
SoftBankMobile Web Site
Simple Accordion JS var.1.01
2009/4/16 21:00
========================= */

setTimeout(function(){
	if(switchSelecter == '')switchSelecter = 'none';
	
	$(switchSelecter).click(function(){
		if($(this).parents().hasClass('simple-accordion'))toggle(this);
		return false;
	});

	$(".simple-accordion-switch").click(function(){
		toggle(this);
		return false;
	});
	
	function toggle(tSwitch) {
		$(tSwitch).toggleClass('accordion-open').next().slideToggle();
	}
},1000);

$(function(){
	if(window.location.hash){
		var targetId = window.location.hash;
		$(targetId+'.simple-accordion-switch,.simple-accordion '+targetId).addClass('accordion-open').next().show().parents().show().prev().toggleClass('accordion-open');
		setTimeout(function(){$(window).scrollTop($(targetId).offset().top)},1);
	}
});


