(function($) {
$('div#contentsRight').ready(function(){
	//////////////////////////////////////////////////////////////////////
	
	$('div#aneSearch>div#sis>form>input:eq(0)').val('テストＯＬ');

	//アクセスランキング//////////////////////////////////////////////////
	var tagRankingOL = $('div#contentsRight>div#accessRanking>ol');
	
	var myRank1URL = 'http://www.anecan.tv/profile/';
	var myRank1Title = "AneCanモデルプロフィール 有村実樹登場！";
	var myRank1Target = '_self';

	var myRank2URL = 'http://blog.anecan.tv/yuri/';
	var myRank2Title = "YURISM online -蛯原友里 最新ニュース-";
	var myRank2Target = '_self';

	var myRank3URL = 'http://blog.anecan.tv/thismonth/';
	var myRank3Title = "今月のAneCan　表紙メイキングムービー";
	var myRank3Target = '_self';

	var myRank4URL = 'http://blog.anecan.tv/mamacan/';
	var myRank4Title = "mamacan読者ブログスタート！";
	var myRank4Target = '_self';

	var myRank5URL = 'http://anecan.tv/contents/present/';
	var myRank5Title = "AneCan.TV 検定Present";
	var myRank5Target = '_self';

	tagRankingOL.children('li#rank1').children('a').attr('href', myRank1URL);
	tagRankingOL.children('li#rank1').children('a').attr('target', myRank1Target);
	tagRankingOL.children('li#rank1').children('a').text(myRank1Title);
	
	tagRankingOL.children('li#rank2').children('a').attr('href', myRank2URL);
	tagRankingOL.children('li#rank2').children('a').attr('target', myRank2Target);
	tagRankingOL.children('li#rank2').children('a').text(myRank2Title);
	
	tagRankingOL.children('li#rank3').children('a').attr('href', myRank3URL);
	tagRankingOL.children('li#rank3').children('a').attr('target', myRank3Target);
	tagRankingOL.children('li#rank3').children('a').text(myRank3Title);
	
	tagRankingOL.children('li#rank4').children('a').attr('href', myRank4URL);
	tagRankingOL.children('li#rank4').children('a').attr('target', myRank4Target);
	tagRankingOL.children('li#rank4').children('a').text(myRank4Title);
	
	tagRankingOL.children('li#rank5').children('a').attr('href', myRank5URL);
	tagRankingOL.children('li#rank5').children('a').attr('target', myRank5Target);
	tagRankingOL.children('li#rank5').children('a').text(myRank5Title);
	
	
		// Information //////////////////////////////////////////////////////////
	var tagInfoUL = $('div#contentsRight>div#recommendInfo>ul');
	tagInfoUL.hide();
	var mostLargeNum = 0;


	mostLargeNum = parseInt(24, 10);


	function setRightInfoClass(myID){
		var className = '';
		if(myID === 'スペシャル'){
			className = 'listSP';
		}else if(myID === 'モデル'){
			className = 'listMO';
		}else if(myID === '今月のAneCan'){
			className = 'listTM';
		}else if(myID === 'プレゼント'){
			className = 'listPR';
		}else if(myID === 'ファッション'){
			className = 'listFA';
		}else if(myID === 'ブログ'){
			className = 'listBL';
		}else if(myID === 'ビューティ'){
			className = 'listBU';
		}else if(myID === 'ライフスタイル'){
			className = 'listLS';
		}else if(myID === '楽しみ方'){
			className = 'listHT';
		};		
		return className;
	};

	var RIEntryCount = 0; 

	function setRightInformation(myEntryKey, myTagName, myThumbURL, myTitleTag, myTitle, myDiscr){
		var myClassName = setRightInfoClass(myTagName);
		var myFirstAppendfTag = '<li><a class="' + myClassName + '" ' + myEntryKey + '>';
		myFirstAppendfTag += '<img src="' + myThumbURL + '" alt="' + myTitle + '" />';
		myFirstAppendfTag += '<span class="title">' + myTitleTag + '</span>';
		myFirstAppendfTag += '<span class="descr">' + myDiscr + '</span>';
		myFirstAppendfTag += '</a></li>';
		tagInfoUL.append(myFirstAppendfTag);
	};


/*=====01=====*/
	setRightInformation(
		'href="http://www.anecan.tv/contents/1003colehaan" target="_self"',
		'ファッション',
		'http://blog.anecan.tv/renew_info/assets_c/2010/03/60_60_1003colehaan-thumb-60x60-11426.jpg',
		'アクティブLadyの<br />ウルトラBag&Shoes<br />ミニトートをプレゼント！',
		'アクティブLadyのウルトラBag&Shoesミニトートをプレゼント！',
		'機能派バッグ&amp;がんがん歩けるパンプス！'
	);

/*=====02=====*/
	setRightInformation(
		'href="http://www.anecan.tv/contents/1003special/" target="_self"',
		'ライフスタイル',
		'http://blog.anecan.tv/renew_info/assets_c/2010/03/60_60_1003special-thumb-60x60-11423.jpg',
		'AneCan3周年<br />熊澤枝里子といく宮古島で<br />リッチにリゾートGOLF！',
		'AneCan3周年熊澤枝里子といく宮古島でリッチにリゾートGOLF！',
		'※４月２０日応募締め切り'
	);

/*=====03=====*/
	setRightInformation(
		'href="http://www.anecan.tv/contents/ago/fashion/kissonthegreen/01/" target="_self"',
		'ライフスタイル',
		'http://blog.anecan.tv/renew_info/assets_c/2010/03/60_60_1003ago-thumb-60x60-11425.jpg',
		'AGO×kiss on the green<br />理想のゴルフウエアをつくるまで',
		'AGO×kiss on the green理想のゴルフウエアをつくるまで',
		'AneCanゴルフ部部長鈴木サチ、理想のゴルフウエアをオーダー！'
	);

/*=====04=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/present_info.html" target="_self"',
		'プレゼント',
		'http://blog.anecan.tv/renew_info/assets_c/2009/11/60_60_ane_present-thumb-60x60-8165.jpg',
		'AneCan.TV検定プレゼント',
		'AneCan.TV検定プレゼント',
		'SANYO「OXacti(ザクティ) DMX-CS1」・佐藤製薬「ユリアージュ」ウォーター＆モイストローション'
	);

/*=====05=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/bestshot_info.html" target="_self"',
		'モデル',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_60_0910_bestshot-thumb-60x60-6023.jpg',
		'AneCanベストショット<br />4月号',
		'AneCanベストショット4月号',
		'毎月AneCan本誌から専属モデルたちの<br />ベストショットをご紹介！'
	);

/*=====06=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/stylist_info.html" target="_self"',
		'ファッション',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_0910test3-thumb-60x60-6024.jpg',
		'今月のKAMEの気持ち<br />IRIEの気持ち',
		'今月のKAMEの気持ちIRIEの気持ち',
		'AneCanの人気スタイリスト<br />2名によるファッションチェッ ク！'
	);

/*=====07=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/photo_gallery_info.html" target="_self"',
		'ビューティ',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_60_0910_photo_gallary-thumb-60x60-6031.jpg',
		'AneCan.TV Photo Gallery',
		'AneCan.TV Photo Gallery',
		'AneCan.TV内の写真は<br />ここですべてチェック！'
	);

/*=====08=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/fashion_focus_info.html" target="_self"',
		'ファッション',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_60_0910_fashion_focus-thumb-60x60-6035.jpg',
		'AneCan ファッションFocus',
		'AneCan ファッションFocus',
		'AneCanの誌面には小さく<br />写っている＆写らなかった洋服や小物の<br />一部をご紹介！'
	);

/*=====09=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/this_month_info.html" target="_self"',
		'今月のAneCan',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_60_0910_this_month-thumb-60x60-6022.jpg',
		'今月のAneCan',
		'今月のAneCan',
		'今月号のAneCanの表紙と目次をチェック！表紙メイキングムービーは4名！<br />毎月更新！'
	);

/*=====10=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/movie_gallery_info.html" target="_self"',
		'ビューティ',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_60_0910_movie_gallary-thumb-60x60-6033.jpg',
		'AneCan.TV Movie Gallery',
		'AneCan.TV Movie Gallery',
		'AneCan.TV内の動画を<br />一覧できるムービーギャラリー'
	);

/*=====11=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/mamacan_info.html" target="_self"',
		'ライフスタイル',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_60_0910_mamacan-thumb-60x60-6038.jpg',
		'mamacan.tv<br />mamacanブログスタート',
		'mamacan.tvmamacanブログスタート',
		'ママになった姉レディとプレママ姉レディ<br />のためのHAPPYコンテンツ'
	);

/*=====12=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/yuri_info.html" target="_self"',
		'モデル',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_60_0910_yurism_online-thumb-60x60-6030.jpg',
		'YURISM online',
		'YURISM online',
		'蛯原友里の最新ニュースをお届け！'
	);

/*=====13=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/aneitem_info.html" target="_self"',
		'ファッション',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_60_0910_mise_item-thumb-60x60-6052.jpg',
		'姉レディの魅せアイテム',
		'姉レディの魅せアイテム',
		'あなたの審美眼にかなった<br />ご自慢のLOVEアイテムを大公開！<br />投稿してプレゼントをGET！'
	);

/*=====14=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/ago_info.html" target="_self"',
		'ライフスタイル',
		'http://blog.anecan.tv/renew_info/assets_c/2009/10/60_60_0910_ago-thumb-60x60-6947.jpg',
		'AneCan GOLF online',
		'AneCan GOLF online',
		'欲張り姉レディのための<br />ナンバーワンGOLFサイト！'
	);

/*=====15=====*/
	setRightInformation(
		'href="http://www.anecan.tv/redirect/premium_lesson_info.html" target="_self"',
		'ライフスタイル',
		'http://blog.anecan.tv/renew_info/assets_c/2009/11/60_60_0912_plesson-thumb-60x60-9024.jpg',
		'Premium Lesson',
		'Premium Lesson',
		'習い事をしたい！　手に職をつけたい！<br />自分磨きをしたい人にピッタリの<br />レッスン＆スクールを紹介'
	);

/*=====16=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/blogger_info.html" target="_self"',
		'ブログ',
		'http://blog.anecan.tv/renew_info/assets_c/2009/11/60_60_0910_blogger01-thumb-60x60-8167.jpg',
		'AneCan.TV<br />Premium 読者ブログ',
		'AneCan.TVPremium 読者ブログ',
		'AneCan.TV Premium読者ブロガーのブログ。<br>あなたも読者ブロガーになりませんか？'
	);

/*=====17=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/animennowa_info.html" target="_self"',
		'ライフスタイル',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_animen-thumb-60x60-6057.gif',
		'AniメンのWA！',
		'AniメンのWA！',
		'姉レディがお勧めするイケメン「Aniメン」。<br />過去のAniメンプロフィール公開中！'
	);

/*=====18=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/0910ebibox_info.html" target="_self"',
		'モデル',
		'http://blog.anecan.tv/renew_info/assets_c/2009/10/60_60_0910_ebibox-thumb-60x60-6789.jpg',
		'蛯原友里BOX「愛してる」<br />好評発売中！！',
		'蛯原友里BOX「愛してる」好評発売中！！',
		'写真集+DVD+エビカレの豪華セット! <br />お伝えしきれない素顔にも迫ります! '
	);

/*=====19=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/profile_info.html" target="_self"',
		'モデル',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_60_0910_prifile-thumb-60x60-6040.jpg',
		'Model&rsquo;s Movie Profile',
		'Model&rsquo;s Movie Profile',
		'AneCanの専属モデルのムービー＆<br />写真とプロフィールをチェック！'
	);

/*=====20=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/animen_blog_info.html" target="_self"',
		'ブログ',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_60_0910_animen_express-thumb-60x60-6059.jpg',
		'AniメンEXプレス',
		'AniメンEXプレス',
		'あのAniメンのブログが登場！<br />日々の日記や思っていることを<br />赤裸々に告白！'
	);

/*=====21=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/cosme_blog_info.html" target="_self"',
		'ビューティ',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_60_0910_beauty_blog-thumb-60x60-6062.jpg',
		'AneCan ビューティBlog',
		'AneCan ビューティBlog',
		'AneCan専属ライターが自分の愛するコスメをご紹介！'
	);

/*=====22=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/eye_blog_info.html" target="_self"',
		'ブログ',
		'http://blog.anecan.tv/renew_info/assets_c/2009/09/60_60_0910_official_blog-thumb-60x60-6064.jpg',
		'AneCan 編集部Blog',
		'AneCan 編集部Blog',
		'スタッフがお届けする内部情報アレコレ！'
	);

/*=====23=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/anecan_banner_info.html" target="_self"',
		'プレゼント',
		'http://anecan.tv/img/60_digital_goods.jpg',
		'AneCan.TVバナー',
		'AneCan.TVバナー',
		'色々な種類からAneCan.TVバナー<br />をお選びいただけます！'
	);

/*=====24=====*/
	setRightInformation(
		'href="http://anecan.tv/redirect/mayakei_kame_info.html" target="_self"',
		'ライフスタイル',
		'http://blog.anecan.tv/renew_info/assets_c/2009/10/60_60_0910_mayakame-thumb-60x60-7483.jpg',
		'月刊マヤ系 ＆ <br />亀恭子のFashion Room',
		'月刊マヤ系 ＆ 亀恭子のFashion Room',
		'真山景子さんと、亀恭子さんへの<br />質問はこちらから★'
	);


	tagInfoUL.children('li').each(function(i){
		($(this).text().length === 0)? $(this).remove() : null;
	});
	tagInfoUL.show();

});
})(jQuery);