/* --------------------------------------------------
Author: Anastasios Pallas / tcpallas@gmail.com
Version 1.0
Last Update: 2024-02-18
-------------------------------------------------- */


// Show Elements
gas.visible = true;
scissor[0].visible = true;
mg.visible = true;
plate[0].visible = true;
plate[1].visible = true;
plate[2].visible = true;
plate[3].visible = true;
plate[4].visible = true;
flame_area.width = flame_area.height = 0;
gas_btn.visible = true;

// Hidden Elements
scissor[1].visible = false;
scissor[2].visible = false;
scissor[3].visible = false;
scissor[4].visible = false;
flame.visible = false;
flameY.visible = false;
flameR.visible = false;
flameP.visible = false;
flameG.visible = false;
flameL.visible = false;
plate_area1.visible = false;
plate_area2.visible = false;
plate_area3.visible = false;
plate_area4.visible = false;
plate_area5.visible = false;
flame_area.visible = false;
labels.visible = false;


// Update Stage
stage.update();

$(document).ready(function() {
	// display a random lab scene
	var rnd = Math.floor(Math.random() * 6);	// 0 to 5
	$('.theme-blue-sea #oer_canvas').css("background", "url('images/chemistry-lab-bg" + rnd + ".png') no-repeat");
	$('.theme-blue-sea #oer_canvas').css("background-size", "contain");
	
	// Hide next steps
	$("#help_step2").hide();
	$("#help_step3").hide();
	$("#help_step4").hide();
	$("#help_step5").hide();
	$("#help_step6").hide();
	$("#help_step7").hide();
	$("#help_step8").hide();
	$("#help_step9").hide();
	$("#help_step10").hide();
	$("#help_step11").hide();
	$("#help_step12").hide();
	$("#help_step13").hide();
	$("#lab_question1").hide();
});