/**
 *  コンテンツ メインエリア バナー
 */

(function() {
	var r = (/\/qa\.eisai\.jp/.test(location.href))? 'http://www.eisai.jp' : ((/testqa\.eisai\.jp/.test(location.href)) ? 'http://test.eisai.jp' : location.protocol + '//' + location.host)
	var b = [
		{
			'file': '/resource/images/related_sites/e-65.gif',
			'alt': '認知症を知るホームページ',
			'text': '認知症を知る<br />ホームページ',
			'subtext': '',
			'subtext02': '',
			'link': 'http://www.e-65.net'
		},
		{
			'file': '/resource/images/related_sites/i-no-science.gif',
			'alt': '胃のサイエンス',
			'text': '胃のサイエンス',
			'subtext': '',
			'subtext02': '',
			'link': 'http://www.i-no-science.com'
		},
		{
			'file': '/resource/images/related_sites/gyakusyoku.gif',
			'alt': 'www.逆食.jp',
			'text': 'www.逆食.jp',
			'subtext': '<span>ご存知ですか？逆流性食道炎</span><br />',
			'subtext02': '',
			'link': 'http://www.gyakusyoku.jp'
		},
		{
			'file': '/resource/images/related_sites/nabolin.gif',
			'alt': '肩こり・腰痛倶楽部',
			'text': '肩こり・腰痛倶楽部',
			'subtext': '',
			'subtext02': '',
			'link': 'http://www.nabolin.com'
		},
		{
			'file': '/resource/images/related_sites/totsu.gif',
			'alt': '疼痛.jp',
			'text': '疼痛.jp',
			'subtext': '',
			'subtext02': '',
			'link': 'http://toutsu.jp'
		},
		{
			'file': '/resource/images/related_sites/chocola.gif',
			'alt': 'チョコラドットコム',
			'text': 'チョコラドットコム',
			'subtext': '',
			'subtext02': '',
			'link': 'http://www.chocola.com'
		},
		{
			'file': '/resource/images/related_sites/juvela.gif',
			'alt': 'ユベラネット',
			'text': 'ユベラネット',
			'subtext': '<span>女性の健康を応援します</span><br />',
			'subtext02': '',
			'link': 'http://www.juvela.net'
		},
		{
			'file': '/resource/images/related_sites/shop.gif',
			'alt': 'エーザイの通信販売',
			'text': 'エーザイの通信販売',
			'subtext': '',
			'subtext02': '',
			'link': 'http://shop.eisai.jp/index.html'
		},
		{
			'file': '/resource/images/related_sites/humira.gif',
			'alt': 'ヒュミラ&reg;情報ネット',
			'text': 'ヒュミラ&reg;情報ネット',
			'subtext': '',
			'subtext02': '<br /><span>関節リウマチ、乾癬、クローン病、強直性脊椎炎、若年性特発性関節炎の患者様へ</span>',
			'link': 'http://www.e-humira.jp/'
		}
	];
	$(b).each(function(i, e) {
		var t = (/http:\/\/|https:\/\//.test(this.link)) ? ' target="_blank"' : '';
		var linkTag = '<a href="' + this.link + '"' + t + '>';
		$('#related_sites_side').append('<tr><td>' + linkTag + '<img src="' + r + this.file + '" alt="' + this.alt + '" /></a></td><td>' + this.subtext + linkTag + this.text + '</a>' + this.subtext02 + '</td></tr>');
	});
})();

