// JavaScript Document





//ALL Load

$(function(){

	RollOverSet();

/*    PopUpSet();

	PageBack();

	PageTopSet();

	if(document.getElementById("slide_list")){

    slide();

}

*/});





//RollOver

function RollOverSet(){

	RollOver(".navi_body ul");

}



function RollOver(target){

	$target = $(target);

	$("img", $target).each(function(){

		$(this).mouseover(function(){

			this.setAttribute("src", this.getAttribute("src").replace(".gif", "_on.gif"));

        })

		$(this).mouseout(function(){

			this.setAttribute("src", this.getAttribute("src").replace("_on.gif", ".gif"));

        })

		$(".stay").unbind();

	});

}





//Slide

/*function slide(){

	$("#slide_list dt").hover(function(){

		$(this).css("cursor","pointer"); 

	},function(){

		$(this).css("cursor","default");

		});

    $("#slide_list dd:not(:first)").hide();

	$("#slide_list dt").click(function(){

	$(this).next("dd")

	.slideToggle("300").find("dd").slideUp("500");

   	return false;

    });

}

*/



//POPUP

/*function PopUpSet(){

	PopUp("a.popup_contact","https://www.s-db.jp/entry?k=4d682a8b40dbd8c5e57f7b80cfc84a4117D%2CDI","contactw",900,800);

	PopUp("a.popup_mm","https://www.s-db.jp/entry?k=53264d3af87d44be0824179ec8a2c85517D%2CD4","mmw",900,800);

	PopUp("a.popup_entry","https://www.s-db.jp/entry?k=4ad05821a0f6d9704cf134bdb6cddafe17D%2CDA","entryw",900,800);

	PopUp_blank("a.popup3","sample1-1.html");

}

function PopUp(classname,url,wname,w,h){

	$(classname).click(function(){

	window.open(url,wname,'width='+w+',height='+h+'left=0,top=0,toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,favorites=no,resizable=yes');

	return false;

	});

}

*/



//PageBack



/*function PageBack(){

	$("a",".pageback").click(function(){

    history.back();

	return false;

	});

}

*/





//PageTop

/*function PageTopSet(){

	PageTop("#link_to_top","#wrapper");

	}

function PageTop(target,target2){

$(function () {

		$target = $(target);	

		$target2 = $(target2);	

        $($target).click(function () {

			$(this).blur();

			var targetOffset = $(target2).offset().top;



            $('html,body').animate({ scrollTop: targetOffset }, 'slow');



            return false;

        });

});

}*/