/* --------------------------------------------------
Author: Anastasios Pallas / tcpallas@gmail.com
Version 1.0
Last Update: 2018-12-20
-------------------------------------------------- */

// Hide Tabs
tab2_overlay.visible = false;
tab3_overlay.visible = false;


// Hide circuits
device_circuit.visible = false;
device_circuit2.visible = false;
device_circuit3.visible = false;
device_circuit4.visible = false;


circuit_add.visible = true;

temperatures_circuit.visible = false;
temperatures_circuit_text1.visible = true;
temperatures_circuit_text2.visible = false;
temperatures_circuit_text3.visible = false;
temperatures_circuit_text4.visible = false;
temperatures_circuit_texts.visible = false;
temperatures_table.visible = false;
temperatures_table_values.visible = false;
temperatures_table_highlight_area1.visible = false;
temperatures_table_highlight_area2.visible = true;
temperatures_table_highlight_area3.visible = true;
temperatures_table_highlight_area4.visible = true;


power_graph.visible = false;
power_table.visible = false;
power_table_values.visible = false;

// Hide Remove Buttons
for (i = 0; i < rm_device.length; i++) {
	rm_device[i].visible = false;
}



// Update Device Circuit
var device = "";


// Circuit Devices
var circuit_array = new Array();
circuit_array[0] = "add_circuit";
circuit_array[1] = "";
circuit_array[2] = "";
circuit_array[3] = "";

// Circuit Pi values
var p_array = new Array();
p_array[0] = 0;
p_array[1] = 0;
p_array[2] = 0;
p_array[3] = 0;


update_circuit(circuit_array, p_array);

update_device_button(circuit_array, p_array);

// Update Stage
stage.update();
