$(function(){
	$('.powerplay h2,p.pickupmark1,p.pickupmark2,p.pickupmark3').css({'behavior':'url("/iepngfix.htc")'});
/*
	$('.handle:not(.rank1a,.rank2a,.rank3a)').fadeTo(0,0.3);
	$('.handle').hover(
		function(){
			$(this).fadeTo(200,1.0);
		},
		function(){
			$('.handle:not(.rank1a,.rank2a,.rank3a)').fadeTo(600,0.3);
		}
	);
*/
	$('.handle.rank1').click(function(){
		$('.view.v2').hide('0',function(){
			$('.handle.rank2').show();
			$('.handle.rank2a').hide();
		});
		$('.view.v3').hide('0',function(){
			$('.handle.rank3').show();
			$('.handle.rank3a').hide();
		});
		$('.view.v1').show('slow',function(){
			$('.handle.rank1').hide();
			$('.handle.rank1a').fadeIn('slow');
		});
	});
	$('.handle.rank2').click(function(){
		$('.view.v1').hide('0',function(){
			$('.handle.rank1').show();
			$('.handle.rank1a').hide();
		});
		$('.view.v3').hide('0',function(){
			$('.handle.rank3').show();
			$('.handle.rank3a').hide();
		});
		$('.view.v2').show('slow',function(){
			$('.handle.rank2').hide();
			$('.handle.rank2a').fadeIn('slow');
		});
	});
	$('.handle.rank3').click(function(){
		$('.view.v1').hide('0',function(){
			$('.handle.rank1').show();
			$('.handle.rank1a').hide();
		});
		$('.view.v2').hide('0',function(){
			$('.handle.rank2').show();
			$('.handle.rank2a').hide();
		});
		$('.view.v3').show('slow',function(){
			$('.handle.rank3').hide();
			$('.handle.rank3a').fadeIn('slow');
		});
	});

	$('.recent_list h2:contains("新着オンラインゲーム")').html('<img src="/img/h2_recent_list_onlinegame.gif" alt="新着オンラインゲーム" />');
	$('.recent_list h2:contains("新着βテスト中オンラインゲーム")').html('<img src="/img/h2_recent_list_beta.gif" alt="βテスト中オンラインゲーム" />');
	$('.recent_list h2:contains("新着Flashゲーム")').html('<img src="/img/h2_recent_list_flash.gif" alt="新着Flashゲーム" />');
	$('.recent_list h2:contains("新着ゲームニュース")').html('<img src="/img/h2_recent_list_news.gif" alt="新着ゲームニュース" />');
	$('.recent_list h2:contains("新着管理人コラム")').html('<img src="/img/h2_recent_list_column.gif" alt="新着管理人コラム" />');
	$('.recent_list h2:contains("新着キャンペーン情報")').html('<img src="/img/h2_recent_list_campaign.gif" alt="新着キャンペーン情報" />');

	$('.recent_list p.topcatlist a:contains("オンラインゲームをもっと見る")').html('<img src="/img/topcatlist_onlinegame.gif" alt="オンラインゲームをもっと見る" />');
	$('.recent_list p.topcatlist a:contains("Flashゲームをもっと見る")').html('<img src="/img/topcatlist_flash.gif" alt="Flashゲームをもっと見る" />');
	$('.recent_list p.topcatlist a:contains("ゲームニュースをもっと見る")').html('<img src="/img/topcatlist_news.gif" alt="ゲームニュースをもっと見る" />');
	$('.recent_list p.topcatlist a:contains("管理人コラムをもっと見る")').html('<img src="/img/topcatlist_column.gif" alt="管理人コラムをもっと見る" />');
	$('.recent_list p.topcatlist a:contains("キャンペーン情報をもっと見る")').html('<img src="/img/topcatlist_campaign.gif" alt="キャンペーン情報をもっと見る" />');


/* ---------------------------------------------------
sub1 h2
--------------------------------------------------- */
	$('.sub1 h2:contains("オンラインゲームジャンル"),.sub1 h2:contains("タグクラウド")').css({
		'width':'270px',
		'height':'50px',
		'clear':'both',
		'display':'block',
		'text-indent':'-10000px',
		'margin-left':'0px',
		'background-image':'url(/img/sub1_h2.gif)',
		'background-repeat':'no-repeat'
	});
	$('.sub1 h2:contains("オンラインゲームジャンル")').css({
		'background-position':'0 0'
	});
	$('.sub1 h2:contains("タグクラウド")').css({
		'background-position':'0 -250px'
	});



});
//action_indextop.js