$(function(){var j=0;var D=[];var C=[];var q=bzlvMConf.DAILY_BASE;var m=bzlvMConf.DAILY_XML;var p=window.location.href;var o=new Date();var H=o.getTimezoneOffset();var u=H+540;var E=new Date();var s=new Date();E.setTime(o.getTime()+u*60*1000);s.setTime(o.getTime()+u*60*1000);p=p.replace(q,"");var I=p.match(/\d+/g);if(I!=null){if(I[0].length==8){var y=I[0].substring(0,4);var w=I[0].substring(4,6);var z=I[0].substring(6,8);if(parseInt(w,10)<13&&parseInt(z,10)<32){var l=E.getHours();var i=E.getMinutes();var f=E.getSeconds();E=new Date(y,(parseInt(w,10)-1),z,l,i,f);j=1;bzlvMConf.XML_LATEST=m+I[0]+".xml";$("#bzlvBLiveModuleAreaRemark").css("display","none")}else{$("#bzlvBLiveModuleAreaRemark").css("display","")}}else{$("#bzlvBLiveModuleAreaRemark").css("display","")}}else{$("#bzlvBLiveModuleAreaRemark").css("display","")}$("#bzlvBLiveModuleAreaSchedule").css("display","");$("#bzlvBLiveModuleAreaScheduleRss a").attr("href",bzlvMConf.RSS_ADDR);$("#bzlvBLiveModuleAreaScheduleRss a").attr("target","_blank");$("#bzlvBLiveModulePopupCalendarIn").jCal({day:E,dow:["日","月","火","水","木","金","土"],ml:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]});var a=E.getFullYear()+"-"+("0"+(E.getMonth()+1)).slice(-2)+"-"+("0"+E.getDate()).slice(-2);var c=s.getFullYear()+"-"+("0"+(s.getMonth()+1)).slice(-2)+"-"+("0"+s.getDate()).slice(-2);var J=("0"+E.getHours()).slice(-2)+":"+("0"+E.getMinutes()).slice(-2);var K=("0"+s.getHours()).slice(-2)+":"+("0"+s.getMinutes()).slice(-2);nextdate=new Date(E);nextdate.setDate(E.getDate()+1);prevdate=new Date(E);prevdate.setDate(E.getDate()-1);var g=0;var h=v();var x="";var d="";if(j==1){$("#bzlvBLiveModuleFixCalendarTime").css("display","none")}else{$("#bzlvBLiveModuleFixCalendarTop").css("display","none")}var b=$("#bzlvBLiveModuleFixCalendar").css({position:"absolute",top:0,left:0});$(window).scroll(function(){var N=$("#bzlvBLiveModuleAreaSchedule").height();var M=$("#bzlvBLiveModuleAreaSchedule").position().top;var L=$("#bzlvBLiveModuleFixCalendar").height();if($(document).scrollTop()<(M+N-L)){$("#bzlvBLiveModuleArea").prepend("<div class='bzlvReDraw'>　</div>");b.css("top",$(document).scrollTop());b.css("display","block");$(".bzlvReDraw").remove()}});$("#bzlvBLiveModuleFixCalendarBtn").click(function(){if($("#bzlvBLiveModulePopupCalendar").css("display")=="none"){$("#bzlvBLiveModulePopupCalendar").css("display","")}else{$("#bzlvBLiveModulePopupCalendar").css("display","none")}return false});$("#bzlvBLiveModulePopupCalendarClose").click(function(){$("#bzlvBLiveModulePopupCalendar").css("display","none");return false});$("#bzlvBLiveModuleFixCalendarPrev").click(function(){window.location.href=(q+prevdate.getFullYear()+("0"+(prevdate.getMonth()+1)).slice(-2)+("0"+prevdate.getDate()).slice(-2)+"/live.htm");return false});$("#bzlvBLiveModuleFixCalendarNext").click(function(){window.location.href=(q+nextdate.getFullYear()+("0"+(nextdate.getMonth()+1)).slice(-2)+("0"+nextdate.getDate()).slice(-2)+"/live.htm");return false});$("#bzlvBLiveModuleAreaRemarkAll").click(function(){$("#bzlvBLiveModuleAreaRemark .bzlvBLMTdLargeAreaRemark").each(function(){$(this).css("height","");$(this).parent().parent().prev().css("background-color","rgb(255, 247, 247)")});return false});$("#bzlvBLiveModuleAreaRemarkList").click(function(){$("#bzlvBLiveModuleAreaRemark .bzlvBLMTdLargeAreaRemark").each(function(){$(this).height(0);$(this).parent().parent().prev().css("background-color","rgb(255, 255, 255)")});return false});$("#bzlvBLiveModuleAreaScheduleAll").click(function(){$("#bzlvBLiveModuleAreaSchedule .bzlvBLMTdLargeAreaSchedule").each(function(){$(this).css("height","");$(this).parent().parent().prev().css("background-color","rgb(238, 238, 238)")});return false});$("#bzlvBLiveModuleAreaScheduleList").click(function(){$("#bzlvBLiveModuleAreaSchedule .bzlvBLMTdLargeAreaSchedule").each(function(){$(this).height(0);$(this).parent().parent().prev().css("background-color","rgb(255, 255, 255)")});return false});$("#bzlvBLiveModuleFixCalendarMonth").html(a.substring(5,7)+"月");$("#bzlvBLiveModuleFixCalendarDay strong").html(a.substring(8,10));$("#bzlvBLiveModuleFixCalendarTime").html("("+J+")");$("#bzlvBLiveModulePopupCalendar").css("display","none");$("#bzlvBLiveModuleFixCalendar").css("display","");if(j){$.ajax({url:bzlvMConf.XML_LATEST+"?"+h,dataType:"xml",timeout:bzlvMConf.XML_TIMEOUT,success:function(L){B(L,k)},error:function(L){$("#bzlvTopModuleLoadingItem2 img").css("display","none");$("#bzlvE22").css("display","block")}})}else{$.ajax({url:bzlvMConf.XML_PICKUP+"?"+h,dataType:"xml",timeout:bzlvMConf.XML_TIMEOUT,success:function(L){B(L,F)},error:function(){$("#bzlvTopModuleLoadingItem1 img").css("display","none");$("#bzlvE12").css("display","block")}});$.ajax({url:bzlvMConf.XML_LATEST+"?"+h,dataType:"xml",timeout:bzlvMConf.XML_TIMEOUT,success:function(L){g++;B(L,k)},error:function(){$("#bzlvTopModuleLoadingItem2 img").css("display","none");$("#bzlvE22").css("display","block")}})}function F(S,N){if(S.length==0){$("#bzlvTopModuleLoadingItem1").css("display","none");$("#bzlvE12").css("display","");return}else{$("#bzlvTopModuleLoadingArea1").css("display","none")}var ae=0;var ab=0;var ad=document.createElement("table");ad.setAttribute("cellPadding","0");ad.setAttribute("cellSpacing","0");ad.setAttribute("id","bzlvTopModuleTable");var L=document.createElement("tbody");for(var Y=0;Y<S.length;Y++){var O=document.createElement("tr");var V=document.createElement("td");V.setAttribute("class","bzlvBLMTdDayHead");V.setAttribute("className","bzlvBLMTdDayHead");V.setAttribute("colSpan","4");V.innerHTML="<p>"+S[Y][0].date.substring(5,7)+"月"+S[Y][0].date.substring(8,10)+"日</p>";O.appendChild(V);if(Y==0&&S[Y][0].date==a){}else{L.appendChild(O)}for(var X=0;X<S[Y].length;X++){var O=document.createElement("tr");O.setAttribute("class","bzlvPMTr");O.setAttribute("className","bzlvPMTr");var V=document.createElement("td");V.setAttribute("class","bzlvBLMTd1");V.setAttribute("className","bzlvBLMTd1");var U=document.createElement("td");U.setAttribute("class","bzlvBLMTd2");U.setAttribute("className","bzlvBLMTd2");var T=document.createElement("td");T.setAttribute("class","bzlvBLMTd3");T.setAttribute("className","bzlvBLMTd3");var R=document.createElement("td");R.setAttribute("class","bzlvBLMTd4");R.setAttribute("className","bzlvBLMTd4");V.innerHTML="<img src='/live/images/live_v20091207000/category_icon"+S[Y][X].category+".gif' alt='"+S[Y][X].label+"' />";if(S[Y][X].time.length){U.innerHTML=S[Y][X].time}else{U.innerHTML="　"}var Z;Z='<div style="position: relative;">';Z+='<img id="bzlvBLSignIcon" alt="" src="/live/images/live_v20091207000/topModuleSign.gif"/>';Z+='<div class="ticker_outer" id="bzlvTopModuleLinkIcons">';Z+='<p style="left: 0px;" class="bzlvTopModuleRollWidth" id="bzlvTopModuleRollWidth">';Z+="<span>";if(S[Y][X].title.length>28){if(S[Y][X].content.length>0||S[Y][X].entry_links.length>0){Z+='<a class="bzlvBLiveTitleLink" href="#" name="'+ab+","+ae+'">'+S[Y][X].title+"</a>";Z+="</span>";Z+="</p>";Z+="</div>"}else{Z+=S[Y][X].title+"</span>";Z+="</p>";Z+="</div>"}}else{if(S[Y][X].content.length>0||S[Y][X].entry_links.length>0){Z+='<a class="bzlvBLiveTitleLink" href="#" name="'+ab+","+ae+'">'+S[Y][X].title+"</a>";Z+="</span>";Z+="</p>";Z+="</div>";Z+="<p></p>"}else{Z+=S[Y][X].title+"</span>";Z+="</p>";Z+="</div>";Z+="<p></p>"}}ab++;if(S[Y][X].content.length>0){Z+='<div id="bzlvTopModuleLinkIcons2">';Z+='<p style="left: 0px;" id="bzlvTopModuleRollWidth">';Z+="<span>";if(S[Y][X].content.length>25){Z+=S[Y][X].content.substring(0,26)+"…"}else{Z+=S[Y][X].content}Z+="</span>";Z+="</p>";Z+="</div>"}Z+="</div>";T.innerHTML=Z;if(S[Y][X].em!=undefined){if(e(S[Y][X].em.substring(0,10),S[Y][X].em.substring(11,16),a,J)){R.innerHTML="　"}else{R.innerHTML="<img alt='更新' src='/live/images/live_v20091207000/topModuleReload.gif'/>"}}else{R.innerHTML="　"}O.appendChild(V);O.appendChild(U);O.appendChild(T);O.appendChild(R);L.appendChild(O);if(S[Y][X].entry_links.length>0||S[Y][X].content.length>0){var ac=document.createElement("tr");ac.setAttribute("class","bzlvPSTr");ac.setAttribute("className","bzlvPSTr");var Q=document.createElement("td");Q.setAttribute("class","bzlvBLMTdLarge");Q.setAttribute("className","bzlvBLMTdLarge");Q.setAttribute("colSpan","4");var aa;aa='<div id="bzlvBLMTdLargeAreaRemark" class="bzlvBLMTdLargeAreaRemark" style="overflow:hidden;">';aa+='<p id="bzlvBLMTdLargeAreaTitle">'+S[Y][X].title+"</p>";if(S[Y][X].content.length>0){var P=S[Y][X].content.replace(/\r\n/gi,"<br />");P=P.replace(/\r/gi,"<br />");P=P.replace(/\n/gi,"<br />");if(S[Y][X].entry_links.length>0&&S[Y][X].entry_links[0].rel=="alternate"){P=P+'<br /><a href="'+S[Y][X].entry_links[0].link+'">【記事ページ】</a>'}aa+='<p id="bzlvBLMTdLargeAreaBody">'+P+"</p>"}else{if(S[Y][X].entry_links.length>0&&S[Y][X].entry_links[0].rel=="alternate"){aa+='<p id="bzlvBLMTdLargeAreaBody"><a href="'+S[Y][X].entry_links[0].link+'">【記事ページ】</a></p>'}else{aa+='<p id="bzlvBLMTdLargeAreaBody"></p>'}}if(S[Y][X].entry_links.length){if(S[Y][X].entry_links[0].rel=="alternate"&&S[Y][X].entry_links.length>1){aa+='<div id="bzlvBLMTdLargeAreaTLink">';aa+='<p id="bzlvBLMTdLargeAreaTLinkTitle">関連リンク</p>';for(var W=1;W<S[Y][X].entry_links.length;W++){aa+='<p class="bzlvTopModuleLinkIcon bzlvmarginBottom">';if(S[Y][X].entry_links[W].title.length>37){aa+='<a href="'+S[Y][X].entry_links[W].link+'" target="_blank">'+S[Y][X].entry_links[W].title.substring(0,36)+"…</a>"}else{aa+='<a href="'+S[Y][X].entry_links[W].link+'" target="_blank">'+S[Y][X].entry_links[W].title+"</a>"}aa+="</p>"}aa+="</div>"}else{if(S[Y][X].entry_links[0].rel=="alternate"&&S[Y][X].entry_links.length==1){}else{aa+='<div id="bzlvBLMTdLargeAreaTLink">';aa+='<p id="bzlvBLMTdLargeAreaTLinkTitle">関連リンク</p>';for(var W=0;W<S[Y][X].entry_links.length;W++){aa+='<p class="bzlvTopModuleLinkIcon bzlvmarginBottom">';if(S[Y][X].entry_links[W].title.length>37){aa+='<a href="'+S[Y][X].entry_links[W].link+'" target="_blank">'+S[Y][X].entry_links[W].title.substring(0,36)+"…</a>"}else{aa+='<a href="'+S[Y][X].entry_links[W].link+'" target="_blank">'+S[Y][X].entry_links[W].title+"</a>"}aa+="</p>"}aa+="</div>"}}}aa+='<p id="bzlvBLMTdCloseBtn"><a href="#" name="'+ae+'">閉じる</a></p>';aa+="</div>";Q.innerHTML=aa;ac.appendChild(Q);L.appendChild(ac);ae++}}}ad.appendChild(L);var M=document.getElementById("bzlvBLiveModuleAreaRemarkIn");M.appendChild(ad);$("#bzlvBLiveModuleAreaRemark .bzlvBLMTdLargeAreaRemark").each(function(){D.push($(this).height());$(this).height(0);$(this).find("#bzlvBLMTdCloseBtn").click(function(){$($("#bzlvBLiveModuleAreaRemark .bzlvBLMTdLargeAreaRemark").get($(this).find("a").attr("name"))).animate({height:"0px"},{duration:bzlvMConf.LIVEPAGE_CLOSESPEED,step:function(){var ah=$("#bzlvBLiveModuleAreaRemark").height();var af=$("#bzlvBLiveModuleAreaSchedule").height();modh=ah+af-150;var ai=$("#bzlvBLiveModuleFixCalendar").position().top;var ag=$("#bzlvBLiveModuleFixCalendar").height();if(modh<(ai+ag)){$("#bzlvBLiveModuleFixCalendar").css("top",(modh-ag))}}});$($("#bzlvBLiveModuleAreaRemark .bzlvBLMTdLargeAreaRemark").get($(this).find("a").attr("name"))).parent().parent().prev().css("background-color","rgb(255,255,255)");return false})});$("#bzlvBLiveModuleAreaRemark  .bzlvPMTr").each(function(){$(this).click(function(){if($(this).find("a").attr("name")!=undefined){var af=$(this).find("a").attr("name").split(",");if($($(this).parent().find(".bzlvPSTr #bzlvBLMTdLargeAreaRemark").get(af[1])).height()==0){$($(this).parent().find(".bzlvPSTr #bzlvBLMTdLargeAreaRemark").get(af[1])).animate({height:D[af[1]]+"px"},bzlvMConf.LIVEPAGE_OPENSPEED);$(this).css("background-color","rgb(255, 247, 247)")}else{$($(this).parent().find(".bzlvPSTr #bzlvBLMTdLargeAreaRemark").get(af[1])).animate({height:"0px"},{duration:bzlvMConf.LIVEPAGE_CLOSESPEED,step:function(){var ai=$("#bzlvBLiveModuleAreaRemark").height();var ag=$("#bzlvBLiveModuleAreaSchedule").height();modh=ai+ag-150;var aj=$("#bzlvBLiveModuleFixCalendar").position().top;var ah=$("#bzlvBLiveModuleFixCalendar").height();if(modh<(aj+ah)){$("#bzlvBLiveModuleFixCalendar").css("top",(modh-ah))}}});$(this).css("background-color","rgb(255, 255, 255)")}}return false})});$(".bzlvTopModuleRollWidth").each(function(){var af=$(this).find("span").width();if(af==null||af==undefined){return}$(this).width(af+"px");if(af>300){if(!$(this).parent().parent().find(".bzlvTopModuleThreeCode").length){if($(this).find("a").length){$(this).parent().after('<p class="bzlvTopModuleThreeCode" style="display: block; color: rgb(51, 77, 171);">･･･</p>')}else{$(this).parent().after('<p class="bzlvTopModuleThreeCode" style="display: block; color: rgb(0, 0, 0);">･･･</p>')}}}else{$(this).parent().after('<p class="bzlvTopModuleThreeCode" style="display: block; color: rgb(0, 0, 0);"></p>')}});$(".ticker_outer").simple_ticker()}function k(U,N){if(U.length==0&&j==0){$("#bzlvTopModuleLoadingItem2 img").css("display","none");$("#bzlvE22").css("display","");return}else{if(U.length==0&&j==1){$("#bzlvTopModuleLoadingItem2 img").css("display","none");$("#bzlvE23").css("display","");return}else{$("#bzlvTopModuleLoadingArea2").css("display","none")}}var W=0;var Q=0;var ai=document.createElement("table");ai.setAttribute("cellPadding","0");ai.setAttribute("cellSpacing","0");ai.setAttribute("id","bzlvTopModuleTable");var L=document.createElement("tbody");for(var ae=0;ae<U.length;ae++){var aj=document.createElement("tr");var aa=document.createElement("td");aa.setAttribute("class","bzlvBLMTdDayHead");aa.setAttribute("colSpan","4");aa.setAttribute("className","bzlvBLMTdDayHead");aa.innerHTML="<p>"+U[ae][0].date.substring(5,7)+"月"+U[ae][0].date.substring(8,10)+"日</p>";if(ae==0&&U[ae][0].date==a){}else{aj.appendChild(aa);L.appendChild(aj)}for(var ac=0;ac<U[ae].length;ac++){var O=document.createElement("tr");O.setAttribute("class","bzlvSMTr");O.setAttribute("className","bzlvSMTr");var Y=document.createElement("td");Y.setAttribute("class","bzlvBLMTd1");Y.setAttribute("className","bzlvBLMTd1");var X=document.createElement("td");X.setAttribute("class","bzlvBLMTd2");X.setAttribute("className","bzlvBLMTd2");var V=document.createElement("td");V.setAttribute("class","bzlvBLMTd3");V.setAttribute("className","bzlvBLMTd3");V.cssText="position:relative;";var T=document.createElement("td");T.setAttribute("class","bzlvBLMTd4");T.setAttribute("className","bzlvBLMTd4");Y.innerHTML="<img src='/live/images/live_v20091207000/category_icon"+U[ae][ac].category+".gif' alt='"+U[ae][ac].label+"' />";if(U[ae][ac].time.length){X.innerHTML=U[ae][ac].time}else{X.innerHTML="　"}var af;af='<div style="position: relative;">';af+='<img id="bzlvBLSignIcon" alt="" src="/live/images/live_v20091207000/topModuleSign.gif"/>';af+='<div id="bzlvTopModuleLinkIcons" class="ticker_outer">';af+='<p class="bzlvTopModuleRollWidth" id="bzlvTopModuleRollWidth" style="left: 0px;">';af+="<span>";if(U[ae][ac].title.length>28){if((U[ae][ac].content.length>0)||(U[ae][ac].entry_links.length>0)){af+='<a class="bzlvBLiveTitleLink" href="#" name="'+Q+","+W+'">'+U[ae][ac].title+"</a>";af+="</span>";af+="</p>";af+="</div>";af+="</div>"}else{af+=U[ae][ac].title;af+="</span>";af+="</p>";af+="</div>";af+="</div>"}}else{if((U[ae][ac].content.length>0)||(U[ae][ac].entry_links.length>0)){af+='<a class="bzlvBLiveTitleLink" href="#" name="'+Q+","+W+'">'+U[ae][ac].title+"</a>";af+="</span>";af+="</p>";af+="</div>";af+="</div>"}else{af+=U[ae][ac].title;af+="</span>";af+="</p>";af+="</div>";af+="</div>"}}V.innerHTML=af;Q++;if(U[ae][ac].em!=undefined){if(e(U[ae][ac].em.substring(0,10),U[ae][ac].em.substring(11,16),a,J)){if(U[ae][ac].strong=="true"){T.innerHTML="<img alt='注目' src='/live/images/live_v20091207000/BLiveModuleRemarkIcon.gif'/>"}else{T.innerHTML="　"}}else{T.innerHTML="<img alt='更新' src='/live/images/live_v20091207000/topModuleReload.gif'/>"}}else{if(U[ae][ac].strong=="true"){T.innerHTML="<img alt='注目' src='/live/images/live_v20091207000/BLiveModuleRemarkIcon.gif'/>"}else{T.innerHTML="　"}}O.appendChild(Y);O.appendChild(X);O.appendChild(V);O.appendChild(T);L.appendChild(O);if(U[ae][ac].entry_links.length>0||U[ae][ac].content.length>0){var ah=document.createElement("tr");ah.setAttribute("class","bzlvSSTr");ah.setAttribute("className","bzlvSSTr");var S=document.createElement("td");S.setAttribute("class","bzlvBLMTdLarge");S.setAttribute("className","bzlvBLMTdLarge");S.setAttribute("colSpan","4");var ad;ad='<div id="bzlvBLMTdLargeAreaSchedule" class="bzlvBLMTdLargeAreaSchedule" style="overflow:hidden;">';ad+='<p id="bzlvBLMTdLargeAreaTitle">'+U[ae][ac].title+"</p>";if(U[ae][ac].content.length>0){var P=U[ae][ac].content.replace(/\r\n/gi,"<br />");P=P.replace(/\r/gi,"<br />");P=P.replace(/\n/gi,"<br />");if(U[ae][ac].entry_links.length>0&&U[ae][ac].entry_links[0].rel=="alternate"){P=P+'<br /><a href="'+U[ae][ac].entry_links[0].link+'">【記事ページ】</a>'}ad+='<p id="bzlvBLMTdLargeAreaBody">'+P+"</p>"}else{if(U[ae][ac].entry_links.length>0&&U[ae][ac].entry_links[0].rel=="alternate"){ad+='<p id="bzlvBLMTdLargeAreaBody"><a href="'+U[ae][ac].entry_links[0].link+'">【記事ページ】</a></p>'}else{ad+='<p id="bzlvBLMTdLargeAreaBody"></p>'}}if(U[ae][ac].entry_links.length){if(U[ae][ac].entry_links[0].rel=="alternate"&&U[ae][ac].entry_links.length>1){ad+='<div id="bzlvBLMTdLargeAreaTLink">';ad+='<p id="bzlvBLMTdLargeAreaTLinkTitle">関連リンク</p>';for(var ab=1;ab<U[ae][ac].entry_links.length;ab++){ad+='<p class="bzlvTopModuleLinkIcon bzlvmarginBottom">';if(U[ae][ac].entry_links[ab].title.length>37){ad+='<a href="'+U[ae][ac].entry_links[ab].link+'" target="_blank">'+U[ae][ac].entry_links[ab].title.substring(0,36)+"…</a>"}else{ad+='<a href="'+U[ae][ac].entry_links[ab].link+'" target="_blank">'+U[ae][ac].entry_links[ab].title+"</a>"}ad+="</p>"}ad+="</div>"}else{if(U[ae][ac].entry_links[0].rel=="alternate"&&U[ae][ac].entry_links.length==1){}else{ad+='<div id="bzlvBLMTdLargeAreaTLink">';ad+='<p id="bzlvBLMTdLargeAreaTLinkTitle">関連リンク</p>';for(var ab=0;ab<U[ae][ac].entry_links.length;ab++){ad+='<p class="bzlvTopModuleLinkIcon bzlvmarginBottom">';if(U[ae][ac].entry_links[ab].title.length>37){ad+='<a href="'+U[ae][ac].entry_links[ab].link+'" target="_blank">'+U[ae][ac].entry_links[ab].title.substring(0,36)+"…</a>"}else{ad+='<a href="'+U[ae][ac].entry_links[ab].link+'" target="_blank">'+U[ae][ac].entry_links[ab].title+"</a>"}ad+="</p>"}ad+="</div>"}}}ad+='<p id="bzlvBLMTdCloseBtn"><a href="#'+W+'" name="'+W+'">閉じる</a></p>';ad+="</div>";S.innerHTML=ad;ah.appendChild(S);L.appendChild(ah);W++}}}var ag=document.createElement("tr");var R=document.createElement("td");R.setAttribute("class","bzlvBLMTdDaySchedule");R.setAttribute("className","bzlvBLMTdDaySchedule");R.setAttribute("colSpan","4");var Z='<p><a href="'+d;Z+='">この後の予定</a></p>';R.innerHTML=Z;if(j==0){ag.appendChild(R)}L.appendChild(ag);ai.appendChild(L);var M=document.getElementById("bzlvBLiveModuleAreaScheduleIn");M.appendChild(ai);$("#bzlvBLiveModuleAreaSchedule .bzlvBLMTdLargeAreaSchedule").each(function(){C.push($(this).height());$(this).height(0);$(this).find("#bzlvBLMTdCloseBtn").click(function(){$($("#bzlvBLiveModuleAreaSchedule .bzlvBLMTdLargeAreaSchedule").get($(this).find("a").attr("name"))).animate({height:"0px"},{duration:bzlvMConf.LIVEPAGE_CLOSESPEED,step:function(){var am=$("#bzlvBLiveModuleAreaRemark").height();var ak=$("#bzlvBLiveModuleAreaSchedule").height();if($("#bzlvBLiveModuleAreaRemark").css("display")=="none"){modh=am+ak-150}else{modh=am+ak+30}var an=$("#bzlvBLiveModuleFixCalendar").position().top;var al=$("#bzlvBLiveModuleFixCalendar").height();if(modh<(an+al)){$("#bzlvBLiveModuleFixCalendar").css("top",(modh-al))}}});$($("#bzlvBLiveModuleAreaSchedule .bzlvBLMTdLargeAreaSchedule").get($(this).find("a").attr("name"))).parent().parent().prev().css("background-color","rgb(255,255,255)");return false})});$("#bzlvBLiveModuleAreaSchedule .bzlvSMTr").each(function(){$(this).click(function(){if($(this).find("a").attr("name")!=undefined){var ak=$(this).find("a").attr("name").split(",");if($($(this).parent().find(".bzlvSSTr #bzlvBLMTdLargeAreaSchedule").get(ak[1])).height()==0){$($(this).parent().find(".bzlvSSTr #bzlvBLMTdLargeAreaSchedule").get(ak[1])).animate({height:C[ak[1]]+"px"},bzlvMConf.LIVEPAGE_OPENSPEED);$(this).css("background-color","rgb(238, 238, 238)")}else{$($(this).parent().find(".bzlvSSTr #bzlvBLMTdLargeAreaSchedule").get(ak[1])).animate({height:"0px"},{duration:bzlvMConf.LIVEPAGE_CLOSESPEED,step:function(){var an=$("#bzlvBLiveModuleAreaRemark").height();var al=$("#bzlvBLiveModuleAreaSchedule").height();if($("#bzlvBLiveModuleAreaRemark").css("display")=="none"){modh=an+al-150}else{modh=an+al+30}var ao=$("#bzlvBLiveModuleFixCalendar").position().top;var am=$("#bzlvBLiveModuleFixCalendar").height();if(modh<(ao+am)){$("#bzlvBLiveModuleFixCalendar").css("top",(modh-am))}}});$(this).css("background-color","rgb(255, 255, 255)")}}return false})});$(".bzlvTopModuleRollWidth").each(function(){var ak=$(this).find("span").width();if(ak==null||ak==undefined){return}$(this).width(ak+"px");if(ak>300){if(!$(this).parent().parent().find(".bzlvTopModuleThreeCode").length){if($(this).find("a").length){$(this).parent().after('<p class="bzlvTopModuleThreeCode" style="display: block; color: rgb(51, 77, 171);">･･･</p>')}else{$(this).parent().after('<p class="bzlvTopModuleThreeCode" style="display: block; color: rgb(0, 0, 0);">･･･</p>')}}}else{$(this).parent().after('<p class="bzlvTopModuleThreeCode" style="display: block; color: rgb(0, 0, 0);"></p>')}});$(".ticker_outer").simple_ticker()}function B(N,M){var L=[];$(N).find("link").each(function(){if($(this).attr("rel")=="prev"){x=$(this).attr("href")}else{if($(this).attr("rel")=="next"){d=$(this).attr("href")}}});$("feed > entry",N).each(function(){var S=this;var T=t(S);if(T!=undefined){L.push(T)}});var R=[];$(L).each(function(){R.push(this.date)});R=G(R);var Q=[];for(var O=0;O<R.length;O++){var P=[];$(L).each(function(){if(this.date==R[O]){P.push(this)}});Q.push(P)}M(Q,L)}function G(P){var O={};var N=[];var L,M;for(L=0;L<P.length;L++){M=P[L];if(!(M in O)){O[M]=true;N.push(M)}}return N}function A(L){if(L.size()==0){return""}return $(L.get(0)).text()}function t(N){var L={};L.title=A($("title",N));L.title=n(L.title);L.content=A($("content",N));L.content=n(L.content);if(L.content.substring(0,4)=="null"){L.content=""}var M=[];$("gd\\:entryLink",N).each(function(){var O=this;M.push(r(O))});if(M==undefined||M.length==0){$("gd\\:entryLink,entryLink",N).each(function(){var O=this;M.push(r(O))})}L.entry_links=M;L.category=$($("category",N).get(1)).attr("term");L.label=$($("category",N).get(1)).attr("label");L.date=$("gd\\:when,when",N).attr("startTime").substring(0,10);if($("gd\\:when,when",N).attr("startTime").length==15){L.time=""}else{L.time=$("gd\\:when,when",N).attr("startTime").substring(11,16)}L.em=$("sdbz\\:em,em",N).attr("endTime");if(L.em==undefined||L.em.length==0){L.em=$("sdbz\\:em,em",N).attr("endTime")}L.strong=$("sdbz\\:strong,strong",N).attr("value");L.displayStart=$("sdbz\\:display",N).attr("startTime");L.displayEnd=$("sdbz\\:display",N).attr("endTime");if(L.displayStart==undefined||L.displayStart.length==0){L.displayStart=$("sdbz\\:display,display",N).attr("startTime");L.displayEnd=$("sdbz\\:display,display",N).attr("endTime")}if(L.displayStart!=undefined){if(L.displayStart.length<16){L.displayStart=L.displayStart.substring(0,10)+"T00:00:00+0900"}if(L.displayEnd.length<16){L.displayEnd=L.displayEnd.substring(0,10)+"T00:00:00+0900"}L.displayStart=L.displayStart.substring(0,16);L.displayEnd=L.displayEnd.substring(0,16)}L.newsno=$("gd\\:extendedProperty,extendedProperty",N).attr("value");if(L.displayStart==undefined){return L}else{if(e(L.displayStart.substring(0,10),L.displayStart.substring(11,16),c,K)&&e(c,K,L.displayEnd.substring(0,10),L.displayEnd.substring(11,16))){return L}}}function r(M){var L={};L.rel=$(M).attr("rel");L.title=$("title",M).text();L.title=L.title.replace(/<\/?[^>]+>/gi,"");L.title=n(L.title);L.link=$("id",M).text();return L}function v(){var M=new Date();var L=M.getFullYear()+("0"+(M.getMonth()+1)).slice(-2)+("0"+M.getDate()).slice(-2)+("0"+M.getHours()).slice(-2)+("0"+M.getMinutes()).slice(-2)+M.getSeconds();return L}function e(P,Q,N,O){tTime=new Date;uTime=new Date;tTime.setFullYear(P.substring(0,4));uTime.setFullYear(N.substring(0,4));tTime.setMonth((P.substring(5,7)-1));uTime.setMonth((N.substring(5,7)-1));tTime.setDate(parseInt(P.substring(8,10),10));uTime.setDate(parseInt(N.substring(8,10),10));if(Q==""){tTime.setHours(0);tTime.setMinutes(0)}else{tTime.setHours(parseInt(Q.substring(0,2),10));tTime.setMinutes(parseInt(Q.substring(3,5),10))}if(O==""){uTime.setHours(0);uTime.setMinutes(0)}else{uTime.setHours(parseInt(O.substring(0,2),10));uTime.setMinutes(parseInt(O.substring(3,5),10))}var L=tTime.getTime();var M=uTime.getTime();if(L<=M){return true}else{return false}}function n(L){L=L.replace(/&/g,"&amp;");L=L.replace(/"/g,"&quot;");L=L.replace(/'/g,"&#039;");L=L.replace(/</g,"&lt;");L=L.replace(/>/g,"&gt;");return L}});
