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


// Show Elements
beaker_cu[0].visible = true;
beaker_nail[0].visible = true;
beaker_wire[0].visible = true;
nail[0].visible = true;
wire[0].visible = true;


// Hidden Elements
beaker_cu[1].visible = false;
beaker_cu[2].visible = false;
beaker_cu[3].visible = false;
beaker_nail[1].visible = false;
beaker_nail[2].visible = false;
beaker_nail[3].visible = false;
beaker_nail[4].visible = false;
beaker_nail[5].visible = false;
beaker_wire[1].visible = false;
beaker_wire[2].visible = false;
beaker_wire[3].visible = false;
beaker_wire[4].visible = false;
beaker_wire[5].visible = false;
nail[1].visible = false;
nail[2].visible = false;
wire[1].visible = false;
wire[2].visible = false;

beaker_area1.visible = true;
beaker_area2.visible = false;

// Labels
labels.visible = false;

// statuses
anim_step = 0;


// Update Stage
stage.update();

$(document).ready(function() {
	// display a random lab scene
	var rnd = Math.floor(Math.random() * 6);	// 0 to 5
	$('#oer_canvas').css("background", "url('images/chemistry-lab-bg" + rnd + ".png') no-repeat");
	$('#oer_canvas').css("background-size", "contain");
	$('#oer_canvas').css("background-position-y", "86px");
	
	// Hide next steps
	$("#help_step2").hide();
	$("#help_step3").hide();
	$("#help_step4").hide();
	$("#help_step5").hide();
});