$(function(){
	$('.catlistdetail h2:eq(0)').css({'background':'url(/img/h2_catlistdetail_top.gif) no-repeat 0 0'});
/* ---------------------------------------------------
コメント・トラックバック
--------------------------------------------------- */
	$('.com_btn,.tb_btn').css({'cursor':'pointer'});
	$('.com_btn').click(function(){
		//$('.comment_wrap').show('fast');
		$('.comment_wrap').toggle('fast');
		$('.trackback_wrap').css({'display':'none'}).hide(function(){
			$('.com_btn').css({'background':'url(/img/comment_ico_open.gif) no-repeat left center','cursor':'default'});
			$('.tb_btn').css({'background':'url(/img/trackback_ico.gif) no-repeat left center','cursor':'pointer'});
		});
	});
	$('.tb_btn').click(function(){
		$('.comment_wrap').css({'display':'none'}).hide(function(){
			$('.tb_btn').css({'background':'url(/img/trackback_ico_open.gif) no-repeat left center','cursor':'default'});
			$('.com_btn').css({'background':'url(/img/comment_ico.gif) no-repeat left center','cursor':'pointer'});
		});
		//$('.trackback_wrap').show('fast');
		$('.trackback_wrap').toggle('fast');
	});
	$('.comment_able').click(function(){
		$('.comment_form').toggle('fast');
	});
	$('p.close').html('閉じる<img src="/img/close.gif" alt="閉じる" class="closeico" />');
	$('p.close').click(function(){
		$('.comment_wrap:visible').hide('fast');
		$('.trackback_wrap:visible').hide('fast');
		$('.comment_form:visible').css({'display':'none'});
		$('.com_btn').css({'background':'url(/img/comment_ico.gif) no-repeat left center','cursor':'pointer'});
		$('.tb_btn').css({'background':'url(/img/trackback_ico.gif) no-repeat left center','cursor':'pointer'});
	});
	$('div.topicpath a:eq(2)').text($('div.topicpath a img[src*="ico_"]').attr('alt'));
	$('div.catinfo h2 a:nth-child(1)').css({'color':'#b3d565'});
	$('.entrysub h2:contains("関連記事一覧")').css({
		'background':'url(/img/entrysub_h2_relentry.gif) no-repeat left bottom',
		'text-indent':'-10000px'
	});
	$('.entrysub h2:contains("キャンペーン情報")').css({
		'background':'url(/img/entrysub_h2_relnews.gif) no-repeat left bottom',
		'text-indent':'-10000px'
	});
/* ---------------------------------------------------
sub1 h2
--------------------------------------------------- */
	$('.sub1 h2:contains("PCレビューユーザー評価")').html('<img src="/img/sub1_h2_review.gif" alt="PCレビューユーザー評価" />');
	$('div.sub1 h2:gt(0)').css({'margin':'0px 0 3px 0'});
	$('.sub1 h2:eq(1):contains("プレイ環境")').css({'margin':'10px 0 3px 0'});
	$('.sub1 h2:eq(0):contains("オンラインゲームジャンル"), .sub1 h2:eq(0):contains("キャンペーン情報"), .sub1 h2:eq(0):contains("Flashゲーム"), .sub1 h2:eq(0):contains("ゲーム関連ニュース"), .sub1 h2:eq(0):contains("管理人コラム"), .sub1 h2:eq(0):contains("プレイ環境"), .sub1 h2:eq(0):contains("タグクラウド"), .sub1 h2:eq(0):contains("PCレビュー")').css({'margin':'10px 0 0 0'});
	$('.sub1 h2:contains("オンラインゲームジャンル"), .sub1 h2:contains("キャンペーン情報"), .sub1 h2:contains("Flashゲーム"), .sub1 h2:contains("ゲーム関連ニュース"), .sub1 h2:contains("管理人コラム"), .sub1 h2:contains("プレイ環境"), .sub1 h2:contains("タグクラウド"), .sub1 h2:contains("PCレビュー")').css({
		'width':'270px',
		'height':'50px',
		'clear':'both',
		'margin-left':'3px'
	});
	$('.sub1 h2 a:contains("オンラインゲームジャンル"), .sub1 h2:contains("オンラインゲームジャンル"), .sub1 h2 a:contains("キャンペーン情報"), .sub1 h2 a:contains("Flashゲーム"), .sub1 h2 a:contains("ゲーム関連ニュース"), .sub1 h2 a:contains("管理人コラム"), .sub1 h2:contains("プレイ環境"), .sub1 h2:contains("タグクラウド"), .sub1 h2 a:contains("PCレビュー")').css({
		'width':'270px',
		'height':'50px',
		'clear':'both',
		'display':'block',
		'text-indent':'-10000px',
		'background-image':'url(/img/sub1_h2.gif)',
		'background-repeat':'no-repeat'
	});
	$('.sub1 h2:contains("オンラインゲームジャンル")').css({
		'background-position':'0 0'
	});
	$('.sub1 h2 a:contains("Flashゲーム")').css({
		'background-position':'0 -50px',
		'cursor':'pointer'
	});
	$('.sub1 h2 a:contains("ゲーム関連ニュース")').css({
		'background-position':'0 -100px',
		'cursor':'pointer'
	});
	$('.sub1 h2 a:contains("管理人コラム")').css({
		'background-position':'0 -150px',
		'cursor':'pointer'
	});
	$('.sub1 h2:contains("プレイ環境")').css({
		'background-position':'0 -200px'
	});
	$('.sub1 h2:contains("タグクラウド")').css({
		'background-position':'0 -250px'
	});
	$('.sub1 h2 a:contains("キャンペーン情報")').css({
		'background-position':'0 -300px',
		'cursor':'pointer'
	});
	$('.sub1 h2 a:contains("PCレビュー")').css({
		'background-position':'0 -350px',
		'cursor':'pointer'
	});
	$('.sub1 h2:contains("その他のMMORPG"), .sub1 h2:contains("その他のアクション"), .sub1 h2:contains("その他のFPS･シューティング"), .sub1 h2:contains("その他の格闘"), .sub1 h2:contains("その他のシミュレーション"), .sub1 h2:contains("その他のスポーツ"), .sub1 h2:contains("その他のパズル"), .sub1 h2:contains("その他のレーシングゲーム"), .sub1 h2:contains("その他のテーブルゲーム"), .sub1 h2:contains("その他のコミュニティ"), .sub1 h2:contains("その他の音楽"), .sub1 h2:contains("その他のその他")').css({
		'width':'270px',
		'height':'50px',
		'clear':'both',
		'margin-left':'3px',
		'position':'relative'
	});
	$('.sub1 h2 a:contains("その他のMMORPG"), .sub1 h2 a:contains("その他のアクション"), .sub1 h2 a:contains("その他のFPS･シューティング"), .sub1 h2 a:contains("その他の格闘"), .sub1 h2 a:contains("その他のシミュレーション"), .sub1 h2 a:contains("その他のスポーツ"), .sub1 h2 a:contains("その他のパズル"), .sub1 h2 a:contains("その他のレーシングゲーム"), .sub1 h2 a:contains("その他のテーブルゲーム"), .sub1 h2 a:contains("その他のコミュニティ"), .sub1 h2 a:contains("その他の音楽"), .sub1 h2 a:contains("その他のその他")').css({
		'width':'270px',
		'height':'50px',
		'display':'block',
		'text-indent':'-10000px',
		'overflow':'hidden',
		'background-image':'url(/img/sub1_h2_othercat.gif)',
		'background-repeat':'no-repeat'
	});
	$('.sub1 h2 a:contains("その他のMMORPG")').css({'background-position':'0px 0px'});
	$('.sub1 h2 a:contains("その他のアクション")').css({'background-position':'0 -50px'});
	$('.sub1 h2 a:contains("その他のFPS･シューティング")').css({'background-position':'0 -100px'});
	$('.sub1 h2 a:contains("その他の格闘")').css({'background-position':'0 -150px'});
	$('.sub1 h2 a:contains("その他のシミュレーション")').css({'background-position':'0 -200px'});
	$('.sub1 h2 a:contains("その他のスポーツ")').css({'background-position':'0 -250px'});
	$('.sub1 h2 a:contains("その他のパズル")').css({'background-position':'0 -300px'});
	$('.sub1 h2 a:contains("その他のレーシングゲーム")').css({'background-position':'0 -350px'});
	$('.sub1 h2 a:contains("その他のテーブルゲーム")').css({'background-position':'0 -400px'});
	$('.sub1 h2 a:contains("その他のコミュニティ")').css({'background-position':'0 -450px'});
	$('.sub1 h2 a:contains("その他の音楽")').css({'background-position':'0 -500px'});
	$('.sub1 h2 a:contains("その他のその他")').css({'background-position':'0 -550px'});
/* ---------------------------------------------------
sub2 h2
--------------------------------------------------- */
	$('.sub2 h2:contains("掲載中全タイトル"), .sub2 h2:contains("月別記事カレンダー"), .sub2 h2:contains("オンラインゲームジャンル"), .sub2 h2:contains("新着オンラインゲーム"), .sub2 h2:contains("新着キャンペーン情報"), .sub2 h2:contains("新着Flashゲーム"), .sub2 h2:contains("新着ゲーム関連ニュース"), .sub2 h2:contains("新着管理人コラム")').css({
		'text-indent':'-10000px',
		'background-image':'url(/img/sub2_h2.gif)',
		'background-repeat':'no-repeat'
	});
	$('.sub2 h2:contains("掲載中全タイトル")').css({'background-position':'0 0'});
	$('.sub2 h2:contains("月別記事カレンダー")').css({'background-position':'0 -30px'});
	$('.sub2 h2:contains("オンラインゲームジャンル")').css({'background-position':'0 -60px'});
	$('.sub2 h2:contains("新着オンラインゲーム")').css({'background-position':'0 -90px'});
	$('.sub2 h2:contains("新着Flashゲーム")').css({'background-position':'0 -120px'});
	$('.sub2 h2:contains("新着ゲーム関連ニュース")').css({'background-position':'0 -150px'});
	$('.sub2 h2:contains("新着管理人コラム")').css({'background-position':'0 -180px'});
	$('.sub2 h2:contains("新着キャンペーン情報")').css({'background-position':'0 -210px'});
/* ---------------------------------------------------
sub2 catlink
--------------------------------------------------- */
	$('.sub2 .catlink a:contains("全オンラインゲーム一覧"), .sub2 .catlink a:contains("キャンペーン情報を全て見る"), .sub2 .catlink a:contains("Flashゲームを全て見る"), .sub2 .catlink a:contains("ゲーム関連ニュースを全て見る"), .sub2 .catlink a:contains("管理人コラムを全て見る")').css({
		'background-image':'url(/img/catlink.gif)',
		'background-repeat':'no-repeat',
		'text-indent':'-10000px'
	});
	$('.sub2 .catlink a:contains("全オンラインゲーム一覧")').css({
		'background-position':'0 0'
	});
	$('.sub2 .catlink a:contains("Flashゲームを全て見る")').css({
		'background-position':'0 -32px'
	});
	$('.sub2 .catlink a:contains("ゲーム関連ニュースを全て見る")').css({
		'background-position':'0 -64px'
	});
	$('.sub2 .catlink a:contains("管理人コラムを全て見る")').css({
		'background-position':'0 -96px'
	});
	$('.sub2 .catlink a:contains("キャンペーン情報を全て見る")').css({
		'background-position':'0 -128px'
	});
	$('.sub2 div.samecat:empty').text('該当するジャンルのタイトルがありません');
});
//action_layout.js

