<!--

var hexagram1Cell, hexagram2Cell, newCell;



var yyTable = document.createElement("table");
with (yyTable) {
	border = 0;
	cellPadding = 0;
	cellSpacing = 0;
	style.fontSize = "10px";
	style.marginTop = "0.75em";
	style.marginBottom = "0em";
	appendChild(document.createElement("tbody"));
	firstChild.appendChild(document.createElement("tr")); }

var lineCell = document.createElement("td");
with (lineCell) {
	style.backgroundColor = "#000000";
	style.color = "#000000";
	style.fontWeight = "bold";
	style.textAlign = "center";
	appendChild(document.createTextNode("\u00A0")); }

var yangTable = yyTable.cloneNode(true);
newCell = lineCell.cloneNode(true);
newCell.style.width = "12em";
yangTable.firstChild.firstChild.appendChild(newCell);

var movingYangTable = yangTable.cloneNode(true);
with (movingYangTable.firstChild.firstChild.firstChild) {
	style.color = "#ffffff";
	replaceChild(document.createTextNode("O"), firstChild); }

var yinTable = yyTable.cloneNode(true);
newCell = lineCell.cloneNode(true);
newCell.style.width = "5em";
yinTable.firstChild.firstChild.appendChild(newCell);
newCell = lineCell.cloneNode(true);
with (newCell.style) {
	backgroundColor = "";
	width = "2em"; }
yinTable.firstChild.firstChild.appendChild(newCell);
newCell = lineCell.cloneNode(true);
newCell.style.width = "5em";
yinTable.firstChild.firstChild.appendChild(newCell);

var movingYinTable = yinTable.cloneNode(true);
with (movingYinTable.firstChild.firstChild.childNodes[1])
	replaceChild(document.createTextNode("X"), firstChild);



function drawLines() {
hexagram1Cell = document.getElementById("hexagram1C");
hexagram2Cell = document.getElementById("hexagram2C");

hexagram1Cell.insertBefore(yinTable.cloneNode(true), hexagram1Cell.firstChild);
hexagram1Cell.insertBefore(movingYangTable.cloneNode(true), hexagram1Cell.firstChild);
hexagram1Cell.insertBefore(yinTable.cloneNode(true), hexagram1Cell.firstChild);
hexagram1Cell.firstChild.style.marginTop = "2em";
hexagram1Cell.insertBefore(yangTable.cloneNode(true), hexagram1Cell.firstChild);
hexagram1Cell.insertBefore(movingYinTable.cloneNode(true), hexagram1Cell.firstChild);
hexagram1Cell.insertBefore(yinTable.cloneNode(true), hexagram1Cell.firstChild);

hexagram2Cell.insertBefore(yinTable.cloneNode(true), hexagram2Cell.firstChild);
hexagram2Cell.insertBefore(yinTable.cloneNode(true), hexagram2Cell.firstChild);
hexagram2Cell.insertBefore(yinTable.cloneNode(true), hexagram2Cell.firstChild);
hexagram2Cell.firstChild.style.marginTop = "2em";
hexagram2Cell.insertBefore(yangTable.cloneNode(true), hexagram2Cell.firstChild);
hexagram2Cell.insertBefore(yangTable.cloneNode(true), hexagram2Cell.firstChild);
hexagram2Cell.insertBefore(yinTable.cloneNode(true), hexagram2Cell.firstChild);
}

//-->