// addition //

// add class //
$(function() {
	$("h2:first-child").addClass("first-child");
	$(".membercont h3:first-child").addClass("first-child");
	$(".membercont h4:first-child").addClass("first-child");
	$(".membercont h5:first-child").addClass("first-child");
	
	$("div.updatelist dt:first-child").addClass("first-child");
	$("div.updatelist dt.first-child + dd").addClass("first-child");
	$("div.updatelist dd:last-child").addClass("last-child");
	
	$("a[href^='http:']:not(:has(img))").addClass("outerlink").append("<span>&nbsp;</span>");
	$("a[href^='https:']:not(:has(img))").addClass("outerlink").append("<span>&nbsp;</span>");
	// img要素を内包しないPDFへのリンクに.pdfクラスをつける
	// 外部pdfへの直リンクの場合はouterLinkクラスを外す など
	$("a[href$='.pdf']:not(:has(img))").addClass("pdf").attr("target","_blank").removeClass("outerLink"); 
	$("a[href$='.txt']:not(:has(img))").addClass("txt").attr("target","_blank").removeClass("outerLink");
	$("a[href$='.doc']:not(:has(img))").addClass("word").removeClass("outerLink");
	$("a[href$='.ppt']:not(:has(img))").addClass("ppt").removeClass("outerLink");
	
	$("tr:odd").addClass("odd");
	$("td").mouseover(function(){
		$(this).addClass("hover")
		})
		.mouseout(function(){
			$(this).removeClass("hover")
		});
	$(".memberlist tbody tr td:first-child").addClass("name");
});


