(function (lib, img, cjs) {

var p; // shortcut to reference prototypes
var rect; // used to reference frame bounds

// library properties:
lib.properties = {
	width: 1700,
	height: 1000,
	fps: 30,
	color: "#FFFFFF",
	manifest: [
		{src:"images/gfx_0.png", id:"gfx_0"},
		{src:"images/gfx_1.png", id:"gfx_1"},
		{src:"images/gfx_2.png", id:"gfx_2"},
		{src:"images/gfx_3.png", id:"gfx_3"},
		{src:"images/gfx_4.png", id:"gfx_4"},
		{src:"images/gfx_5.png", id:"gfx_5"},
		{src:"images/gfx_6.png", id:"gfx_6"},
		{src:"images/gfx_7.png", id:"gfx_7"},
		{src:"images/gfx_8.png", id:"gfx_8"}
	]
};

// stage content:
(lib.index = function() {
	this.initialize();

	// exercise
	this.container = new lib.exerciseContainer();
	this.container.setTransform(916.5,389,1,1,0,0,0,916.5,389);

	this.addChild(this.container);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(850,498.6,1700,999);
p.frameBounds = [rect];


// symbols:
(lib.gfx_0 = function() {
	this.initialize(img.gfx_0);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,214,78);


(lib.gfx_1 = function() {
	this.initialize(img.gfx_1);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,956,990);


(lib.gfx_2 = function() {
	this.initialize(img.gfx_2);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,345,346);


(lib.gfx_3 = function() {
	this.initialize(img.gfx_3);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,345,346);


(lib.gfx_4 = function() {
	this.initialize(img.gfx_4);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,345,346);


(lib.gfx_5 = function() {
	this.initialize(img.gfx_5);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,345,346);


(lib.gfx_6 = function() {
	this.initialize(img.gfx_6);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,345,346);


(lib.gfx_7 = function() {
	this.initialize(img.gfx_7);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,345,346);


(lib.gfx_8 = function() {
	this.initialize(img.gfx_8);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,345,346);


(lib.Layer8 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.gfx_8();
	this.instance.setTransform(-172.5,-173);

	this.addChild(this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-172.5,-173,345,346);
p.frameBounds = [rect];


(lib.Layer7 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.gfx_7();
	this.instance.setTransform(-172.5,-173);

	this.addChild(this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-172.5,-173,345,346);
p.frameBounds = [rect];


(lib.Layer6 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.gfx_6();
	this.instance.setTransform(-172.5,-173);

	this.addChild(this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-172.5,-173,345,346);
p.frameBounds = [rect];


(lib.Layer5 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.gfx_5();
	this.instance.setTransform(-172.5,-173);

	this.addChild(this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-172.5,-173,345,346);
p.frameBounds = [rect];


(lib.Layer4 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.gfx_4();
	this.instance.setTransform(-172.5,-173);

	this.addChild(this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-172.5,-173,345,346);
p.frameBounds = [rect];


(lib.Layer3 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.gfx_3();
	this.instance.setTransform(-172.5,-173);

	this.addChild(this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-172.5,-173,345,346);
p.frameBounds = [rect];


(lib.Layer1 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.gfx_2();
	this.instance.setTransform(-172.5,-173);

	this.addChild(this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-172.5,-173,345,346);
p.frameBounds = [rect];


(lib.gfx_1_1 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.gfx_1();
	this.instance.setTransform(0,0,1.022,1);

	this.addChild(this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(0,0,977,990);
p.frameBounds = [rect];


(lib.drop = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.gfx_0();
	this.instance.setTransform(-2,-2);

	this.addChild(this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-2,-2,214,78);
p.frameBounds = [rect];


(lib.d_bg = function() {
	this.initialize();

	// Layer 1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#FFFFFF").s().dr(-65,-24,130,48);
	this.shape.setTransform(0,0,1.108,1);

	this.addChild(this.shape);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-72,-24,144,48);
p.frameBounds = [rect];


(lib.d_7 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.d_bg();
	this.instance.setTransform(0,0,0.611,1);
	this.instance.alpha = 0.102;

	this.shape = new cjs.Shape();
	this.shape.graphics.f("#996600").s().p("AkZEQQgrABgPhYQAFgZAPAAQAQAAACAWIgDAPQAAAcAaARIAKAAQAbAAAYiiQAKhIAAhVIAAgFIgFgwQAAgNAIg/QAAgagsAAQgdgEgQAAQgSACgKAAQgIgIAAgRQAFgMAPAAIAFAAQA/AOA3AAQAPAAAAAfQgFBNgDARQADAcAAAWIAAAWQAACvguB9QgUAhgagBgABODSQACgmAAgRIAAhUQAAg0ADhWQADgNAFAAIAHAAQAVABAAAgQAYgXAdAAQARACAVAVQAYgeAbAAIADAAQAvAAAQA0QANA2AAA5QgCBSAAAlQgDAKgNAAIgFAAQgEAAgGgKIAAiJQAAhzgpAAQgZAAgNAgQgLAAgCB1QAGAfAAAvQAAAKgGAUIgFAAQgZAAAAgtQAAgUACgcIgCgVIACgfQgFhAAAgaQgCgPgNAAQgjAAgVBLIAAB/IAFAcQAAAYgUAJQgLgDgHgKgAhMDAQg7gKAAgvIAAgPQAAhLCAhnQAAgVgkgIQgcAAgXAjQgEACgGAAQgNAAAAgOQAAgaAwgWIAagFQA5AAAHBGQAPBhAABdQAGAAAAARIAAASQAAADgLAHIgMAAQgLgEAAgTIAAgMIgCAAQgmAngfAAgAhrCCQAJAjAbAAQAwAAAahIIAAgZQgDhYgHABQhkBWAAA/g");

	this.addChild(this.shape,this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-44,-27.3,88,54.6);
p.frameBounds = [rect];


(lib.d_6 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.d_bg();
	this.instance.alpha = 0.102;

	this.shape = new cjs.Shape();
	this.shape.graphics.f("#996600").s().p("AJCEFQg4AAgKhXQgDgIAAgbIAAgoQgKgKAAgJQAQgRAHg4QASguAwhDQAOgKAOAAIAGAAQAdAAAbA3QAFAYAAAOIAABaQAAAPgLAAQgMAAgSgCQhcAKgHACIgDAYIAAANQAABmAuAAQAfgCArgZQAHgWAVgBIAHAAQAIADAAANQAAAphwAXgAI9gcQgcAyAAAjIADAAQBogJAAgGIAAgDQAAgPADggQgGhHghgHQgRAMgaAugAnTEFQg5AAgJhXQgDgIAAgbIAAgoQgKgKAAgJQAPgRAIg4QASguAwhDQANgKAPAAIAFAAQAdAAAbA3QAFAYAAAOIAABaQAAAPgKAAQgNAAgRgCQhdAKgHACIgCAYIAAANQAABmAtAAQAggCAqgZQAIgWAUgBIAIAAQAIADAAANQAAAphxAXgAnYgcQgcAyAAAjIACAAQBpgJAAgGIAAgDQAAgPACggQgGhHgggHQgRAMgaAugAq+DvQAAgsAcmcIAAgVQAFgWAIAAQAUAAAAAZQgcFbAABkIAIAAQAHAAAzgIQAUAAAAASIAAAHQgGANgOAAIgSAAIgPgDQgtAKgIAAQgMgFgBgFgAgmCxQgIhHAAgQQAFhZAAhAIgFgCQgeAHgFAAQgQAAgHgNIAAgCQAAgVAegEQAWADALgBQANg4AKhiQAJgFAEAAQAGAAAIAPIgOCMIAFACIAYAAQAXAFAAAHIAAADQAAAUgXAAIgfgCIAAACQgGB4AAAmIAAACQAABcAQAAQADAAAjgWQALAAAHAOQAAAYg7ARQgbAAgLgtgAjwCxQgIhHAAgQQAFhZAAhAIgFgCQgeAHgFAAQgQAAgHgNIAAgCQAAgVAegEQAWADALgBQANg4AKhiQAJgFAEAAQAIAAAIAPIgQCMIAFACIAaAAQAXAFAAAHIAAADQAAAUgXAAIghgCIAAACQgGB4AAAmIAAACQAABcASAAQADAAAjgWQALAAAHAOQAAAYg9ARQgbAAgLgtgAE0CJIAAgeQAAhVA4hsQAXgbAZAAQAdAAAWAhIAAACQAAALgMAGQgEAAgegTQgFgDgCAAQghAAgkCbQgEAsgBADQAAA/AegBQAHABAlgPQAPAAAAAOIAAAGQgXAZgrAAQgzgOAAg9gABfBfIAIhlIgFgtQAEgKADAAIANAAQALABACA0QgFBSAAAfQAAAjAXATQAhgcAchWQAUglAIg0QALgTAOAAQAEAAAEAIQgNBZAAB6IADASQAAAHgPAIQgQgFAAgPIAAhXQgDAAgZA8QgmA0gUAAQgxgeAAhFg");

	this.addChild(this.shape,this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-72,-26.1,144,52.3);
p.frameBounds = [rect];


(lib.d_5 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.d_bg();
	this.instance.alpha = 0.102;

	this.shape = new cjs.Shape();
	this.shape.graphics.f("#996600").s().p("AjeDvQADgmAAgRIAAhVQAAgzADhWQADgNAEAAIAIAAQAUAAAAAhQAZgXAdAAQAQACAWAVQAYgeAbAAIACAAQAuAAAQAyQANA4AAA4QgDBSAAAmQgDAKgMAAIgFAAQgEAAgHgKIAAiJQAAhzgmAAQgZAAgNAeQgLAAgCB3QAFAfAAAvQAAAKgFAUIgFAAQgaAAAAgtQAAgUADgcIgDgWIADgeQgFhAAAgcQgCgNgOAAQgiAAgVBLIAAB/IAEAcQAAAYgUAIQgLgDgHgJgAo5DlQgEm1gJAAQhAAIgKACQgMgFgBgFIAAgCQAAgZApAAICCgPQAZADAAATQgFAPgMAAQgRgFgGAAIgFAAQgaAAgFAUQAAAIADAFQACBtADEEQAFAZAAARQAAAPgSAAQgLAAgEgMgAFjDCQgHhGAAgRQAFhZAAhAIgFgCQgeAHgGAAQgQAAgHgMIAAgDQAAgVAfgEQAVADAMAAQANg5AKhiQAIgFAFAAQAHAAAIAPIgPCMIAFACIAZAAQAXAFAAAIIAAACQAAAUgXAAIghgCIAAACQgFB4AAAmIAAACQAABcASAAQADAAAjgWQAKAAAIAPQAAAXg9ARQgcAAgLgtgAHrCOQAAh0AsgvQgGgJAAgLQAGgHAhgDQAFgGAcgBIAPAAQAvAAAHBIIAAADQAABnhXBlQgaANgHAAQg7AAAAhcgAIwgDQgjAqAABEIAAAxQAAAjARAKIANAAQAqgdAdhaQAKgeADgmQAAgrgcAAIgDAAQgkAAgMAagAm0COQAAh0ArgvQgFgJAAgLQAFgHAhgDQAFgGAcgBIAQAAQAuAAAHBIIAAADQAABnhXBlQgZANgIAAQg6AAAAhcgAlvgDQgkAqAABEIAAAxQAAAjASAKIAMAAQArgdAdhaQAKgeACgmQAAgrgcAAIgCAAQglAAgLAagACFDdQg6gLAAguIAAgPQAAhLB/hnQAAgVgkgIQgcAAgWAjQgFACgGAAQgMAAAAgPQAAgZAwgWIAZgFQA8AAAHBGQAPBhAABcQAFAAAAASIAAARQAAAEgKAGIgNAAQgKgDAAgTIAAgNIgCAAQgoAoggAAgABnCfQAIAjAbAAQAxAAAchIIAAgZQgDhagKAAQhjBZAAA/g");

	this.addChild(this.shape,this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-72,-25.1,144,50.3);
p.frameBounds = [rect];


(lib.d_4 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.d_bg();
	this.instance.alpha = 0.102;

	this.shape = new cjs.Shape();
	this.shape.graphics.f("#996600").s().p("AIJEOQg5AAgJhXQgDgIAAgbIAAgoQgKgKAAgKQAPgQAIg4QASgvAwhCQANgKAPAAIAFAAQAdAAAbA3QAFAYAAAOIAABaQAAAPgKAAQgNAAgRgDQhdAKgHADIgCAYIAAANQAABmAtAAQAggDAqgYQAIgXAUAAIAIAAQAIADAAAMQAAAqhxAXgAIEgUQgcAzAAAjIACAAQBpgJAAgGIAAgDQAAgQACggQgGhHgggGQgRAMgaAtgAB1EOQg5AAgJhXQgDgIAAgbIAAgoQgKgKAAgKQAPgQAIg4QASgvAwhCQANgKAPAAIAFAAQAdAAAbA3QAFAYAAAOIAABaQAAAPgKAAQgNAAgRgDQhdAKgHADIgCAYIAAANQAABmAtAAQAggDAqgYQAIgXAUAAIAIAAQAIADAAAMQAAAqhxAXgABwgUQgcAzAAAjIACAAQBpgJAAgGIAAgDQAAgQACggQgGhHgggGQgRAMgaAtgAh5EOQg5AAgJhXQgDgIAAgbIAAgoQgKgKAAgKQAPgQAIg4QASgvAwhCQANgKAPAAIAFAAQAdAAAbA3QAFAYAAAOIAABaQAAAPgKAAQgNAAgRgDQhdAKgHADIgCAYIAAANQAABmAtAAQAggDAqgYQAIgXAUAAIAIAAQAGADAAAMQAAAqhvAXgAh+gUQgcAzAAAjIACAAQBpgJAAgGIAAgDQAAgQACggQgGhHgggGQgRAMgaAtgAmmDwQAUi9AAjhQADAAAAgIIgFglQAFgWAKAAQAUAGAAATIAAAMQgHBdAABKIAAARQABAGAEAAQAfgtAjAAIAKAAQAgAAALA7QAKAAAGDcIAAAFQAAAhgNAAQgUAAgDgjQAAgJAFgaQgFjcgcAAQgfAAgeA6QAAAJgPAVQgFBwgIA5IACAPIAAAKQAAARgRAAQgSgGAAgVgAp9CHQgFgogDg5QAAjCAkhLQAXgmAuAAIAHAAQBKANAAAgQgDANgPAAQgjgegXAAQgmAAgQAlQgZBGAAC2QAABxApAsQAAAGARAHQAdAAAwg/QAEgCAGAAQAKACAAANQAAAcg/AqQgbAKgJAAQguAAghhxgAEwDpQgUAAgGgNIAAgKQABgFAMgFQAOADAJAAQAcAAAcg3IAFgcQAAg5hKg3QgFgIAAgHQAAg1BKgOIANAAQAKAFAAAKQgGAWgoAAQgSANAAAOQBNA+AABEQAABChCAqQgRAFgHAAg");

	this.addChild(this.shape,this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-72,-27,144,54.1);
p.frameBounds = [rect];


(lib.d_3 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.d_bg();
	this.instance.setTransform(0,0,0.667,1);
	this.instance.alpha = 0.102;

	this.shape = new cjs.Shape();
	this.shape.graphics.f("#996600").s().p("AjGDpQAKgiAAgcIAAgeQABg1AHihQgjgIhcAAIgGAAIgCAKIgQEzQgGAMgEAAIgCAAQgTAAgEgYQAKhUANjiQgDgKAAgHQAGhMgBgVQAAgEgHgVQAEgUAQAAQASAAAAA2IgDBJQAeAHA8AAIApAAQAHgBAAgTIAAg5QgKggAAgKQABgXATAAQAVAAAABVQgNESAAAtIAAAjQAAAOADAVQgKAhgQAAQgSAAAAgVgABpDgQACgmAAgRIAAhVQAAgzADhWQADgNAEAAIAIAAQAVAAgBAhQAZgXAdAAQAQACAWAVQAYgeAbAAIACAAQAwAAAQA0QANA2AAA4QgCBSAAAmQgEAKgMAAIgFAAQgEAAgHgKIAAiJQAAhzgoAAQgZAAgNAgQgLAAgCB1QAGAfAAAvQAAAKgGAUIgFAAQgZAAAAgtQAAgUACgcIgCgWIACgeQgFhAAAgaQgCgPgNAAQgjAAgVBLIAAB/IAFAcQgBAYgTAIQgMgDgGgJgAgyDOQg6gLAAguIAAgPQAAhLB9hnQABgVgjgIQgbAAgXAjQgEACgHAAQgMAAAAgPQAAgZAwgWIAZgFQA6AAAHBGQAPBhAABcQAGAAAAASIAAARQAAAEgLAGIgNAAQgKgDAAgTIAAgNIgCAAQgmAogfAAgAhQCQQAJAjAbAAQAuAAAchIIAAgZQgDhYgKAAQhhBXAAA/g");

	this.addChild(this.shape,this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-48,-25.4,96,50.8);
p.frameBounds = [rect];


(lib.d_2 = function() {
	this.initialize();

	// Layer 1
	this.instance = new lib.d_bg();
	this.instance.setTransform(-1,-1,1.027,1);
	this.instance.alpha = 0.102;

	this.shape = new cjs.Shape();
	this.shape.graphics.f("#996600").s().p("AE0ELQg4AAgKhXQgCgHAAgcIAAgoQgKgKAAgJQAPgRAHg4QASguAwhCQAOgKAPAAIAFAAQAdAAAbA3QAFAXAAAOIAABaQAAAPgKAAQgNAAgSgCQhcAKgHACIgDAZIAAAMQAABmAuAAQAggCAqgZQAHgWAVAAIAHAAQAJACgBANQABAqhxAWgAEwgWQgcAzAAAiIACAAQBpgJAAgGIAAgCQAAgQACggQgGhHgggGQgSALgZAugApwD6QgNAAAAhfQAQjPAAgZIAAhuQgBgegFgbQAAgPANgHIADAAQAhAABOAoQAsAiAAAcIAAAKQAAAqhUAcIAAAFQB3AUAABIQAABmiBBkQg3AjgMAAgApfClIAAASIAEAZIABAAQBNgeA1hcQAVgnAAgiIAAgFQAAg1iMgJQgPCmgBA1gApPjbIgCB6IACAAQARAABKgoQANgNABgCIAAgJQAAgjhQgZIgXgFQgCAEAAADgABeC3QgIhGABgRQAEhZAAhAIgEgCQgfAHgFAAQgQAAgHgMIAAgDQAAgVAfgEQAVADALAAQANg5ALhiQAIgFAEAAQAIAAAIAPIgQCMIAGACIAZAAQAXAFAAAIIAAACQAAAUgXAAIghgCIAAACQgGB4AAAmIAAACQAABcASAAQAEAAAjgWQAKAAAIAPQgBAXg8ARQgcAAgLgtgAhqC3QgIhGAAgRQAGhZAAhAIgGgCQgeAHgFAAQgQAAgHgMIAAgDQAAgVAegEQAWADAMAAQANg5AJhiQAJgFAFAAQAHAAAIAPIgPCMIAEACIAaAAQAXAFAAAIIAAACQAAAUgXAAIghgCIAAACQgFB4AAAmIAAACQAABcASAAQADAAAigWQALAAAHAPQABAXg+ARQgbAAgLgtgAHWC+IAAgxQAAgYADgYQgDgMAAgXQAAgIAGgiQgDghAAgZQADgbAJAAIADAAQAUAAAAAjIAAAFIgDAEIAGADQAmg3AmAAIADAAQApAAAHASIAAAMQAAAEgIADIgMAAIgZgHIgGAAQggAAg0BaIAAAhQAAAXACAYQgCANAAAJIACAtQAAAcgRAAQgOAAgEgcgAmABlIAHhlIgFgsQAFgKADAAIANAAQALAAABA0QgEBSAAAfQgBAkAXASQAigcAchWQAUgkAIg0QALgUAOAAQAEAAAEAIQgNBZAAB7IADARQAAAIgPAHQgQgFAAgPIAAhXQgEAAgYA8QgnA0gTAAQgxgeAAhFg");

	this.addChild(this.shape,this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-74.9,-26.7,147.9,53.6);
p.frameBounds = [rect];


(lib.d_1 = function() {
	this.initialize();

	// Layer 1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#996600").s().p("AgKELQg4AAgKhXQgDgHAAgcIAAgoQgKgKAAgJQAQgRAHg4QASguAwhCQAMgKAOAAIAGAAQAdAAAbA3QAFAXAAAOIAABaQAAAPgLAAQgMAAgSgCQhaAKgHACIgDAZIAAAMQAABmAuAAQAdgCArgZQAHgWAVAAIAHAAQAIACAAANQAAAqhwAWgAgPgWQgcAzAAAiIADAAQBmgJAAgGIAAgCQAAgQADggQgGhHghgGQgRALgYAugAoVD6QgNAAAAhfQAPjPAAgZIAAhuQAAgegFgbQAAgFACgFQACgIAJgEIACAAQATAAAhAMQAaAKAiASQAsAiAAAcIAAAKQAAAqhUAcIAAAFQB3AUAABIQAABmiCBkQg3AjgLAAgAoEClIAAASIADAZIACAAQBNgeA1hcQAVgnAAgiIAAgFQAAg1iMgJQgQCmAAA1gAn0jbIgDB6IADAAQAQAABLgoQANgNAAgCIAAgJQAAgjhPgZIgXgFQgCAEAAADgAHmDXIAAgUQgfAdgcAEQgTAAgfgjQgNgdAAghQAAh0A9hUQAbgPALAAQAUAAAaAWIACAAQAGhQAAglIAAgbIgGgcIAAgKQABgGACgEQAEgKALAAQAJADAFAHQAEAIAAAMIAAAcQgIDzgUCjQADAKAAAKQAAAKgPAFQgVgCAAgSgAGcAXQgSA7AAAzIAAAFQAGA5AeAAQAUAAAkg0QASAAAAiHQgIgHgFgjQgMgSgNAAIgLAAQgRAAgaBLgAklC+IAAgxQAAgYACgYQgCgMAAgXQAAgIAFgiQgDghAAgZQAEgbAJAAIADAAQAUAAAAAjIAAAFIgDAEIAGADQAmg3AmAAIACAAQApAAAIASIAAAMQAAAEgIADIgNAAIgZgHIgFAAQggAAg0BaIAAAhQAAAXACAYQgCANAAAJIACAtQAAAcgRAAQgPAAgDgcgADQDSQg7gLAAguIAAgPQAAhLCAhnQAAgVgkgIQgcAAgXAjQgEACgGAAQgNAAAAgPQAAgZAwgWIAagFQA7AAAHBGQAPBhAABcQAGAAAAASIAAARQAAAEgLAGIgMAAQgLgDAAgTIAAgNIgCAAQgoAogfAAgACxCUQAJAjAbAAQAwAAAchIIAAgZQgDhYgJAAQhkBXAAA/g");

	this.instance = new lib.d_bg();
	this.instance.setTransform(0,0,0.903,1);
	this.instance.alpha = 0.102;

	this.addChild(this.instance,this.shape);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-65,-26.7,130,53.6);
p.frameBounds = [rect];


(lib.exerciseContainer = function(mode,startPosition,loop) {
if (loop == null) { loop = false; }	this.initialize(mode,startPosition,loop,{});

	// timeline functions:
	this.frame_0 = function() {
		/* Ustawienia */
		var config = {
			id: '2101',
			title: 'Przyporządkuj produkty do właściwej nazwy.',
			type: 'drag',
			container: this,
			prefix: 'drag_',
			prefix2: 'drop_',
			/*
			groupdrags: {		
				1: [1,2,3],
				2: [4,5,6],
				3: [7,8,9]
			},
			groupdrops: {
				1: [1,2,3],
				2: [4,5,6],
				3: [7,8,9]
			},
			*/	
			results: [
				/*drop_1:*/ '3',
				/*drop_2:*/ '4',
				/*drop_3:*/ '7',
				/*drop_4:*/ '1',
				/*drop_5:*/ '2',
				/*drop_6:*/ '6',
				/*drop_7:*/ '5',
			],
			range: 20,
			alpha: 1,
			alpha2: 1,
			//scale: 0.8,
			//rotation: 'auto',
			//size: 'auto',
			//zindex: 0
			exerciseBeforeFinish: function () {
				var exerciseId = this.id; 
				var exerciseContainer = this.container;			
				var soundPrefix = 'drop_';
				
				var queue = new createjs.LoadQueue();
				queue.installPlugin(createjs.Sound);	
				createjs.Sound.alternateExtensions = ["ogg"];	
				
				for(var soundName in exerciseContainer) {
					if(soundName.indexOf(soundPrefix) > -1) {				
						var sound = exerciseContainer[soundName];
						var soundId = exerciseId+'_'+soundName.replace(soundPrefix, '');
						var soundSrc = getAssetDir()+'/sounds/'+soundId + '.mp3';
						sound.name = soundName;
						queue.loadFile({id:soundId, src:soundSrc});
					}
				}
			},
			exerciseExtraCheck: function (config, dragCurrent, dropIndex, isCorrect) {
				if(isCorrect === true) {
					createjs.Sound.play(config.id+'_'+dragCurrent.name.replace('drag_', ''));  
				}
			},
		}
		
		exerciseOnInit(config);
		
		this.stop();
		
		/*---------------------------------------------------------------------------------------------------------------
		/* Help
		/*---------------------------------------------------------------------------------------------------------------
		 
		id - Id cwiczenia
		title - Tytul cwiczenia
		type - Typ Cwiczenia
		contanier - Kontener cwiczenia
		groupdrags - Lista grup dagow oraz przypisane do nich identyfikatory (unikatowa liczba) obiektow bez prefixow
		groupdrags - Lista grup targetow oraz przypisane do nich identyfikatory (unikatowa liczba) obiektow bez prefixow
		prefix - Prefixy w nazwach obiektow
		results - Rozwiazanie jako tablica identyfikatorow. Znak '|' definuje alternatywe, a '&' oznacza sume.	
		Przyklad:
		Cwiczenie typu sort.
		Odpowiedzi: [5,2,1,4,5] - tablica z ulozonymi w odpowiedniej kolejnisci identyfikatorami obiektow sortowanych.
		Cwiczenie typu drag.
		Odpowiedzi: [5,1|3,2&4] - tablica z id obiektow przeciaganych lub grup. W tym wariancie kazdy kolejny element z indexem 'i' w tablicy odpowiada targetowi o nazwie 'prefix+i'.
		np. prawidlowa odpowiedzia dla drop_1 jest obiekt drag_5, dla drop_2 obiekt drag_1 lub drag_3, dla drop_3 obiekt drag_2 oraz drag_4.
		range - Zakres dociagania
		alpha - Przezroczystosc targetu
		alpha2 - Przezroczystosc targetu po najechaniu
		rotation - Dostosowanie obrotu obiektu do targetu
		scale - Skalowanie obiektu po upuszczeniu
		size - Skalowanie obiektu do rozmiarow targetu
		zindex - Pozycja z obiektu
		/*-------------------------------------------------------------------------------------------------------------*/
	}

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

	// drag
	this.drag_6 = new lib.d_7();
	this.drag_6.setTransform(514.2,375.5);

	this.drag_4 = new lib.d_6();
	this.drag_4.setTransform(551.2,276.3);

	this.drag_2 = new lib.d_5();
	this.drag_2.setTransform(547.2,174.3);

	this.drag_7 = new lib.d_4();
	this.drag_7.setTransform(267.4,477);

	this.drag_5 = new lib.d_3();
	this.drag_5.setTransform(238.4,376);

	this.drag_3 = new lib.d_2();
	this.drag_3.setTransform(264.4,275);

	this.drag_1 = new lib.d_1();
	this.drag_1.setTransform(256.4,173.8);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.drag_1},{t:this.drag_3},{t:this.drag_5},{t:this.drag_7},{t:this.drag_2},{t:this.drag_4},{t:this.drag_6}]}).wait(1));

	// drop
	this.drop_3 = new lib.drop();
	this.drop_3.setTransform(1112.5,607.6,1,1,0,0,0,104.9,37);
	this.drop_3.shadow = new cjs.Shadow("rgba(0,0,0,1)",0,0,10);

	this.drop_7 = new lib.drop();
	this.drop_7.setTransform(1579.5,948.6,1,1,0,0,0,104.9,37);
	this.drop_7.shadow = new cjs.Shadow("rgba(0,0,0,1)",0,0,10);

	this.drop_6 = new lib.drop();
	this.drop_6.setTransform(1346.5,948.6,1,1,0,0,0,104.9,37);
	this.drop_6.shadow = new cjs.Shadow("rgba(0,0,0,1)",0,0,10);

	this.drop_5 = new lib.drop();
	this.drop_5.setTransform(1579.5,607.6,1,1,0,0,0,104.9,37);
	this.drop_5.shadow = new cjs.Shadow("rgba(0,0,0,1)",0,0,10);

	this.drop_4 = new lib.drop();
	this.drop_4.setTransform(1346.5,607.6,1,1,0,0,0,104.9,37);
	this.drop_4.shadow = new cjs.Shadow("rgba(0,0,0,1)",0,0,10);

	this.drop_2 = new lib.drop();
	this.drop_2.setTransform(1579.5,266.6,1,1,0,0,0,104.9,37);
	this.drop_2.shadow = new cjs.Shadow("rgba(0,0,0,1)",0,0,10);

	this.drop_1 = new lib.drop();
	this.drop_1.setTransform(1346.5,266.6,1,1,0,0,0,104.9,37);
	this.drop_1.shadow = new cjs.Shadow("rgba(0,0,0,1)",0,0,10);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.drop_1},{t:this.drop_2},{t:this.drop_4},{t:this.drop_5},{t:this.drop_6},{t:this.drop_7},{t:this.drop_3}]}).wait(1));

	// content
	this.instance = new lib.Layer7();
	this.instance.setTransform(1581.4,456,0.688,0.673);

	this.instance_1 = new lib.Layer6();
	this.instance_1.setTransform(1581.4,797.1,0.688,0.673);

	this.instance_2 = new lib.Layer3();
	this.instance_2.setTransform(1347.9,115,0.688,0.673);

	this.instance_3 = new lib.Layer4();
	this.instance_3.setTransform(1347.9,456,0.688,0.673);

	this.instance_4 = new lib.Layer5();
	this.instance_4.setTransform(1347.9,797.1,0.688,0.673);

	this.instance_5 = new lib.Layer8();
	this.instance_5.setTransform(1581.4,115,0.688,0.673);

	this.instance_6 = new lib.Layer1();
	this.instance_6.setTransform(1114.4,456,0.688,0.673);

	this.instance_7 = new lib.gfx_1_1();
	this.instance_7.setTransform(488.5,495,1,1,0,0,0,488.5,495);

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

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = rect = new cjs.Rectangle(0,-1.4,1700,999);
p.frameBounds = [rect];

})(lib = lib||{}, images = images||{}, createjs = createjs||{});
var lib, images, createjs;