Frame 1
function doSomething2() {
getURL ("http://www.flak-games.com", "_blank");
}
function doSomething3() {
_quality = "BEST";
}
function doSomething4() {
_quality = "MEDIUM";
}
function doSomething5() {
_quality = "LOW";
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned2 = new ContextMenuItem("\u00A9 2008 Flak-Games.com. All Rights Reserved", doSomething2);
Functioned3 = new ContextMenuItem("High Quality", doSomething3);
Functioned4 = new ContextMenuItem("Medium Quality", doSomething4);
Functioned5 = new ContextMenuItem("Low Quality", doSomething5);
Functioned3.separatorBefore = true;
MENU.customItems.push(Functioned2, Functioned3, Functioned4, Functioned5);
_root.menu = MENU;
__com_mochibot__("89d1dc2f", this, 10301, true);
Instance of Symbol 2 MovieClip "pleasewait" in Frame 1
onClipEvent (enterFrame) {
if (_root._framesloaded >= 4) {
_root.play();
}
}
Frame 2
function playsong(n) {
stopAllSounds();
_root.nsong = n;
trace(_root.nsong);
_root.mySound = new Sound();
if (n == 1) {
_root.mySound.attachSound("breathe");
}
if (n == 2) {
_root.mySound.attachSound("chaoz fantasy");
}
if (n == 3) {
_root.mySound.attachSound("rockit");
}
_root.mySound.start(0, 100000);
}
stop();
Frame 3
MochiAd.showInterLevelAd({id:"8117407cbfd44fd6", res:"650x500", no_bg:true});
Frame 4
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar._width = 5 * _root.percentLoaded;
_root.plt2 = (_root.bytesTotal / 1000) + " KB";
_root.plt3 = (_root.bytesLoaded / 1000) + " KB";
_root.plt4 = ((_root.bytesTotal - _root.bytesLoaded) / 1000) + " KB";
duplicate = function () {
duplicateMovieClip (_root.mainloaderg, "mainloaderg" + _root.n, _root.getNextHighestDepth() + _root.n);
};
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Frame 5
if (_root.percentLoaded == 100) {
gotoAndPlay (6);
} else {
gotoAndPlay (4);
}
if (_root._framesloaded >= 16) {
game = SharedObject.getLocal("minigamecollectioninfo");
if (game.data.autostream == "yes") {
gotoAndPlay (6);
}
}
Frame 6
_root.totaltime = 0;
_root.totaltime1 = 0;
resetlevel = 0;
_root.ttime1 = 0;
_root.ttime = 0;
if (!_root.songplaying) {
_root.songplaying = 1;
playsong(1);
}
function doSomething2() {
getURL ("http://www.flak-games.com", "_blank");
}
function doSomething3() {
_quality = "BEST";
}
function doSomething4() {
_quality = "MEDIUM";
}
function doSomething5() {
_quality = "LOW";
}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned2 = new ContextMenuItem("\u00A9 2008 Flak-Games.com. All Rights Reserved", doSomething2);
Functioned3 = new ContextMenuItem("High Quality", doSomething3);
Functioned4 = new ContextMenuItem("Medium Quality", doSomething4);
Functioned5 = new ContextMenuItem("Low Quality", doSomething5);
Functioned3.separatorBefore = true;
MENU.customItems.push(Functioned2, Functioned3, Functioned4, Functioned5);
_root.menu = MENU;
stop();
Instance of Symbol 70 MovieClip "bg" in Frame 6
onClipEvent (enterFrame) {
if (_root.colorscheme == "blue") {
this.gotoAndStop(1);
}
if (_root.colorscheme == "red") {
this.gotoAndStop(2);
}
if (_root.colorscheme == "black") {
this.gotoAndStop(3);
}
}
Instance of Symbol 75 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this._currentframe != _root.bg._currentframe) {
this.gotoAndStop(_root.bg._currentframe);
}
}
Instance of Symbol 155 MovieClip in Frame 6
onClipEvent (enterFrame) {
if ((!Key.isDown(80)) && (this._currentframe > 1)) {
toggled = 1;
}
if ((!Key.isDown(80)) && (this._currentframe == 1)) {
toggled2 = 1;
}
if ((Key.isDown(80) && (this._currentframe == 1)) && (toggled2)) {
this.gotoAndStop(1 + _root.bg._currentframe);
toggled2 = 0;
}
if ((Key.isDown(80) && (this._currentframe > 1)) && (toggled)) {
this.gotoAndStop(1);
toggled = 0;
}
}
Instance of Symbol 175 MovieClip "wall" in Frame 9
onClipEvent (load) {
startframe = _root._currentframe;
}
onClipEvent (enterFrame) {
if (_root._currentframe != startframe) {
this.removeMovieClip(this);
}
}
Instance of Symbol 183 MovieClip "nwall" in Frame 9
onClipEvent (load) {
startframe = _root._currentframe;
}
onClipEvent (enterFrame) {
if (_root._currentframe != startframe) {
this.removeMovieClip(this);
}
}
Instance of Symbol 185 MovieClip "b1" in Frame 9
onClipEvent (load) {
ycpos = 8;
xcpos = 8;
l = 1;
while (l < 5) {
if (((((((((_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb1") && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb2")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb3")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb4")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb5")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb6")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb7")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb8")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb9")) {
_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] = "full";
}
l++;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(67) && (Key.isDown(72))) {
_root.gotoAndStop("level complete");
}
if ((((_root["grid" + _root.b1.ycpos][_root.b1.xcpos] == "fullb5") && (_root["grid" + _root.b2.ycpos][_root.b2.xcpos] == "fullb6")) && (_root["grid" + _root.b3.ycpos][_root.b3.xcpos] == "fullb7")) && (_root["grid" + _root.b4.ycpos][_root.b4.xcpos] == "fullb8")) {
_root.gotoAndStop("level complete");
}
if ((((_root["grid" + _root.b1.ycpos][_root.b1.xcpos] == "fullb5") && (_root["grid" + _root.b2.ycpos][_root.b2.xcpos] == "fullb6")) && (_root["grid" + _root.b3.ycpos][_root.b3.xcpos] == "fullb7")) && (_root.boxes == 3)) {
_root.gotoAndStop("level complete");
trace((ycpos + " ") + xcpos);
}
if (((_root["grid" + _root.b1.ycpos][_root.b1.xcpos] == "fullb5") && (_root["grid" + _root.b2.ycpos][_root.b2.xcpos] == "fullb6")) && (_root.boxes == 2)) {
_root.gotoAndStop("level complete");
}
if (Key.isDown(39)) {
if (rts) {
} else {
rts = 1;
l = 1;
while (l < 5) {
k = 1;
while (k < 5) {
if ((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos + 1] == "empty") && (!_root["b" + k].bmoved)) {
if ((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + k)) && (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + (k + 4)))) {
_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] = "empty";
}
_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos + 1] = "full";
_root["b" + k].bmoved = 1;
_root["b" + k].xcpos++;
_root["b" + k]._x = _root["b" + k]._x + _root["b" + k]._width;
}
if (((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos + 1] == ("fullb" + k)) || (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos + 1] == ("fullb" + (k + 4)))) && (!_root["b" + k].bmoved)) {
if ((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + k)) && (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + (k + 4)))) {
_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] = "empty";
}
_root["b" + k].bmoved = 1;
_root["b" + k].xcpos++;
_root["b" + k]._x = _root["b" + k]._x + _root["b" + k]._width;
}
k++;
}
l++;
}
}
} else {
rts = 0;
l = 1;
while (l < 5) {
_root["b" + l].bmoved = 0;
l++;
}
}
if (Key.isDown(37)) {
if (lts) {
} else {
lts = 1;
l = 1;
while (l < 5) {
k = 1;
while (k < 5) {
if ((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos - 1] == "empty") && (!_root["b" + k].bmoved)) {
if ((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + k)) && (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + (k + 4)))) {
_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] = "empty";
trace("LL");
}
_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos - 1] = "full";
_root["b" + k].bmoved = 1;
_root["b" + k].xcpos--;
_root["b" + k]._x = _root["b" + k]._x - _root["b" + k]._width;
}
if (((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos - 1] == ("fullb" + k)) || (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos - 1] == ("fullb" + (k + 4)))) && (!_root["b" + k].bmoved)) {
if ((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + k)) && (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + (k + 4)))) {
_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] = "empty";
}
_root["b" + k].bmoved = 1;
_root["b" + k].xcpos--;
_root["b" + k]._x = _root["b" + k]._x - _root["b" + k]._width;
}
k++;
}
l++;
}
}
} else {
lts = 0;
l = 1;
while (l < 5) {
_root["b" + l].bmoved = 0;
l++;
}
}
if (Key.isDown(38)) {
if (uts) {
} else {
uts = 1;
j = 1;
while (j < 5) {
i = 1;
while (i < 5) {
if ((_root["grid" + (_root["b" + i].ycpos - 1)][_root["b" + i].xcpos] == "empty") && (!_root["b" + i].bymoved)) {
if ((_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + i)) && (_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + (i + 4)))) {
_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] = "empty";
}
_root["grid" + (_root["b" + i].ycpos - 1)][_root["b" + i].xcpos] = "full";
_root["b" + i].bymoved = 1;
_root["b" + i].ycpos--;
_root["b" + i]._y = _root["b" + i]._y - _root["b" + i]._width;
}
if (((_root["grid" + (_root["b" + i].ycpos - 1)][_root["b" + i].xcpos] == ("fullb" + i)) || (_root["grid" + (_root["b" + i].ycpos - 1)][_root["b" + i].xcpos] == ("fullb" + (i + 4)))) && (!_root["b" + i].bymoved)) {
if ((_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + i)) && (_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + (i + 4)))) {
_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] = "empty";
}
_root["b" + i].bymoved = 1;
_root["b" + i].ycpos--;
_root["b" + i]._y = _root["b" + i]._y - _root["b" + i]._width;
}
i++;
}
j++;
}
}
} else {
j = 1;
while (j < 5) {
_root["b" + j].bymoved = 0;
j++;
}
uts = 0;
}
if (Key.isDown(40)) {
if (dts) {
} else {
dts = 1;
j = 1;
while (j < 5) {
i = 1;
while (i < 5) {
if ((_root["grid" + (_root["b" + i].ycpos + 1)][_root["b" + i].xcpos] == "empty") && (!_root["b" + i].bymoved)) {
if ((_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + i)) && (_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + (i + 4)))) {
_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] = "empty";
}
_root["grid" + (_root["b" + i].ycpos + 1)][_root["b" + i].xcpos] = "full";
_root["b" + i].bymoved = 1;
_root["b" + i].ycpos++;
_root["b" + i]._y = _root["b" + i]._y + _root["b" + i]._width;
}
if (((_root["grid" + (_root["b" + i].ycpos + 1)][_root["b" + i].xcpos] == ("fullb" + i)) || (_root["grid" + (_root["b" + i].ycpos + 1)][_root["b" + i].xcpos] == ("fullb" + (i + 4)))) && (!_root["b" + i].bymoved)) {
if ((_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + i)) && (_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + (i + 4)))) {
_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] = "empty";
}
_root["b" + i].bymoved = 1;
_root["b" + i].ycpos++;
_root["b" + i]._y = _root["b" + i]._y + _root["b" + i]._width;
}
i++;
}
j++;
}
}
} else {
i = 1;
while (i < 5) {
_root["b" + i].bymoved = 0;
i++;
}
dts = 0;
}
}
onClipEvent (load) {
startframe = _root._currentframe;
}
onClipEvent (enterFrame) {
if (_root._currentframe != startframe) {
this.removeMovieClip(this);
}
}
Instance of Symbol 183 MovieClip "nwall" in Frame 9
onClipEvent (load) {
this.gotoAndStop(5);
}
Frame 15
i = 1;
while (i < 17) {
_root["grid" + i] = new Object();
j = 1;
while (j < 17) {
_root["grid" + i][j] = "empty";
j++;
}
i++;
}
_root.boxes = 4;
if (level == undefined) {
level = 1;
}
if (difficulty == "Easy") {
_root.boxes = 2;
par = [7, 7, 7, 7, 10, 10, 10, 11, 12, 15, 15, 15, 15, 15, 18, 20, 25, 25, 34, 40, 24];
}
if (difficulty == "Medium") {
_root.boxes = 3;
par = [3, 4, 5, 7, 7, 9, 10, 15, 20, 20, 20, 20, 23, 23, 24, 30, 31, 37, 37, 124];
}
if (difficulty == "Hard") {
_root.boxes = 4;
par = [3, 6, 9, 10, 12, 15, 18, 18, 20, 25, 30, 30, 31, 37, 45, 58, 60, 60, 74, 263];
par = [30, 60, 30, 74, 15, 58, 31, 45, 10, 3, 20, 12, 18, 6, 9, 37, 60, 25, 263, 18];
}
par1 = par[level - 1];
stop();
if ((level == 1) && (difficulty == "Easy")) {
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid11[7] = "full";
_root.grid11[5] = "full";
_root.grid10[7] = "full";
_root.grid10[5] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[8] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "fullb5";
_root.grid9[5] = "full";
_root.grid8[10] = "full";
_root.grid8[5] = "full";
_root.grid7[10] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "fullb6";
_root.grid6[8] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
}
if ((level == 2) && (difficulty == "Easy")) {
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[8] = "full";
_root.grid9[7] = "full";
_root.grid9[5] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "fullb5";
_root.grid8[10] = "fullb1";
_root.grid8[5] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "fullb6";
_root.grid7[5] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
}
if ((level == 3) && (difficulty == "Easy")) {
_root.boxes = 3;
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid11[4] = "full";
_root.grid11[3] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "fullb6";
_root.grid10[9] = "full";
_root.grid10[8] = "fullb7";
_root.grid10[7] = "full";
_root.grid10[3] = "full";
_root.grid9[11] = "full";
_root.grid9[9] = "full";
_root.grid9[5] = "fullb5";
_root.grid9[3] = "full";
_root.grid8[11] = "full";
_root.grid8[7] = "full";
_root.grid8[3] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
}
if ((level == 4) && (difficulty == "Easy")) {
_root.boxes = 3;
_root.grid13[10] = "full";
_root.grid13[9] = "full";
_root.grid13[8] = "full";
_root.grid12[10] = "full";
_root.grid12[8] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "fullb7";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[7] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "fullb5";
_root.grid8[6] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid6[11] = "full";
_root.grid6[7] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "fullb6";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
}
if ((level == 5) && (difficulty == "Easy")) {
_root.grid13[14] = "full";
_root.grid13[13] = "full";
_root.grid13[12] = "full";
_root.grid13[11] = "full";
_root.grid13[10] = "full";
_root.grid13[9] = "full";
_root.grid13[8] = "full";
_root.grid13[7] = "full";
_root.grid13[6] = "full";
_root.grid13[5] = "full";
_root.grid13[4] = "full";
_root.grid12[14] = "full";
_root.grid12[12] = "fullb6";
_root.grid12[11] = "full";
_root.grid12[9] = "fullb5";
_root.grid12[8] = "full";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid12[4] = "full";
_root.grid11[14] = "full";
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid11[4] = "full";
_root.grid10[14] = "full";
_root.grid10[12] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid9[14] = "full";
_root.grid9[13] = "fullb2";
_root.grid9[12] = "fullb2";
_root.grid9[11] = "fullb1";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[8] = "full";
_root.grid9[7] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid8[14] = "full";
_root.grid8[13] = "full";
_root.grid8[10] = "fullb2";
_root.grid8[5] = "full";
_root.grid8[4] = "full";
_root.grid7[14] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "fullb1";
_root.grid7[4] = "full";
_root.grid6[14] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid5[14] = "full";
_root.grid5[13] = "full";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[4] = "full";
_root.grid4[14] = "full";
_root.grid4[13] = "full";
_root.grid4[12] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
_root.grid4[5] = "full";
_root.grid4[4] = "full";
}
if ((level == 6) && (difficulty == "Easy")) {
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid10[3] = "full";
_root.grid10[2] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[8] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "fullb5";
_root.grid9[2] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "full";
_root.grid8[7] = "full";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid8[3] = "full";
_root.grid8[2] = "full";
_root.grid7[12] = "full";
_root.grid7[3] = "full";
_root.grid7[2] = "full";
_root.grid6[12] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid6[3] = "full";
_root.grid6[2] = "full";
_root.grid5[12] = "full";
_root.grid5[9] = "fullb6";
_root.grid5[8] = "full";
_root.grid4[12] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid3[12] = "full";
_root.grid3[11] = "full";
_root.grid3[10] = "full";
_root.grid3[9] = "full";
_root.grid3[8] = "full";
}
if ((level == 7) && (difficulty == "Easy")) {
_root.boxes = 3;
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid8[11] = "full";
_root.grid8[5] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "fullb5";
_root.grid7[9] = "full";
_root.grid7[8] = "fullb7";
_root.grid7[7] = "full";
_root.grid7[6] = "fullb6";
_root.grid7[5] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
}
if ((level == 8) && (difficulty == "Easy")) {
_root.boxes = 3;
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "full";
_root.grid8[7] = "full";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid6[12] = "full";
_root.grid6[6] = "fullb7";
_root.grid6[5] = "full";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
_root.grid5[9] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid4[12] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "fullb5";
_root.grid4[9] = "full";
_root.grid4[8] = "fullb6";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
_root.grid4[5] = "full";
_root.grid3[12] = "full";
_root.grid3[11] = "full";
_root.grid3[10] = "full";
_root.grid3[9] = "full";
_root.grid3[8] = "full";
_root.grid3[7] = "full";
_root.grid3[6] = "full";
_root.grid3[5] = "full";
}
if ((level == 9) && (difficulty == "Easy")) {
_root.boxes = 3;
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[7] = "fullb7";
_root.grid9[6] = "fullb3";
_root.grid9[5] = "fullb5";
_root.grid9[4] = "full";
_root.grid8[10] = "full";
_root.grid8[4] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "fullb6";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid6[10] = "full";
_root.grid6[8] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
}
if ((level == 10) && (difficulty == "Easy")) {
_root.grid12[14] = "full";
_root.grid12[13] = "full";
_root.grid12[12] = "full";
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid12[9] = "full";
_root.grid12[8] = "full";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid12[4] = "full";
_root.grid12[3] = "full";
_root.grid12[2] = "full";
_root.grid11[14] = "full";
_root.grid11[13] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid11[4] = "full";
_root.grid11[3] = "full";
_root.grid11[2] = "full";
_root.grid10[14] = "full";
_root.grid10[12] = "fullb6";
_root.grid10[11] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid10[3] = "full";
_root.grid10[2] = "full";
_root.grid9[14] = "full";
_root.grid9[11] = "full";
_root.grid9[9] = "fullb1";
_root.grid9[8] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[2] = "full";
_root.grid8[14] = "full";
_root.grid8[13] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "full";
_root.grid8[4] = "fullb5";
_root.grid8[2] = "full";
_root.grid7[14] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
_root.grid7[2] = "full";
_root.grid6[14] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid6[3] = "full";
_root.grid6[2] = "full";
}
if ((level == 11) && (difficulty == "Easy")) {
_root.grid16[9] = "full";
_root.grid16[8] = "full";
_root.grid16[7] = "fullb6";
_root.grid16[6] = "full";
_root.grid16[5] = "full";
_root.grid15[9] = "full";
_root.grid15[5] = "full";
_root.grid14[9] = "full";
_root.grid14[8] = "full";
_root.grid14[6] = "full";
_root.grid14[5] = "full";
_root.grid13[9] = "full";
_root.grid13[8] = "full";
_root.grid13[6] = "full";
_root.grid13[5] = "full";
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid12[9] = "full";
_root.grid12[8] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid11[4] = "full";
_root.grid11[3] = "full";
_root.grid11[2] = "full";
_root.grid10[11] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[2] = "full";
_root.grid9[11] = "full";
_root.grid9[9] = "full";
_root.grid9[4] = "fullb5";
_root.grid9[2] = "full";
_root.grid8[11] = "full";
_root.grid8[7] = "full";
_root.grid8[6] = "full";
_root.grid8[2] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
_root.grid7[2] = "full";
}
if ((level == 12) && (difficulty == "Easy")) {
_root.grid13[13] = "full";
_root.grid13[12] = "full";
_root.grid13[11] = "full";
_root.grid13[10] = "full";
_root.grid13[9] = "full";
_root.grid13[8] = "full";
_root.grid12[13] = "full";
_root.grid12[8] = "full";
_root.grid11[13] = "full";
_root.grid11[11] = "full";
_root.grid11[8] = "full";
_root.grid10[13] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "fullb5";
_root.grid10[8] = "full";
_root.grid9[12] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[8] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid8[12] = "full";
_root.grid8[10] = "fullb1";
_root.grid8[7] = "fullb2";
_root.grid8[4] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
_root.grid6[10] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[3] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[5] = "fullb6";
_root.grid5[3] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
_root.grid4[5] = "full";
_root.grid4[4] = "full";
_root.grid4[3] = "full";
}
if ((level == 13) && (difficulty == "Easy")) {
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "fullb1";
_root.grid9[8] = "fullb1";
_root.grid9[7] = "full";
_root.grid9[6] = "fullb2";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid9[3] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "fullb5";
_root.grid8[6] = "fullb6";
_root.grid8[3] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
}
if ((level == 14) && (difficulty == "Easy")) {
_root.boxes = 3;
_root.grid12[10] = "full";
_root.grid12[9] = "full";
_root.grid12[8] = "full";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid12[4] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "fullb7";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid11[4] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "fullb3";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[5] = "fullb5";
_root.grid9[4] = "full";
_root.grid8[10] = "full";
_root.grid8[9] = "fullb6";
_root.grid8[7] = "full";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid8[4] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
}
if ((level == 15) && (difficulty == "Easy")) {
_root.boxes = 3;
_root.grid12[10] = "full";
_root.grid12[9] = "full";
_root.grid12[8] = "full";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "fullb7";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[10] = "full";
_root.grid9[6] = "fullb5";
_root.grid9[5] = "full";
_root.grid8[10] = "full";
_root.grid8[7] = "fullb2";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "fullb6";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
_root.grid4[5] = "full";
}
if ((level == 16) && (difficulty == "Easy")) {
_root.boxes = 3;
_root.grid14[10] = "full";
_root.grid14[9] = "full";
_root.grid14[8] = "full";
_root.grid14[7] = "full";
_root.grid14[6] = "full";
_root.grid13[10] = "full";
_root.grid13[6] = "full";
_root.grid12[14] = "full";
_root.grid12[13] = "full";
_root.grid12[12] = "full";
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid12[6] = "full";
_root.grid12[8] = "fullb7";
_root.grid11[14] = "full";
_root.grid11[12] = "fullb6";
_root.grid11[10] = "full";
_root.grid11[6] = "full";
_root.grid10[14] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid9[14] = "full";
_root.grid9[13] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid8[14] = "full";
_root.grid8[13] = "full";
_root.grid8[5] = "fullb5";
_root.grid8[4] = "full";
_root.grid7[14] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
}
if ((level == 17) && (difficulty == "Easy")) {
_root.grid16[10] = "full";
_root.grid16[9] = "full";
_root.grid16[8] = "full";
_root.grid16[7] = "full";
_root.grid16[6] = "full";
_root.grid16[5] = "fullb6";
_root.grid16[4] = "fullb2";
_root.grid16[2] = "full";
_root.grid15[10] = "full";
_root.grid15[6] = "fullb1";
_root.grid15[4] = "fullb5";
_root.grid15[2] = "full";
_root.grid14[10] = "full";
_root.grid14[9] = "full";
_root.grid14[7] = "full";
_root.grid14[6] = "full";
_root.grid14[5] = "fullb1";
_root.grid14[2] = "full";
_root.grid13[10] = "full";
_root.grid13[9] = "full";
_root.grid13[7] = "full";
_root.grid13[6] = "full";
_root.grid13[5] = "full";
_root.grid13[3] = "full";
_root.grid13[2] = "full";
_root.grid12[10] = "full";
_root.grid12[9] = "full";
_root.grid12[6] = "full";
_root.grid12[3] = "full";
_root.grid12[2] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[6] = "full";
_root.grid11[3] = "full";
_root.grid11[2] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "fullb1";
_root.grid10[6] = "full";
_root.grid10[4] = "full";
_root.grid10[3] = "full";
_root.grid10[2] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[8] = "full";
_root.grid9[6] = "fullb2";
_root.grid9[4] = "full";
_root.grid9[3] = "full";
_root.grid9[2] = "full";
_root.grid8[10] = "full";
_root.grid8[6] = "fullb2";
_root.grid8[5] = "full";
_root.grid8[4] = "full";
_root.grid8[3] = "full";
_root.grid8[2] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
_root.grid7[2] = "full";
}
if ((level == 18) && (difficulty == "Easy")) {
_root.boxes = 3;
_root.grid14[13] = "full";
_root.grid14[12] = "full";
_root.grid14[11] = "full";
_root.grid14[10] = "full";
_root.grid14[9] = "full";
_root.grid14[8] = "full";
_root.grid14[7] = "full";
_root.grid14[6] = "full";
_root.grid14[5] = "full";
_root.grid14[4] = "full";
_root.grid14[3] = "full";
_root.grid13[13] = "full";
_root.grid13[12] = "fullb6";
_root.grid13[10] = "full";
_root.grid13[8] = "fullb5";
_root.grid13[6] = "full";
_root.grid13[5] = "full";
_root.grid13[4] = "full";
_root.grid13[3] = "full";
_root.grid12[13] = "full";
_root.grid12[10] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid12[4] = "full";
_root.grid12[3] = "full";
_root.grid11[13] = "full";
_root.grid11[12] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid11[4] = "full";
_root.grid11[3] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[7] = "full";
_root.grid10[3] = "full";
_root.grid9[13] = "full";
_root.grid9[12] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[7] = "fullb3";
_root.grid9[5] = "fullb7";
_root.grid9[3] = "full";
_root.grid8[13] = "full";
_root.grid8[12] = "full";
_root.grid8[10] = "fullb2";
_root.grid8[7] = "full";
_root.grid8[3] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
}
if ((level == 19) && (difficulty == "Easy")) {
_root.boxes = 3;
_root.grid15[14] = "full";
_root.grid15[13] = "full";
_root.grid15[12] = "full";
_root.grid15[11] = "full";
_root.grid15[10] = "full";
_root.grid15[9] = "full";
_root.grid15[8] = "full";
_root.grid15[7] = "full";
_root.grid15[6] = "full";
_root.grid15[5] = "full";
_root.grid15[4] = "full";
_root.grid15[3] = "full";
_root.grid14[16] = "full";
_root.grid14[15] = "full";
_root.grid14[14] = "full";
_root.grid14[13] = "full";
_root.grid14[12] = "full";
_root.grid14[11] = "full";
_root.grid14[10] = "full";
_root.grid14[9] = "full";
_root.grid14[8] = "full";
_root.grid14[7] = "full";
_root.grid14[6] = "full";
_root.grid14[5] = "full";
_root.grid14[4] = "full";
_root.grid14[3] = "full";
_root.grid14[2] = "full";
_root.grid14[1] = "full";
_root.grid12[8] = "fullb6";
_root.grid10[16] = "full";
_root.grid10[15] = "full";
_root.grid10[14] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid10[3] = "full";
_root.grid10[2] = "full";
_root.grid10[1] = "full";
_root.grid9[16] = "full";
_root.grid9[15] = "full";
_root.grid9[14] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[7] = "full";
_root.grid9[3] = "full";
_root.grid9[2] = "full";
_root.grid9[1] = "full";
_root.grid8[16] = "full";
_root.grid8[15] = "full";
_root.grid8[14] = "full";
_root.grid8[12] = "fullb7";
_root.grid8[10] = "full";
_root.grid8[7] = "full";
_root.grid8[5] = "fullb5";
_root.grid8[3] = "full";
_root.grid8[2] = "full";
_root.grid8[1] = "full";
_root.grid7[16] = "full";
_root.grid7[15] = "full";
_root.grid7[14] = "full";
_root.grid7[10] = "full";
_root.grid7[7] = "full";
_root.grid7[3] = "full";
_root.grid7[2] = "full";
_root.grid7[1] = "full";
_root.grid6[14] = "full";
_root.grid6[13] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[4] = "full";
_root.grid6[3] = "full";
_root.grid5[13] = "full";
_root.grid5[12] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid5[4] = "full";
_root.grid4[12] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
_root.grid4[5] = "full";
}
if ((level == 20) && (difficulty == "Easy")) {
_root.boxes = 4;
_root.grid12[13] = "full";
_root.grid12[12] = "full";
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid12[9] = "full";
_root.grid12[8] = "full";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid12[4] = "full";
_root.grid12[3] = "full";
_root.grid12[2] = "full";
_root.grid11[13] = "full";
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid11[3] = "full";
_root.grid11[2] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "fullb8";
_root.grid10[3] = "full";
_root.grid10[2] = "full";
_root.grid9[13] = "full";
_root.grid9[11] = "full";
_root.grid9[3] = "fullb7";
_root.grid9[2] = "full";
_root.grid8[13] = "full";
_root.grid8[10] = "fullb6";
_root.grid8[5] = "full";
_root.grid8[4] = "full";
_root.grid8[3] = "full";
_root.grid8[2] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "fullb5";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
_root.grid7[2] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid6[3] = "full";
_root.grid6[2] = "full";
}
if ((level == 16) && (difficulty == "Medium")) {
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[7] = "fullb1";
_root.grid9[6] = "fullb5";
_root.grid9[4] = "full";
_root.grid8[10] = "full";
_root.grid8[7] = "full";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid8[4] = "full";
_root.grid7[10] = "full";
_root.grid7[7] = "fullb2";
_root.grid7[6] = "fullb6";
_root.grid7[4] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "fullb3";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "fullb7";
_root.grid5[8] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
}
if ((level == 9) && (difficulty == "Medium")) {
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "full";
_root.grid8[5] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[8] = "fullb5";
_root.grid7[7] = "full";
_root.grid7[6] = "fullb7";
_root.grid7[5] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid5[11] = "full";
_root.grid5[8] = "fullb6";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
_root.grid4[5] = "full";
_root.grid3[11] = "full";
_root.grid3[10] = "full";
_root.grid3[9] = "full";
_root.grid3[8] = "full";
_root.grid3[7] = "full";
_root.grid3[6] = "full";
_root.grid3[5] = "full";
}
if ((level == 7) && (difficulty == "Medium")) {
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid11[4] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid10[3] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[7] = "fullb2";
_root.grid9[6] = "fullb6";
_root.grid9[3] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "fullb5";
_root.grid8[10] = "fullb1";
_root.grid8[7] = "full";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid8[4] = "full";
_root.grid8[3] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "fullb3";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "fullb7";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid6[3] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid5[4] = "full";
}
if ((level == 4) && (difficulty == "Medium")) {
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[13] = "full";
_root.grid9[12] = "fullb6";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid8[13] = "full";
_root.grid8[6] = "fullb5";
_root.grid8[4] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid5[13] = "full";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
_root.grid5[9] = "fullb7";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid5[4] = "full";
_root.grid4[13] = "full";
_root.grid4[12] = "full";
_root.grid4[11] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
_root.grid4[5] = "full";
_root.grid4[4] = "full";
_root.grid3[12] = "full";
_root.grid3[11] = "full";
_root.grid3[10] = "full";
_root.grid3[9] = "full";
_root.grid3[8] = "full";
_root.grid3[7] = "full";
_root.grid3[6] = "full";
_root.grid3[5] = "full";
}
if ((level == 10) && (difficulty == "Medium")) {
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid12[9] = "full";
_root.grid12[8] = "full";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "fullb5";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "fullb1";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "fullb7";
_root.grid8[10] = "full";
_root.grid8[7] = "full";
_root.grid8[6] = "fullb6";
_root.grid8[5] = "full";
_root.grid7[12] = "full";
_root.grid7[10] = "full";
_root.grid7[8] = "fullb1";
_root.grid7[7] = "full";
_root.grid7[5] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "fullb3";
_root.grid6[6] = "fullb2";
_root.grid6[5] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
}
if ((level == 5) && (difficulty == "Medium")) {
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[7] = "fullb7";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "full";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid8[4] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "fullb6";
_root.grid6[9] = "full";
_root.grid6[8] = "fullb2";
_root.grid6[7] = "fullb1";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid5[11] = "full";
_root.grid5[9] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "fullb5";
_root.grid5[4] = "full";
_root.grid4[11] = "full";
_root.grid4[7] = "fullb1";
_root.grid4[4] = "full";
_root.grid3[10] = "full";
_root.grid3[9] = "full";
_root.grid3[8] = "full";
_root.grid3[7] = "full";
_root.grid3[6] = "full";
_root.grid3[5] = "full";
}
if ((level == 6) && (difficulty == "Medium")) {
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "fullb5";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "fullb6";
_root.grid10[5] = "full";
_root.grid9[12] = "full";
_root.grid9[10] = "fullb1";
_root.grid9[7] = "fullb2";
_root.grid9[5] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "full";
_root.grid8[7] = "full";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "fullb3";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "fullb7";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
}
if ((level == 3) && (difficulty == "Medium")) {
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "fullb6";
_root.grid10[9] = "full";
_root.grid10[8] = "fullb7";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid9[13] = "full";
_root.grid9[12] = "fullb5";
_root.grid9[11] = "full";
_root.grid9[10] = "fullb2";
_root.grid9[9] = "fullb2";
_root.grid9[6] = "full";
_root.grid8[13] = "full";
_root.grid8[10] = "fullb1";
_root.grid8[6] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[6] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
}
if ((level == 2) && (difficulty == "Medium")) {
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid9[10] = "full";
_root.grid9[9] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid9[3] = "full";
_root.grid8[10] = "full";
_root.grid8[5] = "fullb3";
_root.grid8[4] = "fullb7";
_root.grid8[3] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "fullb2";
_root.grid7[7] = "full";
_root.grid7[6] = "fullb1";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "fullb6";
_root.grid6[7] = "full";
_root.grid6[6] = "fullb5";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid6[3] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid5[4] = "full";
}
if ((level == 13) && (difficulty == "Medium")) {
_root.boxes = 4;
_root.grid16[13] = "full";
_root.grid16[12] = "full";
_root.grid16[11] = "full";
_root.grid16[10] = "full";
_root.grid16[9] = "full";
_root.grid16[8] = "full";
_root.grid16[7] = "full";
_root.grid16[6] = "full";
_root.grid16[5] = "full";
_root.grid16[4] = "full";
_root.grid15[13] = "full";
_root.grid15[12] = "full";
_root.grid15[11] = "full";
_root.grid15[10] = "full";
_root.grid15[9] = "full";
_root.grid15[8] = "full";
_root.grid15[7] = "full";
_root.grid15[6] = "full";
_root.grid15[5] = "full";
_root.grid15[4] = "full";
_root.grid14[13] = "full";
_root.grid14[12] = "full";
_root.grid14[11] = "full";
_root.grid14[10] = "full";
_root.grid14[8] = "fullb5";
_root.grid14[6] = "full";
_root.grid14[5] = "full";
_root.grid14[4] = "full";
_root.grid13[13] = "full";
_root.grid13[12] = "full";
_root.grid13[10] = "fullb8";
_root.grid13[8] = "full";
_root.grid13[7] = "full";
_root.grid13[6] = "full";
_root.grid13[5] = "full";
_root.grid13[4] = "full";
_root.grid12[13] = "full";
_root.grid12[12] = "full";
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid12[4] = "full";
_root.grid11[13] = "full";
_root.grid11[10] = "fullb6";
_root.grid11[8] = "fullb2";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid11[4] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[6] = "fullb7";
_root.grid10[4] = "full";
_root.grid9[13] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid8[13] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "full";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid8[4] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
}
if ((level == 11) && (difficulty == "Medium")) {
_root.boxes = 4;
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid10[3] = "full";
_root.grid9[13] = "full";
_root.grid9[12] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid9[3] = "full";
_root.grid8[13] = "full";
_root.grid8[12] = "full";
_root.grid8[10] = "full";
_root.grid8[5] = "full";
_root.grid8[4] = "full";
_root.grid8[3] = "full";
_root.grid7[13] = "full";
_root.grid7[10] = "fullb7";
_root.grid7[9] = "full";
_root.grid7[7] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "fullb8";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[7] = "full";
_root.grid6[4] = "fullb5";
_root.grid6[3] = "full";
_root.grid5[13] = "full";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid5[4] = "full";
_root.grid5[3] = "full";
_root.grid4[13] = "full";
_root.grid4[12] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "fullb6";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
_root.grid4[5] = "full";
_root.grid4[4] = "full";
_root.grid4[3] = "full";
_root.grid3[13] = "full";
_root.grid3[12] = "full";
_root.grid3[11] = "full";
_root.grid3[10] = "full";
_root.grid3[9] = "full";
_root.grid3[8] = "full";
_root.grid3[7] = "full";
_root.grid3[6] = "full";
_root.grid3[5] = "full";
_root.grid3[4] = "full";
_root.grid3[3] = "full";
}
if ((level == 12) && (difficulty == "Medium")) {
_root.boxes = 4;
_root.grid12[12] = "full";
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid11[13] = "full";
_root.grid11[12] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid10[14] = "full";
_root.grid10[10] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid9[14] = "full";
_root.grid9[13] = "fullb5";
_root.grid9[12] = "full";
_root.grid9[11] = "fullb1";
_root.grid9[10] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid9[3] = "full";
_root.grid8[14] = "full";
_root.grid8[13] = "full";
_root.grid8[12] = "full";
_root.grid8[5] = "fullb7";
_root.grid8[3] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[8] = "fullb4";
_root.grid6[6] = "fullb8";
_root.grid6[4] = "full";
_root.grid5[11] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid5[4] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "fullb6";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid3[11] = "full";
_root.grid3[10] = "full";
_root.grid3[9] = "full";
}
if ((level == 18) && (difficulty == "Medium")) {
_root.boxes = 4;
_root.grid13[13] = "full";
_root.grid13[12] = "full";
_root.grid13[11] = "full";
_root.grid13[10] = "full";
_root.grid13[9] = "full";
_root.grid13[8] = "full";
_root.grid13[7] = "full";
_root.grid13[6] = "full";
_root.grid13[5] = "full";
_root.grid12[14] = "full";
_root.grid12[13] = "full";
_root.grid12[12] = "full";
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid12[7] = "fullb5";
_root.grid12[5] = "full";
_root.grid12[4] = "full";
_root.grid11[15] = "full";
_root.grid11[14] = "full";
_root.grid11[13] = "full";
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid11[4] = "full";
_root.grid11[3] = "full";
_root.grid10[15] = "full";
_root.grid10[14] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[7] = "fullb4";
_root.grid10[5] = "fullb8";
_root.grid10[3] = "full";
_root.grid9[15] = "full";
_root.grid9[13] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid9[3] = "full";
_root.grid8[15] = "full";
_root.grid8[12] = "fullb6";
_root.grid8[11] = "fullb2";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid8[4] = "full";
_root.grid8[3] = "full";
_root.grid7[15] = "full";
_root.grid7[14] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "fullb3";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
_root.grid6[15] = "full";
_root.grid6[14] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid6[3] = "full";
_root.grid5[14] = "full";
_root.grid5[13] = "full";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "fullb7";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid5[4] = "full";
_root.grid4[13] = "full";
_root.grid4[12] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
_root.grid4[5] = "full";
}
if ((level == 14) && (difficulty == "Medium")) {
_root.boxes = 4;
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "fullb8";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "fullb5";
_root.grid9[10] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "fullb7";
_root.grid9[5] = "full";
_root.grid8[12] = "full";
_root.grid8[5] = "full";
_root.grid7[12] = "full";
_root.grid7[10] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[7] = "fullb6";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
}
if ((level == 19) && (difficulty == "Medium")) {
_root.boxes = 4;
_root.grid13[12] = "full";
_root.grid13[11] = "full";
_root.grid13[10] = "full";
_root.grid13[9] = "full";
_root.grid13[8] = "full";
_root.grid13[7] = "full";
_root.grid13[6] = "full";
_root.grid12[13] = "full";
_root.grid12[12] = "full";
_root.grid12[11] = "full";
_root.grid12[10] = "fullb7";
_root.grid12[8] = "full";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid11[14] = "full";
_root.grid11[13] = "full";
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid11[4] = "full";
_root.grid10[14] = "full";
_root.grid10[13] = "fullb5";
_root.grid10[10] = "full";
_root.grid10[9] = "fullb3";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid9[14] = "full";
_root.grid9[13] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "fullb6";
_root.grid9[4] = "full";
_root.grid8[14] = "full";
_root.grid8[13] = "full";
_root.grid8[10] = "fullb1";
_root.grid8[4] = "full";
_root.grid7[14] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[6] = "full";
_root.grid7[4] = "full";
_root.grid6[14] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "fullb8";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid5[13] = "full";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid4[12] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
}
if ((level == 15) && (difficulty == "Medium")) {
_root.boxes = 4;
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "fullb7";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "full";
_root.grid8[6] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "fullb5";
_root.grid7[6] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "fullb8";
_root.grid6[8] = "full";
_root.grid6[6] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "fullb6";
_root.grid5[6] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
}
if ((level == 20) && (difficulty == "Medium")) {
_root.boxes = 4;
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "fullb7";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[13] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid8[13] = "full";
_root.grid8[10] = "fullb8";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "fullb6";
_root.grid7[10] = "fullb2";
_root.grid7[5] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "fullb5";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
}
if ((level == 17) && (difficulty == "Medium")) {
_root.boxes = 4;
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[10] = "full";
_root.grid10[7] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid9[13] = "full";
_root.grid9[11] = "fullb5";
_root.grid9[10] = "full";
_root.grid9[4] = "full";
_root.grid8[13] = "full";
_root.grid8[12] = "full";
_root.grid8[7] = "fullb8";
_root.grid8[6] = "full";
_root.grid8[5] = "fullb7";
_root.grid8[4] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "fullb6";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
}
if ((level == 1) && (difficulty == "Medium")) {
_root.boxes = 4;
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid9[10] = "full";
_root.grid9[7] = "fullb7";
_root.grid9[5] = "full";
_root.grid8[10] = "full";
_root.grid8[7] = "fullb5";
_root.grid8[5] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "fullb2";
_root.grid7[8] = "fullb8";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid6[10] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "fullb6";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
}
if ((level == 8) && (difficulty == "Medium")) {
_root.boxes = 4;
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid9[14] = "full";
_root.grid9[13] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[7] = "full";
_root.grid8[14] = "full";
_root.grid8[7] = "full";
_root.grid7[14] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "fullb8";
_root.grid7[9] = "full";
_root.grid7[8] = "fullb5";
_root.grid7[7] = "full";
_root.grid6[14] = "full";
_root.grid6[13] = "fullb6";
_root.grid6[12] = "fullb7";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid5[14] = "full";
_root.grid5[13] = "full";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
}
if ((level == 11) && (difficulty == "Hard")) {
_root.grid13[10] = "full";
_root.grid13[9] = "full";
_root.grid13[8] = "full";
_root.grid13[7] = "full";
_root.grid13[6] = "full";
_root.grid13[5] = "full";
_root.grid12[10] = "full";
_root.grid12[8] = "full";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid11[14] = "full";
_root.grid11[13] = "full";
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[5] = "fullb5";
_root.grid11[4] = "full";
_root.grid11[3] = "full";
_root.grid11[2] = "full";
_root.grid11[1] = "full";
_root.grid10[14] = "full";
_root.grid10[10] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid10[3] = "full";
_root.grid8[2] = "fullb6";
_root.grid10[1] = "full";
_root.grid9[14] = "full";
_root.grid9[6] = "fullb2";
_root.grid9[3] = "full";
_root.grid9[1] = "full";
_root.grid8[14] = "full";
_root.grid8[13] = "full";
_root.grid8[6] = "fullb2";
_root.grid8[4] = "full";
_root.grid8[1] = "full";
_root.grid7[14] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[2] = "full";
_root.grid7[1] = "full";
_root.grid6[14] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid6[3] = "full";
_root.grid6[2] = "full";
_root.grid5[14] = "full";
_root.grid5[13] = "fullb7";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid4[14] = "full";
_root.grid4[13] = "full";
_root.grid4[12] = "full";
_root.grid4[11] = "full";
_root.grid4[8] = "full";
_root.grid3[13] = "full";
_root.grid3[7] = "full";
_root.grid2[13] = "full";
_root.grid2[12] = "full";
_root.grid2[11] = "full";
_root.grid2[10] = "full";
_root.grid2[9] = "full";
_root.grid2[7] = "full";
_root.grid1[9] = "full";
_root.grid1[8] = "fullb8";
_root.grid1[7] = "full";
}
if ((level == 17) && (difficulty == "Hard")) {
_root.grid14[13] = "full";
_root.grid14[12] = "full";
_root.grid14[11] = "full";
_root.grid14[10] = "full";
_root.grid14[9] = "full";
_root.grid14[8] = "full";
_root.grid14[7] = "full";
_root.grid14[6] = "full";
_root.grid14[5] = "full";
_root.grid14[4] = "full";
_root.grid13[15] = "full";
_root.grid13[14] = "full";
_root.grid13[13] = "full";
_root.grid13[12] = "full";
_root.grid13[11] = "full";
_root.grid13[10] = "full";
_root.grid13[9] = "full";
_root.grid13[8] = "full";
_root.grid13[7] = "full";
_root.grid13[6] = "full";
_root.grid13[5] = "full";
_root.grid13[4] = "full";
_root.grid13[3] = "full";
_root.grid13[2] = "full";
_root.grid12[16] = "full";
_root.grid12[15] = "full";
_root.grid12[14] = "full";
_root.grid12[13] = "full";
_root.grid12[12] = "full";
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid12[9] = "full";
_root.grid12[8] = "full";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid12[4] = "full";
_root.grid12[3] = "full";
_root.grid12[2] = "full";
_root.grid12[1] = "full";
_root.grid11[16] = "full";
_root.grid11[15] = "full";
_root.grid11[14] = "full";
_root.grid11[12] = "fullb6";
_root.grid11[10] = "full";
_root.grid11[8] = "fullb8";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid11[4] = "full";
_root.grid11[3] = "full";
_root.grid11[2] = "full";
_root.grid11[1] = "full";
_root.grid10[16] = "full";
_root.grid10[15] = "full";
_root.grid10[14] = "full";
_root.grid10[13] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid10[3] = "full";
_root.grid10[2] = "full";
_root.grid10[1] = "full";
_root.grid9[16] = "full";
_root.grid9[15] = "full";
_root.grid9[14] = "full";
_root.grid9[13] = "full";
_root.grid9[10] = "fullb3";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[1] = "full";
_root.grid8[16] = "full";
_root.grid8[15] = "full";
_root.grid8[14] = "full";
_root.grid8[10] = "full";
_root.grid8[7] = "fullb1";
_root.grid8[6] = "fullb5";
_root.grid8[4] = "full";
_root.grid8[2] = "full";
_root.grid8[1] = "full";
_root.grid7[16] = "full";
_root.grid7[15] = "full";
_root.grid7[14] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "fullb2";
_root.grid7[10] = "full";
_root.grid7[9] = "fullb2";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid7[1] = "full";
_root.grid6[16] = "full";
_root.grid6[15] = "full";
_root.grid6[12] = "full";
_root.grid6[10] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid6[2] = "full";
_root.grid6[1] = "full";
_root.grid5[16] = "full";
_root.grid5[15] = "full";
_root.grid5[13] = "full";
_root.grid5[12] = "full";
_root.grid5[10] = "full";
_root.grid5[7] = "full";
_root.grid5[2] = "full";
_root.grid5[1] = "full";
_root.grid4[16] = "full";
_root.grid4[15] = "full";
_root.grid4[12] = "full";
_root.grid4[4] = "full";
_root.grid4[3] = "full";
_root.grid4[2] = "full";
_root.grid4[1] = "full";
_root.grid3[16] = "full";
_root.grid3[15] = "full";
_root.grid3[11] = "full";
_root.grid3[10] = "full";
_root.grid3[9] = "full";
_root.grid3[8] = "full";
_root.grid3[7] = "full";
_root.grid3[6] = "full";
_root.grid3[3] = "fullb7";
_root.grid3[1] = "full";
_root.grid2[16] = "full";
_root.grid2[15] = "full";
_root.grid2[14] = "full";
_root.grid2[4] = "full";
_root.grid2[3] = "full";
_root.grid2[2] = "full";
_root.grid2[1] = "full";
_root.grid1[16] = "full";
_root.grid1[15] = "full";
_root.grid1[14] = "full";
_root.grid1[13] = "full";
_root.grid1[12] = "full";
_root.grid1[11] = "full";
_root.grid1[10] = "full";
_root.grid1[9] = "full";
_root.grid1[8] = "full";
_root.grid1[7] = "full";
_root.grid1[6] = "full";
_root.grid1[5] = "full";
_root.grid1[4] = "full";
_root.grid1[3] = "full";
_root.grid1[2] = "full";
_root.grid1[1] = "full";
}
if ((level == 12) && (difficulty == "Hard")) {
_root.grid13[11] = "full";
_root.grid13[10] = "full";
_root.grid13[9] = "full";
_root.grid12[14] = "full";
_root.grid12[13] = "full";
_root.grid12[12] = "full";
_root.grid12[11] = "fullb8";
_root.grid12[9] = "full";
_root.grid11[14] = "full";
_root.grid11[13] = "fullb5";
_root.grid11[11] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid10[14] = "full";
_root.grid10[13] = "full";
_root.grid10[11] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid9[13] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "fullb4";
_root.grid9[7] = "fullb3";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid8[13] = "full";
_root.grid8[10] = "fullb1";
_root.grid8[7] = "fullb3";
_root.grid8[6] = "full";
_root.grid8[5] = "fullb7";
_root.grid8[4] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[8] = "full";
_root.grid7[4] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "fullb6";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid6[4] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
}
if ((level == 19) && (difficulty == "Hard")) {
_root.grid16[16] = "full";
_root.grid16[15] = "full";
_root.grid16[14] = "full";
_root.grid16[13] = "full";
_root.grid16[10] = "full";
_root.grid16[5] = "full";
_root.grid16[4] = "full";
_root.grid16[3] = "full";
_root.grid16[2] = "full";
_root.grid16[1] = "full";
_root.grid15[16] = "full";
_root.grid15[11] = "full";
_root.grid15[10] = "full";
_root.grid15[9] = "full";
_root.grid15[8] = "full";
_root.grid15[6] = "full";
_root.grid15[5] = "full";
_root.grid15[1] = "full";
_root.grid14[16] = "full";
_root.grid14[14] = "full";
_root.grid14[13] = "full";
_root.grid14[5] = "full";
_root.grid14[3] = "full";
_root.grid14[1] = "full";
_root.grid13[16] = "full";
_root.grid13[14] = "full";
_root.grid13[13] = "full";
_root.grid13[12] = "full";
_root.grid13[11] = "full";
_root.grid13[8] = "full";
_root.grid13[7] = "full";
_root.grid13[3] = "full";
_root.grid13[1] = "full";
_root.grid12[16] = "full";
_root.grid12[14] = "full";
_root.grid12[13] = "full";
_root.grid12[12] = "full";
_root.grid12[11] = "full";
_root.grid12[9] = "full";
_root.grid12[5] = "full";
_root.grid12[4] = "full";
_root.grid12[3] = "full";
_root.grid12[2] = "full";
_root.grid12[1] = "full";
_root.grid11[14] = "full";
_root.grid11[9] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid10[15] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "fullb3";
_root.grid10[7] = "full";
_root.grid10[3] = "full";
_root.grid10[2] = "full";
_root.grid9[15] = "fullb4";
_root.grid9[13] = "full";
_root.grid9[10] = "fullb4";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[3] = "full";
_root.grid9[2] = "full";
_root.grid9[1] = "fullb5";
_root.grid8[16] = "fullb3";
_root.grid8[15] = "full";
_root.grid8[13] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "full";
_root.grid8[7] = "fullb1";
_root.grid8[1] = "full";
_root.grid7[16] = "fullb7";
_root.grid7[15] = "full";
_root.grid7[13] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "fullb2";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "fullb2";
_root.grid7[4] = "full";
_root.grid7[3] = "full";
_root.grid7[1] = "full";
_root.grid6[16] = "full";
_root.grid6[15] = "full";
_root.grid6[14] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "full";
_root.grid6[10] = "fullb2";
_root.grid6[8] = "full";
_root.grid6[3] = "full";
_root.grid5[15] = "full";
_root.grid5[14] = "full";
_root.grid5[13] = "fullb8";
_root.grid5[10] = "full";
_root.grid5[5] = "full";
_root.grid5[4] = "full";
_root.grid5[3] = "full";
_root.grid5[2] = "full";
_root.grid5[1] = "fullb2";
_root.grid4[13] = "full";
_root.grid4[12] = "full";
_root.grid4[11] = "fullb2";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[5] = "full";
_root.grid4[3] = "full";
_root.grid3[15] = "full";
_root.grid3[10] = "full";
_root.grid3[7] = "full";
_root.grid3[6] = "full";
_root.grid3[5] = "full";
_root.grid3[1] = "full";
_root.grid2[14] = "full";
_root.grid2[13] = "full";
_root.grid2[12] = "full";
_root.grid2[11] = "full";
_root.grid2[10] = "full";
_root.grid2[9] = "fullb6";
_root.grid2[8] = "full";
_root.grid2[7] = "full";
_root.grid2[6] = "full";
_root.grid2[2] = "full";
_root.grid2[1] = "full";
_root.grid1[11] = "full";
_root.grid1[4] = "full";
_root.grid1[3] = "full";
_root.grid1[2] = "full";
_root.grid1[1] = "full";
}
if ((level == 6) && (difficulty == "Hard")) {
_root.grid13[12] = "full";
_root.grid13[11] = "full";
_root.grid13[10] = "full";
_root.grid13[9] = "full";
_root.grid13[8] = "full";
_root.grid13[7] = "full";
_root.grid13[6] = "full";
_root.grid12[13] = "full";
_root.grid12[12] = "fullb8";
_root.grid12[10] = "full";
_root.grid12[9] = "fullb7";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid11[13] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[5] = "full";
_root.grid9[13] = "full";
_root.grid9[12] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid8[13] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "full";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "fullb6";
_root.grid7[11] = "fullb2";
_root.grid7[8] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid6[13] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "fullb5";
_root.grid6[5] = "full";
_root.grid5[13] = "full";
_root.grid5[9] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid4[13] = "full";
_root.grid4[12] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[6] = "full";
_root.grid4[5] = "full";
_root.grid3[12] = "full";
_root.grid3[11] = "full";
_root.grid3[10] = "full";
_root.grid3[9] = "full";
_root.grid3[8] = "full";
_root.grid3[7] = "full";
_root.grid3[6] = "full";
}
if ((level == 16) && (difficulty == "Hard")) {
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[7] = "fullb7";
_root.grid10[6] = "full";
_root.grid9[13] = "full";
_root.grid9[12] = "fullb6";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[7] = "fullb8";
_root.grid9[6] = "full";
_root.grid8[13] = "full";
_root.grid8[7] = "full";
_root.grid8[6] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[7] = "fullb5";
_root.grid7[6] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
}
if ((level == 13) && (difficulty == "Hard")) {
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[4] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "fullb6";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "fullb7";
_root.grid9[4] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "fullb5";
_root.grid8[4] = "full";
_root.grid7[12] = "full";
_root.grid7[6] = "full";
_root.grid7[4] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "fullb8";
_root.grid6[4] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
}
if ((level == 15) && (difficulty == "Hard")) {
_root.grid14[16] = "full";
_root.grid14[15] = "full";
_root.grid14[14] = "full";
_root.grid14[13] = "full";
_root.grid14[12] = "full";
_root.grid14[11] = "full";
_root.grid14[10] = "full";
_root.grid14[9] = "full";
_root.grid14[8] = "full";
_root.grid14[7] = "full";
_root.grid14[6] = "full";
_root.grid14[5] = "full";
_root.grid13[14] = "full";
_root.grid13[5] = "full";
_root.grid12[10] = "fullb8";
_root.grid12[9] = "full";
_root.grid12[7] = "fullb7";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid11[16] = "full";
_root.grid11[15] = "full";
_root.grid11[14] = "full";
_root.grid11[8] = "full";
_root.grid11[5] = "full";
_root.grid10[16] = "full";
_root.grid10[14] = "fullb5";
_root.grid10[13] = "full";
_root.grid10[5] = "full";
_root.grid9[16] = "full";
_root.grid9[15] = "full";
_root.grid9[10] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid8[16] = "full";
_root.grid8[14] = "fullb6";
_root.grid8[13] = "full";
_root.grid8[7] = "full";
_root.grid7[16] = "full";
_root.grid7[14] = "full";
_root.grid7[10] = "full";
_root.grid7[7] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[7] = "full";
_root.grid5[7] = "full";
_root.grid4[16] = "full";
_root.grid4[15] = "full";
_root.grid4[14] = "full";
_root.grid4[13] = "full";
_root.grid4[12] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
}
if ((level == 4) && (difficulty == "Hard")) {
_root.grid12[12] = "full";
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid12[9] = "full";
_root.grid12[8] = "full";
_root.grid11[13] = "full";
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "fullb2";
_root.grid11[9] = "fullb6";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "fullb2";
_root.grid10[9] = "fullb8";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid9[13] = "full";
_root.grid9[11] = "fullb7";
_root.grid9[7] = "full";
_root.grid8[13] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "full";
_root.grid8[7] = "full";
_root.grid7[13] = "full";
_root.grid7[11] = "fullb5";
_root.grid7[7] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
}
if ((level == 1) && (difficulty == "Hard")) {
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid10[10] = "full";
_root.grid10[7] = "full";
_root.grid9[11] = "full";
_root.grid9[7] = "fullb7";
_root.grid9[6] = "full";
_root.grid8[11] = "full";
_root.grid8[7] = "fullb5";
_root.grid8[6] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "fullb6";
_root.grid7[8] = "fullb8";
_root.grid7[7] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
}
if ((level == 9) && (difficulty == "Hard")) {
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "fullb7";
_root.grid10[9] = "fullb5";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "fullb3";
_root.grid9[7] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "fullb8";
_root.grid8[7] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "fullb6";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
}
if ((level == 5) && (difficulty == "Hard")) {
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "fullb5";
_root.grid10[7] = "fullb7";
_root.grid10[5] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "fullb6";
_root.grid9[5] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "fullb8";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
}
if ((level == 7) && (difficulty == "Hard")) {
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "fullb6";
_root.grid10[8] = "fullb8";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[11] = "full";
_root.grid9[6] = "fullb7";
_root.grid9[5] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "full";
_root.grid8[7] = "fullb5";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
}
if ((level == 2) && (difficulty == "Hard")) {
_root.grid15[11] = "full";
_root.grid15[10] = "full";
_root.grid15[9] = "full";
_root.grid15[8] = "full";
_root.grid14[12] = "full";
_root.grid14[11] = "full";
_root.grid14[10] = "full";
_root.grid14[8] = "full";
_root.grid14[7] = "full";
_root.grid13[12] = "full";
_root.grid13[11] = "full";
_root.grid13[10] = "full";
_root.grid13[8] = "full";
_root.grid13[7] = "full";
_root.grid13[6] = "full";
_root.grid12[12] = "full";
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid12[8] = "full";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "fullb5";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "fullb1";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "fullb7";
_root.grid9[10] = "fullb3";
_root.grid9[6] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "fullb8";
_root.grid8[7] = "full";
_root.grid8[6] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "fullb2";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "fullb6";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
}
if ((level == 3) && (difficulty == "Hard")) {
_root.grid12[9] = "full";
_root.grid12[8] = "full";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "fullb6";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid10[10] = "full";
_root.grid10[6] = "fullb7";
_root.grid10[5] = "full";
_root.grid9[10] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid8[10] = "full";
_root.grid8[7] = "fullb8";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "fullb1";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[7] = "fullb5";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
}
if ((level == 14) && (difficulty == "Hard")) {
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid12[9] = "full";
_root.grid12[8] = "full";
_root.grid12[7] = "full";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "fullb7";
_root.grid11[5] = "full";
_root.grid11[4] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "fullb8";
_root.grid10[8] = "full";
_root.grid10[5] = "full";
_root.grid10[4] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "fullb6";
_root.grid9[10] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid9[4] = "full";
_root.grid8[12] = "full";
_root.grid8[7] = "full";
_root.grid8[5] = "fullb5";
_root.grid8[4] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[5] = "full";
_root.grid7[4] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
}
if ((level == 18) && (difficulty == "Hard")) {
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid10[13] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "fullb7";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[13] = "full";
_root.grid9[11] = "fullb8";
_root.grid9[10] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "fullb6";
_root.grid9[5] = "full";
_root.grid8[13] = "full";
_root.grid8[12] = "full";
_root.grid8[5] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[9] = "full";
_root.grid7[8] = "fullb1";
_root.grid7[7] = "full";
_root.grid7[6] = "full";
_root.grid7[5] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "full";
_root.grid6[6] = "fullb5";
_root.grid6[5] = "full";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
}
if ((level == 10) && (difficulty == "Hard")) {
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "full";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid9[14] = "full";
_root.grid9[13] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid8[14] = "full";
_root.grid8[13] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "full";
_root.grid8[7] = "full";
_root.grid8[6] = "full";
_root.grid8[5] = "full";
_root.grid7[14] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "fullb8";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[8] = "full";
_root.grid7[7] = "full";
_root.grid7[6] = "fullb6";
_root.grid7[5] = "full";
_root.grid6[14] = "full";
_root.grid6[13] = "full";
_root.grid6[10] = "fullb4";
_root.grid6[8] = "fullb2";
_root.grid6[5] = "full";
_root.grid5[14] = "full";
_root.grid5[13] = "fullb7";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid4[14] = "full";
_root.grid4[8] = "fullb1";
_root.grid4[6] = "fullb5";
_root.grid4[5] = "full";
_root.grid3[13] = "full";
_root.grid3[12] = "full";
_root.grid3[11] = "full";
_root.grid3[10] = "full";
_root.grid3[9] = "full";
_root.grid3[8] = "full";
_root.grid3[7] = "full";
_root.grid3[6] = "full";
}
if ((level == 20) && (difficulty == "Hard")) {
_root.grid13[13] = "full";
_root.grid13[12] = "full";
_root.grid13[11] = "full";
_root.grid13[10] = "full";
_root.grid13[9] = "full";
_root.grid13[8] = "full";
_root.grid13[7] = "full";
_root.grid13[6] = "full";
_root.grid12[14] = "full";
_root.grid12[13] = "full";
_root.grid12[12] = "full";
_root.grid12[11] = "full";
_root.grid12[10] = "full";
_root.grid12[9] = "full";
_root.grid12[7] = "fullb7";
_root.grid12[6] = "full";
_root.grid12[5] = "full";
_root.grid11[14] = "full";
_root.grid11[13] = "full";
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "fullb8";
_root.grid11[9] = "full";
_root.grid11[7] = "full";
_root.grid11[6] = "full";
_root.grid11[5] = "full";
_root.grid10[14] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[9] = "fullb4";
_root.grid10[8] = "fullb3";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid10[5] = "full";
_root.grid9[14] = "full";
_root.grid9[13] = "full";
_root.grid9[12] = "full";
_root.grid9[11] = "full";
_root.grid9[10] = "full";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid9[5] = "full";
_root.grid8[14] = "full";
_root.grid8[13] = "full";
_root.grid8[12] = "full";
_root.grid8[7] = "full";
_root.grid8[6] = "fullb5";
_root.grid8[5] = "full";
_root.grid7[14] = "full";
_root.grid7[13] = "full";
_root.grid7[11] = "full";
_root.grid7[9] = "full";
_root.grid7[5] = "full";
_root.grid6[14] = "full";
_root.grid6[9] = "full";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid6[5] = "full";
_root.grid5[14] = "full";
_root.grid5[12] = "full";
_root.grid5[10] = "full";
_root.grid5[9] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid5[5] = "full";
_root.grid4[14] = "full";
_root.grid4[12] = "fullb6";
_root.grid4[10] = "full";
_root.grid4[9] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
_root.grid4[5] = "full";
_root.grid3[14] = "full";
_root.grid3[13] = "full";
_root.grid3[12] = "full";
_root.grid3[11] = "full";
_root.grid3[10] = "full";
_root.grid3[9] = "full";
_root.grid3[8] = "full";
_root.grid3[7] = "full";
_root.grid3[6] = "full";
_root.grid3[5] = "full";
_root.grid2[13] = "full";
_root.grid2[12] = "full";
_root.grid2[11] = "full";
_root.grid2[10] = "full";
_root.grid2[9] = "full";
_root.grid2[8] = "full";
_root.grid2[7] = "full";
_root.grid2[6] = "full";
}
if ((level == 8) && (difficulty == "Hard")) {
_root.grid11[12] = "full";
_root.grid11[11] = "full";
_root.grid11[10] = "full";
_root.grid11[9] = "full";
_root.grid11[8] = "full";
_root.grid11[7] = "full";
_root.grid10[13] = "full";
_root.grid10[12] = "full";
_root.grid10[11] = "full";
_root.grid10[10] = "full";
_root.grid10[9] = "full";
_root.grid10[8] = "fullb6";
_root.grid10[7] = "full";
_root.grid10[6] = "full";
_root.grid9[13] = "full";
_root.grid9[10] = "fullb8";
_root.grid9[7] = "full";
_root.grid9[6] = "full";
_root.grid8[13] = "full";
_root.grid8[12] = "full";
_root.grid8[11] = "full";
_root.grid8[10] = "full";
_root.grid8[7] = "full";
_root.grid8[6] = "full";
_root.grid7[13] = "full";
_root.grid7[12] = "full";
_root.grid7[11] = "full";
_root.grid7[10] = "full";
_root.grid7[7] = "fullb7";
_root.grid7[6] = "full";
_root.grid6[13] = "full";
_root.grid6[12] = "full";
_root.grid6[11] = "full";
_root.grid6[10] = "full";
_root.grid6[9] = "fullb5";
_root.grid6[8] = "full";
_root.grid6[7] = "full";
_root.grid6[6] = "full";
_root.grid5[13] = "full";
_root.grid5[12] = "full";
_root.grid5[11] = "full";
_root.grid5[10] = "full";
_root.grid5[8] = "full";
_root.grid5[7] = "full";
_root.grid5[6] = "full";
_root.grid4[13] = "full";
_root.grid4[12] = "full";
_root.grid4[11] = "full";
_root.grid4[10] = "full";
_root.grid4[8] = "full";
_root.grid4[7] = "full";
_root.grid4[6] = "full";
_root.grid3[13] = "full";
_root.grid3[12] = "full";
_root.grid3[11] = "full";
_root.grid3[10] = "full";
_root.grid3[8] = "full";
_root.grid3[7] = "full";
_root.grid3[6] = "full";
_root.grid2[12] = "full";
_root.grid2[11] = "full";
_root.grid2[10] = "full";
_root.grid2[9] = "full";
_root.grid2[8] = "full";
_root.grid2[7] = "full";
}
t = 100;
i = 1;
while (i < 17) {
j = 1;
while (j < 17) {
if (_root["grid" + i][j] == "full") {
_root.wall.duplicateMovieClip((("wall" + i) + "s") + j, ((_root.wall.getNextHighestDepth() + i) + j) + t);
_root[(("wall" + i) + "s") + j]._x = _root[(("wall" + i) + "s") + j]._x + ((25 * j) - 25);
_root[(("wall" + i) + "s") + j]._y = _root[(("wall" + i) + "s") + j]._y + ((25 * i) - 25);
t = t + 300;
}
m = 1;
while (m < 10) {
if (_root["grid" + i][j] == ("fullb" + m)) {
_root.nwall.duplicateMovieClip((("nwall" + i) + "s") + j, (((_root.nwall.getNextHighestDepth() + i) + j) + t) + 500);
_root[(("nwall" + i) + "s") + j].gotoAndStop(m);
_root[(("nwall" + i) + "s") + j]._x = _root[(("nwall" + i) + "s") + j]._x + ((25 * j) - 25);
_root[(("nwall" + i) + "s") + j]._y = _root[(("nwall" + i) + "s") + j]._y + ((25 * i) - 25);
t = t + 300;
}
m++;
}
j++;
}
i++;
}
_root.wall._x = _root.wall._x - 5000;
_root.nwall._x = _root.nwall._x - 5000;
Instance of Symbol 70 MovieClip "bg" in Frame 15
onClipEvent (enterFrame) {
if (_root.colorscheme == "blue") {
this.gotoAndStop(1);
}
if (_root.colorscheme == "red") {
this.gotoAndStop(2);
}
if (_root.colorscheme == "black") {
this.gotoAndStop(3);
}
}
Instance of Symbol 247 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this._currentframe != _root.bg._currentframe) {
this.gotoAndStop(_root.bg._currentframe);
}
}
Instance of Symbol 175 MovieClip "wall" in Frame 15
onClipEvent (load) {
startframe = _root._currentframe;
}
onClipEvent (enterFrame) {
if (_root._currentframe != startframe) {
this.removeMovieClip(this);
}
}
Instance of Symbol 183 MovieClip "nwall" in Frame 15
onClipEvent (load) {
startframe = _root._currentframe;
}
onClipEvent (enterFrame) {
if (_root._currentframe != startframe) {
this.removeMovieClip(this);
}
}
Instance of Symbol 249 MovieClip "b2" in Frame 15
onClipEvent (load) {
ycpos = 8;
xcpos = 9;
}
onClipEvent (load) {
startframe = _root._currentframe;
}
onClipEvent (enterFrame) {
if (_root._currentframe != startframe) {
this.removeMovieClip(this);
}
}
Instance of Symbol 251 MovieClip "b4" in Frame 15
onClipEvent (load) {
if (_root.boxes > 3) {
ycpos = 9;
xcpos = 9;
} else {
this._x = this._x - 5000;
xcpos = -4;
yxpos = -4;
}
}
onClipEvent (load) {
startframe = _root._currentframe;
}
onClipEvent (enterFrame) {
if (_root._currentframe != startframe) {
this.removeMovieClip(this);
}
}
Instance of Symbol 253 MovieClip "b3" in Frame 15
onClipEvent (load) {
totaltime = _root.totaltime;
_root.totaltime1 = totaltime;
startframe = _root._currentframe;
_root.dnr = 0;
}
onClipEvent (enterFrame) {
if (_root._currentframe != startframe) {
this.removeMovieClip(this);
}
}
onClipEvent (load) {
if (_root.boxes > 2) {
ycpos = 9;
xcpos = 8;
} else {
this._x = this._x - 5000;
xcpos = -3;
yxpos = -3;
}
if (_root.ttime1 == undefined) {
_root.ttime1 = 0;
}
starttime = getTimer() / 1000;
pauseTime = 0;
pausedTime = 0;
timing = 1;
check1235 = 0;
}
onClipEvent (enterFrame) {
if (!_root.gpaused) {
if (check1235) {
pauseTime = pauseTime + ((getTimer() / 1000) - pausedTime);
trace((((((pauseTime + " = ") + pauseTime) + "+(") + pausedTime) + "-") + (getTimer() / 1000));
}
check1235 = 0;
if (((_root.par1 - _root.ttime) + _root.bbonus) >= 0) {
if (_root.bbonus == undefined) {
_root.bbonus = 0;
}
_root.bonus = (_root.par1 - _root.ttime) + _root.bbonus;
} else {
_root.bonus = 0;
}
_root.ttime = Math.round(((getTimer() / 1000) - starttime) - pauseTime) + _root.ttime1;
_root.totaltime = totaltime + _root.ttime;
} else if (!check1235) {
check1235 = 1;
pausedTime = getTimer() / 1000;
trace(pausedTime);
}
}
Instance of Symbol 185 MovieClip "b1" in Frame 15
onClipEvent (load) {
ycpos = 8;
xcpos = 8;
l = 1;
while (l < 5) {
if (((((((((_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb1") && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb2")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb3")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb4")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb5")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb6")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb7")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb8")) && (_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] != "fullb9")) {
_root["grid" + _root["b" + l].ycpos][_root["b" + l].xcpos] = "full";
}
l++;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(67) && (Key.isDown(72))) {
_root.gotoAndStop("level complete");
}
if ((((_root["grid" + _root.b1.ycpos][_root.b1.xcpos] == "fullb5") && (_root["grid" + _root.b2.ycpos][_root.b2.xcpos] == "fullb6")) && (_root["grid" + _root.b3.ycpos][_root.b3.xcpos] == "fullb7")) && (_root["grid" + _root.b4.ycpos][_root.b4.xcpos] == "fullb8")) {
_root.gotoAndStop("level complete");
}
if ((((_root["grid" + _root.b1.ycpos][_root.b1.xcpos] == "fullb5") && (_root["grid" + _root.b2.ycpos][_root.b2.xcpos] == "fullb6")) && (_root["grid" + _root.b3.ycpos][_root.b3.xcpos] == "fullb7")) && (_root.boxes == 3)) {
_root.gotoAndStop("level complete");
trace((ycpos + " ") + xcpos);
}
if (((_root["grid" + _root.b1.ycpos][_root.b1.xcpos] == "fullb5") && (_root["grid" + _root.b2.ycpos][_root.b2.xcpos] == "fullb6")) && (_root.boxes == 2)) {
_root.gotoAndStop("level complete");
}
if (!_root.gpaused) {
if (Key.isDown(39) || (Key.isDown(68))) {
if (rts) {
} else {
rts = 1;
l = 1;
while (l < 5) {
k = 1;
while (k < 5) {
if ((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos + 1] == "empty") && (!_root["b" + k].bmoved)) {
if ((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + k)) && (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + (k + 4)))) {
_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] = "empty";
}
_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos + 1] = "full";
_root["b" + k].bmoved = 1;
_root["b" + k].xcpos++;
_root["b" + k]._x = _root["b" + k]._x + _root["b" + k]._width;
_root["block" + k] = 0;
}
if (((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos + 1] == ("fullb" + k)) || (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos + 1] == ("fullb" + (k + 4)))) && (!_root["b" + k].bmoved)) {
_root["block" + k] = 0;
if (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos + 1] == ("fullb" + (k + 4))) {
_root["block" + k] = 1;
}
if ((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + k)) && (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + (k + 4)))) {
_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] = "empty";
}
_root["b" + k].bmoved = 1;
_root["b" + k].xcpos++;
_root["b" + k]._x = _root["b" + k]._x + _root["b" + k]._width;
}
k++;
}
l++;
}
}
} else {
rts = 0;
l = 1;
while (l < 5) {
_root["b" + l].bmoved = 0;
l++;
}
}
if (Key.isDown(37) || (Key.isDown(65))) {
if (lts) {
} else {
lts = 1;
l = 1;
while (l < 5) {
k = 1;
while (k < 5) {
if ((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos - 1] == "empty") && (!_root["b" + k].bmoved)) {
if ((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + k)) && (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + (k + 4)))) {
_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] = "empty";
trace("LL");
}
_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos - 1] = "full";
_root["b" + k].bmoved = 1;
_root["b" + k].xcpos--;
_root["b" + k]._x = _root["b" + k]._x - _root["b" + k]._width;
_root["block" + k] = 0;
}
if (((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos - 1] == ("fullb" + k)) || (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos - 1] == ("fullb" + (k + 4)))) && (!_root["b" + k].bmoved)) {
_root["block" + k] = 0;
if ((_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + k)) && (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] != ("fullb" + (k + 4)))) {
_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos] = "empty";
}
if (_root["grid" + _root["b" + k].ycpos][_root["b" + k].xcpos - 1] == ("fullb" + (k + 4))) {
_root["block" + k] = 1;
}
_root["b" + k].bmoved = 1;
_root["b" + k].xcpos--;
_root["b" + k]._x = _root["b" + k]._x - _root["b" + k]._width;
}
k++;
}
l++;
}
}
} else {
lts = 0;
l = 1;
while (l < 5) {
_root["b" + l].bmoved = 0;
l++;
}
}
if (Key.isDown(38) || (Key.isDown(87))) {
if (uts) {
} else {
uts = 1;
j = 1;
while (j < 5) {
i = 1;
while (i < 5) {
if ((_root["grid" + (_root["b" + i].ycpos - 1)][_root["b" + i].xcpos] == "empty") && (!_root["b" + i].bymoved)) {
if ((_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + i)) && (_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + (i + 4)))) {
_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] = "empty";
}
_root["block" + i] = 0;
_root["grid" + (_root["b" + i].ycpos - 1)][_root["b" + i].xcpos] = "full";
_root["b" + i].bymoved = 1;
_root["b" + i].ycpos--;
_root["b" + i]._y = _root["b" + i]._y - _root["b" + i]._width;
}
if (((_root["grid" + (_root["b" + i].ycpos - 1)][_root["b" + i].xcpos] == ("fullb" + i)) || (_root["grid" + (_root["b" + i].ycpos - 1)][_root["b" + i].xcpos] == ("fullb" + (i + 4)))) && (!_root["b" + i].bymoved)) {
_root["block" + k] = 0;
if ((_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + i)) && (_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + (i + 4)))) {
_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] = "empty";
}
if (_root["grid" + (_root["b" + i].ycpos - 1)][_root["b" + i].xcpos] == ("fullb" + (i + 4))) {
_root["block" + i] = 1;
}
_root["b" + i].bymoved = 1;
_root["b" + i].ycpos--;
_root["b" + i]._y = _root["b" + i]._y - _root["b" + i]._width;
}
i++;
}
j++;
}
}
} else {
j = 1;
while (j < 5) {
_root["b" + j].bymoved = 0;
j++;
}
uts = 0;
}
if (Key.isDown(40) || (Key.isDown(83))) {
if (dts) {
} else {
dts = 1;
j = 1;
while (j < 5) {
i = 1;
while (i < 5) {
if ((_root["grid" + (_root["b" + i].ycpos + 1)][_root["b" + i].xcpos] == "empty") && (!_root["b" + i].bymoved)) {
if ((_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + i)) && (_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + (i + 4)))) {
_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] = "empty";
}
_root["grid" + (_root["b" + i].ycpos + 1)][_root["b" + i].xcpos] = "full";
_root["b" + i].bymoved = 1;
_root["b" + i].ycpos++;
_root["b" + i]._y = _root["b" + i]._y + _root["b" + i]._width;
_root["block" + i] = 0;
}
if (((_root["grid" + (_root["b" + i].ycpos + 1)][_root["b" + i].xcpos] == ("fullb" + i)) || (_root["grid" + (_root["b" + i].ycpos + 1)][_root["b" + i].xcpos] == ("fullb" + (i + 4)))) && (!_root["b" + i].bymoved)) {
_root["block" + k] = 0;
if ((_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + i)) && (_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] != ("fullb" + (i + 4)))) {
_root["grid" + _root["b" + i].ycpos][_root["b" + i].xcpos] = "empty";
}
if (_root["grid" + (_root["b" + i].ycpos + 1)][_root["b" + i].xcpos] == ("fullb" + (i + 4))) {
_root["block" + i] = 1;
}
_root["b" + i].bymoved = 1;
_root["b" + i].ycpos++;
_root["b" + i]._y = _root["b" + i]._y + _root["b" + i]._width;
}
i++;
}
j++;
}
}
} else {
i = 1;
while (i < 5) {
_root["b" + i].bymoved = 0;
i++;
}
dts = 0;
}
}
}
onClipEvent (load) {
startframe = _root._currentframe;
}
onClipEvent (enterFrame) {
if (_root._currentframe != startframe) {
this.removeMovieClip(this);
}
}
Instance of Symbol 256 MovieClip in Frame 15
onClipEvent (load) {
startframe = _root._currentframe;
this.swapDepths((this.getNextHighestDepth() + _root.t) + 100);
}
onClipEvent (enterFrame) {
if (_root._currentframe != startframe) {
this.removeMovieClip(this);
}
}
Instance of Symbol 321 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this._currentframe != _root.bg._currentframe) {
this.gotoAndStop(_root.bg._currentframe);
}
}
Instance of Symbol 155 MovieClip in Frame 15
onClipEvent (load) {
frame = _root._currentframe;
this.swapDepths((this.getNextHighestDepth() + _root.t) + 700);
}
onClipEvent (enterFrame) {
if (_root._currentframe < frame) {
this.removeMovieClip(this);
}
if (_root._currentframe > frame) {
this.removeMovieClip(this);
}
if ((!Key.isDown(80)) && (this._currentframe > 1)) {
toggled = 1;
}
if ((!Key.isDown(80)) && (this._currentframe == 1)) {
toggled2 = 1;
}
if ((Key.isDown(80) && (this._currentframe == 1)) && (toggled2)) {
_root.gpaused = 1;
this.gotoAndStop(1 + _root.bg._currentframe);
toggled2 = 0;
}
if ((Key.isDown(80) && (this._currentframe > 1)) && (toggled)) {
this.gotoAndStop(1);
_root.gpaused = 0;
toggled = 0;
}
}
Instance of Symbol 93 MovieClip in Frame 15
onClipEvent (load) {
this.swapDepths(100000);
}
Frame 16
if (resetlevel) {
if (dnr) {
_root.ttime1 = _root.ttime;
}
resetlevel = 0;
_root.totaltime = _root.totaltime1;
gotoAndStop ("Game");
} else {
game = SharedObject.getLocal("GridLineData");
game.data.saveddata = 1;
game.data.clevel = level + 1;
game.data.cdifficulty = _root.difficulty;
game.data.cbbonus = _root.bbonus;
game.data.ctotaltime = _root.totaltime;
game.flush();
}
block1 = 0;
block2 = 0;
block3 = 0;
block4 = 0;
Frame 17
game = SharedObject.getLocal("GridLineData");
game.data.saveddata = 0;
game.data.clevel = 0;
game.data.cdifficulty = 0;
game.data.cbbonus = 0;
game.data.ctotaltime = 0;
game.flush();
timebonus = totaltime - bonus;
trace(timebonus);
Instance of Symbol 330 MovieClip in Frame 17
onClipEvent (enterFrame) {
stop();
if (_root.colorscheme == "blue") {
this.gotoAndStop(2);
}
if (_root.colorscheme == "red") {
this.gotoAndStop(3);
}
if (_root.colorscheme == "black") {
this.gotoAndStop(4);
}
}
Instance of Symbol 333 MovieClip "entername" in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else if ((_root.Name == undefined) || (_root.Name == "")) {
_root.entername.gotoAndStop(1);
}
if ((_root.Name != undefined) && (_root.Name != "")) {
_root.entername.gotoAndStop(2);
}
}
Symbol 360 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.3");
}
static function showPreGameAd(options) {
var _local30 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = _parseOptions(options, _local30);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
return(undefined);
}
var _local20 = options.clip;
var _local26 = 11000;
var _local29 = options.ad_timeout;
delete options.ad_timeout;
var _local23 = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local6 = _local20._mochiad;
_local6.onUnload = function () {
options.ad_finished();
};
var _local15 = _getRes(options);
var _local4 = _local15[0];
var _local14 = _local15[1];
_local6._x = _local4 * 0.5;
_local6._y = _local14 * 0.5;
var chk = _local6.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local25 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local27 = options.outline;
delete options.outline;
var _local5 = _local8.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local21);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local8.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local25);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local27, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local26;
chk.ad_timeout = _local29;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = _local23;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
_local6.lc.adLoaded = options.ad_loaded;
_local6.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local16 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = _parseOptions(options, _local16);
var _local10 = options.clip;
var _local13 = 11000;
var _local15 = options.ad_timeout;
delete options.ad_timeout;
var _local12 = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = _local10._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local6 = _getRes(options);
var _local17 = _local6[0];
var _local14 = _local6[1];
_local3._x = _local17 * 0.5;
_local3._y = _local14 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local13;
chk.ad_timeout = _local15;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = _local12;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
}
Symbol 361 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\+", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\+", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + "\\n";
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 14 Button
on (release) {
getURL ("http://www.flak-games.com", "_blank");
}
Symbol 23 MovieClip Frame 208
_parent.play();
Symbol 41 MovieClip Frame 190
_parent.play();
Symbol 42 MovieClip Frame 2
stop();
Symbol 42 MovieClip Frame 3
stop();
Symbol 42 MovieClip Frame 4
_root.play();
Symbol 50 MovieClip Frame 1
stop();
Symbol 54 Button
on (release) {
getURL ("http://www.flak-games.com/", "_blank");
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 2
stop();
Symbol 70 MovieClip Frame 3
stop();
Symbol 78 MovieClip Frame 10
stop();
Symbol 79 MovieClip Frame 10
stop();
Symbol 80 Button
on (release) {
game = SharedObject.getLocal("GridLineData");
if (game.data.saveddata) {
gotoAndStop ("resume");
} else {
gotoAndStop ("ChooseDifficulty1");
}
}
Symbol 81 Button
on (release) {
gotoAndStop ("Instructions");
}
Symbol 82 Button
on (release) {
gotoAndStop ("ChooseDifficulty2");
}
Symbol 83 Button
on (release) {
gotoAndStop ("Settings");
}
Symbol 84 Button
on (release) {
gotoAndStop ("credits");
}
Symbol 85 Button
on (release) {
getURL ("http://www.flak-games.com/", "_blank");
}
Symbol 93 MovieClip Frame 2
stop();
Symbol 100 Button
on (release) {
gotoAndStop(_currentframe + 3);
}
Symbol 101 Button
on (release) {
gotoAndStop(_currentframe + 6);
}
Symbol 105 Button
on (release) {
gotoAndStop(_currentframe + 3);
}
Symbol 106 Button
on (release) {
gotoAndStop(_currentframe + 6);
}
Symbol 109 Button
on (release) {
gotoAndStop(_currentframe + 3);
}
Symbol 110 Button
on (release) {
gotoAndStop(_currentframe + 6);
}
Symbol 114 Button
on (release) {
_root._quality = "HIGH";
}
Symbol 117 Button
on (release) {
_root._quality = "MEDIUM";
}
Symbol 118 Button
on (release) {
_root._quality = "LOW";
}
Symbol 119 Button
on (release) {
_root.bg.gotoAndStop(1);
_root.colorscheme = "blue";
gotoAndStop (5);
trace(_currentframe);
}
Symbol 120 Button
on (release) {
_root.bg.gotoAndStop(2);
_root.colorscheme = "red";
gotoAndStop (6);
}
Symbol 121 Button
on (release) {
_root.bg.gotoAndStop(3);
_root.colorscheme = "black";
gotoAndStop (7);
}
Symbol 122 Button
on (release) {
gotoAndStop(_currentframe - 3);
}
Symbol 126 Button
on (release) {
_root._quality = "HIGH";
}
Symbol 127 Button
on (release) {
_root._quality = "MEDIUM";
}
Symbol 130 Button
on (release) {
_root._quality = "LOW";
}
Symbol 131 Button
on (release) {
_root.bg.gotoAndStop(1);
_root.colorscheme = "blue";
gotoAndStop (5);
trace(_currentframe - 3);
}
Symbol 132 Button
on (release) {
_root.bg.gotoAndStop(2);
_root.colorscheme = "red";
gotoAndStop (6);
}
Symbol 133 Button
on (release) {
_root.bg.gotoAndStop(3);
_root.colorscheme = "black";
gotoAndStop (7);
}
Symbol 134 Button
on (release) {
gotoAndStop(_currentframe - 3);
}
Symbol 137 Button
on (release) {
_root._quality = "HIGH";
}
Symbol 138 Button
on (release) {
_root._quality = "MEDIUM";
}
Symbol 141 Button
on (release) {
_root._quality = "LOW";
}
Symbol 142 Button
on (release) {
_root.bg.gotoAndStop(1);
_root.colorscheme = "blue";
gotoAndStop (5);
}
Symbol 143 Button
on (release) {
_root.bg.gotoAndStop(2);
_root.colorscheme = "red";
gotoAndStop (6);
}
Symbol 144 Button
on (release) {
_root.bg.gotoAndStop(3);
_root.colorscheme = "black";
gotoAndStop (7);
}
Symbol 145 Button
on (release) {
gotoAndStop(_currentframe - 3);
}
Symbol 146 Button
on (release) {
_root.playsong(1);
}
Symbol 147 Button
on (release) {
_root.playsong(2);
}
Symbol 148 Button
on (release) {
_root.playsong(3);
}
Symbol 149 Button
on (release) {
_root.mySound.setVolume(0);
}
Symbol 150 Button
on (release) {
_root.mySound.setVolume(30);
}
Symbol 151 Button
on (release) {
_root.mySound.setVolume(60);
}
Symbol 152 Button
on (release) {
_root.mySound.setVolume(100);
}
Symbol 153 Button
on (release) {
gotoAndStop(_currentframe - 6);
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 161 Button
on (release) {
difficulty = "Easy";
level = 1;
gotoAndStop ("Game");
}
Symbol 162 Button
on (release) {
difficulty = "Medium";
level = 1;
gotoAndStop ("Game");
}
Symbol 163 Button
on (release) {
difficulty = "Hard";
level = 1;
gotoAndStop ("Game");
}
Symbol 164 Button
on (release) {
gotoAndStop ("Main Menu");
}
Symbol 169 Button
on (release) {
getURL ("http://rankz.armorbot.com/GridLine_Easy/", "_blank");
}
Symbol 170 Button
on (release) {
getURL ("http://rankz.armorbot.com/GridLine_Medium/", "_blank");
}
Symbol 171 Button
on (release) {
getURL ("http://rankz.armorbot.com/GridLine_Hard/", "_blank");
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 1
stop();
Instance of Symbol 182 MovieClip in Symbol 183 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root["block" + (_parent._currentframe - 4)] == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 200 Button
on (release) {
game = SharedObject.getLocal("GridLineData");
_root.level = game.data.clevel;
_root.difficulty = game.data.cdifficulty;
_root.bbonus = game.data.cbbonus;
_root.ttime = game.data.cttime;
gotoAndStop ("Game");
}
Symbol 201 Button
on (release) {
gotoAndStop ("ChooseDifficulty1");
}
Symbol 206 Button
on (release) {
gotoAndStop ("Video Settings");
}
Symbol 207 Button
on (release) {
gotoAndStop ("Audio Settings");
}
Symbol 212 Button
on (release) {
gotoAndStop ("Settings");
}
Symbol 213 Button
on (release) {
_root._quality = "HIGH";
}
Symbol 214 Button
on (release) {
_root._quality = "MEDIUM";
}
Symbol 215 Button
on (release) {
_root._quality = "LOW";
}
Symbol 216 Button
on (release) {
_root.bg.gotoAndStop(1);
_root.colorscheme = "blue";
}
Symbol 217 Button
on (release) {
_root.bg.gotoAndStop(2);
_root.colorscheme = "red";
}
Symbol 218 Button
on (release) {
_root.bg.gotoAndStop(3);
_root.colorscheme = "black";
}
Symbol 225 Button
on (release) {
_root.playsong(1);
}
Symbol 226 Button
on (release) {
_root.playsong(2);
}
Symbol 227 Button
on (release) {
_root.playsong(3);
}
Symbol 228 Button
on (release) {
_root.mySound.setVolume(0);
}
Symbol 229 Button
on (release) {
_root.mySound.setVolume(30);
}
Symbol 230 Button
on (release) {
_root.mySound.setVolume(60);
}
Symbol 231 Button
on (release) {
_root.mySound.setVolume(100);
}
Symbol 247 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 258 Button
on (release) {
_root.bg.gotoAndStop(3);
_root.colorscheme = "black";
}
Symbol 259 Button
on (release) {
_root.bg.gotoAndStop(2);
_root.colorscheme = "red";
}
Symbol 260 Button
on (release) {
_root.bg.gotoAndStop(1);
_root.colorscheme = "blue";
}
Symbol 261 Button
on (release) {
_root.dnr = 1;
_root.resetlevel = 1;
_root.gotoAndStop("level complete");
}
Symbol 262 Button
on (release) {
_root.gotoAndStop("Main Menu");
}
Symbol 271 Button
on (press) {
mm1 = 1;
startDrag (this.btn, true, -100, 0, 100, 0);
}
on (release) {
_root.mySound.setVolume((this.btn._x + 100) / 2);
mm1 = 0;
stopDrag();
}
on (releaseOutside) {
_root.mySound.setVolume((this.btn._x + 100) / 2);
mm1 = 0;
stopDrag();
}
Symbol 290 Button
on (release) {
if (_root.nsong == 1) {
_root.playsong(2);
} else if (_root.nsong == 2) {
_root.playsong(3);
} else if (_root.nsong == 3) {
_root.playsong(1);
}
}
Symbol 291 Button
on (release) {
if (_root.nsong == 1) {
_root.playsong(3);
} else if (_root.nsong == 2) {
_root.playsong(1);
} else if (_root.nsong == 3) {
_root.playsong(2);
}
}
Symbol 294 MovieClip Frame 1
stop();
Symbol 296 Button
on (release) {
if (_root.mySound.getVolume() > 0) {
mvmv = _root.mySound.getVolume();
_root.mySound.setVolume(0);
} else if (_root.mySound.getVolume() <= 0) {
if (mvmv != undefined) {
_root.mySound.setVolume(mvmv);
} else {
_root.mySound.setVolume(80);
}
}
}
Symbol 299 Button
on (release) {
_root.resetlevel = 1;
_root.gotoAndStop("level complete");
}
Symbol 300 Button
on (release) {
_root.gotoAndStop("Main Menu");
}
Symbol 304 Button
on (release) {
_root.resetlevel = 1;
_root.gotoAndStop("level complete");
}
Symbol 305 Button
on (release) {
_root.gotoAndStop("Main Menu");
}
Symbol 319 Button
on (release) {
if (n == 1) {
_root.playsong(2);
} else if (n == 2) {
_root.playsong(3);
} else if (n == 3) {
_root.playsong(1);
}
}
Symbol 321 MovieClip Frame 1
stop();
Instance of Symbol 276 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._currentframe != _root.bg._currentframe) {
this.gotoAndStop(_root.bg._currentframe);
}
if (_root.nsong == 1) {
_parent.Song = "Breathe - by: 2nd Edition";
}
if (_root.nsong == 2) {
_parent.Song = "Chaoz Fantasy - by: ParagonX9";
}
if (_root.nsong == 3) {
_parent.Song = "R.O.C.K.I.T. - by: nal1200";
}
if (!mm1) {
this.btn._x = (_root.mySound.getVolume() * 2) - 100;
}
}
Instance of Symbol 294 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mySound.getVolume() <= 0) {
this.gotoAndStop(2);
}
if (_root.mySound.getVolume() > 0) {
this.gotoAndStop(1);
}
}
Symbol 324 Button
on (release) {
if (level == 20) {
gotoAndStop ("win");
} else {
level++;
if (bbonus == undefined) {
bbonus = 0;
}
bbonus = bonus;
ttime1 = 0;
gotoAndStop ("Game");
}
}
on (keyPress "<Space>") {
if (level == 20) {
gotoAndStop ("win");
} else {
level++;
if (bbonus == undefined) {
bbonus = 0;
}
bbonus = bonus;
ttime1 = 0;
gotoAndStop ("Game");
}
}
Symbol 333 MovieClip Frame 1
stop();
Symbol 334 Button
on (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
_root.posted.gotoAndStop(2);
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
Name12 = _root.Name;
if ((_root.Name == undefined) || (_root.Name == "")) {
Name12 = "Anonymous";
_root.Name = "Anonymous";
}
bXlnYW1lX25hbWVfdmFyaWFibGU = Name12;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.timebonus;
if (_root.difficulty == "Easy") {
__rankz_send__("MjI4OWolZSVhJW4lcw==", "eUNUeFdEQWY=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
}
if (_root.difficulty == "Medium") {
__rankz_send__("MjI5MGolZSVhJW4lcw==", "SlpHZ2tib0s=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
}
if (_root.difficulty == "Hard") {
__rankz_send__("MjI5MWolZSVhJW4lcw==", "SlZoVXpHSE8=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
}
}
Symbol 335 Button
on (release) {
getURL (("http://rankz.armorbot.com/GridLine_" + _root.difficulty) + "/", "_blank");
}
Symbol 339 Button
on (release) {
_root.gotoAndStop("Main Menu");
}
Symbol 359 MovieClip Frame 1
stop();