$(function(){

	//コメント：一行のときに使う
	/* クロスブラウザなフォーカス */
	$("input[type='text'], textarea").focus(function(){
		$(this).css("background", "#dbd49e");
	});
	$("input[type='text'], textarea").blur(function(){
		$(this).css("background", "#fff");
	});


	/* クロスブラウザなゼブラテーブル */
	$("tr:nth-child(even)").css("background", "#dbd49e")
	// jQuery独自フィルタを使うならば[tr:odd]に！


	/* 別画像切り替え（src属性値の書き換え） */
	$("#photos p a img").hover(function(){
		$(this).attr("src", "shared/images/moveto-showcase_on.gif");
	}, function(){		
		$(this).attr("src", "shared/images/moveto-showcase.gif");
	});
	// XHTMLファイルから見た画像のパスです！

	/* ウインク効果 */
	$("#header ul li img").hover(function(){
		$(this).css("opacity", "0.2");
		$(this).css("filter", "alpha(opacity=20)");
		$(this).fadeTo("slow", "1.0");
	});

	$("#global-nav ul li.now a img").hover(function(){
		$(this).css("opacity", "0.7");
		$(this).css("filter", "alpha(opacity=70)");
		$(this).fadeTo("fast", "0.7");
});

	/* タブパネル */
	$("ul.tab li:first-child").addClass("selected");
	$("ul.panel li:not(:first-child)").css("display","none");
		$("ul.tab li").click(function(){
		$("ul.tab li").removeClass("selected");
		$(this).addClass("selected");
		$("ul.panel li").css("display","none");
		$("ul.panel li:eq("+$("ul.tab li").index(this)+")").css("display","block");
});

	/* スライドショーもどき */
	$("ul.control li:first-child").addClass("selected");
	$("ul.visual li:not(:first-child)").css("display","none");
		$("ul.control li").click(function(){
		$("ul.control li").removeClass("selected");
		$(this).addClass("selected");
		$("ul.visual li").css("display","none");
		$("ul.visual li:eq("+$("ul.control li").index(this)+")").css("display", "block");
		$("ul.visual li:eq("+$("ul.control li").index(this)+")").css("opacity", "0.2");
		$("ul.visual li:eq("+$("ul.control li").index(this)+")").css("filter", "alpha(opacity=0.2)");
		$("ul.visual li:eq("+$("ul.control li").index(this)+")").fadeTo("slow", 1.0);
});

});
