window.onunload=function(){}
var currentSrc ='';
$(function(){

		var currentTab =  $('body').attr('class').split(' ');
		for ( var i in currentTab ){
		  if ( currentTab[i].indexOf('bt') != -1 ){
        $('#gwMainMenu  #header_'+ currentTab[i]).addClass('current');
    		if( $.browser.msie && $.browser.version < 7) {
          $('#gwMainMenu  #header_'+ currentTab[i]).hide(1).show(10);
    		}


		  }
		}
		//ドロップダウン動作
		$("#gwMainMenu > li").hover(function(){
  		if( !($.browser.msie && $.browser.version < 7) ) {
        $(this).addClass('ovr');
  		}
      $(this).find('.gwSubMenu').animate({
        height: 'toggle'
      },200);
    },function(){
    $('#gwMainMenu .ovr').removeClass('ovr') ;
      $(this).removeClass('ovr');
      $(this).find('.gwSubMenu').hide();
    });


$('.tdfeSlide dt').click(function(){
	$(this).toggleClass('plus');
	$(this).next().children('.inner').slideToggle(500);
});

$('.tdfkIndex a').click(function(){
		var tdfkDT = $($(this).attr('href')).parent().parent().prev();
		if (tdfkDT.attr('class') != 'plus'){
			tdfkDT.click();
		}
});

	$('a[href*=#]').click(function() {
		var duration=700;
		var easing='';
		var newHash=this.hash;
		var target=$(this.hash).offset().top;
		var oldLocation=window.location.href.replace(window.location.hash, '');
		var newLocation=this;
		if(oldLocation+newHash==newLocation){
			$('html:not(:animated),body:not(:animated)').animate({ scrollTop: target }, duration, easing, function() {
			   window.location.href=newLocation;
			});
			return false;
		}
	});
	
	$(window).load(function(){
    
	});
	
});



