function LightTit(){var B=$("ullst"),A=B.getElementsByTagName("li");for(i=0;i<A.length;i++){A[i].onmouseover=trhover;A[i].onmouseout=trout}}
function LightTitAt(C){var B=$("ullst"),A=B.getElementsByTagName("li");for(i=0;i<A.length;i++){A[i].onmouseover=trhover;A[i].onmouseout=trout}}
function trhover(){this.className="hover";var E=this.children[0].href,B=document.getElementsByTagName("Area").length;for(var A=0;A<B;A++){var D=document.getElementsByTagName("Area")[A],C=D.href;if(C==E){drawLine(D);loadingPane.style.display="none"}}}
function trout(){this.className="out";divElm.style.display="none"}
function TurnPaper(){LightTit();FindImgLink();initMPPage()}
function FindImgLink(){var A=document.getElementById("preimg"),B=document.getElementById("nxtimg");if(A!=null)$("preimg2").parentElement.href=A.parentElement;else $("preimg2").style.display="none";if(B!=null)$("nxtimg2").parentElement.href=B.parentElement;else $("nxtimg2").style.display="none"}
function nTabs(B,A){var C=document.getElementById(B).getElementsByTagName("li");for(i=0;i<2;i++)if(C[i].id==A.id){document.getElementById(B+"_Title"+i).className="active";document.getElementById(B+"_Content"+i).style.display="block"}else{document.getElementById(B+"_Title"+i).className="normal";document.getElementById(B+"_Content"+i).style.display="none"}}
window.onload=function(){LoadSmallPages();setTimeout(LoadScrollPages,100);TurnPaper()};
function JustPage(){setInterval(SetMenuPosition,50)}function JustWidth(){var B=parseInt(document.getElementById("pagepic").clientWidth),C=document.body.clientWidth;if(C>=1024)C=1015;var A=660;if(B>=391)C=C+(B-350);document.getElementById("frame").style.width=C+"px";if(B>=391)A=A+(B-370);document.getElementById("pageTd3").style.width=A+"px"}function LoadSmallPages(){var B=document.getElementsByName("smallpages");for(var A=0;A<3;A++)B[A].src=B[A].rsp}function LoadScrollPages(){var C=document.getElementsByName("smallpages"),B=document.getElementById("scrollDiv"),D=C.length;if(B.scrollTop==0)setTimeout(LoadScrollPages,100);else for(var A=3;A<D;A++)C[A].src=C[A].rsp}function ShowPageDown(){var A=document.getElementById("pagepic"),C=A.clientHeight,B=A.clientWidth,E=new SWFObject("../../../tplimg/page_effect.swf","mymovie",""+B+"",""+C+"","7","#336699");E.addParam("wmode","transparent");E.write("pageChangeEffect");var D=document.getElementById("pageChangeEffect");D.style.marginLeft="-"+(B+23)+"px"}function SetMenuPosition(){var A=document.getElementById("menuBar"),D=document.getElementById("pagepic");A.style.left=parseInt(D.clientWidth)/2-parseInt(A.clientWidth)/2+6+parseInt(GetLeft(D))+"px";var C=document.documentElement.clientHeight,B=document.documentElement.scrollTop;A.style.top=parseInt(C)+parseInt(B)-parseInt(A.clientHeight)+"px";A.style.display="block"}function IsIe(){var A=false;if(navigator.appName=="Microsoft Internet Explorer")A=true;return A}function GetLeft(A){var B=A.offsetLeft;while(A=A.offsetParent)B+=A.offsetLeft;return B}
var thePageID=0,blinknum=0,c=true,bname,PicBlink;function startBorder(A){document.getElementById(A).childNodes[0].childNodes[0].style.border="solid 2px #9E0101"}function endBorder(A){document.getElementById(A).childNodes[0].childNodes[0].style.border="solid 2px #000000"}function StartBlink(A){blinknum=0;c=true;bname=A;PicBlink=setInterval("picblink(bname)",10)}function EndBlink(A){c=true;bname=A;clearInterval(PicBlink);document.getElementById(bname).childNodes[0].childNodes[0].filters.alpha.opacity=100}function picblink(A){blinkname=A;if(c==true)blinknum+=12;if(blinknum==96){blinknum-=12;c=false}if(blinknum==12){blinknum+=12;c=true}if(c==false)blinknum-=12;document.getElementById(blinkname).childNodes[0].childNodes[0].filters.alpha.opacity=0+blinknum}
function addKeyword2Search(E){var D=E.searchText.value,C="/hit/notesearch.jsp",B="kw="+encodeURIComponent(D),A=new Ajax.Request(C,{method:"get",parameters:B,onComplete:addKeywordOver})}function addKeywordOver(A){}function isValidDate(C){var A=C.searchText1.value;if(A!=null&&trim(A).length>0){var B=A.match(/^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$/);if(B==null)C.searchText1.value=""}return true}function trim(C){for(var A=0;A<C.length&&C.charAt(A)==" ";A++);for(var B=C.length;B>0&&C.charAt(B-1)==" ";B--);if(A>B)return"";return C.substring(A,B)}function checkNull(A){if(A.searchText.value==null||A.searchText.value==""||trim(A.searchText.value).length==0){alert("\u8bf7\u8f93\u5165\u8981\u641c\u7d22\u7684\u5173\u952e\u5b57!");return false}else return true}function init(D,B,E){var C=D.searchText.value;if(C==""){D.searchText.value=B;C=B}if(C==B)D.searchText.style.color="#ffffff";else D.searchText.style.color="#ffffff";if(E!=""){var A=D.searchText1.value;if(A==""){D.searchText1.value=E;A=E}if(A==E)D.searchText1.style.color="#ffffff";else D.searchText1.style.color="#ffffff"}}function isFoucus(A,B){if(A.value==B){A.style.color="#ffffff";A.value="";A.select()}else A.style.color="#ffffff"}function isBlur(A,B){if(A.value==""||trim(A.value).length==0||A.value==B){A.style.color="gray";A.value=B}else A.style.color="#ffffff"}function isValidDate(E,B,F){var D=E.searchText.value;if(D==B){E.searchText.value="";D=""}if(F!=""){var A=E.searchText1.value;if(A==F){E.searchText1.value="";searchDate1=""}if(A!=null&&trim(A).length>0){var C=A.match(/^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$/);if(C==null)E.searchText1.value=""}}return true}
var MP_PERIOD=Class.create();MP_PERIOD.prototype={initialize:function(A){this.period_id=OBJ_MP_UTILS.getAttributeText(A,"id");this.period_name=OBJ_MP_UTILS.getNodeText(A,"period_name");this.paper_id=OBJ_MP_UTILS.getNodeText(A,"paper_id");this.period_date=OBJ_MP_UTILS.getNodeText(A,"period_date");this.rmp_exe_path=OBJ_MP_UTILS.getNodeText(A,"rmp_exe_path");this.rmp_pic_path=OBJ_MP_UTILS.getNodeText(A,"rmp_pic_path");this.rmp_xml_path=OBJ_MP_UTILS.getNodeText(A,"rmp_xml_path");this.rmp_build_time=OBJ_MP_UTILS.getNodeText(A,"rmp_build_time")},downloadRMP:function(){},getRmpExePath:function(){if(typeof this.rmp_exe_path=="string"&&this.rmp_exe_path.length>0)return"/rmp/"+this.rmp_exe_path;else return""},getRmpPicPath:function(){if(typeof this.rmp_pic_path=="string"&&this.rmp_pic_path.length>0)return"../../../../rmp/"+this.rmp_pic_path;else return""},getDateStr:function(){if(typeof this.period_date=="string"){var A=this.period_date.match(/\d{4}-\d{2}-(\d{2})/i);if(A)return A[1];else return""}else return""},getPeriodDate:function(){if(typeof this.period_date=="string"){var A=this.period_date.match(/(\d{4})-(\d{2})-(\d{2})/i);if(A){var B=new Date();B.setFullYear(parseInt(A[1]),parseInt(A[2])-1,A[3]);return B}else return null}else return null},getPeriodDateArray:function(){if(typeof this.period_date=="string"){var A=this.period_date.match(/(\d{4})-(\d{2})-(\d{2})/i);if(A)return A;else return null}else return null},getPeriodUrl:function(){var A=location.href,C=this.getPeriodDateArray();if(C){A=A.replace(/\d{4}-\d{2}\/\d{2}/g,C[1]+"-"+C[2]+"/"+C[3]);var B=/content_\d+\.htm/i,E=A.match(B);if(E){if(document.getElementById("page_node_span")!=null)A=A.replace(/content_\d+/g,"node_"+document.getElementById("page_node_span").innerHTML);return A}var F=/node_\d+\.htm/i,D=A.match(F);if(D)if(typeof OBJ_MP_CONFIG.node_htm_jump=="string"&&OBJ_MP_CONFIG.node_htm_jump.length>0){A=A.replace(F,OBJ_MP_CONFIG.node_htm_jump);return A}else return A}else return"#"}};var MP_PAGENODE=Class.create();MP_PAGENODE.prototype={initialize:function(B){this.pagenodename=OBJ_MP_UTILS.getAttributeText(B,"name");this.pagenodeid=OBJ_MP_UTILS.getAttributeText(B,"id");var C=[],E=B.selectNodes("period"),D=$A(E),A=0;D.each(function(B){var D=parseInt(OBJ_MP_UTILS.getAttributeText(B,"id"));if(typeof D=="number"&&D>0){C[A]=new MP_PAGE(B);A++}});this.pages=C}};var MP_PAGE=Class.create();MP_PAGE.prototype={initialize:function(B){this.period_id=OBJ_MP_UTILS.getAttributeText(B,"id");var D=[],E=B.selectNodes("nodeid"),C=$A(E),A=0;C.each(function(B){var C=parseInt(OBJ_MP_UTILS.getAttributeText(B,"id"));if(typeof C=="number"&&C>0){D[A]=C;A++}});this.classnodes=D}};var MP_UTILS=Class.create();MP_UTILS.prototype={initialize:function(){},getNodeText:function(A,B){return Try.these(function(){return A.selectSingleNode(B).text},function(){return""})},getAttributeText:function(A,B){return Try.these(function(){return A.getAttribute(B)},function(){return""})},testDateValid:function(B,A){if(typeof B=="object")return B.detect(function(B){return A==B.getDateStr()||A==B.period_date});else return null}};var OBJ_MP_UTILS=new MP_UTILS(),MP_LOADACTION=Class.create();MP_LOADACTION.prototype={initialize:function(){this.period_xml_month="";this.page_xml_month=""},loadPeriods:function(A,D){var C=A;if(!(typeof A=="string"&&A.length>0))C=this.findPeriodXmlUrl(D);if(typeof C!="string"||C.length==0)return;var B=new Ajax.Request(C,{method:"get",parameters:"",onSuccess:this._loadPeriodSuccess,onFailure:this._loadPeriodFailure})},findPeriodXmlUrl:function(F){var E=location.href,C=/[\s\S]+?(\d{4}-\d{2})[\/\\]/i,D=/\d{4}-\d{2}/i,B=E.match(C);if(B){var A=B[0]+"period.xml";this.period_xml_month=B[1];if(typeof F=="string"&&D.test(F)){this.period_xml_month=F;A=A.replace(D,F)}return A}else alert("location.href no date param")},_loadPeriodFailure:function(A){OBJ_MP_CALLBACK.onPeriodListLoaded([])},_loadPeriodSuccess:function(D){try{var C=[];retTxt=D.responseText;retDoc=D.responseXML;var B=retDoc.selectNodes("/periodlist/period"),F=$A(B),A=0;F.each(function(B){var D=new MP_PERIOD(B);C[A]=D;A++});OBJ_MP_CALLBACK.onPeriodListLoaded(C)}catch(E){alert(E.message)}},loadPages:function(A,D){var C=A;if(!(typeof A=="string"&&A.length>0))C=this.findPageXmlUrl(D);if(typeof C!="string"||C.length==0)return;var B=new Ajax.Request(C,{method:"get",parameters:"",onSuccess:this._loadPageSuccess,onFailure:this._loadPageFailure})},findPageXmlUrl:function(F){var E=location.href,C=/[\s\S]+?(\d{4}-\d{2})[\/\\]/i,D=/\d{4}-\d{2}/i,B=E.match(C);if(B){var A=B[0]+"page.xml";this.page_xml_month=B[1];if(typeof F=="string"&&D.test(F)){this.page_xml_month=F;A=A.replace(D,F)}return A}},_loadPageFailure:function(A){OBJ_MP_CALLBACK.onPageListLoaded([])},_loadPageSuccess:function(D){try{var C=[];retTxt=D.responseText;retDoc=D.responseXML;var B=retDoc.selectNodes("/pagelist/page"),F=$A(B),A=0;F.each(function(B){var D=new MP_PAGENODE(B);C[A]=D;A++});OBJ_MP_CALLBACK.onPageListLoaded(C)}catch(E){alert(E.message)}}};var OBJ_MP_LOADACTION=new MP_LOADACTION(),MP_CALLBACK=Class.create();MP_CALLBACK.prototype={initialize:function(){},onPeriodListLoaded:function(){alert("hi period.xml over")},onPageListLoaded:function(){alert("hi page.xml over")}};var OBJ_MP_CALLBACK=new MP_CALLBACK(),MP_CONFIG=Class.create();MP_CONFIG.prototype={initialize:function(){this.content_htm_jump="";this.node_htm_jump=""},needGlobalCld:function(){var A=location.href,B=/content_\d+\.htm/i,D=A.match(B);if(D)return true;var E=/node_\d+\.htm/i,C=A.match(E);if(C)if(typeof OBJ_MP_CONFIG.node_htm_jump=="string"&&OBJ_MP_CONFIG.node_htm_jump.length>0)return true;else return false;return true}};var OBJ_MP_CONFIG=new MP_CONFIG(),mp_periods=[],mp_pagenodes=[],mp_xmlloadedmethod=[],mp_pageday="",mp_period=null,mp_pagenode=null,mp_page=null,mp_pagenodeid=0;MP_CALLBACK.prototype.onPeriodListLoaded=function(A){mp_periods=A;mp_periods.sortBy(function(A){return A.getPeriodDate()});if(typeof mp_pageday=="string"&&mp_pageday.length>0){var B=OBJ_MP_UTILS.testDateValid(A,mp_pageday);if(B)mp_period=B}OBJ_MP_LOADACTION.loadPages()};MP_CALLBACK.prototype.onPageListLoaded=function(node){mp_pagenodes=node;if(mp_pagenodeid>0){var tmpPagenode=node.detect(function(A){return A.pagenodeid==mp_pagenodeid});if(tmpPagenode)mp_pagenode=tmpPagenode;if(mp_period&&tmpPagenode)mp_page=tmpPagenode.pages.detect(function(A){A.period_id==mp_period.period_id})}mp_xmlloadedmethod.each(function(node){if(typeof node=="string"&&node.length>0)eval(node)});var sUrl=location.href,contentRe=/content_\d+\.htm/i,r1=sUrl.match(contentRe);if(!r1)changeCld()};function viewOL_RMP(){if(typeof mp_period=="object"&&mp_period!=null){var F=mp_period.getRmpExePath();if(F.length>0){var B=location.href,E=/(http:\/\/[\s\S]+?)\/html/i,C=B.match(E);if(C){var G=C[1],A=/(rmp\/[\s\S]+?\.exe)/i,D=F.match(A);if(D){G+="/"+D[1];window.open("/FFNPlayer.htm?rmp="+G,"","width=500,height=300")}}}else alert("\u8be5\u671f\u62a5\u520aRMP\u6570\u636e\u4e0d\u5b58\u5728\uff01")}else alert("\u6b63\u5728\u4e0b\u8f7d\u671f\u6b21\u6570\u636e\uff0c\u8bf7\u7a0d\u5019\u2026\u2026")}function openRMP(){var C=false,H=document.all.channelname.value,I=mp_pageday,B=document.all.channelid.value,L="",F=document.getElementById("firstPageNumber").innerHTML,A=location.href,M=/\/((\w)+)\/html\/(\d{4})-(\d{2})\/(\d{2})/,J=A.match(M);if(J){L="http://news.idoican.com.cn/"+J[1]+"/page/"+B+"/"+J[3]+"-"+J[4]+"/"+J[5]+"/"+F+"/"+J[3]+J[4]+J[5]+F+"_icon.jpg";var D="http://news.idoican.com.cn/"+J[1]+mp_period.getRmpExePath()}try{var G=new ActiveXObject("FFNClient.FantnewsActiveX.1"),E=G.QueryTaskInfo(B,I);if(E==0){var K=G.AddTask("","",H,B,I,D,L);if(K==0)alert("\u4e0b\u8f7d\u4efb\u52a1\u5df2\u6210\u529f\u6dfb\u52a0\u5230\u98de\u9605\u5ba2\u6237\u7aef\uff01");else if(K==1)alert("\u4e0b\u8f7d\u4efb\u52a1\u5df2\u7ecf\u5b58\u5728\uff0c\u8bf7\u67e5\u770b\u98de\u9605\u5ba2\u6237\u7aef\uff01");else C=true}else if(E==1)alert("\u4e0b\u8f7d\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u6b63\u7b49\u5f85\u4e0b\u8f7d\u4e2d\uff01");else if(E==2)alert("\u4e0b\u8f7d\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u6b63\u5904\u4e8e\u4e0b\u8f7d\u4e2d\uff01");else if(E==3)alert("\u4e0b\u8f7d\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u6682\u505c\u4e2d\uff01");else if(E==4)alert("\u4e0b\u8f7d\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u4e0b\u8f7d\u5df2\u5b8c\u6210\uff01");else C=true}catch(N){C=true}if(C){alert("\u8bf7\u5b89\u88c5\u65b9\u6b63\u98de\u9605\u5ba2\u6237\u7aef\u66f4\u597d\u7684\u7ba1\u7406\u60a8\u7684\u4e0b\u8f7d\u6587\u4ef6\uff01");window.open(D)}return false}var preDate=new Array(3);function getPreDate(B,A){var C=new Array(3);if(A==1){C[0]=parseInt(B-1)+"-12";C[1]=parseInt(B-1);C[2]=12}else if(A>=11&&A<=12){C[0]=B+"-"+parseInt(A-1);C[1]=parseInt(B);C[2]=parseInt(A-1)}else{C[0]=B+"-0"+parseInt(A-1);C[1]=parseInt(B);C[2]="0"+parseInt(A-1)}return C}function getPrePeriodAjax(E){var G=/(\d{4})-(\d{2})/,F=OBJ_MP_LOADACTION.period_xml_month.match(G),C=createAjax(),H=0,B=0;if(F){H=F[1];B=F[2];var A=0;while(A<E){preDate=getPreDate(H,B);var I=new MP_LOADACTION(),D=I.findPeriodXmlUrl(preDate[0]);C.open("get",D,false);C.send();if(C.status==404&&A>=E-1){C=null;break}else if(C.status!=404)break;else if(B==1){H=H-1;B=12}else B=B-1;A++}}else{C=null;alert("\u65f6\u95f4\u683c\u5f0f\u4e0d\u662fyyyy-mm!")}return C}function createAjax(){var A=new ActiveXObject("Msxml2.XMLHTTP.3.0");if(A==null)A=new ActiveXObject("Microsoft.XMLHTTP");return A}function goPrePeriod(){var M=2,C=/\d{4}-\d{2}/i;if(typeof OBJ_MP_LOADACTION.period_xml_month=="string"&&C.test(OBJ_MP_LOADACTION.period_xml_month)){var K=mp_pageday.indexOf(OBJ_MP_LOADACTION.period_xml_month);if(K>-1){var N=mp_periods.findAll(function(A){return A.getPeriodDate().getDate()<mp_period.getPeriodDate().getDate()});if(typeof N=="object"&&N!=null&&N.length>0){N.sortBy(function(A){return A.getPeriodDate()});var B=N[N.length-1];location.href=B.getPeriodUrl()}else{var L=getPrePeriodAjax(M),D=null;if(L==null)alert("\u5df2\u7ecf\u662f\u6700\u524d\u4e00\u671f!");else{D=L.responseXML;var H=D.selectNodes("/periodlist/period"),O=$A(H),J="0000-00-00",I=preDate[1],A=preDate[2];for(var G=0;G<O.length;G++){var E=O[G].getElementsByTagName("period_date")[0].firstChild.data;if(E>J)J=E}if(J.lastIndexOf("-")!=-1)tempDay=J.substring(J.lastIndexOf("-")+1,J.length);var F=location.href;F=F.replace(/\d{4}-\d{2}\/\d{2}/g,I+"-"+A+"/"+tempDay);if(document.getElementById("page_node_span")!=null)F=F.replace(/content_\d+/g,"node_"+document.getElementById("page_node_span").innerHTML);location.href=F}}}else{mp_xmlloadedmethod.push("goPrePeriod()");OBJ_MP_LOADACTION.loadPeriods()}}else alert("\u672a\u88c5\u8f7d\u671f\u6b21\u5217\u8868")}function getNextDate(B,A){var C=new Array(3);if(A==12){B=parseInt(B);C[0]=parseInt(B+1)+"-01";C[1]=parseInt(B+1);C[2]="01"}else if(A>=9&&A<=11){if(A==9||A==9)if(A.length==2)A=A.substring(1,2);A=parseInt(A);A=parseInt(A+1);C[0]=B+"-"+A;C[1]=parseInt(B);C[2]=A}else{if(A.length==2)A=A.substring(1,2);A=parseInt(parseInt(A)+1);C[0]=B+"-0"+parseInt(A);C[1]=parseInt(B);C[2]="0"+parseInt(A)}return C}var nextDate=new Array(3);function getNextPeriodAjax(E){var H=/(\d{4})-(\d{2})/,G=OBJ_MP_LOADACTION.period_xml_month.match(H),D=createAjax(),I=0,C=0;if(G){I=G[1];C=G[2];var A=0;while(A<E){nextDate=getNextDate(I,C);var F=new MP_LOADACTION(),B=F.findPeriodXmlUrl(nextDate[0]);D.open("get",B,false);D.send();if(D.status==404&&A>=E-1){D=null;break}else if(D.status!=404)break;else if(C==12){I=parseInt(I);I=parseInt(I+1);C=1}else if(C<12){if(C<10)if(C.length==2)C=C.substring(1,2);C=parseInt(C);C=parseInt(C+1)}A++}}else{D=null;alert("\u65f6\u95f4\u683c\u5f0f\u4e0d\u662fyyyy-mm!")}return D}function goNextPeriod(){var M=2,C=/\d{4}-\d{2}/i;if(typeof OBJ_MP_LOADACTION.period_xml_month=="string"&&C.test(OBJ_MP_LOADACTION.period_xml_month)){var K=mp_pageday.indexOf(OBJ_MP_LOADACTION.period_xml_month);if(K>-1){var N=mp_periods.findAll(function(A){return A.getPeriodDate().getDate()>mp_period.getPeriodDate().getDate()});if(typeof N=="object"&&N!=null&&N.length>0){N.sortBy(function(A){return A.getPeriodDate()});var B=N[0];location.href=B.getPeriodUrl()}else{var L=getNextPeriodAjax(M),D=null;if(L==null)alert("\u5df2\u7ecf\u662f\u6700\u540e\u4e00\u671f!");else{D=L.responseXML;var I=D.selectNodes("/periodlist/period"),O=$A(I),F="9999-12-31",J=nextDate[1],A=nextDate[2];for(var H=0;H<O.length;H++){var E=O[H].getElementsByTagName("period_date")[0].firstChild.data;if(E<F)F=E}if(F.lastIndexOf("-")!=-1)tempDay=F.substring(F.lastIndexOf("-")+1,F.length);var G=location.href;G=G.replace(/\d{4}-\d{2}\/\d{2}/g,J+"-"+A+"/"+tempDay);if(document.getElementById("page_node_span")!=null)G=G.replace(/content_\d+/g,"node_"+document.getElementById("page_node_span").innerHTML);location.href=G}}}else{mp_xmlloadedmethod.push("goNextPeriod()");OBJ_MP_LOADACTION.loadPeriods()}}else alert("\u672a\u88c5\u8f7d\u671f\u6b21\u5217\u8868")}function initMPPage(){var F=/(\d{4}-\d{2})\/(\d{2})/i,B=location.href,D=B.match(F);if(D)mp_pageday=D[1]+"-"+D[2];initOldCalendar(mp_pageday);var A=/node_(\d+)\.htm/i,E=B.match(A);if(E)mp_pagenodeid=parseInt(E[1]);OBJ_MP_LOADACTION.loadPeriods();divElm=$("leveldiv");var C=document.getElementsByName("pagepicmap");C[0].onmouseover=function(){drawLine(event.srcElement)};divElm.onmouseout=function(){MouseOutMap()}}function initOldCalendar(B){var A=/(\d{4})-(\d{2})-(\d{2})/im;if(B.match(A)){tY=RegExp.$1-0;tM=RegExp.$2-1;tD=RegExp.$3}CLD.SY.selectedIndex=tY-2006;CLD.SM.selectedIndex=tM;drawCld(tY,tM)}function preAddCollection(){if(typeof mp_period=="object"&&mp_period!=null){var D="/collection/addCollection.jsp?issueId="+mp_period.period_id,C=490,E=340,B=Math.ceil((window.screen.Height-E)/2)-70,A=Math.ceil((window.screen.width-C)/2);propertyStr="width="+C+",height="+E+",left="+A+",top="+B+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes";window.open(D,"",propertyStr)}}function preAddOrder(){if(typeof mp_period=="object"&&mp_period!=null){var D="/servlet/Subscribe.do?nodeid="+mp_period.paper_id,C=490,E=340,B=Math.ceil((window.screen.Height-E)/2)-70,A=Math.ceil((window.screen.width-C)/2);propertyStr="width="+C+",height="+E+",left="+A+",top="+B+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes";window.open(D,"",propertyStr)}}function addCollection(E){var D="/collection/addCollection.jsp?issueId="+E,C=490,F=340,B=Math.ceil((window.screen.Height-F)/2)-70,A=Math.ceil((window.screen.width-C)/2);propertyStr="width="+C+",height="+F+",left="+A+",top="+B+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes";window.open(D,"",propertyStr)}function addOrder(B){var E="/servlet/Subscribe.do?nodeid="+B,D=490,F=340,C=Math.ceil((window.screen.Height-F)/2)-70,A=Math.ceil((window.screen.width-D)/2);propertyStr="width="+D+",height="+F+",left="+A+",top="+C+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes";window.open(E,"",propertyStr)}function appendZero(A){return(("00"+A).substr(("00"+A).length-2))}
var cld;function drawCld(SY,SM){var i,sD,s,size,hh;cld=new calendar(SY,SM);var nowdate=new Date(),cldPeriods=mp_periods;for(i=0;i<42;i++){sObj=eval("SD"+i);lObj=eval("LD"+i);gObj=eval("GD"+i);cObj=eval("CD"+i);sObj.className="";sD=i-cld.firstWeek;if(sD>-1&&sD<cld.length){var testDate="";if((sD+1)<10)testDate+="0";testDate+=(sD+1);var verifyDate=SY+"-"+appendZero(SM+1)+"-"+testDate,oPeriod=OBJ_MP_UTILS.testDateValid(cldPeriods,verifyDate);if(oPeriod)cObj.href=oPeriod.getPeriodUrl();else{cObj.href="#";sObj.innerHTML=sD+1;sObj.color="gray";lObj.innerHTML="";continue}sObj.innerHTML=sD+1;if(SY==tY&&SM==tM&&sD+1==tD){sObj.color="#BA0F19";sObj.style.cssText="font-weight: bold;"}else sObj.color="";if(cld[sD].isToday)sObj.className="todaycolor";sObj.style.color=cld[sD].color;if(cld[sD].lDay==1){if(cld[sD].lMonth==1)lObj.innerHTML=(cld[sD].isLeap?"\u95f0":"")+"\u6b63\u6708";else if(cld[sD].lMonth==2)lObj.innerHTML=(cld[sD].isLeap?"\u95f0":"")+"\u4e8c\u6708";else if(cld[sD].lMonth==3)lObj.innerHTML=(cld[sD].isLeap?"\u95f0":"")+"\u4e09\u6708";else if(cld[sD].lMonth==4)lObj.innerHTML=(cld[sD].isLeap?"\u95f0":"")+"\u56db\u6708";else if(cld[sD].lMonth==5)lObj.innerHTML=(cld[sD].isLeap?"\u95f0":"")+"\u4e94\u6708";else if(cld[sD].lMonth==6)lObj.innerHTML=(cld[sD].isLeap?"\u95f0":"")+"\u516d\u6708";else if(cld[sD].lMonth==7)lObj.innerHTML=(cld[sD].isLeap?"\u95f0":"")+"\u4e03\u6708";else if(cld[sD].lMonth==8)lObj.innerHTML=(cld[sD].isLeap?"\u95f0":"")+"\u516b\u6708";else if(cld[sD].lMonth==9)lObj.innerHTML=(cld[sD].isLeap?"\u95f0":"")+"\u4e5d\u6708";else if(cld[sD].lMonth==10)lObj.innerHTML=(cld[sD].isLeap?"\u95f0":"")+"\u5341\u6708";else if(cld[sD].lMonth==11)lObj.innerHTML=(cld[sD].isLeap?"\u95f0":"")+"\u5341\u4e00\u6708";else if(cld[sD].lMonth==12)lObj.innerHTML=(cld[sD].isLeap?"\u95f0":"")+"\u5341\u4e8c\u6708"}else lObj.innerHTML=cDay(cld[sD].lDay);s=cld[sD].lunarFestival;if(s.length>0){if(s.length>6)s=s.substr(0,4)+"...";s=s.fontcolor("")}else{s=cld[sD].solarFestival;if(s.length>0){size=(s.charCodeAt(0)>0&&s.charCodeAt(0)<128)?8:4;if(s.length>size+2)s=s.substr(0,size)+"...";s=s.fontcolor("")}else{s=cld[sD].solarTerms;if(s.length>0)s=s.fontcolor("")}}if(s.length>0)lObj.innerHTML=s}else{sObj.innerHTML="";lObj.innerHTML=""}}}var conWeekend=3,lunarInfo=new Array(19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835),solarMonth=new Array(31,28,31,30,31,30,31,31,30,31,30,31),Gan=new Array("\u7532","\u4e59","\u4e19","\u4e01","\u620a","\u5df1","\u5e9a","\u8f9b","\u58ec","\u7678"),Zhi=new Array("\u5b50","\u4e11","\u5bc5","\u536f","\u8fb0","\u5df3","\u5348","\u672a","\u7533","\u9149","\u620c","\u4ea5"),Animals=new Array("\u9f20","\u725b","\u864e","\u5154","\u9f99","\u86c7","\u9a6c","\u7f8a","\u7334","\u9e21","\u72d7","\u732a"),solarTerm=new Array("\u5c0f\u5bd2","\u5927\u5bd2","\u7acb\u6625","\u96e8\u6c34","\u60ca\u86f0","\u6625\u5206","\u6e05\u660e","\u8c37\u96e8","\u7acb\u590f","\u5c0f\u6ee1","\u8292\u79cd","\u590f\u81f3","\u5c0f\u6691","\u5927\u6691","\u7acb\u79cb","\u5904\u6691","\u767d\u9732","\u79cb\u5206","\u5bd2\u9732","\u971c\u964d","\u7acb\u51ac","\u5c0f\u96ea","\u5927\u96ea","\u51ac\u81f3"),sTermInfo=new Array(0,21208,42467,63836,85337,107014,128867,150921,173149,195551,218072,240693,263343,285989,308563,331033,353350,375494,397447,419210,440795,462224,483532,504758),nStr1=new Array("\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"),nStr2=new Array("\u521d","\u5341","\u5eff","\u5345","\u25a1"),monthName=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"),sFtv=new Array("0101*\u5143\u65e6","0501*\u52b3\u52a8\u8282","1001*\u56fd\u5e86"),lFtv=new Array("0101*\u6625\u8282","0102*\u521d\u4e8c","0103*\u521d\u4e09","0115*\u5143\u5bb5","0505*\u7aef\u5348","0815*\u4e2d\u79cb","0909*\u91cd\u9633","0100*\u9664\u5915"),wFtv=new Array();function lYearDays(C){var B,A=348;for(B=32768;B>8;B>>=1)A+=(lunarInfo[C-2006]&B)?1:0;return(A+leapDays(C))}function leapDays(A){if(leapMonth(A))return((lunarInfo[A-2006]&65536)?30:29);else return(0)}function leapMonth(A){return(lunarInfo[A-2006]&15)}function monthDays(B,A){return((lunarInfo[B-2006]&(65536>>A))?30:29)}function Lunar(B){var A,D=0,C=0,E=(Date.UTC(B.getFullYear(),B.getMonth(),B.getDate())-Date.UTC(2006,0,31))/86400000;for(A=2006;A<2050&&E>0;A++){C=lYearDays(A);E-=C}if(E<0){E+=C;A--}this.year=A;D=leapMonth(A);this.isLeap=false;for(A=1;A<13&&E>0;A++){if(D>0&&A==(D+1)&&this.isLeap==false){--A;this.isLeap=true;C=leapDays(this.year)}else C=monthDays(this.year,A);if(this.isLeap==true&&A==(D+1))this.isLeap=false;E-=C}if(E==0&&D>0&&A==D+1)if(this.isLeap)this.isLeap=false;else{this.isLeap=true;--A}if(E<0){E+=C;--A}this.month=A;this.day=E+1}function solarDays(B,A){if(A==1)return(((B%4==0)&&(B%100!=0)||(B%400==0))?29:28);else return(solarMonth[A])}function cyclical(A){return(Gan[A%10]+Zhi[A%12])}function calElement(B,K,F,J,H,I,D,E,A,C,G){this.isToday=false;this.sYear=B;this.sMonth=K;this.sDay=F;this.week=J;this.lYear=H;this.lMonth=I;this.lDay=D;this.isLeap=E;this.cYear=A;this.cMonth=C;this.cDay=G;this.color="";this.lunarFestival="";this.solarFestival="";this.solarTerms=""}function sTerm(B,C){var A=new Date((31556925974.7*(B-2006)+sTermInfo[C]*60000)+Date.UTC(2006,0,6,2,5));return(A.getUTCDate())}function calendar(R,O){var F,K,A,T,I=1,B,J=0,D,V,P,L,E,Q,N=new Array(3),S=0,U=0;F=new Date(R,O,1,0,0,0,0);this.length=solarDays(R,O);this.firstWeek=F.getDay();if(O<2)L=cyclical(R-2006+36-1);else L=cyclical(R-2006+22);var H=sTerm(R,2),G=sTerm(R,O*2);E=cyclical((R-2006)*12+O+12);var C=Date.UTC(R,O,1,0,0,0,0)/86400000+25567+10;for(var M=0;M<this.length;M++){if(I>J){F=new Date(R,O,M+1);K=new Lunar(F);A=K.year;T=K.month;I=K.day;B=K.isLeap;J=B?leapDays(A):monthDays(A,T);if(S==0)U=T;N[S++]=M-I+1}if(O==1&&(M+1)==H)L=cyclical(R-2006+36);if((M+1)==G)E=cyclical((R-2006)*12+O+13);Q=cyclical(C+M);this[M]=new calElement(R,O+1,M+1,nStr1[(M+this.firstWeek)%7],A,T,I++,B,L,E,Q)}if(R==tY&&O==tM)this[tD-1].isToday=true}function easter(E){var G=sTerm(E,5),B=new Date(Date.UTC(E,2,G,0,0,0,0)),D=new Lunar(B);if(D.day<15)var A=15-D.day;else A=(D.isLeap?leapDays(E):monthDays(E,D.month))-D.day+15;var F=new Date(B.getTime()+86400000*A),C=new Date(F.getTime()+86400000*(7-F.getUTCDay()));this.m=C.getUTCMonth();this.d=C.getUTCDate()}function cDay(A){var B;switch(A){case 10:B="\u521d\u5341";break;case 20:B="\u4e8c\u5341";break;break;case 30:B="\u4e09\u5341";break;break;default:B=nStr2[Math.floor(A/10)];B+=nStr1[A%10]}return(B)}function changeCld(){var B,A;B=CLD.SY.selectedIndex+2006;A=CLD.SM.selectedIndex;drawCld(B,A)}function pushBtm(A){switch(A){case"YU":if(CLD.SY.selectedIndex>0)CLD.SY.selectedIndex--;break;case"YD":if(CLD.SY.selectedIndex<150)CLD.SY.selectedIndex++;break;case"MU":if(CLD.SM.selectedIndex>0)CLD.SM.selectedIndex--;else{CLD.SM.selectedIndex=11;if(CLD.SY.selectedIndex>0)CLD.SY.selectedIndex--}break;case"MD":if(CLD.SM.selectedIndex<11)CLD.SM.selectedIndex++;else{CLD.SM.selectedIndex=0;if(CLD.SY.selectedIndex<150)CLD.SY.selectedIndex++}break;default:CLD.SY.selectedIndex=tY-2006;CLD.SM.selectedIndex=tM}changeCld()}var Today=new Date(),tY=Today.getFullYear(),tM=Today.getMonth(),tD=Today.getDate(),width="130",offsetx=2,offsety=8,x=0,y=0,snow=0,sw=0,cnt=0,dStyle;document.onmousemove=mEvn;function mOvr(v){var s,festival,sObj=eval("SD"+v),d=sObj.innerHTML-1;if(sObj.innerHTML!=""){sObj.style.cursor="";if(cld[d].solarTerms==""&&cld[d].solarFestival==""&&cld[d].lunarFestival=="")festival="";else festival="<TABLE WIDTH=100% BORDER=0 CELLPADDING=4 CELLSPACING=0 BGCOLOR=\"blue\"><TR><TD style=\"font-size:12px; line-height:18px; color:#ffffff;\">"+"<b>"+cld[d].solarTerms+" "+cld[d].solarFestival+" "+cld[d].lunarFestival+"</b></TD>"+"</TR></TABLE>";s="<table cellpadding=1 cellspacing=0 border=0 bgcolor=black><tr><td><TABLE WIDTH=\"100%\" BORDER=0 CELLPADDING=\"3\" CELLSPACING=0 BGCOLOR=\"#FFFFE1\"><TR>"+"<TD style=\"font-size:12px;line-height:18px;\">"+cld[d].sYear+"\u5e74"+cld[d].sMonth+"\u6708"+cld[d].sDay+"\u65e5\uff0c\u661f\u671f"+cld[d].week+"<br>"+"\u519c\u5386"+(cld[d].isLeap?"\u95f0":"")+cld[d].lMonth+"\u6708"+cld[d].lDay+"\u65e5<br>"+""+cld[d].cYear+"\u5e74 "+cld[d].cMonth+"\u6708 "+cld[d].cDay+"\u65e5"+"</TD></TR></TABLE>"+festival+"</td></tr></table>";document.all["detail"].innerHTML=s;if(snow==0){dStyle.left=x+offsetx-(width/2);dStyle.top=y+offsety;dStyle.visibility="visible";snow=1}}}function mOut(){}function mEvn(){x=event.x;y=event.y;if(snow){dStyle.left=x+offsetx-(width/2);dStyle.top=y+offsety}}
function initialize(){
	dStyle=detail.style;
	var A,D,C;C=window.location.href;var B=/\/(\d{4})-(\d{2})\/(\d{2})\/node_(\d+).htm/im;if(C.match(B)){tY=RegExp.$1-0;tM=RegExp.$2-1;tD=RegExp.$3}CLD.SY.selectedIndex=tY-2006;CLD.SM.selectedIndex=tM}function terminate(){setCookie("TZ1",objContinentMenu.selectedIndex);setCookie("TZ2",objCountryMenu.selectedIndex)}
function zoomIn(){var A=document.getElementById("ozoom");newZoom=parseInt(A.style.fontSize)+2+"px";A.style.fontSize=newZoom}function zoomOut(){var A=document.getElementById("ozoom");newZoom=parseInt(A.style.fontSize)-2+"px";A.style.fontSize=newZoom}function zoomDefault(){var A=document.getElementById("ozoom");A.style.fontSize="14px"}
var tid=null,IsSelect=false,speed=1000,jk=-1,isScroll=false,stimer=null,cIsSelect=false,colors=new Array();colors[0]="#FF0000";colors[1]="#00FF00";colors[2]="#0000FF";function blink(){var obj=eval("document.all."+"test1"),obj2=eval("document.all."+"test2");jk++;if(jk==3)jk=-1}setInterval("blink()",speed);function SetScroll(B,A){if(isScroll){isScroll=false;A.innerHTML="&#x81EA;&#x52A8;&#x5377;&#x6EDA;"}else{isScroll=true;A.innerHTML="&#x505C;&#x6B62;&#x5377;&#x6EDA;";stimer=setTimeout(function(){return AutoScroll(document.getElementById(B))},100)}}function AutoScroll(A){if(isScroll){A.scrollTop+=2;stimer=setTimeout(function(){return AutoScroll(A)},100)}else stimer=null}function SetCopy(A){try{clipboardData.setData("Text",A);alert("\u590d\u5236\u6210\u529f!")}catch(B){}}function turnpage(B,A){currPos=B.selectedIndex;if(A==0){if(currPos==0)return;else{B.selectedIndex=currPos-1;B.onchange()}}else if(currPos==B.length-1)return;else{B.selectedIndex=currPos+1;B.onchange()}}function changeMPCld(){var B,A;B=CLD.SY.selectedIndex+2006;A=CLD.SM.selectedIndex;OBJ_MP_LOADACTION.loadPeriods("",B+"-"+appendZero(A+1))}function JustDate(){var A=parseInt(event.clientX),B=parseInt(event.clientY+document.body.scrollTop);document.getElementById("dateDiv").style.left=A-10+"px";document.getElementById("dateDiv").style.top=B-10+"px";ShowDate()}function ShowDate(){document.getElementById("dateDiv").style.display="block"}function HiddenDate(){if(!IsSelect)document.getElementById("dateDiv").style.display="none";IsSelect=false}function SetSelectValue(A){IsSelect=A}function OpenPage(){document.getElementById("pinglunpage").style.display="block";document.getElementById("bigpicpage").style.display="none"}function ClosePlayer(){document.getElementById("backgroundpage").style.display="none";document.getElementById("bigpicpage").style.display="none"}function ClosePage(){document.getElementById("backgroundpage").style.display="none";document.getElementById("pinglunpage").style.display="none"}function MM_preloadImages(){var A=document;if(A.images){if(!A.MM_p)A.MM_p=new Array();var B,D=A.MM_p.length,C=MM_preloadImages.arguments;for(B=0;B<C.length;B++)if(C[B].indexOf("#")!=0){A.MM_p[D]=new Image;A.MM_p[D++].src=C[B]}}}function MM_swapImgRestore(){var A,C,B=document.MM_sr;for(A=0;B&&A<B.length&&(C=B[A])&&C.oSrc;A++)C.src=C.oSrc}function MM_findObj(D,A){var C,B,E;if(!A)A=document;if((C=D.indexOf("?"))>0&&parent.frames.length){A=parent.frames[D.substring(C+1)].document;D=D.substring(0,C)}if(!(E=A[D])&&A.all)E=A.all[D];for(B=0;!E&&B<A.forms.length;B++)E=A.forms[B][D];for(B=0;!E&&A.layers&&B<A.layers.length;B++)E=MM_findObj(D,A.layers[B].document);if(!E&&A.getElementById)E=A.getElementById(D);return E}function MM_swapImage(){var A,C=0,D,B=MM_swapImage.arguments;document.MM_sr=new Array;for(A=0;A<(B.length-2);A+=3)if((D=MM_findObj(B[A]))!=null){document.MM_sr[C++]=D;if(!D.oSrc)D.oSrc=D.src;D.src=B[A+2]}}var flag=false;function fixImage(A){var B=new Image();B.src=A.src;if(B.width>0&&B.height>0){flag=true;if(B.width/B.height>=376/515){if(B.width>376){A.width=376;A.height=(B.height*376)/B.width}else{A.width=B.width;A.height=B.height}}else if(B.height>515){A.height=515;A.width=(B.width*515)/B.height}else{A.width=B.width;A.height=B.height}}}
