(function (cjs, an) {

var p; // shortcut to reference prototypes
var lib={};var ss={};var img={};
lib.ssMetadata = [
		{name:"actividad1_atlas_1", frames: [[0,0,1471,1471]]},
		{name:"actividad1_atlas_2", frames: [[0,0,1366,768],[0,770,1366,768]]},
		{name:"actividad1_atlas_3", frames: [[814,0,1063,498],[0,729,806,537],[814,500,860,525],[0,1268,831,520],[833,1515,829,419],[833,1027,844,486],[0,0,812,727]]},
		{name:"actividad1_atlas_4", frames: [[0,0,857,404],[0,1868,857,104],[859,1938,857,104],[859,0,857,404],[543,804,857,304],[548,1520,748,170],[1298,1566,748,170],[828,1110,534,408],[1402,406,610,408],[1402,816,596,408],[1364,1226,582,338],[0,1425,546,338],[548,1738,855,128],[0,1110,826,313],[1405,1738,548,198],[543,406,743,396],[0,406,541,578]]},
		{name:"actividad1_atlas_5", frames: [[532,587,271,160],[805,587,271,160],[0,608,271,160],[0,0,857,104],[859,0,857,104],[273,608,250,160],[1078,705,333,123],[1748,705,250,160],[1413,705,333,123],[0,770,353,92],[0,514,530,92],[350,931,90,66],[1374,482,544,91],[1016,900,226,68],[666,919,226,68],[532,504,107,68],[1920,482,107,68],[1244,900,213,68],[1459,900,213,68],[0,324,348,188],[1024,106,348,188],[1269,575,348,128],[1718,0,322,204],[1674,937,348,38],[894,970,348,38],[1244,970,348,38],[350,1039,322,38],[1594,977,348,38],[350,999,348,38],[0,1001,348,38],[0,1041,322,38],[1374,396,348,68],[0,931,348,68],[700,1010,348,38],[1366,830,322,68],[666,749,348,98],[1016,830,348,68],[666,849,348,68],[1374,106,322,98],[350,106,348,190],[1374,206,348,188],[0,106,348,216],[700,106,322,204],[1024,296,348,188],[674,312,348,188],[1619,575,348,128],[350,298,322,204],[1690,867,286,68],[0,864,479,65],[674,502,593,83],[525,749,139,248],[1724,206,223,274]]}
];


(lib.AnMovieClip = function(){
	this.actionFrames = [];
	this.ignorePause = false;
	this.gotoAndPlay = function(positionOrLabel){
		cjs.MovieClip.prototype.gotoAndPlay.call(this,positionOrLabel);
	}
	this.play = function(){
		cjs.MovieClip.prototype.play.call(this);
	}
	this.gotoAndStop = function(positionOrLabel){
		cjs.MovieClip.prototype.gotoAndStop.call(this,positionOrLabel);
	}
	this.stop = function(){
		cjs.MovieClip.prototype.stop.call(this);
	}
}).prototype = p = new cjs.MovieClip();
// symbols:



(lib.CachedBmp_454 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_452 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_450 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(2);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_448 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_447 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_446 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(2);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_445 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(3);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_444 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(4);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_443 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(3);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_442 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(4);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_441 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(5);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_451 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(6);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_439 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(7);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_453 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(8);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_437 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(5);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_436 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(9);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_435 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(6);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_434 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(10);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_433 = function() {
	this.initialize(ss["actividad1_atlas_3"]);
	this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_432 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(11);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_431 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(12);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_430 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(13);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_429 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(14);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_428 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(15);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_427 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(16);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_426 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(17);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_425 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(18);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_424 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(7);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_423 = function() {
	this.initialize(ss["actividad1_atlas_3"]);
	this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_422 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(19);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_421 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(20);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_420 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(21);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_419 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(22);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_418 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(8);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_417 = function() {
	this.initialize(ss["actividad1_atlas_3"]);
	this.gotoAndStop(2);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_416 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(23);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_415 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(24);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_414 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(25);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_413 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(26);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_412 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(9);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_411 = function() {
	this.initialize(ss["actividad1_atlas_3"]);
	this.gotoAndStop(3);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_410 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(27);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_409 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(28);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_408 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(29);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_407 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(30);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_406 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(10);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_405 = function() {
	this.initialize(ss["actividad1_atlas_3"]);
	this.gotoAndStop(4);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_404 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(31);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_403 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(32);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_402 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(33);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_401 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(34);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_400 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(11);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_399 = function() {
	this.initialize(ss["actividad1_atlas_3"]);
	this.gotoAndStop(5);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_398 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(35);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_397 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(36);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_396 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(37);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_395 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(38);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_394 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(12);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_393 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(13);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_392 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(39);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_391 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(40);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_390 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(41);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_389 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(42);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_388 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(43);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_387 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(44);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_386 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(45);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_385 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(46);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_384 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(14);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_383 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(15);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_382 = function() {
	this.initialize(ss["actividad1_atlas_4"]);
	this.gotoAndStop(16);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_381 = function() {
	this.initialize(ss["actividad1_atlas_3"]);
	this.gotoAndStop(6);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_380 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(47);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_379 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(48);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_378 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(49);
}).prototype = p = new cjs.Sprite();



(lib.botonnext = function() {
	this.initialize(ss["actividad1_atlas_1"]);
	this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();



(lib.fondoactividad1 = function() {
	this.initialize(ss["actividad1_atlas_2"]);
	this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();



(lib.MARCO = function() {
	this.initialize(img.MARCO);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,5932,3442);


(lib.mesaactividad1 = function() {
	this.initialize(ss["actividad1_atlas_2"]);
	this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();



(lib.pj3 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(50);
}).prototype = p = new cjs.Sprite();



(lib.pj4 = function() {
	this.initialize(ss["actividad1_atlas_5"]);
	this.gotoAndStop(51);
}).prototype = p = new cjs.Sprite();
// helper functions:

function mc_symbol_clone() {
	var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop, this.reversed));
	clone.gotoAndStop(this.currentFrame);
	clone.paused = this.paused;
	clone.framerate = this.framerate;
	return clone;
}

function getMCSymbolPrototype(symbol, nominalBounds, frameBounds) {
	var prototype = cjs.extend(symbol, cjs.MovieClip);
	prototype.clone = mc_symbol_clone;
	prototype.nominalBounds = nominalBounds;
	prototype.frameBounds = frameBounds;
	return prototype;
	}


(lib.sig = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Capa_1
	this.instance = new lib.CachedBmp_450();
	this.instance.setTransform(-136.1,19,0.5,0.5);

	this.instance_1 = new lib.botonnext();
	this.instance_1.setTransform(4,0,0.077,0.077);

	this.instance_2 = new lib.CachedBmp_453();
	this.instance_2.setTransform(-142.75,25.55,0.5,0.5);

	this.instance_3 = new lib.CachedBmp_452();
	this.instance_3.setTransform(-136.1,19,0.5,0.5);

	this.instance_4 = new lib.CachedBmp_451();
	this.instance_4.setTransform(-142.75,25.55,0.5,0.5);

	this.instance_5 = new lib.CachedBmp_454();
	this.instance_5.setTransform(-136.1,19,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_2},{t:this.instance_1},{t:this.instance}]}).to({state:[{t:this.instance_4},{t:this.instance_1},{t:this.instance_3}]},1).to({state:[{t:this.instance_2},{t:this.instance_1},{t:this.instance_5}]},2).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-142.7,0,259.9,113.2);


(lib.Play = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Capa_1
	this.instance = new lib.CachedBmp_439();
	this.instance.setTransform(-134.75,19.1,0.5,0.5);

	this.instance_1 = new lib.botonnext();
	this.instance_1.setTransform(0,0,0.077,0.077);

	this.instance_2 = new lib.CachedBmp_453();
	this.instance_2.setTransform(-146.65,25.65,0.5,0.5);

	this.instance_3 = new lib.CachedBmp_441();
	this.instance_3.setTransform(-134.75,19.1,0.5,0.5);

	this.instance_4 = new lib.CachedBmp_451();
	this.instance_4.setTransform(-146.65,25.65,0.5,0.5);

	this.shape = new cjs.Shape();
	this.shape.graphics.f("#CC3300").s().p("AtAE1IAAppIaBAAIAAJpg");
	this.shape.setTransform(-63.35,56.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_2},{t:this.instance_1},{t:this.instance}]}).to({state:[{t:this.instance_4},{t:this.instance_3},{t:this.instance_1}]},1).to({state:[{t:this.shape},{t:this.instance_1}]},2).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-146.6,0,259.8,113.2);


(lib.fondoPreguntaPublico = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Layer_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f().s("#830000").ss(4,1,1).p("EgoRgVqMBQjAAAQCWAAAACWMAAAAmpQAACWiWAAMhQjAAAQiWAAAAiWMAAAgmpQAAiWCWAAg");
	this.shape.setTransform(272.775,138.7);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#E74E25").s().p("EgoRAVrQiWAAAAiWMAAAgmpQAAiWCWAAMBQjAAAQCWAAAACWMAAAAmpQAACWiWAAg");
	this.shape_1.setTransform(272.775,138.7);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).wait(1));

	this._renderFirstFrame();

}).prototype = getMCSymbolPrototype(lib.fondoPreguntaPublico, new cjs.Rectangle(-2,-2,549.6,281.4), null);


(lib.btnSalirRespuesta = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// texto
	this.instance = new lib.CachedBmp_432();
	this.instance.setTransform(54.05,7.65,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));

	// btn
	this.shape = new cjs.Shape();
	this.shape.graphics.f().s("#830000").ss(4,1,1).p("Aq9j6IV7AAQAyAAAAAyIAAGRQAAAygyAAI17AAQgyAAAAgyIAAmRQAAgyAyAAg");
	this.shape.setTransform(75.175,25.05);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#FFFFFF").s().p("Aq9D7QgyAAAAgzIAAmPQAAgzAyAAIV7AAQAyAAAAAzIAAGPQAAAzgyAAg");
	this.shape_1.setTransform(75.175,25.05);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-2,-2,154.4,54.1);


(lib.btnRespuesta = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {ini:0,ok:1,wrong:2};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// timeline functions:
	this.frame_0 = function() {
		this.stop();
	}

	// actions tween:
	this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(3));

	// Layer_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f().s("#830000").ss(4,1,1).p("EgnSgFRMBOlAAAIAAKjMhOlAAAg");
	this.shape.setTransform(0,0.025);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#E74E25").s().p("EgnSAFSIAAqjMBOlAAAIAAKjg");
	this.shape_1.setTransform(0,0.025);

	this.shape_2 = new cjs.Shape();
	this.shape_2.graphics.f().s("#336600").ss(4,1,1).p("EgnSgFRMBOlAAAIAAKjMhOlAAAg");
	this.shape_2.setTransform(0,0.025);

	this.shape_3 = new cjs.Shape();
	this.shape_3.graphics.f("#339900").s().p("EgnSAFSIAAqjMBOlAAAIAAKjg");
	this.shape_3.setTransform(0,0.025);

	this.shape_4 = new cjs.Shape();
	this.shape_4.graphics.f().s("#990000").ss(4,1,1).p("EgnSgFRMBOlAAAIAAKjMhOlAAAg");
	this.shape_4.setTransform(0,0.025);

	this.shape_5 = new cjs.Shape();
	this.shape_5.graphics.f("#FF0000").s().p("EgnSAFSIAAqjMBOlAAAIAAKjg");
	this.shape_5.setTransform(0,0.025);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).to({state:[{t:this.shape_3},{t:this.shape_2}]},1).to({state:[{t:this.shape_5},{t:this.shape_4}]},1).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-253.4,-35.8,506.9,71.69999999999999);


(lib.btnFinalizar = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Layer_1
	this.instance = new lib.CachedBmp_431();
	this.instance.setTransform(-136.05,-22.65,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-136,-22.6,272,45.5);


(lib.btnAyudaPublico = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Layer_2
	this.instance = new lib.CachedBmp_429();
	this.instance.setTransform(32.55,7,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_430();
	this.instance_1.setTransform(31,3.4,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_1}]},1).wait(3));

	// Layer_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#830000").s().p("AsHDdQhkAAAAhkIAAjxQAAhkBkAAIYPAAQBkAAAABkIAADxQAABkhkAAg");
	this.shape.setTransform(87.625,22.075);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#FFFFFF").s().p("AsHDdQhkAAAAhkIAAjxQAAhkBkAAIYPAAQBkAAAABkIAADxQAABkhkAAg");
	this.shape_1.setTransform(87.625,22.075);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape}]}).to({state:[{t:this.shape_1}]},1).wait(3));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(0,0,175.3,44.2);


(lib.btn5050 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Layer_2
	this.instance = new lib.CachedBmp_427();
	this.instance.setTransform(-27.45,-15.05,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_428();
	this.instance_1.setTransform(-27.45,-15.05,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_1}]},1).wait(3));

	// Layer_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#830000").s().p("AsHDdQhkAAAAhkIAAjxQAAhkBkAAIYPAAQBkAAAABkIAADxQAABkhkAAg");
	this.shape.setTransform(0.025,0.025);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#FFFFFF").s().p("AsHDdQhkAAAAhkIAAjxQAAhkBkAAIYPAAQBkAAAABkIAADxQAABkhkAAg");
	this.shape_1.setTransform(0.025,0.025);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape}]}).to({state:[{t:this.shape_1}]},1).wait(3));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-87.6,-22,175.3,44.1);


(lib.btn_reintentar = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Capa_2
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#FFFFFF").s().p("AIrBpIgXhXIgRAAIAABXIggAAIAAjRIAyAAQAXAAANANQAOAOAAAXIAAAXQAAAPgGAKQgGALgKAGIAaBegAIDgKIARAAQAJAAAFgGQAFgFAAgJIAAgZQAAgJgFgFQgFgFgJAAIgRAAgAGqBpIgHguIgiAAIgHAuIggAAIAjjRIArAAIAjDRgAGfAcIgNhXIgNBXIAaAAgAEKBpIAAizIgjAAIAAgeIBlAAIAAAeIgiAAIAACzgACtBpIgqiFIAACFIgfAAIAAjRIAjAAIAoCMIAAiMIAfAAIAADRgAgQBpIAAjRIBZAAIAAAeIg6AAIAAA6IAuAAIAAAeIguAAIAAA9IA6AAIAAAegAhrBpIAAizIgjAAIAAgeIBmAAIAAAeIgjAAIAACzgAjIBpIgqiFIAACFIgfAAIAAjRIAjAAIApCMIAAiMIAfAAIAADRgAlTBpIAAjRIAfAAIAADRgAnIBpIAAjRIBaAAIAAAeIg6AAIAAA6IAuAAIAAAeIguAAIAAA9IA6AAIAAAegAoDBpIgXhXIgRAAIAABXIgfAAIAAjRIAxAAQAXAAAOANQANAOAAAXIAAAXQAAAPgFAKQgGALgLAGIAbBegAorgKIARAAQAJAAAFgGQAGgFAAgJIAAgZQAAgJgGgFQgFgFgJAAIgRAAg");
	this.shape.setTransform(3.025,-0.75);

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(1));

	// Capa_1
	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#CF0E25").s().p("AoTDvQhjAAhGhGQhGhGAAhjQAAhiBGhGQBGhGBjAAIQnAAQBjAABGBGQBGBGAABiQAABjhGBGQhGBGhjAAg");
	this.shape_1.setTransform(-0.025,0.025);

	this.timeline.addTween(cjs.Tween.get(this.shape_1).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-77.1,-23.8,154.2,47.7);


(lib.ayudaAmigoBtn = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Layer_2
	this.instance = new lib.CachedBmp_425();
	this.instance.setTransform(-55.4,-16.7,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_426();
	this.instance_1.setTransform(-55.4,-16.7,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_1}]},1).wait(3));

	// Layer_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#830000").s().p("AsHDdQhkAAAAhkIAAjxQAAhkBkAAIYPAAQBkAAAABkIAADxQAABkhkAAg");
	this.shape.setTransform(0.025,0.025);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#FFFFFF").s().p("AsHDdQhkAAAAhkIAAjxQAAhkBkAAIYPAAQBkAAAABkIAADxQAABkhkAAg");
	this.shape_1.setTransform(0.025,0.025);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape}]}).to({state:[{t:this.shape_1}]},1).wait(3));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-87.6,-22,175.3,44.1);


(lib.preguntaPublico = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {"ini":1,respuesta1:30,respuesta2:31,respuesta3:32,respuesta4:33,respuesta5:34,respuesta6:35,respuesta7:36,fin:37};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// timeline functions:
	this.frame_0 = function() {
		var escenaPreguntaPublicoZero = this;
		escenaPreguntaPublicoZero.stop();
	}
	this.frame_29 = function() {
		var escenaPreguntaPublicoValidacion = this;
		escenaPreguntaPublicoValidacion.stop;
		
		let pregunta = obtenerPreguntaActual();
		switch (pregunta) {
		  case 1:
			escenaPreguntaPublicoValidacion.gotoAndStop("respuesta1");
		    console.log('va al cuadro 1');
		    break;
		  case 2:
			escenaPreguntaPublicoValidacion.gotoAndStop("respuesta2");
			console.log('va al cuadro 2');
		    break;
		  case 3:
			escenaPreguntaPublicoValidacion.gotoAndStop("respuesta3");
		    console.log('va al cuadro 3');
		    break;
		  case 4:
			escenaPreguntaPublicoValidacion.gotoAndStop("respuesta4");
		    console.log('va al cuadro 4');
		    break
		  case 5:
			escenaPreguntaPublicoValidacion.gotoAndStop("respuesta5");
		    console.log('va al cuadro 5');
		    break
		  case 6:
			escenaPreguntaPublicoValidacion.gotoAndStop("respuesta6");
		    console.log('va al cuadro 6');
		    break
		  case 7:
			escenaPreguntaPublicoValidacion.gotoAndStop("respuesta7");
		    console.log('va al cuadro 7');
		    break
		  default:
		    console.log('No se obtuvo preguntas');
		}
		
		escenaPreguntaPublicoValidacion.btnSalir.on('click', function(){
			escenaPreguntaPublicoValidacion.gotoAndPlay("fin");
		});
	}

	// actions tween:
	this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(29).call(this.frame_29).wait(37));

	// texto
	this.instance = new lib.CachedBmp_442();
	this.instance.setTransform(58.6,62.7,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_443();
	this.instance_1.setTransform(58.6,36.25,0.5,0.5);

	this.instance_2 = new lib.CachedBmp_444();
	this.instance_2.setTransform(58.6,109.25,0.5,0.5);

	this.instance_3 = new lib.CachedBmp_445();
	this.instance_3.setTransform(58.6,109.25,0.5,0.5);

	this.instance_4 = new lib.CachedBmp_446();
	this.instance_4.setTransform(58.6,109.25,0.5,0.5);

	this.instance_5 = new lib.CachedBmp_447();
	this.instance_5.setTransform(58.6,109.25,0.5,0.5);

	this.instance_6 = new lib.CachedBmp_448();
	this.instance_6.setTransform(58.6,32.2,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance}]},30).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).to({state:[{t:this.instance_3}]},1).to({state:[{t:this.instance_4}]},1).to({state:[{t:this.instance_5}]},1).to({state:[{t:this.instance_6}]},1).to({state:[]},1).wait(29));

	// btnSalir
	this.btnSalir = new lib.btnSalirRespuesta();
	this.btnSalir.name = "btnSalir";
	this.btnSalir.setTransform(272.8,277.45,1,1,0,0,0,75.2,25.1);
	this.btnSalir._off = true;
	new cjs.ButtonHelper(this.btnSalir, 0, 1, 1);

	this.timeline.addTween(cjs.Tween.get(this.btnSalir).wait(30).to({_off:false},0).to({_off:true},7).wait(29));

	// fondo
	this.instance_7 = new lib.fondoPreguntaPublico();
	this.instance_7.setTransform(272.8,138.7,1,1,0,0,0,272.8,138.7);
	this.instance_7.alpha = 0;

	this.timeline.addTween(cjs.Tween.get(this.instance_7).to({y:-275.15,alpha:1},1).to({y:138.7},28).wait(8).to({y:-275.15},28).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-2,-415.8,549.6,720.3);


(lib.globoTexto = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	this.isSingleFrame = false;
	// timeline functions:
	this.frame_0 = function() {
		if(this.isSingleFrame) {
			return;
		}
		if(this.totalFrames == 1) {
			this.isSingleFrame = true;
		}
		this.stop();
		var _this = this;
		_this.btnFinalizar.on("click", function(){
			pasarEstado();
		});
	}

	// actions tween:
	this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1));

	// btn
	this.btnFinalizar = new lib.btnFinalizar();
	this.btnFinalizar.name = "btnFinalizar";
	this.btnFinalizar.setTransform(34.75,76.25);
	new cjs.ButtonHelper(this.btnFinalizar, 0, 1, 1);

	this.timeline.addTween(cjs.Tween.get(this.btnFinalizar).wait(1));

	// texto
	this.instance = new lib.CachedBmp_437();
	this.instance.setTransform(-147.75,-52.3,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_436();
	this.instance_1.setTransform(-61.45,-103.65,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_1},{t:this.instance}]}).wait(1));

	// Layer_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f().s("#990000").ss(4,1,1).p("A8XszIh5AKIAAmeMBHeAAAMAAAAmPMhHeAAAIAA6MIBrAtA+QspIq9A8IK9Ep");
	this.shape.setTransform(0,0.025);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#FFFFFF").s().p("A+QTIIAA6MIBrAtIhrgtIq9kpIK9g8IB5gKIh5AKIAAmeMBHeAAAMAAAAmPg");
	this.shape_1.setTransform(0,0.025);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).wait(1));

	this._renderFirstFrame();

}).prototype = getMCSymbolPrototype(lib.globoTexto, new cjs.Rectangle(-265.7,-124.3,531.5,248.7), null);


(lib.feedbackWrong = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	this.isSingleFrame = false;
	// timeline functions:
	this.frame_0 = function() {
		if(this.isSingleFrame) {
			return;
		}
		if(this.totalFrames == 1) {
			this.isSingleFrame = true;
		}
		var escenaError2 = this;
		escenaError2.stop();
		escenaError2.restartBtn.on("click", reiniciar);
		
		function reiniciar(){
			window.location.reload();
		}
	}

	// actions tween:
	this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1));

	// Layer_1
	this.instance = new lib.CachedBmp_435();
	this.instance.setTransform(-171.4,-55.7,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_434();
	this.instance_1.setTransform(-122.55,-105.75,0.5,0.5);

	this.restartBtn = new lib.btn_reintentar();
	this.restartBtn.name = "restartBtn";
	this.restartBtn.setTransform(7.45,93.55);
	new cjs.ButtonHelper(this.restartBtn, 0, 1, 1);

	this.instance_2 = new lib.CachedBmp_433();
	this.instance_2.setTransform(-291.75,-124.35,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_2},{t:this.restartBtn},{t:this.instance_1},{t:this.instance}]}).wait(1));

	this._renderFirstFrame();

}).prototype = getMCSymbolPrototype(lib.feedbackWrong, new cjs.Rectangle(-291.7,-124.3,531.5,249), null);


// stage content:
(lib.actividad1 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {intro:0,pregunta1:1,pregunta2:2,pregunta3:3,pregunta4:4,pregunta5:5,pregunta6:6,pregunta7:7,feedback:8};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	this.actionFrames = [0,1,2,3,4,5,6,7,8];
	// timeline functions:
	this.frame_0 = function() {
		escena_intro = this;
		escena_intro.stop();
		
		escena_intro.next.on('click', function(){
			escena_intro.gotoAndStop('pregunta1');
		});
		
		escena_intro.back.on('click', function(){
			pasarEstado();
		});
	}
	this.frame_1 = function() {
		escena_pregunta1 = this;
		escena_pregunta1.stop();
		escena_pregunta1.next.alpha = 0;
		
		escena_pregunta1.p1r1.cursor = "pointer";
		escena_pregunta1.p1r2.cursor = "pointer";
		escena_pregunta1.p1r3.cursor = "pointer";
		escena_pregunta1.p1r4.cursor = "pointer";
		
		pregunta=1;
		
		escena_pregunta1.next.on('click', function(){
			escena_pregunta1.gotoAndStop('pregunta2');
		});
		
		escena_pregunta1.p1r1.on('click', function(){
			escena_pregunta1.p1r2.gotoAndStop("wrong");
			addErrores();
			escena_pregunta1.next.alpha = 1;
			escena_pregunta1.p1r2.alpha = 0;
			escena_pregunta1.p1r3.alpha = 0;
			escena_pregunta1.p1r4.alpha = 0;
		});
		
		escena_pregunta1.p1r2.on('click', function(){
			addAciertos();
			escena_pregunta1.p1r2.gotoAndStop("ok");
			escena_pregunta1.next.alpha = 1;
			escena_pregunta1.p1r1.alpha = 0;
			escena_pregunta1.p1r3.alpha = 0;
			escena_pregunta1.p1r4.alpha = 0;
		});
		
		escena_pregunta1.p1r3.on('click', function(){
			escena_pregunta1.p1r3.gotoAndStop("wrong");
			addErrores();
			escena_pregunta1.next.alpha = 1;
			escena_pregunta1.p1r1.alpha = 0;
			escena_pregunta1.p1r2.alpha = 0;
			escena_pregunta1.p1r4.alpha = 0;
		});
		
		escena_pregunta1.p1r4.on('click', function(){
			escena_pregunta1.p1r4.gotoAndStop("wrong");
			addErrores();
			escena_pregunta1.next.alpha = 1;
			escena_pregunta1.p1r1.alpha = 0;
			escena_pregunta1.p1r2.alpha = 0;
			escena_pregunta1.p1r3.alpha = 0;
		});
		
		
		escena_pregunta1.btnAmigo1.on('click', function(){
			//alert("presenta la propuesta, celebra, ejecuta y liquida contratos");
			escena_pregunta1.preguntaPublicoMC.gotoAndPlay("ini");
			updateBtnAmigo();
			escena_pregunta1.btnAmigo1.alpha=0;
		});
		
		escena_pregunta1.btn5050.on('click', function(){
			escena_pregunta1.p1r1.alpha = 0;
			escena_pregunta1.p1r4.alpha = 0;
			updateBtn5050();
			escena_pregunta1.btn5050.alpha=0;
		});
		
		escena_pregunta1.btnAyudaPublico1.on('click', function(){
			window.endTime += 30 * 1000;
			updatebtnAyudaPublico();
			escena_pregunta1.btnAyudaPublico1.x=-5000;
			escena_pregunta1.btnAyudaPublico1.y=-5000;
			escena_pregunta1.btnAyudaPublico1.alpha=0;
		});
		
		
		if(btnAyudaPublico==false){
			escena_pregunta1.btnAyudaPublico1.alpha=0;
			escena_pregunta1.btnAyudaPublico1.x=-5000;
			escena_pregunta1.btnAyudaPublico1.y=-5000;
		}else{
			escena_pregunta1.btnAyudaPublico1.alpha=1;
		}
		
		if(btnAmigo==false){
			escena_pregunta1.btnAmigo1.alpha=0;
		}else{
			escena_pregunta1.btnAmigo1.alpha=1;
		}
		
		if(btn5050==false){
			escena_pregunta1.btn5050.alpha=0;
		}else{
			escena_pregunta1.btn5050.alpha=1;
		}
		var esceneTimer = this;
		main.bind(esceneTimer)();
	}
	this.frame_2 = function() {
		escena_pregunta2 = this;
		escena_pregunta2.stop();
		escena_pregunta2.next.alpha = 0;
		
		escena_pregunta2.p2r1.cursor = "pointer";
		escena_pregunta2.p2r2.cursor = "pointer";
		escena_pregunta2.p2r3.cursor = "pointer";
		escena_pregunta2.p2r4.cursor = "pointer";
		
		pregunta=2;
		
		escena_pregunta2.next.on('click', function(){
			escena_pregunta2.gotoAndStop('pregunta3');
		});
		
		escena_pregunta2.p2r1.on('click', function(){
			escena_pregunta2.p2r1.gotoAndStop("wrong");
			addErrores();
			escena_pregunta2.next.alpha = 1;
			escena_pregunta2.p2r2.alpha = 0;
			escena_pregunta2.p2r3.alpha = 0;
			escena_pregunta2.p2r4.alpha = 0;
		});
		
		escena_pregunta2.p2r2.on('click', function(){
			addErrores();
			escena_pregunta2.p2r2.gotoAndStop("wrong");
			escena_pregunta2.next.alpha = 1;
			escena_pregunta2.p2r1.alpha = 0;
			escena_pregunta2.p2r3.alpha = 0;
			escena_pregunta2.p2r4.alpha = 0;
		});
		
		escena_pregunta2.p2r3.on('click', function(){
			addErrores();
			escena_pregunta2.p2r3.gotoAndStop("wrong");
			escena_pregunta2.next.alpha = 1;
			escena_pregunta2.p2r1.alpha = 0;
			escena_pregunta2.p2r2.alpha = 0;
			escena_pregunta2.p2r4.alpha = 0;
		});
		
		escena_pregunta2.p2r4.on('click', function(){
			addAciertos();
			escena_pregunta2.p2r4.gotoAndStop("ok");
			escena_pregunta2.next.alpha = 1;
			escena_pregunta2.p2r1.alpha = 0;
			escena_pregunta2.p2r2.alpha = 0;
			escena_pregunta2.p2r3.alpha = 0;
		});
		
		if(btnAmigo==false){
			escena_pregunta2.btnAmigo2.alpha=0;
		}else{
			escena_pregunta2.btnAmigo2.alpha=1;
		}
		
		if(btn5050==false){
			escena_pregunta2.btn5050.alpha=0;
		}else{
			escena_pregunta2.btn5050.alpha=1;
		}
		
		escena_pregunta2.btnAyudaPublico2.on('click', function(){
			window.endTime += 30 * 1000;
			updatebtnAyudaPublico();
			escena_pregunta2.btnAyudaPublico2.x=-5000;
			escena_pregunta2.btnAyudaPublico2.y=-5000;
			escena_pregunta2.btnAyudaPublico2.alpha=0;
		});
		
		
		if(btnAyudaPublico==false){
			escena_pregunta2.btnAyudaPublico2.alpha=0;
			escena_pregunta2.btnAyudaPublico2.x=-5000;
			escena_pregunta2.btnAyudaPublico2.y=-5000;
		}else{
			escena_pregunta2.btnAyudaPublico2.alpha=1;
		}
		
		escena_pregunta2.btnAmigo2.on('click', function(){
			escena_pregunta1.preguntaPublicoMC.gotoAndPlay("ini");
			updateBtnAmigo();
		});
		
		escena_pregunta2.btn5050.on('click', function(){
			escena_pregunta2.p2r1.alpha = 0;
			escena_pregunta2.p2r3.alpha = 0;
			updateBtn5050();
		});
	}
	this.frame_3 = function() {
		escena_pregunta3 = this;
		escena_pregunta3.stop();
		escena_pregunta3.next.alpha = 0;
		
		escena_pregunta3.p3r1.cursor = "pointer";
		escena_pregunta3.p3r2.cursor = "pointer";
		escena_pregunta3.p3r3.cursor = "pointer";
		escena_pregunta3.p3r4.cursor = "pointer";
		
		pregunta=3;
		
		escena_pregunta3.next.on('click', function(){
			escena_pregunta3.gotoAndStop('pregunta4');
		});
		
		escena_pregunta3.p3r1.on('click', function(){
			escena_pregunta3.p3r1.gotoAndStop("ok");
			addAciertos();
			escena_pregunta3.next.alpha = 1;
			escena_pregunta3.p3r2.alpha = 0;
			escena_pregunta3.p3r3.alpha = 0;
			escena_pregunta3.p3r4.alpha = 0;
		});
		
		escena_pregunta3.p3r2.on('click', function(){
			addErrores();
			escena_pregunta3.p3r2.gotoAndStop("wrong");
			escena_pregunta3.next.alpha = 1;
			escena_pregunta3.p3r1.alpha = 0;
			escena_pregunta3.p3r3.alpha = 0;
			escena_pregunta3.p3r4.alpha = 0;
		});
		
		escena_pregunta3.p3r3.on('click', function(){
			addErrores();
			escena_pregunta3.p3r3.gotoAndStop("wrong");
			escena_pregunta3.next.alpha = 1;
			escena_pregunta3.p3r1.alpha = 0;
			escena_pregunta3.p3r2.alpha = 0;
			escena_pregunta3.p3r4.alpha = 0;
		});
		
		escena_pregunta3.p3r4.on('click', function(){
			addErrores();
			escena_pregunta3.p3r4.gotoAndStop("wrong");
			escena_pregunta3.next.alpha = 1;
			escena_pregunta3.p3r1.alpha = 0;
			escena_pregunta3.p3r2.alpha = 0;
			escena_pregunta3.p3r3.alpha = 0;
		});
		
		if(btnAmigo==false){
			escena_pregunta3.btnAmigo3.alpha=0;
		}else{
			escena_pregunta3.btnAmigo3.alpha=1;
		}
		
		if(btn5050==false){
			escena_pregunta3.btn5050.alpha=0;
		}else{
			escena_pregunta3.btn5050.alpha=1;
		}
		
		escena_pregunta3.btnAyudaPublico2.on('click', function(){
			window.endTime += 30 * 1000;
			updatebtnAyudaPublico();
			escena_pregunta3.btnAyudaPublico2.x=-5000;
			escena_pregunta3.btnAyudaPublico2.y=-5000;
			escena_pregunta3.btnAyudaPublico2.alpha=0;
		});
		
		
		if(btnAyudaPublico==false){
			escena_pregunta3.btnAyudaPublico2.alpha=0;
			escena_pregunta3.btnAyudaPublico2.x=-5000;
			escena_pregunta3.btnAyudaPublico2.y=-5000;
		}else{
			escena_pregunta3.btnAyudaPublico2.alpha=1;
		}
		
		escena_pregunta3.btnAmigo3.on('click', function(){
			//alert("Ley 1474 de 2011");
			escena_pregunta1.preguntaPublicoMC.gotoAndPlay("ini");
			updateBtnAmigo3();
		});
		
		escena_pregunta3.btn5050.on('click', function(){
			escena_pregunta3.p3r2.alpha = 0;
			escena_pregunta3.p3r3.alpha = 0;
			updateBtn5050();
		});
	}
	this.frame_4 = function() {
		escena_pregunta4 = this;
		escena_pregunta4.stop();
		escena_pregunta4.next.alpha = 0;
		
		escena_pregunta4.p4r1.cursor = "pointer";
		escena_pregunta4.p4r2.cursor = "pointer";
		escena_pregunta4.p4r3.cursor = "pointer";
		escena_pregunta4.p4r4.cursor = "pointer";
		
		pregunta=4;
		
		escena_pregunta4.next.on('click', function(){
			escena_pregunta4.gotoAndStop('pregunta5');
		});
		
		escena_pregunta4.p4r1.on('click', function(){
			addErrores();
			escena_pregunta4.p4r1.gotoAndStop("wrong");
			escena_pregunta4.next.alpha = 1;
			escena_pregunta4.p4r2.alpha = 0;
			escena_pregunta4.p4r3.alpha = 0;
			escena_pregunta4.p4r4.alpha = 0;
		});
		
		escena_pregunta4.p4r2.on('click', function(){
			addErrores();
			escena_pregunta4.p4r2.gotoAndStop("wrong");
			escena_pregunta4.next.alpha = 1;
			escena_pregunta4.p4r1.alpha = 0;
			escena_pregunta4.p4r3.alpha = 0;
			escena_pregunta4.p4r4.alpha = 0;
		});
		
		escena_pregunta4.p4r3.on('click', function(){
			addErrores();
			escena_pregunta4.p4r3.gotoAndStop("wrong");
			escena_pregunta4.next.alpha = 1;
			escena_pregunta4.p4r1.alpha = 0;
			escena_pregunta4.p4r2.alpha = 0;
			escena_pregunta4.p4r4.alpha = 0;
		});
		
		escena_pregunta4.p4r4.on('click', function(){
			addAciertos();
			escena_pregunta4.p4r4.gotoAndStop("ok");
			escena_pregunta4.next.alpha = 1;
			escena_pregunta4.p4r1.alpha = 0;
			escena_pregunta4.p4r2.alpha = 0;
			escena_pregunta4.p4r3.alpha = 0;
		});
		
		if(btnAmigo==false){
			escena_pregunta4.btnAmigo4.alpha=0;
		}else{
			escena_pregunta4.btnAmigo4.alpha=1;
		}
		
		if(btn5050==false){
			escena_pregunta4.btn5050.alpha=0;
		}else{
			escena_pregunta4.btn5050.alpha=1;
		}
		
		escena_pregunta4.btnAyudaPublico4.on('click', function(){
			window.endTime += 30 * 1000;
			updatebtnAyudaPublico();
			escena_pregunta4.btnAyudaPublico4.x=-5000;
			escena_pregunta4.btnAyudaPublico4.y=-5000;
			escena_pregunta4.btnAyudaPublico4.alpha=0;
		});
		
		
		if(btnAyudaPublico==false){
			escena_pregunta4.btnAyudaPublico4.alpha=0;
			escena_pregunta4.btnAyudaPublico4.x=-5000;
			escena_pregunta4.btnAyudaPublico4.y=-5000;
		}else{
			escena_pregunta4.btnAyudaPublico4.alpha=1;
		}
		
		escena_pregunta4.btnAmigo4.on('click', function(){
			//alert("Contrato global y a destajo");
			escena_pregunta1.preguntaPublicoMC.gotoAndPlay("ini");
			updateBtnAmigo();
		});
		
		escena_pregunta4.btn5050.on('click', function(){
			escena_pregunta4.p4r1.alpha = 0;
			escena_pregunta4.p4r3.alpha = 0;
			updateBtn5050();
		});
	}
	this.frame_5 = function() {
		escena_pregunta5 = this;
		escena_pregunta5.stop();
		escena_pregunta5.next.alpha = 0;
		
		escena_pregunta5.p5r1.cursor = "pointer";
		escena_pregunta5.p5r2.cursor = "pointer";
		escena_pregunta5.p5r3.cursor = "pointer";
		escena_pregunta5.p5r4.cursor = "pointer";
		
		pregunta=5;
		
		escena_pregunta5.next.on('click', function(){
			escena_pregunta5.gotoAndStop('pregunta6');
		});
		
		escena_pregunta5.p5r1.on('click', function(){
			escena_pregunta5.p5r1.gotoAndStop("wrong");
			addErrores();
			escena_pregunta5.next.alpha = 1;
			escena_pregunta5.p5r2.alpha = 0;
			escena_pregunta5.p5r3.alpha = 0;
			escena_pregunta5.p5r4.alpha = 0;
		});
		
		escena_pregunta5.p5r2.on('click', function(){
			addAciertos();
			escena_pregunta5.p5r2.gotoAndStop("ok");
			escena_pregunta5.next.alpha = 1;
			escena_pregunta5.p5r1.alpha = 0;
			escena_pregunta5.p5r3.alpha = 0;
			escena_pregunta5.p5r4.alpha = 0;
		});
		
		escena_pregunta5.p5r3.on('click', function(){
			addErrores();
			escena_pregunta5.p5r3.gotoAndStop("wrong");
			escena_pregunta5.next.alpha = 1;
			escena_pregunta5.p5r1.alpha = 0;
			escena_pregunta5.p5r2.alpha = 0;
			escena_pregunta5.p5r4.alpha = 0;
		});
		
		escena_pregunta5.p5r4.on('click', function(){
			addErrores();
			escena_pregunta5.p5r4.gotoAndStop("wrong");
			escena_pregunta5.next.alpha = 1;
			escena_pregunta5.p5r1.alpha = 0;
			escena_pregunta5.p5r2.alpha = 0;
			escena_pregunta5.p5r3.alpha = 0;
		});
		
		if(btnAmigo==false){
			escena_pregunta5.btnAmigo5.alpha=0;
		}else{
			escena_pregunta5.btnAmigo5.alpha=1;
		}
		
		if(btn5050==false){
			escena_pregunta5.btn5050.alpha=0;
		}else{
			escena_pregunta5.btn5050.alpha=1;
		}
		
		escena_pregunta5.btnAyudaPublico5.on('click', function(){
			window.endTime += 30 * 1000;
			updatebtnAyudaPublico();
			escena_pregunta5.btnAyudaPublico5.x=-5000;
			escena_pregunta5.btnAyudaPublico5.y=-5000;
			escena_pregunta5.btnAyudaPublico5.alpha=0;
		});
		
		
		if(btnAyudaPublico==false){
			escena_pregunta5.btnAyudaPublico5.alpha=0;
			escena_pregunta5.btnAyudaPublico5.x=-5000;
			escena_pregunta5.btnAyudaPublico5.y=-5000;
		}else{
			escena_pregunta5.btnAyudaPublico5.alpha=1;
		}
		
		escena_pregunta5.btnAmigo5.on('click', function(){
			//alert("Fase de Planeación");
			escena_pregunta1.preguntaPublicoMC.gotoAndPlay("ini");
			updateBtnAmigo();
		});
		
		escena_pregunta5.btn5050.on('click', function(){
			escena_pregunta5.p5r1.alpha = 0;
			escena_pregunta5.p5r4.alpha = 0;
			updateBtn5050();
		});
	}
	this.frame_6 = function() {
		escena_pregunta6 = this;
		escena_pregunta6.stop();
		escena_pregunta6.next.alpha = 0;
		
		escena_pregunta6.p6r1.cursor = "pointer";
		escena_pregunta6.p6r2.cursor = "pointer";
		escena_pregunta6.p6r3.cursor = "pointer";
		escena_pregunta6.p6r4.cursor = "pointer";
		
		pregunta=6;
		
		escena_pregunta6.next.on('click', function(){
			escena_pregunta6.gotoAndStop('pregunta7');
		});
		
		escena_pregunta6.p6r1.on('click', function(){
			addAciertos();
			escena_pregunta6.p6r1.gotoAndStop("ok");
			escena_pregunta6.next.alpha = 1;
			escena_pregunta6.p6r2.alpha = 0;
			escena_pregunta6.p6r3.alpha = 0;
			escena_pregunta6.p6r4.alpha = 0;
		});
		
		escena_pregunta6.p6r2.on('click', function(){
			addErrores();
			escena_pregunta6.p6r2.gotoAndStop("wrong");
			escena_pregunta6.next.alpha = 1;
			escena_pregunta6.p6r1.alpha = 0;
			escena_pregunta6.p6r3.alpha = 0;
			escena_pregunta6.p6r4.alpha = 0;
		});
		
		escena_pregunta6.p6r3.on('click', function(){
			addErrores();
			escena_pregunta6.p6r3.gotoAndStop("wrong");
			escena_pregunta6.next.alpha = 1;
			escena_pregunta6.p6r1.alpha = 0;
			escena_pregunta6.p6r2.alpha = 0;
			escena_pregunta6.p6r4.alpha = 0;
		});
		
		escena_pregunta6.p6r4.on('click', function(){
			addErrores();
			escena_pregunta6.p6r4.gotoAndStop("wrong");
			escena_pregunta6.next.alpha = 1;
			escena_pregunta6.p6r1.alpha = 0;
			escena_pregunta6.p6r2.alpha = 0;
			escena_pregunta6.p6r3.alpha = 0;
		});
		
		if(btnAmigo==false){
			escena_pregunta6.btnAmigo6.alpha=0;
		}else{
			escena_pregunta6.btnAmigo6.alpha=1;
		}
		
		if(btn5050==false){
			escena_pregunta6.btn5050.alpha=0;
		}else{
			escena_pregunta6.btn5050.alpha=1;
		}
		
		escena_pregunta6.btnAyudaPublico6.on('click', function(){
			window.endTime += 30 * 1000;
			updatebtnAyudaPublico();
			escena_pregunta6.btnAyudaPublico6.x=-5000;
			escena_pregunta6.btnAyudaPublico6.y=-5000;
			escena_pregunta6.btnAyudaPublico6.alpha=0;
		});
		
		
		if(btnAyudaPublico==false){
			escena_pregunta6.btnAyudaPublico6.alpha=0;
			escena_pregunta6.btnAyudaPublico6.x=-5000;
			escena_pregunta6.btnAyudaPublico6.y=-5000;
		}else{
			escena_pregunta6.btnAyudaPublico6.alpha=1;
		}
		
		escena_pregunta6.btnAmigo6.on('click', function(){
			//alert("Fase de ejecucion.");
			escena_pregunta1.preguntaPublicoMC.gotoAndPlay("ini");
			updateBtnAmigo();
		});
		
		escena_pregunta6.btn5050.on('click', function(){
			escena_pregunta5.p6r2.alpha = 0;
			escena_pregunta5.p6r4.alpha = 0;
			updateBtn5050();
		});
	}
	this.frame_7 = function() {
		escena_pregunta7 = this;
		escena_pregunta7.stop();
		escena_pregunta7.next.alpha = 0;
		
		escena_pregunta7.p7r1.cursor = "pointer";
		escena_pregunta7.p7r2.cursor = "pointer";
		escena_pregunta7.p7r3.cursor = "pointer";
		escena_pregunta7.p7r4.cursor = "pointer";
		
		pregunta=7;
		
		escena_pregunta7.next.on('click', function(){
			escena_pregunta7.gotoAndStop('feedback');
		});
		
		escena_pregunta7.p7r1.on('click', function(){
			addErrores();
			escena_pregunta7.p7r3.gotoAndStop("wrong");
			escena_pregunta7.next.alpha = 1;
			escena_pregunta7.p7r2.alpha = 0;
			escena_pregunta7.p7r3.alpha = 0;
			escena_pregunta7.p7r4.alpha = 0;
		});
		
		escena_pregunta7.p7r2.on('click', function(){
			addErrores();
			escena_pregunta7.p7r4.gotoAndStop("wrong");
			escena_pregunta7.next.alpha = 1;
			escena_pregunta7.p7r1.alpha = 0;
			escena_pregunta7.p7r3.alpha = 0;
			escena_pregunta7.p7r4.alpha = 0;
		});
		
		escena_pregunta7.p7r3.on('click', function(){
			addAciertos();
			escena_pregunta7.p7r3.gotoAndStop("ok");
			escena_pregunta7.next.alpha = 1;
			escena_pregunta7.p7r1.alpha = 0;
			escena_pregunta7.p7r2.alpha = 0;
			escena_pregunta7.p7r4.alpha = 0;
		});
		
		escena_pregunta7.p7r4.on('click', function(){
			addErrores();
			escena_pregunta7.p7r4.gotoAndStop("wrong");
			escena_pregunta7.next.alpha = 1;
			escena_pregunta7.p7r1.alpha = 0;
			escena_pregunta7.p7r2.alpha = 0;
			escena_pregunta7.p7r3.alpha = 0;
		});
		
		if(btnAmigo==false){
			escena_pregunta7.btnAmigo7.alpha=0;
		}else{
			escena_pregunta7.btnAmigo7.alpha=1;
		}
		
		if(btn5050==false){
			escena_pregunta7.btn5050.alpha=0;
		}else{
			escena_pregunta7.btn5050.alpha=1;
		}
		
		escena_pregunta7.btnAyudaPublico7.on('click', function(){
			window.endTime += 30 * 1000;
			updatebtnAyudaPublico();
			escena_pregunta7.btnAyudaPublico7.x=-5000;
			escena_pregunta7.btnAyudaPublico7.y=-5000;
			escena_pregunta7.btnAyudaPublico7.alpha=0;
		});
		
		
		if(btnAyudaPublico==false){
			escena_pregunta7.btnAyudaPublico7.alpha=0;
			escena_pregunta7.btnAyudaPublico7.x=-5000;
			escena_pregunta7.btnAyudaPublico7.y=-5000;
		}else{
			escena_pregunta7.btnAyudaPublico7.alpha=1;
		}
		
		escena_pregunta7.btnAmigo7.on('click', function(){
			//alert("Los consorcios, uniones temporales y personas consideradas legalmente con capacidad.");
			escena_pregunta1.preguntaPublicoMC.gotoAndPlay("ini");
			updateBtnAmigo();
		});
		
		escena_pregunta7.btn5050.on('click', function(){
			escena_pregunta7.p7r1.alpha = 0;
			escena_pregunta7.p7r4.alpha = 0;
			updateBtn5050();
		});
	}
	this.frame_8 = function() {
		escenaFeedback = this;
		escenaFeedback.stop();
		
		if(aciertos>=7){
			console.log("Entro al feedback ok");
			escenaFeedback.feedbackOk.x=534,75;
			escenaFeedback.feedbackOk.y=272,15;
		}else{
			console.log("Entro al feedback wrong");
			escenaFeedback.feedbackWrong.x=534,75;
			escenaFeedback.feedbackWrong.y=272,15;
		}
	}

	// actions tween:
	this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1).call(this.frame_2).wait(1).call(this.frame_3).wait(1).call(this.frame_4).wait(1).call(this.frame_5).wait(1).call(this.frame_6).wait(1).call(this.frame_7).wait(1).call(this.frame_8).wait(1));

	// titulo
	this.instance = new lib.CachedBmp_379();
	this.instance.setTransform(361.3,576.85,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_378();
	this.instance_1.setTransform(331.7,570.5,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_1},{t:this.instance}]}).wait(9));

	// marco
	this.instance_2 = new lib.MARCO();
	this.instance_2.setTransform(0,0,0.1618,0.1859);

	this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(9));

	// mascara (mask)
	var mask = new cjs.Shape();
	mask._off = true;
	mask.graphics.p("EhG4AuFMAAAhcJMCNxAAAMAAABcJg");
	mask.setTransform(479.2,318.5);

	// timer
	this.instance_3 = new lib.CachedBmp_380();
	this.instance_3.setTransform(684,39.7,0.5,0.5);

	this.countdownTimer = new cjs.Text("", "25px 'Bebas Neue'", "#830000");
	this.countdownTimer.name = "countdownTimer";
	this.countdownTimer.lineHeight = 32;
	this.countdownTimer.lineWidth = 90;
	this.countdownTimer.parent = this;
	this.countdownTimer.setTransform(831,44.7);

	var maskedShapeInstanceList = [this.instance_3,this.countdownTimer];

	for(var shapedInstanceItr = 0; shapedInstanceItr < maskedShapeInstanceList.length; shapedInstanceItr++) {
		maskedShapeInstanceList[shapedInstanceItr].mask = mask;
	}

	this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.countdownTimer},{t:this.instance_3}]},1).wait(8));

	// preguntaPublico
	this.preguntaPublicoMC = new lib.preguntaPublico();
	this.preguntaPublicoMC.name = "preguntaPublicoMC";
	this.preguntaPublicoMC.setTransform(468.6,239,1,1,0,0,0,272.8,138.7);
	this.preguntaPublicoMC._off = true;

	var maskedShapeInstanceList = [this.preguntaPublicoMC];

	for(var shapedInstanceItr = 0; shapedInstanceItr < maskedShapeInstanceList.length; shapedInstanceItr++) {
		maskedShapeInstanceList[shapedInstanceItr].mask = mask;
	}

	this.timeline.addTween(cjs.Tween.get(this.preguntaPublicoMC).wait(1).to({_off:false},0).wait(8));

	// texto
	this.instance_4 = new lib.CachedBmp_382();
	this.instance_4.setTransform(341.3,94.5,0.5,0.5);

	this.instance_5 = new lib.CachedBmp_381();
	this.instance_5.setTransform(236.1,58.3,0.5,0.5);

	this.instance_6 = new lib.CachedBmp_388();
	this.instance_6.setTransform(707.45,437.4,0.5,0.5);

	this.instance_7 = new lib.CachedBmp_387();
	this.instance_7.setTransform(504.6,437.4,0.5,0.5);

	this.instance_8 = new lib.CachedBmp_386();
	this.instance_8.setTransform(288.95,437.4,0.5,0.5);

	this.instance_9 = new lib.CachedBmp_385();
	this.instance_9.setTransform(82.65,432.8,0.5,0.5);

	this.instance_10 = new lib.CachedBmp_384();
	this.instance_10.setTransform(354.4,205,0.5,0.5);

	this.instance_11 = new lib.CachedBmp_383();
	this.instance_11.setTransform(280.85,160.05,0.5,0.5);

	this.instance_12 = new lib.CachedBmp_394();
	this.instance_12.setTransform(270,207.05,0.5,0.5);

	this.instance_13 = new lib.CachedBmp_393();
	this.instance_13.setTransform(258.4,172.2,0.5,0.5);

	this.instance_14 = new lib.CachedBmp_392();
	this.instance_14.setTransform(707.45,437.4,0.5,0.5);

	this.instance_15 = new lib.CachedBmp_391();
	this.instance_15.setTransform(504.6,437.4,0.5,0.5);

	this.instance_16 = new lib.CachedBmp_390();
	this.instance_16.setTransform(288.95,430.5,0.5,0.5);

	this.instance_17 = new lib.CachedBmp_389();
	this.instance_17.setTransform(82.65,433.95,0.5,0.5);

	this.instance_18 = new lib.CachedBmp_400();
	this.instance_18.setTransform(355.1,149.3,0.5,0.5);

	this.instance_19 = new lib.CachedBmp_399();
	this.instance_19.setTransform(250.4,111.8,0.5,0.5);

	this.instance_20 = new lib.CachedBmp_398();
	this.instance_20.setTransform(707.45,437.4,0.5,0.5);

	this.instance_21 = new lib.CachedBmp_397();
	this.instance_21.setTransform(504.6,437.4,0.5,0.5);

	this.instance_22 = new lib.CachedBmp_396();
	this.instance_22.setTransform(288.95,437.4,0.5,0.5);

	this.instance_23 = new lib.CachedBmp_395();
	this.instance_23.setTransform(82.65,437.4,0.5,0.5);

	this.instance_24 = new lib.CachedBmp_406();
	this.instance_24.setTransform(334.1,158.15,0.5,0.5);

	this.instance_25 = new lib.CachedBmp_405();
	this.instance_25.setTransform(245.1,141.1,0.5,0.5);

	this.instance_26 = new lib.CachedBmp_404();
	this.instance_26.setTransform(707.45,437.4,0.5,0.5);

	this.instance_27 = new lib.CachedBmp_403();
	this.instance_27.setTransform(504.6,437.4,0.5,0.5);

	this.instance_28 = new lib.CachedBmp_402();
	this.instance_28.setTransform(288.95,437.4,0.5,0.5);

	this.instance_29 = new lib.CachedBmp_401();
	this.instance_29.setTransform(82.65,437.4,0.5,0.5);

	this.instance_30 = new lib.CachedBmp_412();
	this.instance_30.setTransform(335.7,143.3,0.5,0.5);

	this.instance_31 = new lib.CachedBmp_411();
	this.instance_31.setTransform(248.1,114.8,0.5,0.5);

	this.instance_32 = new lib.CachedBmp_410();
	this.instance_32.setTransform(707.45,437.4,0.5,0.5);

	this.instance_33 = new lib.CachedBmp_409();
	this.instance_33.setTransform(504.6,437.4,0.5,0.5);

	this.instance_34 = new lib.CachedBmp_408();
	this.instance_34.setTransform(288.95,437.4,0.5,0.5);

	this.instance_35 = new lib.CachedBmp_407();
	this.instance_35.setTransform(82.65,437.4,0.5,0.5);

	this.instance_36 = new lib.CachedBmp_418();
	this.instance_36.setTransform(331.7,140,0.5,0.5);

	this.instance_37 = new lib.CachedBmp_417();
	this.instance_37.setTransform(245.15,111.7,0.5,0.5);

	this.instance_38 = new lib.CachedBmp_416();
	this.instance_38.setTransform(707.45,437.4,0.5,0.5);

	this.instance_39 = new lib.CachedBmp_415();
	this.instance_39.setTransform(504.6,437.4,0.5,0.5);

	this.instance_40 = new lib.CachedBmp_414();
	this.instance_40.setTransform(288.95,437.4,0.5,0.5);

	this.instance_41 = new lib.CachedBmp_413();
	this.instance_41.setTransform(82.65,437.4,0.5,0.5);

	this.instance_42 = new lib.CachedBmp_424();
	this.instance_42.setTransform(343.1,142.85,0.5,0.5);

	this.instance_43 = new lib.CachedBmp_423();
	this.instance_43.setTransform(244.15,111.8,0.5,0.5);

	this.instance_44 = new lib.CachedBmp_422();
	this.instance_44.setTransform(707.45,437.4,0.5,0.5);

	this.instance_45 = new lib.CachedBmp_421();
	this.instance_45.setTransform(504.6,437.4,0.5,0.5);

	this.instance_46 = new lib.CachedBmp_420();
	this.instance_46.setTransform(288.95,437.4,0.5,0.5);

	this.instance_47 = new lib.CachedBmp_419();
	this.instance_47.setTransform(82.65,432.8,0.5,0.5);

	this.feedbackWrong = new lib.feedbackWrong();
	this.feedbackWrong.name = "feedbackWrong";
	this.feedbackWrong.setTransform(1403.55,432);

	this.feedbackOk = new lib.globoTexto();
	this.feedbackOk.name = "feedbackOk";
	this.feedbackOk.setTransform(1369.35,91.6);

	var maskedShapeInstanceList = [this.instance_4,this.instance_5,this.instance_6,this.instance_7,this.instance_8,this.instance_9,this.instance_10,this.instance_11,this.instance_12,this.instance_13,this.instance_14,this.instance_15,this.instance_16,this.instance_17,this.instance_18,this.instance_19,this.instance_20,this.instance_21,this.instance_22,this.instance_23,this.instance_24,this.instance_25,this.instance_26,this.instance_27,this.instance_28,this.instance_29,this.instance_30,this.instance_31,this.instance_32,this.instance_33,this.instance_34,this.instance_35,this.instance_36,this.instance_37,this.instance_38,this.instance_39,this.instance_40,this.instance_41,this.instance_42,this.instance_43,this.instance_44,this.instance_45,this.instance_46,this.instance_47,this.feedbackWrong,this.feedbackOk];

	for(var shapedInstanceItr = 0; shapedInstanceItr < maskedShapeInstanceList.length; shapedInstanceItr++) {
		maskedShapeInstanceList[shapedInstanceItr].mask = mask;
	}

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_5},{t:this.instance_4}]}).to({state:[{t:this.instance_11},{t:this.instance_10},{t:this.instance_9},{t:this.instance_8},{t:this.instance_7},{t:this.instance_6}]},1).to({state:[{t:this.instance_17},{t:this.instance_16},{t:this.instance_15},{t:this.instance_14},{t:this.instance_13},{t:this.instance_12}]},1).to({state:[{t:this.instance_23},{t:this.instance_22},{t:this.instance_21},{t:this.instance_20},{t:this.instance_19},{t:this.instance_18}]},1).to({state:[{t:this.instance_29},{t:this.instance_28},{t:this.instance_27},{t:this.instance_26},{t:this.instance_25},{t:this.instance_24}]},1).to({state:[{t:this.instance_35},{t:this.instance_34},{t:this.instance_33},{t:this.instance_32},{t:this.instance_31},{t:this.instance_30}]},1).to({state:[{t:this.instance_41},{t:this.instance_40},{t:this.instance_39},{t:this.instance_38},{t:this.instance_37},{t:this.instance_36}]},1).to({state:[{t:this.instance_47},{t:this.instance_46},{t:this.instance_45},{t:this.instance_44},{t:this.instance_43},{t:this.instance_42}]},1).to({state:[{t:this.feedbackOk},{t:this.feedbackWrong}]},1).wait(1));

	// btn_ayudas
	this.btnAyudaPublico1 = new lib.btnAyudaPublico();
	this.btnAyudaPublico1.name = "btnAyudaPublico1";
	this.btnAyudaPublico1.setTransform(509.45,62.95,1,1,0,0,0,87.6,22.1);
	new cjs.ButtonHelper(this.btnAyudaPublico1, 0, 1, 2, false, new lib.btnAyudaPublico(), 3);

	this.btn5050 = new lib.btn5050();
	this.btn5050.name = "btn5050";
	this.btn5050.setTransform(323.45,62.9);
	new cjs.ButtonHelper(this.btn5050, 0, 1, 2, false, new lib.btn5050(), 3);

	this.btnAmigo1 = new lib.ayudaAmigoBtn();
	this.btnAmigo1.name = "btnAmigo1";
	this.btnAmigo1.setTransform(134.55,62.9);
	new cjs.ButtonHelper(this.btnAmigo1, 0, 1, 2, false, new lib.ayudaAmigoBtn(), 3);

	this.btnAyudaPublico2 = new lib.btnAyudaPublico();
	this.btnAyudaPublico2.name = "btnAyudaPublico2";
	this.btnAyudaPublico2.setTransform(509.45,62.95,1,1,0,0,0,87.6,22.1);
	new cjs.ButtonHelper(this.btnAyudaPublico2, 0, 1, 2, false, new lib.btnAyudaPublico(), 3);

	this.btnAmigo2 = new lib.ayudaAmigoBtn();
	this.btnAmigo2.name = "btnAmigo2";
	this.btnAmigo2.setTransform(134.55,62.9);
	new cjs.ButtonHelper(this.btnAmigo2, 0, 1, 2, false, new lib.ayudaAmigoBtn(), 3);

	this.btnAyudaPublico3 = new lib.btnAyudaPublico();
	this.btnAyudaPublico3.name = "btnAyudaPublico3";
	this.btnAyudaPublico3.setTransform(509.45,62.95,1,1,0,0,0,87.6,22.1);
	new cjs.ButtonHelper(this.btnAyudaPublico3, 0, 1, 2, false, new lib.btnAyudaPublico(), 3);

	this.btnAmigo3 = new lib.ayudaAmigoBtn();
	this.btnAmigo3.name = "btnAmigo3";
	this.btnAmigo3.setTransform(134.55,62.9);
	new cjs.ButtonHelper(this.btnAmigo3, 0, 1, 2, false, new lib.ayudaAmigoBtn(), 3);

	this.btnAyudaPublico4 = new lib.btnAyudaPublico();
	this.btnAyudaPublico4.name = "btnAyudaPublico4";
	this.btnAyudaPublico4.setTransform(509.45,62.95,1,1,0,0,0,87.6,22.1);
	new cjs.ButtonHelper(this.btnAyudaPublico4, 0, 1, 2, false, new lib.btnAyudaPublico(), 3);

	this.btnAmigo4 = new lib.ayudaAmigoBtn();
	this.btnAmigo4.name = "btnAmigo4";
	this.btnAmigo4.setTransform(134.55,62.9);
	new cjs.ButtonHelper(this.btnAmigo4, 0, 1, 2, false, new lib.ayudaAmigoBtn(), 3);

	this.btnAyudaPublico5 = new lib.btnAyudaPublico();
	this.btnAyudaPublico5.name = "btnAyudaPublico5";
	this.btnAyudaPublico5.setTransform(509.45,62.95,1,1,0,0,0,87.6,22.1);
	new cjs.ButtonHelper(this.btnAyudaPublico5, 0, 1, 2, false, new lib.btnAyudaPublico(), 3);

	this.btnAmigo5 = new lib.ayudaAmigoBtn();
	this.btnAmigo5.name = "btnAmigo5";
	this.btnAmigo5.setTransform(134.55,62.9);
	new cjs.ButtonHelper(this.btnAmigo5, 0, 1, 2, false, new lib.ayudaAmigoBtn(), 3);

	this.btnAyudaPublico6 = new lib.btnAyudaPublico();
	this.btnAyudaPublico6.name = "btnAyudaPublico6";
	this.btnAyudaPublico6.setTransform(509.45,62.95,1,1,0,0,0,87.6,22.1);
	new cjs.ButtonHelper(this.btnAyudaPublico6, 0, 1, 2, false, new lib.btnAyudaPublico(), 3);

	this.btnAmigo6 = new lib.ayudaAmigoBtn();
	this.btnAmigo6.name = "btnAmigo6";
	this.btnAmigo6.setTransform(134.55,62.9);
	new cjs.ButtonHelper(this.btnAmigo6, 0, 1, 2, false, new lib.ayudaAmigoBtn(), 3);

	this.btnAyudaPublico7 = new lib.btnAyudaPublico();
	this.btnAyudaPublico7.name = "btnAyudaPublico7";
	this.btnAyudaPublico7.setTransform(509.45,62.95,1,1,0,0,0,87.6,22.1);
	new cjs.ButtonHelper(this.btnAyudaPublico7, 0, 1, 2, false, new lib.btnAyudaPublico(), 3);

	this.btnAmigo7 = new lib.ayudaAmigoBtn();
	this.btnAmigo7.name = "btnAmigo7";
	this.btnAmigo7.setTransform(134.55,62.9);
	new cjs.ButtonHelper(this.btnAmigo7, 0, 1, 2, false, new lib.ayudaAmigoBtn(), 3);

	var maskedShapeInstanceList = [this.btnAyudaPublico1,this.btn5050,this.btnAmigo1,this.btnAyudaPublico2,this.btnAmigo2,this.btnAyudaPublico3,this.btnAmigo3,this.btnAyudaPublico4,this.btnAmigo4,this.btnAyudaPublico5,this.btnAmigo5,this.btnAyudaPublico6,this.btnAmigo6,this.btnAyudaPublico7,this.btnAmigo7];

	for(var shapedInstanceItr = 0; shapedInstanceItr < maskedShapeInstanceList.length; shapedInstanceItr++) {
		maskedShapeInstanceList[shapedInstanceItr].mask = mask;
	}

	this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.btnAmigo1},{t:this.btn5050},{t:this.btnAyudaPublico1}]},1).to({state:[{t:this.btnAmigo2},{t:this.btn5050},{t:this.btnAyudaPublico2}]},1).to({state:[{t:this.btnAmigo3},{t:this.btn5050},{t:this.btnAyudaPublico3}]},1).to({state:[{t:this.btnAmigo4},{t:this.btn5050},{t:this.btnAyudaPublico4}]},1).to({state:[{t:this.btnAmigo5},{t:this.btn5050},{t:this.btnAyudaPublico5}]},1).to({state:[{t:this.btnAmigo6},{t:this.btn5050},{t:this.btnAyudaPublico6}]},1).to({state:[{t:this.btnAmigo7},{t:this.btn5050},{t:this.btnAyudaPublico7}]},1).to({state:[]},1).wait(1));

	// btns
	this.next = new lib.sig();
	this.next.name = "next";
	this.next.setTransform(874.45,566.05,0.413,0.4126,0,0,0,20.8,40.5);
	new cjs.ButtonHelper(this.next, 0, 1, 2, false, new lib.sig(), 3);

	this.back = new lib.Play();
	this.back.name = "back";
	this.back.setTransform(72.9,574.1,0.4133,0.4133,0,0,180,56.8,56.8);
	new cjs.ButtonHelper(this.back, 0, 1, 2, false, new lib.Play(), 3);

	this.p1r4 = new lib.btnRespuesta();
	this.p1r4.name = "p1r4";
	this.p1r4.setTransform(794.5,485.45,0.3858,1.7043,0,0,0,0,0.1);

	this.p1r3 = new lib.btnRespuesta();
	this.p1r3.name = "p1r3";
	this.p1r3.setTransform(589.65,485.3,0.3835,1.7032);

	this.p1r2 = new lib.btnRespuesta();
	this.p1r2.name = "p1r2";
	this.p1r2.setTransform(376.6,485.3,0.3858,1.7032);

	this.p1r1 = new lib.btnRespuesta();
	this.p1r1.name = "p1r1";
	this.p1r1.setTransform(164.25,484.95,0.3858,1.7139);

	this.p2r4 = new lib.btnRespuesta();
	this.p2r4.name = "p2r4";
	this.p2r4.setTransform(794.5,485.45,0.3858,1.7043,0,0,0,0,0.1);

	this.p2r3 = new lib.btnRespuesta();
	this.p2r3.name = "p2r3";
	this.p2r3.setTransform(589.65,485.3,0.3835,1.7032);

	this.p2r2 = new lib.btnRespuesta();
	this.p2r2.name = "p2r2";
	this.p2r2.setTransform(376.6,485.3,0.3858,1.7032);

	this.p2r1 = new lib.btnRespuesta();
	this.p2r1.name = "p2r1";
	this.p2r1.setTransform(164.25,484.95,0.3858,1.7139);

	this.p3r4 = new lib.btnRespuesta();
	this.p3r4.name = "p3r4";
	this.p3r4.setTransform(794.5,485.45,0.3858,1.7043,0,0,0,0,0.1);

	this.p3r3 = new lib.btnRespuesta();
	this.p3r3.name = "p3r3";
	this.p3r3.setTransform(589.65,485.3,0.3835,1.7032);

	this.p3r2 = new lib.btnRespuesta();
	this.p3r2.name = "p3r2";
	this.p3r2.setTransform(376.6,485.3,0.3858,1.7032);

	this.p3r1 = new lib.btnRespuesta();
	this.p3r1.name = "p3r1";
	this.p3r1.setTransform(164.25,484.95,0.3858,1.7139);

	this.p4r4 = new lib.btnRespuesta();
	this.p4r4.name = "p4r4";
	this.p4r4.setTransform(794.5,485.45,0.3858,1.7043,0,0,0,0,0.1);

	this.p4r3 = new lib.btnRespuesta();
	this.p4r3.name = "p4r3";
	this.p4r3.setTransform(589.65,485.3,0.3835,1.7032);

	this.p4r2 = new lib.btnRespuesta();
	this.p4r2.name = "p4r2";
	this.p4r2.setTransform(376.6,485.3,0.3858,1.7032);

	this.p4r1 = new lib.btnRespuesta();
	this.p4r1.name = "p4r1";
	this.p4r1.setTransform(164.25,484.95,0.3858,1.7139);

	this.p5r4 = new lib.btnRespuesta();
	this.p5r4.name = "p5r4";
	this.p5r4.setTransform(794.5,485.45,0.3858,1.7043,0,0,0,0,0.1);

	this.p5r3 = new lib.btnRespuesta();
	this.p5r3.name = "p5r3";
	this.p5r3.setTransform(589.65,485.3,0.3835,1.7032);

	this.p5r2 = new lib.btnRespuesta();
	this.p5r2.name = "p5r2";
	this.p5r2.setTransform(376.6,485.3,0.3858,1.7032);

	this.p5r1 = new lib.btnRespuesta();
	this.p5r1.name = "p5r1";
	this.p5r1.setTransform(164.25,484.95,0.3858,1.7139);

	this.p6r4 = new lib.btnRespuesta();
	this.p6r4.name = "p6r4";
	this.p6r4.setTransform(794.5,485.45,0.3858,1.7043,0,0,0,0,0.1);

	this.p6r3 = new lib.btnRespuesta();
	this.p6r3.name = "p6r3";
	this.p6r3.setTransform(589.65,485.3,0.3835,1.7032);

	this.p6r2 = new lib.btnRespuesta();
	this.p6r2.name = "p6r2";
	this.p6r2.setTransform(376.6,485.3,0.3858,1.7032);

	this.p6r1 = new lib.btnRespuesta();
	this.p6r1.name = "p6r1";
	this.p6r1.setTransform(164.25,484.95,0.3858,1.7139);

	this.p7r4 = new lib.btnRespuesta();
	this.p7r4.name = "p7r4";
	this.p7r4.setTransform(794.5,485.45,0.3858,1.7043,0,0,0,0,0.1);

	this.p7r3 = new lib.btnRespuesta();
	this.p7r3.name = "p7r3";
	this.p7r3.setTransform(589.65,485.3,0.3835,1.7032);

	this.p7r2 = new lib.btnRespuesta();
	this.p7r2.name = "p7r2";
	this.p7r2.setTransform(376.6,485.3,0.3858,1.7032);

	this.p7r1 = new lib.btnRespuesta();
	this.p7r1.name = "p7r1";
	this.p7r1.setTransform(164.25,484.95,0.3858,1.7139);

	var maskedShapeInstanceList = [this.next,this.back,this.p1r4,this.p1r3,this.p1r2,this.p1r1,this.p2r4,this.p2r3,this.p2r2,this.p2r1,this.p3r4,this.p3r3,this.p3r2,this.p3r1,this.p4r4,this.p4r3,this.p4r2,this.p4r1,this.p5r4,this.p5r3,this.p5r2,this.p5r1,this.p6r4,this.p6r3,this.p6r2,this.p6r1,this.p7r4,this.p7r3,this.p7r2,this.p7r1];

	for(var shapedInstanceItr = 0; shapedInstanceItr < maskedShapeInstanceList.length; shapedInstanceItr++) {
		maskedShapeInstanceList[shapedInstanceItr].mask = mask;
	}

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.back},{t:this.next}]}).to({state:[{t:this.next},{t:this.p1r1},{t:this.p1r2},{t:this.p1r3},{t:this.p1r4}]},1).to({state:[{t:this.next},{t:this.p2r1},{t:this.p2r2},{t:this.p2r3},{t:this.p2r4}]},1).to({state:[{t:this.next},{t:this.p3r1},{t:this.p3r2},{t:this.p3r3},{t:this.p3r4}]},1).to({state:[{t:this.next},{t:this.p4r1},{t:this.p4r2},{t:this.p4r3},{t:this.p4r4}]},1).to({state:[{t:this.next},{t:this.p5r1},{t:this.p5r2},{t:this.p5r3},{t:this.p5r4}]},1).to({state:[{t:this.next},{t:this.p6r1},{t:this.p6r2},{t:this.p6r3},{t:this.p6r4}]},1).to({state:[{t:this.next},{t:this.p7r1},{t:this.p7r2},{t:this.p7r3},{t:this.p7r4}]},1).to({state:[]},1).wait(1));

	// pj
	this.instance_48 = new lib.pj4();
	this.instance_48.setTransform(93,140);

	this.instance_49 = new lib.pj3();
	this.instance_49.setTransform(686,152);

	var maskedShapeInstanceList = [this.instance_48,this.instance_49];

	for(var shapedInstanceItr = 0; shapedInstanceItr < maskedShapeInstanceList.length; shapedInstanceItr++) {
		maskedShapeInstanceList[shapedInstanceItr].mask = mask;
	}

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_49},{t:this.instance_48}]}).wait(9));

	// mesa
	this.instance_50 = new lib.mesaactividad1();
	this.instance_50.setTransform(6,-202,0.6984,1.0829);

	var maskedShapeInstanceList = [this.instance_50];

	for(var shapedInstanceItr = 0; shapedInstanceItr < maskedShapeInstanceList.length; shapedInstanceItr++) {
		maskedShapeInstanceList[shapedInstanceItr].mask = mask;
	}

	this.timeline.addTween(cjs.Tween.get(this.instance_50).wait(9));

	// fondo
	this.instance_51 = new lib.fondoactividad1();
	this.instance_51.setTransform(6,-29,0.6984,0.7657);

	var maskedShapeInstanceList = [this.instance_51];

	for(var shapedInstanceItr = 0; shapedInstanceItr < maskedShapeInstanceList.length; shapedInstanceItr++) {
		maskedShapeInstanceList[shapedInstanceItr].mask = mask;
	}

	this.timeline.addTween(cjs.Tween.get(this.instance_51).wait(9));

	this._renderFirstFrame();

}).prototype = p = new lib.AnMovieClip();
p.nominalBounds = new cjs.Rectangle(480,320,480,319.9);
// library properties:
lib.properties = {
	id: '030D34BEEB7B4E558350F13094E2DD03',
	width: 960,
	height: 640,
	fps: 30,
	color: "#FFFFFF",
	opacity: 0.00,
	manifest: [
		{src:"images/MARCO.png?1688513132659", id:"MARCO"},
		{src:"images/actividad1_atlas_1.png?1688513132623", id:"actividad1_atlas_1"},
		{src:"images/actividad1_atlas_2.png?1688513132623", id:"actividad1_atlas_2"},
		{src:"images/actividad1_atlas_3.png?1688513132623", id:"actividad1_atlas_3"},
		{src:"images/actividad1_atlas_4.png?1688513132623", id:"actividad1_atlas_4"},
		{src:"images/actividad1_atlas_5.png?1688513132624", id:"actividad1_atlas_5"}
	],
	preloads: []
};



// bootstrap callback support:

(lib.Stage = function(canvas) {
	createjs.Stage.call(this, canvas);
}).prototype = p = new createjs.Stage();

p.setAutoPlay = function(autoPlay) {
	this.tickEnabled = autoPlay;
}
p.play = function() { this.tickEnabled = true; this.getChildAt(0).gotoAndPlay(this.getTimelinePosition()) }
p.stop = function(ms) { if(ms) this.seek(ms); this.tickEnabled = false; }
p.seek = function(ms) { this.tickEnabled = true; this.getChildAt(0).gotoAndStop(lib.properties.fps * ms / 1000); }
p.getDuration = function() { return this.getChildAt(0).totalFrames / lib.properties.fps * 1000; }

p.getTimelinePosition = function() { return this.getChildAt(0).currentFrame / lib.properties.fps * 1000; }

an.bootcompsLoaded = an.bootcompsLoaded || [];
if(!an.bootstrapListeners) {
	an.bootstrapListeners=[];
}

an.bootstrapCallback=function(fnCallback) {
	an.bootstrapListeners.push(fnCallback);
	if(an.bootcompsLoaded.length > 0) {
		for(var i=0; i<an.bootcompsLoaded.length; ++i) {
			fnCallback(an.bootcompsLoaded[i]);
		}
	}
};

an.compositions = an.compositions || {};
an.compositions['030D34BEEB7B4E558350F13094E2DD03'] = {
	getStage: function() { return exportRoot.stage; },
	getLibrary: function() { return lib; },
	getSpriteSheet: function() { return ss; },
	getImages: function() { return img; }
};

an.compositionLoaded = function(id) {
	an.bootcompsLoaded.push(id);
	for(var j=0; j<an.bootstrapListeners.length; j++) {
		an.bootstrapListeners[j](id);
	}
}

an.getComposition = function(id) {
	return an.compositions[id];
}


an.makeResponsive = function(isResp, respDim, isScale, scaleType, domContainers) {		
	var lastW, lastH, lastS=1;		
	window.addEventListener('resize', resizeCanvas);		
	resizeCanvas();		
	function resizeCanvas() {			
		var w = lib.properties.width, h = lib.properties.height;			
		var iw = window.innerWidth, ih=window.innerHeight;			
		var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1;			
		if(isResp) {                
			if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {                    
				sRatio = lastS;                
			}				
			else if(!isScale) {					
				if(iw<w || ih<h)						
					sRatio = Math.min(xRatio, yRatio);				
			}				
			else if(scaleType==1) {					
				sRatio = Math.min(xRatio, yRatio);				
			}				
			else if(scaleType==2) {					
				sRatio = Math.max(xRatio, yRatio);				
			}			
		}
		domContainers[0].width = w * pRatio * sRatio;			
		domContainers[0].height = h * pRatio * sRatio;
		domContainers.forEach(function(container) {				
			container.style.width = w * sRatio + 'px';				
			container.style.height = h * sRatio + 'px';			
		});
		stage.scaleX = pRatio*sRatio;			
		stage.scaleY = pRatio*sRatio;
		lastW = iw; lastH = ih; lastS = sRatio;            
		stage.tickOnUpdate = false;            
		stage.update();            
		stage.tickOnUpdate = true;		
	}
}
an.handleSoundStreamOnTick = function(event) {
	if(!event.paused){
		var stageChild = stage.getChildAt(0);
		if(!stageChild.paused || stageChild.ignorePause){
			stageChild.syncStreamSounds();
		}
	}
}
an.handleFilterCache = function(event) {
	if(!event.paused){
		var target = event.target;
		if(target){
			if(target.filterCacheList){
				for(var index = 0; index < target.filterCacheList.length ; index++){
					var cacheInst = target.filterCacheList[index];
					if((cacheInst.startFrame <= target.currentFrame) && (target.currentFrame <= cacheInst.endFrame)){
						cacheInst.instance.cache(cacheInst.x, cacheInst.y, cacheInst.w, cacheInst.h);
					}
				}
			}
		}
	}
}


})(createjs = createjs||{}, AdobeAn = AdobeAn||{});
var createjs, AdobeAn;