stop();

//ПодписываемсЯ на событиЯ
ul.subscribe("InitializationComplete");
ul.subscribe("evtCallTimer");
ul.subscribe("cbUpdate");

//Переменные

/////////////////////////////////////FUNCTIONS//////////////////////////////////////////////////
ul.oncbUpdate = function() {
	switch (cbox.getValue()) {
		case 0: exp1._visible = true; 
				size1._visible = true;
				exp2._visible = false;
				size2._visible = false;
			    exp3._visible = false;
				size3._visible = false;
				exp4._visible = false;
				size4._visible = false;
				
				molec.gotoAndStop(1);
		break;
		
		case 1: exp1._visible = false; 
				size1._visible = false;
				exp2._visible = true;
				size2._visible = true;
			    exp3._visible = false;
				size3._visible = false;
				exp4._visible = false;
				size4._visible = false;
				
				molec.gotoAndStop(2);
		break;
		
		case 2: exp1._visible = false; 
				size1._visible = false;
				exp2._visible = false;
				size2._visible = false;
			    exp3._visible = true;
				size3._visible = true;
				exp4._visible = false;
				size4._visible = false;
				
				molec.gotoAndStop(3);
		break;
		
		case 3: exp1._visible = false; 
				size1._visible = false;
				exp2._visible = false;
				size2._visible = false;
			    exp3._visible = false;
				size3._visible = false;
				exp4._visible = true;
				size4._visible = true;
				
				molec.gotoAndStop(4);
		break;
	}
}

ul.onInitializationComplete = function() {
	exp1._visible = true; 
	size1._visible = true;
	exp2._visible = false;
	size2._visible = false;
	exp3._visible = false;
	size3._visible = false;
	exp4._visible = false;
	size4._visible = false;
	
	molec.gotoAndStop(1);
};