//URL
pageurl = "http://www.txbb.jp/";

var accordion=function(){
	var tm=sp=6;
	function slider(n){this.nm=n; this.arr=[]}
	slider.prototype.init=function(t,c,k){
		var a,h,s,l,i; a=document.getElementById(t); this.sl=k?k:'';
		h=a.getElementsByTagName('dt'); s=a.getElementsByTagName('dd'); this.l=h.length;
		for(i=0;i<this.l;i++){var d=h[i]; this.arr[i]=d; d.onclick=new Function(this.nm+'.pro(this)'); if(c==i){d.className=this.sl}}
		l=s.length;
		for(i=0;i<l;i++){var d=s[i]; d.mh=d.offsetHeight; if(c!=i){d.style.height=0; d.style.display='none'}}
	}
	slider.prototype.pro=function(d){
		for(var i=0;i<this.l;i++){
			var h=this.arr[i], s=h.nextSibling; s=s.nodeType!=1?s.nextSibling:s; clearInterval(s.tm);
			if(h==d&&s.style.display=='none'){s.style.display=''; su(s,1); h.className=this.sl}
			else if(s.style.display==''){su(s,-1); h.className=''}
		}
	}
	function su(c,f){c.tm=setInterval(function(){sl(c,f)},tm)}
	function sl(c,f){
		var h=c.offsetHeight, m=c.mh, d=f==1?m-h:h; c.style.height=h+(Math.ceil(d/sp)*f)+'px';
		c.style.opacity=h/m; c.style.filter='alpha(opacity='+h*100/m+')';
		if(f==1&&h>=m){clearInterval(c.tm)}else if(f!=1&&h==1){c.style.display='none'; clearInterval(c.tm)}
	}
	return{slider:slider}
}();


function accordion_company(){
	document.write("<div id=\"accordion\">");
	document.write("<dl class=\"accordion\" id=\"slider\">");
	document.write("<dt><a href=\"" + pageurl + "company/profile.html\"><img src=\"" + pageurl + "common/images/accordion/m_com_outline.gif\" alt=\"会社概要\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("<dt><a href=\"" + pageurl + "company/history.html\"><img src=\"" + pageurl + "common/images/accordion/m_com_enkaku.gif\" alt=\"沿革\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("<dt><a href=\"" + pageurl + "company/mission.html\"><img src=\"" + pageurl + "common/images/accordion/m_com_mission.gif\" alt=\"ミッションステートメント\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("<dt><a href=\"" + pageurl + "company/renovation.html\"><img src=\"" + pageurl + "common/images/accordion/m_com_soshiki.gif\" alt=\"組織図・関連会社\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("<dt><a href=\"" + pageurl + "company/governance.html\"><img src=\"" + pageurl + "common/images/accordion/m_com_corporate.gif\" alt=\"コーポレートガバナンス\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("<dt><a href=\"" + pageurl + "company/map.html\"><img src=\"" + pageurl + "common/images/accordion/m_com_access.gif\" alt=\"アクセスマップ\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("<dt><a href=\"" + pageurl + "company/profile.html\"><img src=\"" + pageurl + "common/images/accordion/ctop_company.gif\" alt=\"会社情報トップページへ\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("</dl>");
	document.write("</div>");
}

function accordion_service(){
	document.write("<div id=\"accordion\">");
	document.write("<dl class=\"accordion\" id=\"slider\">");
	document.write("<dt><a href=\"" + pageurl + "service/contents.html\"><img src=\"" + pageurl + "common/images/accordion/m_bus_contents.gif\" alt=\"コンテンツ事業\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("<dt><a href=\"" + pageurl + "service/crossmedia.html\"><img src=\"" + pageurl + "common/images/accordion/m_bus_media.gif\" alt=\"クロスメディア事業\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("<dt><a href=\"" + pageurl + "service/approach.html\"><img src=\"" + pageurl + "common/images/accordion/m_bus_kongo.gif\" alt=\"今後の事業の取り組み\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("<dt><a href=\"" + pageurl + "service/list.html\"><img src=\"" + pageurl + "common/images/accordion/m_bus_service.gif\" alt=\"主なサービス\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("<dt><a href=\"" + pageurl + "service/index.html\"><img src=\"" + pageurl + "common/images/accordion/ctop_business.gif\" alt=\"事業情報TOPへ\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("</dl>");
	document.write("</div>");
}

//IR
function accordion_ir(){
	document.write("<div id=\"accordion\">");
	document.write("<dl class=\"accordion\" id=\"slider\">");
	document.write("<dt><img src=\"" + pageurl + "common/images/accordion/m_ir_keiei.gif\" alt=\"経営情報\" /></dt>");
	document.write("<dd>");
	document.write("<span><a href=\"" + pageurl + "ir/investors.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_topmessage.gif\" alt=\"トップメッセージ\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "ir/governance.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_corporate.gif\" alt=\"コーポレートガバナンス\" /></a></span>");
	document.write("</dd>");
	document.write("<dt><img src=\"" + pageurl + "common/images/accordion/m_ir_library.gif\" alt=\"IRライブラリー\" /></dt>");
	document.write("<dd>");
	document.write("<span><a href=\"" + pageurl + "ir/library_tanshin.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_tanshin.gif\" alt=\"決算短信\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "ir/library_tekiji.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_tekiji.gif\" alt=\"適時開示情報\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "ir/library_yuka.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_yuuka.gif\" alt=\"有価証券報告書\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "ir/businessreport.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_businessreport.gif\" alt=\"ビジネスレポート （事業報告書）\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "ir/library_zaimu.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_zaimu.gif\" alt=\"財務データ\" /></a></span>");
	document.write("</dd>");
	document.write("<dt><img src=\"" + pageurl + "common/images/accordion/m_ir_event.gif\" alt=\"IRイベント・カレンダー\" /></dt>");
	document.write("<dd>");
	document.write("<span><a href=\"" + pageurl + "ir/calender.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_calendar.gif\" alt=\"IRカレンダー\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "ir/results.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_setsumeikai.gif\" alt=\"決算説明会\" /></a></span>");
	document.write("</dd>");
	document.write("<dt><img src=\"" + pageurl + "common/images/accordion/m_ir_kabushiki.gif\" alt=\"株式情報\" /></dt>");
	document.write("<dd>");
	document.write("<span><a href=\"" + pageurl + "ir/composition.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_kabugaiyo.gif\" alt=\"株主構成・大株主の状況\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "ir/clerical.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_kabujimu.gif\" alt=\"株主事務手続き\" /></a></span>");
	document.write("</dd>");
	document.write("<dt><a href=\"" + pageurl + "ir/privateinvestor.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_toushi.gif\" alt=\"個人投資家の皆様へ\" /></a></dt>");
	document.write("<dd>");
	document.write("</dd>");
	document.write("<dt><img src=\"" + pageurl + "common/images/accordion/m_ir_other.gif\" alt=\"その他のお知らせ\" /></dt>");
	document.write("<dd>");
	document.write("<span><a href=\"" + pageurl + "ir/disclosure.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_irpolicy.gif\" alt=\"IRポリシー\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "ir/koukoku/\"><img src=\"" + pageurl + "common/images/accordion/m_ir_denshi.gif\" alt=\"電子公告\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "ir/disclaimer.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_menseki.gif\" alt=\"免責事項\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "ir/faq.html\"><img src=\"" + pageurl + "common/images/accordion/m_ir_shitumon.gif\" alt=\"よくあるご質問\" /></a></span>");
	document.write("</dd>");
	document.write("<dt><a href=\"index.html\"><img src=\"" + pageurl + "common/images/accordion/ctop_ir.gif\" alt=\"IR情報トップページへ\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("</dl>");
	document.write("</div>");

}


function accordion_recruit(){
	document.write("<div id=\"accordion\">");
	document.write("<dl class=\"accordion\" id=\"slider\">");
	document.write("<dt><img src=\"" + pageurl + "common/images/accordion/m_recruit_about.gif\" /></dt>");
	document.write("<dd>");
	document.write("<span><a href=\"" + pageurl + "service/index.html\"><img src=\"" + pageurl + "common/images/accordion/m_recruit_service.gif\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "recruit/history.html\"><img src=\"" + pageurl + "common/images/accordion/m_recruit_history.gif\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "recruit/renovation.html\"><img src=\"" + pageurl + "common/images/accordion/m_recruit_renovation.gif\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "recruit/recruit_03individuality.html\"><img src=\"" + pageurl + "common/images/accordion/m_recruit_indv.gif\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "recruit/recruit_05office.html\"><img src=\"" + pageurl + "common/images/accordion/m_recruit_office.gif\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "recruit/recruit_04employee_data.html\"><img src=\"" + pageurl + "common/images/accordion/m_recruit_empdata.gif\" /></a></span>");
	document.write("<span><a href=\"" + pageurl + "recruit/recruit_08question.html\"><img src=\"" + pageurl + "common/images/accordion/m_recruit_faq.gif\" /></a></span>");
	document.write("</dd>");
	document.write("<dt><a href=\"" + pageurl + "recruit2011/index.html\"><img src=\"" + pageurl + "common/images/accordion/m_recruit_recruit1.gif\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("<dt><a href=\"" + pageurl + "recruit/recruit_06outline_chuto.html\"><img src=\"" + pageurl + "common/images/accordion/m_recruit_recruit2.gif\" /></a></dt>");
	document.write("<dd></dd>");
	document.write("</dl>");
	document.write("</div>");
}


