// Gate image overlays

xorf00 = new Image(400, 250); xorf00.src = "images/xorf-00.gif";
xorf01 = new Image(400, 250); xorf01.src = "images/xorf-01.gif";
xorf10 = new Image(400, 250); xorf10.src = "images/xorf-10.gif";
xorf11 = new Image(400, 250); xorf11.src = "images/xorf-11.gif";

xorn00 = new Image(400, 250); xorn00.src = "images/xorn-00.gif";
xorn01 = new Image(400, 250); xorn01.src = "images/xorn-01.gif";
xorn10 = new Image(400, 250); xorn10.src = "images/xorn-10.gif";
xorn11 = new Image(400, 250); xorn11.src = "images/xorn-11.gif";


// gate input values

var gatesIn = new Array(1);
gatesIn[0] = new Array(1);	// Generic XOR function
gatesIn[0][0] = "0";
gatesIn[0][1] = "1";

gatesIn[1] = new Array(1);	// XOR with NAND gates
gatesIn[1][0] = "0";
gatesIn[1][1] = "1";


// gate names

var gateNames = new Array(1);
gateNames[0] = "xorf";
gateNames[1] = "xorn";


// Input and output counts

var gateInputs = new Array(1);
gateInputs[0] = 2;
gateInputs[1] = 2;

var gateOutputs = new Array(1);
gateOutputs[0] = 0;
gateOutputs[1] = 0;

