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


// Show Elements
beaker1[0].visible = true;
beaker2[0].visible = true;
dropper.visible = true;
pipette[0].visible = true;
tube_base.visible = true;
tube1[1].visible = true;
tube2[1].visible = true;
tube3[1].visible = true;
tube4[1].visible = true;
tube1_area.visible = true;
beaker1_area.visible = true;
beaker2_area.visible = true;

// Hidden Elements
pipette[1].visible = false;
beaker1[1].visible = false;
beaker2[1].visible = false;
tube1[0].visible = false;
tube1[2].visible = false;
tube1[3].visible = false;
tube1[4].visible = false;
tube1[5].visible = false;
tube1[6].visible = false;
tube2[0].visible = false;
tube2[2].visible = false;
tube2[3].visible = false;
tube2[4].visible = false;
tube2[5].visible = false;
tube2[6].visible = false;
tube3[0].visible = false;
tube3[2].visible = false;
tube3[3].visible = false;
tube3[4].visible = false;
tube3[5].visible = false;
tube3[6].visible = false;
tube4[0].visible = false;
tube4[2].visible = false;
tube4[3].visible = false;
tube4[4].visible = false;
tube4[5].visible = false;
tube4[6].visible = false;
tube4[7].visible = false;
tube4[8].visible = false;
tube4[9].visible = false;
tube4[10].visible = false;

tube2_area.visible = false;
tube3_area.visible = false;
tube4_area1.visible = false;
tube4_area2.visible = false;

drops[0].visible = false;
drops[1].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");
	*/

	$('#oer_canvas').css("background", "url('images/chemistry-lab-bg.png') no-repeat");
	$('#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();

	// show_step(5);
});