// JavaScript Document

$(function(){
	$("#newsbox li:last").css("border","none");
	
	
	$("img[src*='_out']").mouseover(function(){
		var imgsrc;
		imgsrc = $(this).attr("src");
		imgsrc = imgsrc.replace(/_out/, "_over");
		$(this).attr("src",imgsrc);
	});

	$("img[src*='_out']").mouseout(function(){
		var imgsrc;
		imgsrc = $(this).attr("src");
		imgsrc = imgsrc.replace(/_over/, "_out");
		$(this).attr("src",imgsrc);
	});
	
	$("a img:not([src*='_out'])").mouseover(function(){
		$(this).addClass("moverimg");
	});
	$("a img:not([src*='_out'])").mouseout(function(){
		$(this).removeClass("moverimg");
	});
	
	$("#formtbl tr td:even").addClass("tdpls");
	
	$("#opsions li:even").addClass("leftli");

});

$(document).ready(function(){
	$('#topicpath li').after('<li><img src="/img/ico_delimiter.gif" width="15" height="15" alt="&gt;" /></li>');
	$('#topicpath li:last').css("display","none");
});

$(document).ready(function(){
	$(".n02 div.news table tr:last td").css("padding-bottom","0");
});

$(document).ready(function(){
	$(".n02 ul.foot_banner li:nth-child(5n)").css("padding-left","12px");
});

function setEqualHeight(columns){
var tallestcolumn = 0;
columns.each(
function(){
currentHeight = $(this).height();
if(currentHeight > tallestcolumn){
tallestcolumn  = currentHeight;
}
}
);
columns.height(tallestcolumn);
}
$(document).ready(function() {
setEqualHeight($(".content_cm1 p > span"));
});

$(document).ready(function(){
	$(".content_cm2:eq(1)").css("margin-left","30px");
});


$(document).ready(function(){
	$("ul.cruise_index li:last").css("padding-right","0");
});

$(function() {
var imgheight = $("p.cr1 img").height();$("div.cr1").height(imgheight);
var imgheight = $("p.cr2 img").height();$("div.cr2").height(imgheight);
var imgheight = $("p.cr3 img").height();$("div.cr3").height(imgheight);
var imgheight = $("p.cr4 img").height();$("div.cr4").height(imgheight);
var imgheight = $("p.cr5 img").height();$("div.cr5").height(imgheight);
var imgheight = $("p.cr6 img").height();$("div.cr6").height(imgheight);
var imgheight = $("p.cr7 img").height();$("div.cr7").height(imgheight);
});

$(document).ready(function(){
	$("div.TabbedPanelsContent div dl dd:last-child").css("margin-bottom","0");
});

$(document).ready(function(){
	$("div.TabbedPanelsContent div:last-child").css({"border":"none","padding-bottom":"0"});
});

$(function() {
var maketitlewidth = $('div#make_title p img').width();
var makemainwidth = 710 - maketitlewidth - 23;
$('p.make_caption').width(makemainwidth);
});

$(document).ready(function(){
	$("div.make_panel div:last-child").css("margin-bottom","0");
});

$(document).ready(function(){
	$(".contact_lost_01 table tr td span:even").addClass("gnr1");
	$(".contact_lost_01 table tr td span:odd").addClass("gnr2");
});

$(document).ready(function(){
	$(".faq_index_01a div h3:last").addClass("gnr1");
	$(".faq_index_01a div ul:last").css("margin-bottom","0");
});

$(document).ready(function(){
	$(".faq_index_01b:even").css("margin-left","0");
});

$(document).ready(function(){
	$("#faq #maincol dl dt:first-child").css("border-top","none");
});
$(document).ready(function(){
	$("#faq #maincol dl dd p:last-child").css("margin-bottom","0");
});
$(document).ready(function(){
	$("#faq #maincol dl dd p br+a").addClass("faq_a_arrow");
});
$(document).ready(function(){
	$("dl.doc_style_01 dd+dd").css("margin-top","-20px");
});
$(document).ready(function(){
	$("dl.doc_style_01 dl dd dl dd+dd").css("margin-top","0");
});
$(document).ready(function(){
	$("dl.doc_style_01 dd dl dd div.lef:last-child").css("left","18px");
});
$(document).ready(function(){
	$("div.company_partner_01 table tr td:first-child").css("white-space","nowrap");
	$("div.company_partner_01 table tr td:nth-child(2)").css("white-space","nowrap");
	$("div.company_partner_01 table tr td:nth-child(4)").css("white-space","nowrap");
});
$(document).ready(function(){
	$("div.company_sitemap dl:nth-child(3)").css("margin-right","0");
});


