var x_chan_0=new Image();x_chan_0.src='img/readorigtxt_0.png';var x_chan_1=new Image();x_chan_1.src='img/readorigtxt_1.png';var x_cust_0=new Image();x_cust_0.src='img/cust_search_0.png';var x_cust_1=new Image();x_cust_1.src='img/cust_search_1.png';var g_='';var k_x=parseInt(x_Ha1);var _qx=parseInt(x_Ha2);var g_L;var T_x;var g_x;var R_x;var G_x;var F_x;var o_x;var wc;var B_x;var ab=(document.domain);function aK(){var av;switch(T_x){case 6:av="<img src='img/6.gif' alt='Old Yin' title='Old Yin'>";break;case 7:av="<img src='img/7.gif' alt='Young Yang' title='Young Yang'>";break;case 8:av="<img src='img/8.gif' alt='Young Yin' title='Young Yin'>";break;case 9:av="<img src='img/9.gif' alt='Old Yang' title='Old Yang'>";break;}return av;};function aJ(){var ax;switch(T_x){case 6:ax="<a onclick='x_rCl("+wc+");'><img src='img/6.gif' alt='Old Yin' title='Old Yin - Read about Changing Line "+wc+"'></a>";R_x=g_x;g_x=wc;F_x=F_x+'An Old Yin for Line '+wc+'<br />';break;case 7:ax="<a onclick='x_rCl("+wc+");'><img src='img/7.gif' alt='Young Yang' title='Young Yang - Read about Non-Changing Line "+wc+"'></a>";G_x=wc;break;case 8:ax="<a onclick='x_rCl("+wc+");'><img src='img/8.gif' alt='Young Yin' title='Young Yin - Read about Non-Changing Line "+wc+"'></a>";G_x=wc;break;case 9:ax="<a onclick='x_rCl("+wc+");'><img src='img/9.gif' alt='Old Yang' title='Old Yang - Read about Changing Line "+wc+"'></a>";R_x=g_x;g_x=wc;F_x=F_x+'An Old Yang for Line '+wc+'<br />';break;}return ax;};function aD(){var ay;switch(T_x){case 6:ay="<img src='img/7.gif' alt='Young Yang'>";break;case 7:ay="<img src='img/7.gif' alt='Young Yang'>";break;case 8:ay="<img src='img/8.gif' alt='Young Yin'>";break;case 9:ay="<img src='img/8.gif' alt='Young Yin'>";break;}return ay;};function aC(){var az;switch(T_x){case 6:az="<img src='img/8.gif' alt='Young Yin'>";break;case 7:az="<img src='img/7.gif' alt='Young Yang'>";break;case 8:az="<img src='img/8.gif' alt='Young Yin'>";break;case 9:az="<img src='img/7.gif' alt='Young Yang'>";break;}return az;};function aS(){g_x=0;R_x=0;G_x=0;F_x='';o_x='';wc=1;while(wc<7){T_x=parseInt(x_hex.substr((wc-1),1));au();wc++;}aa();};var bA=(unescape("%69%6E%67"));var by=(unescape("%6F%6E%6C%69%6E%65"));function ac(){document.location='';return;};function au(){document.getElementById('x_cst'.concat(wc)).innerHTML=aK();document.getElementById('x_chg'.concat(wc)).innerHTML=aJ();document.getElementById('x_trf'.concat(wc)).innerHTML=aD();document.getElementById('x_trg'.concat(wc)).innerHTML=aC();};function aa(){at.innerHTML='';af.style.display='';M_x.innerHTML='';switch(x_aaC){case 0:w_x.innerHTML=('<h2>Changing Lines:</h2><br />There are no Changing Lines,<br />but you can click on any NON-changing Line to read about it.<br /><br />');D_x.innerHTML='';H_x.innerHTML='';B_x=(l_x(k_x,0));af.style.display='none';M_x.innerHTML='';break;case 1:w_x.innerHTML=('<h2>Changing Lines:</h2><br />There is One Changing Line.<br />You can click on any NON-changing Line as well to read about it.<br /><br />');D_x.innerHTML='';H_x.innerHTML=(_cx[(k_x-1)*6+(g_x-1)]+'<br />');B_x=(l_x(k_x,0));g_L=g_x;M_x.innerHTML=('for Hexagram '+x_Ha1+', Line '+g_x+',<br />'+'by Richard Wilhelm.');break;case 2:if(x_la6>0&&x_la9>0){g_x=x_la6;o_x=F_x+'The Old Yin prevails.<br />';}else{o_x='The Upper Changing Line prevails.<br />';}w_x.innerHTML=('<h2>Changing Lines:</h2><br />There are Two Changing (<font style="color:#c00">red</font>) Lines.<br />Click on any Line to read about it.<br /><br />');D_x.innerHTML=(o_x+'<br />');H_x.innerHTML=(_cx[(k_x-1)*6+(g_x-1)]+'<br />');B_x=(l_x(k_x,0));g_L=g_x;M_x.innerHTML=('for Hexagram '+x_Ha1+', Line '+g_x+',<br />'+'by Richard Wilhelm.');break;case 3:g_x=R_x;o_x='The Middle Changing Line prevails.<br />';w_x.innerHTML=('<h2>Changing Lines:</h2><br />There are Three Changing (<font style="color:#c00">red</font>) Lines.<br />Click on any Line to read about it.<br /><br />');D_x.innerHTML=(o_x+'<br />');H_x.innerHTML=(_cx[(k_x-1)*6+(g_x-1)]+'<br />');B_x=(l_x(k_x,0));g_L=g_x;M_x.innerHTML=('for Hexagram '+x_Ha1+', Line '+g_x+',<br />'+'by Richard Wilhelm.');break;case 4:g_x=G_x;o_x='Read the Upper NON-changing Line as well.<br />';w_x.innerHTML=('<h2>Changing Lines:</h2><br />There are Four Changing (<font style="color:#c00">red</font>) Lines.<br />Click on any of them to read about it.<br /><br />');D_x.innerHTML=(o_x+'<br />');H_x.innerHTML=(_cx[(k_x-1)*6+(g_x-1)]+'<br />');B_x=(l_x(k_x,0));g_L=g_x;M_x.innerHTML=('for Hexagram '+x_Ha1+', Line '+g_x+',<br />'+'by Richard Wilhelm.');break;case 5:g_x=G_x;o_x='Read the Only NON-changing Line as well.<br />';w_x.innerHTML=('<h2>Changing Lines:</h2><br />There are Five Changing (<font style="color:#c00">red</font>) Lines.<br />Click on any of them to read about it.<br /><br />');D_x.innerHTML=(o_x+'<br />');H_x.innerHTML=(_cx[(k_x-1)*6+(g_x-1)]+'<br />');B_x=(l_x(k_x,0));g_L=g_x;M_x.innerHTML=('for Hexagram '+x_Ha1+', Line '+g_x+',<br />'+'by Richard Wilhelm.');break;case 6:if(x_la6>0&&x_la9>0){o_x='Only the Transformed Hexagram applies.<br />';B_x=(l_x(k_x,0));}else{o_x='Only both Cast and Transformed Hexagram apply.<br />';B_x=(l_x(k_x,0).replace('11','01'));}w_x.innerHTML=('<h2>Changing Lines:</h2><br />All Lines are Changing!!!<br />You can click on any of them to read about it,<br />but no Changing Line applies.<br /><br />');D_x.innerHTML=(o_x+'<br />');H_x.innerHTML='';g_L=0;af.style.display='none';M_x.innerHTML='';break;}};if(window.location.protocol.indexOf('file')!= -1){ac();}var bY=ab.indexOf(bA);var ap=ab.indexOf(by);if(bY<2||ap<6||((ap-bY)<3)||((ap-bY)>4)){ac();}if(parent.frames.length!=0){ac();}function c_x(){an=document.getElementById('i_page3');aq=document.getElementById('i_page4');as=document.getElementById('i_page5');am=document.getElementById('i_page6');w_x=document.getElementById('i_chantxt1');D_x=document.getElementById('i_chantxt1b');at=document.getElementById('i_chantxt1c');H_x=document.getElementById('i_chantxt2');af=document.getElementById('i_btnChan');M_x=document.getElementById('i_rwchan');if(x_ShA!==undefined){x_r3t=document.getElementById('i_r3t');x_r3l=document.getElementById('i_r3l');x_r3b=document.getElementById('i_r3b');x_r4b=document.getElementById('i_r4b');x_r5b=document.getElementById('i_r5b');x_r6b=document.getElementById('i_r6b');}var t_x;if(x_vrg!=''){t_x=decodeURIComponent(x_vrg);}else{t_x='You did not enter a question.';}if(x_hex!=null){aS();}document.getElementById('i_txtVraag').innerHTML=t_x;if(x_vrg==''){document.getElementById('i_btnCust').style.display='none';x_vrg='You did not enter a question.';}document.getElementById('i_imgLoad').style.display='none';x_sP3();};function e_(o_,j_){var c_;c_=new XMLHttpRequest();c_.onreadystatechange=function(){if(this.readyState==4&&this.status==200){j_(this);}};c_.open("GET","ins_adc.php?x_adc="+o_,true);c_.send();};function f_(c_){x_r3t.innerHTML=c_.responseText;(adsbygoogle=window.adsbygoogle||[]).push({});};function c_f(c_){x_r3l.innerHTML=c_.responseText;(adsbygoogle=window.adsbygoogle||[]).push({});};function k_(c_){x_r4b.innerHTML='';x_r5b.innerHTML='';x_r6b.innerHTML='';x_r3b.innerHTML=c_.responseText;(adsbygoogle=window.adsbygoogle||[]).push({});};function l_(c_){x_r3b.innerHTML='';x_r5b.innerHTML='';x_r6b.innerHTML='';x_r4b.innerHTML=c_.responseText;(adsbygoogle=window.adsbygoogle||[]).push({});};function n_(c_){x_r3b.innerHTML='';x_r4b.innerHTML='';x_r6b.innerHTML='';x_r5b.innerHTML=c_.responseText;(adsbygoogle=window.adsbygoogle||[]).push({});};function m_(c_){x_r3b.innerHTML='';x_r4b.innerHTML='';x_r5b.innerHTML='';x_r6b.innerHTML=c_.responseText;(adsbygoogle=window.adsbygoogle||[]).push({});};function x_sP3(){if((x_ShA!==undefined)&&(g_!='3')){if(g_==''){e_('r3t',f_);}e_('r3l',c_f);e_('r3b',k_);}aq.style.display='none';as.style.display='none';am.style.display='none';an.style.display='';g_='3';};function x_sP4(){if((x_ShA!==undefined)&&(g_!='4')){e_('r3t',f_);e_('r3b',l_);}aa();an.style.display='none';as.style.display='none';am.style.display='none';aq.style.display='';g_='4';};function x_sP5(){if((x_ShA!==undefined)&&(g_!='5')){e_('r3l',c_f);e_('r3b',n_);}an.style.display='none';aq.style.display='none';am.style.display='none';as.style.display='';g_='5';};function x_sP6(){if((x_ShA!==undefined)&&(g_!='6')){e_('r3t',f_);e_('r3b',m_);}an.style.display='none';aq.style.display='none';as.style.display='none';am.style.display='';g_='6';};function x_nicast(){document.getElementById('x_srt').value='Cast%20Hexagram:';document.getElementById('x_vrg').value=x_vrg;document.getElementById('x_ichon_rw').action=B_x;document.getElementById('x_ichon_rw').submit();};function x_nichan(){document.getElementById('x_vrg').value=x_vrg;document.getElementById('x_rwh').value=k_x;document.getElementById('x_rwc').value=g_L;document.getElementById('x_ichon_rw').action='./rw3/hexagram-line.php#ico';document.getElementById('x_ichon_rw').submit();};function x_nitran(){document.getElementById('x_srt').value='Transformed%20Hexagram:';document.getElementById('x_vrg').value=x_vrg;document.getElementById('x_ichon_rw').action=l_x(_qx,0);document.getElementById('x_ichon_rw').submit();};function l_x(aw,al){var bH=((aw*226056)+((100-aw)*114725)+(al*9783831));return 'rw3/'+bH+'.php';};function x_rCl(al){g_L=al;D_x.innerHTML='';at.innerHTML='Click the <b>Hexagram Lines</b> tab again to reset.<br /><br />';H_x.innerHTML=(_cx[(k_x-1)*6+(al-1)]+'<br />');af.style.display='';M_x.innerHTML=('for Hexagram '+x_Ha1+', Line '+al+',<br />'+'by Richard Wilhelm.');};document.write(unescape("%3C%73%63%72%69%70%74%20%74%79%70%65%3D%22%74%65%78%74%2F%6A%61%76%61%73%63%72%69%70%74%22%20%73%72%63%3D%22%6A%73%2F%5F%74%61%62%73%33%53%2E%6A%73%22%3E%3C%2F%73%63%72%69%70%74%3E"));window.addEventListener?window.addEventListener('load',c_x,false):window.attachEvent('onload',c_x);document.oncontextmenu=function(){return false;} 