// Gate image overlays

and00 = new Image(175, 60);	and00.src = "images/and2-00.gif";
and01 = new Image(175, 60);	and01.src = "images/and2-01.gif";
and10 = new Image(175, 60);	and10.src = "images/and2-10.gif";
and11 = new Image(175, 60);	and11.src = "images/and2-11.gif";

or00 = new Image(175, 60);	or00.src = "images/or2-00.gif";
or01 = new Image(175, 60);	or01.src = "images/or2-01.gif";
or10 = new Image(175, 60);	or10.src = "images/or2-10.gif";
or11 = new Image(175, 60);	or11.src = "images/or2-11.gif";

not0 = new Image(175, 60);	not0.src = "images/not-0.gif";
not1 = new Image(175, 60);	not1.src = "images/not-1.gif";


// gate input values

var gatesIn = new Array(2);
gatesIn[0] = new Array(1);	// AND gate
gatesIn[0][0] = "0";
gatesIn[0][1] = "1";

gatesIn[1] = new Array(1);	// OR gate
gatesIn[1][0] = "0";
gatesIn[1][1] = "1";

gatesIn[2] = new Array(0);	// NOT gate - Inverter
gatesIn[2][0] = "0";


// gate names

var gateNames = new Array(2);
gateNames[0] = "and";
gateNames[1] = "or";
gateNames[2] = "not";


// Input and output counts

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

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

