/*
 * basic.js v0.7.8
 * require jQuery
 *
 * Date: 2011/08/02
 */

$(function() {
	stripeTable();
	scrollTop();
	rollover();
	exLink();
});
/*----------------------------------------------------*/
/*----------------------------------------------------*/
/*----------------------------------------------------*/
/*----------------------------------------------------*/
/*
 * stripeTable v0.1
 * Date: 2011/08/02
 */
function stripeTable() {
	$(".stripetable").each(function() {
		 $("tr:odd", $(this)).addClass("evenline");
	});
}
/*----------------------------------------------------*/
/*
 * scrollTop v0.1
 * Date: 2011/01/26
 */
function scrollTop() {
     $(".page-top a").click(function(){
		 $('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top }, 'slow','swing');
		 return false;
     })
}
/*----------------------------------------------------*/
/*
 * rollover v1.0
 * Date: 2011/01/26
 */
function rollover() {
	$(".btn").hover(function(e) {
		$(e.target).attr("src", $(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"));
	},function(e) {
		$(e.target).attr("src", $(this).attr("src").replace(/^(.+)_on(\.[a-z]+)$/, "$1$2"));
	});
}
/*----------------------------------------------------*/
/*
 * exLink v0.1
 * Date: 2011/03/01
 */
function exLink() {
	$("a.external").click(function() {
		window.open(this.href, "new");
		return false;
	});
}
/*----------------------------------------------------*/
/*
 * printMap v0.1
 * Date: 2011/03/02
 */

function printMap() {
	$("#print-map img").css("cursor", "pointer")
		.hover(function() {
			var img = $(this);
			$(img).attr("src", $(img).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"));
		},function() {
			var img = $(this);
			$(img).attr("src", $(img).attr("src").replace(/^(.+)_on(\.[a-z]+)$/, "$1$2"));
		})
		.mousedown(function() {
		$("head").append("<link type=\"text/css\" rel=\"stylesheet\" href=\"../common/css/map.css\" media=\"print\" id=\"map-css\" />");
		window.print();
	})
		.mouseup(function() { $("#map-css").remove(); });
}
/*----------------------------------------------------*/
/*
 * katsuyaIntervew v0.1
 * Date: 2012/01/05
 */

$(function () {  
	var tab = $('div.tab');  
	tab.hide().filter(':first').show();
	$('ul.interview_katsuya_navi a').click(function () {
	   tab.hide();
	   tab.filter(this.hash).show();
  	   if(!$(this).hasClass('anchorEnable') ){
			return false;
	  }
	});
}); 
/*----------------------------------------------------*/
/*----------------------------------------------------*/
//
//




