$(function(){
///////////////////////////////////////////////////////////////

	$('.toTop a').click(function(){
		$.scrollTo( 'body' , 800 );
	});

//テーブルコンテンツ 2カラム<th>用
	$('.contentsTable.th2col th').not('th[colspan*="2"],tr.caption th').addClass('thhalf');
//about,plan コンテンツメニューナビ
	$('#contentsList ul li:not(":last-child")').after('｜');

/*
//TOPページLatestNews開閉
	$('#news p.newsBtn').click(function(){
		$('#news #latestNewsMore').slideToggle('fast',function(){
			if ($(this).is(":hidden")) {
				$('#news p.newsBtn').css({'background':'url(./img/newsBtn.gif) no-repeat'});
			} else {
				$('#news p.newsBtn').css({'background':'url(./img/newsBtnRv.gif) no-repeat'});
			}
		});
	});
*/

//サイトマップ
	$('.contentsDiv.half li:not(":last-child") a').before('├ ');
	$('.contentsDiv.half li:last-child a').before('└ ');

//リンク前アイコン
	$('.contentsDiv a').not('li a, h3 a').before(' <img src="/img/linkico.gif" alt="関連リンク" /> ').after(' ');

	$('form input[type="submit"], input[type="button"], button').css({"text-align":"center"});
	$('[href^="http://"]').not('[href^="http://www.quicca.com/"]').attr("target","_blank");

//textbox
	$('.searchBox input[type="text"]').css({"background":"#ffffff","border":"5px solid #0099FF","color":"#999999"});

//textbox focus
	$('.searchBox input[type="text"]').focus(function(){
		$(this).css({"background":"#eeeeee","border":"5px solid #2B91D4","color":"#333333"});
	});

//textbox blur
	$('.searchBox input[type="text"]').blur(function(){
		$(this).css({"background":"#ffffff","border":"5px solid #0099FF","color":"#999999"});
	});

	$('.searchBox input[type="image"]').hover(
		function(){
			$(this).attr("src","/img/searchBtn-h.gif");
		},
		function(){
			$(this).attr("src","/img/searchBtn.gif");
		}
	);


	$('ul#featurePanel.aboutimg li:nth-child(odd)').addClass('odd');
	$('ul#featurePanel.abouttext li:nth-child(4n+1)').addClass('wide');



	$("#featurePanel img, .toFeature img, .aboutDetailBottom a").fadeTo(0, 0.8);
	$("#featurePanel img, .toFeature img, .aboutDetailBottom a").hover(
		function(){
			$(this).fadeTo(200,1.0);
		},
		function(){
			$(this).fadeTo(200,0.8);
		}
	);

	
	$("#featureIcon img").hover(
		function(){
// 値を変更しました
			$("#featureIcon img").fadeTo(0.1, 0.7);
			$(this).fadeTo(0.1, 1);
		},
		function(){
			$("#featureIcon img").fadeTo(0.1, 1);
		}
	);

	$(".servicePlan ul li a img").fadeTo(200,0.9);
	$(".servicePlan ul li a img").hover(
		function(){
			$(this).fadeTo(200,1.0);
		},
		function(){
			$(this).fadeTo(200,0.9);
		}
	);




////////////////////////////////////////////
});
