'+l[c][1]+'
'+artdb[e][1]+''+artdb[e][2]+"
");$("#Inner_Articlespan").prepend(m)}function d(v){var h,t,s,o,n,i,l,e;$("#ch1").text().trim().length?(h=$("#ch1").text(),t=$("#ch2").text(),s=$("#ch3").text(),o=$("#ch4").text()):h=t=s=o="#ffffff",void 0===v?n=i=l=e="#ffffff":(n=artdb[v][7],i=artdb[v][8],l=artdb[v][9],e=artdb[v][10]);const r=["#logo1","#logo2","#logo3","logo4",h,t,s,o];!async function(){await async function(){return new Promise(((v,h)=>{for(var t=0;t<4;t++)$(r[t]).css({fill:r[2*t]});setTimeout((()=>v("done")),0)}))}(),$("#logo2").css({fill:n,transition:"fill 1s"}),$("#logo1").css({fill:i,transition:"fill 1s"}),$("#logo4").css({fill:l,transition:"fill 1s"}),$("#logo3").css({fill:e,transition:"fill 1s"})}(),$("#ch1").text(n),$("#ch2").text(i),$("#ch3").text(l),$("#ch4").text(e)}function w(t){var s=t+1;s>=v?$("#ldr").text(""):$("#ldr").text(s);var o=t-1;o<=-1?$("#rdr").text(""):$("#rdr").text(o),$("#cdr").text(t);const n=["#articlecontent_Body","#sp12","#sp13","#t11","#t12","#t13"];$("#articlecontent_Body").load(artdb[t][0]),document.title=h+" - "+artdb[t][1];for(var i=1;i<6;i++)$(n[i]).text(artdb[t][i]);d(t),window.scrollTo(0,0),z()}function g(v){location.hash="'"+v+" - "+artdb[v][1]+"'",w(v)}function p(){var v=window.location.hash;if(""==v||null==v)$("#classholder").removeClass(),d(),document.title=h,z(),window.scrollTo(0,0);else{var t=(t=v.substring(0,v.indexOf("%20-%20"))).substring(2);t=parseInt(t)||0;$("#classholder").addClass("c"+t),w(t)}}function z(){var v=document.documentElement.clientWidth,h=document.documentElement.clientHeight,l=v/h,e=window.location.hash;if(l>.7&&h>500&&v>500){if(l>1.1){var r=1*h,a=(w=.5*(v-h))+.05*h,c=.85*h,m=.16,d=.23*(g=.9*h);$("#Inner_Profilespan").html("
"+t+"
"+s+"
"+o+"
"+i+"
")}else{r=.925*v;var w=.0375*v;a=.075*v,c=.79*v,m=.2,d=.23*(g=.85*v);$("#Inner_Profilespan").html("
"+t+"
"+s+"
"+o+"
"+i+"
")}""==e?($("#Inner_Articlespan").css("display","block"),$("#inner_Articlecontent").css("display","none")):($("#Inner_Articlespan").css("display","none"),$("#inner_Articlecontent").css("display","block"))}else{var g;r=1*v,w=0*v,a=.05*v,c=.79*v,m=.2,d=.5*(g=.9*v);$("#Inner_Profilespan").html("
"+t+"
"+s+"
"+o+"
"+n),$("#Inner_Articlespan").css("display","none"),$("#inner_Articlecontent").css("display","none")}!function(v,h,t,s,o,n,i){$("#main_Outerbox").css("width",v+"px"),$("#main_Outerbox").css("left",h+"px"),$("#main_Innerbox").css("width",t+"px"),$("#main_Innerbox").css("left",s+"px"),$(".ttotal_div").css("width",t+"px"),$(".ttxt_div").css("width",o+"px");var l=$(".ttxt_date").width();$(".ttxt_title").css("width",t-n*v-l+"px"),$("#profilediv").css("height",i+"px"),$("#profilediv").css("border-bottom","1px solid black"),$("#profilediv").css("width",t+"px"),$("#logo").css("width",i+"px"),$("#logo").css("height",i+"px"),$("#Inner_Articlespan").css("margin-top",i+"px"),$("#Inner_Articlespan").css("width",t+"px"),$("#inner_Articlecontent").css("margin-top",i+"px"),$("#inner_Articlecontent").css("width",t+"px")}(r,w,g,a,c,m,d)}$("#Inner_Articlespan").prepend("
"),p(),z(),$(window).on("orientationchange",(function(v){$(window).resize(z)})),$(window).resize(z),$(".ttotal_div").click((function(){var v=(v=$(this).attr("id")).substring(1);v=parseInt(v)||0;$("#classholder").addClass("c"+v),g(v)})),$("#ldr").click((function(){var v=$("#classholder").attr("class");$("#classholder").removeClass();v=v.substring(1),v=(v=parseInt(v)||0)+1;$("#classholder").addClass("c"+v),g(v)})),$("#rdr").click((function(){var v=$("#classholder").attr("class");$("#classholder").removeClass();v=v.substring(1),v=(v=parseInt(v)||0)-1;$("#classholder").addClass("c"+v),g(v)})),$(".home").click((function(){$("#classholder").removeClass(),history.pushState("",document.title,window.location.pathname+window.location.search),window.scrollTo(0,0),p(),z()}))}));