(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/Bitmap6copy.png", id:"Bitmap6copy"},
		{src:"images/gfx_dice_sh.png", id:"gfx_dice_sh"},
		{src:"images/koscMC0001.png", id:"koscMC0001"},
		{src:"images/koscMC0002.png", id:"koscMC0002"},
		{src:"images/koscMC0003.png", id:"koscMC0003"},
		{src:"images/koscMC0004.png", id:"koscMC0004"},
		{src:"images/koscMC0005.png", id:"koscMC0005"},
		{src:"images/koscMC0006.png", id:"koscMC0006"},
		{src:"images/koscMC0007.png", id:"koscMC0007"},
		{src:"images/koscMC0008.png", id:"koscMC0008"},
		{src:"images/koscMC0009.png", id:"koscMC0009"},
		{src:"images/koscMC0010.png", id:"koscMC0010"},
		{src:"images/koscMC0011.png", id:"koscMC0011"},
		{src:"images/koscMC0012.png", id:"koscMC0012"},
		{src:"images/koscMC0013.png", id:"koscMC0013"},
		{src:"images/koscMC0014.png", id:"koscMC0014"},
		{src:"images/koscMC0015.png", id:"koscMC0015"},
		{src:"images/koscMC0016.png", id:"koscMC0016"},
		{src:"images/koscMC0017.png", id:"koscMC0017"},
		{src:"images/koscMC0018.png", id:"koscMC0018"},
		{src:"images/koscMC0019.png", id:"koscMC0019"},
		{src:"images/koscMC0020.png", id:"koscMC0020"},
		{src:"images/koscMC0021.png", id:"koscMC0021"},
		{src:"images/koscMC0022.png", id:"koscMC0022"},
		{src:"images/koscMC0023.png", id:"koscMC0023"},
		{src:"images/koscMC0024.png", id:"koscMC0024"},
		{src:"images/koscMC0025.png", id:"koscMC0025"},
		{src:"images/koscMC0026.png", id:"koscMC0026"},
		{src:"images/koscMC0027.png", id:"koscMC0027"},
		{src:"images/koscMC0028.png", id:"koscMC0028"},
		{src:"images/koscMC0029.png", id:"koscMC0029"},
		{src:"images/koscMC0030.png", id:"koscMC0030"},
		{src:"images/koscMC0031.png", id:"koscMC0031"},
		{src:"images/koscMC0032.png", id:"koscMC0032"},
		{src:"images/koscMC0033.png", id:"koscMC0033"},
		{src:"images/koscMC0034.png", id:"koscMC0034"},
		{src:"images/koscMC0035.png", id:"koscMC0035"},
		{src:"images/koscMC0036.png", id:"koscMC0036"},
		{src:"images/koscMC0037.png", id:"koscMC0037"},
		{src:"images/koscMC0038.png", id:"koscMC0038"},
		{src:"images/koscMC0039.png", id:"koscMC0039"},
		{src:"images/koscMC0040.png", id:"koscMC0040"},
		{src:"images/koscMC0041.png", id:"koscMC0041"},
		{src:"images/koscMC0042.png", id:"koscMC0042"},
		{src:"images/koscMC0043.png", id:"koscMC0043"},
		{src:"images/koscMC0044.png", id:"koscMC0044"},
		{src:"images/koscMC0045.png", id:"koscMC0045"},
		{src:"images/koscMC0046.png", id:"koscMC0046"},
		{src:"images/koscMC0047.png", id:"koscMC0047"},
		{src:"images/koscMC0048.png", id:"koscMC0048"},
		{src:"images/koscMC0049.png", id:"koscMC0049"},
		{src:"images/koscMC0050.png", id:"koscMC0050"},
		{src:"images/koscMC0051.png", id:"koscMC0051"},
		{src:"images/koscMC0052.png", id:"koscMC0052"},
		{src:"images/koscMC0053.png", id:"koscMC0053"},
		{src:"images/koscMC0054.png", id:"koscMC0054"},
		{src:"images/koscMC0055.png", id:"koscMC0055"},
		{src:"images/koscMC0056.png", id:"koscMC0056"},
		{src:"images/koscMC0057.png", id:"koscMC0057"},
		{src:"images/koscMC0058.png", id:"koscMC0058"},
		{src:"images/koscMC0059.png", id:"koscMC0059"},
		{src:"images/koscMC0060.png", id:"koscMC0060"},
		{src:"images/koscMC0061.png", id:"koscMC0061"},
		{src:"images/koscMC0062.png", id:"koscMC0062"},
		{src:"images/koscMC0063.png", id:"koscMC0063"},
		{src:"images/koscMC0064.png", id:"koscMC0064"},
		{src:"images/koscMC0065.png", id:"koscMC0065"},
		{src:"images/koscMC0066.png", id:"koscMC0066"},
		{src:"images/koscMC0067.png", id:"koscMC0067"},
		{src:"images/koscMC0068.png", id:"koscMC0068"},
		{src:"images/koscMC0069.png", id:"koscMC0069"},
		{src:"images/koscMC0070.png", id:"koscMC0070"},
		{src:"images/koscMC0071.png", id:"koscMC0071"},
		{src:"images/koscMC0072.png", id:"koscMC0072"},
		{src:"images/koscMC0073.png", id:"koscMC0073"},
		{src:"images/koscMC0074.png", id:"koscMC0074"},
		{src:"images/koscMC0075.png", id:"koscMC0075"},
		{src:"images/koscMC0076.png", id:"koscMC0076"},
		{src:"images/koscMC0077.png", id:"koscMC0077"},
		{src:"images/koscMC0078.png", id:"koscMC0078"},
		{src:"images/koscMC0079.png", id:"koscMC0079"},
		{src:"images/koscMC0080.png", id:"koscMC0080"},
		{src:"images/koscMC0081.png", id:"koscMC0081"},
		{src:"images/koscMC0082.png", id:"koscMC0082"},
		{src:"images/koscMC0083.png", id:"koscMC0083"},
		{src:"images/koscMC0084.png", id:"koscMC0084"},
		{src:"images/koscMC0085.png", id:"koscMC0085"},
		{src:"images/koscMC0086.png", id:"koscMC0086"},
		{src:"images/koscMC0087.png", id:"koscMC0087"},
		{src:"images/koscMC0088.png", id:"koscMC0088"},
		{src:"images/koscMC0089.png", id:"koscMC0089"},
		{src:"images/koscMC0090.png", id:"koscMC0090"},
		{src:"images/koscMC0091.png", id:"koscMC0091"},
		{src:"images/koscMC0092.png", id:"koscMC0092"},
		{src:"images/koscMC0093.png", id:"koscMC0093"},
		{src:"images/koscMC0094.png", id:"koscMC0094"},
		{src:"images/koscMC0095.png", id:"koscMC0095"},
		{src:"images/koscMC0096.png", id:"koscMC0096"},
		{src:"images/koscMC0097.png", id:"koscMC0097"},
		{src:"images/koscMC0098.png", id:"koscMC0098"}
	]
};



// symbols:



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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

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

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


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

	// Layer 2
	this.instance = new lib.Bitmap4();

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


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

	// Layer 2
	this.instance = new lib.Bitmap3();

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


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

	// Layer 2
	this.instance = new lib.Bitmap2();

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


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

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

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


(lib.diceMc = function(mode,startPosition,loop) {
if (loop == null) { loop = false; }	this.initialize(mode,startPosition,loop,{roll:0,num6:20,num5:33,num4:46,num3:59,num2:72,num1:85});

	// timeline functions:
	this.frame_0 = function() {
		this.stop();
	}
	this.frame_19 = function() {
		this.gotoAndPlay('num'+this.parent.num);
	}
	this.frame_32 = function() {
		this.stop();
	}
	this.frame_45 = function() {
		this.stop();
	}
	this.frame_58 = function() {
		this.stop();
	}
	this.frame_71 = function() {
		this.stop();
	}
	this.frame_84 = function() {
		this.stop();
	}
	this.frame_97 = function() {
		this.stop();
	}

	// actions tween:
	this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(19).call(this.frame_19).wait(13).call(this.frame_32).wait(13).call(this.frame_45).wait(13).call(this.frame_58).wait(13).call(this.frame_71).wait(13).call(this.frame_84).wait(13).call(this.frame_97).wait(1));

	// dice
	this.instance = new lib.koscMC0001();
	this.instance.setTransform(-80,-80);

	this.instance_1 = new lib.koscMC0002();
	this.instance_1.setTransform(-80,-80);

	this.instance_2 = new lib.koscMC0003();
	this.instance_2.setTransform(-80,-80);

	this.instance_3 = new lib.koscMC0004();
	this.instance_3.setTransform(-80,-80);

	this.instance_4 = new lib.koscMC0005();
	this.instance_4.setTransform(-80,-80);

	this.instance_5 = new lib.koscMC0006();
	this.instance_5.setTransform(-80,-80);

	this.instance_6 = new lib.koscMC0007();
	this.instance_6.setTransform(-80,-80);

	this.instance_7 = new lib.koscMC0008();
	this.instance_7.setTransform(-80,-80);

	this.instance_8 = new lib.koscMC0009();
	this.instance_8.setTransform(-80,-80);

	this.instance_9 = new lib.koscMC0010();
	this.instance_9.setTransform(-80,-80);

	this.instance_10 = new lib.koscMC0011();
	this.instance_10.setTransform(-80,-80);

	this.instance_11 = new lib.koscMC0012();
	this.instance_11.setTransform(-80,-80);

	this.instance_12 = new lib.koscMC0013();
	this.instance_12.setTransform(-80,-80);

	this.instance_13 = new lib.koscMC0014();
	this.instance_13.setTransform(-80,-80);

	this.instance_14 = new lib.koscMC0015();
	this.instance_14.setTransform(-80,-80);

	this.instance_15 = new lib.koscMC0016();
	this.instance_15.setTransform(-80,-80);

	this.instance_16 = new lib.koscMC0017();
	this.instance_16.setTransform(-80,-80);

	this.instance_17 = new lib.koscMC0018();
	this.instance_17.setTransform(-80,-80);

	this.instance_18 = new lib.koscMC0019();
	this.instance_18.setTransform(-80,-80);

	this.instance_19 = new lib.koscMC0020();
	this.instance_19.setTransform(-80,-80);

	this.instance_20 = new lib.koscMC0021();
	this.instance_20.setTransform(-80,-80);

	this.instance_21 = new lib.koscMC0022();
	this.instance_21.setTransform(-80,-80);

	this.instance_22 = new lib.koscMC0023();
	this.instance_22.setTransform(-80,-80);

	this.instance_23 = new lib.koscMC0024();
	this.instance_23.setTransform(-80,-80);

	this.instance_24 = new lib.koscMC0025();
	this.instance_24.setTransform(-80,-80);

	this.instance_25 = new lib.koscMC0026();
	this.instance_25.setTransform(-80,-80);

	this.instance_26 = new lib.koscMC0027();
	this.instance_26.setTransform(-80,-80);

	this.instance_27 = new lib.koscMC0028();
	this.instance_27.setTransform(-80,-80);

	this.instance_28 = new lib.koscMC0029();
	this.instance_28.setTransform(-80,-80);

	this.instance_29 = new lib.koscMC0030();
	this.instance_29.setTransform(-80,-80);

	this.instance_30 = new lib.koscMC0031();
	this.instance_30.setTransform(-80,-80);

	this.instance_31 = new lib.koscMC0032();
	this.instance_31.setTransform(-80,-80);

	this.instance_32 = new lib.koscMC0033();
	this.instance_32.setTransform(-80,-80);

	this.instance_33 = new lib.koscMC0034();
	this.instance_33.setTransform(-80,-80);

	this.instance_34 = new lib.koscMC0035();
	this.instance_34.setTransform(-80,-80);

	this.instance_35 = new lib.koscMC0036();
	this.instance_35.setTransform(-80,-80);

	this.instance_36 = new lib.koscMC0037();
	this.instance_36.setTransform(-80,-80);

	this.instance_37 = new lib.koscMC0038();
	this.instance_37.setTransform(-80,-80);

	this.instance_38 = new lib.koscMC0039();
	this.instance_38.setTransform(-80,-80);

	this.instance_39 = new lib.koscMC0040();
	this.instance_39.setTransform(-80,-80);

	this.instance_40 = new lib.koscMC0041();
	this.instance_40.setTransform(-80,-80);

	this.instance_41 = new lib.koscMC0042();
	this.instance_41.setTransform(-80,-80);

	this.instance_42 = new lib.koscMC0043();
	this.instance_42.setTransform(-80,-80);

	this.instance_43 = new lib.koscMC0044();
	this.instance_43.setTransform(-80,-80);

	this.instance_44 = new lib.koscMC0045();
	this.instance_44.setTransform(-80,-80);

	this.instance_45 = new lib.koscMC0046();
	this.instance_45.setTransform(-80,-80);

	this.instance_46 = new lib.koscMC0047();
	this.instance_46.setTransform(-80,-80);

	this.instance_47 = new lib.koscMC0048();
	this.instance_47.setTransform(-80,-80);

	this.instance_48 = new lib.koscMC0049();
	this.instance_48.setTransform(-80,-80);

	this.instance_49 = new lib.koscMC0050();
	this.instance_49.setTransform(-80,-80);

	this.instance_50 = new lib.koscMC0051();
	this.instance_50.setTransform(-80,-80);

	this.instance_51 = new lib.koscMC0052();
	this.instance_51.setTransform(-80,-80);

	this.instance_52 = new lib.koscMC0053();
	this.instance_52.setTransform(-80,-80);

	this.instance_53 = new lib.koscMC0054();
	this.instance_53.setTransform(-80,-80);

	this.instance_54 = new lib.koscMC0055();
	this.instance_54.setTransform(-80,-80);

	this.instance_55 = new lib.koscMC0056();
	this.instance_55.setTransform(-80,-80);

	this.instance_56 = new lib.koscMC0057();
	this.instance_56.setTransform(-80,-80);

	this.instance_57 = new lib.koscMC0058();
	this.instance_57.setTransform(-80,-80);

	this.instance_58 = new lib.koscMC0059();
	this.instance_58.setTransform(-80,-80);

	this.instance_59 = new lib.koscMC0060();
	this.instance_59.setTransform(-80,-80);

	this.instance_60 = new lib.koscMC0061();
	this.instance_60.setTransform(-80,-80);

	this.instance_61 = new lib.koscMC0062();
	this.instance_61.setTransform(-80,-80);

	this.instance_62 = new lib.koscMC0063();
	this.instance_62.setTransform(-80,-80);

	this.instance_63 = new lib.koscMC0064();
	this.instance_63.setTransform(-80,-80);

	this.instance_64 = new lib.koscMC0065();
	this.instance_64.setTransform(-80,-80);

	this.instance_65 = new lib.koscMC0066();
	this.instance_65.setTransform(-80,-80);

	this.instance_66 = new lib.koscMC0067();
	this.instance_66.setTransform(-80,-80);

	this.instance_67 = new lib.koscMC0068();
	this.instance_67.setTransform(-80,-80);

	this.instance_68 = new lib.koscMC0069();
	this.instance_68.setTransform(-80,-80);

	this.instance_69 = new lib.koscMC0070();
	this.instance_69.setTransform(-80,-80);

	this.instance_70 = new lib.koscMC0071();
	this.instance_70.setTransform(-80,-80);

	this.instance_71 = new lib.koscMC0072();
	this.instance_71.setTransform(-80,-80);

	this.instance_72 = new lib.koscMC0073();
	this.instance_72.setTransform(-80,-80);

	this.instance_73 = new lib.koscMC0074();
	this.instance_73.setTransform(-80,-80);

	this.instance_74 = new lib.koscMC0075();
	this.instance_74.setTransform(-80,-80);

	this.instance_75 = new lib.koscMC0076();
	this.instance_75.setTransform(-80,-80);

	this.instance_76 = new lib.koscMC0077();
	this.instance_76.setTransform(-80,-80);

	this.instance_77 = new lib.koscMC0078();
	this.instance_77.setTransform(-80,-80);

	this.instance_78 = new lib.koscMC0079();
	this.instance_78.setTransform(-80,-80);

	this.instance_79 = new lib.koscMC0080();
	this.instance_79.setTransform(-80,-80);

	this.instance_80 = new lib.koscMC0081();
	this.instance_80.setTransform(-80,-80);

	this.instance_81 = new lib.koscMC0082();
	this.instance_81.setTransform(-80,-80);

	this.instance_82 = new lib.koscMC0083();
	this.instance_82.setTransform(-80,-80);

	this.instance_83 = new lib.koscMC0084();
	this.instance_83.setTransform(-80,-80);

	this.instance_84 = new lib.koscMC0085();
	this.instance_84.setTransform(-80,-80);

	this.instance_85 = new lib.koscMC0086();
	this.instance_85.setTransform(-80,-80);

	this.instance_86 = new lib.koscMC0087();
	this.instance_86.setTransform(-80,-80);

	this.instance_87 = new lib.koscMC0088();
	this.instance_87.setTransform(-80,-80);

	this.instance_88 = new lib.koscMC0089();
	this.instance_88.setTransform(-80,-80);

	this.instance_89 = new lib.koscMC0090();
	this.instance_89.setTransform(-80,-80);

	this.instance_90 = new lib.koscMC0091();
	this.instance_90.setTransform(-80,-80);

	this.instance_91 = new lib.koscMC0092();
	this.instance_91.setTransform(-80,-80);

	this.instance_92 = new lib.koscMC0093();
	this.instance_92.setTransform(-80,-80);

	this.instance_93 = new lib.koscMC0094();
	this.instance_93.setTransform(-80,-80);

	this.instance_94 = new lib.koscMC0095();
	this.instance_94.setTransform(-80,-80);

	this.instance_95 = new lib.koscMC0096();
	this.instance_95.setTransform(-80,-80);

	this.instance_96 = new lib.koscMC0097();
	this.instance_96.setTransform(-80,-80);

	this.instance_97 = new lib.koscMC0098();
	this.instance_97.setTransform(-80,-80);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance}]}).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:[{t:this.instance_7}]},1).to({state:[{t:this.instance_8}]},1).to({state:[{t:this.instance_9}]},1).to({state:[{t:this.instance_10}]},1).to({state:[{t:this.instance_11}]},1).to({state:[{t:this.instance_12}]},1).to({state:[{t:this.instance_13}]},1).to({state:[{t:this.instance_14}]},1).to({state:[{t:this.instance_15}]},1).to({state:[{t:this.instance_16}]},1).to({state:[{t:this.instance_17}]},1).to({state:[{t:this.instance_18}]},1).to({state:[{t:this.instance_19}]},1).to({state:[{t:this.instance_20}]},1).to({state:[{t:this.instance_21}]},1).to({state:[{t:this.instance_22}]},1).to({state:[{t:this.instance_23}]},1).to({state:[{t:this.instance_24}]},1).to({state:[{t:this.instance_25}]},1).to({state:[{t:this.instance_26}]},1).to({state:[{t:this.instance_27}]},1).to({state:[{t:this.instance_28}]},1).to({state:[{t:this.instance_29}]},1).to({state:[{t:this.instance_30}]},1).to({state:[{t:this.instance_31}]},1).to({state:[{t:this.instance_32}]},1).to({state:[{t:this.instance_33}]},1).to({state:[{t:this.instance_34}]},1).to({state:[{t:this.instance_35}]},1).to({state:[{t:this.instance_36}]},1).to({state:[{t:this.instance_37}]},1).to({state:[{t:this.instance_38}]},1).to({state:[{t:this.instance_39}]},1).to({state:[{t:this.instance_40}]},1).to({state:[{t:this.instance_41}]},1).to({state:[{t:this.instance_42}]},1).to({state:[{t:this.instance_43}]},1).to({state:[{t:this.instance_44}]},1).to({state:[{t:this.instance_45}]},1).to({state:[{t:this.instance_46}]},1).to({state:[{t:this.instance_47}]},1).to({state:[{t:this.instance_48}]},1).to({state:[{t:this.instance_49}]},1).to({state:[{t:this.instance_50}]},1).to({state:[{t:this.instance_51}]},1).to({state:[{t:this.instance_52}]},1).to({state:[{t:this.instance_53}]},1).to({state:[{t:this.instance_54}]},1).to({state:[{t:this.instance_55}]},1).to({state:[{t:this.instance_56}]},1).to({state:[{t:this.instance_57}]},1).to({state:[{t:this.instance_58}]},1).to({state:[{t:this.instance_59}]},1).to({state:[{t:this.instance_60}]},1).to({state:[{t:this.instance_61}]},1).to({state:[{t:this.instance_62}]},1).to({state:[{t:this.instance_63}]},1).to({state:[{t:this.instance_64}]},1).to({state:[{t:this.instance_65}]},1).to({state:[{t:this.instance_66}]},1).to({state:[{t:this.instance_67}]},1).to({state:[{t:this.instance_68}]},1).to({state:[{t:this.instance_69}]},1).to({state:[{t:this.instance_70}]},1).to({state:[{t:this.instance_71}]},1).to({state:[{t:this.instance_72}]},1).to({state:[{t:this.instance_73}]},1).to({state:[{t:this.instance_74}]},1).to({state:[{t:this.instance_75}]},1).to({state:[{t:this.instance_76}]},1).to({state:[{t:this.instance_77}]},1).to({state:[{t:this.instance_78}]},1).to({state:[{t:this.instance_79}]},1).to({state:[{t:this.instance_80}]},1).to({state:[{t:this.instance_81}]},1).to({state:[{t:this.instance_82}]},1).to({state:[{t:this.instance_83}]},1).to({state:[{t:this.instance_84}]},1).to({state:[{t:this.instance_85}]},1).to({state:[{t:this.instance_86}]},1).to({state:[{t:this.instance_87}]},1).to({state:[{t:this.instance_88}]},1).to({state:[{t:this.instance_89}]},1).to({state:[{t:this.instance_90}]},1).to({state:[{t:this.instance_91}]},1).to({state:[{t:this.instance_92}]},1).to({state:[{t:this.instance_93}]},1).to({state:[{t:this.instance_94}]},1).to({state:[{t:this.instance_95}]},1).to({state:[{t:this.instance_96}]},1).to({state:[{t:this.instance_97}]},1).wait(1));

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = rect = new cjs.Rectangle(-80,-80,160,160);
p.frameBounds = [rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect];


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

	// Layer 2
	this.instance = new lib.gfx_dice_sh();
	this.instance.setTransform(-123.5,-43.9);

	this.addChild(this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(-123.5,-43.9,247,88);
p.frameBounds = [rect];


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

	// Layer 1
	this.instance = new lib.dropIn();
	this.instance.setTransform(30,30,1,1,0,0,0,30,30);
	this.instance.alpha = 0.5;

	this.addChild(this.instance);
}).prototype = p = new cjs.Container();
p.nominalBounds = rect = new cjs.Rectangle(0,0,60,60);
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() {
		/* Drag Dice */
		var config = {
			id: '33478',
			title: 'Masz za zadanie pomóc panu woźnemu – musisz odnaleźć i pozamykać wszystkie drzwi. Rzuć najpierw kostką i przesuń się o odpowiednią liczbę pól na planie szkoły. Dotrzyj do różnych pokoi i zamknij je. Wygrywa ten, kto pierwszy zamknie wszystkie drzwi.',
			type: 'dragdice',
			container: this,
			container: this,
			prefix: 'drag_',
			prefix2: 'drop_',	
			players: {min: 2, max: 4},
			alert: 'Wpisz liczbę graczy. Gra przeznaczone jest dla 2 - 4 graczy',
			alpha: 0,
			alpha2: 0,
			range: 20,
			results: {meta: 46},
			
			endsound: 'ssBrawa', exerciseAfterInit: function (config) {
				for (var playerName in config.container) {
					if (playerName.indexOf(config.prefix) > -1) {
						var playerPawn = config.container[playerName];
						playerPawn.doors = 0;
					}
				}
			},
			exerciseBeforeFinish: function (config) {	
			},
			exerciseExtraCheck: function (config) {		
			},
			exerciseCustomPosition: function(obj) {		
				var dice = this.container['dice'];
				var diceNum = dice.parent['num'];
				var nextPosition = obj.position + diceNum;
				
				//console.log(obj.position, nextPosition);
				
				if(nextPosition > 45) {
					//console.log(nextPosition - 45 + 2);
					return nextPosition - 45 + 2;
				}
				
				return nextPosition;
			},
			exerciseExtraCondition: function (obj) {
				
				//console.log(obj);
				var player = this.container[this.prefix+obj.player];
				if(typeof player.doors === 'undefined') {
					var doors = [];
					doors[5] = {name: 'Pokój pedagoda', close: false};
					doors[11] = {name: 'Sekretariat', close: false};
					doors[16] = {name: 'Pokój nauczycielski', close: false};
					doors[22] = {name: 'Kuchnia', close: false};
					doors[23] = {name: 'Pokój sprzątaczki', close: false};
					doors[27] = {name: 'Gabinet dyrektora', close: false};
					doors[36] = {name: 'Pielęgniarka', close: false};
					doors[39] = {name: 'Woźny', close: false};
					doors[42] = {name: 'Biblioteka', close: false};
					doors[44] = {name: 'Sekretariat', close: false};
					player.doors = doors;
				}
				
				//console.log(player);
				if(
					obj.position === 5 ||
					obj.position === 11 ||
					obj.position === 16 ||
					obj.position === 22 ||
					obj.position === 23 ||
					obj.position === 27 ||
					obj.position === 36 ||
					obj.position === 39 ||
					obj.position === 42 ||
					obj.position === 44
				) {
					player.doors[obj.position].close = true;
					createMessage(player.doors, obj.position);
					checkExerciseOnComplete(player.doors);
					//console.log(player, player.doors);
				}
			},
		}
		
		function createMessage(doors, pos) {
			msg = doors[pos].name + '!';
			//msg = doors[pos].name + '!\nZamknięte prze Ciebie drzwi:';
			for(var i in doors) {
				if(doors[i].close === true) {
					//msg = msg + ',' + doors[i].name + '\n';
				}
			}
			showMessage(msg);
		}
		
		function checkExerciseOnComplete(doors) {
			//console.log(doors);
			//console.log(doors);
			var isComplete = false;
			for(var i in doors) {
				if(doors[i].close === true) {
					isComplete = true;
				}
				else {
					isComplete = false;
					break;
				}
			}
			
			//console.log(isComplete);
			if(isComplete === true) {
				exerciseOnComplete();
			}
		}
		
		exerciseOnInit(config);
		
		
		/* Custom functions */
		
		
		this.stop();
		
		/* Help */
		
		/* 
		id - Id cwiczenia
		title - Tytul cwiczenia
		type - Typ Cwiczenia
		contanier - Kontener cwiczenia
		groups - Lista grup 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
		scale - Skalowanie obiektu po upuszczeniu
		zindex - Warstwa obiektu
		*/
	}

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

	// drop
	this.drop_45 = new lib.dropMc();
	this.drop_45.setTransform(475.2,417.5,1,1,0,0,0,30,30);

	this.drop_44 = new lib.dropMc();
	this.drop_44.setTransform(491.2,479.5,1,1,0,0,0,30,30);

	this.drop_43 = new lib.dropMc();
	this.drop_43.setTransform(506.2,529.5,1,1,0,0,0,30,30);

	this.drop_42 = new lib.dropMc();
	this.drop_42.setTransform(520.2,576.5,1,1,0,0,0,30,30);

	this.drop_41 = new lib.dropMc();
	this.drop_41.setTransform(549.2,623.5,1,1,0,0,0,30,30);

	this.drop_40 = new lib.dropMc();
	this.drop_40.setTransform(580.2,650.5,1,1,0,0,0,30,30);

	this.drop_39 = new lib.dropMc();
	this.drop_39.setTransform(630.2,662.5,1,1,0,0,0,30,30);

	this.drop_38 = new lib.dropMc();
	this.drop_38.setTransform(701.6,661.5,1,1,0,0,0,30,30);

	this.drop_37 = new lib.dropMc();
	this.drop_37.setTransform(749.6,626,1,1,0,0,0,30,30);

	this.drop_36 = new lib.dropMc();
	this.drop_36.setTransform(775.7,578.5,1,1,0,0,0,30,30);

	this.drop_35 = new lib.dropMc();
	this.drop_35.setTransform(788.6,532.5,1,1,0,0,0,30,30);

	this.drop_34 = new lib.dropMc();
	this.drop_34.setTransform(803.6,478,1,1,0,0,0,30,30);

	this.drop_33 = new lib.dropMc();
	this.drop_33.setTransform(752.6,452,1,1,0,0,0,30,30);

	this.drop_32 = new lib.dropMc();
	this.drop_32.setTransform(705.6,436,1,1,0,0,0,30,30);

	this.drop_31 = new lib.dropMc();
	this.drop_31.setTransform(658.2,424.9,1,1,0,0,0,30,30);

	this.drop_30 = new lib.dropMc();
	this.drop_30.setTransform(664.2,379,1,1,0,0,0,30,30);

	this.drop_29 = new lib.dropMc();
	this.drop_29.setTransform(672.2,348,1,1,0,0,0,30,30);

	this.drop_28 = new lib.dropMc();
	this.drop_28.setTransform(684.6,293,1,1,0,0,0,30,30);

	this.drop_27 = new lib.dropMc();
	this.drop_27.setTransform(740.6,311,1,1,0,0,0,30,30);

	this.drop_26 = new lib.dropMc();
	this.drop_26.setTransform(788.6,336.9,1,1,0,0,0,30,30);

	this.drop_25 = new lib.dropMc();
	this.drop_25.setTransform(828.6,371.9,1,1,0,0,0,30,30);

	this.drop_24 = new lib.dropMc();
	this.drop_24.setTransform(856.6,417,1,1,0,0,0,30,30);

	this.drop_23 = new lib.dropMc();
	this.drop_23.setTransform(906.6,420,1,1,0,0,0,30,30);

	this.drop_22 = new lib.dropMc();
	this.drop_22.setTransform(956.1,424.9,1,1,0,0,0,30,30);

	this.drop_21 = new lib.dropMc();
	this.drop_21.setTransform(994.6,431.9,1,1,0,0,0,30,30);

	this.drop_20 = new lib.dropMc();
	this.drop_20.setTransform(1039.6,440,1,1,0,0,0,30,30);

	this.drop_19 = new lib.dropMc();
	this.drop_19.setTransform(1028.6,380,1,1,0,0,0,30,30);

	this.drop_18 = new lib.dropMc();
	this.drop_18.setTransform(1023.8,328,1,1,0,0,0,30,30);

	this.drop_17 = new lib.dropMc();
	this.drop_17.setTransform(1009.6,269,1,1,0,0,0,30,30);

	this.drop_16 = new lib.dropMc();
	this.drop_16.setTransform(987.6,213.1,1,1,0,0,0,30,30);

	this.drop_15 = new lib.dropMc();
	this.drop_15.setTransform(949.6,173,1,1,0,0,0,30,30);

	this.drop_14 = new lib.dropMc();
	this.drop_14.setTransform(889.6,146,1,1,0,0,0,30,30);

	this.drop_13 = new lib.dropMc();
	this.drop_13.setTransform(828.6,142,1,1,0,0,0,30,30);

	this.drop_12 = new lib.dropMc();
	this.drop_12.setTransform(774.2,136,1,1,0,0,0,30,30);

	this.drop_11 = new lib.dropMc();
	this.drop_11.setTransform(718.2,153.1,1,1,0,0,0,30,30);

	this.drop_10 = new lib.dropMc();
	this.drop_10.setTransform(665.2,188,1,1,0,0,0,30,30);

	this.drop_9 = new lib.dropMc();
	this.drop_9.setTransform(614.2,215,1,1,0,0,0,30,30);

	this.drop_8 = new lib.dropMc();
	this.drop_8.setTransform(567.2,233,1,1,0,0,0,30,30);

	this.drop_7 = new lib.dropMc();
	this.drop_7.setTransform(522.2,250,1,1,0,0,0,30,30);

	this.drop_6 = new lib.dropMc();
	this.drop_6.setTransform(486.3,269,1,1,0,0,0,30,30);

	this.drop_5 = new lib.dropMc();
	this.drop_5.setTransform(455.3,299,1,1,0,0,0,30,30);

	this.drop_4 = new lib.dropMc();
	this.drop_4.setTransform(432.3,337,1,1,0,0,0,30,30);

	this.drop_3 = new lib.dropMc();
	this.drop_3.setTransform(415.3,388,1,1,0,0,0,30,30);

	this.drop_2 = new lib.dropMc();
	this.drop_2.setTransform(392.3,448,1,1,0,0,0,30,30);

	this.drop_1 = new lib.dropMc();
	this.drop_1.setTransform(377.3,499,1,1,0,0,0,30,30);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{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},{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_28},{t:this.drop_29},{t:this.drop_30},{t:this.drop_31},{t:this.drop_32},{t:this.drop_33},{t:this.drop_34},{t:this.drop_35},{t:this.drop_36},{t:this.drop_37},{t:this.drop_38},{t:this.drop_39},{t:this.drop_40},{t:this.drop_41},{t:this.drop_42},{t:this.drop_43},{t:this.drop_44},{t:this.drop_45}]}).wait(1));

	// content
	this.drag_4 = new lib.p4();
	this.drag_4.setTransform(275.9,546,1,1,0,0,0,27,110);

	this.drag_3 = new lib.p3();
	this.drag_3.setTransform(211.7,546,1,1,0,0,0,9,99);

	this.drag_2 = new lib.p2();
	this.drag_2.setTransform(183.8,541,1,1,0,0,0,25,94);

	this.drag_1 = new lib.p1();
	this.drag_1.setTransform(126.3,541,1,1,0,0,0,6.5,94);

	this.dice = new lib.diceMc();
	this.dice.setTransform(103.1,628.9,0.745,0.745);

	this.instance = new lib.diceSh();
	this.instance.setTransform(102,670.9,0.745,0.745);
	this.instance.filters = [new cjs.ColorFilter(0.5, 0.5, 0.5, 1, 122.5, 108.5, 25.5, 0)];
	this.instance.cache(-125,-46,251,92);

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

	// bg
	this.instance_1 = new lib.Bitmap6();
	this.instance_1.setTransform(89.8,526.8);

	this.instance_2 = new lib.Bitmap1();
	this.instance_2.setTransform(165.7,13.2);

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

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = rect = new cjs.Rectangle(10,13.2,1154.7,695);
p.frameBounds = [rect];


// 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(650,373.2,1154.7,695);
p.frameBounds = [rect];

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