(function (lib, img, cjs, ss) {

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

// library properties:
lib.properties = {
	width: 1280,
	height: 720,
	fps: 30,
	color: "#FFFFFF",
	manifest: [
		{src:"images/Bitmap1.png", id:"Bitmap1"},
		{src:"images/Bitmap2.png", id:"Bitmap2"},
		{src:"images/Bitmap3.png", id:"Bitmap3"},
		{src:"images/Bitmap4.png", id:"Bitmap4"},
		{src:"images/Bitmap5.png", id:"Bitmap5"},
		{src:"images/Bitmap6.png", id:"Bitmap6"},
		{src:"images/Bitmap7.png", id:"Bitmap7"}
	]
};



// symbols:



(lib.Bitmap1 = function() {
	this.initialize(img.Bitmap1);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,848,546);


(lib.Bitmap2 = function() {
	this.initialize(img.Bitmap2);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,294,151);


(lib.Bitmap3 = function() {
	this.initialize(img.Bitmap3);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,294,151);


(lib.Bitmap4 = function() {
	this.initialize(img.Bitmap4);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,294,151);


(lib.Bitmap5 = function() {
	this.initialize(img.Bitmap5);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,77,32);


(lib.Bitmap6 = function() {
	this.initialize(img.Bitmap6);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,129,97);


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


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

	// Layer 1
	this.instance = new lib.Bitmap7();

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


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

	// Layer 1
	this.instance = new lib.Bitmap6();

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


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

	// Layer 1
	this.instance = new lib.Bitmap5();

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


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

	// Layer 1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#B66D48").s().p("AgPg0IAMAAQAsgEg2BpIgCAEg");
	this.shape.setTransform(1.7,69.2);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#CB7950").s().p("AAOAxQgzhiAlgDIAIAAIAIAAIAABpIgCgEg");
	this.shape_1.setTransform(-1.6,69.2);

	this.shape_2 = new cjs.Shape();
	this.shape_2.graphics.f("#93583A").s().p("AgBCDIAAj6IAEgLIAAEFg");
	this.shape_2.setTransform(-0.2,-61.6);

	this.shape_3 = new cjs.Shape();
	this.shape_3.graphics.f("#CB7950").s().p("AARDDIgGiDQhzAJCLkLIAAD6IAGAAIAACLg");
	this.shape_3.setTransform(-4.1,-54.1);

	this.shape_4 = new cjs.Shape();
	this.shape_4.graphics.f("#B66D48").s().p("AgoDDIAAiLIAGAAIAAj6QCLELhzgJIgGCDg");
	this.shape_4.setTransform(4.2,-54.1);

	this.shape_5 = new cjs.Shape();
	this.shape_5.graphics.f("#74462E").s().p("AgBCDIAAkFIADALIAAD6g");
	this.shape_5.setTransform(0.4,-61.6);

	this.shape_6 = new cjs.Shape();
	this.shape_6.graphics.f("rgba(102,61,39,0.6)").s().p("AgIH1IAAvpIARAAIAAACIAAAUIAAAUIAAAUIAAAUIAAAUIAAATIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAATIAAATIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAACg");
	this.shape_6.setTransform(1,15.4);

	this.shape_7 = new cjs.Shape();
	this.shape_7.graphics.f("#8C5437").s().p("AgRH1IAAgLIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIgBgSIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgTIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgUIAAgNIAkAAIAAACIAAAUIAAAUIAAAUIAAAUIAAAUIAAATIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAATIABATIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAAUIAAACg");
	this.shape_7.setTransform(0.1,15.4);

	this.addChild(this.shape_7,this.shape_6,this.shape_5,this.shape_4,this.shape_3,this.shape_2,this.shape_1,this.shape);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-8.2,-74.7,16.5,149.4);
p.frameBounds = [rect];


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

	// Layer 1
	this.instance = new lib.javelin();
	this.instance.setTransform(58.7,58.7,1,1,-45);

	this.addChild(this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(0,0,113.8,113.7);
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: '32224',
			title: 'Ułóż zestawy elementów do podanych działań.',
			type: 'drag',
			container: this,
			endsound: 'ssBrawa',
			prefix: 'drag_',
			prefix2: 'drop_',
			groupdrags: {		
				1: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
				2: ['13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24','25','26','27'],
				3: ['28', '29', '30', '31']
			},
			/*
			groupdrops: {
				1: [1,2,3],
				2: [4,5,6],
				3: [7,8,9]
			},
			*/	
			results: [
				/*drop_1:*/ '1',
				/*drop_2:*/ '1',
				/*drop_3:*/ '1',
				/*drop_4:*/ '1',	
				/*drop_5:*/ '1',	
				/*drop_6:*/ '1',	
				/*drop_7:*/ '1',	
				/*drop_8:*/ '1',	
				/*drop_9:*/ '1',		
				/*drop_10:*/ '1',		
				/*drop_11:*/ '1',		
				/*drop_12:*/ '1',		
				/*drop_13:*/ '2',		
				/*drop_14:*/ '2',		
				/*drop_15:*/ '2',		
				/*drop_16:*/ '2',		
				/*drop_17:*/ '2',		
				/*drop_18:*/ '2',		
				/*drop_19:*/ '2',		
				/*drop_20:*/ '2',		
				/*drop_21:*/ '2',		
				/*drop_22:*/ '2',		
				/*drop_23:*/ '2',		
				/*drop_24:*/ '2',		
				/*drop_25:*/ '2',		
				/*drop_26:*/ '2',		
				/*drop_27:*/ '2',		
				/*drop_28:*/ '3',		
				/*drop_29:*/ '3',		
				/*drop_30:*/ '3',		
				/*drop_31:*/ '3',		
			],
			range: 50,
			alpha: 0,
			alpha2: 0,
			//scale: 0.8,
			//rotation: 'auto',
			//size: 'auto',
			//zindex: 3,
			
			exerciseAfterInit: function(container) {
				//container['drag_1'].rotate = 60;
			},
			exerciseBeforeFinish: function(container) {
				
			},
			exerciseExtraCheck: function(container) {
				
			},
		}
		
		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));

	// as
	this.drop_12 = new lib.Symbol4();
	this.drop_12.setTransform(856,166,1,1,0,0,0,35,35);

	this.drop_11 = new lib.Symbol4();
	this.drop_11.setTransform(796,166,1,1,0,0,0,35,35);

	this.drop_10 = new lib.Symbol4();
	this.drop_10.setTransform(736,166,1,1,0,0,0,35,35);

	this.drop_9 = new lib.Symbol4();
	this.drop_9.setTransform(676,166,1,1,0,0,0,35,35);

	this.drop_8 = new lib.Symbol4();
	this.drop_8.setTransform(588,166,1,1,0,0,0,35,35);

	this.drop_7 = new lib.Symbol4();
	this.drop_7.setTransform(528,166,1,1,0,0,0,35,35);

	this.drop_6 = new lib.Symbol4();
	this.drop_6.setTransform(468,166,1,1,0,0,0,35,35);

	this.drop_5 = new lib.Symbol4();
	this.drop_5.setTransform(408,166,1,1,0,0,0,35,35);

	this.drop_4 = new lib.Symbol4();
	this.drop_4.setTransform(321,166,1,1,0,0,0,35,35);

	this.drop_3 = new lib.Symbol4();
	this.drop_3.setTransform(261,166,1,1,0,0,0,35,35);

	this.drop_2 = new lib.Symbol4();
	this.drop_2.setTransform(201,166,1,1,0,0,0,35,35);

	this.drop_1 = new lib.Symbol4();
	this.drop_1.setTransform(141,166,1,1,0,0,0,35,35);

	this.drop_27 = new lib.Symbol4();
	this.drop_27.setTransform(821,356,1,1,0,0,0,35,35);

	this.drop_26 = new lib.Symbol4();
	this.drop_26.setTransform(821,326,1,1,0,0,0,35,35);

	this.drop_25 = new lib.Symbol4();
	this.drop_25.setTransform(821,296,1,1,0,0,0,35,35);

	this.drop_24 = new lib.Symbol4();
	this.drop_24.setTransform(661,356,1,1,0,0,0,35,35);

	this.drop_23 = new lib.Symbol4();
	this.drop_23.setTransform(661,326,1,1,0,0,0,35,35);

	this.drop_22 = new lib.Symbol4();
	this.drop_22.setTransform(661,296,1,1,0,0,0,35,35);

	this.drop_21 = new lib.Symbol4();
	this.drop_21.setTransform(501,356,1,1,0,0,0,35,35);

	this.drop_20 = new lib.Symbol4();
	this.drop_20.setTransform(501,326,1,1,0,0,0,35,35);

	this.drop_19 = new lib.Symbol4();
	this.drop_19.setTransform(501,296,1,1,0,0,0,35,35);

	this.drop_18 = new lib.Symbol4();
	this.drop_18.setTransform(341,356,1,1,0,0,0,35,35);

	this.drop_17 = new lib.Symbol4();
	this.drop_17.setTransform(341,326,1,1,0,0,0,35,35);

	this.drop_16 = new lib.Symbol4();
	this.drop_16.setTransform(341,296,1,1,0,0,0,35,35);

	this.drop_15 = new lib.Symbol4();
	this.drop_15.setTransform(171,356,1,1,0,0,0,35,35);

	this.drop_14 = new lib.Symbol4();
	this.drop_14.setTransform(171,326,1,1,0,0,0,35,35);

	this.drop_13 = new lib.Symbol4();
	this.drop_13.setTransform(171,296,1,1,0,0,0,35,35);

	this.drop_31 = new lib.Symbol4();
	this.drop_31.setTransform(805,511,1,1,0,0,0,35,35);

	this.drop_30 = new lib.Symbol4();
	this.drop_30.setTransform(599,511,1,1,0,0,0,35,35);

	this.drop_29 = new lib.Symbol4();
	this.drop_29.setTransform(399,511,1,1,0,0,0,35,35);

	this.drop_28 = new lib.Symbol4();
	this.drop_28.setTransform(196,511,1,1,0,0,0,35,35);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.drop_28},{t:this.drop_29},{t:this.drop_30},{t:this.drop_31},{t:this.drop_13},{t:this.drop_14},{t:this.drop_15},{t:this.drop_16},{t:this.drop_17},{t:this.drop_18},{t:this.drop_19},{t:this.drop_20},{t:this.drop_21},{t:this.drop_22},{t:this.drop_23},{t:this.drop_24},{t:this.drop_25},{t:this.drop_26},{t:this.drop_27},{t:this.drop_1},{t:this.drop_2},{t:this.drop_3},{t:this.drop_4},{t:this.drop_5},{t:this.drop_6},{t:this.drop_7},{t:this.drop_8},{t:this.drop_9},{t:this.drop_10},{t:this.drop_11},{t:this.drop_12}]}).wait(1));

	// content
	this.drag_31 = new lib.Symbol3();
	this.drag_31.setTransform(1036,497.8,1,1,0,0,0,64.5,48.5);

	this.drag_30 = new lib.Symbol3();
	this.drag_30.setTransform(1036,497.8,1,1,0,0,0,64.5,48.5);

	this.drag_29 = new lib.Symbol3();
	this.drag_29.setTransform(1036,497.8,1,1,0,0,0,64.5,48.5);

	this.drag_27 = new lib.Symbol2();
	this.drag_27.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_26 = new lib.Symbol2();
	this.drag_26.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_25 = new lib.Symbol2();
	this.drag_25.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_24 = new lib.Symbol2();
	this.drag_24.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_23 = new lib.Symbol2();
	this.drag_23.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_22 = new lib.Symbol2();
	this.drag_22.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_21 = new lib.Symbol2();
	this.drag_21.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_20 = new lib.Symbol2();
	this.drag_20.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_19 = new lib.Symbol2();
	this.drag_19.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_18 = new lib.Symbol2();
	this.drag_18.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_17 = new lib.Symbol2();
	this.drag_17.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_16 = new lib.Symbol2();
	this.drag_16.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_15 = new lib.Symbol2();
	this.drag_15.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_14 = new lib.Symbol2();
	this.drag_14.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_12 = new lib.Symbol1();
	this.drag_12.setTransform(1036,147.3,1,1,0,0,0,38.5,16);

	this.drag_11 = new lib.Symbol1();
	this.drag_11.setTransform(1036,147.3,1,1,0,0,0,38.5,16);

	this.drag_10 = new lib.Symbol1();
	this.drag_10.setTransform(1036,147.3,1,1,0,0,0,38.5,16);

	this.drag_9 = new lib.Symbol1();
	this.drag_9.setTransform(1036,147.3,1,1,0,0,0,38.5,16);

	this.drag_8 = new lib.Symbol1();
	this.drag_8.setTransform(1036,147.3,1,1,0,0,0,38.5,16);

	this.drag_7 = new lib.Symbol1();
	this.drag_7.setTransform(1036,147.3,1,1,0,0,0,38.5,16);

	this.drag_6 = new lib.Symbol1();
	this.drag_6.setTransform(1036,147.3,1,1,0,0,0,38.5,16);

	this.drag_5 = new lib.Symbol1();
	this.drag_5.setTransform(1036,147.3,1,1,0,0,0,38.5,16);

	this.drag_1 = new lib.Symbol1();
	this.drag_1.setTransform(1036,147.3,1,1,0,0,0,38.5,16);

	this.drag_2 = new lib.Symbol1();
	this.drag_2.setTransform(1036,147.3,1,1,0,0,0,38.5,16);

	this.drag_3 = new lib.Symbol1();
	this.drag_3.setTransform(1036,147.3,1,1,0,0,0,38.5,16);

	this.drag_28 = new lib.Symbol3();
	this.drag_28.setTransform(1036,497.8,1,1,0,0,0,64.5,48.5);

	this.drag_13 = new lib.Symbol2();
	this.drag_13.setTransform(1044.7,327,1,1,0,0,0,58.6,58.6);

	this.drag_4 = new lib.Symbol1();
	this.drag_4.setTransform(1036,147.3,1,1,0,0,0,38.5,16);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.drag_4},{t:this.drag_13},{t:this.drag_28},{t:this.drag_3},{t:this.drag_2},{t:this.drag_1},{t:this.drag_5},{t:this.drag_6},{t:this.drag_7},{t:this.drag_8},{t:this.drag_9},{t:this.drag_10},{t:this.drag_11},{t:this.drag_12},{t:this.drag_14},{t:this.drag_15},{t:this.drag_16},{t:this.drag_17},{t:this.drag_18},{t:this.drag_19},{t:this.drag_20},{t:this.drag_21},{t:this.drag_22},{t:this.drag_23},{t:this.drag_24},{t:this.drag_25},{t:this.drag_26},{t:this.drag_27},{t:this.drag_29},{t:this.drag_30},{t:this.drag_31}]}).wait(1));

	// bg
	this.instance = new lib.Bitmap4();
	this.instance.setTransform(933.6,433.5);

	this.instance_1 = new lib.Bitmap3();
	this.instance_1.setTransform(933.6,257.6);

	this.instance_2 = new lib.Bitmap2();
	this.instance_2.setTransform(933.6,86.6);

	this.instance_3 = new lib.Bitmap1();
	this.instance_3.setTransform(52.4,87.4);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{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(52.4,86.6,1175.2,546.9);
p.frameBounds = [rect];


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

	// exercise
	this.container = new lib.exerciseContainer();

	this.addChild(this.container);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(692.4,446.6,1175.2,546.9);
p.frameBounds = [rect];

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