﻿ACTIONSCRIPT (AS1/AS2) FOR FLASH #264463
https://swfchan.com/53/264463/

	movieClip 168	{
	}
	movieClip 169	{
	}
	movieClip 171	{
	}
	movieClip 173	{
		frame 1 {
			stop();
		}
	}
	movieClip 176	{
	}
	movieClip 177	{
	}
	movieClip 180	{
	}
	movieClip 183	{
		frame 1 {
			stop();
		}
	}
	movieClip 184 Preloader {
		frame 1 {
			function enterFrameHandler() {
				var v2 = 0;
				v2 = _root.getBytesLoaded() / _root.getBytesTotal();
				if (loadingBar) {
					loadingBar.gotoAndStop(Number(v2 * (loadingBar.totalFrames - 1)) + 1);
				}
				if (v2 >= 1) {
					onEnterFrame = null;
					gotoAndStop('loaded');
				}
			}
			stop();
			var autoPlay;
			var className;
			onEnterFrame = enterFrameHandler;
		}
		frame 10 {
			function _onPlayClick() {
				_root.nextFrame();
				_root.play();
				_parent._onLoaded();
			}
			if (playButton) {
				playButton.onRelease = _onPlayClick;
				playButton.stop();
			}
			if (autoPlay) {
				_onPlayClick(null);
			}
		}
	}
	movieClip 200	{
	}
	movieClip 203	{
	}
	movieClip 208	{
	}
	movieClip 212	{
	}
	movieClip 213	{
	}
	movieClip 214	{
	}
	movieClip 215 FlashAd {
		#initclip
			Object.registerClass('FlashAd', com.newgrounds.components.FlashAdBase);
		#endinitclip
		frame 1 {
			stop();
		}
	}
	movieClip 217	{
	}
	movieClip 218 bubble {
		frame 1 {
			gotoAndPlay(random(15));
		}
	}
	
	// unknown tag 88 length 67
	movieClip 221	{
	}
	movieClip 222	{
		frame 1 {
			gotoAndPlay(random(10));
		}
	}
	movieClip 223 score_MC {
		frame 55 {
			this.removeMovieClip();
		}
	}
	movieClip 227	{
	}
	movieClip 228	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.slowmospeed == 1) {
					current = this._currentframe;
					if (this._currentframe > 205) {
						gotoAndPlay(current * 4);
					}
				} else {
					if (_root.slowmospeed > 1) {
						current = this._currentframe;
						if (this._currentframe < 205) {
							gotoAndPlay(200 + Math.ceil(current / 4));
						}
					}
				}
			};
		}
		frame 1 {
			chance = random(2);
			if (chance == 1) {
				gotoAndPlay(120);
			}
		}
		frame 199 {
			gotoAndPlay(1);
		}
		frame 200 {
			chance = random(2);
			if (chance == 1) {
				gotoAndPlay(475);
			}
		}
		frame 799 {
			gotoAndPlay('flow_slow');
		}
	}
	movieClip 229	{
		frame 1 {
			gotoAndPlay(random(50));
		}
	}
	movieClip 231	{
	}
	movieClip 233	{
	}
	movieClip 235	{
	}
	movieClip 239	{
	}
	movieClip 240	{
	}
	movieClip 241	{
	}
	movieClip 242	{
		frame 1 {
			stop();
		}
	}
	movieClip 245	{
	}
	movieClip 249	{
		frame 1 {
			stop();
		}
	}
	movieClip 253	{
		frame 1 {
			stop();
		}
	}
	movieClip 255	{
		frame 1 {
			stop();
		}
	}
	
	// unknown tag 88 length 425
	movieClip 258	{
		frame 1 {
			xtra = '';
			if (_root.fishing_game.nummer == 10000 or _root.fishing_game.nummer == 100000 or _root.fishing_game.nummer == 200000) {
				xtra = '!!';
			}
			txt.text = 'YOU PASSED THE ' + _root.fishing_game.nummer + ' MARK!' + xtra;
		}
	}
	movieClip 262	{
		frame 1 {
			streak.text = _root.fishing_game.streaktext2;
		}
	}
	movieClip 265	{
		frame 1 {
			stop();
		}
	}
	movieClip 267	{
	}
	movieClip 272	{
		frame 1 {
			gotoAndStop(_root.menucolor);
			onEnterFrame = function () {
				if (_root.menucolor == undefined) {
					gotoAndStop(1);
				} else {
					gotoAndStop(_root.menucolor);
				}
			};
		}
	}
	movieClip 273	{
	}
	movieClip 275	{
		frame 1 {
			streak.text = _root.fishing_game.streaktext;
		}
	}
	movieClip 276	{
		frame 1 {
			stop();
		}
	}
	movieClip 282	{
		frame 1 {
			gotoAndStop(_root.menucolor);
			onEnterFrame = function () {
				if (_root.menucolor == undefined) {
					gotoAndStop(1);
				} else {
					gotoAndStop(_root.menucolor);
				}
			};
		}
	}
	movieClip 284	{
	}
	movieClip 285	{
		frame 1 {
			stop();
		}
	}
	movieClip 288	{
	}
	movieClip 290	{
	}
	movieClip 292	{
	}
	movieClip 294	{
	}
	movieClip 295	{
		frame 132 {
			_root.fishing_game.startGame();
			stop();
		}
	}
	movieClip 297	{
	}
	movieClip 300	{
		frame 1 {
			stop();
		}
		frame 125 {
			_root.gamepause = 0;
			_root.gotoAndStop('fishgame_end');
		}
	}
	movieClip 302	{
	}
	movieClip 303	{
	}
	movieClip 307	{
	}
	movieClip 309	{
	}
	movieClip 310	{
		frame 1 {
			stop();
		}
	}
	movieClip 312	{
		frame 1 {
			stop();
		}
	}
	movieClip 313	{
	}
	movieClip 316	{
	}
	
	// unknown tag 88 length 296
	movieClip 319 Newgrounds API Font {
	}
	movieClip 322	{
	}
	movieClip 326	{
	}
	movieClip 329	{
	}
	
	// unknown tag 88 length 282
	movieClip 334	{
	}
	movieClip 336	{
	}
	movieClip 338	{
	}
	movieClip 340	{
	}
	movieClip 342	{
	}
	movieClip 343 MedalPopup {
		frame 1 {
			function onMedalUnlocked(event) {
				if (event.__get__success()) {
					_medalQueue.push(event.__get__data());
					showNextUnlock();
				}
			}
			function showNextUnlock() {
				if (_unlockedMedal) {
					return undefined;
				}
				if (!_medalQueue.length) {
					gotoAndStop('hidden');
					onEnterFrame = null;
					return undefined;
				}
				_unlockedMedal = com.newgrounds.Medal(_medalQueue.shift());
				gotoAndPlay('medalUnlocked');
			}
			gotoAndStop('hidden');
			com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked);
			var alwaysOnTop;
			_x = int(_x);
			_y = int(_y);
			var _unlockedMedal;
			var _medalQueue = [];
			var _alwaysOnTop = true;
			if (alwaysOnTop) {
				_alwaysOnTop = alwaysOnTop == 'true';
			}
		}
		frame 15 {
			function medalPopupEnterFrame() {
				if (_alwaysOnTop) {
					var v1 = getNextHighestDepth();
					swapDepths(v1);
				}
				if (_medalScrollRect) {
					_medalScrollRect.offset(2, 0);
					medalNameClip.scrollRect = _medalScrollRect;
					if (_medalScrollRect.left >= medalNameClip.textField.textWidth + 10) {
						_medalScrollRect = null;
						play();
					}
				}
			}
			var _medalScrollRect;
			if (_unlockedMedal) {
				if (medalNameClip && medalNameClip.textField) {
					medalNameClip.textField.text = _unlockedMedal.name;
				}
				if (medalPointsText) {
					medalPointsText.text = _unlockedMedal.value.toString();
				}
				if (medalNameClip.textField.textWidth > medalNameClip._width) {
					_medalScrollRect = new flash.geom.Rectangle(-medalNameClip._width, 0, medalNameClip._width, medalNameClip._height);
					medalNameClip.textField._width = 1000;
					medalNameClip.scrollRect = _medalScrollRect;
				}
				onEnterFrame = medalPopupEnterFrame;
			}
		}
		frame 23 {
			if (_unlockedMedal && medalIcon) {
				_unlockedMedal.attachIcon(medalIcon);
			}
		}
		frame 84 {
			if (_medalScrollRect) {
				stop();
			}
		}
		frame 105 {
			stop();
			_unlockedMedal = null;
			showNextUnlock();
		}
	}
	movieClip 350	{
	}
	movieClip 355	{
		frame 1 {
			stop();
		}
		instance of movieClip 343 MedalPopup {
			onClipEvent (construct) {
				alwaysOnTop = 'true';
			}
		}
		frame 2 {
			++_root.gamepause;
			clearInterval(_root.countID);
			clearInterval(_root.countTID);
		}
		frame 5 {
			_root.globalvolume.setVolume(_root.volumez - _root.volumez / 5);
		}
		frame 10 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 2);
		}
		frame 15 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 3);
		}
		frame 20 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 4);
		}
		frame 25 {
			_root.globalvolume.setVolume(0);
			stop();
		}
		frame 30 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 4);
		}
		frame 35 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 3);
		}
		frame 40 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 2);
		}
		frame 45 {
			_root.globalvolume.setVolume(_root.volumez - _root.volumez / 5);
			_root.goto2 = false;
		}
		frame 55 {
			_root.doendPause();
			_root.countID = setInterval(_root.doCounter, 1000);
			_root.countTID = setInterval(_root.doTCounter, 1000);
			_root.globalvolume.setVolume(_root.volumez);
		}
	}
	movieClip 362	{
		frame 1 {
			gotoAndStop(_root.menucolor);
			onEnterFrame = function () {
				if (_root.menucolor == undefined) {
					gotoAndStop(1);
				} else {
					gotoAndStop(_root.menucolor);
				}
			};
		}
	}
	button 369 {
		on (release) {
			_root.sfxmute = false;
		}
	}
	button 371 {
		on (release) {
			_root.sfxmute = true;
		}
	}
	button 373 {
		on (release) {
			_root.quallow2();
		}
		on (rollOver) {
			if (_root.hotinfo == true) {
				hotf.gotoAndStop(2);
			}
		}
		on (rollOut) {
			hotf.gotoAndStop(1);
		}
	}
	button 375 {
		on (release) {
			_root.qualmedium2();
		}
		on (rollOver) {
			if (_root.hotinfo == true) {
				hotf.gotoAndStop(3);
			}
		}
		on (rollOut) {
			hotf.gotoAndStop(1);
		}
	}
	button 377 {
		on (release) {
			_root.qualhigh2();
		}
		on (rollOver) {
			if (_root.hotinfo == true) {
				hotf.gotoAndStop(4);
			}
		}
		on (rollOut) {
			hotf.gotoAndStop(1);
		}
	}
	button 378 {
		on (release) {
			_root.autoscreensave = true;
			_root.Scenez.down_MC.grass_MC._visible = true;
		}
	}
	button 379 {
		on (release) {
			_root.autoscreensave = false;
			_root.Scenez.down_MC.grass_MC._visible = false;
		}
	}
	button 384 {
		on (release) {
			_root.musicmute = false;
			_root.music.attachSound(_root.currentmusic);
			_root.music.start(0, 999);
		}
	}
	button 385 {
		on (release) {
			stopAllSounds();
			_root.musicmute = true;
		}
	}
	button 387 {
		on (release) {
			_root.volumez = 100;
			_root.globalvolume.setVolume(_root.volumez);
			if (_root.musicmute == false) {
				_root.music.setVolume(_root.volumez);
			}
		}
		on (rollOver) {
			if (_root.hotinfo == true) {
				hotm.gotoAndStop(2);
			}
		}
		on (rollOut) {
			hotm.gotoAndStop(1);
		}
	}
	button 388 {
		on (release) {
			_root.volumez = 75;
			_root.globalvolume.setVolume(_root.volumez);
			if (_root.musicmute == false) {
				_root.music.setVolume(_root.volumez);
			}
		}
		on (rollOver) {
			if (_root.hotinfo == true) {
				hotm.gotoAndStop(2);
			}
		}
		on (rollOut) {
			hotm.gotoAndStop(1);
		}
	}
	button 389 {
		on (release) {
			_root.volumez = 50;
			_root.globalvolume.setVolume(_root.volumez);
			if (_root.musicmute == false) {
				_root.music.setVolume(_root.volumez);
			}
		}
		on (rollOver) {
			if (_root.hotinfo == true) {
				hotm.gotoAndStop(2);
			}
		}
		on (rollOut) {
			hotm.gotoAndStop(1);
		}
	}
	button 390 {
		on (release) {
			_root.volumez = 25;
			_root.globalvolume.setVolume(_root.volumez);
			if (_root.musicmute == false) {
				_root.music.setVolume(_root.volumez);
			}
		}
		on (rollOver) {
			if (_root.hotinfo == true) {
				hotm.gotoAndStop(2);
			}
		}
		on (rollOut) {
			hotm.gotoAndStop(1);
		}
	}
	button 391 {
		on (release) {
			_root.volumez = 0;
			_root.globalvolume.setVolume(_root.volumez);
			if (_root.musicmute == false) {
				_root.music.setVolume(_root.volumez);
			}
		}
		on (rollOver) {
			if (_root.hotinfo == true) {
				hotm.gotoAndStop(2);
			}
		}
		on (rollOut) {
			hotm.gotoAndStop(1);
		}
	}
	button 395 {
		on (release) {
			if (hot._currentframe == 1) {
				hot.gotoAndStop(2);
			} else {
				hot.gotoAndStop(1);
			}
		}
	}
	button 396 {
		on (release) {
			_root.hotinfo = true;
		}
	}
	button 397 {
		on (release) {
			_root.hotinfo = false;
		}
	}
	
	// unknown tag 88 length 430
	movieClip 401	{
		frame 1 {
			stop();
		}
	}
	movieClip 405	{
		frame 1 {
			stop();
		}
	}
	movieClip 407	{
		frame 1 {
			stop();
		}
	}
	movieClip 409	{
		frame 1 {
			stop();
		}
	}
	movieClip 411	{
		frame 1 {
			stop();
		}
	}
	movieClip 413	{
		frame 1 {
			stop();
		}
	}
	movieClip 415	{
		frame 1 {
			stop();
		}
	}
	movieClip 417	{
		frame 1 {
			stop();
		}
	}
	movieClip 434	{
		frame 1 {
			clearInterval(intervalId);
			stop();
		}
	}
	movieClip 435	{
		frame 1 {
			clearInterval(intervalId);
			stop();
		}
		frame 2 {
			fpzCounter = 0;
			fpz = 30;
			fpzReport = function () {
				fpz = fpzCounter;
				fpzCounter = 0;
			};
			intervalId = setInterval(fpzReport, 1000);
			onEnterFrame = function () {
				++fpzCounter;
				if (fpz < 30) {
					fps_txt.text = fpz + ' / 30';
				} else {
					fps_txt.text = '30 / 30';
				}
				if (_root.volumez == 0) {
					volume_0.gotoAndStop(2);
					volume_1.gotoAndStop(1);
					volume_2.gotoAndStop(1);
					volume_3.gotoAndStop(1);
					volume_4.gotoAndStop(1);
				} else {
					if (_root.volumez == 25) {
						volume_0.gotoAndStop(1);
						volume_1.gotoAndStop(2);
						volume_2.gotoAndStop(1);
						volume_3.gotoAndStop(1);
						volume_4.gotoAndStop(1);
					} else {
						if (_root.volumez == 50) {
							volume_0.gotoAndStop(1);
							volume_1.gotoAndStop(1);
							volume_2.gotoAndStop(2);
							volume_3.gotoAndStop(1);
							volume_4.gotoAndStop(1);
						} else {
							if (_root.volumez == 75) {
								volume_0.gotoAndStop(1);
								volume_1.gotoAndStop(1);
								volume_2.gotoAndStop(1);
								volume_3.gotoAndStop(2);
								volume_4.gotoAndStop(1);
							} else {
								if (_root.volumez == 100) {
									volume_0.gotoAndStop(1);
									volume_1.gotoAndStop(1);
									volume_2.gotoAndStop(1);
									volume_3.gotoAndStop(1);
									volume_4.gotoAndStop(2);
								}
							}
						}
					}
				}
				if (_root.musicmute == false) {
					music_off.gotoAndStop(1);
					music_on.gotoAndStop(2);
				} else {
					if (_root.musicmute == true) {
						music_off.gotoAndStop(2);
						music_on.gotoAndStop(1);
					}
				}
				if (_root.sfxmute == false) {
					sfx_off.gotoAndStop(1);
					sfx_on.gotoAndStop(2);
				} else {
					if (_root.sfxmute == true) {
						sfx_off.gotoAndStop(2);
						sfx_on.gotoAndStop(1);
					}
				}
				if (_root.gamequality == 'medium') {
					q_low.gotoAndStop(1);
					q_medium.gotoAndStop(2);
					q_high.gotoAndStop(1);
				} else {
					if (_root.gamequality == 'high') {
						q_low.gotoAndStop(1);
						q_medium.gotoAndStop(1);
						q_high.gotoAndStop(2);
					} else {
						if (_root.gamequality == 'low') {
							q_low.gotoAndStop(2);
							q_medium.gotoAndStop(1);
							q_high.gotoAndStop(1);
						}
					}
				}
				if (_root.autoscreensave == true) {
					detail_off.gotoAndStop(1);
					detail_on.gotoAndStop(2);
				} else {
					detail_off.gotoAndStop(2);
					detail_on.gotoAndStop(1);
				}
				if (_root.hotinfo == true) {
					hot_off.gotoAndStop(1);
					hot_on.gotoAndStop(2);
				} else {
					hot_off.gotoAndStop(2);
					hot_on.gotoAndStop(1);
				}
			};
		}
	}
	movieClip 439	{
		frame 1 {
			stop();
		}
	}
	button 440 {
		on (press) {
			_parent.endGame();
			_parent.options_MC.gotoAndStop(1);
			_parent.pause_MC.gotoAndPlay(26);
			this._visible = false;
			Mouse.hide();
		}
	}
	movieClip 441	{
	}
	movieClip 442 Fishing_game {
		frame 1 {
			stop();
			Mouse.hide();
			_root.music.stop(_root.currentmusic);
			_root.newmusic = 'sunspot';
			_root.currentmusic = _root.newmusic;
			_root.music.attachSound(_root.currentmusic);
			_root.music.start(0, 999);
			splashmouse = false;
			_root.endfishing = false;
			_root.gamepause = 1;
			fishing_BT._visible = false;
			fishRate = 10;
			maxfish = 15;
			countdown = 60;
			fishingHUD.white_MC.gotoAndPlay(2);
			fishingHUD.timer_MC.score_graph.score_txt.text = countdown;
			clockvar = 1;
			i = 1;
			while (i < 500) {
				this['gotten' + i * 1000] = false;
				++i;
			}
			this.createEmptyMovieClip('bgfishLayer', 1);
			bg.swapDepths(this.getNextHighestDepth());
			this.createEmptyMovieClip('bubbleLayer', this.getNextHighestDepth());
			this.createEmptyMovieClip('fishLayer', this.getNextHighestDepth());
			net.swapDepths(this.getNextHighestDepth());
			fg.swapDepths(this.getNextHighestDepth());
			spark_MC.swapDepths(this.getNextHighestDepth());
			catch_MC.swapDepths(this.getNextHighestDepth());
			pause_MC.swapDepths(this.getNextHighestDepth());
			options_MC.swapDepths(this.getNextHighestDepth());
			fishing_BT.swapDepths(this.getNextHighestDepth());
			this.createEmptyMovieClip('scoreLayer', this.getNextHighestDepth());
			killstreak_MC.swapDepths(this.getNextHighestDepth());
			killstreak2_MC.swapDepths(this.getNextHighestDepth());
			white.swapDepths(this.getNextHighestDepth());
			fishingHUD.swapDepths(this.getNextHighestDepth());
			killstreakon = new Array();
			killstreakcounter = new Array();
			killstreak = new Array();
			killID = new Array();
			thunder = new Sound();
			splash = new Sound();
			splash.attachSound('pool_spl-Public_D-7353_hifiX.mp3');
			bubblez = new Sound();
			bubblez.attachSound('Splash_w-Tarantul-8216_hifiX.mp3');
			splash2 = new Sound();
			splash2.attachSound('Splash-Supershe-7931_hifi.mp3');
			el = new Sound();
			el.attachSound('el_louder.wav');
			catchfish = new Sound();
			catchfish.attachSound('axe');
			intermission = false;
			power = false;
			bignet = false;
			worm = false;
			juggernaught = false;
			jswim = false;
			_root.fishscore = 0;
			killstreakattempt = 0;
			slowmospeed = 1;
			laststreak = 0;
			bubbleCount = 0;
			fishCount = 1;
			fishTime = 0;
			bgfishCount = 0;
			bgfishTime = 0;
			totalbgfish = 0;
			totalfish = 0;
			_root.caughtfish = 0;
			fisherfish = 0;
			fisherchance = 0;
			still = 50;
			extraspeed = 0;
			fishwait = 0;
			hitting = false;
			hasflapper = false;
			fishingHUD.timerborder._visible = false;
			dotimeCounter = function () {
				if (intermission == false && _root.gamepause == 0) {
					--countdown;
					fishingHUD.timer_MC.gotoAndPlay(2);
					if (clockvar == 1) {
						++clockvar;
					} else {
						if (clockvar == 2) {
							fishingHUD.timerborder.gotoAndPlay(1);
							fishingHUD.timerborder.maskz.gotoAndPlay(1);
							clockvar = 1;
						}
					}
					if (countdown == 0) {
						endGame();
					}
				}
			};
			startGame = function () {
				_root.gamepause = 0;
				splashmouse = true;
				intermission = false;
				fishingHUD.white_MC.gotoAndPlay(2);
				fishingHUD.timerborder._visible = true;
				fishingHUD.timerborder.gotoAndPlay(1);
				fishingHUD.timerborder.maskz.gotoAndPlay(1);
				countT_fishID = setInterval(dotimeCounter, 1000);
				if (_root.sfxmute == false) {
					bubblez.start();
				}
			};
			endGame = function () {
				clearInterval(countT_fishID);
				clearInterval(slowmoID);
				stopAllSounds();
				splashmouse = false;
				intermission = false;
				_root.endfishing = true;
				_root.donefishing = true;
				if (_root.sfxmute == false) {
					thunder.attachSound('feral');
					thunder.start();
					bubblez.start();
				}
				_root.music.stop(_root.currentmusic);
				fishingHUD.white_MC.gotoAndPlay(2);
				fishingHUD.gameover_MC.gotoAndPlay(2);
				fishingHUD.timerborder.gotoAndStop(1);
				fishingHUD.timerborder.maskz.gotoAndStop(1);
				fishingHUD.timerborder._alpha = 20;
				slowmospeed = 5;
				if (_root.fishscore > fishinghighscore) {
					fishinghighscore = _root.fishscore;
				}
				++fishing_count;
			};
			doSpook = function (currentfish, spook) {
				if (spook == true) {
					currentfish.spooked = true;
					currentfish.scarespeed = currentfish.mainspeed * 3 + 5;
				} else {
					currentfish.scarespeed = currentfish.mainspeed * 2 + 5;
				}
				if (currentfish._x > net._x && currentfish.Xdirection == 1) {
					currentfish.Xdirection = 2;
					currentfish.gotoAndPlay(2);
				} else {
					if (currentfish._x <= net._x && currentfish.Xdirection == 2) {
						currentfish.Xdirection = 1;
						currentfish.gotoAndPlay(11);
					}
				}
			};
			doSlowmotion = function (force) {
				if (slowmospeed == 1 && force == true) {
					slowmospeed = 4;
				} else {
					slowmospeed = 1;
				}
			};
			doSlowmoCounter = function (type) {
				if (_root.gamepause == false) {
					--slowmocounter;
					if (slowmocounter <= 0) {
						doSlowmoend(type);
						if (type == 2) {
							doEndPower();
						}
					}
				}
				intermission = false;
			};
			doSlowmo = function (count, type) {
				doSlowmotion(true);
				slowmocounter = count;
				slowmoID = setInterval(doSlowmoCounter, 1000, type);
			};
			doSlowmoend = function (type) {
				doSlowmotion(false);
				if (type != 1) {
					powercounter = 10;
				}
				if (type == 3) {
					bignet = true;
					net.net_MC.gotoAndStop(2);
				} else {
					if (type == 4) {
						juggernaught = true;
						powercounter = 6;
					}
				}
				if (type != 1) {
					powerID = setInterval(doPowerCounter, 1000);
				}
				clearInterval(slowmoID);
			};
			doPowerCounter = function () {
				if (_root.gamepause == false) {
					--powercounter;
					if (powercounter <= 0) {
						doEndPower();
						clearInterval(powerID);
					}
				}
			};
			resetKS = function (num) {
				if (num == 'all') {
					least = killstreakattempt - 50;
					if (least < 0) {
						least = 0;
					}
					i = least;
					while (i <= killstreakattempt) {
						killstreak[i] = 0;
						killstreakon[i] = false;
						killstreakcounter[i] = 0;
						clearInterval(killID[i]);
						++i;
					}
				} else {
					killstreak[num] = 0;
					killstreakon[num] = false;
					killstreakcounter[num] = 0;
					clearInterval(killID[num]);
				}
			};
			doRandomPower = function () {
				chance = random(4) + 1;
				if ((chance == 1 or countdown < 5) && laststreak != 1) {
					countdown += 5;
					fishingHUD.timer_MC.score_graph.score_txt.text = countdown;
					fishingHUD.timer_MC.gotoAndPlay(2);
					streaktext = 'Extra 5 seconds!';
					doSlowmo(2, 1);
					laststreak = 1;
				} else {
					if (chance == undefined && laststreak != 2) {
						streaktext = 'Slowmotion!';
						power = true;
						doSlowmo(10, 2);
						laststreak = 2;
					} else {
						if (chance == 3 && laststreak != 3) {
							streaktext = 'Super net!';
							power = true;
							doSlowmo(2, 3);
							laststreak = 3;
						} else {
							if (chance == 4 && laststreak != 4) {
								streaktext = 'Juggernaught Eel!';
								jposition = random(2) + 1;
								power = true;
								doSlowmo(2, 4);
								laststreak = 4;
							} else {
								doRandomPower();
							}
						}
					}
				}
			};
			doPower = function () {
				if (_root.endfishing == false) {
					++killstreakcount;
					fishingHUD.white_MC.gotoAndPlay(2);
					killstreak_MC.gotoAndPlay(2);
					streakfishingHUD.white_MC.gotoAndPlay(2);
					doRandomPower();
					intermission = true;
					if (_root.sfxmute == false) {
						thunder.attachSound('feral');
						thunder.start();
					}
					resetKS('all');
				}
			};
			doEndPower = function () {
				bignet = false;
				worm = false;
				juggernaught = false;
				powercounter = 10;
				clearInterval(slowmoID);
				clearInterval(powerID);
				power = false;
			};
			doKillstreakCounter = function (num) {
				++killstreakcounter[num];
				if (killstreakcounter[num] >= 5) {
					if (killstreak[num] < 5) {
						resetKS(num);
					}
				}
			};
			doKill = function (killtype) {
				nrofhits = 0;
				if (_root.sfxmute == false) {
					splash.start();
				}
				least = fishCount - maxfish * 5;
				i = least;
				while (i < fishCount) {
					if (net.hitbox.hitTest(fishLayer['fish' + i].fish_MC.hitbox) && fishLayer['fish' + i].caught == false) {
						if (fishLayer['fish' + i].species != 5 && nrofhits == 0) {
							catch_MC._x = fishLayer['fish' + i]._x;
							catch_MC._y = fishLayer['fish' + i]._y;
							catch_MC.gotoAndPlay(2);
							if (fishLayer['fish' + i].species == 7) {
								hasflapper = false;
							}
							if (_root.sfxmute == false) {
								catchfish.start();
							}
							--totalfish;
							++_root.caughtfish;
							++nrofhits;
							j = 0;
							while (j < 20) {
								doBubble(fishLayer['fish' + i]._x + random(60) - 30, fishLayer['fish' + i]._y + random(60) - 30);
								++j;
							}
							scoreLayer.attachMovie('score_MC', 's' + i, i);
							scoreLayer['s' + i]._x = fishLayer['fish' + i]._x - 55;
							scoreLayer['s' + i]._y = fishLayer['fish' + i]._y - 10;
							scoreLayer['s' + i].score_wobble.score_graph.score_txt.text = fishLayer['fish' + i].score;
							_root.fishscore += fishLayer['fish' + i].score;
							fishingHUD.score_MC.score_graph.score_txt.text = _root.fishscore;
							fishingHUD.score_MC.gotoAndPlay(2);
							j = 1;
							while (j < 500) {
								if (_root.fishscore >= j * 1000 && eval('gotten' + j * 1000) == false) {
									this['gotten' + j * 1000] = true;
									fishingHUD.white_MC.gotoAndPlay(2);
									nummer = j * 1000;
									killstreak2_MC.gotoAndPlay(2);
									fishingHUD.white_MC.gotoAndPlay(20);
									if (nummer == 10000 or nummer == 100000) {
										streaktext2 = 'You get an extra 5 seconds!!!';
									} else {
										streaktext2 = 'You get an extra 5 seconds!';
									}
									countdown += 5;
									fishingHUD.timer_MC.score_graph.score_txt.text = countdown;
									fishingHUD.timer_MC.gotoAndPlay(2);
									if (_root.sfxmute == false) {
										thunder.attachSound('mark');
										thunder.start();
									}
								}
								++j;
							}
							fishLayer['fish' + i].removeMovieClip();
							if (power == false && intermission == false && _root.endfishing == false) {
								killstreakcounter[killstreakattempt] = 0;
								killstreak[killstreakattempt] = 0;
								killstreakon[killstreakattempt] = true;
								killID[killstreakattempt] = setInterval(doKillstreakCounter, 1000, killstreakattempt);
								least = killstreakattempt - 50;
								if (least < 0) {
									least = 0;
								}
								ki = least;
								while (ki <= killstreakattempt) {
									if (killstreakon[ki] == true) {
										++killstreak[ki];
									}
									if (killstreak[ki] == 5 && killstreak_MC._currentframe == 1) {
										doPower();
									}
									++ki;
								}
								++killstreakattempt;
							}
						} else {
							if (fishLayer['fish' + i].species == 5) {
								spark_MC._x = fishLayer['fish' + i]._x;
								spark_MC._y = fishLayer['fish' + i]._y;
								spark_MC.gotoAndPlay(2);
								shock_MC.gotoAndPlay(2);
								fishingHUD.avoid_MC.gotoAndPlay(2);
								if (_root.sfxmute == false) {
									splash2.start();
									el.start();
								}
								fishwait = 50;
								++nrofhits;
								j = least;
								while (j < fishCount) {
									doSpook(fishLayer['fish' + j], true);
									doSpook(bgfishLayer['fish' + j], true);
									++j;
								}
								j = 0;
								while (j < 50) {
									doBubble(fishLayer['fish' + i]._x + random(60) - 30, fishLayer['fish' + i]._y + random(60) - 30);
									++j;
								}
							}
						}
					}
					if (net.scarebox.hitTest(fishLayer['fish' + i].fish_MC.hitbox)) {
						fishLayer['fish' + i].scarespeed += 10;
						doSpook(fishLayer['fish' + i], false);
					}
					++i;
				}
				if (nrofhits == 0) {
					resetKS('all');
				}
			};
			onEnterFrame = function () {
				if (fishingHUD.white_MC._currentframe > 1) {
					fishingHUD.white_MC.play();
				}
				net._x = _xmouse;
				net._y = _ymouse;
				destx = _xmouse;
				desty = _ymouse;
				diffx = destx - speedcursor._x;
				diffy = desty - speedcursor._y;
				speedcursor._x += diffx * 0.1;
				speedcursor._y += diffy * 0.1;
				speed = Math.abs(diffx + diffy);
				xspeed = diffx - extraspeed;
				yspeed = diffy;
				if (xspeed > 0) {
					xspeed -= 2 / xspeed;
				}
				netrotate = xspeed / 3 - 90;
				if (netrotate > 0) {
					netrotate = 0;
				}
				if (netrotate < -180) {
					netrotate = -180;
				}
				net.net_MC.net_graph._rotation = netrotate;
				net._rotation = (net._x - 600) / 60;
				if (net._x > 820) {
					net._x = 820;
				}
				if (net._x < 30) {
					net._x = 30;
				}
				if (net._y < 130) {
					net._y = 130;
				}
				speedY = speed;
				if (yspeed > 5) {
					speedY = speed - yspeed;
				}
				if (bignet == false) {
					net._height = 190;
					net._width = 110;
				} else {
					net._height = 290;
					net._width = 170;
				}
				net.net_MC.net_graph.nethalf._xscale = speedY / 3 + 50 + still;
				if (speed < 70) {
					if (still < 40) {
						still += 3;
					}
				} else {
					if (still > 0) {
						--still;
					}
				}
				if (diffx < 2 && diffy < 2) {
					standstill = true;
				} else {
					standstill = false;
				}
				if (hitting == false) {
					scare = speed;
				} else {
					scare = 1000;
				}
				if (extraspeed > 2 or extraspeed < -2) {
					extraspeed -= extraspeed / 5;
				} else {
					extraspeed = 0;
				}
				if (_root.gamepause == 0) {
					if (speed > 100) {
						speedbubble = random(5);
						if (speedbubble == 1) {
							doBubble(_xmouse, _ymouse);
						}
					}
					if (fishTime == 0 && totalbgfish <= 5) {
						chance = random(2);
						if (chance == 1) {
							newX = -50;
						} else {
							newX = 900;
						}
						createbgfish(newX);
					}
					if (_root.endfishing == false) {
						if (fishwait > 0) {
							--fishwait;
						}
						++fishTime;
						if (fishTime >= fishRate) {
							fishTime = 0;
							if (totalfish <= maxfish && fishwait == 0) {
								chance = random(2);
								if (chance == 1) {
									newX = -50;
								} else {
									newX = 900;
								}
								createfish(newX);
							}
						}
						++bgfishTime;
						if (bgfishTime >= fishRate) {
							bgfishTime = 0;
							if (totalbgfish <= maxbgfish) {
								chance = random(2);
								if (chance == 1) {
									newX = -50;
								} else {
									newX = 900;
								}
								createbgfish(newX);
							}
						}
						fishchance = random(600);
						++fisherchance;
						if (fishchance == 1 && fisherchance > 50 or fisherchance >= 600) {
							++fisherfish;
							fisherchance = 0;
						}
					}
					if (juggernaught == true) {
						if (jswim == false) {
							var nm = 'juggernaughtfish';
							++fishCount;
							fishLayer.attachMovie('juggernaught', nm, fishCount);
							if (jposition == 1) {
								newX = -50;
								fishLayer[nm]._xscale *= -1;
								fishLayer[nm].Xdirection = 2;
								fishLayer[nm].gotoAndStop(9);
								jposition = 2;
							} else {
								if (jposition == 2) {
									newX = 900;
									fishLayer[nm].Xdirection = 1;
									fishLayer[nm].gotoAndStop(1);
									jposition = 1;
								}
							}
							if (_root.sfxmute == false) {
								splash2.start();
							}
							fishLayer[nm].mainspeed = 70;
							fishLayer[nm].yspeed = 1;
							fishLayer[nm].deadly = true;
							fishLayer[nm]._x = newX;
							fishLayer[nm]._y = random(330) + 130;
							fishLayer[nm].onEnterFrame = function () {
								if (_root.gamepause == 0) {
									if (this.Xdirection == 1) {
										this._x -= this.mainspeed / slowmospeed;
									} else {
										if (this.Xdirection == 2) {
											this._x += this.mainspeed / slowmospeed;
										}
									}
									if (this.Ydirection == 1) {
										this._y -= this.mainspeed / this.yspeed / slowmospeed;
									} else {
										if (this.Ydirection == 2) {
											this._y += this.mainspeed / this.yspeed / slowmospeed;
										}
									}
									doBubble(this._x, this._y);
									if (this._x < -this._width - 50 && this.Xdirection == 1) {
										this.removeMovieClip();
										jswim = false;
									} else {
										if (this._x > 800 + this._width + 50 && this.Xdirection == 2) {
											this.removeMovieClip();
											jswim = false;
										}
									}
								}
							};
						}
						jswim = true;
					}
					fishingHUD.timer_MC.score_graph.score_txt.text = countdown;
					fishingHUD.score_MC.score_graph.score_txt.text = _root.fishscore;
					maxbgfish = Math.round(maxfish / 3);
					net.onMouseDown = function () {
						if (_root.gamepause == false && splashmouse == true) {
							j = 0;
							while (j < 10) {
								doBubble(_xmouse + random(60) - 30, _ymouse + random(60) - 30);
								++j;
							}
							if (diffx + diffy > 5) {
								net.gotoAndStop(3);
								extraspeed = -40;
							} else {
								net.gotoAndStop(2);
								if (speed < 50) {
									extraspeed = 60;
								}
							}
							hitting = true;
							Mouse.hide();
							doKill('');
						}
					};
					net.onMouseUp = function () {
						net.gotoAndStop(1);
						hitting = false;
					};
					least = fishCount - maxfish * 5;
					i = least;
					while (i < fishCount) {
						(eval('_level0.fishLayer.fish' + i + '.fish_MC.body')).play();
						(eval('_level0.fishLayer.fish' + i + '.fish_MC.body.body')).play();
						++i;
					}
				} else {
					least = fishCount - maxfish * 5;
					i = least;
					while (i < fishCount) {
						(eval('_level0.fishLayer.fish' + i + '.fish_MC.body')).stop();
						(eval('_level0.fishLayer.fish' + i + '.fish_MC.body.body')).stop();
						++i;
					}
				}
				if (Key.isDown(27)) {
					if (optionsX == false) {
						if (options_MC._currentframe == 1) {
							options_MC.gotoAndStop(2);
							fishing_BT._visible = true;
							if (pause_MC._currentframe == 1) {
								pause_MC.gotoAndPlay(2);
								fishingHUD.timerborder.gotoAndStop(1);
								fishingHUD.timerborder.maskz.gotoAndStop(1);
							}
							pause_MC._y -= 150;
							Mouse.show();
						} else {
							if (options_MC._currentframe == 2) {
								options_MC.gotoAndStop(1);
								fishing_BT._visible = false;
								fishingHUD.timerborder.gotoAndPlay(1);
								fishingHUD.timerborder.maskz.gotoAndPlay(1);
								pause_MC.gotoAndPlay(26);
								pause_MC._y += 150;
								Mouse.hide();
							}
						}
					}
					optionsX = true;
				} else {
					optionsX = false;
				}
				if (Key.isDown(80) && pauseX == false) {
					if (pause_MC._currentframe == 1) {
						pause_MC.gotoAndPlay(2);
						fishingHUD.timerborder.gotoAndStop(1);
						fishingHUD.timerborder.maskz.gotoAndStop(1);
						pauseX = true;
					}
					if (pause_MC._currentframe > 20 && pause_MC._currentframe < 26 && options_MC._currentframe != 2) {
						pause_MC.gotoAndPlay(26);
						fishingHUD.timerborder.gotoAndPlay(1);
						fishingHUD.timerborder.maskz.gotoAndPlay(1);
						pauseX = true;
					}
				} else {
					pauseX = false;
				}
				if (Key.isDown(112)) {
					quallow1();
				}
				if (Key.isDown(113)) {
					qualmedium1();
				}
				if (Key.isDown(114)) {
					qualhigh1();
				}
				if (Key.isDown(115)) {
					qualauto1();
				}
				if (Key.isDown(77)) {
					if (muteX == false) {
						if (volumez != 0) {
							soundoff();
							muteX = true;
						} else {
							soundon();
							muteX = true;
						}
					}
				} else {
					muteX = false;
				}
			};
			createfish = function (x) {
				var nm = 'fish' + fishCount;
				++fishCount;
				++totalfish;
				generate = random(100);
				if (generate >= 0 && generate < 20) {
					newspecies = 1;
				}
				if (generate >= 20 && generate < 60) {
					newspecies = 2;
				}
				if (generate >= 60 && generate < 70) {
					newspecies = 3;
				}
				if (generate >= 70 && generate < 75) {
					newspecies = 4;
				}
				if (generate >= 75 && generate < 85) {
					newspecies = 5;
				}
				if (generate >= 85 && generate < 90) {
					newspecies = 6;
				}
				if (generate >= 90 && generate < 95) {
					newspecies = 7;
				}
				if (generate >= 95 && generate < 100) {
					newspecies = 8;
				}
				if (newspecies == 7 && hasflapper == true) {
					newspecies = 5;
				}
				if (newspecies == 7) {
					fishLayer.attachMovie('fish', nm, 0);
				} else {
					fishLayer.attachMovie('fish', nm, fishCount);
				}
				if (newspecies != 7 && newspecies != 8) {
					clr = random(40) * -1;
					myColor = new Color(fishLayer[nm]);
					myColor.setTransform({'rb': clr, 'gb': clr, 'bb': clr / 2});
				} else {
					if (newspecies == 8) {
						clr = random(20) * -1;
						myColor = new Color(fishLayer[nm]);
						myColor.setTransform({'rb': clr, 'gb': clr, 'bb': clr / 2});
					}
				}
				fishLayer[nm]._x = x;
				if (x < 0) {
					fishLayer[nm].Xdirection = 2;
					fishLayer[nm].gotoAndStop(9);
				} else {
					fishLayer[nm].Xdirection = 1;
					fishLayer[nm].gotoAndStop(1);
				}
				fishLayer[nm].species = newspecies;
				if (fishLayer[nm].species == 1) {
					fishLayer[nm].fishname = 'Silver Dogfish';
					fishLayer[nm].mindepth = 90;
					fishLayer[nm].maxdepth = 350;
					fishLayer[nm].mainspeed = random(4) + 5;
					fishLayer[nm].tolerance = random(200) + 160;
					fishLayer[nm].sizediff = 20;
					fishLayer[nm].bubblechanceX = 100;
					fishLayer[nm].camouflage = false;
					fishLayer[nm].score = 10;
				} else {
					if (fishLayer[nm].species == 2) {
						fishLayer[nm].fishname = 'Lemonkisser';
						fishLayer[nm].mindepth = 90;
						fishLayer[nm].maxdepth = 300;
						fishLayer[nm].mainspeed = random(4) + 7;
						fishLayer[nm].tolerance = random(200) + 130;
						fishLayer[nm].sizediff = 20;
						fishLayer[nm].bubblechanceX = 100;
						fishLayer[nm].camouflage = false;
						fishLayer[nm].score = 10;
					} else {
						if (fishLayer[nm].species == 3) {
							fishLayer[nm].fishname = 'Spotted Longsnout';
							fishLayer[nm].mindepth = 90;
							fishLayer[nm].maxdepth = 400;
							fishLayer[nm].mainspeed = random(5) + 10;
							fishLayer[nm].tolerance = random(300) + 150;
							fishLayer[nm].sizediff = 20;
							fishLayer[nm].bubblechanceX = 20;
							fishLayer[nm].camouflage = false;
							fishLayer[nm].score = 25;
						} else {
							if (fishLayer[nm].species == 4) {
								fishLayer[nm].fishname = 'Toadfish';
								fishLayer[nm].mindepth = 200;
								fishLayer[nm].maxdepth = 490;
								fishLayer[nm].mainspeed = random(2) + 6;
								fishLayer[nm].tolerance = random(200) + 130;
								fishLayer[nm].sizediff = 20;
								fishLayer[nm].bubblechanceX = 100;
								fishLayer[nm].camouflage = false;
								fishLayer[nm].score = 15;
							} else {
								if (fishLayer[nm].species == 5) {
									fishLayer[nm].fishname = 'Chameleon Shocker';
									fishLayer[nm].mindepth = 90;
									fishLayer[nm].maxdepth = 450;
									fishLayer[nm].mainspeed = random(4) + 5;
									fishLayer[nm].tolerance = 1100;
									fishLayer[nm].sizediff = 30;
									fishLayer[nm].bubblechanceX = 200;
									fishLayer[nm].camouflage = false;
									fishLayer[nm].score = 10;
								} else {
									if (fishLayer[nm].species == 6) {
										fishLayer[nm].fishname = 'Sapphire Firehead';
										fishLayer[nm].mindepth = 350;
										fishLayer[nm].maxdepth = 490;
										fishLayer[nm].mainspeed = random(2) + 3;
										fishLayer[nm].tolerance = random(200) + 200;
										fishLayer[nm].sizediff = 20;
										fishLayer[nm].bubblechanceX = 100;
										fishLayer[nm].camouflage = false;
										fishLayer[nm].score = 20;
									} else {
										if (fishLayer[nm].species == 7) {
											fishLayer[nm].fishname = 'Rainbow Mudflapper';
											fishLayer[nm].mindepth = 450;
											fishLayer[nm].maxdepth = 500;
											fishLayer[nm].mainspeed = 1;
											fishLayer[nm].tolerance = 1100;
											fishLayer[nm].sizediff = 20;
											fishLayer[nm].bubblechanceX = 200;
											fishLayer[nm].camouflage = true;
											fishLayer[nm].score = 50;
											hasflapper = true;
										} else {
											if (fishLayer[nm].species == 8) {
												fishLayer[nm].fishname = 'Brown Kelpfin';
												fishLayer[nm].mindepth = 400;
												fishLayer[nm].maxdepth = 490;
												fishLayer[nm].mainspeed = 1;
												fishLayer[nm].tolerance = random(300) + 200;
												fishLayer[nm].sizediff = 10;
												fishLayer[nm].bubblechanceX = 50;
												fishLayer[nm].camouflage = true;
												fishLayer[nm].score = 40;
											}
										}
									}
								}
							}
						}
					}
				}
				fishLayer[nm].idnr = fishCount;
				fishLayer[nm].fishsize = random(fishLayer[nm].sizediff) + 30;
				fishLayer[nm]._height = fishLayer[nm]._height * fishLayer[nm].fishsize / 50;
				fishLayer[nm]._width = fishLayer[nm]._width * fishLayer[nm].fishsize / 50;
				fishLayer[nm].score += Math.round(fishLayer[nm].fishsize / 10) * 5;
				fishLayer[nm].yspeed = random(20) + 5;
				if (newspecies != 7) {
					fishLayer[nm].yrotation = (25 - fishLayer[nm].yspeed) / 3;
				} else {
					fishLayer[nm].yrotation = 0;
				}
				fishLayer[nm]._y = fishLayer[nm].mindepth + random(fishLayer[nm].maxdepth - fishLayer[nm].mindepth);
				fishLayer[nm].bubblechance = 0;
				fishLayer[nm].scarespeed = 0;
				fishLayer[nm].Ydirection = random(3) + 1;
				fishLayer[nm].turntimer = 0;
				fishLayer[nm].paustimer = 0;
				fishLayer[nm].standstill = false;
				fishLayer[nm].savedspeed = fishLayer[nm].mainspeed;
				fishLayer[nm].spooked = false;
				fishLayer[nm].nrhits = 0;
				fishLayer[nm].maxhits = random(10) + 1;
				fishLayer[nm].caught = false;
				fishLayer[nm].firsthit = false;
				fishLayer[nm].deadly = false;
				fishLayer[nm].onEnterFrame = function () {
					if (_root.gamepause == 0) {
						if (this.standstill == false) {
							this.turntimer = random(300);
						}
						if (this.camouflage == true) {
							this.paustimer = random(500);
						}
						if (this.scarespeed < 1 && (this._currentframe == 1 or this._currentframe == 9)) {
							if (this.turntimer == 100 && this.Xdirection == 1) {
								this.Xdirection = 2;
								this.gotoAndPlay(2);
							} else {
								if (this.turntimer == 100 && this.Xdirection == 2) {
									this.Xdirection = 1;
									this.gotoAndPlay(10);
								}
							}
							if (this.paustimer == 1 && this.hitTest(center) == true && this._x > 20 && this._x < 830) {
								this.standstill = true;
							} else {
								if (this.paustimer == 2) {
									this.standstill = false;
								}
							}
							if (this.hitTest(center) == true) {
								if (this.turntimer == 1) {
									this.Ydirection = 1;
								}
								if (this.turntimer == 2) {
									this.Ydirection = 2;
								}
								if (this.turntimer == 3) {
									this.Ydirection = 3;
								}
							}
						}
						if (this.hitTest(fishLayer.juggernaughtfish.hitbox)) {
							--totalfish;
							++_root.caughtfish;
							j = 0;
							while (j < 20) {
								doBubble(this._x + random(60) - 30, this._y + random(60) - 30);
								++j;
							}
							scoreLayer.attachMovie('score_MC', 's' + this.idnr, this.idnr);
							scoreLayer['s' + this.idnr]._x = this._x - 55;
							scoreLayer['s' + this.idnr]._y = this._y - 10;
							scoreLayer['s' + this.idnr].score_wobble.score_graph.score_txt.text = this.score;
							_root.fishscore += this.score;
							this.removeMovieClip();
							fishLayer.juggernaughtfish.juggernaught.gotoAndPlay(2);
						}
						this.bubblechance = random(this.bubblechanceX);
						if (this.bubblechance == 1) {
							doBubble(this._x, this._y);
						}
						if (this.standstill == true) {
							if (this.species == 7) {
								this.mainspeed = 0;
							} else {
								if (this.species == 8) {
									if (this.mainspeed > 0.1) {
										this.mainspeed -= 0.01 / slowmospeed;
									}
								}
							}
						} else {
							if (this.mainspeed < this.savedspeed) {
								this.mainspeed += 0.01 / slowmospeed;
							}
						}
						if (this.Xdirection == 1) {
							this._x -= (this.mainspeed + this.scarespeed) / slowmospeed;
							if (this.Ydirection == 1) {
								if (fishLayer[nm]._rotation < +this.yrotation) {
									fishLayer[nm]._rotation += 1 / slowmospeed;
								} else {
									fishLayer[nm]._rotation = +this.yrotation / slowmospeed;
								}
							} else {
								if (this.Ydirection == 2) {
									if (fishLayer[nm]._rotation > -this.yrotation) {
										fishLayer[nm]._rotation -= 1 / slowmospeed;
									} else {
										fishLayer[nm]._rotation = -this.yrotation / slowmospeed;
									}
								} else {
									if (this.Ydirection == 3) {
										if (fishLayer[nm]._rotation < -1) {
											fishLayer[nm]._rotation += 0.5 / slowmospeed;
										} else {
											if (fishLayer[nm]._rotation > 1) {
												fishLayer[nm]._rotation -= 0.5 / slowmospeed;
											} else {
												fishLayer[nm]._rotation = 0;
											}
										}
									}
								}
							}
						} else {
							if (this.Xdirection == 2) {
								this._x += (this.mainspeed + this.scarespeed) / slowmospeed;
								if (this.Ydirection == 1) {
									if (fishLayer[nm]._rotation > -this.yrotation) {
										fishLayer[nm]._rotation -= 1 / slowmospeed;
									} else {
										fishLayer[nm]._rotation = -this.yrotation / slowmospeed;
									}
								} else {
									if (this.Ydirection == 2) {
										if (fishLayer[nm]._rotation < +this.yrotation) {
											fishLayer[nm]._rotation += 1 / slowmospeed;
										} else {
											fishLayer[nm]._rotation = +this.yrotation / slowmospeed;
										}
									} else {
										if (this.Ydirection == 3) {
											if (fishLayer[nm]._rotation < -1) {
												fishLayer[nm]._rotation += 0.5 / slowmospeed;
											} else {
												if (fishLayer[nm]._rotation > 1) {
													fishLayer[nm]._rotation -= 0.5 / slowmospeed;
												} else {
													fishLayer[nm]._rotation = 0;
												}
											}
										}
									}
								}
							}
						}
						if (this.Ydirection == 1) {
							this._y -= (this.mainspeed / this.yspeed + this.scarespeed / 5) / slowmospeed;
						} else {
							if (this.Ydirection == 2) {
								this._y += (this.mainspeed / this.yspeed + this.scarespeed / 5) / slowmospeed;
							}
						}
						if (this._x < -this._width - 50 && this.Xdirection == 1) {
							if (this.species == 7) {
								hasflapper = false;
							}
							this.removeMovieClip();
							--totalfish;
						} else {
							if (this._x > 800 + this._width + 50 && this.Xdirection == 2) {
								if (this.species == 7) {
									hasflapper = false;
								}
								this.removeMovieClip();
								--totalfish;
							}
						}
						if (this.species == 8) {
							this.xheight = 30;
						} else {
							this.xheight = this._height / 2;
						}
						if (this._y < this.mindepth + this.xheight) {
							this.Ydirection = 2;
						} else {
							if (this._y > this.maxdepth - this.xheight) {
								this.Ydirection = 1;
							}
						}
						if (this.scarespeed > 0.5 && this.spooked == false) {
							this.scarespeed -= 0.5 / slowmospeed;
						}
						if (this.fish_MC.hitTest(net.net_MC) && scare > this.tolerance && this.spooked == false) {
							++this.nrhits;
							if (this.nrhits > this.maxhits) {
								doSpook(this, true);
							} else {
								doSpook(this, false);
							}
						} else {
							if (this.fish_MC.hitTest(net.net_MC) && this.scarespeed < 5) {
								this.scarespeed += 0.2 / slowmospeed;
							}
						}
					}
				};
			};
			createbgfish = function (x) {
				++bgfishCount;
				++totalbgfish;
				var nm = 'fish' + bgfishCount;
				bgfishLayer.attachMovie('fish', nm, bgfishCount);
				clr = random(100);
				myColor = new Color(bgfishLayer[nm]);
				myColor.setTransform({'rb': -230 + clr, 'gb': -200 + clr, 'bb': -160 + clr});
				bgfishLayer[nm]._alpha = random(20) + 10;
				bgfishLayer[nm].fishsize = random(10) + 20;
				bgfishLayer[nm]._height = bgfishLayer[nm]._height * bgfishLayer[nm].fishsize / 70;
				bgfishLayer[nm]._width = bgfishLayer[nm]._width * bgfishLayer[nm].fishsize / 70;
				bgfishLayer[nm]._x = x;
				if (x < 0) {
					bgfishLayer[nm].Xdirection = 2;
					bgfishLayer[nm].gotoAndStop(9);
				} else {
					bgfishLayer[nm].Xdirection = 1;
					bgfishLayer[nm].gotoAndStop(1);
				}
				bgfishLayer[nm].species = random(4) + 1;
				if (bgfishLayer[nm].species == 1) {
					bgfishLayer[nm].mindepth = 90;
					bgfishLayer[nm].maxdepth = 400;
					bgfishLayer[nm].mainspeed = random(2) + 1;
				} else {
					if (bgfishLayer[nm].species == 2) {
						bgfishLayer[nm].mindepth = 90;
						bgfishLayer[nm].maxdepth = 300;
						bgfishLayer[nm].mainspeed = random(3) + 2;
					} else {
						if (bgfishLayer[nm].species == 3) {
							bgfishLayer[nm].mindepth = 90;
							bgfishLayer[nm].maxdepth = 400;
							bgfishLayer[nm].mainspeed = random(3) + 3;
						} else {
							if (bgfishLayer[nm].species == 4) {
								bgfishLayer[nm].mindepth = 200;
								bgfishLayer[nm].maxdepth = 430;
								bgfishLayer[nm].mainspeed = random(2) + 1;
							}
						}
					}
				}
				bgfishLayer[nm].yspeed = random(10) + 5;
				bgfishLayer[nm].yrotation = (25 - bgfishLayer[nm].yspeed) / 3;
				bgfishLayer[nm]._y = random(500 - bgfishLayer[nm].mindepth * 2) + bgfishLayer[nm].mindepth;
				bgfishLayer[nm].scarespeed = 0;
				bgfishLayer[nm].Ydirection = random(3) + 1;
				bgfishLayer[nm].turntimer = 0;
				bgfishLayer[nm].onEnterFrame = function () {
					if (_root.gamepause == 0) {
						this.turntimer = random(300);
						if (this.scarespeed < 1) {
							if (this.turntimer == 100 && this.Xdirection == 1) {
								this.Xdirection = 2;
								this.gotoAndPlay(2);
							} else {
								if (this.turntimer == 100 && this.Xdirection == 2) {
									this.Xdirection = 1;
									this.gotoAndPlay(11);
								}
							}
							if (this.turntimer == 1) {
								this.Ydirection = 1;
							}
							if (this.turntimer == 2) {
								this.Ydirection = 2;
							}
							if (this.turntimer == 3) {
								this.Ydirection = 3;
							}
						}
						if (this.Xdirection == 1) {
							this._x -= (this.mainspeed + this.scarespeed) / slowmospeed;
							if (this.Ydirection == 1) {
								if (bgfishLayer[nm]._rotation < +this.yrotation) {
									bgfishLayer[nm]._rotation += 1 / slowmospeed;
								} else {
									bgfishLayer[nm]._rotation = +this.yrotation;
								}
							} else {
								if (this.Ydirection == 2) {
									if (bgfishLayer[nm]._rotation > -this.yrotation) {
										bgfishLayer[nm]._rotation -= 1 / slowmospeed;
									} else {
										bgfishLayer[nm]._rotation = -this.yrotation;
									}
								} else {
									if (this.Ydirection == 3) {
										if (bgfishLayer[nm]._rotation < -1) {
											bgfishLayer[nm]._rotation += 0.5 / slowmospeed;
										} else {
											if (bgfishLayer[nm]._rotation > 1) {
												bgfishLayer[nm]._rotation -= 0.5 / slowmospeed;
											} else {
												bgfishLayer[nm]._rotation = 0;
											}
										}
									}
								}
							}
						} else {
							if (this.Xdirection == 2) {
								this._x += (this.mainspeed + this.scarespeed) / slowmospeed;
								if (this.Ydirection == 1) {
									if (bgfishLayer[nm]._rotation > -this.yrotation) {
										bgfishLayer[nm]._rotation -= 1 / slowmospeed;
									} else {
										bgfishLayer[nm]._rotation = -this.yrotation;
									}
								} else {
									if (this.Ydirection == 2) {
										if (bgfishLayer[nm]._rotation < +this.yrotation) {
											bgfishLayer[nm]._rotation += 1 / slowmospeed;
										} else {
											bgfishLayer[nm]._rotation = +this.yrotation;
										}
									} else {
										if (this.Ydirection == 3) {
											if (bgfishLayer[nm]._rotation < -1) {
												bgfishLayer[nm]._rotation += 0.5 / slowmospeed;
											} else {
												if (bgfishLayer[nm]._rotation > 1) {
													bgfishLayer[nm]._rotation -= 0.5 / slowmospeed;
												} else {
													bgfishLayer[nm]._rotation = 0;
												}
											}
										}
									}
								}
							}
						}
						if (this.Ydirection == 1) {
							this._y -= (this.mainspeed / this.yspeed + this.scarespeed / 5) / slowmospeed;
						} else {
							if (this.Ydirection == 2) {
								this._y += (this.mainspeed / this.yspeed + this.scarespeed / 5) / slowmospeed;
							}
						}
						if (this._x < -this._width - 50 && this.Xdirection == 1) {
							this.removeMovieClip();
							--totalbgfish;
						} else {
							if (this._x > 800 + this._width + 50 && this.Xdirection == 2) {
								this.removeMovieClip();
								--totalbgfish;
							}
						}
						if (this._y < this.mindepth + this._height / 2) {
							this.Ydirection = 2;
						} else {
							if (this._y > this.maxdepth - this._height / 2) {
								this.Ydirection = 1;
							}
						}
					}
				};
			};
			i = 0;
			while (i < maxbgfish) {
				createbgfish(random(850));
				++i;
			}
			doBubble = function (x, y) {
				createbubble('bubble', x, y);
			};
			createbubble = function (type, x, y) {
				var v3 = 'bubble' + bubbleCount;
				size = random(10) + 5;
				bubbleLayer.attachMovie(type, v3, bubbleCount);
				bubbleLayer[v3]._x = x;
				bubbleLayer[v3]._y = y;
				bubbleLayer[v3]._height = size;
				bubbleLayer[v3]._width = size;
				bubbleLayer[v3].mainspeed = random(5) + 1;
				bubbleLayer[v3].xswivel = random(10) - 5;
				bubbleLayer[v3].xswivelspeed = random(7) + 1;
				bubbleLayer[v3].yswivel = random(6) - 3;
				bubbleLayer[v3].yswivelspeed = random(5) + 1;
				bubbleLayer[v3].randomburst = 0;
				bubbleLayer[v3].onEnterFrame = function () {
					if (_root.gamepause == 0) {
						if (this.xswivel > 0) {
							this.xswivel -= this.xswivelspeed / 10;
						}
						if (this.xswivel < 0) {
							this.xswivel += this.xswivelspeed / 10;
						}
						this._x += this.xswivel * 2 / slowmospeed;
						if (this.yswivel > 0) {
							this.yswivel -= this.yswivelspeed / 10;
						}
						if (this.yswivel < -1) {
							this.yswivel += this.yswivelspeed / 10;
						}
						this._y += this.yswivel * 2 / slowmospeed;
						this.randomburst = random(50);
						if (this._y > 80 && this.randomburst != 1) {
							this._y -= this.mainspeed / 3 / slowmospeed;
						} else {
							this.removeMovieClip();
						}
					}
				};
				++bubbleCount;
				bubbleCount %= 100;
			};
		}
	}
	movieClip 445	{
	}
	movieClip 447	{
	}
	movieClip 452	{
		frame 1 {
			stop();
		}
	}
	movieClip 453 Juggernaught {
	}
	movieClip 455	{
	}
	movieClip 458	{
	}
	movieClip 461	{
	}
	movieClip 464	{
	}
	movieClip 465	{
		frame 1 {
			if (_root.slowmospeed > 1) {
				gotoAndPlay('swim_slow');
			}
		}
		frame 24 {
			gotoAndPlay(1);
		}
	}
	movieClip 468	{
	}
	movieClip 471	{
	}
	movieClip 474	{
	}
	movieClip 475	{
		frame 1 {
			if (_root.slowmospeed > 1) {
				gotoAndPlay('swim_slow');
			}
		}
		frame 16 {
			gotoAndPlay(1);
		}
	}
	movieClip 478	{
	}
	movieClip 481	{
	}
	movieClip 484	{
	}
	movieClip 485	{
		frame 1 {
			if (_root.slowmospeed > 1) {
				gotoAndPlay('swim_slow');
			}
		}
		frame 26 {
			gotoAndPlay(1);
		}
	}
	movieClip 486	{
	}
	movieClip 489	{
	}
	movieClip 495	{
	}
	movieClip 496	{
	}
	movieClip 499	{
	}
	movieClip 500	{
	}
	movieClip 503	{
	}
	movieClip 504	{
	}
	movieClip 507	{
	}
	movieClip 509	{
	}
	movieClip 511	{
	}
	movieClip 512	{
		frame 1 {
			if (_root.slowmospeed > 1) {
				gotoAndPlay('swim_slow');
			}
		}
		frame 24 {
			gotoAndPlay(1);
		}
	}
	movieClip 513	{
		frame 14 {
			chance = random(5);
			if (chance != 1) {
				gotoAndPlay(1);
			}
		}
		frame 64 {
			chance = random(5);
			if (chance == 1) {
				gotoAndPlay(65);
			} else {
				gotoAndPlay(45);
			}
		}
	}
	movieClip 521	{
		frame 1 {
			gotoAndPlay(random(30));
		}
	}
	movieClip 526	{
	}
	movieClip 527	{
	}
	movieClip 528	{
	}
	movieClip 533	{
	}
	movieClip 534	{
	}
	movieClip 538	{
	}
	movieClip 543	{
	}
	movieClip 544	{
	}
	movieClip 548	{
		frame 1 {
			gotoAndPlay(random(15));
		}
	}
	movieClip 549	{
		frame 1 {
			if (_root.slowmospeed > 1) {
				gotoAndPlay('swim_slow');
			}
		}
		frame 24 {
			gotoAndPlay(1);
		}
	}
	movieClip 555	{
		frame 1 {
			gotoAndPlay(random(30));
		}
	}
	movieClip 563	{
		frame 1 {
			gotoAndPlay(random(30));
		}
		frame 93 {
			if (_parent._parent._parent._parent.standstill == true) {
				stop();
			}
		}
	}
	movieClip 565	{
	}
	movieClip 572	{
	}
	movieClip 574	{
	}
	movieClip 575	{
		frame 1 {
			gotoAndPlay(random(10));
		}
	}
	movieClip 576	{
		frame 1 {
			if (_root.slowmospeed > 1) {
				gotoAndPlay('swim_slow');
			}
			onEnterFrame = function () {
				if (_parent._parent.standstill == true) {
					if (this._currentframe < 97) {
						gotoAndPlay(97);
					} else {
						if (this._currentframe == 115) {
							stop();
						}
					}
				} else {
					play();
					body.spots.play();
				}
			};
		}
		frame 19 {
			gotoAndPlay(1);
		}
		frame 96 {
			gotoAndPlay(1);
		}
	}
	movieClip 580	{
	}
	movieClip 583	{
	}
	movieClip 586	{
	}
	movieClip 587	{
		frame 1 {
			if (_root.slowmospeed > 1) {
				gotoAndPlay('swim_slow');
			}
			onEnterFrame = function () {
				if (_parent._parent.standstill == true) {
					stop();
				} else {
					play();
				}
			};
		}
		frame 24 {
			gotoAndPlay(1);
		}
	}
	movieClip 588	{
		frame 1 {
			gotoAndStop(_parent.species);
		}
	}
	movieClip 589 fish {
		frame 1 {
			stop();
		}
		frame 9 {
			stop();
		}
	}
	movieClip 592	{
	}
	movieClip 595	{
		frame 11 {
			stop();
		}
	}
	movieClip 596	{
		frame 1 {
			_parent.pointer.gotoAndStop(1);
			stop();
		}
		frame 2 {
			_parent.pointer.play();
		}
	}
	movieClip 598	{
	}
	movieClip 599	{
		frame 1 {
			stop();
		}
		frame 83 {
			gotoAndPlay(15);
		}
	}
	movieClip 602	{
	}
	movieClip 604 Arrow_MC {
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 608	{
	}
	movieClip 609 Addstat_MC {
		frame 99 {
			this.removeMovieClip();
		}
	}
	movieClip 610	{
	}
	movieClip 617	{
		frame 1 {
			if (_root.capeon == false) {
				gotoAndStop(7);
			} else {
				gotoAndStop(_root.capecolor);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
			}
		}
	}
	movieClip 618	{
	}
	movieClip 626	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 628	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.shoes);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 629	{
	}
	movieClip 642	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 643	{
		frame 1 {
			if (_root.questdrunk == 3) {
				gotoAndStop(8);
			} else {
				if (_root.guarduniform == false) {
					if (_root.shoes == 3) {
						gotoAndStop(7);
						_root.myColor = new Color(this);
						_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
					} else {
						gotoAndStop(_root.pants + 1);
						_root.myColor = new Color(this);
						_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
					}
				} else {
					gotoAndStop(1);
				}
			}
		}
	}
	movieClip 644	{
	}
	movieClip 656	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 657	{
		frame 1 {
			if (_root.questdrunk == 3) {
				gotoAndStop(7);
			} else {
				if (_root.guarduniform == false) {
					gotoAndStop(_root.pants + 1);
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
				} else {
					gotoAndStop(1);
				}
			}
		}
	}
	movieClip 658	{
	}
	movieClip 665	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.pants + 1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 668	{
	}
	movieClip 673	{
		frame 1 {
			gotoAndStop(_root.belt);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.belttintrb, 'gb': _root.belttintgb, 'bb': _root.belttintbb});
		}
	}
	movieClip 679	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.jacket + 1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.jackettintrb, 'gb': _root.jackettintgb, 'bb': _root.jackettintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 685	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.arms + 1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 689	{
		frame 1 {
			if (_root.extrabelt == true) {
				gotoAndStop(_root.jacket);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
			} else {
				gotoAndStop(6);
			}
		}
	}
	movieClip 694	{
		frame 1 {
			gotoAndStop(_root.necklace);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.necklacetintrb, 'gb': _root.necklacetintgb, 'bb': _root.necklacetintbb});
		}
	}
	movieClip 707	{
		frame 1 {
			if (_root.cape_addon == 1) {
				if (_root.capeon == false) {
					gotoAndStop(7);
				} else {
					gotoAndStop(_root.capecolor);
				}
			} else {
				gotoAndStop(_root.capecolor + 7);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
		}
	}
	movieClip 708	{
	}
	movieClip 712	{
		frame 1 {
			gotoAndStop(_root.jacket);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
		}
	}
	movieClip 713	{
	}
	movieClip 719	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 723	{
		frame 1 {
			gotoAndStop(_root.glove2);
			if (_root.glove2 != 1) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
			}
		}
	}
	movieClip 730	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.arms + 1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 741	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 747	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 748	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.gauntlet + 1);
				if (_root.gauntlet != 5) {
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.gauntlettintrb, 'gb': _root.gauntlettintgb, 'bb': _root.gauntlettintbb});
				}
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 749	{
	}
	movieClip 753	{
		frame 1 {
			if (_root.nosez == 3 or _root.nosez == 5) {
				gotoAndStop(2);
			} else {
				if (_root.nosez == 6) {
					gotoAndStop(3);
				} else {
					stop();
				}
			}
		}
	}
	movieClip 759	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 768	{
		frame 1 {
			gotoAndStop(_root.beard);
		}
	}
	movieClip 769	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 780	{
		frame 1 {
			gotoAndStop(_root.tattoo);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.tattootintrb, 'gb': _root.tattootintgb, 'bb': _root.tattootintbb});
			this._alpha = _root.tattooalpha;
		}
	}
	movieClip 784	{
		frame 1 {
			gotoAndStop(_root.eyesquint);
		}
	}
	movieClip 788	{
		frame 1 {
			gotoAndStop(_root.eyewhite2);
		}
	}
	movieClip 795	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eyetype2'));
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eye2tintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eye2tintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eye2tintbb')});
			} else {
				gotoAndStop(_root.eyetype2);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.eye2tintrb, 'gb': _root.eye2tintgb, 'bb': _root.eye2tintbb});
			}
			if (_root.coreberserk == true) {
				gotoAndStop(7);
			}
		}
	}
	movieClip 796	{
		frame 1 {
			eye2._xscale = _root.eyescale2 / 3;
			eye2._yscale = _root.eyescale2 / 4;
		}
	}
	movieClip 800	{
		frame 1 {
			gotoAndStop(_root.eyebrows);
		}
	}
	movieClip 801	{
		frame 1 {
			gotoAndStop(_root.hair);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 802	{
		frame 1 {
			gotoAndPlay(random(30));
		}
	}
	movieClip 805	{
		frame 1 {
			gotoAndStop(_root.eyepatch);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.patchtintrb, 'gb': _root.patchtintgb, 'bb': _root.patchtintbb});
		}
	}
	movieClip 812	{
		frame 1 {
			if (_root.guarduniform == true or _root.cape_addon == 3 && _root.maskoff == false) {
				gotoAndStop(_root.capecolor);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
			} else {
				gotoAndStop(7);
			}
		}
	}
	movieClip 818	{
		frame 1 {
			if (_root.guarduniform == false && _root.maskoff == false) {
				gotoAndStop(_root.maskz);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.masktintrb, 'gb': _root.masktintgb, 'bb': _root.masktintbb});
			} else {
				stop();
			}
		}
	}
	movieClip 821	{
	}
	movieClip 824	{
	}
	movieClip 827	{
	}
	movieClip 830	{
	}
	movieClip 833	{
	}
	movieClip 836	{
	}
	movieClip 839	{
	}
	movieClip 842	{
	}
	movieClip 845	{
	}
	movieClip 848	{
	}
	movieClip 851	{
	}
	movieClip 853	{
	}
	movieClip 856	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skinz') > 2) {
					gotoAndStop(2);
				} else {
					stop();
				}
			} else {
				if (_root.skinz > 2) {
					gotoAndStop(2);
				} else {
					stop();
				}
			}
		}
	}
	movieClip 858	{
	}
	movieClip 862	{
	}
	movieClip 864	{
	}
	movieClip 865	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.hair + 1);
				_root.myColor = new Color(colorbase);
				_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 871	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.guarduniform') == false) {
					gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.earring'));
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eartintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eartintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eartintbb')});
				} else {
					stop();
				}
			} else {
				if (_root.guarduniform == false) {
					gotoAndStop(_root.earring);
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.eartintrb, 'gb': _root.eartintgb, 'bb': _root.eartintbb});
				} else {
					stop();
				}
			}
		}
	}
	movieClip 872	{
	}
	movieClip 873	{
		frame 1 {
			gotoAndStop(_root.glove1);
			if (_root.glove1 != 1) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
			}
		}
	}
	movieClip 874	{
	}
	movieClip 875	{
		frame 6 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 17 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
	}
	movieClip 882	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.arms + 1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 883	{
	}
	movieClip 884	{
	}
	movieClip 885	{
		frame 4 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 12 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
	}
	movieClip 886	{
	}
	movieClip 891	{
		frame 1 {
			if (_root.extrabelt == true) {
				gotoAndStop(_root.jacket);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
			} else {
				gotoAndStop(6);
			}
		}
	}
	movieClip 892	{
	}
	movieClip 896	{
		frame 1 {
			gotoAndStop(_root.jacket);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
		}
	}
	movieClip 897	{
	}
	movieClip 904	{
		frame 1 {
			gotoAndStop(_root.tattoo);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.tattootintrb, 'gb': _root.tattootintgb, 'bb': _root.tattootintbb});
			this._alpha = _root.tattooalpha;
		}
	}
	movieClip 907	{
		frame 1 {
			gotoAndStop(_root.eyepatch);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.patchtintrb, 'gb': _root.patchtintgb, 'bb': _root.patchtintbb});
		}
	}
	movieClip 908	{
		frame 1 {
			gotoAndStop(_root.eyewhite1);
		}
	}
	movieClip 909	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eyetype1'));
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eye1tintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eye1tintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eye1tintbb')});
			} else {
				gotoAndStop(_root.eyetype1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.eye1tintrb, 'gb': _root.eye1tintgb, 'bb': _root.eye1tintbb});
			}
			if (_root.coreberserk == true) {
				gotoAndStop(7);
			}
		}
	}
	movieClip 910	{
		frame 1 {
			eye1._xscale = _root.eyescale1 / 3;
			eye1._yscale = _root.eyescale1 / 4;
		}
	}
	movieClip 911	{
		frame 1 {
			gotoAndPlay(random(30));
		}
	}
	movieClip 912	{
	}
	movieClip 913	{
		frame 6 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 17 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
	}
	movieClip 914	{
		frame 4 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 12 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
	}
	movieClip 915	{
	}
	movieClip 923	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 925	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.shoes);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 926	{
	}
	movieClip 944	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 945	{
		frame 1 {
			if (_root.questdrunk == 3) {
				gotoAndStop(13);
			} else {
				if (_root.guarduniform == false) {
					if (_root.shoes < 3) {
						gotoAndStop(_root.pants + 1);
					} else {
						gotoAndStop(_root.pants + 7);
					}
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
				} else {
					gotoAndStop(1);
				}
			}
		}
	}
	movieClip 948	{
		frame 1 {
			if (_root.questdrunk == 3) {
				gotoAndStop(1);
			} else {
				if (_root.shoes == 3 && _root.guarduniform == false) {
					gotoAndStop(3);
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
				} else {
					if (_root.guarduniform == true) {
						gotoAndStop(2);
					} else {
						gotoAndStop(1);
					}
				}
			}
		}
	}
	movieClip 949	{
	}
	movieClip 956	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.arms + 1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 962	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.gauntlet + 1);
				if (_root.gauntlet != 5) {
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.gauntlettintrb, 'gb': _root.gauntlettintgb, 'bb': _root.gauntlettintbb});
				}
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 963	{
	}
	movieClip 964	{
	}
	movieClip 970	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.gauntlet + 1);
				if (_root.gauntlet != 5) {
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.gauntlettintrb, 'gb': _root.gauntlettintgb, 'bb': _root.gauntlettintbb});
				}
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 971	{
	}
	movieClip 972	{
	}
	movieClip 974	{
	}
	movieClip 980	{
		frame 1 {
			gotoAndStop(_root.belt);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.belttintrb, 'gb': _root.belttintgb, 'bb': _root.belttintbb});
		}
	}
	movieClip 986	{
		frame 1 {
			gotoAndStop(_root.jacket);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.jackettintrb, 'gb': _root.jackettintgb, 'bb': _root.jackettintbb});
		}
	}
	movieClip 987	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 992	{
		frame 1 {
			gotoAndStop(_root.necklace);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.necklacetintrb, 'gb': _root.necklacetintgb, 'bb': _root.necklacetintbb});
		}
	}
	movieClip 999	{
		frame 1 {
			if (_root.guarduniform == true) {
				stop();
			} else {
				gotoAndStop(_root.skinz + 1);
			}
		}
	}
	movieClip 1005	{
		frame 1 {
			if (_root.extrabelt == true) {
				gotoAndStop(_root.jacket);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
			} else {
				gotoAndStop(6);
			}
		}
	}
	movieClip 1009	{
		frame 1 {
			gotoAndStop(_root.jacket);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
		}
	}
	movieClip 1010	{
	}
	movieClip 1029	{
		frame 1 {
			if (_root.capeon == true && _root.cape_addon == 1) {
				gotoAndStop(_root.capecolor);
			} else {
				if (_root.capeon == true && _root.cape_addon > 1) {
					gotoAndStop(_root.capecolor + 7);
				} else {
					if (_root.capeon == false && _root.cape_addon > 1) {
						gotoAndStop(_root.capecolor + 14);
					} else {
						if (_root.capeon == false && _root.cape_addon == 1) {
							gotoAndStop(7);
						}
					}
				}
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
		}
	}
	movieClip 1030	{
	}
	movieClip 1036	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 1039	{
		frame 1 {
			gotoAndStop(_root.eyepatch);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.patchtintrb, 'gb': _root.patchtintgb, 'bb': _root.patchtintbb});
		}
	}
	movieClip 1041	{
	}
	movieClip 1043	{
	}
	movieClip 1046	{
	}
	movieClip 1049	{
	}
	movieClip 1052	{
	}
	movieClip 1055	{
	}
	movieClip 1058	{
	}
	movieClip 1061	{
	}
	movieClip 1064	{
	}
	movieClip 1067	{
	}
	movieClip 1070	{
	}
	movieClip 1073	{
	}
	movieClip 1075	{
	}
	movieClip 1077	{
	}
	movieClip 1081	{
	}
	movieClip 1083	{
	}
	movieClip 1084	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.hair + 1);
				_root.myColor = new Color(colorbase);
				_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 1085	{
	}
	movieClip 1086	{
		frame 6 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 18 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
	}
	movieClip 1087	{
	}
	movieClip 1088	{
		frame 5 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 12 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 14 {
			gotoAndPlay(1);
		}
	}
	movieClip 1089	{
	}
	movieClip 1096	{
		frame 1 {
			if (_root.capeon == false) {
				gotoAndStop(7);
			} else {
				gotoAndStop(_root.capecolor);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
			}
		}
	}
	movieClip 1097	{
	}
	movieClip 1099	{
	}
	movieClip 1107	{
		frame 1 {
			if (_root.barechest == false) {
				stop();
			} else {
				gotoAndStop(_root.skinz + 1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
			}
		}
	}
	movieClip 1114	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 1119	{
		frame 1 {
			if (_root.guarduniform == false) {
				if (_root.barechest == false) {
					gotoAndStop(_root.arms + 1);
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
				} else {
					stop();
				}
			} else {
				stop();
			}
		}
	}
	movieClip 1124	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.jacket + 1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.jackettintrb, 'gb': _root.jackettintgb, 'bb': _root.jackettintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 1128	{
		frame 1 {
			if (_root.extrabelt == true) {
				gotoAndStop(_root.jacket);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
			} else {
				gotoAndStop(6);
			}
		}
	}
	movieClip 1133	{
		frame 1 {
			gotoAndStop(_root.necklace);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.necklacetintrb, 'gb': _root.necklacetintgb, 'bb': _root.necklacetintbb});
		}
	}
	movieClip 1146	{
		frame 1 {
			if (_root.cape_addon == 1) {
				if (_root.capeon == false) {
					gotoAndStop(7);
				} else {
					gotoAndStop(_root.capecolor);
				}
			} else {
				gotoAndStop(_root.capecolor + 7);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
		}
	}
	movieClip 1147	{
	}
	movieClip 1153	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 1164	{
		frame 1 {
			gotoAndStop(_root.tattoo);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.tattootintrb, 'gb': _root.tattootintgb, 'bb': _root.tattootintbb});
			this._alpha = _root.tattooalpha;
		}
	}
	movieClip 1173	{
		frame 1 {
			gotoAndStop(_root.beard);
		}
	}
	movieClip 1174	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 1177	{
		frame 1 {
			gotoAndStop(_root.eyesquint);
		}
	}
	movieClip 1181	{
		frame 1 {
			gotoAndStop(_root.eyewhite1);
		}
	}
	movieClip 1185	{
		frame 1 {
			gotoAndStop(_root.eyewhite2);
		}
	}
	movieClip 1186	{
		frame 1 {
			eye1._xscale = _root.eyescale1 / 3;
			eye1._yscale = _root.eyescale1 / 4;
			eye2._xscale = _root.eyescale2 / 3;
			eye2._yscale = _root.eyescale2 / 4;
		}
	}
	movieClip 1190	{
		frame 1 {
			gotoAndStop(_root.eyebrows);
		}
	}
	movieClip 1191	{
		frame 1 {
			gotoAndStop(_root.hair);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 1192	{
		frame 1 {
			gotoAndPlay(random(30));
		}
	}
	movieClip 1199	{
		frame 1 {
			gotoAndStop(_root.nosez);
		}
	}
	movieClip 1202	{
		frame 1 {
			gotoAndStop(_root.eyepatch);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.patchtintrb, 'gb': _root.patchtintgb, 'bb': _root.patchtintbb});
		}
	}
	movieClip 1209	{
		frame 1 {
			if (_root.guarduniform == true or _root.cape_addon == 3 && _root.maskoff == false) {
				gotoAndStop(_root.capecolor);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
			} else {
				gotoAndStop(7);
			}
		}
	}
	movieClip 1214	{
		frame 1 {
			if (_root.guarduniform == false && _root.maskoff == false) {
				gotoAndStop(_root.maskz);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.masktintrb, 'gb': _root.masktintgb, 'bb': _root.masktintbb});
			} else {
				stop();
			}
		}
	}
	movieClip 1217	{
	}
	movieClip 1220	{
	}
	movieClip 1223	{
	}
	movieClip 1226	{
	}
	movieClip 1229	{
	}
	movieClip 1232	{
	}
	movieClip 1235	{
	}
	movieClip 1238	{
	}
	movieClip 1241	{
	}
	movieClip 1244	{
	}
	movieClip 1247	{
	}
	movieClip 1249	{
	}
	movieClip 1251	{
	}
	movieClip 1254	{
	}
	movieClip 1256	{
	}
	movieClip 1257	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.hair + 1);
				_root.myColor = new Color(colorbase);
				_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 1258	{
	}
	movieClip 1259	{
		frame 6 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 17 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
	}
	movieClip 1260	{
	}
	movieClip 1261	{
	}
	movieClip 1262	{
	}
	movieClip 1263	{
	}
	movieClip 1264	{
		frame 5 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 12 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 14 {
			gotoAndPlay(1);
		}
	}
	movieClip 1265	{
	}
	movieClip 1272	{
		frame 1 {
			if (_root.capeon == false) {
				gotoAndStop(7);
			} else {
				gotoAndStop(_root.capecolor);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
			}
		}
	}
	movieClip 1273	{
	}
	movieClip 1286	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 1287	{
		frame 1 {
			if (_root.questdrunk == 3) {
				gotoAndStop(8);
			} else {
				if (_root.guarduniform == false) {
					if (_root.shoes == 3) {
						gotoAndStop(7);
						_root.myColor = new Color(this);
						_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
					} else {
						gotoAndStop(_root.pants + 1);
						_root.myColor = new Color(this);
						_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
					}
				} else {
					gotoAndStop(1);
				}
			}
		}
	}
	movieClip 1288	{
	}
	movieClip 1289	{
	}
	movieClip 1297	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.arms + 1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 1302	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.jacket + 1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.jackettintrb, 'gb': _root.jackettintgb, 'bb': _root.jackettintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 1309	{
		frame 1 {
			if (_root.guarduniform == true) {
				stop();
			} else {
				gotoAndStop(_root.skinz + 1);
			}
		}
	}
	movieClip 1314	{
		frame 1 {
			gotoAndStop(_root.belt);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.belttintrb, 'gb': _root.belttintgb, 'bb': _root.belttintbb});
		}
	}
	movieClip 1318	{
		frame 1 {
			if (_root.extrabelt == true) {
				gotoAndStop(_root.jacket);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
			} else {
				gotoAndStop(6);
			}
		}
	}
	movieClip 1323	{
		frame 1 {
			gotoAndStop(_root.necklace);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.necklacetintrb, 'gb': _root.necklacetintgb, 'bb': _root.necklacetintbb});
		}
	}
	movieClip 1336	{
		frame 1 {
			if (_root.cape_addon == 1) {
				if (_root.capeon == false) {
					gotoAndStop(7);
				} else {
					gotoAndStop(_root.capecolor);
				}
			} else {
				gotoAndStop(_root.capecolor + 7);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
		}
	}
	movieClip 1337	{
	}
	movieClip 1343	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 1354	{
		frame 1 {
			gotoAndStop(_root.tattoo);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.tattootintrb, 'gb': _root.tattootintgb, 'bb': _root.tattootintbb});
			this._alpha = _root.tattooalpha;
		}
	}
	movieClip 1361	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.nosez'));
			} else {
				gotoAndStop(_root.nosez);
			}
		}
	}
	movieClip 1366	{
		frame 1 {
			gotoAndStop(_root.eyesquint);
		}
	}
	movieClip 1370	{
		frame 1 {
			gotoAndStop(_root.eyewhite2);
		}
	}
	movieClip 1374	{
		frame 1 {
			gotoAndStop(_root.eyewhite1);
		}
	}
	movieClip 1375	{
		frame 1 {
			eye1._xscale = _root.eyescale1 / 3;
			eye1._yscale = _root.eyescale1 / 4;
			eye2._xscale = _root.eyescale2 / 3;
			eye2._yscale = _root.eyescale2 / 4;
		}
	}
	movieClip 1379	{
		frame 1 {
			gotoAndStop(_root.eyebrows);
		}
	}
	movieClip 1380	{
		frame 1 {
			gotoAndStop(_root.hair);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 1381	{
		frame 1 {
			gotoAndPlay(random(30));
		}
	}
	movieClip 1384	{
		frame 1 {
			gotoAndStop(_root.eyepatch);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.patchtintrb, 'gb': _root.patchtintgb, 'bb': _root.patchtintbb});
		}
	}
	movieClip 1393	{
		frame 1 {
			gotoAndStop(_root.beard);
		}
	}
	movieClip 1394	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 1401	{
		frame 1 {
			if (_root.guarduniform == true or _root.cape_addon == 3 && _root.maskoff == false) {
				gotoAndStop(_root.capecolor);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
			} else {
				gotoAndStop(7);
			}
		}
	}
	movieClip 1407	{
		frame 1 {
			if (_root.guarduniform == false && _root.maskoff == false) {
				gotoAndStop(_root.maskz);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.masktintrb, 'gb': _root.masktintgb, 'bb': _root.masktintbb});
			} else {
				stop();
			}
		}
	}
	movieClip 1410	{
	}
	movieClip 1413	{
	}
	movieClip 1416	{
	}
	movieClip 1419	{
	}
	movieClip 1422	{
	}
	movieClip 1425	{
	}
	movieClip 1428	{
	}
	movieClip 1431	{
	}
	movieClip 1434	{
	}
	movieClip 1437	{
	}
	movieClip 1440	{
	}
	movieClip 1442	{
	}
	movieClip 1444	{
	}
	movieClip 1447	{
	}
	movieClip 1449	{
	}
	movieClip 1450	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.hair + 1);
				_root.myColor = new Color(colorbase);
				_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 1451	{
	}
	movieClip 1452	{
		frame 6 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 17 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
	}
	movieClip 1459	{
		frame 1 {
			if (_root.capeon == false) {
				gotoAndStop(7);
			} else {
				gotoAndStop(_root.capecolor);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
			}
		}
	}
	movieClip 1460	{
	}
	movieClip 1467	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.arms + 1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 1468	{
	}
	movieClip 1469	{
	}
	movieClip 1470	{
	}
	movieClip 1471	{
		frame 5 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 12 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 14 {
			gotoAndPlay(1);
		}
	}
	movieClip 1472	{
	}
	movieClip 1478	{
		frame 1 {
			if (_root.extrabelt == true) {
				gotoAndStop(_root.jacket);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
			} else {
				gotoAndStop(6);
			}
		}
	}
	movieClip 1479	{
	}
	movieClip 1485	{
		frame 1 {
			gotoAndStop(_root.tattoo);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.tattootintrb, 'gb': _root.tattootintgb, 'bb': _root.tattootintbb});
			this._alpha = _root.tattooalpha;
		}
	}
	movieClip 1489	{
		frame 1 {
			gotoAndStop(_root.eyepatch);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.patchtintrb, 'gb': _root.patchtintgb, 'bb': _root.patchtintbb});
		}
	}
	movieClip 1490	{
		frame 1 {
			gotoAndStop(_root.eyewhite1);
		}
	}
	movieClip 1491	{
		frame 1 {
			gotoAndStop(_root.eyewhite2);
		}
	}
	movieClip 1492	{
		frame 1 {
			eye1._xscale = _root.eyescale1 / 3;
			eye1._yscale = _root.eyescale1 / 4;
			eye2._xscale = _root.eyescale2 / 3;
			eye2._yscale = _root.eyescale2 / 4;
		}
	}
	movieClip 1493	{
		frame 1 {
			gotoAndPlay(random(30));
		}
	}
	movieClip 1495	{
	}
	movieClip 1497	{
	}
	movieClip 1499	{
	}
	movieClip 1502	{
	}
	movieClip 1504	{
	}
	movieClip 1506	{
	}
	movieClip 1507	{
	}
	movieClip 1509	{
	}
	movieClip 1511	{
	}
	movieClip 1513	{
	}
	movieClip 1516	{
	}
	movieClip 1517	{
	}
	movieClip 1519	{
	}
	movieClip 1520	{
	}
	movieClip 1521	{
	}
	movieClip 1522	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.hair + 1);
				_root.myColor = new Color(colorbase);
				_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 1523	{
	}
	movieClip 1524	{
		frame 6 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 17 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
	}
	movieClip 1525	{
		frame 5 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 12 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 14 {
			gotoAndPlay(1);
		}
	}
	movieClip 1526	{
	}
	movieClip 1527	{
		frame 1 {
			if (_root.questdrunk == 3) {
				gotoAndStop(13);
			} else {
				if (_root.guarduniform == false) {
					gotoAndStop(_root.pants + 1);
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
				} else {
					gotoAndStop(1);
				}
			}
		}
	}
	movieClip 1528	{
	}
	movieClip 1535	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.jacket + 1);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.jackettintrb, 'gb': _root.jackettintgb, 'bb': _root.jackettintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 1539	{
		frame 1 {
			if (_root.extrabelt == true) {
				gotoAndStop(_root.jacket);
			} else {
				gotoAndStop(6);
			}
		}
	}
	movieClip 1540	{
	}
	movieClip 1559	{
		frame 1 {
			if (_root.capeon == true && _root.cape_addon == 1) {
				gotoAndStop(_root.capecolor);
			} else {
				if (_root.capeon == true && _root.cape_addon > 1) {
					gotoAndStop(_root.capecolor + 7);
				} else {
					if (_root.capeon == false && _root.cape_addon > 1) {
						gotoAndStop(_root.capecolor + 14);
					} else {
						if (_root.capeon == false && _root.cape_addon == 1) {
							gotoAndStop(7);
						}
					}
				}
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
		}
	}
	movieClip 1560	{
	}
	movieClip 1565	{
		frame 1 {
			if (_root.guarduniform == false && _root.maskoff == false) {
				gotoAndStop(_root.maskz);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.masktintrb, 'gb': _root.masktintgb, 'bb': _root.masktintbb});
			} else {
				stop();
			}
		}
	}
	movieClip 1571	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 1575	{
		frame 1 {
			gotoAndStop(_root.eyepatch);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.patchtintrb, 'gb': _root.patchtintgb, 'bb': _root.patchtintbb});
		}
	}
	movieClip 1580	{
		frame 1 {
			gotoAndStop(_root.beard);
		}
	}
	movieClip 1581	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 1588	{
		frame 1 {
			if (_root.guarduniform == true or _root.cape_addon == 3 && _root.maskoff == false) {
				gotoAndStop(_root.capecolor);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
			} else {
				gotoAndStop(7);
			}
		}
	}
	movieClip 1593	{
		frame 1 {
			if (_root.guarduniform == false && _root.maskoff == false) {
				gotoAndStop(_root.maskz);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.masktintrb, 'gb': _root.masktintgb, 'bb': _root.masktintbb});
			} else {
				stop();
			}
		}
	}
	movieClip 1596	{
	}
	movieClip 1599	{
	}
	movieClip 1602	{
	}
	movieClip 1605	{
	}
	movieClip 1608	{
	}
	movieClip 1611	{
	}
	movieClip 1614	{
	}
	movieClip 1617	{
	}
	movieClip 1620	{
	}
	movieClip 1623	{
	}
	movieClip 1626	{
	}
	movieClip 1628	{
	}
	movieClip 1630	{
	}
	movieClip 1634	{
	}
	movieClip 1636	{
	}
	movieClip 1637	{
		frame 1 {
			if (_root.guarduniform == false) {
				gotoAndStop(_root.hair + 1);
				_root.myColor = new Color(colorbase);
				_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 1638	{
	}
	movieClip 1639	{
		frame 6 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 17 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
	}
	movieClip 1640	{
		frame 5 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 11 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 14 {
			gotoAndPlay(1);
		}
	}
	movieClip 1641	{
	}
	movieClip 1645	{
		frame 1 {
			if (_root.extrabelt == true) {
				gotoAndStop(_root.jacket);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
			} else {
				gotoAndStop(6);
			}
		}
	}
	movieClip 1649	{
		frame 1 {
			gotoAndStop(_root.jacket);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
		}
	}
	movieClip 1650	{
	}
	movieClip 1653	{
		frame 1 {
			gotoAndStop(_root.eyepatch);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.patchtintrb, 'gb': _root.patchtintgb, 'bb': _root.patchtintbb});
		}
	}
	movieClip 1654	{
	}
	movieClip 1655	{
		frame 6 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 17 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
	}
	movieClip 1656	{
		frame 5 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 12 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 14 {
			gotoAndPlay(1);
		}
	}
	movieClip 1657	{
	}
	movieClip 1658	{
		frame 1 {
			play();
		}
		frame 34 {
			if (_root.story < 50) {
				gotoAndPlay(23);
			}
		}
		frame 64 {
			_parent.gotoAndStop(12);
		}
	}
	movieClip 1659	{
		frame 15 {
			stop();
		}
		frame 35 {
			stop();
		}
	}
	movieClip 1662	{
		frame 1 {
			stop();
		}
	}
	movieClip 1668	{
		frame 74 {
			stop();
		}
	}
	movieClip 1669	{
		frame 46 {
			_root.black.gotoAndPlay(240);
			light.gotoAndPlay(2);
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('ominous');
				_root.sound1.start();
			}
		}
		frame 53 {
			_root.Scenez.down_MC.stone.gotoAndStop(2);
		}
		frame 91 {
			_root.page1 = 'Roy: I feel the same as when the other crystal lit up. These artifacts must hold some kind of ancient magic in them.';
			_root.page2 = 'Caleb: We should study these...';
			_root.page3 = 'Roy: What\'s going on... the cave!';
			_root.page4 = 'Caleb: It\'s collapsing!';
			_root.doStartText();
			stop();
		}
		frame 115 {
			stop();
		}
	}
	movieClip 1670	{
		frame 1 {
			_root.notwalk = true;
		}
		frame 10 {
			_root.notwalk = true;
		}
		frame 77 {
			if (_root.questdrunk != 3) {
				_root.Begingame();
			} else {
				_root.Drunktext();
			}
		}
		frame 245 {
			_root.notwalk = false;
			stop();
		}
	}
	movieClip 1671	{
		frame 4 {
			_root.item.start();
		}
		frame 139 {
			_parent.gotoAndStop(11);
		}
	}
	movieClip 1677	{
		frame 1 {
			if (_root.story == 180) {
				gotoAndPlay(2);
			} else {
				if (_root.story >= 155 && _root.story != 157 && _root.story != 182 && _root.story != 183) {
					gotoAndStop(75);
				} else {
					stop();
				}
			}
		}
		frame 74 {
			stop();
		}
		frame 75 {
			onEnterFrame = function () {
				if (_root.story == 182) {
					gotoAndStop(1);
				} else {
					stop();
				}
			};
		}
	}
	movieClip 1678	{
		frame 14 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 1679 core {
		frame 1 {
			stop();
			panm = 1;
			onEnterFrame = function () {
				if (_root.runningz == true && _root.forcenotrun == false && _root.cinematic == false && _root.areaname != 'World Map') {
					core_anm.gotoAndStop(2);
				} else {
					core_anm.gotoAndStop(1);
				}
			};
		}
		frame 1 {
			_root.walkingX = true;
			_root.diagonal = false;
			if (_root.farsight == false) {
				_root.viewblock.gotoAndStop(1);
			}
		}
		frame 2 {
			_root.walkingX = true;
			_root.diagonal = false;
			if (_root.farsight == false) {
				_root.viewblock.gotoAndStop(2);
			}
		}
		frame 3 {
			_root.walkingX = true;
			_root.diagonal = false;
			if (_root.farsight == false) {
				_root.viewblock.gotoAndStop(3);
			}
		}
		frame 4 {
			_root.walkingX = true;
			_root.diagonal = false;
			if (_root.farsight == false) {
				_root.viewblock.gotoAndStop(4);
			}
		}
		frame 5 {
			_root.walkingX = true;
			_root.diagonal = false;
			if (_root.farsight == false) {
				_root.viewblock.gotoAndStop(5);
			}
		}
		frame 6 {
			_root.walkingX = true;
			_root.diagonal = false;
			if (_root.farsight == false) {
				_root.viewblock.gotoAndStop(6);
			}
		}
		frame 7 {
			_root.walkingX = true;
			_root.diagonal = false;
			if (_root.farsight == false) {
				_root.viewblock.gotoAndStop(7);
			}
		}
		frame 8 {
			_root.walkingX = true;
			_root.diagonal = false;
			if (_root.farsight == false) {
				_root.viewblock.gotoAndStop(8);
			}
		}
	}
	movieClip 1680 APIConnector {
		frame 1 {
			function _onLoaded() {
				gotoAndStop('invisible');
				if (_redirect) {
					com.newgrounds.API.loadOfficialVersion();
					return undefined;
				}
			}
			function _apiConnect() {
				var v2 = com.newgrounds.API;
				if (v2 && !v2.connected) {
					if (!apiId) {
						com.newgrounds.Logger.logError('No API ID entered in the API Connector component.', 'You can create an API ID for this submission at http://newgrounds.com/account/flashapi', 'Enter your API ID into the API Connector using the Component Inspector (Window -> Component Inspector).');
						return undefined;
					}
					switch (debugMode) {
						case 'Off':
						default:
							v2.debugMode = v2.RELEASE_MODE;
							goto 1319;
						case 'Simulate Logged-in User':
//Invalid switch					}
					v2.debugMode = v2.DEBUG_MODE_LOGGED_IN;
					goto 1319;
				case 'Off':
					v2.debugMode = v2.DEBUG_MODE_LOGGED_OUT;
					goto 1319;
				case 'Simulate Logged-in User':
					v2.debugMode = v2.DEBUG_MODE_NEW_VERSION;
					goto 1319;
				case 'Simulate Logged-out User':
					v2.debugMode = v2.DEBUG_MODE_HOST_BLOCKED;
					label 1319:
					if (loader) {
						loader.haltComplete = true;
					}
					v2.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, _onConnected);
					v2.connect(_root, apiId, encryptionKey, movieVersion);
				}
			}
			function _onConnected(event) {
				if (loader) {
					loader.haltComplete = false;
				}
				if (redirectOnNewVersion && event.__get__success() && (event.__get__data()).newVersion) {
					_redirect = true;
				}
				if (redirectOnHostBlocked && !event.__get__success() && event.__get__error() == com.newgrounds.APIEvent.ERROR_HOST_BLOCKED) {
					_redirect = true;
				}
				if (_redirect) {
					gotoAndStop('adPreloader');
					forceAlwaysOnTop();
				}
			}
			function forceAlwaysOnTop() {
				var v2 = getNextHighestDepth();
				swapDepths(v2);
				if (Stage) {
					_x = (Stage.width - _width) / 2;
					_y = (Stage.height - _height) / 2;
					_visible = true;
				}
				if (_root && _root instanceof MovieClip) {
					(MovieClip(_root)).stop();
				}
			}
			stop();
			if (_root && _root instanceof MovieClip) {
				(MovieClip(_root)).stop();
			}
			var apiId;
			var encryptionKey;
			var movieVersion;
			var debugMode;
			var connectorType;
			var redirectOnHostBlocked;
			var redirectOnNewVersion;
			var adType;
			var className;
			var _redirect;
			_x = int(_x);
			_y = int(_y);
			if (!debugMode) {
				debugMode = 'Simulate Logged-in User';
			}
			if (!connectorType) {
				connectorType = 'Flash Ad + Preloader';
			}
			if (!adType) {
				adType = 'Video';
			}
			if (ad) {
				ad.adType = adType;
			}
			switch (connectorType) {
				case 'Flash Ad + Preloader':
					gotoAndStop('adPreloader');
					break;
				case 'Flash Ad Only':
					gotoAndStop('ad');
					break;
				case 'Invisible':
					gotoAndStop('invisible');
			}
			_apiConnect();
		}
	}
	movieClip 1685 Newgrounds API Classes {
		#initclip
			Object.registerClass('Newgrounds API Classes', com.newgrounds.shims.APIShim);
		#endinitclip
	}
	frame 1 {
		stop();
		player1SO = SharedObject.getLocal('playerInfo1');
		hair = player1SO.data.playerDat.hair;
		cansave = true;
		quallow1 = function () {
			_quality = 'low';
			menuquality = 'low';
		};
		qualmedium1 = function () {
			_quality = 'medium';
			menuquality = 'medium';
		};
		qualhigh1 = function () {
			_quality = 'high';
			menuquality = 'high';
		};
		qualauto1 = function () {
			_quality = 'autohigh';
			menuquality = _quality;
		};
		quallow2 = function () {
			_quality = 'low';
			gamequality = 'low';
			battlequality = 'low';
		};
		qualmedium2 = function () {
			_quality = 'medium';
			gamequality = 'medium';
			battlequality = 'medium';
		};
		qualhigh2 = function () {
			_quality = 'high';
			gamequality = 'high';
			battlequality = 'high';
		};
		qualauto2 = function () {
			_quality = 'autohigh';
			gamequality = _quality;
			battlequality = _quality;
		};
		quallow3 = function () {
			_quality = 'low';
			battlequality = 'low';
			gamequality = 'low';
		};
		qualmedium3 = function () {
			_quality = 'medium';
			battlequality = 'medium';
			gamequality = 'medium';
		};
		qualhigh3 = function () {
			_quality = 'high';
			battlequality = 'high';
			gamequality = 'high';
		};
		qualauto3 = function () {
			_quality = 'autohigh';
			battlequality = _quality;
			gamequality = _quality;
		};
		soundon = function () {
			volumez = 100;
			globalvolume.setVolume(volumez);
			if (musicmute == false) {
				music.setVolume(volumez);
			}
		};
		soundoff = function () {
			globalvolume.setVolume(0);
			volumez = 0;
		};
		nohotkeys = false;
		MainMenu = function () {
			if (nohotkeys == false) {
				if (Key.isDown(112)) {
					quallow1();
				}
				if (Key.isDown(113)) {
					qualmedium1();
				}
				if (Key.isDown(114)) {
					qualhigh1();
				}
				if (Key.isDown(115)) {
					qualauto1();
				}
				if (Key.isDown(46) && eval('player' + i + 'SO.data.playerDat.corename') != undefined && clearslotz > 0 && yousure_MC._currentframe == 1) {
					goback_BT._visible = false;
					yousure_MC.gotoAndStop(2);
				}
				if (Key.isDown(77)) {
					if (muteX == false) {
						if (volumez != 0) {
							soundoff();
							muteX = true;
						} else {
							soundon();
							muteX = true;
						}
					}
				} else {
					muteX = false;
				}
			}
			if (Key.isDown(13)) {
				if (enterX == false) {
					enterX = true;
					if (skipz == true) {
						if (customz == 1) {
							stopAllSounds();
							customz = 2;
							gotoAndStop('Custom');
						} else {
							if (customz == 2) {
								customz = 3;
								gotoAndStop('name');
							}
						}
					} else {
						if (mc2._currentframe == 710) {
							corename = mc2.namingz.name_txt.text;
							if (corename.length > 1 && corename.length <= 10 or name_txt.text == 'V') {
								mc2.gotoAndPlay('next1');
							}
						} else {
							if (mc2._currentframe == 730) {
								mc2.gotoAndPlay('next2');
							} else {
								if (mc2._currentframe == 751) {
									mc2.gotoAndPlay('next3');
								}
							}
						}
					}
					if (beginz == true && preloader._currentframe == 55) {
						preloader.gotoAndPlay(56);
					}
				}
			} else {
				enterX = false;
			}
			if (Key.isDown(32) && yousure_MC._currentframe == 1 && corename != undefined) {
				if (spaceX == false) {
					spaceX = true;
					if (this._currentframe == 3) {
						clearslotz = 100;
						gotoAndPlay('Title_back');
					} else {
						if (this._currentframe == 4) {
							music.setVolume(volumez);
							clearslotz = 100;
							doGotoGame();
						} else {
							if (this._currentframe == 5) {
								music.setVolume(volumez);
								doGotoGame();
							} else {
								if (this._currentframe == 144) {
									music.setVolume(volumez);
									doGotoGame();
								}
							}
						}
					}
				}
			} else {
				spaceX = false;
			}
			if (Key.isDown(27)) {
				if (options_MC._currentframe == 1 && optionsX == false) {
					options_MC.gotoAndStop(2);
				} else {
					if (options_MC._currentframe == 2 && optionsX == false) {
						options_MC.gotoAndStop(1);
					}
				}
				optionsX = true;
			} else {
				optionsX = false;
			}
		};
		onEnterFrame = function () {
			MainMenu();
		};
		gamepause = 0;
		beginz = false;
		musicmute = false;
		sfxmute = false;
		globalvolume = new Sound();
		createEmptyMovieClip('audiocontainer', 1);
		music = new Sound(audiocontainer);
		shopframe = 1;
		volumez = 100;
		previewnum = 0;
		counterWalk2 = 0;
		colortip = true;
		shovelitem = false;
		skipz = false;
		ename = undefined;
		allquests = 29;
		maxstory = 400;
		maxdarconstory = 80;
		maxcollectibles = 50;
		maxdigging = 5;
		houseprice = 100;
		gambleprice = 10;
		schoice = 0;
		doSpeeds = function () {
			normalspeed = orgspeed;
			mapspeed = orgspeed;
			runspeed = orgspeed + 0.5;
			if (runningz == true) {
				normalspeed += runspeed;
			}
		};
		orgspeed = 1.6;
		doSpeeds();
		if (player1SO.data.playerDat.menuquality != undefined) {
			menuquality = player1SO.data.playerDat.menuquality;
		} else {
			menuquality = 'medium';
		}
		_quality = menuquality;
		visitrocklou = function () {
			getURL('http://rocklou.com/', '_blank');
		};
		visitdeviantart = function () {
			getURL('http://rocklou.deviantart.com/', '_blank');
		};
		var myMenu = new ContextMenu();
		myMenu.hideBuiltInItems();
		var rightText1 = new ContextMenuItem('Visit RockLou.com', visitrocklou);
		var rightText2 = new ContextMenuItem('Visit RockLou on deviantART', visitdeviantart);
		var rightText3 = new ContextMenuItem('Sound On', soundon);
		var rightText4 = new ContextMenuItem('Sound Off', soundoff);
		myMenu.customItems.push(rightText1);
		myMenu.customItems.push(rightText2);
		rightText3.separatorBefore = true;
		myMenu.customItems.push(rightText3);
		myMenu.customItems.push(rightText4);
		menu = myMenu;
	}
	frame 1 {
		BavelockFunction = function () {
			if (story == 146 && completedquests >= 3 && text_MC.textz._currentframe == 1) {
				mainquest = 'Me and Caleb should head to the market.';
				page1 = 'Caleb: It\'s time to visit the market, ' + corename + '.';
				page2 = 'Roy: I hope it\'s worth the visit.';
				doStartText();
				story = 150;
			}
			if ((story < 270 or story > 271) && story != 292) {
				newmusic = 'imperial';
			}
			if (Scenez.anvilblock.hitTest(Scenez.soundblock)) {
				anvilloop = true;
			} else {
				anvilloop = false;
			}
			if (story == 93 && currentpage == 2) {
				story = 94;
			}
			if (story == 94 && completedquests >= 2 && areascreen == 4 && text_MC.textz._currentframe == 1) {
				mainquest = 'I should head to the Golden Apple inn and see if Caleb is there now.';
				page1 = 'Head to the Golden Apple inn and see if Caleb is there now.';
				chathelp = false;
				yesno = false;
				doStartText();
				story = 100;
				Scenez.b1.storyblock2._y = 295;
			}
			if (Scenez.PA1.hitTest(Scenez.actionblock)) {
				if (lock0X == false) {
					if (darconstory == 1) {
						page1 = 'Guard: Unauthorized personnel are not allowed in here.';
						page2 = 'Roy: But it\'s really important! I need to see Darcon.';
						page3 = 'Guard: Do not. Care.';
						page4 = 'Caleb: Let\'s leave.';
						doStartText();
						notwalk = true;
						if (currentpage == 2) {
							Scenez.playerP1.gotoAndStop(12);
							Scenez.playerP2.gotoAndStop(12);
						}
						if (currentpage == 5) {
							darconstory = 2;
							notwalk = false;
							lock0X = true;
						}
					} else {
						if (darconstory >= 20 && darconstory < 30) {
							page1 = 'Guard: Halt! Who are you? You look familiar...';
							page2 = 'Roy: I am... ' + corename + ', high ranking officer in the Bavelock brigade. Me and my collegue have to see the prisoner right now!';
							page3 = 'Guard: Who is that guy, is he blind? Why do you require an audience with our prisoner?';
							page4 = 'Roy: This is an urgent matter regarding no other than the the Golden Demon! You dare defy the authority of ' + corename + ' the Brave? I will have you reduced to a street cleaner if you do not let me pass at this moment!';
							page5 = 'Guard: ' + corename + ' the Brave? Eh, fine go ahead...' + '\n' + 'I grant you both passage, sir!';
							if (darconstory == 20) {
								doStartText();
								notwalk = true;
								if (currentpage == 2) {
									Scenez.playerP1.gotoAndStop(12);
									Scenez.playerP2.gotoAndStop(12);
									darconstory = 21;
									Scenez.caleb._x = Scenez.playerP1._x;
									Scenez.caleb._y = Scenez.playerP1._y;
									directions1 = 1;
									walking1X = true;
									walkingspeed1 = 2;
									walking1chars = new Array(Scenez.caleb);
									calebwalking = true;
									Scenez.caleb._visible = true;
								}
							}
							if (darconstory == 21 && Scenez.caleb._x < Scenez.playerP1._x - 20) {
								walking1X = false;
								calebwalking = false;
								Scenez.caleb.gotoAndStop(8);
								darconstory = 22;
							}
							if (currentpage == 6 && darconstory < 23) {
								darconstory = 23;
								directions1 = 2;
								walking1X = true;
								walkingspeed1 = 2;
								walking1chars = new Array(Scenez.caleb);
								calebwalking = true;
							} else {
								if (Scenez.bars.darcon._visible == false) {
									directions1 = 1;
								}
							}
							if (darconstory == 23 && Scenez.caleb._x > Scenez.playerP1._x) {
								walking1X = false;
								calebwalking = false;
								Scenez.caleb._visible = false;
								Scenez.b1.houselock4._y = -900;
								darconstory = 30;
								lock0X = true;
								notwalk = false;
							}
						}
					}
				}
			} else {
				lock0X = false;
			}
			if (Scenez.b1.houselock1.hitTest(Scenez.actionblock) && housegrade == 1) {
				if (lock1X == false) {
					page1 = 'It\'s locked. There is a note saying the house is for sale. Contact Eloi for more information! Visit the \'Housing Houses\' store!';
					notstopwalking = true;
					lock1X = true;
					doStartText();
				}
			} else {
				lock1X = false;
			}
			if (Scenez.b1.houselock2.hitTest(Scenez.actionblock) or Scenez.b1.houselock3.hitTest(Scenez.actionblock) or Scenez.b1.houselock7.hitTest(Scenez.actionblock) or Scenez.b1.houselock8.hitTest(Scenez.actionblock) or Scenez.b1.houselock9.hitTest(Scenez.actionblock)) {
				if (lock2X == false) {
					page1 = 'It\'s locked.';
					notstopwalking = true;
					lock2X = true;
					doStartText();
				}
			} else {
				lock2X = false;
			}
			if (Scenez.b1.storyblock1.hitTest(Scenez.actionblock)) {
				if (lock3X == false) {
					if (questbrock == 3) {
						page1 = 'Roy: I have to show Argas the sword!';
					} else {
						if (questbrock == 7) {
							page1 = 'Roy: I have to show Luvannon the sword!';
						} else {
							if (questbrock >= 2 && questbrock <= 9) {
								page1 = 'Roy: I should visit Brock!';
							} else {
								page1 = 'Roy: I should visit Argas like Caleb suggested.';
							}
						}
					}
					notstopwalking = true;
					lock3X = true;
					doStartText();
				}
			} else {
				lock3X = false;
			}
			if (Scenez.b1.storyblock3.hitTest(Scenez.actionblock)) {
				if (lock4X == false) {
					page1 = 'Roy: I shouldn\'t leave without Caleb!';
					notstopwalking = true;
					lock4X = true;
					doStartText();
				}
			} else {
				lock4X = false;
			}
			if (Scenez.b1.storyblock5.hitTest(Scenez.actionblock)) {
				if (lock5X == false) {
					page1 = 'Caleb: Savina lies south!';
					notstopwalking = true;
					lock5X = true;
					doStartText();
				}
			} else {
				lock5X = false;
			}
			if (Scenez.b1.storyblock6.hitTest(Scenez.actionblock) or Scenez.b1.storyblock7.hitTest(Scenez.actionblock)) {
				if (lock6X == false) {
					if (guarduniform == true) {
						page1 = 'Guard: No one is allowed to exit the city, sir. Not even you, sir. There are reports of The Golden Demon attacking just outside our walls!';
					} else {
						page1 = 'Guard: No one is allowed to exit the city! There are reports of The Golden Demon attacking just outside our walls!';
					}
					yesno = false;
					lock6X = true;
					doStartText();
				}
			} else {
				lock6X = false;
			}
			if (Scenez.b1.castleblock.hitTest(Scenez.actionblock)) {
				if (lock7X == false) {
					if (guarduniform == true) {
						page1 = 'Guard: No one is allowed to enter the castle. Not even you.';
					} else {
						page1 = 'Guard: You are not allowed to enter the castle.';
					}
					notstopwalking = true;
					yesno = false;
					lock7X = true;
					doStartText();
				}
			} else {
				lock7X = false;
			}
			if (Scenez.b1.dstoryblock2.hitTest(Scenez.actionblock)) {
				if (lock8X == false) {
					page1 = 'Roy: I can\'t leave now!';
					notstopwalking = true;
					lock8X = true;
					doStartText();
				}
			} else {
				lock8X = false;
			}
			doActivatedText = function () {
				if (story == 260 or story == 270) {
					if (currentpage == 2) {
						yesno = true;
					}
					if (currentpage == 3) {
						story = 271;
						cinematic = false;
						if (choice == 1) {
							page3 = 'Roy: The Gods help me, I think I am losing my mind! I have to keep focus, I must find that creature and put a stop to this!';
						} else {
							page3 = 'Roy: No! It must be the Demon messing with my head. I must find that creature and put a stop to this!';
						}
					}
				}
				if (Scenez.itemshop.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (questink == 2) {
						page1 = 'Grace: Welcome to my shop!';
						page2 = 'Roy: I would like to buy ink please.';
						page3 = 'Grace: I did not take you for the writer type, I thought you were a soldier. But I am sorry, I am out of ink. The last ink was bought by Padamus next door.';
						if (currentpage == 3) {
							questink = 3;
							this['obj' + questinkX] = 'The itemshop was out of ink. The last ink was bought by Padamus next door.';
						}
						doStartText();
					} else {
						if (questlove == 2) {
							page1 = 'Grace: Welcome to my shop!';
							page2 = 'Roy: I would like to buy a bouquet of flowers please, for 5 pix!';
							page3 = 'Grace: Oh is this a surprise for your girlfriend? Here you go.\r*5 Pix removed';
							if (currentpage == 3) {
								questlove = 3;
								this['obj' + questloveX] = 'I bought the flowers for Sonya. I should give it to her!';
								goldnum = 5;
								removingGold();
							}
							doStartText();
						} else {
							if (shop_MC._currentframe == 1 && shopX == false) {
								page1 = 'Grace: Welcome!';
								if (questink == 3) {
									page1 += ' Have you talked to Padamus about the ink yet?';
								}
								doStartText();
							}
							if (currentpage == 2) {
								shop_MC.gotoAndStop(2);
							}
							if (shopX == true) {
								shopX = false;
							}
						}
					}
				}
				if (Scenez.furniture.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (housegrade == 1) {
						page1 = 'Silas: Greetings! We sell furniture here. If you ever need any for your house, why don\'t you come here and visit again!\rI hear Eloi next door is selling a house!';
						doStartText();
					} else {
						if (housegrade == 2) {
							if (shop_MC._currentframe == 1 && shopX == false) {
								page1 = 'Silas: Greetings! Do you want to buy furniture for your house?';
								doStartText();
							}
							if (currentpage == 2) {
								shop_MC.gotoAndStop(3);
							}
							if (shopX == true) {
								shopX = false;
							}
						} else {
							if (housegrade == 3) {
								page1 = 'Silas: Greetings again! I\'m sorry but I\'m out of stock. You bought everything I had.';
								doStartText();
							}
						}
					}
				}
				if (Scenez.smith.hitTest(Scenez.playerP1.coreblock) && shopX == false) {
					if (questbrock == 1 or questbrock == 2) {
						page1 = 'Brock: What do you want?';
						page2 = 'Roy: Are you the town\'s blacksmith?';
						page3 = 'Brock: Yes but I\'m busy. Come back later.';
						if (questbrock == 2) {
							page4 = 'Roy: What are you so busy with? People are getting impatient that you\'re always working on something, they need your services.';
							page5 = 'Brock: Really? Well that\'s none of their damn business what I\'m doing. I can\'t always be available. I am trying to forge the perfect sword! I call this one Climhazzard.';
							page6 = 'Brock: But I\'m never happy with it!\r... I\'ll tell you what, you\'re a swordfighter right? Take this sword, and show it to Argas. If he likes it, I will like it.';
							page7 = 'The sword Climhazzard is now equipped. In your inventory you can change between swords that you own at any time.';
							page8 = 'Brock: Head over to Argas.';
							if (currentpage == 7) {
								Scenez.brock.gotoAndStop(51);
								num = 2;
								addingSword();
							}
							if (currentpage == 9) {
								questbrock = 3;
								this['obj' + questbrockX] = 'I talked to Brock and he wants me to show Argas a sword he has been working on.';
							}
						}
						doStartText();
					} else {
						if (stand == 1) {
							if (questbrock >= 3 && questbrock <= 7) {
								page1 = 'Brock: Have you shown Argas the sword yet?';
							} else {
								if (questbrock == 9) {
									page1 = 'Brock: He liked it? Really? Maybe the sword is finished then... If the great swordfighter Argas liked it, then I see no reason to continue working on it.';
									page2 = 'Brock: But I will have to take the sword back.\rBut hey... now that I\'m free, come back if you ever want to sharpen a sword of yours and increase its damage, or add status effects to it!\rFor a small fee of course.';
									page3 = 'Brock: And tell Jaden he can come by any time too.\rBy the way, I want to give you something, ' + corename + '. I can add an effect of your choosing, to your sword Storm for free. It\'s the least I can do.';
									if (currentpage == 4) {
										if (gotsword6 == false) {
											num = 2;
											removingSword();
										}
										sword = 1;
										Scenez.b1.storyblock1._y = -900;
										this['obj' + questbrockX] = 'I returned the sword to Brock. I should tell Jaden that Brock is not busy anymore.';
										shop_MC.gotoAndStop(16);
									}
								} else {
									if (questbrock >= 10 && Scenez.brock._currentframe <= 51) {
										swordnum = Math.round(currentweapon / 7);
										goldnum = swordnum * 20;
										if (questbrock == 10) {
											page1 = 'Brock: Have you talked to Jaden yet?\rDo you want your current sword ' + swordname + ' sharpened for ' + goldnum + ' Pix? Its damage will increase by ' + swordnum + '.';
										} else {
											if (guarduniform == false) {
												page1 = 'Brock: Hello again! Do you want your current sword ' + swordname + ' sharpened for ' + goldnum + ' Pix? Its damage will increase by ' + swordnum + '.';
											} else {
												page1 = 'Brock: Hello! Do you want your sword sharpened for ' + goldnum + ' Pix? Its damage will increase by ' + swordnum + '.';
											}
										}
										page2 = 'ALT';
										if (currentpage == 1) {
											yesno = true;
										}
										if (currentpage == 2) {
											if (choice == 1) {
												if (gold >= goldnum) {
													page2 = 'Brock: Let me see it.';
												} else {
													page2 = 'Brock: You don\'t have enough money, come back when you do.';
												}
											} else {
												if (choice == 2) {
													page2 = 'Brock: I see. Do you want to add a status effect to your sword?';
													page3 = 'ALT';
													yesno = true;
													dialog = 2;
												}
											}
										}
										if (dialog == 2) {
											if (currentpage == 3) {
												if (choice == 1) {
													if (sword == 6) {
														page3 = 'Brock: What is this? I cannot do anything with this sword, it is done with a material I have never seen. It\'s very powerful.';
													} else {
														if (gold >= 25) {
															page3 = 'Brock: This is what I can do. Choose one.';
															shop_MC.gotoAndStop(16);
														} else {
															page3 = 'Brock: You do not appear to have enough money.';
														}
													}
												} else {
													if (choice == 2) {
														page3 = 'Brock: Come back if you change your mind.';
													}
												}
											} else {
												if (currentpage == 4) {
													if (shopX == true) {
														shopX = false;
													}
												}
											}
										}
										if (currentpage == 3 && choice == 1 && gold >= goldnum && dialog != 2) {
											Scenez.brock.gotoAndPlay(52);
										}
									}
								}
							}
							if (Scenez.brock._currentframe <= 51) {
								doStartText();
							}
						}
					}
				}
				if (Scenez.trainingblock.hitTest(Scenez.playerP1.coreblock) && guarduniform == false) {
					page1 = 'Do you want to have a training session?';
					page2 = 'ALT';
					doStartText();
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						training = true;
						doEnterBattle();
					} else {
						if (currentpage == 2 && choice == 2) {
							page2 = 'Maybe later.';
						}
					}
				}
				if (Scenez.sleep.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					page1 = 'Do you want to sleep?';
					page2 = 'ALT';
					doStartText();
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						page2 = 'Goodnight!';
					} else {
						if (currentpage == 2 && choice == 2) {
							page2 = 'Maybe later.';
						}
					}
					if (currentpage == 3 && choice == 1) {
						doHomeSleep();
					}
				}
				if (Scenez.gambletalk.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (questgamble != 4) {
						if (gambling_MC._currentframe == 1) {
							page1 = 'Marlo: Hello there good sir, are you interested in winning some money?';
							page2 = 'ALT';
							if (currentpage == 1) {
								yesno = true;
							}
							if (choice == 1 && currentpage == 2) {
								page2 = 'Marlo: If you bet ' + gambleprice + ' Pix you stand a chance of winning ' + gambleprice * 2 + ' Pix! Do you think you can win a shell game? Are you in?';
								page3 = 'ALT';
								yesno = true;
							} else {
								if (choice == 2 && currentpage == 2) {
									page2 = 'Marlo: Fine, but know that I\'ll always be here if you change your mind.';
								}
							}
							if (choice == 1) {
								if (currentpage == 3 && gold < gambleprice) {
									page3 = 'Marlo: You don\'t seem to have enough money, good sir.';
								} else {
									if (currentpage == 3 && gold >= gambleprice) {
										goldnum = gambleprice;
										removingGold();
										dialog = 2;
										page3 = 'Marlo: Let me see here...\r*' + goldnum + ' Pix removed';
									}
								}
								if (currentpage == 4 && dialog == 2) {
									gambling_MC.gotoAndPlay(2);
								}
							} else {
								if (choice == 2 && currentpage == 3) {
									page3 = 'Marlo: Know that I\'ll always be here if you change your mind.';
								}
							}
							doStartText();
						} else {
							if (chosenpos > 0) {
								if (currentpage == 2) {
									gambling_MC.gotoAndPlay('endX');
									chosenpos = 0;
								}
							}
						}
					} else {
						if (currentpage == 4) {
							questgamble = 5;
						}
					}
				}
				if (Scenez.talk1.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (questfindsword == 4) {
						page1 = 'Roy: Hello Mr Candyboot, do you know anything about a sword that was stolen recently? Barl the guard was hoping you would know anything about that. Maybe you have seen something out of place?';
						page2 = 'Mr Candyboot: It just so happens that I saw something peculiar yesterday. Edna, the crazy woman that lives nearby was carrying a sword around. I wasn\'t sure what to make of it. She is such an odd woman but I assumed she had bought it for some reason.';
						page3 = 'Roy: Thank you, I think that\'s all I need.';
						if (currentpage == 4) {
							this['obj' + questfindswordX] = 'Candyboot told me he saw Edna the day before carrying a sword. She must have been the thief.';
							questfindsword = 5;
						}
					} else {
						if (questdrunk == 3) {
							page1 = 'Mr Candyboot: You again! You got some nerve coming in here so soon after what you did!';
							page2 = 'Mr Candyboot: I am willing to forgive your loud and obnoxious behavior last night because I know you have been through a lot lately. After all, I am used to that kind of people in this tavern.';
							page3 = 'Mr Candyboot: Just promise me you will not dance on the tables wearing only your underwear from now on, okay?';
							page4 = 'Roy: I\'m sorry, what?\rUh, yeah I will certainly try to stop myself next time... Also, I seem to missing my pants...';
							page5 = 'Mr Candyboot: Indeed you are. Your pants are in the back room, and your friends\' pants as well.';
							page6 = 'Roy: Speaking of my friend, do you know where he went?';
							page7 = 'Mr Candyboot: You mean the guy who didn\'t even have the decency to wear his underwear? After he was kicked out of the tavern I think he said he was heading to his friend Bart. He lives outside Bavelock somewhere south.';
							page8 = 'Mr Candyboot: Hah! There is no way he got that far though. The state of him was miserable, he could barely walk!';
							if (currentpage == 9) {
								this['obj' + questdrunkX] = 'Candyboot told me Podler was going to see his friend Bart who lives outside Bavelock to the south.';
								questdrunk = 4;
								stand = 3;
								Scenez.playerP1._x = 145;
								Scenez.playerP2._x = 145;
								Scenez.playerP1._y = 70;
								Scenez.playerP2._y = 70;
								Scenez.playerP1.gotoAndStop(3);
								Scenez.playerP2.gotoAndStop(3);
								black.gotoAndPlay(2);
								if (sfxmute == false) {
									item.start();
								}
							}
						} else {
							if (questbeer == 1 or questbeer >= 3) {
								page1 = 'Mr Candyboot: Welcome to the Golden Apple inn!\rDo you want a room for the night for 10 Pix?';
								page2 = 'ALT';
								if (currentpage == 1) {
									sleepchat = true;
								}
								if (currentpage == 2 && choice == 1) {
									doTaverntalkB();
									page2 = 'Mr Candyboot: ' + taverntalk;
								} else {
									if (currentpage == 2 && choice == 2) {
										if (gold >= 10) {
											page2 = 'Mr Candyboot: Great! The room is upstairs. Goodnight, sir.';
										} else {
											page2 = 'Mr Candyboot: You don\'t seem to have enough Pix.';
										}
									}
								}
								if (currentpage == 3 && choice == 2 && gold >= 10) {
									playerX = 70;
									playerY = 45;
									stand = 4;
									areascreen = 24;
									goldnum = 10;
									removingGold();
									doGotoGame();
									doSleep();
								}
							} else {
								if (questbeer == 2) {
									page1 = 'Roy: Hello, a beer please.';
									page2 = 'ALT';
									if (currentpage == 2) {
										if (gold >= 5) {
											page2 = 'Mr Candyboot: That will be 5 Pix. How are you feeling? You were quite in a dire state yesterday.\r*5 Pix removed';
											goldnum = 5;
											removingGold();
										} else {
											page2 = 'Mr Candyboot: No problem, you get one free of charge! How are you feeling? You were quite in a dire state yesterday.';
										}
										page3 = 'Roy: I\'m fine, but it\'s all thanks to Caleb. And I appreciate you giving me a room free of charge last night.';
										page4 = 'Mr Candyboot: Of course, don\'t mention it. Anyone who fights the Golden Demon and survives can have a room for free for a night!';
									}
									if (currentpage == 4) {
										questbeer = 3;
										this['obj' + questbeerX] = 'I bought a beer for Farimir, I should give it to him. Hopefully he will survive another drink...';
									}
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk2.hitTest(Scenez.playerP1.coreblock) && stand == 3 && questbeer < 5) {
					if (story < 300) {
						page1 = 'Farimir: \'Hiccup!\'';
					} else {
						if (questbeer == 1) {
							page1 = 'Roy: Hello there...';
							page2 = 'Farimir: Oh... you have a beer to share?';
						} else {
							if (questbeer == 2 or questbeer == 3) {
								page1 = 'Roy: Hello again, friend.';
								page2 = 'Farimir: Do you have that beer yet? I really need another one right now.';
							}
						}
						page3 = 'ALT';
						if (currentpage == 2) {
							yesno = true;
						}
						if (currentpage == 3) {
							if (questbeer == 1 or questbeer == 2) {
								if (choice == 1) {
									page3 = 'Farimir: Oh... No you don\'t! Why don\'t you go buy one? \'hiccup\'';
									if (questbeer == 1) {
										questbeer = 2;
										questbeerX = numquests;
										newquest = 'I met Farimir at the Golden Apple, he wants a beer.';
										questname = 'Beer and more beer';
										addJournal();
									}
								} else {
									if (choice == 2) {
										page3 = 'Farimir: Oh... well go away then! Leave me alone!';
									}
								}
							} else {
								if (questbeer == 3) {
									if (choice == 1) {
										page3 = 'Farimir: Oh... Great! Thank you!\rHey... Why are you so gloom, boy?';
									} else {
										if (choice == 2) {
											page3 = 'Farimir: Oh... Hey you do have a beer! I\'ll take that, thank you! \'hiccup\'\rHey... Why are you so gloom, boy?';
										}
									}
									page4 = 'Roy: I look gloom? Well, I do have to get out of Bavelock. But no one is allowed out of the city.';
									page5 = 'Farimir: Oh, you can\'t get out... Hey... Do you want to know a secret?';
									page6 = 'ALT';
								}
							}
						} else {
							if (currentpage == 5) {
								yesno = true;
								dialog = 2;
							} else {
								if (currentpage == 6 && dialog == 2) {
									if (choice == 1) {
										page6 = 'Farimir: Okay...';
									} else {
										if (choice == 2) {
											page6 = 'Farimir: Oh... well I will tell you anwyay...';
										}
									}
									page7 = 'Farimir: There is an underground passage out of the city! ... \'hiccup\'\rYou didn\'t know that, did ya?';
									page8 = 'Roy: An underground passage out of Bavelock... You are not joking are you? Where is it?';
									page9 = 'Farimir: I am not sure about that. But I do know someone who might know. Look for Darcon in the prison... he knows... Darcon... uugh';
									page10 = 'Roy: I probably should not have given him that last beer...\rDarcon in the prison... Does he mean the city prison?';
									mainquest = 'There might be an underground passage out of Bavelock. I have to look for Darcon in Bavelock prison.';
								} else {
									if (currentpage == 10 && dialog == 2) {
										Scenez.down_MC.farimir.gotoAndPlay(190);
										questbeer = 5;
										delquest = questbeerX;
										delJournal();
										questbeerX = -1;
									}
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk3.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (housegrade == 1) {
						page1 = 'Eloi: Hello there! I\'ve started a new type of business here, I buy and sell houses, you see! I manage most of the property in Bavelock.';
						page2 = 'Eloi: Are you interested in buying a house? The house across the street is for sale. Owning a house gives you a lot of benefits.';
						page3 = 'ALT';
						if (currentpage == 2) {
							yesno = true;
						}
						if (currentpage == 3 && choice == 1) {
							page3 = 'Eloi: Great! Buying a house will give you a free bed to sleep in at any time, it totally fills your health and mana!\rIt\'s ' + houseprice + ' Pix, are you sure you want it?';
							page4 = 'ALT';
							yesno = true;
						} else {
							if (currentpage == 3 && choice == 2) {
								page3 = 'Eloi: I see. Maybe you just need some time to think about it?';
							}
						}
					} else {
						if (housegrade >= 2) {
							page1 = 'Eloi: Are you satisfied with the house?';
							page2 = 'ALT';
							if (currentpage == 1) {
								yesno = true;
							}
							if (currentpage == 2 && choice == 1) {
								page2 = 'Eloi: I always like a satisfied customer!';
								housegrade = 2;
							} else {
								if (currentpage == 2 && choice == 2) {
									page2 = 'Eloi: Is that so...?';
								}
							}
						}
					}
					if (currentpage == 4 && choice == 1) {
						if (gold >= houseprice) {
							page4 = 'Eloi: It\'s now yours! Here is the key. If you want some furniture, why don\'t you visit the furniture shop next door?\r*' + houseprice + ' Pix removed';
							housegrade = 2;
							Scenez.b1.houselock1._y = -900;
							black.gotoAndPlay(2);
							goldnum = houseprice;
							removingGold();
						} else {
							page4 = 'Eloi: You don\'t have enough money to buy the house.';
						}
					} else {
						if (currentpage == 4 && choice == 2) {
							page4 = 'Eloi: Maybe you just need some time to think about it?';
						}
					}
					doStartText();
				}
				if (Scenez.talk4.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (founddouglas == 0) {
						doFoundDouglas();
						medalmeeting1 = true;
					} else {
						if (medalmeeting1 == false) {
							page1 = 'Douglas: So you found me again! Am I not hiding good enough?';
							page2 = 'Douglas: So yeah, you found me. You want a medal or something?';
							if (currentpage == 3) {
								++founddouglas;
								medalmeeting1 = true;
								othermedal = true;
								medaltext = 'You have found Douglas ' + founddouglas + ' times of two.';
								medal_MC.gotoAndPlay(2);
								doMedalMeeting();
							}
						} else {
							if (medalmeeting1 == true) {
								page1 = dpage[random(dpage.length)];
							}
						}
					}
					doStartText();
				}
				if (dialog == 5 or Scenez.talk5.hitTest(Scenez.playerP1.coreblock) && stand == 4 && Scenez.upX_MC.barsitters._currentframe > 1) {
					if (Scenez.upX_MC.barsitters._currentframe == 3) {
						doFantasyName();
						page1 = 'Wedge: Have you ever seen the Golden Demon?';
						page2 = 'Ambus: Of course not. But I have heard some harrowing things about the creature. A guy told me it destroyed an entire army once in ' + fname + '!';
						doStartText();
					} else {
						if (Scenez.upX_MC.barsitters._currentframe == 4) {
							if (questdrunk == 1 or questdrunk == 2) {
								if (questdrunk == 1) {
									page1 = 'Podler: Hey there, mate! Are you a drinker?';
								} else {
									page1 = 'Podler: Hey there again mate! You said you where a drinker, right?';
								}
								page2 = 'ALT';
								questdrunk = 2;
								if (currentpage == 1) {
									yesno = true;
								}
								if (currentpage == 2 && choice == 1) {
									page2 = 'Podler: Good! I like a man who can drink. What kind of man doesn\'t drink the occasional beer, you know?\rAre you up for a drink? How about a competition? We take turns drinking a pint. The last man standing wins!';
									page3 = 'ALT';
									yesno = true;
								} else {
									if (currentpage == 2 && choice == 2) {
										page2 = 'Podler: I suppose my beer jug can keep me company.';
									}
								}
								if (currentpage == 3 && choice == 1) {
									page3 = 'Podler: Fantastic! This is going to be fun, trust me!';
									dialog = 2;
								} else {
									if (currentpage == 3 && choice == 2) {
										page3 = 'Podler: A coward, are you? I get it.';
									}
								}
								if (currentpage == 4 && dialog == 2) {
									Scenez.playerP1._x = 175;
									Scenez.playerP1._y = 470;
									Scenez.playerP2._x = 175;
									Scenez.playerP2._y = 470;
									black.gotoAndPlay(92);
									drink.start();
									doPlayer2();
									questdrunk = 3;
									doBavelockHouse();
									questdrunkX = numquests;
									newquest = 'I drank too much beer last night and now I have to piece together what happened.';
									questname = 'The Hangover';
									addJournal();
									Drunktext = function () {
										page1 = 'Roy: Oooh my head...';
										page2 = 'Roy: Where the hell am I? What am I doing out here? I cannot remember a thing about last night...\rHaven\'t I been through this already once before?';
										page3 = 'Roy: I was drinking with Podler at the inn... wasn\'t I? I have to find out what happened.\rWait, where are my pants?';
										doStartText();
									};
								}
							}
							doStartText();
						} else {
							if (story == 280 or story == 281) {
								dialog = 5;
								doNotrun2();
								page1 = 'Caleb: So you are finally awake! You look terrible.';
								page2 = 'Roy: Have you been drinking all night?';
								page3 = 'Caleb: Yes. A little bit, yes...';
								page4 = 'Roy: I just had a bad dream. I saw him again, the Demon. This all so confusing, Caleb. He talked to me as if he knew who I was. Could that really be true?';
								page5 = 'Caleb: He did seem to recognize you. But ' + corename + ' do you realize how lucky we are to still be alive? You were delirious after being poisoned by that creature. I managed to kill it myself, and get you to this tavern.';
								page6 = 'Caleb: I bought some remedy potions to cure you and I have one left if we ever need one.\rBut tell me about that dream.';
								page7 = 'Roy: I saw the Demon surrounded by dead trees, one of which was burning. He said that he had killed me before, and that he had killed me now again. I thought I was dead. And if it wasn\'t for you I would have been dead. I am in your debt.';
								page8 = 'Caleb: I know you would have done the same.\rBut that was just a dream, and you were in a confused state because of the poison. The dream probably meant nothing.';
								page9 = 'Roy: Maybe you are right. I just don\'t know what to make of it, he spoke only in riddles. How long was I passed out?\rThe Demon took both the crystals did he not?';
								page10 = 'Caleb: You were passed out for a day, I feared you would die. But the Gods favor you, it would seem.\rBut unfortunately so, yes he did steal the crystals. All that work for nothing.';
								page11 = 'Caleb: But there is definitely something we do not know about those artifacts! The Golden Demon called them shards of the Tear of Neriah.';
								page12 = 'Roy: Do you know what the Tear of Neriah is?';
								page13 = 'Caleb: No, which is why you should visit the library to see if you can learn anything about it.';
								page14 = 'Roy: I will see if I can find anything. Are you coming too?';
								page15 = 'Caleb: No, after all I have been through, I am staying here. The library is to the west, past the warrior statue. You can find it by yourself!';
								page16 = 'Caleb: Bartender, another drink!';
								mainquest = 'I woke up in Bavelock after passing out by a Demon hound summoned by the Golden Demon. I am heading towards the library to read about the Tear of Neriah.';
								doStartText();
								if (currentpage == 2) {
									black.gotoAndPlay(2);
									Scenez.upX_MC.barsitters.gotoAndStop(6);
									Scenez.playerP1.gotoAndStop(17);
									Scenez.playerP2.gotoAndStop(17);
									Scenez.playershadow._visible = false;
									camXpoint = 0;
									camYpoint = 90;
									doCinematic();
									cinemacam = true;
									++remedy;
									gotfirstremedy = true;
									story = 281;
								}
								if (currentpage == 17) {
									black.gotoAndPlay(2);
									Scenez.upX_MC.barsitters.gotoAndStop(5);
									Scenez.b1.storyblock4._y = -900;
									Scenez.playerP1.gotoAndStop(9);
									Scenez.playerP1._x = -40;
									Scenez.playerP1._y = 75;
									Scenez.playerP2.gotoAndStop(9);
									Scenez.playerP2._x = -40;
									Scenez.playerP2._y = 75;
									stand = 1;
									Scenez.playershadow._visible = true;
									cinematic = false;
									cinemacam = false;
									story = 290;
									fame += 5;
								}
							} else {
								if (story == 290) {
									page1 = 'Caleb: Go to the library!';
									page2 = 'Roy: You are starting to get lazy!';
									doStartText();
								} else {
									if ((story == 300 or story == 310) && questbeer < 5) {
										page1 = 'Caleb: I\'m sorry but I\'m staying here until you find anything better to do.';
										page2 = 'Roy: You are getting lazy.';
										page3 = 'Caleb: And so are you. Are you staying here because you want to chat?';
										page4 = 'ALT';
										dialog = 5;
										if (currentpage == 3) {
											yesno = true;
										}
										if (currentpage == 4) {
											if (choice == 1) {
												page4 = 'Caleb: I see. I have been wondering, ' + corename + ' what is the last thing you remember? From before you lost your memory.';
												page5 = 'Roy: I keep trying to remember. I don\'t have anything visual that I remember, but I do recall smells. I remember the smell of fire, smoke the smell of decay. And the feeling of dying.';
												page6 = 'Roy: But that is the past. I try to convince myself that it isn\'t important.';
												page7 = 'Caleb: Perhaps it is best after all not to spend too much time thinking about it. Do not keep your mind preoccupied in grim thoughts, it will kill your spirit.';
												page8 = 'Roy: You are right, there are other matters I should be keeping my mind on.';
												black.gotoAndPlay(2);
												Scenez.upX_MC.barsitters.gotoAndStop(6);
												Scenez.playerP1.gotoAndStop(17);
												Scenez.playerP2.gotoAndStop(17);
												Scenez.playershadow._visible = false;
												camXpoint = 0;
												camYpoint = 90;
												doCinematic();
												cinemacam = true;
											} else {
												page4 = 'Caleb: Then why are you here? Find a way out of the city if you want to pursue the Demon.';
											}
										}
										if (currentpage == 9 && choice == 1) {
											black.gotoAndPlay(2);
											Scenez.upX_MC.barsitters.gotoAndStop(5);
											Scenez.playerP1.gotoAndStop(9);
											Scenez.playerP1._x = -40;
											Scenez.playerP1._y = 75;
											Scenez.playerP2.gotoAndStop(9);
											Scenez.playerP2._x = -40;
											Scenez.playerP2._y = 75;
											stand = 1;
											Scenez.playershadow._visible = true;
											cinematic = false;
											cinemacam = false;
										}
										doStartText();
									} else {
										if (story == 310 && questbeer == 5) {
											dialog = 5;
											page1 = 'Roy: I think I know a way out of the city. Or atleast I know someone who might.\rBut I do know that the Demon is heading towards Mogwai Mountains, northeast from here.';
											page2 = 'Caleb: This better be worthwhile.';
											doStartText();
											if (currentpage == 3) {
												story = 320;
												black.gotoAndPlay(2);
												calebX = true;
												++numofchars;
												Scenez.upX_MC.barsitters.gotoAndStop(1);
												Scenez.b1.houselock2._y = -900;
											}
										} else {
											if (questbeer == 5) {
												page1 = 'Roy: I think I know a way out. Or atleast I know someone who might know.';
												page2 = 'Caleb: Is it worth going out if we don\'t know which way the Demon was heading?';
												doStartText();
											}
										}
									}
								}
							}
						}
					}
				}
				if (Scenez.talk6.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (questdrunk == 3) {
						page1 = 'Belmus: Oh please put some pants on!';
					} else {
						if (questnewintown < 5) {
							page1 = 'Belmus: Well met, I\'m Belmus! Have you met my beautiful elven wife?';
						} else {
							if (questnewintown == 5) {
								page1 = 'Belmus: It\'s nice to have company. Eromus is a fun guy, he has a lot of stories from his city Aorna.';
							}
						}
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Belmus: Alasbeth and I met in Aorna and fell in love at first sight!';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Belmus: I don\'t need any help, thank you.';
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk7.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (questdrunk == 3) {
						page1 = 'Alasbeth: Where are your pants? This isn\'t appropriate!';
					} else {
						if (questnewintown == 1) {
							page1 = 'Alasbeth: Belmus is so sweet! He likes to talk about how we first met in Aorna. It was love at first sight!';
							page2 = 'ALT';
							if (currentpage == 1) {
								chathelp = true;
							}
							if (chat == true && currentpage == 2) {
								page2 = 'Alasbeth: I have heard of a Demon in Andora lately! I hope Belmus protects me from it if it ever comes here.';
							} else {
								if (help == true && currentpage == 2) {
									page2 = 'Alasbeth: I don\'t need anything at the moment.';
								}
							}
						} else {
							if (questnewintown == 2 or questnewintown == 3) {
								page1 = 'Roy: Eromus is asking for Alasbeth, do you know her? He is in the city.';
								page2 = 'Alasbeth: Is Eromus here? By Iluvatar\'s hand, please take him here, I would like to meet him!';
								questnewintown = 3;
								this['obj' + questnewintownX] = 'I found Alasbeth who is Eromus\' sister. I should go tell Eromus.';
							} else {
								if (questnewintown == 4) {
									page1 = 'Eromus: Oh Alasbeth, my dear sister I have been looking for you!';
									page2 = 'Alasbeth: Eromus! How great is to see you brother!';
									num = 2;
									if (currentpage == 2) {
										black.gotoAndPlay(2);
										Scenez.newintown.gotoAndStop(2);
									}
									if (numofchars > 1) {
										if (currentpage == 3) {
											corecaleb = true;
										}
										page3 = 'Eromus: ' + corename + ' I won\'t take any more of your time! Thank you so much for helping! Here is something I got from Aorna, I want you to have it.' + '\n' + '*You are given ' + num + ' Agility auras! Give ' + corename + ' or Caleb?';
										page4 = 'ALT';
										if (currentpage == 4) {
											if (choice == 1) {
												addingAgilityCore();
												page4 = '*You got ' + num + ' Agility auras! ' + corename + '\'s Agility improved.';
											} else {
												if (choice == 2) {
													addingAgilityCaleb();
													page4 = '*You got ' + num + ' Agility auras! Caleb\'s Agility improved.';
												}
											}
											questnewintown = 5;
											delquest = questnewintownX;
											delJournal();
											questnewintownX = -1;
										}
									} else {
										if (currentpage == 2) {
											page3 = 'Eromus: ' + corename + ' I won\'t take any more of your time! Thank you so much for helping! Here is something I got from Aorna, I want you to have it.' + '\n' + '*You got ' + num + ' Agility auras! ' + corename + '\'s Agility improved.';
											addingAgilityCore();
											questnewintown = 5;
											delquest = questnewintownX;
											delJournal();
											questnewintownX = -1;
										}
									}
								} else {
									if (questnewintown == 5) {
										page1 = 'Alasbeth: Eromus has told me about his travels on his way to Bavelock to meet me.';
										page2 = 'ALT';
										if (currentpage == 1) {
											chathelp = true;
										}
										if (chat == true && currentpage == 2) {
											page2 = 'Alasbeth: I have heard of a Demon in Andora lately! I hope Belmus and Eromus protects me from it if it ever comes here!';
										} else {
											if (help == true && currentpage == 2) {
												page2 = 'Alasbeth: I do not need any more help. But I thank you for what you have already done!';
											}
										}
									}
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk7X.hitTest(Scenez.playerP1.coreblock) && stand == 1 && questnewintown >= 5) {
					if (questdrunk == 3) {
						page1 = 'Eromus: Put some pants on, ' + corename + '!';
					} else {
						page1 = 'Eromus: Thank you for all your help! I would never have found my sister if it weren\'t for you.';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Eromus: Have you ever seen Aorna? Oh you must do! It is a beautiful city, built in ancient times by the High elves of Darnassus!';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Eromus: You have done enough.';
							}
						}
					}
				}
				if (Scenez.talk8.hitTest(Scenez.playerP1.coreblock) && stand == 4) {
					if (questreturnbook > 1 && questreturnbook <= 4) {
						page1 = 'Roy: Hello, Donver the scholar from the library wants back the book The Lord of The Rings you got from Mell.';
						page2 = 'Elleanor: Oh, the book? Of course you can have it now, I\'m done with it. I didn\'t know someone wanted it back! Take it.';
						if (currentpage == 3) {
							Scenez.down_MC.findbook.gotoAndStop(1);
							questreturnbook = 5;
							this['obj' + questreturnbookX] = 'I have the loaned book that Donver at the libary wants back, I should bring it back to him.';
						}
					} else {
						page1 = 'Elleanor: Hey, how are you?';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Elleanor: Have you ever encountered a bandit? Lately there have been a lot of them around these parts.';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Elleanor: I don\'t need any help. Why would I need any?';
								down_MC.findbook._visible = false;
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk9.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					page1 = 'Naomi: My husband is writing his story. He does not want to be disturbed!';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Naomi: Domastir is quite a famous writer in Bavelock. He has been writing on a new book lately. He can write for hours at a time!';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Naomi: I don\'t need any help unless you could give my husband some more free time. But when he writes he is stuck in his book!';
						}
					}
					doStartText();
				}
				if (Scenez.talk10.hitTest(Scenez.playerP1.coreblock) && (stand == 1 or stand == 4)) {
					if (questink == 1) {
						page1 = 'Domastir: I\'m sorry, but I\'m busy...';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Domastir: I said I\'m busy!';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									page2 = 'Domastir: Actually... I am running out of ink! Could you buy me more at the itemshop? I\'ll pay for the expense, and more.';
									page3 = 'ALT';
									yesno = true;
								}
								if (choice == 1 && currentpage == 3) {
									goldnum = 8;
									page3 = 'Domastir: Great! I am entrusting this task and money to you, don\'t fail me! I will be waiting.\r*' + goldnum + ' Pix added';
									addingGold();
									questink = 2;
									questinkX = numquests;
									newquest = 'I have been asked by Domastir to buy him ink. I should see if the itemshop in Bavelock sells some.';
									questname = 'Buying ink';
									addJournal();
								} else {
									if (choice == 2 && currentpage == 3) {
										page3 = 'Domastir: Fine then.';
									}
								}
							}
						}
					} else {
						if (questink >= 2 && questink <= 5) {
							page1 = 'Domastir: I am waiting...';
						} else {
							if (questink == 6) {
								goldnum = 10;
								page1 = 'Domastir: Great! Thank you, here is the money I promised, you can keep the 8 Pix I first gave you. Now be on your way.\r*' + goldnum + ' Pix added';
								questink = 7;
								addingGold();
								delquest = questinkX;
								delJournal();
								questinkX = -1;
							} else {
								if (guarduniform == false) {
									page1 = 'Domastir: Hello again. I am sorry but I can\'t talk.';
								} else {
									page1 = 'Domastir: I am sorry but I cannot talk.';
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk11.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (questreturnbook <= 2) {
						page1 = 'Mell: What are you doing up here?';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Mell: Get out, please.';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Mell: No I don\'t need anything!';
							}
						}
					} else {
						if (questreturnbook == 3) {
							page1 = 'Mell: The book? Donver sent you? I don\'t have it, I gave it to Elleanor. She lives at the southern part of Bavelock, next to Domastir the writer.';
							questreturnbook = 4;
							this['obj' + questreturnbookX] = 'Donver wants me to bring him back a loaned book. Mell does not have it, Elleanor has the book. She lives in the most southern part of Bavelock.';
						} else {
							if (questreturnbook > 3) {
								page1 = 'Mell: You again! What are you still doing up here?';
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk12.hitTest(Scenez.playerP1.coreblock) && stand == 3 && questdrugs < 5) {
					if (guarduniform == false) {
						page1 = 'Rififi: There are some things you should stay out of. Go disturb someone else.';
						if (questdrugs < 3) {
							page2 = 'Rififi: Wait... are you the guy I am waiting for? You aren\'t what I expected.';
							page3 = 'ALT';
							if (currentpage == 2) {
								yesno = true;
							}
							if (currentpage == 3) {
								if (choice == 1) {
									page3 = 'Rififi: Then where is the skooma, where are the drugs?\rYou don\'t have any do you? You\'re not the guy.';
									page4 = 'Rififi: Leave me, now. You never spoke to me! Okay?';
								} else {
									if (choice == 2) {
										page3 = 'Rififi: Then you never saw me! Okay? Go away.';
									}
								}
								questdrugs = 2;
							}
						} else {
							if (questdrugs == 3 or questdrugs == 4) {
								goldnum = 60;
								if (questdrugs == 3) {
									page2 = 'Rififi: Wait a minute... are you the guy? You aren\'t what I expected. Do you have the drugs, the skooma?';
								} else {
									if (questdrugs == 4) {
										page2 = 'Rififi: You again... who are you? Are you the guy I am expecting? I thought you would be taller. Do you have the drugs, the skooma?';
									}
								}
								page3 = 'Rififi: Now this is fine stuff. Here is the money. You won\'t see me again, in fact you never saw me in the first place.\r*' + goldnum + ' Pix added';
								if (currentpage == 4) {
									Scenez.up_MC.rififi._visible = false;
									Scenez.b1.rififiblock._y = -900;
									questdrugs = 5;
									addingGold();
									delquest = questdrugsX;
									delJournal();
									questdrugsX = -1;
									black.gotoAndPlay(2);
								}
							}
						}
					} else {
						page1 = 'Rififi: Hello, good sir! Nice weather today, don\'t you think?';
					}
					doStartText();
				}
				if (Scenez.talk13.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					if (questlove < 3 or questlove > 4) {
						if (shop_MC._currentframe == 1 && shopX == false) {
							if (questlove < 3) {
								page1 = 'Sonya: Hello there! I will play whatever you want for a coin!\rGive coin?';
							} else {
								if (questlove == 5) {
									page1 = 'Sonya: Hey, thank you for what you did. Ryan is so sweet!\rI will play whatever you want free of charge! Do you want to listen to a song?';
								}
							}
							page2 = 'ALT';
							doStartText();
							if (currentpage == 1) {
								Scenez.up_MC.sonya.gotoAndStop(2);
								yesno = true;
							}
							if (shopX == true) {
								shopX = false;
							}
						}
						if (currentpage == 2) {
							if (questlove < 3 or questlove > 4) {
								if (choice == 1) {
									if (questlove < 3) {
										if (gold > 0) {
											page2 = 'Sonya: Thank you sweety! \r*1 Pix coin removed';
											if (sonyacoins < 3) {
												fame += 1;
											}
											dialog = 2;
											goldnum = 1;
											removingGold();
											++sonyacoins;
										} else {
											page2 = 'You don\'t have a coin.';
										}
									} else {
										page2 = 'Sonya: Here we go!';
										Scenez.up_MC.sonya.gotoAndStop(1);
										shop_MC.gotoAndStop(10);
									}
								} else {
									if (choice == 2) {
										page2 = 'Sonya: Bye then.';
									}
								}
							}
						}
						if (currentpage == 3 && dialog == 1) {
							Scenez.up_MC.sonya.gotoAndStop(1);
						} else {
							if (currentpage == 3 && dialog == 2) {
								Scenez.up_MC.sonya.gotoAndStop(1);
								shop_MC.gotoAndStop(10);
							}
						}
					} else {
						if (questlove == 3) {
							page1 = 'Roy: Hello, Ryan has something he wants you to know... He says you are like the air he breathes and that he loves you...';
							page2 = 'Sonya: Oh... I\'m flattered. I have noticed that he watches me very often when I play. I don\'t know what to say...';
							page3 = 'Roy: He also bought you some flowers.';
							page4 = 'Sonya: How sweet! Can you tell him that I like him and... that I think he\'s cute?';
							doStartText();
							if (currentpage == 1) {
								Scenez.up_MC.sonya.gotoAndStop(2);
							}
							if (currentpage == 5) {
								Scenez.up_MC.sonya.gotoAndStop(1);
								questlove = 4;
								this['obj' + questloveX] = 'I told Sonya that Ryan loves her. I should talk to Ryan again.';
							}
						} else {
							if (questlove == 4) {
								page1 = 'Sonya: Can you tell Ryan what I said?';
								doStartText();
								if (currentpage == 1) {
									Scenez.up_MC.sonya.gotoAndStop(2);
								}
								if (currentpage == 2) {
									Scenez.up_MC.sonya.gotoAndStop(1);
								}
							}
						}
					}
				}
				if (Scenez.talk14.hitTest(Scenez.playerP1.coreblock)) {
					if (stand == 1 && questlove < 5) {
						if (questlove == 1 or questlove == 2 or questlove == 3) {
							page1 = 'Ryan: Sonya\'s music is so beautiful... And so is she.';
							page2 = 'ALT';
							if (currentpage == 1) {
								chathelp = true;
							}
							if (chat == true && currentpage == 2) {
								page2 = 'Ryan: I watch Sonya play her music as much as I can! She\'s so beautiful. But I just can\'t bring myself to say hi to her... or even get close to her.';
							} else {
								if (help == true) {
									if (currentpage == 2) {
										if (questlove == 1) {
											page2 = 'Ryan: Help? I don\'t know... unless you can tell Sonya how I feel for her, in my stead. Please? I might even pay you, I just need her to know!';
											page3 = 'ALT';
											yesno = true;
										} else {
											page2 = 'Ryan: Have you told her yet?';
										}
									}
									if (choice == 1 && currentpage == 3) {
										goldnum = 5;
										page3 = 'Ryan: Yes, yes... tell her that she is like... the air I breathe! And that I love her. No, wait! First buy some flowers for me. Here\'s some money, go visit the itemshop and buy a big bouquet of flowers!\r*' + goldnum + ' Pix added';
										addingGold();
										questlove = 2;
										questloveX = numquests;
										newquest = 'Ryan wants me to buy a bouquet of flowers and wants me to tell Sonya that she \'is like the air he breathes and that he loves her\'.';
										questname = 'Love story';
										addJournal();
									} else {
										if (choice == 2 && currentpage == 3) {
											page3 = 'Ryan: Oooh I will just have to tell her myself. Some day...!';
										}
									}
								}
							}
							doStartText();
						} else {
							if (questlove == 4) {
								goldnum = 10;
								page1 = 'Ryan: Cute? She thinks I\'m cute? Great! I now think I can meet her myself! This is all the Pix I have on me right now, take it! \r*' + goldnum + ' Pix added';
								page2 = 'Ryan: Thank you so much for helping! Wish me luck.';
								if (currentpage == 3) {
									black.gotoAndPlay(2);
									Scenez.up_MC.ryan._x = 72;
									Scenez.up_MC.ryan._y = 250;
									Scenez.up_MC.ryan._xscale *= -1;
									Scenez.talk14._x = -354;
									Scenez.talk14._y = 120;
									Scenez.b1.ryanblock._x = 65;
									Scenez.b1.ryanblock._y = 370;
									questlove = 5;
									addingGold();
									delquest = questloveX;
									delJournal();
									questloveX = -1;
								}
							}
						}
						doStartText();
					} else {
						if (stand == 2 && questlove == 5) {
							if (guarduniform == false) {
								page1 = 'Ryan: Hello again, thank you for helping me out with Sonya!';
							} else {
								page1 = 'Ryan: Hello! How are you?';
							}
							doStartText();
						}
					}
				}
				if (Scenez.talk15.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					if (story == 291) {
						page1 = 'Lorn: Well met! I hope you enjoy reading because there is a lot to be done here!';
						page2 = 'Roy: Well met, felk! I seek a book about a special artifact. Do you have any books about the Tear of Neriah?';
						page3 = 'Lorn: The Tear of Neriah? That should be upstairs... I think.';
					} else {
						page1 = 'Lorn: Well met! I hope you enjoy reading because there is a lot to be done here! Maybe you will learn something new.';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Lorn: I love reading! But I have to say I\'m not a fan of Don\'s books. He\'s a writer who lives here in Bavelock who everyone worships like he is the best thing since sliced bread. I can slice some bread by myself, there\'s nothing special about it.';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Lorn: No I don\'t need any help.';
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk16.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (story == 291) {
						page1 = 'Donver: Hello I\'m a scholar at this library along with Lorn. There is much to read here, why don\'t you browse through our books!';
						page2 = 'Roy: Hello! Do you have any books about the Tear of Neriah?';
						page3 = 'Donver: That book should be upstairs if I am not mistaken.';
					} else {
						if (questreturnbook == 1 or questreturnbook == 6) {
							if (questreturnbook == 1) {
								page1 = 'Donver: Hello I\'m a scholar at this library along with Lorn. There is much to read here, why don\'t you browse through our books!';
							} else {
								if (guarduniform == false) {
									page1 = 'Donver: Hello again! Thank you for the help. I hope you enjoy the library.';
								} else {
									page1 = 'Donver: Hello, sir! I hope you enjoy the library.';
								}
							}
							page2 = 'ALT';
							if (currentpage == 1) {
								chathelp = true;
							}
							if (chat == true && currentpage == 2) {
								page2 = 'Donver: I stay here late at night and read as much as I can. The writer Domastir who lives in this very city, makes some great books.';
							} else {
								if (help == true) {
									if (currentpage == 2) {
										if (questreturnbook == 1) {
											page2 = 'Donver: I actually need some help with someone who loaned a book three months ago, and still hasn\'t returned it! His name is Landau, can you go to him and get it back for me?';
											page3 = 'ALT';
											yesno = true;
										} else {
											page2 = 'Donver: No you\'ve helped me enough, thank you!';
										}
									}
									if (choice == 1 && currentpage == 3) {
										page3 = 'Donver: Great! This certain someone is Landau, the prison warden. He should be sitting there, in the prison entrance. The book is called The Lord of The Rings.';
										questreturnbook = 2;
										questreturnbookX = numquests;
										newquest = 'Donver from the library wants me to make Landau return a book that he loaned. Landau is a warden at the Bavelock prison.';
										questname = 'The Lord of the Rings';
										addJournal();
									} else {
										if (choice == 2 && currentpage == 3) {
											page3 = 'Donver: Then maybe I will get to it myself.';
										}
									}
								}
							}
						} else {
							if (questreturnbook > 1 && questreturnbook < 6) {
								page1 = 'Donver: Do you have the book yet?';
								page2 = 'ALT';
								if (currentpage == 1) {
									yesno = true;
								}
								if (choice == 1) {
									if (questreturnbook == 5) {
										num = 2;
										if (numofchars > 1) {
											if (currentpage == 2) {
												corecaleb = true;
											}
											dialog = 2;
											page2 = 'Donver: Thank you! I\'ve been waiting for quite some time for this book to be returned! Here you go, thank you for helping. \r*You are given ' + num + ' Luck auras! Give ' + corename + ' or Caleb?';
											page3 = 'ALT';
										} else {
											page2 = 'Donver: Thank you! I\'ve been waiting for quite some time for this book to be returned! Here is the Pix I promised. \r*You got ' + num + ' Luck auras! ' + corename + '\'s Luck improved.';
											addingLuckCore();
											if (currentpage == 3) {
												questreturnbook = 6;
												delquest = questreturnbookX;
												delJournal();
												questreturnbookX = -1;
											}
										}
									} else {
										page2 = 'Donver: You don\'t seem to have it...';
									}
								} else {
									if (choice == 2) {
										page2 = 'Donver: Okay, I will wait.';
									}
								}
								if (dialog == 2) {
									if (currentpage == 3) {
										if (choice == 1) {
											addingLuckCore();
											page3 = '*You got ' + num + ' Luck auras! ' + corename + '\'s Luck improved.';
										} else {
											if (choice == 2) {
												addingLuckCaleb();
												page3 = '*You got ' + num + ' Luck auras! Caleb\'s Luck improved.';
											}
										}
										questreturnbook = 6;
										delquest = questreturnbookX;
										delJournal();
										questreturnbookX = -1;
									}
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk17.hitTest(Scenez.playerP1.coreblock) && (stand == 2 or stand == 4)) {
					if (questfindbook == 1) {
						page1 = 'Arthur: Be quiet in the library.';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true) {
							page2 = 'Arthur: I\'m looking for a book...';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									page2 = 'Arthur: I am looking for a book called Twilight, but I can\'t find it. Can you help me? I\'ll pay you a lot if you find it.';
									page3 = 'ALT';
									yesno = true;
								}
								if (choice == 1 && currentpage == 3) {
									page3 = 'Arthur: Much appreciated! Be sure to tell me if you find it!';
									questfindbook = 2;
									questfindbookX = numquests;
									newquest = 'Arthur wants me to find a book for him in the library, the book is called Twilight.';
									questname = 'Finding Twilight';
									addJournal();
								} else {
									if (choice == 2 && currentpage == 3) {
										page3 = 'Arthur: Fine then, I\'ll probably find it myself.';
									}
								}
							}
						}
					} else {
						if (questfindbook == 2 or questfindbook == 3) {
							page1 = 'Arthur: Have you found Twilight yet?';
							page2 = 'ALT';
							if (currentpage == 1) {
								yesno = true;
							}
							if (choice == 1 && currentpage == 2) {
								if (questfindbook == 3) {
									num = 1;
									page2 = 'Arthur: Great! Thank you, here is a potion for your help! I want you to have it.\r*You got ' + num + ' Elixir!';
									questfindbook = 4;
									addElixir();
									delquest = questfindbookX;
									delJournal();
									questfindbookX = -1;
								} else {
									page2 = 'Arthur: No you haven\'t...';
								}
							} else {
								if (choice == 2 && currentpage == 2) {
									page2 = 'Arthur: Alright, come back when you have found it.';
								}
							}
						} else {
							if (questfindbook == 4) {
								page1 = 'Arthur: Quiet, I\'m trying to read the book!';
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk18.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					if (questnewintown == 1) {
						page1 = 'Eromus: Greetings, are you new here in Bavelock too? I have been traveling far to get here. But I got lost here.. it is a big city!';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Eromus: I come from Aorna, and I just arrived. I\'m looking for my sister Alasbeth. But I realized I don\'t know where in Bavelock she lives!';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									page2 = 'Eromus: Can you help me find my sister? Her name is Alasbeth, she is supposed to live in Bavelock but I don\'t know where!';
									page3 = 'ALT';
									yesno = true;
								}
								if (choice == 1 && currentpage == 3) {
									page3 = 'Eromus: Thank you kind sir! If you find her, can you tell her I\'m here in the city, and then can you come back to me?';
									questnewintown = 2;
									questnewintownX = numquests;
									newquest = 'I met Eromus who just arrived in Bavelock and can\'t find his sister. If I find her, I should tell Eromus.';
									questname = 'New in town';
									addJournal();
								} else {
									if (choice == 2 && currentpage == 3) {
										page3 = 'Eromus: No worries. Hopefully I might find her myself.';
									}
								}
							}
						}
					} else {
						if (questnewintown == 2) {
							page1 = 'Eromus: Have you found her yet?';
						} else {
							if (questnewintown == 3) {
								page1 = 'Eromus: Hello again, have you found her yet?';
								page2 = 'ALT';
								if (currentpage == 1) {
									yesno = true;
								}
								if (choice == 1 && currentpage == 2) {
									page2 = 'Eromus: Great! Please take me to her!';
									questnewintown = 4;
									this['obj' + questnewintownX] = 'I have Eromus with me. He wants me to bring him to Alasbeth.';
								} else {
									if (choice == 2 && currentpage == 2) {
										page2 = 'Eromus: I see, please keep looking!';
									}
								}
							}
						}
					}
					if (currentpage == 3 && questnewintown == 4) {
						black.gotoAndPlay(2);
						Scenez.talk18._y = -900;
						Scenez.up_MC.arnir._y = -900;
						Scenez.b1.arnirblock._y = -900;
					}
					doStartText();
				}
				if (Scenez.talk19.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					page1 = 'Sky: Hey handsome! Looking for a good time?';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Sky: You new in town?';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Sky: I don\'t need anything, but thank you for offering help, you gentleman!';
						}
					}
					doStartText();
				}
				if (Scenez.talk20.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					page1 = 'Imrahis: What are you doing in my house?';
					page2 = 'ALT';
					if (imrahischat == 1) {
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							if (housegrade == 1) {
								page2 = 'Imrahis: I am reading a riddle book, if you are interested in riddles, come talk to me.';
							} else {
								page2 = 'Imrahis: You live next door? It\'s nice to have a neighbor I suppose. I am reading a riddle book, if you are interested in riddles come talk to me.';
							}
							imrahischat = 2;
						} else {
							if (help == true && currentpage == 2) {
								if (housegrade == 1) {
									page2 = 'Imrahis: Help? Why would I need any help?';
								} else {
									page2 = 'Imrahis: No thank you neighbor, I don\'t need anything.';
								}
							}
						}
					} else {
						if (imrahischat == 2) {
							if (currentpage == 1) {
								page1 = 'Imrahis: Do you want to hear a riddle?';
								page2 = 'ALT';
								yesno = true;
							}
							if (choice == 1) {
								if (currentpage == 2) {
									page3 = 'ALT';
									nobuttons = true;
									shop_MC.gotoAndStop(15);
									riddlez1 = 'Imrahis: Correct!';
									riddlez2 = 'Imrahis: Come back later if you want some more riddles.';
									if (riddles == 1) {
										page2 = 'Imrahis: At night it shows how bright it glows. At day it hides above the skies. Two answers at stake, which one will you take?';
										riddleanswer1 = 'star';
										riddleanswer2 = 'moon';
									} else {
										if (riddles == 2) {
											page2 = 'Imrahis: It grows and grows the more you take. But nothing it shows. It\'s nothing you make.';
											riddleanswer1 = 'hole';
										} else {
											if (riddles == 3) {
												page2 = 'Imrahis: Green and tall. Big and small. Armless it\'s not. They gather a lot.';
												riddleanswer1 = 'tree';
											} else {
												if (riddles == 4) {
													page2 = 'Imrahis: Bigger than earth. At night not found. Unseen at birth. High above ground.';
													riddleanswer1 = 'sun';
												} else {
													if (riddles == 5) {
														page2 = 'Imrahis: Holes in a row. In mud or snow. The more you are, twice more they grow.';
														riddleanswer1 = 'footstep';
														riddleanswer2 = 'foot step';
													} else {
														if (riddles == 6) {
															page2 = 'Imrahis: The maker makes it but doesn\'t use it. The buyer buys it but doesn\'t need it. The one who needs it never knows it.';
															riddleanswer1 = 'coffin';
														} else {
															if (riddles == 7) {
																page2 = 'Imrahis: One it is, fits on ten. In silver or gold.\rWorn by many, but icy cold.';
																riddleanswer1 = 'ring';
															} else {
																if (riddles == 8) {
																	page2 = 'Imrahis: Gives us life, takes our stress. Yet makes us weak, and makes us helpless.';
																	riddleanswer1 = 'sleep';
																}
															}
														}
													}
												}
											}
										}
									}
									++riddles;
									if (riddles == 9) {
										riddles = 1;
									}
								}
							} else {
								if (choice == 2) {
									page2 = 'Imrahis: Okay...';
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk21.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					if (collectibles == 0) {
						page1 = 'Suillus: Welcome! I am an avid flora and fauna expert. I collect mushrooms and butterflies, did you know that you can collect them also? Just stand near one and press E or Enter.';
						page2 = 'Suillus: If you come here with a mushroom or butterfly I will be happy to buy it!';
						doStartText();
					} else {
						if (shop_MC._currentframe == 1 && shopX == false) {
							page1 = 'Suillus: Welcome! If you happen to have any mushrooms or butterflies, I am interested in buying some!';
							doStartText();
						}
						if (currentpage == 2) {
							shop_MC.gotoAndStop(11);
						}
						if (shopX == true) {
							shopX = false;
						}
					}
				}
				if (Scenez.talk22.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (darconstory >= 20 && darconstory < 80) {
						page1 = 'Landau: I am busy...';
					} else {
						if (questreturnbook != 2) {
							page1 = 'Landau: This is the city prison, I\'m the warden Landau. What are you doing here?';
							page2 = 'ALT';
							if (currentpage == 1) {
								chathelp = true;
							}
							if (chat == true && currentpage == 2) {
								page2 = 'Landau: Unless you are turning yourself in, I don\'t see how you have any business here.';
							} else {
								if (help == true && currentpage == 2) {
									page2 = 'Landau: I don\'t need any help.';
								}
							}
						} else {
							if (questreturnbook == 2) {
								page1 = 'Roy: Hello, Donver from the library wants back the book The Lord of The Rings you loaned several months ago.';
								page2 = 'Landau: Yes the book... I don\'t have it anymore. I loaned it to Mell, he lives above the Windowmaker shop.';
								if (currentpage == 2) {
									questreturnbook = 3;
									this['obj' + questreturnbookX] = 'Donver wants me to bring him back a loaned book. Landau doesn\'t have it, he loaned it to Mell who lives above the Windowmaker shop.';
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk23.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					if (questwolf == 1) {
						page1 = 'Vahn: I\'m not supposed to talk to strangers...';
					} else {
						if (questwolf > 1) {
							page1 = 'Vahn: Hello...';
						}
					}
					doStartText();
				}
				if (Scenez.talk24.hitTest(Scenez.playerP1.coreblock) && stand == 4) {
					if (questwolf == 1) {
						page1 = 'Arl: Hello, I\'m Arl. Have you met my wife Grace? She works at the itemshop. And this here is my son Vahn!';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Arl: I\'m a hunter, but my boy Vahn has kept me much from hunting lately. But one day I will bring him along and teach him how to hunt properly!';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									if (questwolf == 1) {
										page2 = 'Arl: Actually... I would like to impress Grace when she comes home. I\'m a hunter but my child Vahn is keeping me at home.\rCould you kill a wolf and bring me the skin? I mean if it\'s not too much to ask. Of course I will pay for you this work. It just has to look like I did it!';
										page3 = 'ALT';
										yesno = true;
									} else {
										page2 = 'Arl: No, no, no I won\'t ask you to do anything else. I\'m grateful for what you have done already.';
									}
								}
								if (choice == 1 && currentpage == 3) {
									page3 = 'Arl: Thank you, what was your name... Thank you ' + corename + '! There are plenty of wolves in the forests, you might have come across one or two already I imagine.';
									questwolf = 2;
									questwolfX = numquests;
									newquest = 'Arl wants me to find him a wolf skin and bring it back. He is too busy with his kid to go hunting himself.';
									questname = 'Dancing with wolves';
									addJournal();
								} else {
									if (choice == 2 && currentpage == 3) {
										page3 = 'Arl: I understand.';
									}
								}
							}
						}
					} else {
						if (questwolf == 2) {
							page1 = 'Arl: Come back when you have killed a wolf.';
						} else {
							if (questwolf == 4) {
								goldnum = 20;
								page1 = 'Arl: Terrific! Thank you for this ' + corename + ', I realize this was a lot to ask. You must be a very skilled hunter, here is your reward. ' + '\n' + '*' + goldnum + ' Pix added';
								page2 = 'Arl: Can you be discrete about this whole affair?';
								questwolf = 5;
								addingGold();
								delquest = questwolfX;
								delJournal();
								questwolfX = -1;
							} else {
								if (questwolf == 5) {
									page1 = 'Arl: Hello ' + corename + ', how\'s it going?';
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk25.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (questbag == 1) {
						page1 = 'Mithrel: I am a bit afraid of going outside these days. There are so many bandits around!';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Mithrel: We felk inhabit almost every corner of Andora, side by side with humans and elves.';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									page2 = 'Mithrel: I actually need help getting back a bag of supplies that got stolen by a bandit when I was walking back to Bavelock after a visit to Savina. Can you find the bandit and bring me back the bag? I realize this is much to ask and I will give you a big reward!';
									page3 = 'ALT';
									yesno = true;
								}
								if (choice == 1 && currentpage == 3) {
									page3 = 'Mithrel: Thank you, you\'re a real help! The bandit should be somewhere outside Bavelock.';
									questbag = 2;
									questbagX = numquests;
									newquest = 'Mithrel got robbed and wants me to find the bandit and bring him back his stolen bag of supplies.';
									questname = 'Robbing a robber';
									addJournal();
								} else {
									if (choice == 2 && currentpage == 3) {
										page3 = 'Mithrel: Then I will just have to buy all those supplies again...';
									}
								}
							}
						}
					} else {
						if (questbag == 2 or questbag == 4) {
							page1 = 'Mithrel: Have you found the bandit yet?';
							page2 = 'ALT';
							if (currentpage == 1) {
								yesno = true;
							}
							if (choice == 1 && currentpage == 2) {
								if (questbag != 4) {
									page2 = 'Mithrel: You don\'t have it at all!';
								} else {
									if (questbag == 4) {
										num = 2;
										page2 = 'Mithrel: Thank you, thank you! I never thought I would see these again! Have these ' + num + ' potions, I don\'t need them right now. I hope that covers all the work you have done.' + '\n' + '*You got ' + num + ' Potions!';
										questbag = 5;
										addPotion();
										delquest = questbagX;
										delJournal();
										questbagX = -1;
									}
								}
							} else {
								if (choice == 2 && currentpage == 2) {
									page2 = 'Mithrel: Alright... I will be waiting.';
								}
							}
						} else {
							if (questbag == 5) {
								if (guarduniform == false) {
									page1 = 'Mithrel: Hello again ' + corename + '! I hope things are good with you!';
								} else {
									page1 = 'Mithrel: Greetings, sir! What.... what are you doing in my house?';
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk26.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (guarduniform == true) {
						page1 = 'Argas: Have we met before? You look familiar...';
						doStartText();
					} else {
						if (story == 80) {
							page1 = 'Argas: Who are you?';
							page2 = 'Roy: My name is ' + corename + '. I am a recent friend of Caleb, he suggested I should practice here.';
							page3 = 'Argas: Caleb sent you... is he in town?';
							page4 = 'Roy: He just arrived, he is here in town somewhere.';
							page5 = 'Argas: I didn\'t think he would return so soon.\rI am Argas, I own this building. And I am the greatest swordfighter in Andora! When you are in my gym, you abide by my rules.';
							page6 = 'Argas: A friend of Caleb is a friend of mine! His eyes might be lost but his mind has sharpened ever since. You can learn a thing or two from him.';
							page7 = 'Argas: Very few hold their swords steady against mine, and I have a hunch that you will not impress me. But if you want to fight, then let us fight.';
							if (currentpage == 8) {
								training = true;
								ename = 'Argas';
								doEnterBattle();
							}
							doStartText();
						} else {
							if (questbrock == 3) {
								page1 = 'Roy: Brock told me to show you this sword. He has been working on it for a long time and wanted you to have a look at it.';
								page2 = 'Argas: Is Brock still working on the sword? It looks tough, but the only way to truly know a swords might is to use it.';
								if (currentpage == 3) {
									training = true;
									changeSword2();
									ename = 'Argas';
									doEnterBattle();
								}
								doStartText();
							} else {
								if (story != 91 && shop_MC._currentframe == 1 && shopX == false) {
									page1 = 'Argas: Are you in need of combat training?';
									page2 = 'ALT';
									if (currentpage == 1) {
										yesno = true;
									}
									if (choice == 1 && currentpage == 2) {
										page2 = 'Quick Practice - Pay to instantly gain stats.\rPractice - Meet Argas in non-lethal practice combat.';
										practice = true;
									} else {
										if (choice == 2 && currentpage == 2) {
											page2 = 'Argas: Then what are you doing in here?';
										}
									}
									if (dialog == 2 && currentpage == 3) {
										training = true;
										character = 1;
										ename = 'Argas';
										doEnterBattle();
									}
									doStartText();
								}
							}
						}
					}
				}
				if (Scenez.talk27.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (questbrock == 1) {
						page1 = 'Jaden: Argas is a master swordsman, don\'t you agree?';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Jaden: I spend most of my time here training. Argas teaches me what he can but it\'s hard to keep up.';
						} else {
							if (help == true) {
								if (story > 80) {
									if (currentpage == 2) {
										page2 = 'Jaden: You want to help? There is one thing perhaps you can do. Brock the town\'s blacksmith has been busy lately, too busy to help his customers.\rCan you try to convince him to stop doing what he is doing?';
										page3 = 'ALT';
										yesno = true;
									}
									if (choice == 1 && currentpage == 3) {
										page3 = 'Jaden: Great! This is much appreciated. I\'ll see if I can give you some reward if you can handle it. Brock is just across the street.';
										questbrock = 2;
										questbrockX = numquests;
										Scenez.b1.storyblock1._y = 780;
										Scenez.b1.storyblock8._y = -900;
										newquest = 'Jaden wants me to talk to Brock, the blacksmith. I should ask him why he has lately been too busy to help his customers.';
										questname = 'Helping Jaden';
										addJournal();
									} else {
										if (choice == 2 && currentpage == 3) {
											page3 = 'Jaden: Maybe I can do it myself.';
										}
									}
								} else {
									page2 = 'Jaden: I have something for you to do, later.';
								}
							}
						}
					} else {
						if (questbrock == 2) {
							page1 = 'Jaden: Is Brock still working?';
						} else {
							if (questbrock == 3) {
								page1 = 'Jaden: Brock wants you to show Argas the sword? It looks tough, go show it to him.';
							} else {
								if (questbrock > 3 && questbrock <= 9) {
									page1 = 'Jaden: Is Brock still working?';
								} else {
									if (questbrock == 10) {
										goldnum = 25;
										page1 = 'Jaden: Brock is not busy anymore? Great! Thank you ' + corename + ', I realize this was a lot to ask a stranger. Here\'s a reward for your work, I hope this covers it!' + '\n' + '*' + goldnum + ' Pix added';
										questbrock = 11;
										addingGold();
										delquest = questbrockX;
										delJournal();
										questbrockX = -1;
									} else {
										if (questbrock >= 11) {
											page1 = 'Jaden: Hey ' + corename + '!';
											page2 = 'ALT';
											if (currentpage == 1) {
												chathelp = true;
											}
											if (chat == true && currentpage == 2) {
												page2 = 'Jaden: I spend most of my time here training. Argas teaches me what he can.';
											} else {
												if (help == true) {
													page2 = 'Jaden: No I don\'t need anymore help, I\'m good.';
												}
											}
										}
									}
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk28.hitTest(Scenez.playerP1.coreblock)) {
					page1 = 'Uareth: Don\'t disturb me.';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Uareth: You have to stay in shape you know! Especially if you want the ladies.';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Uareth: Don\'t need anything.';
						}
					}
					doStartText();
				}
				if (Scenez.talk29.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					page1 = 'Alveras: Did you hear about the Golden Demon?';
					page2 = 'Tanya: Yes I had heard that it killed some poor soul at the Ravenwake Gorge! What is this world coming to?';
					doStartText();
				}
				if (Scenez.talk30.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (questfindsword == 1) {
						page1 = 'Barl: I\'m always here when I\'m off duty as a city guard. But I can\'t find my sword to train with!';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Barl: Being a city guard is not easy. I once was ordered to settle down a bar fight in the Golden Apple inn. I got an arrow to the knee. I\'m still not sure how...';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									page2 = 'Barl: Yes I need help finding my sword. I believe it was stolen! Can you help me? I might pay you for this little job.';
									page3 = 'ALT';
									yesno = true;
								}
								if (choice == 1 && currentpage == 3) {
									page3 = 'Barl: Thank you! I have been searching all over Bavelock, but I couldn\'t find it! I know it must be somewhere inside the city walls, but I don\'t know where...';
									questfindsword = 2;
									questfindswordX = numquests;
									newquest = 'Barl wants me to find him his sword he lost. It should be somewhere in Bavelock.';
									questname = 'Lost sword';
									addJournal();
								} else {
									if (choice == 2 && currentpage == 3) {
										page3 = 'Barl: Fine, a city guard can take care of himself...';
									}
								}
							}
						}
					} else {
						if (questfindsword == 2 or questfindsword == 3) {
							page1 = 'Barl: Have you found the sword yet?';
							page2 = 'ALT';
							if (currentpage == 1) {
								yesno = true;
							}
							if (choice == 1) {
								if (questfindsword == 3) {
									if (currentpage == 2) {
										goldnum = 5;
										page2 = 'Barl: Thank you so much my friend! I have a suspicion that a fellow city guard did this as a prank. At least that\'s my theory.';
										page3 = 'Barl: I understand this was a lot to ask, so here is a reward for your work!\r*' + goldnum + ' Pix added';
										page4 = 'Barl: But I still want to know who it was who stole it! Could you perhaps go ask Mr Candyboot, the innkeeper at the Golden Apple inn? He usually knows about the goings ons in this city. If anyone knows about this theft, it\'s him!';
										addingGold();
										questfindsword = 4;
										this['obj' + questfindswordX] = 'Barl wants me to ask Mr Candyboot at the Golden Apple inn if he knows anything about the theft.';
									}
								} else {
									if (currentpage == 2) {
										page2 = 'Barl: Well, where is it?';
									}
								}
							} else {
								if (choice == 2 && currentpage == 2) {
									page2 = 'Barl: Keep looking please!';
								}
							}
						} else {
							if (questfindsword == 4 or questfindsword == 5) {
								page1 = 'Barl: Can you ask Mr Candyboot about the stolen sword? He knows a lot about the goings ons in this city.';
							} else {
								if (questfindsword == 6) {
									goldnum = 10;
									page1 = 'Barl: Edna did it? That mad woman! Why would she steal a sword and just leave on the ground like that? She is such a crazy woman. I will make sure she gets arrested.';
									page2 = 'Barl: Here is an additional payment for your work! I think you solved this mystery! Thank you, ' + corename + '.' + '\n' + '*' + goldnum + ' Pix added';
									if (currentpage == 3) {
										questfindsword = 7;
										delquest = questfindswordX;
										delJournal();
										questfindswordX = -1;
										addingGold();
										black.gotoAndPlay(2);
									}
								} else {
									if (questfindsword == 7) {
										page1 = 'Barl: Thank you for helping with the theft! Edna is now in prison for her deed.';
										page2 = 'ALT';
										if (currentpage == 1) {
											chathelp = true;
										}
										if (chat == true && currentpage == 2) {
											page2 = 'Barl: Being a city guard is not easy. I once was ordered to settle down a bar fight in the Golden Apple inn. I got an arrow to the knee. I\'m still not sure how...';
										} else {
											if (help == true && currentpage == 2) {
												page2 = 'Barl: No I don\'t need more help, you have done enough good sir!';
											}
										}
									}
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk31.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (questgamble == 1) {
						page1 = 'Odessa: Hi! Did you know you can gamble in Bavelock park over there? Be careful though or you lose a lot of money...';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Odessa: Have you ever dined at the Golden Apple? The food is great! Unfortunately there are a lot of drunks who sometimes fight there.';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									if (questgamble == 1) {
										page2 = 'Odessa: I don\'t need any help.\r... Well, there is one thing you could help with. I just lost a lot of money at the gambler in the park. Is there any chance you could win all of it back?';
										page3 = 'ALT';
										yesno = true;
									}
								} else {
									if (currentpage == 3) {
										if (choice == 1) {
											page3 = 'Odessa: Great! Look, I don\'t even want the money back, you keep the money you win. I just want him to suffer!';
											page4 = 'Odessa: Come back when you have won atleast 2 games in a row. I would love to see the look on his face when loses the money!';
											questgamble = 2;
											questgambleX = numquests;
											newquest = 'Odessa wants me to win two games in a row at the gambler in Bavelock park.';
											questname = 'Ace up my sleeve';
											addJournal();
										} else {
											page3 = 'Odessa: Fine, I will get the money back myself. Somehow...';
										}
									}
								}
							}
						}
					} else {
						if (questgamble >= 2 && questgamble <= 4) {
							page1 = 'Odessa: Hello again! Have you won atleast 2 games in a row at the gambler?';
						} else {
							if (questgamble == 5) {
								num = 1;
								page1 = 'Odessa: Wow, you really won 2 games in a row? I\'d love to see the look on his face! Thank you for doing this.';
								page2 = 'Odessa: Here is a little reward for what you did. I hope it is enough!\r*You got ' + num + ' Potion!';
								if (currentpage == 2) {
									questgamble = 6;
									addPotion();
									delquest = questgambleX;
									delJournal();
									questgambleX = -1;
								}
							} else {
								if (questgamble == 6) {
									page1 = 'Odessa: Hi again! How are things with you?';
									page2 = 'ALT';
									if (currentpage == 1) {
										chathelp = true;
									}
									if (chat == true) {
										page2 = 'Odessa: Have you ever dined at the Golden Apple? The food is great! Unfortunately there are a lot of drunks who sometimes fight there.';
									} else {
										if (help == true) {
											page2 = 'Odessa: No no no, you have done enough for me already! I do no need more help.';
										}
									}
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk32.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					if (questink >= 3 && questink <= 5) {
						if (currentpage == 1) {
							page1 = 'Padamus: Hello, I am a windowmaker! I\'m new here in Bavelock, so I\'ll do your work for free... but be sure to tell others about me and my services in return!';
							page2 = 'Roy: I am not here for your windows or whatever, I need to buy ink. You bought the last ink from Grace.';
							page3 = 'Padamus: I am not selling it, I\'m sorry.';
							page4 = 'Roy: Please, I need it. I am buying it for the famous Domastir the writer. Do you know of him?';
							page5 = 'Padamus: Do I know of him? Do I know him, I am his biggest fan! I love his story The return of the Thing, I have read it atleast a hundred times!\rTell you what, if you can solve a riddle I might give the ink to you.';
							page6 = 'Padamus: I know Domastir himself likes riddles. So here is one for the ink you need.\rLife it devours, forest, grass or flowers.\rBut it can not be, without human hands. It\'s useful you see, but help it demands.';
							page7 = 'ALT';
							questink = 4;
						}
						if (currentpage == 6) {
							nobuttons = true;
							riddleanswer1 = 'fire';
							riddlez1 = 'Padamus: I can\'t believe it! You win, okay, here is the ink. But tell Domastir I said hello!';
							riddlez2 = 'Padamus: Fine. Come back later if you figure it out.';
							shop_MC.gotoAndStop(15);
						}
						if (currentpage == 7 && dialog == 2) {
							questink = 6;
							this['obj' + questinkX] = 'I have the ink Domastir wants. I should give it to him.';
						}
						doStartText();
					} else {
						if (shop_MC._currentframe == 1 && shopX == false) {
							page1 = 'Padamus: Hello, I am a windowmaker! I\'m new here in Bavelock, so I\'ll do your work for free... but be sure to tell others about me and my services in return!';
							doStartText();
						}
						if (currentpage == 2 && dialog == 1) {
							shop_MC.gotoAndStop(4);
						}
						if (shopX == true) {
							shopX = false;
						}
					}
				}
				if (Scenez.talk33.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					page1 = 'Gwas: Welcome to Silas\' Furniture Shop! I just help Silas make his furniture.';
					doStartText();
				}
				if (Scenez.talk34.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					page1 = 'Nim: Her music is like... music to my ears! Do you know what I mean?';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Nim: Are you listening to this? It\'s beautiful.';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Nim: Quiet, I want to listen to her!';
						}
					}
					doStartText();
				}
				if (Scenez.talk35.hitTest(Scenez.playerP1.coreblock) && stand == 1 && Scenez.up_MC.halvarth._visible == true) {
					if (questboar == 1) {
						page1 = 'Halvarth: Hello! Have you never seen a felk before? We are a common folk in Andora these days.';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Halvarth: That instrument Sonya has is amazing! And Sonya as well of course, how does she do that?';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									page2 = 'Halvarth: Yes, actually...\rYou see, I am supposed to be hunting boar for my family. But as you can see, I am busy listening to Sonya! Will you hunt and kill a boar for me? I\'ll pay much for this little quest.';
									page3 = 'ALT';
									yesno = true;
								}
								if (choice == 1 && currentpage == 3) {
									page3 = 'Halvarth: Thank you! I know I\'m being very lazy here but some days you just don\'t feel like doing anything, you know?';
									questboar = 2;
									questboarX = numquests;
									newquest = 'Halvarth wants me to get some boar meat for him.';
									questname = 'Hunting boar';
									addJournal();
								} else {
									if (choice == 2 && currentpage == 3) {
										page3 = 'Halvarth: Fine I\'ll do it later...';
									}
								}
							}
						}
					} else {
						if (questboar == 2 or questboar == 4) {
							page1 = 'Halvarth: Have you killed a boar yet?';
							page2 = 'ALT';
							if (currentpage == 1) {
								yesno = true;
							}
							if (choice == 1) {
								if (questboar == 4) {
									if (currentpage == 2) {
										goldnum = 25;
										page2 = 'Halvarth: Thank you, sir! I realize this was a lot to ask, so here is a reward for your work, I want you to have this!\r*' + goldnum + ' Pix added';
										addingGold();
										questboar = 5;
										delquest = questboarX;
										delJournal();
										questboarX = -1;
									}
								} else {
									if (questboar == 2) {
										page2 = 'Halvarth: You don\'t have one at all! Keep looking please.';
									}
								}
							} else {
								if (choice == 2 && currentpage == 2) {
									page2 = 'Halvarth: Oh, that\'s fine I don\'t mind waiting. Keep looking please.';
								}
							}
						} else {
							if (questboar == 5) {
								page1 = 'Halvarth: I am going home with the boar meat you caught for me... soon. Very soon. I just want to listen a little bit more.';
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk36.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (questshow == 1) {
						page1 = 'Cid: Do you like my magic? I was hoping for a bigger audience than this though...';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Cid: I have traveled to other cities showing off my magic and I get bigger crowds than this. The people of Bavelock are just never pleased with anything!';
						} else {
							if (help == true && currentpage == 2) {
								if (questshow == 1) {
									page2 = 'Cid: I could indeed use some help! I want more people to be aware of my show. I have some flyers ready here, could you go around town and put them up so people can see them? I will give you something in return.';
									page3 = 'ALT';
									yesno = true;
								}
							}
						}
						if (currentpage == 3) {
							if (choice == 1) {
								page3 = 'Cid: Oh thank you so much, sir! I hope it will work. Here are the flyers.';
								questshow = 2;
								questshowX = numquests;
								newquest = 'Cid the magician wants me to put up flyers around Bavelock about his show.';
								questname = 'Magician\'s audience';
								addJournal();
							} else {
								page3 = 'Cid: Fine then...';
							}
						}
					} else {
						if (questshow < 7) {
							page1 = 'Cid: Have you put up the flyers up yet? No one has showed up yet!';
						} else {
							if (questshow == 7) {
								page1 = 'Cid: Thank you for putting those flyers up! I think people are starting to learn about my show here! I feel you need some compensation for all that work.';
								page2 = 'ALT';
								num = 2;
								if (numofchars > 1) {
									if (currentpage == 2) {
										corecaleb = true;
									}
									page2 = 'Cid: Here you go, I want you to have this.\r*You are given ' + num + ' Magic auras! Give ' + corename + ' or Caleb?';
									page3 = 'ALT';
									if (currentpage == 3) {
										if (choice == 1) {
											addingMagicCore();
											page3 = '*You got ' + num + ' Magic auras! ' + corename + '\'s Magic improved.';
										} else {
											if (choice == 2) {
												addingMagicCaleb();
												page3 = '*You got ' + num + ' Magic auras! Caleb\'s Magic improved.';
											}
										}
									}
									if (currentpage == 4) {
										questshow = 8;
										delquest = questshowX;
										delJournal();
										questshowX = -1;
									}
								} else {
									page2 = 'Cid: Here you go, I want you to have this.\r*You got ' + num + ' Magic auras! ' + corename + '\'s Magic improved.';
									if (currentpage == 2) {
										addingMagicCore();
									}
									if (currentpage == 3) {
										questshow = 8;
										delquest = questshowX;
										delJournal();
										questshowX = -1;
									}
								}
							} else {
								if (questshow == 8) {
									page1 = 'Cid: So what do you think of my magic? Pretty good, huh?';
									page2 = 'ALT';
									if (currentpage == 1) {
										chathelp = true;
									}
									if (chat == true && currentpage == 2) {
										page2 = 'Cid: Next time I am going to Savina! There they truly appreciate a good magic show. People in Bavelock just aren\'t dazzled by this anymore.';
									} else {
										if (help == true && currentpage == 2) {
											page2 = 'Cid: No sir! You have done enough.';
										}
									}
								}
							}
						}
					}
					doStartText();
				}
				flyertext = 'Cid the Magnificent Magician is in town! See his amazing stunts and wonderous spells right next to the Bavelock gym. Come now and witness true magic!';
				if (Scenez.flyer1.hitTest(Scenez.actionblock) && stand == 3) {
					if (questshow == 2) {
						Scenez.up_MC.flyer1_MC._visible = true;
						questshow = 3;
						black.gotoAndPlay(2);
						if (sfxmute == false) {
							pageturn.start();
						}
					} else {
						if (questshow > 2) {
							page1 = flyertext;
							doStartText();
						}
					}
				}
				if (Scenez.flyer2.hitTest(Scenez.actionblock) && stand == 3) {
					if (questshow == 3) {
						Scenez.down_MC.flyer2_MC._visible = true;
						questshow = 4;
						black.gotoAndPlay(2);
						if (sfxmute == false) {
							pageturn.start();
						}
					} else {
						if (questshow > 3) {
							page1 = flyertext;
							doStartText();
						}
					}
				}
				if (Scenez.flyer3.hitTest(Scenez.actionblock) && stand == 3) {
					if (questshow == 4) {
						Scenez.up_MC.flyer3_MC._visible = true;
						questshow = 5;
						black.gotoAndPlay(2);
						if (sfxmute == false) {
							pageturn.start();
						}
					} else {
						if (questshow > 4) {
							page1 = flyertext;
							doStartText();
						}
					}
				}
				if (Scenez.flyer4.hitTest(Scenez.actionblock) && stand == 3) {
					if (questshow == 5) {
						Scenez.up_MC.flyer4_MC._visible = true;
						questshow = 6;
						black.gotoAndPlay(2);
						if (sfxmute == false) {
							pageturn.start();
						}
					} else {
						if (questshow > 5) {
							page1 = flyertext;
							doStartText();
						}
					}
				}
				if (Scenez.flyer5.hitTest(Scenez.actionblock) && stand == 3) {
					if (questshow == 6) {
						Scenez.up_MC.flyer5_MC._visible = true;
						questshow = 7;
						black.gotoAndPlay(2);
						if (sfxmute == false) {
							pageturn.start();
						}
						Scenez.up_MC.audience1._visible = true;
						Scenez.up_MC.audience2._visible = true;
						Scenez.b1.audienceblock1._y = 797;
						Scenez.b1.audienceblock2._y = 788;
						page1 = 'Roy: That\'s the last one!';
						doStartText();
					} else {
						if (questshow > 6) {
							page1 = flyertext;
							doStartText();
						}
					}
				}
				if (Scenez.talk37.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					if (guarduniform == true) {
						page1 = 'Luvannon: Do I know you?';
						doStartText();
					} else {
						if (questbrock == 7) {
							page1 = 'Luvannon: I am the summoner. If Argas wants to see a proper fight, I shall give one! No items will be allowed. Be careful though, for a summon can kill you if you are not careful.';
							doStartText();
							if (currentpage == 2) {
								questbrock = 8;
								schoice = 6;
								summon = true;
								changeSword2();
								doEnterBattle();
							}
						} else {
							if (firstthanator == true && firstthanatorX == false && currentpage == 1) {
								goldnum = 10;
								page1 = 'Roy: Luvannon, you said you were searching for samples of rare creatures so you could learn to summon them yourself. I have brought you samples of a Thanator.';
								page2 = 'Luvannon: You found a Thanator! One of the most majestic creatures in Andora, often found in caves. For your troubles, I have this small gift.\r*' + goldnum + ' Pix added';
								page3 = 'Luvannon: I can now summon Thanators for you.';
								doStartText();
								firstthanatorX = true;
								addingGold();
								dialog = 3;
							} else {
								if (firststalker == true && firststalkerX == false && currentpage == 1) {
									goldnum = 10;
									page1 = 'Roy: Luvannon, you said you were searching for samples of rare creatures so you could learn to summon them yourself. I have brought you samples of the rare Phantom Stalker.';
									page2 = 'Luvannon: A Phantom Stalker? I never knew there was one in Andora. For bringing me this discovery I must give you a reward!\r*' + goldnum + ' Pix added';
									page3 = 'Luvannon: I can now summon Phantom Stalkers for you.';
									doStartText();
									firststalkerX = true;
									addingGold();
									dialog = 3;
								} else {
									if (firstcarrion == true && firstcarrionX == false && currentpage == 1) {
										goldnum = 10;
										page1 = 'Roy: Luvannon, you said you were searching for samples of rare creatures so you could learn to summon them yourself. I have brought you samples of a Carrion Hound.';
										page2 = 'Luvannon: A Carrion Hound! It is one of the Demon\'s creations. For bringing me this, I have a small reward for you!\r*' + goldnum + ' Pix added';
										page3 = 'Luvannon: I can now summon Carrion Hounds for you.';
										doStartText();
										firstcarrionX = true;
										addingGold();
										dialog = 3;
									} else {
										if (firstgornak > 1 && firstgornakX == false && currentpage == 1) {
											goldnum = 10;
											page1 = 'Roy: Luvannon, you said you were searching for samples of rare creatures so you could learn to summon them yourself. I have brought you samples of a Gornak.';
											page2 = 'Luvannon: You found a Gornak! Gornak\'s are the most fascinating creatures in Andora if you ask me! For bringing me this, I want you to have this reward.\r*' + goldnum + ' Pix added';
											page3 = 'Luvannon: I can now summon Gornaks for you.';
											doStartText();
											firstgornakX = true;
											addingGold();
											dialog = 3;
										} else {
											if (firstghoul == true && firstghoulX == false && currentpage == 1) {
												goldnum = 10;
												page1 = 'Roy: Luvannon, you said you were searching for samples of rare creatures so you could learn to summon them yourself. I have brought you samples of a Ghoul.';
												page2 = 'Luvannon: You found a Ghoul! A necromanic abomination, but a fascinating creature for my purposes. For your troubles, I have this small reward.\r*' + goldnum + ' Pix added';
												page3 = 'Luvannon: I can now summon Ghouls for you.';
												doStartText();
												firstghoulX = true;
												addingGold();
												dialog = 3;
											} else {
												if (dialog == 2 && currentpage == 2) {
													if (choice == 1) {
														challenge = true;
														doEnterBattle();
													} else {
														page2 = 'Luvannon: Understandable. Come back if you get interested again though.';
													}
												} else {
													if (shop_MC._currentframe == 1 && shopX == false && currentpage == 1) {
														page1 = 'Luvannon: I am a summoner, I can summon any monster for you to practice on. No items are allowed. Be careful though, for a summon can kill you!';
														doStartText();
													}
													if (currentpage == 2 && dialog == 1) {
														if (summon or challenge == true) {
															summon = false;
															challenge = false;
														} else {
															shop_MC.gotoAndStop(8);
														}
													}
													if (shopX == true) {
														shopX = false;
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
				if (Scenez.talk38.hitTest(Scenez.playerP1.coreblock) && (story >= 300 && story <= 330)) {
					page1 = 'Guard: I love this place! You can always relax and take a quick pint here.';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Guard: I have heard that the Demon is moving towards Mogwai Mountains to the northeast. No way that I am joining the scouting troop up there!\rI\'m telling you, the Demon is death incarnate.';
						if (story == 300) {
							story = 310;
						}
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Guard: You could leave me alone with my drink.';
						}
					}
					doStartText();
				}
				if (Scenez.talk39.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Barga: Hello, I am Padamus\'s assistant and helper. I can change the reward text color if you wish me to.';
						doStartText();
					}
					if (currentpage == 2 && dialog == 1) {
						shop_MC.gotoAndStop(20);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.talk40.hitTest(Scenez.playerP1.coreblock)) {
					if (questsick == 1) {
						page1 = 'Meldanya: My poor boy Neville is sick... People are talking about the Grey Blood disease. They say that my son is infected. I am so worried for him.';
						page2 = 'ALT';
						dialog = 2;
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Meldanya: I don\'t know what to do! I need the poweder off the wings of a Red Pearl butterfly to heal my child. But I cannot leave his side and I do not know where to find one.';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									page2 = 'Meldanya: You want to help? You must be an angel from heaven, because I really do need help. Can you get me the wings of a Red Pearl butterfly to heal my son Coreb?';
									page3 = 'ALT';
									yesno = true;
								}
								if (choice == 1 && currentpage == 3) {
									page3 = 'Meldanya: Thank you so much! The powder of the wings should be able to heal Neville. The butterfly is quite rare, I wish you luck in finding one!';
									if (butterfly2 > 0) {
										questsick = 3;
									} else {
										questsick = 2;
									}
									questsickX = numquests;
									newquest = 'I need the wings of a Red Pearl butterfly to heal Neville in Bavelock.';
									questname = 'Curing the sick';
									addJournal();
								} else {
									if (choice == 2 && currentpage == 3) {
										page3 = 'Meldanya: I hope the sickness will recede by itself.';
									}
								}
							}
						}
					} else {
						if ((questsick == 2 or questsick == 3) && dialog == 1) {
							if (butterfly2 > 0) {
								goldnum = 20;
								page1 = 'Meldanya: Oh thank you sir! You truly are an angel sent from heaven! These Red Pearl butterfly wings will hopefully cure my son.';
								page2 = 'Meldanya: For your troubles I have here some money. Take it.\r*' + goldnum + ' Pix added';
								if (currentpage == 2) {
									questsick = 4;
									addingGold();
									--butterfly2;
									delquest = questsickX;
									delJournal();
									questsickX = -1;
								}
							} else {
								page1 = 'Meldanya: I am waiting for the Red Pearl wings! Please hurry!';
							}
						} else {
							if (questsick == 4) {
								if (guarduniform == false) {
									page1 = 'Meldanya: Hello again! My boy Neville is getting better. Your help really made a difference!';
								} else {
									page1 = 'Meldanya: Hello good sir. My boy here was sick, but is getting better.';
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk41.hitTest(Scenez.playerP1.coreblock) && stand == 3 && darconstory == 30) {
					page1 = 'Darcon: And what do you want? I have already told the others, it was a setup! I did not steal that gold!';
					page2 = 'Roy: I am not here to talk about any gold.\rI have heard that you know a secret way out of the city. A passageway.';
					page3 = 'Darcon: A passageway? What if I do know something about it? Why would I tell you about something like that?';
					page4 = 'Roy: Because... because I can get you out of here, Darcon. I have the power to get you out of this prison.';
					page5 = 'Darcon: Why would you do that for me? Who are you, I have not seen you here before. Is this a trick?';
					page6 = 'Roy: This is no trick, I am ' + corename + ' and I can get you out of this miserable place. You are out of other options as far as I know.';
					page7 = 'Darcon: I don\'t trust you.';
					page8 = 'Roy: I am breaking you out of this prison and you will show me the passageway. And you have no say in it.\rCaleb, help me.';
					page9 = 'Caleb: Go distract the guard, ' + corename + '. I will desintegrate the bars.';
					page10 = 'Darcon: What...? You are doing what to the bars?';
					page11 = 'Caleb: ' + corename + ', talk to the guard before he notices us.';
					doStartText();
					if (currentpage == 10) {
						darconstory = 31;
						Scenez.caleb._x = Scenez.playerP1._x;
						Scenez.caleb._y = Scenez.playerP1._y;
						Scenez.caleb._visible = true;
						Scenez.caleb.gotoAndStop(10);
						Scenez.b1.dstoryblock1._y = 680;
						Scenez.b1.dstoryblock2._y = 615;
						directions1 = 1;
						walking1X = true;
						walkingspeed1 = 2;
						walking1chars = new Array(Scenez.playerP1, Scenez.playerP2, Scenez.playershadow);
						walking = true;
						doCinematic();
					}
				}
				if (Scenez.talk42.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					page1 = 'Erik: Sorry. I know nothing.';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Erik: Do you want to live here with me?';
						page3 = 'ALT';
						yesno = true;
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Erik: I don\'t need any help, I can handle myself.';
						}
					}
					if (currentpage == 3) {
						if (choice == 1) {
							page3 = 'Roy: Yeah... no.';
						} else {
							page3 = 'Roy: Eh... no I don\'t think so.';
						}
					}
					doStartText();
				}
				if (Scenez.talk43.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					page1 = 'Orbo: What are you doing in here? This is my house!';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Orbo: I am Brock\'s apprentice. But apparently he doesn\'t want me at the smith today, and I don\'t know what to do for fun in this city! So here I am.';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Orbo: No, I don\'t need any help. Now get out, please.';
						}
					}
					doStartText();
				}
				if (Scenez.talk44.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					page1 = 'Vorlan: Death is coming for everyone and everything. We are all naked under the shadow of our impending doom.';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Vorlan: The Golden Demon is the angel of death. It will kill us all. It will burn the world down so it can rule over the ashes.';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Vorlan: You cannot help me. No one can.';
						}
					}
					doStartText();
				}
				if (Scenez.talk45.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					page1 = 'Nymeria: You look like an adventurer, have you ever seen a Thanator?';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Nymeria: They are huge monsters that dwell in caves! Or so I have heard.';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Nymeria: I don\'t need help, I can take care of myself!';
						}
					}
					doStartText();
				}
				if (Scenez.talk46.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					page1 = 'Godrick: Would you be interested in a haircut, good sir?';
					page2 = 'ALT';
					if (currentpage == 1) {
						yesno = true;
					}
					if (choice == 1 && currentpage == 2) {
						stand = 2;
						haircut = true;
						playerX = player._x;
						playerY = player._y;
						gotoAndStop('custom');
					} else {
						if (choice == 2 && currentpage == 2) {
							page2 = 'Godrick: You look good but you could use a trim, you know.';
						}
					}
					doStartText();
				}
				if (Scenez.talk47.hitTest(Scenez.playerP1.coreblock) && stand == 3 && questfindsword < 6) {
					if (questfindsword == 5) {
						page1 = 'Edna: Ahahahahaha! It\'s all so funny, don\'t you think? The demons who walk the streets, they devour all!';
						page2 = 'Roy: Demons? What are you talking about? I am here about a stolen sword. Mr Candyboot saw you with a sword yesterday.';
						page3 = 'Edna: Ohohoho! I used that sword to kill all the demons! Well, not all. I stole it from the armory, you see. No one was there, so the voices told me to take it, you see!';
						page4 = 'Roy: You are crazy, woman. I am telling Barl about you thievery.';
						if (currentpage == 4) {
							this['obj' + questfindswordX] = 'Edna is definitely the thief, she appears to be crazy. I should tell Barl about it right away.';
							questfindsword = 6;
						}
					} else {
						chance = random(5) + 1;
						if (chance == 1) {
							page1 = 'Edna: Ahahahahaha! Oh it\'s all so funny!';
						} else {
							if (chance == 2) {
								page1 = 'Edna: They are here! THEY ARE HERE!';
							} else {
								if (chance == 3) {
									page1 = 'Edna: Ooooh I don\'t like the look of you. No I do not!';
								} else {
									if (chance == 4) {
										page1 = 'Edna: Food? Do you have any food for the demons? Any food at all?';
									} else {
										if (chance == 5) {
											page1 = 'Edna: Behind you! Behind you they lurk! They are here!';
										}
									}
								}
							}
						}
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Edna: Some call me crazy. I am not the one who is crazy! You are! You all are!';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Edna: NO! No one can help me.';
							}
						}
					}
					doStartText();
				}
				if (questshow >= 7) {
					if (Scenez.talk48.hitTest(Scenez.playerP1.coreblock) && stand == 4) {
						page1 = 'Gruss: I heard there was some sort of magician here, so I came and saw if it was worth checking out.';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Gruss: How does he do that? I have never understood magic.';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Gruss: I never need anyone else\'s help!';
							}
						}
						doStartText();
					}
					if (Scenez.talk49.hitTest(Scenez.playerP1.coreblock) && stand == 4) {
						page1 = 'Aiden: I saw those flyers this morning, it seemed exciting so I came to see him. I remain impressed!';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Aiden: Life is not about waiting for the storm to pass, but learning to dance in the rain! Know what I mean?';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Aiden: Why are you asking?';
							}
						}
						doStartText();
					}
				}
				if (Scenez.talk50.hitTest(Scenez.playerP1.coreblock) && stand == 3 && story >= 190) {
					if (questkidnap < 6) {
						if (text_MC.textz._currentframe > 1) {
							Scenez.down_MC.penelope.gotoAndStop(49);
						} else {
							if (Scenez.down_MC.penelope._currentframe == 49) {
								Scenez.down_MC.penelope.gotoAndPlay(1);
							}
						}
					}
					if (questkidnap == 1) {
						page1 = 'Penelope: My boy! My baby boy! He is gone, kidnapped!';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Penelope: I have nothing to say...';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Penelope: Oh please can you help me? My son has been kidnapped!';
								page3 = 'ALT';
								yesno = true;
							}
						}
						if (currentpage == 3 && help == true) {
							if (choice == 1) {
								page3 = 'Penelope: Oh thank you, thank you, sir! My boy just disapeared yesterday and I got a note that slid through the door today, saying that I must bring 3000 Pix to Blackwhisper cave.';
								questkidnap = 2;
								questkidnapX = numquests;
								newquest = 'Penelope in Bavelock has a son who got kidnapped. The bandit might be in Blackwhisper cave.';
								questname = 'Kidnapping';
								addJournal();
							} else {
								if (choice == 2) {
									page3 = 'Penelope: Oh, okay...';
								}
							}
						}
					} else {
						if (questkidnap == 2) {
							page1 = 'Penelope: My poor boy! Have you found my boy yet?';
						} else {
							if (questkidnap == 5) {
								goldnum = 20;
								page1 = 'Penelope: Amagus! My poor boy! Oh thank you so much! I have since we met learned your name, ' + corename + '. I am eternally grateful for this. Please, have this.' + '\n' + '*' + goldnum + ' Pix added';
								addingGold();
								questkidnap = 6;
								delquest = questkidnapX;
								delJournal();
								questkidnapX = -1;
								black.gotoAndPlay(2);
								Scenez.down_MC.penelope.gotoAndStop(50);
								Scenez.down_MC.amagus._visible = true;
								Scenez.b1.amagusblock._y = 155;
							} else {
								if (questkidnap >= 6) {
									page1 = 'Penelope: Oh thank you som much again, ' + corename + '! I don\'t know what I would do without you! Amagus is fine and safe because of you.';
									page2 = 'ALT';
									if (currentpage == 1) {
										chathelp = true;
									}
									if (chat == true && currentpage == 2) {
										page2 = 'Penelope: Amagus has been talking about his savior all day! I think you have a new fan.';
									} else {
										if (help == true && currentpage == 2) {
											page2 = 'Penelope: You have done more than enough for me.';
										}
									}
								}
							}
						}
					}
					doStartText();
				}
				if (questkidnap >= 6) {
					if (Scenez.talk51.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
						page1 = 'Amagus: My hero! It is great to see you again!';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Amagus: Is there anything you can\'t do? I think you are the best warrior in the world!';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Amagus: You have aready helped me! Don\'t you remember, silly?';
							}
						}
						doStartText();
					}
				}
				if (Scenez.talkcanvas.hitTest(Scenez.playerP1.coreblock) && housepainting == true && canvas_MC._currentframe == 1) {
					page1 = 'Do you want to paint?';
					if (currentpage == 1) {
						yesno = true;
					}
					if (choice == 1 && currentpage == 2) {
						canvas_MC.gotoAndStop(2);
					}
					doStartText();
				}
				if ((Scenez.gymtalk1.hitTest(Scenez.playerP1.coreblock) or Scenez.gymtalk2.hitTest(Scenez.playerP1.coreblock)) && stand == 3 && darconstory == 11) {
					page1 = 'Roy: There is no armor in here.';
					doStartText();
				}
				if (Scenez.gymtalk3.hitTest(Scenez.playerP1.coreblock) && stand == 3 && darconstory == 11) {
					page1 = 'Roy: There is a set of armor in here!';
					page2 = 'Roy: I make this look good.\rNow I should be able to get past the guard at the prison.';
					mainquest = 'While wearing this armor I should be able to get past the guard at the prison so I can talk to Darcon.';
					doStartText();
					if (currentpage == 2) {
						guarduniform = true;
						Scenez.playerP1.gotoAndStop(17);
						Scenez.playerP2.gotoAndStop(17);
						Scenez.playerP1.gotoAndStop(12);
						Scenez.playerP2.gotoAndStop(12);
						black.gotoAndPlay(2);
						darconstory = 20;
					}
				}
				if (Scenez.guardtalk1.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Guard: Greetings citizen. Here is a bit of advice, if you ever see a Spitter, run away as fast as you can!\rDid you want directions?';
						doStartText();
					}
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						shop_MC.gotoAndStop(17);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.guardtalk2.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						if (story < 291) {
							page1 = 'Guard: This statue is Esseldir the Great! One of the many great warriors in Bavelock\'s history.\rDid you want directions?';
						} else {
							page1 = 'Guard: This statue is Esseldir the Great! One of the many great warriors in Bavelock\'s history. I personally think you might deserve your own statue after all you went through!\rDid you want directions?';
						}
						doStartText();
					}
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						shop_MC.gotoAndStop(17);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.guardtalk3.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Guard: The Golden Demon is on the move somewhere in Andora. We must be on our toes!\rDid you want directions?';
						doStartText();
					}
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						shop_MC.gotoAndStop(17);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.guardtalk4.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Guard: Hello, I haven\'t seen you before! Welcome to Bavelock!\rDid you want directions?';
						doStartText();
					}
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						shop_MC.gotoAndStop(17);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.guardtalk5.hitTest(Scenez.playerP1.coreblock) && stand == 4) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Guard: Have you heard? There have been sightings of the Golden Demon in Andora! We have to be vigilant.\rDid you want directions?';
						doStartText();
					}
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						shop_MC.gotoAndStop(17);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.guardtalk6.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Guard: I used to be an adventurer like you, then I took an arrow in the knee...\rDid you want directions?';
						doStartText();
					}
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						shop_MC.gotoAndStop(17);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.guardtalk7.hitTest(Scenez.playerP1.coreblock) && stand == 4) {
					if (darconstory == 30) {
						page1 = 'Guard: You may pass.';
						doStartText();
					} else {
						if (darconstory == 40) {
							page1 = 'Roy: You there!';
							page2 = 'Guard: What now?';
							page3 = 'Roy: You are not needed here anymore, I will take your place. You are dismissed, words from... the boss.';
							page4 = 'Guard: The boss? Fine, but are you covering my whole shift? It is the entire day.';
							page5 = 'Roy: Of course I will. Dismissed, soldier!';
							if (currentpage == 6) {
								black.gotoAndPlay(2);
								Scenez.houseup.guard._visible = false;
								Scenez.b1.dguard._y = -900;
								darconstory = 50;
							}
							doStartText();
						} else {
							if (darconstory < 30) {
								page1 = 'Guard: What business do you have here?';
								doStartText();
							}
						}
					}
				}
				if (Scenez.talkcaleb.hitTest(Scenez.playerP1.coreblock) && stand == 3 && (story == 100 or story == 101 or story == 110)) {
					if (story == 100) {
						page1 = 'Caleb: Greetings again ' + corename + '. I will be leaving in the morning heading to Savina city, east from here. There is a big market there.';
						page2 = 'Roy: But you just arrived in Bavelock! Why are you leaving so soon?';
						page3 = 'Caleb: I told you already I\'m a traveling merchant. There are a lot of people like me in Savina, looking for business.';
						page4 = 'Caleb: But I am considering bringing you with me. You have shown some impressive swordfighting skills in past battles. I could use an extra man on my journey, do you want to join me?';
						page5 = 'Roy: If I can be of any help, I will help. You are the only one in the entire world that I consider a friend right now.';
						page6 = 'Caleb: Maybe in Savina you will find some answers! There is bound to be someone who will recognize you from your past life.\rI will be leaving in the morning, I have already hired a room for myself. Are you ready to get a room for the night too?';
						page7 = 'ALT';
						doStartText();
						if (currentpage == 6) {
							yesno = true;
						}
						if (choice == 1 && currentpage == 7) {
							page7 = 'Caleb: I want to talk to you first, briefly.';
							page8 = 'ALT';
							stopAllSounds();
						} else {
							if (choice == 2 && currentpage == 7) {
								page7 = 'Caleb: Alright, come back when you\'re ready to stay the night.';
								story = 101;
								dialog = 2;
							}
						}
						if (choice == 1 && dialog == 1 && currentpage == 8) {
							story = 102;
							mainquest = 'Caleb and I are heading to a marketplace in Savina.';
							Scenez.upX_MC.barsitters.gotoAndStop(2);
							black.gotoAndPlay(2);
							camXpoint = 0;
							camYpoint = 90;
							doCinematic();
							cinemacam = true;
							newmusic = 'awX';
							doMusic();
							Scenez.down_MC.caleb.gotoAndStop(1);
							Scenez.playerP1.gotoAndStop(17);
							Scenez.playerP2.gotoAndStop(17);
							Scenez.playershadow._visible = false;
							page8 = 'Caleb: You might have some questions about my appearance. I have always been able to sense the world around me with a sixth sense, which is how I see my surroundings. I lost my real eyes and right arm in battle. I tried to get my arm back... with black magic.';
							page9 = 'Caleb: And one does not delve into the black arts without consequences, in the past it has put me on the verge of death.';
							page10 = 'Caleb: My real eyesight was permanently lost, but I managed to create this artificial arm by concentrated magic. I have grown accustomed to its pain.';
							page11 = 'Roy: Incredible... So you are a black mage?';
							page12 = 'Caleb: I have left that behind me, I don\'t want to lose any more of my body and soul to the black arts. I fight only if attacked. I try to make a living off trading and teaching magic, instead.';
							page13 = 'Caleb: But there is something more important that you need to know. There have been sightings of the Golden Demon near the path that we are heading to.';
							page14 = 'Roy: The what? What is the Golden Demon?';
							page15 = 'Caleb: A wraith, a darkly clad sorcerer with a golden head. Or so I have heard.\rIt is evil and has magical powers beyond measure. I do not truly know what it is... but tales have been told of being birthed from hellfire.\rNobody knows where it came from, but it is very dangerous indeed.';
							page16 = 'Roy: Why are you telling me this? It\'s nothing you and I can\'t take care of, right?';
							page17 = 'Caleb: We pose no threat to the Demon. With my magic I might be able to protect myself, with some luck. I just need you to be aware of what grave danger it is to us. These are grim times we are living in, ' + corename + '...' + '\n' + 'But enough talking! We must rest, there is a lot to be done tomorrow!';
						}
					} else {
						if (story == 101) {
							page1 = 'Caleb: I\'ve already hired a room for myself. Are you ready to get a room for the night too?';
							page2 = 'ALT';
							doStartText();
							if (currentpage == 1) {
								yesno = true;
							}
							if (choice == 1 && currentpage == 2) {
								page2 = 'Caleb: I want to talk to you first.';
								page3 = 'ALT';
								stopAllSounds();
							} else {
								if (choice == 2 && currentpage == 2) {
									page2 = 'Caleb: Come back when you\'re ready to stay the night.';
								}
							}
							if (choice == 1 && currentpage == 3) {
								story = 102;
								dialog = 2;
								mainquest = 'Caleb and I are heading to a marketplace in Savina.';
								Scenez.upX_MC.barsitters.gotoAndStop(2);
								Scenez.b1.storyblock4._y = 420;
								black.gotoAndPlay(2);
								camXpoint = 0;
								camYpoint = 90;
								doCinematic();
								cinemacam = true;
								newmusic = 'awX';
								doMusic();
								Scenez.down_MC.caleb.gotoAndStop(1);
								Scenez.playerP1.gotoAndStop(17);
								Scenez.playerP2.gotoAndStop(17);
								Scenez.playershadow._visible = false;
								page3 = 'Caleb: You might have some questions about my appearance. I have always been able to sense the world around me with a sixth sense, which is how I see my surroundings. I lost my real eyes and right arm in battle. I tried to get my arm back... with black magic.';
								page4 = 'Caleb: And one does not delve into the black arts without consequences, in the past it has put me on the verge of death.';
								page5 = 'Caleb: My real eyesight was permanently lost, but I managed to create this artificial arm by concentrated magic.';
								page6 = 'Roy: Incredible... So you are a black mage?';
								page7 = 'Caleb: I have left that behind me, I don\'t want to lose any more of my body and soul to the black arts. I fight only if attacked. I try to make a living off trading instead.';
								page8 = 'Caleb: But there is something you need to know. There have been sightings of the Golden Demon near the path that we are heading to.';
								page9 = 'Roy: The what? What is the Golden Demon?';
								page10 = 'Caleb: A wraith, a darkly clad sorcerer with a golden head. Or so I have heard.\rIt is evil and has magical powers beyond measure. I do not truly know what it is... but tales have been told of being birthed from hellfire.\rNobody knows where it came from, but it is very dangerous.';
								page11 = 'Roy: Why are you telling me this? It\'s nothing you and I can\'t take care of, right?';
								page12 = 'Caleb: We pose no threat to the Demon. With my magic I might be able to protect myself, with some luck. I just need you to be aware of what danger it poses. These are grim times we are living in, ' + corename + '...' + '\n' + 'But enough talking! We must rest, there is a lot to be done tomorrow!';
							}
						} else {
							if (story == 110) {
								page1 = 'Roy: Hey.';
								page2 = 'Caleb: Are you ready, ' + corename + '?';
								page3 = 'Roy: Was it Navina we were going to?';
								page4 = 'Caleb: It\'s Savina, not Navina. We will have to go to the east to reach Savina. It is not far from here.';
								doStartText();
								if (currentpage == 5) {
									black.gotoAndPlay(2);
									Scenez.b1.storyblock2._y = -900;
									Scenez.b1.storyblock3._y = -900;
									Scenez.b1.storyblock4._y = -900;
									Scenez.b1.storyblock5._y = 110;
									Scenez.down_MC.caleb.gotoAndStop(1);
									calebX = true;
									++numofchars;
									story = 111;
									fame += 5;
								}
							}
						}
					}
				}
				if (story == 102 && (currentpage == 10 or currentpage == 5)) {
					Scenez.upX_MC.barsitters.caleb.gotoAndPlay(2);
				}
				if (story == 102 && (currentpage == 18 && dialog == 1 or currentpage == 13 && dialog == 2)) {
					playerX = 70;
					playerY = 45;
					stand = 4;
					Scenez.playerP1.gotoAndStop(12);
					Scenez.playerP2.gotoAndStop(12);
					Scenez.playershadow._visible = true;
					story = 110;
					cinematic = false;
					cinemacam = false;
					Scenez.upX_MC.barsitters.gotoAndStop(1);
					Scenez.b1.storyblock2._y = 295;
					areascreen = 24;
					doGotoGame();
					doSleep();
					doTextpage();
				}
				if (Scenez.booktalk1.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-The creation of Talas, our world | The birth of evil-\rIn the beginning there was nothing. Iluvatar the god of creation, created this world and placed 7 spirits to protect it. The world was perfect. Among the spirits was Anwe and Palas, the spirits that protected our souls.';
					page2 = 'Ilismoth was a god who hated Iluvatar\'s creation as he wished for the power to do the same. But Ilismoth knew that a god cannot destroy another god\'s creation, so in order to corrupt that which Iluvatar created he used his powers to pervert the essence of Palas, one of the spirits who protected our souls.';
					page3 = 'Ilismoth was cast out of the realm of the gods, but Palas remained on Ilismoth\'s side. This is how evil was born. Ilismoth used Palas to inject hate and illwill into our souls. We humans have two sides, one of goodness that is dominated by Anwe and one of darkness by the hands of Palas...';
					doStartText();
				}
				if (Scenez.booktalk2.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-The Elemental Spirits-\rThere are 6 spirits protecting the world. Evalon, the spirit of wind, Alluvia, spirit of water. Unath, spirit of fire, Magnori the spirit of mountains, Vande the spirit of the forests and Anwe the spirit of souls.';
					doStartText();
				}
				if (Scenez.booktalk3.hitTest(Scenez.actionblock)) {
					if (stand == 3) {
						page1 = '-The adventures of Ismael-\rIt was a cold, windy day. Ismael had wandered for four days in the Black Mountains, searching for his kidnapped daughter...';
						doStartText();
					} else {
						if (stand == 4) {
							page1 = '-A study in magic-\rTo perform a magic spell one must learn to lend the energy of the life around us. Energy is lent and will over time passively be put back in your surroundings. To misuse energy and lend too much can destroy your surroundings...';
							doStartText();
						}
					}
				}
				if (Scenez.booktalk4.hitTest(Scenez.actionblock)) {
					if (stand == 3) {
						page1 = '-The adventures of Ismael part 2-\rIt was a cold, windy day. Ismael had wandered for five days in the Black Mountains, searching for his kidnapped daughter... for even longer this time...';
						doStartText();
					} else {
						if (stand == 4) {
							page1 = '-The boy that lied-\rThere was once a boy who lived in Bavelock whom nobody came to trust...';
							doStartText();
						}
					}
				}
				if (Scenez.booktalk5.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-The Prophecied End of the World-\rWhen will the world end? Is this question folly, or a question that needs to be asked? I know it will end, soon enough because the signs are here. Is it the Golden Demon that will bring this world to its end? Will Anuriax consume the world...';
					doStartText();
				}
				if (Scenez.booktalk6.hitTest(Scenez.actionblock)) {
					if (stand == 3) {
						page1 = '-Learn to speak Methalas volume 1-\rThe tounge of Elves is one that few humans speak. Reading this two part series will help you to understand this beautiful, ancient language...';
						doStartText();
					} else {
						if (stand == 4) {
							page1 = '-Learn to fight with a sword!-\rTo fight with a sword takes skill and mastery of several techniques...';
							doStartText();
						}
					}
				}
				if (Scenez.booktalk7.hitTest(Scenez.actionblock)) {
					if (stand == 3) {
						page1 = '-Learn to speak Methalas volume 2-\rA normal greeting in Methalas would be \'IlÃ©men gimna, han derth le?\'. That is saying \'Hello, how are you?\'...';
						doStartText();
					} else {
						if (stand == 4) {
							page1 = '-The Pilgrim of Shadow-\rThere is a force in this world that might at one time consume the world. I talk about the shadowy creature known as the Pilgrim of Shadow. A demon also knows as Sinmorath, Sorathis or the Golden Demon...';
							doStartText();
						}
					}
				}
				if (Scenez.booktalk8.hitTest(Scenez.actionblock)) {
					if (stand == 3) {
						page1 = '-The Monster of Farron Woods-\r\'BLARGH\' said the monster...';
						doStartText();
					} else {
						if (stand == 4) {
							page1 = '-The Moon-\rIt has been told that the moon was created by a great wizard a thousand years ago, to imprison the fierce demon Glendronach...';
							doStartText();
						}
					}
				}
				if (Scenez.booktalk9.hitTest(Scenez.actionblock)) {
					if (stand == 3) {
						page1 = '-A Guide to Savina-\rIf you want to travel to Savina from Bavelock, first head south through the southern gate of Bavelock...';
						doStartText();
					} else {
						if (stand == 4) {
							page1 = '-Redemption of Heart-\rBella was in total shock, reality seemed like fiction. Her father was murdered, laying on the ground with blood flowing from his chest...';
							doStartText();
						}
					}
				}
				if (Scenez.booktalk10.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Goladros, the King of the Oceans-\rThere is a phantom of the depths known only as Goladros. It is said to be the son of a god who created the oceans...';
					doStartText();
				}
				if (Scenez.booktalk11.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-\'Studying Animals-\rAll people of Andora knows that it is rich with animals. But just take a closer look at them and you will see how beautiful they are, and studying their behavior is truly fascinating. The Razor Boar for example...';
					doStartText();
				}
				if (Scenez.booktalk12.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-The mysteries of the Undead-\rThe studies of Necromancy has long since been banned in Andora but there exists cults where this practice still lives...\r... It is known that Ghouls and the undead are vulnerable to black magic...';
					doStartText();
				}
				if (Scenez.booktalk13.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-The Chronicles of Esseldir the Great-\rA sword swung through the air and hit a troll in the head. The troll fell to the ground, instantly dead but a dozen more came seemingly from nowhere...';
					doStartText();
				}
				if (Scenez.booktalk14.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-The spectre of Death-\rDeath by many is considered a subject one should avoid talking about. But death is just a part of life, is it not? I would say it is. Anuriax is the god of death and decay who one should respect for he has the power over all life and death...';
					doStartText();
				}
				if (Scenez.booktalk15.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Numenari-\rThe Numenari were immortals who dwelled in the Mordin mountains, hunted by the gods themselves for herecy. But the spectre of death did not daunt them...';
					doStartText();
				}
				if (Scenez.booktalk16.hitTest(Scenez.actionblock)) {
					if (stand == 3) {
						page1 = '-\'Shattered Dreams\' by Victor Gavelinus-\rI don\'t know what I want, I don\'t have a clue\rI don\'t have any dreams because they aren\'t true';
						page2 = 'You can never expect what tomorrow will bring\rIt can come with great darkness or blossom like spring\rBut if you live in a dream you\'ll find you\'ll just grope\rBecause dreams are only false prophets of hope';
						doStartText();
						if (medalpoet1 == false) {
							medalpoet1 = true;
							othermedal = true;
							++numpoet;
							medaltext = 'You have found ' + numpoet + ' of 3 poems.';
							medal_MC.gotoAndPlay(2);
							doAutosave();
						}
						doMedalPoet();
					} else {
						if (stand == 4) {
							page1 = '-The Gornak and how to fight it-\rThe Gornak is a creature that are mostly found in caves and are completely made out of solid rock. It is a slow being, but hard and deadly. The origin of the species has been debated...';
							doStartText();
						}
					}
				}
				if (Scenez.booktalk17.hitTest(Scenez.actionblock)) {
					if (stand == 3) {
						page1 = '-A piece about Ashdod-\rAshdod is a haunted place southwest of Andora where the zombified remains of the Adros army roam the lands. The most cursed location is the Shadowtip tower...';
						doStartText();
					} else {
						if (stand == 4) {
							if (questfindbook == 2) {
								this['obj' + questfindbookX] = 'I found Arthur\'s book he was looking for. I should return it to him.';
								questfindbook = 3;
								page1 = '-The Twilight Saga-\rEdward Cullen looked into Mr.Swan\'s eyes and saw his inner emotional scars and his lust for a man and... stuff and gay fairy jokes and whatever...';
								page2 = 'Roy: This seems to be the book Arthur was looking for.\rI should bring it to him.';
								doStartText();
							} else {
								page1 = '-Ninat the Pixie-\rIn the Furlong Forest, there was one a pixie by the name Ninat. Ninat the Pixie...';
							}
							doStartText();
						}
					}
				}
				if (Scenez.booktalk18.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Tales of Blackworm II vol 1-\rGomorra Blackworm II was a king that ruled Andora during the second age. He was known to be a ruthless king and forcing vast taxes on the people...';
					doStartText();
				}
				if (Scenez.booktalk19.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-Tales of Blackworm II vol 2-\rDuring the end of Blackworm\'s reign, he got very ill by the Bloodsting disease, caused by the necromancer Nithis...';
					doStartText();
				}
				if (Scenez.booktalk20.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-The Soulcleaver-\rThere is rumored to be a sword by the name Soulcleaver, crafted by the Sundarmis tribe of the Numidium mountains. This sword is said to be infused by a soul of a mountain spirit and holds incredible power...';
					doStartText();
				}
				if (Scenez.booktalk21.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-Thanator: The beasts of Darkness-\rThe beast known as Thanator is a rare, massive monster known to live in caves. They are ancient creatures who have been in Andora for as long as we humans have lived here...';
					doStartText();
				}
				if (Scenez.booktalk22.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-The tales of Napoleon Dynamite the Great-\rNapoleon Dynamite was a great warlord of the third age, whose empire was vast...';
					doStartText();
				}
				if (Scenez.booktalk23.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-Gwendholin the She-Warrior of Westhold-\rGwendholin Stormhaven was a peasant who lived during the reign of Blackworm II. She was part of the people from Westhold who were oppressed by Blackworm and Gwendholin eventually came to be the leader of the rebellion...';
					doStartText();
				}
				if (Scenez.booktalk24.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Herbs and flowers-\rThere are many herbs and flowers in Andora with healing and rejuvinating powers. Especially the rare flora found in the Harth mountains...';
					doStartText();
				}
				if (Scenez.booktalk25.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-God\'s pain - by Victor Gavelinus-\rOh what will god say | When he sees this world\'s dismay\rLet\'s hope he casts away | The wicked ones who slay\rThe ones who do evil all day | Are the ones who will finally pay';
					page2 = 'When judgement is at bay | or atleast that\'s what we pray\rLet\'s hope he shows the way | To a world that is okay';
					doStartText();
					if (medalpoet3 == false) {
						medalpoet3 = true;
						othermedal = true;
						++numpoet;
						medaltext = 'You have found ' + numpoet + ' of 3 poems.';
						medal_MC.gotoAndPlay(2);
						doAutosave();
					}
					doMedalPoet();
				}
				if (Scenez.booktalk26.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Iluvatar the Mother of All-\rIluvatar is the goddess that created this world and put the spirit guardians in all living things to protect them from evil...';
					doStartText();
				}
				if (Scenez.booktalk27.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Common myths and legends-\rA great number of common myths around Andora are based on the ancient Hithlanian Gods such as the Behemoth of Skypeak mountain...';
					doStartText();
				}
				if (Scenez.booktalk28.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-Lord of the Thing-\rThere was once a thing that ruled over all other things. It started with the forging of the nine things. Three things were given to the elves who wander the forests. Three were given to the dwarves of the mountains...';
					doStartText();
				}
				if (Scenez.booktalk29.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-Flora and Fauna of Andora-\rSpider Caps have earned that name for being a prime nest for spiders to lay their eggs in. Many people have been unpleasantly surprised while collecting samples...';
					doStartText();
				}
				if (Scenez.booktalk30.hitTest(Scenez.actionblock) && stand == 3 or story == 292) {
					page1 = '-The fall of the Sundarmis-\rGenerations ago, the goddess Neriah looked upon the human race and its evil and selfishness and shed a tear that fell upon earth...';
					if (story == 291 or story == 292) {
						story = 292;
						doCinematic();
						page2 = 'Roy: This must be the book about the Tear of Neriah that I was looking for!';
						page3 = '150 years ago, the goddess Neriah looked upon the human race and its evil and selfishness and shed a tear that fell upon earth. It rested on the earth\'s surface for many a year and crystallized. It was found by the Sundarmis tribe of the mountains who knew how to harness the godlike power that was inside the crystal.';
						page4 = 'The Sundarmis became masterful magic wielders who gathered their power from the crystal that they placed upon the White Tower. They prospered and their kingdom grew strong. It grew too strong, and the tribe elder Aduviat was said to have challenged the gods.';
						page5 = 'The people were so empowered by the Tear of Neriah and its magic that they began to see themselves as among the gods.\rWhen Aduviat challenged the gods, the heavenly beings released their full wrath on the Sundarmis kingdom and crushed it to marble.';
						page6 = 'And the Tear of Neriah was shattered into four pieces and sent to the four courners of Andora. Many have searched for these shards, they are recognized as the most valuable and sought after artifacts in the world.';
						page7 = 'If all four are gathered and held by a Sundarmis-born it is said to cause an event where all the godlike force within is fused with the owner...';
						page8 = 'Roy: Do you understand this Caleb? This is unbelievable, we held two of the most powerful artifacts in Andora!';
						page9 = 'Caleb: I should have known, I should have known! But we cannot get them back! The Demon took them and we don\'t even know where it went afterwards.\rI fear now that the Demon has become the pillar on which the balance of the world stands.';
						page10 = 'Roy: We must escape the city and find the Demon. Caleb, you cannot waste your talent as a merchant, you are a mighty black mage! Help me fight the Demon! He must know something about who I am and what happened to me. If we find him, the crystals will be ours again.';
						page11 = 'Caleb: ' + corename + '... I percieve this world differently, and I can see the true quality a person when I look at him. And when I look at you I see courage and a will to do good. This is why I have stayed by your side these past few days.';
						page12 = 'Caleb: To get the crystals back we need a miracle. If you somehow get us outside the city walls, then you will have proven that you indeed can do the impossible.\rFind a way out of the city and I will follow you on your journey.';
						mainquest = 'I must find a way out of this city!';
						if (currentpage == 3 && black._currentframe == 1) {
							black2.gotoAndPlay(2);
							newmusic = 'awX';
							doMusic();
						}
						if (currentpage == 3) {
							if (playtear == false) {
								tear_MC.gotoAndPlay(2);
							}
						}
						if (currentpage == 4) {
							if (playtear == false) {
								tear_MC.gotoAndPlay('next1');
							}
						}
						if (currentpage == 5) {
							if (playtear == false) {
								tear_MC.gotoAndPlay('next2');
							}
						}
						if (currentpage == 6) {
							if (playtear == false) {
								tear_MC.gotoAndPlay('next3');
							}
						}
						if (currentpage == 7) {
							if (playtear == false) {
								tear_MC.gotoAndPlay('next4');
							}
						}
						if (currentpage == 8) {
							if (playtear == false) {
								tear_MC.gotoAndPlay('next5');
							}
							black2.gotoAndPlay(780);
							areascreen = 5;
							Scenez.gotoAndStop('bhouse2');
							Scenez.upX_MC.barsitters.gotoAndStop(6);
							playerX = -40;
							playerY = 75;
							Scenez.playerP1._x = -40;
							Scenez.playerP1._y = 75;
							Scenez.playerP2._x = -40;
							Scenez.playerP2._y = 75;
							Scenez.playerP1.gotoAndStop(17);
							Scenez.playerP2.gotoAndStop(17);
							Scenez.playershadow._visible = false;
							camXpoint = 0;
							camYpoint = 90;
							cinemacam = true;
							newmusic = 'imperial';
							doMusic();
						}
						if (currentpage == 13) {
							black.gotoAndPlay(2);
							story = 300;
							Scenez.upX_MC.barsitters.gotoAndStop(5);
							Scenez.playerP1.gotoAndStop(9);
							Scenez.playerP2.gotoAndStop(9);
							stand = 1;
							Scenez.playershadow._visible = true;
							cinematic = false;
							cinemacam = false;
						}
					}
					doStartText();
				}
				if (Scenez.booktalk31.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Suadras: The father of sorcery-\rSuadras is the mighty sorcerer from Tamaska who was known for his red skull-ridden robes and almighty magic power...';
					doStartText();
				}
				if (Scenez.booktalk32.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-Iron and steel-\rThe craftmanship of smithery is one that requires skill, an irongrip and an iron will...';
					doStartText();
				}
				if (Scenez.booktalk33.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-Thanator: The beasts of Darkness-\rThe beast known as Thanator is a rare, massive monster known to live in caves. They are ancient creatures who has been in Andora for as long as we humans have lived here...';
					doStartText();
				}
				if (Scenez.booktalk34.hitTest(Scenez.actionblock) && stand == 4) {
					page1 = '-Imladris the home of the Gods-\rThis book will teach you about the divine planes, the home of the Gods known as Imladris. It is always present, always there but never seen, nor heard, nor touched...';
					doStartText();
				}
				if (Scenez.booktalk35.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Architecture: by Nirth Silbenor-\rThe fine art of architecture is an ancient practice of planning and creating a structure. I, Nirth Silbenor will guide you through this book that will teach you the craft. Architecture was perfected by the ancient dwarves...';
					doStartText();
				}
				if (Scenez.booktalk36.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Iron and steel-\rThe craftmanship of smithery is one that requires skill, an irongrip and an iron will...';
					doStartText();
				}
				if (Scenez.statuetalk.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = 'Esseldir The Great. The hero who saved the city Bavelock in the War of Kings from the vast Aelas army of Tamaska.';
					doStartText();
				}
				if (Scenez.wardrobe.hitTest(Scenez.actionblock) && stand == 3 && housewardrobe == true) {
					page1 = 'Do you want to customize your character?';
					page2 = 'ALT';
					doStartText();
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						playerX = player._x;
						playerY = player._y;
						gotoAndStop('Custom');
					} else {
						if (currentpage == 2 && choice == 2) {
							page2 = 'Maybe later?';
						}
					}
				}
				if (Scenez.talkghost.hitTest(Scenez.playerP1.coreblock) && stand == 3 && story >= 323 && story <= 325) {
					if (dialog == 1) {
						if (currentpage == 1) {
							page1 = 'Roy: What do I have to do to get past?';
							page2 = 'Agga: Answer my riddle and I will leave you be.';
							page3 = 'Agga: Soundless it flies. It\'s faster than me. In darkness it dies. It\'s all we can see.\rWhat is it?';
							page4 = 'ALT';
						}
						if (currentpage == 3) {
							story = 324;
							nobuttons = true;
							shop_MC.gotoAndStop(15);
							riddlez1 = 'Agga: You have answered correctly. I will grant you passage.';
							riddlez2 = 'Agga: I will be waiting.';
							riddleanswer1 = 'light';
						}
					} else {
						if (currentpage == 5 && dialog == 2) {
							Scenez.down_MC.ghost_MC.gotoAndPlay(50);
							Scenez.b1.storyblock9._y = -900;
							story = 330;
						}
					}
					doStartText();
				}
				if (Scenez.shroom1.hitTest(Scenez.playerP1.coreblock)) {
					num = 17;
					doFoundCap();
				}
				if (Scenez.shroom2.hitTest(Scenez.playerP1.coreblock)) {
					num = 18;
					doFoundCap();
				}
				if (Scenez.shroom3.hitTest(Scenez.playerP1.coreblock)) {
					num = 19;
					doFoundFinger();
				}
				if (Scenez.shroom4.hitTest(Scenez.playerP1.coreblock)) {
					num = 20;
					doFoundCap();
				}
				if (Scenez.shroom5.hitTest(Scenez.playerP1.coreblock)) {
					num = 21;
					doFoundBlood();
				}
			};
		};
	}
	frame 1 {
		SavinaFunction = function () {
			if (story < 159 or story > 180) {
				newmusic = 'savinacity';
			}
			if (Scenez.anvilblock.hitTest(Scenez.soundblock)) {
				anvilloop = true;
			} else {
				anvilloop = false;
			}
			if (story == 146 && completedquests >= 3 && text_MC.textz._currentframe == 1) {
				mainquest = 'Me and Caleb should head to the market.';
				page1 = 'Caleb: I think it is time to visit the market, ' + corename + '.';
				doStartText();
				story = 150;
				Scenez.b1.storyblock5._y = -900;
				Scenez.b1.storyblock7._y = -900;
			}
			if (Scenez.b1.houselock1.hitTest(Scenez.actionblock) && housegrade2 == 1) {
				if (lock1X == false) {
					page1 = 'It\'s locked. There is a note saying the house is for sale.\r\'Meet me in the market to buy this house\'';
					notstopwalking = true;
					lock1X = true;
					doStartText();
				}
			} else {
				lock1X = false;
			}
			if (Scenez.b1.houselock2.hitTest(Scenez.actionblock) or Scenez.b1.houselock3.hitTest(Scenez.actionblock) or Scenez.b1.houselock4.hitTest(Scenez.actionblock) or Scenez.b1.houselock5.hitTest(Scenez.actionblock)) {
				if (lock2X == false) {
					if (Scenez.b1.houselock2.hitTest(Scenez.actionblock) && questpotion == 2) {
						page1 = 'It\'s locked. There must be another way in!';
						notstopwalking = true;
						lock2X = true;
						doStartText();
					} else {
						if (questpotion != 3) {
							page1 = 'It\'s locked.';
							notstopwalking = true;
							lock2X = true;
							doStartText();
						}
					}
				}
			} else {
				lock2X = false;
			}
			if (Scenez.b1.millblock.hitTest(Scenez.actionblock)) {
				if (questfriend == 2) {
					page1 = 'Mill: Who\'s there?';
					page2 = 'Roy: Are you Mill? Mike is looking for you!';
					page3 = 'Mill: I want to play with him but my father locked the door! He was angry... He threw the key in a nearby well!';
					page4 = 'Roy: Don\'t worry, I will get the key!';
					questfriend = 3;
					this['obj' + questfriendX] = 'Mill is locked in his room and the key is in a nearby well somewhere.';
					lockmX = true;
					doStartText();
					Scenez.playerP1.gotoAndStop(12);
					Scenez.playerP2.gotoAndStop(12);
				} else {
					if (lockmX == false) {
						page1 = 'It\'s locked.';
						notstopwalking = true;
						lockmX = true;
						doStartText();
					}
				}
			} else {
				lockmX = false;
			}
			if ((Scenez.b1.storyblock1.hitTest(Scenez.actionblock) or Scenez.b1.storyblock2.hitTest(Scenez.actionblock)) && story < 146) {
				if (lock3X == false) {
					page1 = 'Caleb: Not this way.';
					lock3X = true;
					doStartText();
				}
			} else {
				lock3X = false;
			}
			if (Scenez.b1.storyblock3.hitTest(Scenez.actionblock) && story >= 143 && story < 146) {
				if (lock4X == false) {
					page1 = 'Roy: Should stay the night first.';
					notstopwalking = true;
					lock4X = true;
					doStartText();
				}
			} else {
				lock4X = false;
			}
			if (Scenez.b1.storyblock5.hitTest(Scenez.actionblock) && story >= 151 && story < 160) {
				if (lock5X == false) {
					page1 = 'Roy: Shouldn\'t leave without Caleb.';
					notstopwalking = true;
					lock5X = true;
					doStartText();
				}
			} else {
				lock5X = false;
			}
			if (Scenez.b1.storyblock7.hitTest(Scenez.actionblock)) {
				if (lock6X == false) {
					if (story <= 150) {
						page1 = 'Caleb: Don\'t go in there yet!';
					} else {
						page1 = 'Caleb: Don\'t go in there yet. Complete atleast one more sidequest!';
					}
					notstopwalking = true;
					lock6X = true;
					doStartText();
				}
			} else {
				lock6X = false;
			}
			if (story == 158 or story == 159) {
				if (Scenez.patrick2._y >= -110 && Scenez.patrick2._y <= -105 && story == 158) {
					story = 159;
					directions1 = 2;
					Scenez.playerP1.gotoAndStop(12);
					Scenez.playerP2.gotoAndStop(12);
					stand = 4;
					page1 = 'Roy: Hey! He took the crystal! Catch him!';
					doStartText();
					newmusic = 'gen';
					doMusic();
				}
				if (Scenez.patrick2._x >= 130 && Scenez.patrick2._x <= 135 && walking1X == true) {
					directions1 = 4;
				}
				if (Scenez.patrick2._y >= -25 && Scenez.patrick2._y <= -20 && walking1X == true) {
					walking1X = false;
					Scenez.patrick2._visible = false;
					sound2.attachSound('doorclose');
					sound2.start();
				}
			}
			doActivatedText = function () {
				if (Scenez.smith.hitTest(Scenez.playerP1.coreblock) && Scenez.argamir._currentframe <= 51 && stand != 4 && shopX == false) {
					swordnum = Math.round(currentweapon / 7);
					goldnum = swordnum * 20;
					page1 = 'Argamir: Hey. Do you want your current sword ' + swordname + ' sharpened for ' + goldnum + ' Pix? Its damage will increase by ' + swordnum + '.';
					page2 = 'ALT';
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2) {
						if (choice == 1) {
							if (gold >= goldnum) {
								page2 = 'Argamir: Let me see it.';
							} else {
								page2 = 'Argamir: You don\'t have enough Pix. Please come back when you have enough.';
							}
						} else {
							if (choice == 2) {
								page2 = 'Argamir: I see. Do you want to add a status effect to your sword?';
								page3 = 'ALT';
								yesno = true;
								dialog = 2;
							}
						}
					}
					if (dialog == 2) {
						if (currentpage == 3) {
							if (choice == 1) {
								if (sword == 6) {
									page3 = 'Argamir: What is this? I cannot do anything with this sword, it is done with a material I have never seen.';
								} else {
									if (gold >= 25) {
										page3 = 'Argamir: This is what I can do. Choose one.';
										shop_MC.gotoAndStop(16);
									} else {
										page3 = 'Argamir: You don\'t have enough money, mate.';
									}
								}
							} else {
								if (choice == 2) {
									page3 = 'Argamir: Come back if you change your mind.';
								}
							}
						} else {
							if (currentpage == 4) {
								if (shopX == true) {
									shopX = false;
								}
							}
						}
					}
					if (currentpage == 3 && choice == 1 && gold >= goldnum && dialog != 2) {
						Scenez.argamir.gotoAndPlay(50);
					}
					doStartText();
				}
				if (Scenez.sleep.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					page1 = 'Do you want to sleep?';
					page2 = 'ALT';
					doStartText();
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						page2 = 'Goodnight!';
					} else {
						if (currentpage == 2 && choice == 2) {
							page2 = 'Maybe later.';
						}
					}
					if (currentpage == 3 && choice == 1) {
						doHomeSleep();
					}
				}
				if (story == 159 && currentpage == 2) {
					story = 160;
					Scenez.b1.storyblock4._y = -900;
					Scenez.b1.storyblock5._y = -900;
					Scenez.caleb._visible = false;
					cinematic = false;
				}
				if (Scenez.talk1.hitTest(Scenez.playerP1.coreblock) && stand == 2 && (questfriend <= 5 or questfriend >= 10)) {
					if (questfriend == 1) {
						page1 = 'Mike: Have you seen my friend?';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Mike: I am looking for my friend, Mill. I haven\'t seen him in days!';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									page2 = 'Mike: Can you please find Mill, my friend? I have been looking everywhere!';
									page3 = 'ALT';
									yesno = true;
								}
								if (choice == 1 && currentpage == 3) {
									page3 = 'Mike: Thank you! I think Mill must still be in Savina somewhere.';
									questfriend = 2;
									questfriendX = numquests;
									newquest = 'I met a little child, Mike, who is looking for his friend Mill. I offered to help finding him.';
									questname = 'Childplay';
									addJournal();
								} else {
									if (choice == 2 && currentpage == 3) {
										page3 = 'Mike: Okay...';
									}
								}
							}
						}
						doStartText();
					} else {
						if (questfriend >= 2 && questfriend <= 4) {
							page1 = 'Mike: Have you found Mill yet?';
							doStartText();
						} else {
							if (questfriend == 5) {
								page1 = 'Mill: Mike!';
								num = 1;
								if (numofchars > 1) {
									if (currentpage == 2) {
										corecaleb = true;
									}
									page2 = 'Mike: Mill there you are!\rThank you so much, sir! I have here an item I found once, please take it! It is all I have to repay you.\r*You are given ' + num + ' Defense aura! Give ' + corename + ' or Caleb?';
									page3 = 'ALT';
									page4 = 'Mill: Goodbye ' + corename + '!';
									if (currentpage == 3) {
										if (choice == 1) {
											addingDefenseCore();
											page3 = '*You got ' + num + ' Defense auras! ' + corename + '\'s Defense improved.';
										} else {
											if (choice == 2) {
												addingDefenseCaleb();
												page3 = '*You got ' + num + ' Defense auras! Caleb\'s Defense improved.';
											}
										}
									}
									if (currentpage == 4) {
										questfriend = 6;
										Scenez.b1.millblock2._y = -900;
										Scenez.down_MC.mike._visible = false;
										black.gotoAndPlay(2);
										delquest = questfriendX;
										delJournal();
										questfriendX = -1;
									}
								} else {
									page2 = 'Mike: Mill there you are!\rThank you so much, sir! I have here an item I found once, please take it! It is all I have to repay you.\r*You got ' + num + ' Defense auras! ' + corename + '\'s Defense improved.';
									page3 = 'Mill: Goodbye ' + corename + '!';
									addingDefenseCore();
									if (currentpage == 3) {
										questfriend = 6;
										Scenez.b1.millblock2._y = -900;
										Scenez.down_MC.mike._visible = false;
										black.gotoAndPlay(2);
										delquest = questfriendX;
										delJournal();
										questfriendX = -1;
									}
								}
								doStartText();
							} else {
								if (questfriend == 11) {
									page1 = 'Mike: Have you found Mill?';
									page2 = 'Roy: I found him but he\'s locked in his room by his father. I tried to get him out, but I could not. I am sorry.';
									page3 = 'Mike: Oh...';
									doStartText();
									questfriend = 12;
								} else {
									if (questfriend == 12) {
										page1 = 'Mike: I wonder who I can play with now. I never liked Mill\'s father, he has always been so strict.';
										doStartText();
									}
								}
							}
						}
					}
				}
				if (Scenez.talk2.hitTest(Scenez.playerP1.coreblock) && stand == 4 && questhorse <= 2) {
					if (questhorse == 1) {
						page1 = 'Clive: This guy is mesmerizing!';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Clive: How does he do that? I have never been any good with magic.';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Clive: No thanks... Must...stare...';
							}
						}
					} else {
						if (questhorse == 2) {
							page1 = 'Clive: Hey, have you seen this? This guy is mesmerizing!';
							page2 = 'Roy: Are you Clive?';
							page3 = 'Clive: Yes, why are you asking?';
							page4 = 'Roy: Kaede and your horse have been waiting for you!';
							page5 = 'Clive: Oh right! I forgot about that! Don\'t worry, I\'ll see them immediately!';
							if (currentpage == 6) {
								questhorse = 3;
								Scenez.up_MC.clive._visible = false;
								Scenez.b1.cliveblock._y = -900;
								black.gotoAndPlay(2);
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk3.hitTest(Scenez.playerP1.coreblock) && (stand == 1 or stand == 3)) {
					page1 = 'Aeron: Are you seeing this? This is amazing!';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Aeron: Hey, have you ever seen a Spitter? Nasty little creatures they are. They will spit poison at you that will slow you down.';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Aeron: I don\'t need anyone\'s help!';
						}
					}
					doStartText();
				}
				if (Scenez.talk3X.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (questdonovan <= 2) {
						page1 = 'Donovan: Hello, how are you doing? Welcome to the show!';
					} else {
						page1 = 'Donovan: Hello again! Welcome to the show.';
					}
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Donovan: This is something I was taught as a child! People seem to like it so I travel around, showing off my fire magic.';
					} else {
						if (help == true && currentpage == 2) {
							if (questdonovan == 1) {
								page2 = 'Donovan: There is something I need help with actually, but I am too busy right now to talk about it.';
								questdonovan = 2;
							} else {
								if (questdonovan == 2) {
									page2 = 'Donovan: There is something I need help with, but I already said I am too busy to talk about it.';
									questdonovan = 3;
								} else {
									if (questdonovan == 3) {
										page2 = 'Donovan: Yes but I\'m too busy to talk about it!';
										questdonovan = 4;
									} else {
										if (questdonovan == 4) {
											page2 = 'Donovan: I said I am busy! Go away!';
											questdonovan = 5;
										} else {
											if (questdonovan == 5) {
												goldnum = 5;
												page2 = 'Donovan: Go away! Here, you get 5 Pix if you promise to stop bothering me!\r*' + goldnum + ' Pix added';
												questdonovan = 6;
												addingGold();
											} else {
												if (questdonovan == 6) {
													page2 = 'Donovan: Just keep quiet and watch the show!';
												}
											}
										}
									}
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk4.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					page1 = 'Maeris: What are you doing here?';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Maeris: Did you meet any bandits on the way here? There are too many of them these days! Oh and do not get me started on Razor Boars! You do not want to get stung by one, I can tell you that.';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Maeris: I can handle myself.';
						}
					}
					doStartText();
				}
				if (Scenez.talk5.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (gambling_MC._currentframe == 1) {
						page1 = 'Porgel: Hey, are you interested in winning some money?';
						page2 = 'ALT';
						if (currentpage == 1) {
							yesno = true;
						}
						if (choice == 1 && currentpage == 2) {
							page2 = 'Porgel: If you bet ' + gambleprice + ' Pix you stand a chance of winning ' + gambleprice * 2 + ' Pix! Are you in?';
							page3 = 'ALT';
							yesno = true;
						} else {
							if (choice == 2 && currentpage == 2) {
								page2 = 'Porgel: Fine, but know that I\'ll always be here if you change your mind.';
							}
						}
						if (choice == 1) {
							if (currentpage == 3 && gold < gambleprice) {
								page3 = 'Porgel: You don\'t seem to have enough money.';
							} else {
								if (currentpage == 3 && gold >= gambleprice) {
									goldnum = gambleprice;
									removingGold();
									dialog = 2;
									page3 = 'Porgel: Let me see here...\r*' + goldnum + ' Pix removed';
								}
							}
							if (currentpage == 4 && dialog == 2) {
								gambling_MC.gotoAndPlay(2);
							}
						} else {
							if (choice == 2 && currentpage == 3) {
								page3 = 'Porgel: Know that I\'ll always be here if you change your mind.';
							}
						}
						doStartText();
					} else {
						if (chosenpos > 0) {
							if (currentpage == 2) {
								gambling_MC.gotoAndPlay('endX');
								chosenpos = 0;
							}
						}
					}
				}
				if (Scenez.talk6.hitTest(Scenez.playerP1.coreblock)) {
					if (stand == 1) {
						page1 = 'Griffith: Hey, what\'s going on? Have you seen those felk standing on the street? I just can\'t stop staring at their ears!';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							if (questfriend == 3) {
								page2 = 'Roy: Sure... did you see someone throwing a key down this well?';
								page3 = 'Griffith: Yeah, earlier today. I think his name is Griblook, that grumpy fellow. I saw him throw something down the well, and he looked angry.';
							} else {
								page2 = 'Griffith: I am telling you, those felken ears are the fluffiest things I have ever seen!';
							}
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Griffith: Can you help me get felk ears? If not, then there is nothing you can do.';
							}
						}
						doStartText();
					}
				}
				if (Scenez.talk6X.hitTest(Scenez.playerP1.coreblock) && stand == 3 && questfriend == 3) {
					page1 = 'Roy: Found a key! This must be the key to Mill\'s room that his father threw away.';
					questfriend = 4;
					this['obj' + questfriendX] = 'I found a key that must be the key to Mill\'s room.';
					Scenez.b1.millblock._y = -900;
					doStartText();
				}
				if (Scenez.talk7.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (founddouglas == 0) {
						doFoundDouglas();
						medalmeeting2 = true;
					} else {
						if (medalmeeting2 == false) {
							page1 = 'Douglas: So you found me again! Am I not hiding good enough?';
							page2 = 'Douglas: So yeah, you found me. You want a medal or something?';
							if (currentpage == 3) {
								++founddouglas;
								medalmeeting2 = true;
								medaltext = 'You have found Douglas ' + founddouglas + ' times of two.';
								othermedal = true;
								medal_MC.gotoAndPlay(2);
								doMedalMeeting();
							}
						} else {
							if (medalmeeting2 == true) {
								page1 = dpage[random(dpage.length)];
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk8.hitTest(Scenez.playerP1.coreblock) && stand == 3 && (story <= 140 or story >= 144)) {
					page1 = 'Vincent: Well met, traveler. Welcome to The Slumbering Dragon inn! Are you interested in a room for the night for 10 Pix?';
					page2 = 'ALT';
					if (currentpage == 1) {
						sleepchat = true;
					}
					if (currentpage == 2 && choice == 1) {
						doTaverntalkS();
						page2 = 'Vincent: ' + taverntalk;
					} else {
						if (currentpage == 2 && choice == 2) {
							if (gold >= 10) {
								page2 = 'Vincent: The room is upstairs, have a good night sleep sir.';
							} else {
								page2 = 'Vincent: You don\'t seem to have enough Pix, sir.';
							}
						}
					}
					if (story == 144 && gold < 10) {
						gold = 10;
					}
					if (currentpage == 3 && choice == 2 && gold >= 10) {
						playerX = -240;
						playerY = -190;
						stand = 4;
						areascreen = 47;
						goldnum = 10;
						removingGold();
						doGotoGame();
						doSleep();
					}
					doStartText();
				}
				if (Scenez.talk9.hitTest(Scenez.playerP1.coreblock)) {
					if (questthanator == 1) {
						page1 = 'Morgan: Who are you? You\'re not from around here are you?';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Morgan: Clax here is so full of shit. Just listen to him.';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									page2 = 'Morgan: I don\'t need any help. I can take care of myself. Can you, traveler?';
									page3 = 'Roy: Of course I can! I can kill any beast that comes my way.';
									page4 = 'Morgan: Hahaha! Is that so? Then I challenge you to bring me a Thanator tooth, lad. A Thanator is the biggest creature known in Andora, a monster that dwells deeply inside caves. Do you accept my challenge?';
									page5 = 'ALT';
								} else {
									if (currentpage == 4) {
										yesno = true;
									} else {
										if (currentpage == 5) {
											if (choice == 1) {
												page5 = 'Morgan: This will be interesting. Come back to me when you have a Thanator tooth.\rYou are either a fool or know something I do not...';
												questthanator = 2;
												questthanatorX = numquests;
												newquest = 'Morgan in Savina wants me to kill a rare creature, the Thanator. Usually found deep inside caves.';
												questname = 'Thanator tooth';
												addJournal();
											} else {
												if (choice == 2) {
													page5 = 'Morgan: I thought you had guts, son! Ha ha! I guess not!';
												}
											}
										}
									}
								}
							}
						}
					} else {
						if (questthanator == 2) {
							page1 = 'Morgan: Where is the thanator tooth? To find one, go deep inside a cave. Good luck staying alive if you meet one! Hahaha!';
						} else {
							if (questthanator == 4) {
								page1 = 'Morgan: I cannot believe it! A Thanator tooth! How is this possible?\rWhat is your name, great warrior?';
								page2 = 'Roy: The name is ' + corename + '.';
								page3 = 'Morgan: I do say ' + corename + '... For such a great feat, I feel like I have to reward you. I feel a big reward is in place!';
								page4 = 'Morgan: I have held on to this big pouch of cash for a long time. I think you deserve it!\r*' + goldnum + ' Pix added';
								if (currentpage == 3) {
									goldnum = 25;
									addingGold();
									questthanator = 5;
									delquest = questthanatorX;
									delJournal();
									questthanatorX = -1;
								}
							} else {
								if (questthanator == 5) {
									page1 = 'Morgan: Hey ' + corename + ', what is going on?';
									page2 = 'ALT';
									if (currentpage == 1) {
										chathelp = true;
									}
									if (chat == true && currentpage == 2) {
										page2 = 'Morgan: Clax here is so full of shit. Just listen to him!';
									} else {
										if (help == true && currentpage == 2) {
											page2 = 'Morgan: I don\'t need any more help, dude. Go help a damsel in distress or something.';
										}
									}
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk10.hitTest(Scenez.playerP1.coreblock)) {
					if (questthanator == 1) {
						page1 = 'Clax: Well met, stranger!\rI am from days of old where dragons flew free and the land was green! I have been around and seen my fair share of Andora!';
					} else {
						page1 = 'Clax: Well met, ' + corename + '!' + '\n' + 'I am from days of old where dragons flew free and the land was green! I have been around and seen my fair share of Andora!';
					}
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						doFantasyName();
						page2 = 'Clax: Have you ever seen the monsters at ' + fname + '? No?' + '\n' + 'Most people wouldn\'t survive such an encounter, but I sure did!';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Clax: I can take care of myself thank you very much!';
						}
					}
					doStartText();
				}
				if (Scenez.talk11.hitTest(Scenez.playerP1.coreblock) && (stand == 2 or stand == 3)) {
					if (questbbag == 1) {
						page1 = 'Durgol: The more I see of this world the more I wish I\'d seen less of it!';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Durgol: You want to chat? I don\'t think so, go away.';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									page2 = 'Durgol: I\'m angry that I forgot a bag of supplies back in Bavelock. Damn it!\rYou want to help? Could you get it for me? I hurt my leg and I can\'t get it myself. I might pay you if I\'m in the mood.';
									page3 = 'ALT';
									yesno = true;
								}
								if (choice == 1 && currentpage == 3) {
									page3 = 'Durgol: I think I forgot it in the Golden Apple inn. You know where that is, right? Thanks for doing this.';
									questbbag = 2;
									questbbagX = numquests;
									newquest = 'I met Durgol in Savina who forgot a bag in Bavelock. I offered to get it back for him.';
									questname = 'The Bavelock bag';
									addJournal();
								} else {
									if (choice == 2 && currentpage == 3) {
										page3 = 'Durgol: FINE! LIKE I CARE!';
									}
								}
							}
						}
					} else {
						if (questbbag == 2) {
							page1 = 'Durgol: Have you found the bag in Bavelock yet?';
						} else {
							if (questbbag == 3) {
								goldnum = 15;
								page1 = 'Durgol: You really got the bag? Wow I didn\'t even expect you to. But thank you! Of course I will pay you for this, it took a lot of time to do this I understand.\r*' + goldnum + ' Pix added';
								questbbag = 4;
								addingGold();
								delquest = questbbagX;
								delJournal();
								questbbagX = -1;
							} else {
								if (questbbag == 4) {
									page1 = 'Durgol: Hello again! How are things with ya? Thank you again for finding that bag!';
									page2 = 'ALT';
									if (currentpage == 1) {
										chathelp = true;
									}
									if (chat == true && currentpage == 2) {
										page2 = 'Durgol: The beer at the Crying Onion Inn in is much better than the beer in this place!';
									} else {
										if (help == true && currentpage == 2) {
											page2 = 'Durgol: Help? Again? No, you have done enough already.';
										}
									}
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk12.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (questfriend < 10) {
						page1 = 'Griblook: Well met stranger, what is your name? I am Griblook Bushmill, born under the star of Solitude!';
						page2 = 'Roy: Greetings, the name is ' + corename + '.';
						page3 = 'ALT';
						if (currentpage == 2) {
							chathelp = true;
						}
						if (chat == true && currentpage == 3) {
							page3 = 'Griblook: Formality is important, you know. And so is strict parenting!';
						} else {
							if (help == true && currentpage == 3) {
								page3 = 'Griblook: I do not require any assistance.';
							}
						}
					} else {
						page1 = 'Griblook: You should be ashamed of yourself! What were you doing with my son? Well one thing is sure, he is staying in his room for a long time. And you won\'t see him anymore!';
					}
					doStartText();
				}
				if (Scenez.talk13.hitTest(Scenez.playerP1.coreblock) && stand == 1 && questfriend == 4) {
					page1 = 'Mill: You found the key!';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Mill: My father says I should stay here. I stole a book from the market and he found out. He got very angry...';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Mill: Can you help me out?';
							page3 = 'ALT';
							yesno = true;
						}
					}
					if (choice == 1 && currentpage == 3) {
						page3 = 'Roy: Mike told me he was looking for you, he wants to play with you.';
						page4 = 'Mill: I have to get outside! I just need to get past my father.';
						page5 = 'Roy: You can hide in my cape! I will sneak you past him.';
						page6 = 'Do not go too near his father.';
					} else {
						if (choice == 2 && currentpage == 3) {
							page3 = 'Mill: Okay then...';
						}
					}
					if (currentpage == 6) {
						black.gotoAndPlay(2);
						Scenez.up_MC.mill._visible = false;
						Scenez.b1.millblockX._y = -900;
						questfriend = 5;
						this['obj' + questfriendX] = 'I found Mill and have snuck him outside the house.';
					}
					doStartText();
				}
				if (Scenez.talk14.hitTest(Scenez.playerP1.coreblock)) {
					page1 = 'Mog: Hello there...';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Mog: This book is great! The guy who wrote this, Domastir is a great writer! I think he lives in Bavelock, have you ever been there?';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Mog: Does it look like I need help?';
						}
					}
					doStartText();
				}
				if (Scenez.talk15.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					if (questitemhunter < 3) {
						page1 = 'Lupel: Greetings, friend.';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							if (housegrade2 == 1) {
								page2 = 'Lupel: I newly bought this house, I\'m originally from up north. I am quite well traveled if I do say so myself! Did you know that there is another house for sale in Savina?';
							} else {
								page2 = 'Lupel: I newly bought this house, I\'m originally from up north. I am quite well traveled if I do say so myself! You bought the other house that was for sale, right? I hope you like it.';
							}
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Lupel: You see, I am a big collector of rare items. I have quite a big collection and soon hope to open a museum. I will pay big for any rare, weird artifacts you find! If you ever find any rare items, you will come to me, yeah?';
								page3 = 'ALT';
								yesno = true;
							}
						}
						if (help == true && currentpage == 3) {
							if (choice == 1) {
								page3 = 'Lupel: Great! Just don\'t forget me whenever you find anything interesting!';
								if (questitemhunter == 1) {
									questitemhunterX = numquests;
									newquest = 'Lupel wanted me to sell him any rare artifacts that I find.';
									questname = 'Item hunter';
									addJournal();
								} else {
									this['obj' + questitemhunterX] = 'Lupel wants me to sell him any rare artifacts that I find.';
								}
								questitemhunter = 3;
								dialog = 2;
							} else {
								page3 = 'Lupel: Nevermind.';
							}
						}
					} else {
						if (questitemhunter == 3 && dialog == 1) {
							if (item26 == 2 or item27 == 2 or item28 == 2) {
								if (currentpage == 1) {
									++numr;
									this['page' + numr] = 'Roy: Lupel, I found something you might be interested in!';
									if (item26 == 2) {
										++numr;
										this['page' + numr] = 'Lupel: Let\'s see what you have.';
										++numr;
										goldnum = 30;
										this['page' + numr] = 'Lupel: Oh you found the Orb of Glenmorach? This is fantastic! This orb was thought to have magic powers, but it was revealed later to be a farce. Still, it is a historically significant item.\r*' + goldnum + ' Pix added';
										addingGold();
										this['page' + (numr + 1)] = 'ALT';
									}
									if (item27 == 2) {
										++numr;
										this['page' + numr] = 'Lupel: What is this?';
										++numr;
										goldnum = 35;
										this['page' + numr] = 'Lupel: This looks like... you know what I\'m not sure exactly what this item is but it looks like a design from Darnassus from the times of the High elves. For this discovery I will give you 35 Pix.\r*' + goldnum + ' Pix added';
										addingGold();
										this['page' + (numr + 1)] = 'ALT';
									}
									if (item28 == 2) {
										++numr;
										this['page' + numr] = 'Lupel: What did you bring me now?';
										++numr;
										goldnum = 40;
										this['page' + numr] = 'Lupel: I cannot believe you discovered the Shield of Belaphinor! This was used by the ancient Andorian king Belaphinor, who gave his life defending this country. Unfortunatelly though the shield could not save his life.';
										++numr;
										this['page' + numr] = 'Lupel: I thought it was forever lost. For this I will give you 40 Pix!\r*' + goldnum + ' Pix added';
										addingGold();
										this['page' + (numr + 1)] = 'ALT';
									}
								}
								if (currentpage == numr) {
									if (item26 == 2) {
										item26 = 3;
									}
									if (item27 == 2) {
										item27 = 3;
									}
									if (item28 == 2) {
										item28 = 3;
									}
									if (item26 == 3 && item27 == 3 && item28 == 3) {
										this['page' + (numr + 1)] = 'Lupel: I think that is all I can afford right now. You have been brilliant though, I appreciate all this help! You have done so much to help realizing my museum.';
										questitemhunter = 4;
										delquest = questitemhunterX;
										delJournal();
										questitemhunterX = -1;
									} else {
										this['obj' + questitemhunterX] = 'Lupel wants me to sell him any rare artifacts that I find.';
										this['page' + (numr + 1)] = 'Lupel: This is great, ' + corename + '. Come back if you find anything else.';
										doAutosave();
									}
									numr = 0;
								}
							} else {
								page1 = 'Lupel: Greetings again, friend! Have you found any rare items? Like I said, I am working on a museum to display my rare items in.';
								page2 = 'ALT';
								if (currentpage == 1) {
									chathelp = true;
								}
								if (chat == true && currentpage == 2) {
									if (housegrade2 == 1) {
										page2 = 'Lupel: I newly bought this house, I\'m originally from up north. I am quite well traveled if I do say so myself! Did you know that there is another house for sale in Savina?';
									} else {
										page2 = 'Lupel: I newly bought this house, I\'m originally from up north. I am quite well traveled if I do say so myself! You bought the other house that was for sale, right? I hope you like it.';
									}
								} else {
									if (help == true && currentpage == 2) {
										page2 = 'Lupel: I asked you already if you could bring me any rare artifacts. Remember, I will pay a hefty sum if you ever find anything!';
									}
								}
							}
						} else {
							if (questitemhunter == 4) {
								page1 = 'Lupel: Greetings again, friend! How have you been? Unfortunatelly the museum I was hoping to build and display my items in doesn\'t seem to happen any time soon!';
								page2 = 'ALT';
								if (currentpage == 1) {
									chathelp = true;
								}
								if (chat == true && currentpage == 2) {
									if (housegrade2 == 1) {
										page2 = 'Lupel: I newly bought this house, I\'m originally from up north. I am quite well traveled if I do say so myself! Did you know that there is another house for sale in Savina?';
									} else {
										page2 = 'Lupel: I newly bought this house, I\'m originally from up north. I am quite well traveled if I do say so myself! You bought the other house that was for sale, right? I hope you like it.';
									}
								} else {
									if (help == true && currentpage == 2) {
										page2 = 'Lupel: I don\'t need anything else.';
									}
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk16.hitTest(Scenez.playerP1.coreblock) && stand != 1 && canvas_MC._currentframe == 1) {
					if (housegrade2 == 1) {
						page1 = 'Bethana: Hello! I\'m sorry but I am busy painting. I hope to sell these later, a good painter in Andora can make a good living.';
					} else {
						page1 = 'Bethana: Hello neighbor! I\'m sorry but I am busy painting. I hope to sell these later, a good painter in Andora can make a good living.';
					}
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Bethana: I see you are still here. Do you want to paint too?';
						yesno = true;
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Bethana: No I don\'t need any help.';
						}
					}
					if (currentpage == 3) {
						if (choice == 1) {
							canvas_MC.gotoAndStop(2);
						}
					}
					doStartText();
				}
				if (Scenez.talk17.hitTest(Scenez.playerP1.coreblock) && stand == 4) {
					if (questpotion == 1) {
						page1 = 'Dilos: Are you an intruder or a friend?';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Dilos: Have you ever heard of a Thanator? It\'s a huge, rare creature that some mates at the Slumbering Dragon told me about. I would not want to meet one.';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Dilos: There might be one thing you could help me with... A woman in Savina is a scoundrel thief! I know she is! I\'m certain Bala stole one of my potions. Can you help me find it and take it back?';
								page3 = 'ALT';
								yesno = true;
							}
						}
						if (help == true && currentpage == 3) {
							if (choice == 1) {
								page3 = 'Dilos: Alright! She lives in the house next to us, north of the tavern. I have been to her house but I haven\'t found the potion! Maybe you will have better luck. She must stash her items somewhere!';
								questpotion = 2;
								questpotionX = numquests;
								newquest = 'Dilos asked me to return a potion that a neighbor stole from him. She lives in the house north of the Slumbering Dragon.';
								questname = 'Stolen potion';
								addJournal();
							} else {
								if (choice == 2) {
									page3 = 'Dilos: Alright then. But how am I going to get the potion back now?';
								}
							}
						}
					} else {
						if (questpotion == 2 or questpotion == 3) {
							page1 = 'Dilos: Have you found the potion yet? Remember, it\'s that damn Bala who lives in the house next to us.';
						} else {
							if (questpotion == 4) {
								goldnum = 10;
								page1 = 'Dilos: There it is! I cannot believe you found it! Thank you so much, here is a little payment for your work. Don\'t worry, next time I will catch her in the act if she tries to steal again!\r*' + goldnum + ' Pix added';
								questpotion = 5;
								addingGold();
								delquest = questpotionX;
								delJournal();
								questpotionX = -1;
							} else {
								if (questpotion == 5) {
									page1 = 'Dilos: Hello again! How are things?';
									page2 = 'ALT';
									if (currentpage == 1) {
										chathelp = true;
									}
									if (chat == true && currentpage == 2) {
										page2 = 'Dilos: Have you heard of the Thanator? It\'s a huge, rare creature that some mates at the Slumbering Dragon told me about. I would not want to meet one.';
									} else {
										if (help == true && currentpage == 2) {
											page2 = 'Dilos: You have done enough already!';
										}
									}
								}
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk18.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					page1 = 'Nea: Well met! How is your day?';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Nea: Have you seen Donovan\'s magic show? It\'s quite spectacular. I once tried to learn magic when I was younger, but I was never good with it.';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Nea: No I don\'t need any help, Dilos takes care of everything.';
						}
					}
					doStartText();
				}
				if (Scenez.talk19.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					page1 = 'Vick: What brings you to my humble abode?';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Vick: I originally come from Bellas. But I find that this city, Savina fits me more. I find it to be a smaller town, with nicer people! There is also a big felk community here.';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Vick: I don\'t need any help.';
						}
					}
					doStartText();
				}
				if (Scenez.talk20.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (questspitter == 1 or questspitter == 5) {
						doFantasyName();
						page1 = 'Vemus: Greetings, friend! How nice to see a traveler. I have always wanted to travel to foreign places too.\rBut currently I\'m too busy with my hobby of potion making, you see. Did you know that Moonfire Stalk mushrooms made great Elixir\'s?';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Vemus: Have you been to Bavelock? I have heard that it\'s a beautiful city, I hope I will see it soon. Is it true they have a statue of Esseldir the great in Bavelock?';
						} else {
							if (help == true && currentpage == 2) {
								if (questspitter == 5) {
									page2 = 'Vemus: No no, you have done enough! Thank you again for getting me Spitter poison!';
								} else {
									page2 = 'Vemus: Hmm... There is one thing I need help with. I have been looking for Spitter poison to use for an experiment. Would you find a Spitter and kill one for me? I am too busy to do it myself.';
									page3 = 'ALT';
									yesno = true;
								}
							} else {
								if (help == true && currentpage == 3) {
									if (choice == 1) {
										page3 = 'Vemus: Splendid! This is great! Now, Spitters are common in Blackwhisper cave. Go there, but be careful! Be really careful, for they will spit their poison at you!';
										questspitter = 2;
										questspitterX = numquests;
										newquest = 'Vemus in Savina asked me to kill a Spitter for its poison. They are common in Blackwhisper cave.';
										questname = 'Spitter spit';
										addJournal();
									} else {
										page3 = 'Vemus: Then I will have to find a Spitter myself one day.';
									}
								}
							}
						}
					} else {
						if (questspitter == 2) {
							page1 = 'Vemus: Greetings again, friend! I am quite busy. Have you found me the Spitter poison yet?';
						} else {
							if (questspitter == 4) {
								num = 2;
								page1 = 'Vemus: Greetings again, friend! This is splendid! Thank you so much for getting me this Spitter poison! Take this potion, I hope it is enough to repay you!\r*You got ' + num + ' Remedies!';
								questspitter = 5;
								addRemedy();
								delquest = questspitterX;
								delJournal();
								questspitterX = -1;
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk21.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					page1 = 'Evana: What are you doing in here?';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Evana: Vemus always talks about Bavelock. I am not as interested as he is in traveling. I have heard of Gornak\'s and other terrible creatures can find if you travel. I would not want to meet one of those myself.';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Evana: No I don\'t need any help.';
						}
					}
					doStartText();
				}
				if (Scenez.talk22.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					if (questpotion == 2 or questpotion == 3) {
						page1 = 'Bala: Potion? What potion are you talking about? I haven\'t stolen anything!';
					} else {
						page1 = 'Bala: Hello there! Are you a fellow fisher?';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Bala: During the days I\'m always alone, my husband is off fishing all the time. I think he is at Goldbrim bridge. We two love eating fish!';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Bala: No I don\'t need any help.';
							}
						}
					}
					doStartText();
				}
				if (Scenez.talk23.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Junath: For a coin I will play any song you like!\rGive coin?';
						page2 = 'ALT';
						doStartText();
						if (currentpage == 1) {
							yesno = true;
						}
						if (shopX == true) {
							shopX = false;
						}
					}
					if (currentpage == 2) {
						if (choice == 1 && gold > 0) {
							page2 = 'Junath: Thank you so much! \r*1 Pix coin removed';
							if (janucoins < 3) {
								fame += 1;
							}
							goldnum = 1;
							removingGold();
							++janucoins;
							dialog = 2;
						} else {
							if (choice == 1) {
								page2 = 'Junath: You don\'t even have one coin!';
							} else {
								if (choice == 2) {
									page2 = 'Junath: Okay, see you later.';
								}
							}
						}
					}
					if (currentpage == 3 && dialog == 2) {
						shop_MC.gotoAndStop(10);
					}
				}
				if (Scenez.talk24.hitTest(Scenez.playerP1.coreblock)) {
					page1 = 'Bellas: Me and Lupel met in Eldred. It was love at first sight!\rI know it\'s unusual to see a human and felk together, but love pulls us together!';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Bellas: We traveled a lot together, just us two! Now we have settled down in Savina, but only for a while. Lupel has plans for starting a museum showing off his collection of rare items.';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Bellas: If I ever need help, I ask Lupel.';
						}
					}
					doStartText();
				}
				if (Scenez.talk25.hitTest(Scenez.playerP1.coreblock) && story < 160) {
					page1 = 'Patrick: Hello...';
					doStartText();
				}
				if (Scenez.talk27.hitTest(Scenez.playerP1.coreblock) && stand == 2 && questhorse < 4) {
					if (horsequest == 1) {
						page1 = 'Kaede: I have to keep an eye on these horses, my master is in town.';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Kaede: This job is boring but atleast I have the horses to talk to...\rDid you know that Dolmeon horses are the fastest ones in the world?';
						} else {
							if (help == true && currentpage == 2) {
								page2 = 'Kaede: Don\'t need any help.';
							}
						}
						doStartText();
					}
					if (questhorse == 1) {
						page1 = 'Kaede: Gotta keep an eye on these horses!';
						page2 = 'ALT';
						if (currentpage == 1) {
							chathelp = true;
						}
						if (chat == true && currentpage == 2) {
							page2 = 'Kaede: This job is boring but atleast I have the horses to talk to...\rDid you know that Dolmeon horses are the fastest ones in the world?';
						} else {
							if (help == true) {
								if (currentpage == 2) {
									page2 = 'Kaede: Yes there is one thing you can do. Could you find the owner of this horse, Clive? I can\'t leave this horse alone and look by myself.';
									page3 = 'ALT';
									yesno = true;
								}
								if (choice == 1 && currentpage == 3) {
									page3 = 'Kaede: Thank you! I have no idea where he is. He has been gone for so long now. But he must be somewhere in Savina!';
									questhorse = 2;
									questhorseX = numquests;
									newquest = 'I met Kaede who wants me to look for Clive in Savina.';
									questname = 'Finding Clive';
									addJournal();
								} else {
									if (choice == 2 && currentpage == 3) {
										page3 = 'Kaede: Fine. I\'ll just chat with the horses some more...';
									}
								}
							}
						}
						doStartText();
					} else {
						if (questhorse == 2) {
							page1 = 'Kaede: Have you found Clive yet? Keep looking!';
							doStartText();
						} else {
							if (questhorse == 3) {
								goldnum = 10;
								page1 = 'Kaede: Thank you for this! Finally I have more than these horses to talk to. I feel I have to give you a little reward! Here you go.\r*' + goldnum + ' Pix added';
								page2 = 'Clive: Kaede, let\'s continue our journey. Goodbye, ' + corename + '.';
								if (currentpage == 3) {
									questhorse = 4;
									addingGold();
									Scenez.b1.horseblock1._y = -900;
									Scenez.b1.horseblock2._y = -900;
									Scenez.up_MC.horsez.gotoAndStop(1);
									black.gotoAndPlay(2);
									delquest = questhorseX;
									delJournal();
									questhorseX = -1;
								}
								doStartText();
							}
						}
					}
				}
				if (Scenez.grave1.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					page1 = 'R.I.P Imris Celeborn. Whose unwavering determination helped build and found the city of gold; Savina.';
					doStartText();
				}
				if (Scenez.grave2.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					page1 = 'R.I.P Maeth Celeborn. Whose undying love for Imris and the city helped build Savina.';
					doStartText();
				}
				if (Scenez.markettalk1.hitTest(Scenez.playerP1.coreblock) && stand == 4) {
					page1 = 'Gareth: I\'d rather watch Donovan outside do his magic but I\'m stuck here. Yeah... I sell candles. At very reasonable prices, I might add.';
					doStartText();
				}
				if (Scenez.markettalk1X.hitTest(Scenez.playerP1.coreblock)) {
					page1 = 'Marlanda: These smell really nice! I like candles.';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Marlanda: I want to light up the rooms in my house with some more candles!';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Marlanda: No... I don\'t need any help.';
						}
					}
					doStartText();
				}
				if (Scenez.markettalk2.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Felix: Hello good sir, are you interested in buying potions?';
						doStartText();
					}
					if (currentpage == 2) {
						shop_MC.gotoAndStop(2);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.markettalk3.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					page1 = 'Ora: Hello, all my jewelry is 10% off! The bargain of a lifetime!';
					doStartText();
				}
				if (Scenez.markettalk3X.hitTest(Scenez.playerP1.coreblock) && !Scenez.calebtalk.hitTest(Scenez.playerP1.coreblock)) {
					page1 = 'Melody: His jewelry is amazing, just look at that necklace!';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Melody: I come from Glendow and I just had to see if there was something here to my liking.';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Melody: I don\'t need anyone\'s help, thank you very much.';
						}
					}
					doStartText();
				}
				if (Scenez.markettalk4.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (collectibles == 0) {
						page1 = 'Thorl: Welcome! I am an avid flora and fauna expert. I collect mushrooms and butterflies, did you know that you can collect them also? Just stand near one and press E or Enter.';
						page2 = 'Thorl: If you come here with a mushroom or butterfly I will be happy to buy it!';
						doStartText();
					} else {
						if (shop_MC._currentframe == 1 && shopX == false) {
							page1 = 'Thorl: Welcome! If you happen to have any mushrooms or butterflies, I am interested in buying some!';
							doStartText();
						}
						if (currentpage == 2) {
							shop_MC.gotoAndStop(11);
						}
						if (shopX == true) {
							shopX = false;
						}
					}
				}
				if (Scenez.markettalk5.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					housefurniture = 15;
					if (housegrade2 == 1) {
						page1 = 'Devon: Good day, I sell books and stories of all kinds!\rI also sell a house in Savina, west of the city. Owning a house will give you several benefits. Are you interested in buying a house?';
						page2 = 'ALT';
						if (currentpage == 1) {
							yesno = true;
						}
						if (currentpage == 2 && choice == 1) {
							page2 = 'Devon: Great! It\'s a small but cozy property that lies west, just next to the building we are standing in. Buying a house will give you a free bed to sleep in at any time. Sleeping fills your health and mana!';
							page3 = 'It will be ' + houseprice + ' Pix, are you sure you want it? Of course you do, right?';
							page4 = 'ALT';
						} else {
							if (currentpage == 2 && choice == 2) {
								page2 = 'Devon: I see. Maybe you just need some time to think about it?';
							}
						}
						if (currentpage == 3 && choice == 1) {
							yesno = true;
						}
						if (currentpage == 4) {
							if (choice == 1) {
								if (gold >= houseprice) {
									page4 = 'Devon: You have made a good deal today, sir! Here is the key, I hope you enjoy your new property.\r*' + houseprice + ' Pix removed';
									housegrade2 = 2;
									Scenez.b1.houselock1._y = -900;
									black.gotoAndPlay(2);
									goldnum = houseprice;
									removingGold();
								} else {
									page4 = 'Devon: It seems you do not have enough money to buy the house.';
								}
							} else {
								page4 = 'Devon: Maybe you just need some time to think about it?';
							}
						}
					} else {
						if (housegrade2 == 2) {
							page1 = 'Devon: Hello, it is you again! How are things?';
							page2 = 'Devon: I have some extra furniture here for sale if you want to buy some for your house. It will really liven up your house, I promise you! It\'s only ' + housefurniture + ' Pix. Are you interested?';
							page3 = 'ALT';
							if (currentpage == 2) {
								yesno = true;
							}
							if (currentpage == 3 && choice == 1) {
								if (gold >= housefurniture) {
									page3 = 'Devon: Terrific, the furniture is yours! It\'s all moved into your house, don\'t worry about it.\r*' + housefurniture + ' Pix removed';
									black.gotoAndPlay(2);
									housegrade2 = 3;
									Scenez.b1.housegradeblock1._y = 305;
									Scenez.b1.housegradeblock2._y = 420;
									goldnum = housefurniture;
									removingGold();
								} else {
									page3 = 'Devon: You do not have enough money.';
								}
							} else {
								if (currentpage == 3 && choice == 2) {
									page3 = 'Devon: I see. Maybe you just need some time to think about it?';
								}
							}
						} else {
							if (housegrade2 >= 3) {
								page1 = 'Devon: Good day, I sell books and stories of all kinds! How do you like the house by the way?';
							}
						}
					}
					doStartText();
				}
				if (Scenez.markettalk6.hitTest(Scenez.playerP1.coreblock)) {
					page1 = 'Reo: I want to buy something, but I don\'t know what...';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Reo: This guy has some nifty things though!';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Reo: Why are you asking me that? Does it look like I need help?';
						}
					}
					doStartText();
				}
				if (Scenez.markettalk7.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					if (story < 152) {
						page1 = 'Leon: Are you still interested in some of my wares?';
					}
					if (story == 152) {
						page1 = 'Leon: Welcome everyone! I have rare items from around the world right here!';
						page2 = 'Roy: What is that?';
						page3 = 'Leon: This stone? I am not really sure what it is, but it some kind of mineral I have never seen before and it looks beautiful with all these markings on it...';
						page4 = 'Roy: What\'s happening to it?';
						page5 = 'Leon: What is this?';
						page6 = 'Leon: I don\'t know what this is, this has never happened before...';
						page7 = 'Roy: How much do you sell it for?';
						page8 = 'Leon: Um...\rI don\'t want to sell it right now. I want to study it. This is really bizarre, I have had this stone for nearly two months and it never glowed before.';
						page9 = 'Roy: I want to buy it!';
						page10 = 'Leon: I am not selling it, boy!';
						page11 = 'Roy: Fine. But are you willing to gamble for it? I see you have a shell game set. I will play my sword for that stone.';
						page12 = 'Leon: You are a very impulsive, boy.\rYour sword for this stone... Would you really take that risk? Okay, let\'s play.';
						doCinematic();
						LeonWin = function () {
							++three;
							chosenpos = 1;
							page1 = 'Leon: I cannot believe this! You won three times!';
							page2 = 'Roy: Now give me the crystal.';
							page3 = 'Leon: Fine, take it! It will probably kill you anyway, magic crystals are never stable nor safe.';
							page4 = 'Roy: Where did you find this? Tell me.';
							page5 = 'Leon: I bought it from someone up north... I have heard stories of another crystal just like it, lying somewhere in Blackwhisper Cave. Only a madman would look there, in fact I hope you do and die in there! Now go away!';
							doStartText();
							story = 154;
						};
						if (currentpage == 2) {
							Scenez.playerP1.gotoAndStop(19);
							Scenez.playerP2.gotoAndStop(19);
						}
						if (currentpage == 3) {
							Scenez.leon.gotoAndPlay(2);
						}
						if (currentpage == 4) {
							Scenez.leon.stone.gotoAndPlay(2);
							black.gotoAndPlay(240);
							if (sfxmute == false) {
								sound1.attachSound('ominous');
								sound1.start();
							}
							Scenez.playerP2.anm.gotoAndPlay(16);
						}
						if (currentpage == 5) {
							Scenez.leon.gotoAndPlay(50);
						}
						if (currentpage == 7) {
							Scenez.leon.gotoAndPlay(75);
						}
						if (currentpage == 13) {
							gambling_MC.gotoAndPlay(2);
							story = 153;
							fame += 5;
						}
					} else {
						if (story >= 155) {
							page1 = 'Leon: You again... Are you still interested in some of my wares?';
							page2 = 'ALT';
							if (currentpage == 1) {
								yesno = true;
							}
							if (choice == 1 && currentpage == 2) {
								page2 = 'Leon: I have more things here than just that rock I gave you.';
							} else {
								if (choice == 2 && currentpage == 2) {
									page2 = 'Leon: Then what are you doing here? Go away!';
								}
							}
						}
					}
					if ((coinpos == 1 && chosenpos == 1 or coinpos == 2 && chosenpos == 2 or coinpos == 3 && chosenpos == 3) && story == 153) {
						if (currentpage == 2) {
							gambling_MC.gotoAndPlay(40);
							black.gotoAndPlay(2);
						}
					} else {
						if (story == 154) {
							if (currentpage == 3) {
								Scenez.leon.stone.gotoAndStop(75);
							}
							if (currentpage == 6) {
								story = 155;
								cinematic = false;
								chosenpos = 0;
								Scenez.leon.gotoAndStop(1);
								doAutosave();
							}
						}
					}
					if (gambling_MC._currentframe == 1) {
						doStartText();
					}
				}
				if (Scenez.markettalk7X.hitTest(Scenez.playerP1.coreblock) && !Scenez.markettalk7.hitTest(Scenez.playerP1.coreblock)) {
					page1 = 'Sithrana: I want to buy some rare items.';
					page2 = 'ALT';
					if (currentpage == 1) {
						chathelp = true;
					}
					if (chat == true && currentpage == 2) {
						page2 = 'Sithrana: That ring looks really expensive for example. Interesting...';
					} else {
						if (help == true && currentpage == 2) {
							page2 = 'Sithrana: No I don\'t need any help, I\'m busy here.';
						}
					}
					doStartText();
				}
				if (Scenez.markettalk8.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					page1 = 'Claudius: Greetings, friend! You have a nice haircut indeed, but there is always room for improvement. Do you want a haircut?';
					page2 = 'ALT';
					if (currentpage == 1) {
						yesno = true;
					}
					if (choice == 1 && currentpage == 2) {
						stand = 2;
						haircut = true;
						playerX = player._x;
						playerY = player._y;
						gotoAndStop('custom');
					} else {
						if (choice == 2 && currentpage == 2) {
							page2 = 'Claudius: But I could make you look so much better!';
						}
					}
					doStartText();
				}
				if (Scenez.markettalk9.hitTest(Scenez.playerP1.coreblock) && stand == 4) {
					if (gotsword2 == false && questbrock > 10) {
						page1 = 'Doleos: Want to buy some weapons? I acquired this sword today by the blacksmith Brock from Bavelock. Are you interested in buying it, perhaps? You strike me as a swordfighter.';
						page2 = 'ALT';
						if (currentpage == 1) {
							yesno = true;
						}
						if (currentpage == 2 && choice == 1) {
							page2 = 'Doleos: Good, I\'m glad you found me! It\'s a great sword, really sharp and light as a feather! It\'s 35 Pix, do you still want it?';
							page3 = 'ALT';
							yesno = true;
						} else {
							if (currentpage == 2 && choice == 2) {
								page2 = 'Doleos: If you change your mind, come back and I\'ll see if I still have it.';
							}
						}
						if (currentpage == 3 && choice == 1 && gold >= 35) {
							goldnum = 35;
							page3 = 'Doleos: Great! It\'s yours. If you want to add a status effect to the sword, I can do so for a price. Or you can go to the town\'s blacksmith.\r*' + goldnum + ' Pix removed';
							page4 = 'You now have the sword Climhazzard in your arsenal, its damage is ' + weapon2 + '.';
							num = 2;
							addingSword();
							Scenez.up_MC.swordz._visible = false;
							removingGold();
						} else {
							if (currentpage == 3 && choice == 1 && gold < 45) {
								page3 = 'Doleos: You don\'t have enough money!';
							} else {
								if (currentpage == 3 && choice == 2) {
									page3 = 'Doleos: Maybe you just need some time to think about it?';
								}
							}
						}
						doStartText();
					} else {
						if (shopX == false) {
							page1 = 'Doleos: Weapons here! I have a variety of items here that you can kill people with, you see.\rOr do you want to add a status effect to your sword?';
							if (currentpage == 1) {
								yesno = true;
							}
							if (currentpage == 2) {
								if (choice == 1) {
									shop_MC.gotoAndStop(16);
								}
							} else {
								if (currentpage == 3) {
									if (shopX == true) {
										shopX = false;
									}
								}
							}
							doStartText();
						}
					}
				}
				if (Scenez.calebtalk.hitTest(Scenez.playerP1.coreblock) && story >= 150 && story < 160) {
					if (story >= 155 && story <= 157) {
						page1 = 'Caleb: ' + corename + ' I bargained myself a map of Andora. If we are going to travel a lot, a map could be useful.' + '\n' + 'You can view the map in your inventory. (Open inventory and view the map)';
						page2 = 'Hold the cursor over the dots to see the names of the cities.\rPress spacebar to close.';
						page3 = 'Roy: I managed to get this crystal. I don\'t even know if it was worth winning in a shell game gamble. But I somehow feel stronger when I have it near me.\rDo you know what it is?';
						page4 = 'Caleb: A very mysterious artifact indeed. I have never seen anything like it, but I can see that it holds some power within it. It must be valuable, where does it come from?';
						page5 = 'Roy: I have no idea, but there is supposed to be another one just like it in Blackwhisper cave. Do you know where that is?';
						page6 = 'Caleb: Yes we passed by Blackwhisper cave when we traveled here from Bavelock. The cave is worth a look, these could be sold for a lot on the black market.';
						page7 = 'Roy: Let\'s go to this cave.';
						doStartText();
						if (stand == 3) {
							Scenez.caleb.gotoAndStop(8);
						} else {
							Scenez.caleb.gotoAndStop(5);
						}
						mapz = true;
						mainquest = 'I got a magic crystal from a merchant. Caleb and I are heading towards Blackwhisper Cave to see if it\'s true that there is another crystal there.';
						if (currentpage == 1) {
							story = 156;
						}
						if (currentpage == 3 && stand == 2) {
							Scenez.playerP1.gotoAndStop(23);
							Scenez.playerP2.gotoAndStop(23);
						}
						if (currentpage == 8) {
							story = 158;
							directions1 = 4;
							walking1X = true;
							walkingspeed1 = 5;
							walking1chars = new Array(Scenez.patrick2);
							Scenez.patrick1._visible = false;
							Scenez.patrick2._visible = true;
							Scenez.b1.storyblock5._y = -900;
							Scenez.b1.storyblock2._y = 485;
							doCinematic();
						}
					} else {
						if (story < 155) {
							page1 = 'Caleb: I am looking for maps and other goods.';
							doStartText();
						}
					}
				}
				if (Scenez.wardrobe.hitTest(Scenez.actionblock) && stand == 3 && housegrade2 == 2) {
					page1 = 'Do you want to customize your character?';
					page2 = 'ALT';
					doStartText();
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						playerX = player._x;
						playerY = player._y;
						gotoAndStop('Custom');
					} else {
						if (currentpage == 2 && choice == 2) {
							page2 = 'Maybe later?';
						}
					}
				}
				if (Scenez.guardtalk1.hitTest(Scenez.playerP1.coreblock) && stand == 2) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Guard: We welcome foreigners, but I\'ll be watching you...\rDid you want directions?';
						doStartText();
					}
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						shop_MC.gotoAndStop(18);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.guardtalk2.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Guard: Did you know that Savina is one of the newest cities in Andora?\rDid you want directions?';
						doStartText();
					}
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						shop_MC.gotoAndStop(18);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.guardtalk3.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Guard: Is everything in order?\rDid you want directions?';
						doStartText();
					}
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						shop_MC.gotoAndStop(18);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.guardtalk4.hitTest(Scenez.playerP1.coreblock) && stand == 1) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Guard: Have you heard about the Nomorn caves? They are haunted by evil spirits, stay away from them.\rDid you want directions?';
						doStartText();
					}
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						shop_MC.gotoAndStop(18);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.guardtalk5.hitTest(Scenez.playerP1.coreblock) && stand == 3) {
					if (shop_MC._currentframe == 1 && shopX == false) {
						page1 = 'Guard: The Golden Demon is back! Did you know?\rDid you want directions?';
						doStartText();
					}
					if (currentpage == 1) {
						yesno = true;
					}
					if (currentpage == 2 && choice == 1) {
						shop_MC.gotoAndStop(18);
					}
					if (shopX == true) {
						shopX = false;
					}
				}
				if (Scenez.guardtalk6.hitTest(Scenez.playerP1.coreblock) && stand == 4 && story < 155) {
					page1 = 'Guard: Welcome. Do not steal anything!';
					doStartText();
				}
				if (Scenez.booktalk1.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Ale and all that which comes with it-\rEvery real man knows the good taste of a flagon of ale. This book will cover how to best brew and serve...';
					doStartText();
				}
				if (Scenez.booktalk2.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Education - by Grob Goodwill-\rEducation is one of the important pillars in life. An educated society is a prospering society that will keep its government in check...';
					doStartText();
				}
				if (Scenez.booktalk3.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Alone in the world - by Victor Gavelinus-\rLife is the cycle thatâ€™ll forever go on\rAnd it allows us to suffer till the last breath is drawn';
					page2 = 'But is a life worth living if you feel nothing but pain\rIf the tears of your eyes host an endless rain\rThe smile on your face is erased by sorrows\rAnd will remain undone for countless tomorrows';
					page3 = 'Ripping and tearing inside in your mind\rDriving you mad and make you go blind\rSoon you feel the chilling embrace\rOf the loneliness seeking the faceless face';
					page4 = 'Now you\'re left in the world to remain all alone\rOnly to live and survive on your own\rAnd in the absence of love and in the silence of fear\rThe meaning of life becomes absolute clear';
					page5 = 'Itâ€™s the only adventure where death is the key\rBecause only through darkness will you ever be free';
					doStartText();
					if (medalpoet2 == false) {
						medalpoet2 = true;
						othermedal = true;
						++numpoet;
						medaltext = 'You have found ' + numpoet + ' of 3 poems.';
						medal_MC.gotoAndPlay(2);
						doAutosave();
					}
					doMedalPoet();
				}
				if (Scenez.booktalk4.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-The founding of Savina-\rWhen gold was found at the now famous Goldbrim bridge, people flocked to the river and a massive camp was built. When it was evident that too many people came for their own share of the goldrush, a city was built to house them...';
					doStartText();
				}
				if (Scenez.booktalk5.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-Parenting - by Grob Goodwill-\rTo be a good parent is not to befriend your children, but to teach them. You must teach them about life but with determination and an iron fist...';
					doStartText();
				}
				if (Scenez.booktalk6.hitTest(Scenez.actionblock) && stand == 3) {
					page1 = '-At World\'s End - by Domastir-\rJack Sparrow and Will Turner was standing on the deck of the Black Pearl looking to the horizon while approaching the end of the world...';
					doStartText();
				}
				if (Scenez.shroom1.hitTest(Scenez.playerP1.coreblock)) {
					num = 44;
					doFoundFinger();
				}
				if (Scenez.shroom2.hitTest(Scenez.playerP1.coreblock)) {
					num = 45;
					doFoundCap();
				}
				if (Scenez.shroom3.hitTest(Scenez.playerP1.coreblock)) {
					num = 46;
					doFoundBlood();
				}
				if (Scenez.shroom4.hitTest(Scenez.playerP1.coreblock)) {
					num = 47;
					doFoundCap();
				}
				if (Scenez.shroom5.hitTest(Scenez.playerP1.coreblock)) {
					num = 48;
					doFoundCap();
				}
				if (Scenez.shroom6.hitTest(Scenez.playerP1.coreblock)) {
					num = 60;
					doFoundCap();
				}
				if (Scenez.shroom7.hitTest(Scenez.playerP1.coreblock)) {
					num = 67;
					doFoundBlood();
				}
				if (Scenez.shroom8.hitTest(Scenez.playerP1.coreblock)) {
					num = 68;
					doFoundBlood();
				}
				if (Scenez.shroom9.hitTest(Scenez.playerP1.coreblock)) {
					num = 69;
					doFoundBlood();
				}
				if (Scenez.shroom10.hitTest(Scenez.playerP1.coreblock)) {
					num = 70;
					doFoundBlood();
				}
			};
		};
	}
	frame 1 {
	}
	movieClip 1712	{
	}
	movieClip 1713	{
	}
	movieClip 1719	{
	}
	movieClip 1724	{
	}
	movieClip 1728	{
		frame 316 {
			stop();
		}
	}
	movieClip 1732	{
		frame 1 {
			if (_root.capeon == false) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 1737	{
	}
	movieClip 1744	{
	}
	movieClip 1748	{
	}
	movieClip 1749	{
	}
	movieClip 1750	{
	}
	movieClip 1753	{
		frame 1 {
			if (_root.maskz == 4 && _root.maskoff == false) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 1757	{
	}
	movieClip 1758	{
	}
	movieClip 1759	{
	}
	movieClip 1762	{
	}
	movieClip 1766	{
	}
	movieClip 1767	{
	}
	movieClip 1768	{
	}
	movieClip 1772	{
	}
	movieClip 1773	{
	}
	movieClip 1774	{
	}
	movieClip 1778	{
	}
	movieClip 1779	{
	}
	movieClip 1781	{
	}
	movieClip 1782	{
	}
	movieClip 1783	{
	}
	movieClip 1787	{
	}
	movieClip 1791	{
	}
	movieClip 1792	{
	}
	movieClip 1794	{
	}
	movieClip 1795	{
	}
	movieClip 1797	{
	}
	movieClip 1798	{
	}
	movieClip 1799	{
	}
	movieClip 1802	{
	}
	movieClip 1805	{
	}
	movieClip 1808	{
	}
	movieClip 1810	{
	}
	movieClip 1812	{
	}
	movieClip 1816	{
	}
	movieClip 1819	{
	}
	movieClip 1821	{
		frame 1 {
			if (_root.hair == undefined && this._name != 'hair') {
				gotoAndStop(1);
			} else {
				gotoAndStop(_root.hair);
			}
			if (this._name != 'bghair' && this._name != 'introhair') {
				_root.myColor = new Color(colorbase);
				_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
			}
		}
	}
	movieClip 1823	{
		frame 1 {
			if (_root.hair == 1 or _root.hair == undefined) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 1826	{
		frame 1 {
			if (_root.capeon == false) {
				cape._visible = false;
				cape_mask.gotoAndStop(2);
			}
		}
	}
	movieClip 1829	{
	}
	movieClip 1830	{
		frame 1 {
			gotoAndPlay(random(10));
		}
	}
	movieClip 1831	{
		frame 1 {
			gotoAndPlay(random(10));
		}
	}
	movieClip 1835	{
		frame 1 {
			gotoAndPlay(random(15));
		}
	}
	movieClip 1836	{
		frame 1 {
			gotoAndPlay(random(1000));
		}
		frame 1506 {
			gotoAndPlay('breakpoint');
		}
	}
	movieClip 1837	{
	}
	movieClip 1841	{
		frame 1 {
			stop();
		}
		frame 61 {
			stop();
		}
	}
	movieClip 1844	{
	}
	movieClip 1846	{
	}
	
	// unknown tag 88 length 212
	button 1852 {
		on (release) {
			getURL('http://www.rocklou.com', '_blank');
		}
	}
	movieClip 1859	{
	}
	movieClip 1862	{
		frame 1 {
			PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
			if (PercentLoaded != 100) {
				bar._xscale = PercentLoaded;
			} else {
				gotoAndPlay(3);
			}
		}
		frame 2 {
			gotoAndPlay(1);
		}
		frame 38 {
			_root.white.gotoAndPlay(20);
			_root.gotoAndStop('Title');
		}
	}
	button 1867 {
		on (rollOver) {
			v_txt.gotoAndStop(2);
		}
	}
	button 1874 {
		on (release) {
			getURL('http://www.newgrounds.com/portal/view/647411', '_blank');
		}
	}
	button 1876 {
		on (rollOver) {
			gotoAndStop(1);
		}
	}
	movieClip 1877	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	button 1881 {
		on (release) {
			gotoAndPlay(1);
		}
	}
	button 1884 {
		on (release) {
			getURL('http://en.wikipedia.org/wiki/Local_shared_object', '_blank');
		}
	}
	button 1888 {
		on (release) {
			gotoAndPlay(1);
		}
	}
	movieClip 1889	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 1892	{
		frame 19 {
			stop();
		}
		frame 156 {
			stop();
		}
	}
	frame 2 {
		doFantasyName = function () {
			spacez = false;
			ing = false;
			ern = false;
			en = false;
			errorz = false;
			nam4 = false;
			randomName1();
			randomName2();
			randomName3();
			if (name1.slice(1, name1.length) == name2.slice(1, name2.length)) {
				doName();
				errorz = true;
			}
			if (name1.slice(1, name1.length) == name3.slice(1, name3.length)) {
				doName();
				errorz = true;
			}
			if (name1.charAt(name1.length - 1) == name2.charAt(0)) {
				doName();
				errorz = true;
			}
			if (name2.slice(1, name2.length) == name3.slice(1, name3.length)) {
				doName();
				errorz = true;
			}
			chance = random(5);
			if (chance == 1 && (ing == true or ern == true or en == true)) {
				if (ing == true) {
					name1 += 'ing';
				} else {
					if (ern == true) {
						name1 += 'ern';
					} else {
						if (en == true) {
							name1 += 'en';
						}
					}
				}
				spacez = true;
			}
			if (spacez == true) {
				chance = random(20);
				if (chance == 1) {
					name2Z = name2.slice(0, 1);
					name2Z = name2Z.toUpperCase();
					name2 = name2Z + name2.slice(1, name2.length);
					fname = 'The ' + name1 + ' ' + name2 + ' ' + name3;
				} else {
					fname = 'The ' + name1 + ' ' + name3;
				}
			} else {
				chance = random(20);
				if (chance == 1) {
					fname = 'The ' + name3 + ' of ' + name1 + name2;
				} else {
					chance = random(20);
					if (chance == 1) {
						nam4 = true;
						randomName2();
						if (name2.slice(1, name2.length) == name3.slice(1, name3.length)) {
							doName();
							errorz = true;
						}
						name3Z = name3.slice(0, 1);
						name3Z = name3Z.toUpperCase();
						name3 = name3Z + name3.slice(1, name3.length);
						fname = 'The ' + name1 + name2 + ' ' + name3;
					} else {
						fname = name1 + name2 + ' ' + name3;
					}
				}
			}
		};
		randomName1 = function () {
			name1X = new Array();
			name1X[0] = 'Dark';
			name1X[1] = 'Black';
			name1X[2] = 'White';
			name1X[3] = 'Red';
			name1X[4] = 'Shadow';
			name1X[5] = 'Whisper';
			name1X[6] = 'Blue';
			name1X[7] = 'Green';
			name1X[8] = 'Iron';
			name1X[9] = 'Silver';
			name1X[10] = 'Silver';
			name1X[11] = 'Shriek';
			name1X[12] = 'Scream';
			name1X[13] = 'Thorn';
			name1X[14] = 'Thorn';
			name1X[15] = 'Pale';
			name1X[16] = 'Shimmer';
			name1X[17] = 'Glow';
			name1X[18] = 'Mill';
			name1X[19] = 'Thunder';
			name1X[20] = 'Tell';
			name1X[21] = 'Tall';
			name1X[22] = 'Quake';
			name1X[23] = 'Half';
			name1X[24] = 'Deep';
			name1X[25] = 'Hidden';
			name1X[26] = 'Crimson';
			name1X[27] = 'Flow';
			name1X[28] = 'Hail';
			name1X[29] = 'Demon';
			name1X[30] = 'Fire';
			name1X[31] = 'Snow';
			name1X[32] = 'Screech';
			name1X[33] = 'Peace';
			name1X[34] = 'War';
			name1X[35] = 'Battle';
			name1X[36] = 'Scar';
			name1X[37] = 'Taint';
			name1X[38] = 'Burn';
			name1X[39] = 'Curse';
			name1X[40] = 'Lost';
			name1X[41] = 'Twilight';
			name1X[42] = 'Ruin';
			name1X[43] = 'Fire';
			name1X[44] = 'Silent';
			name1X[45] = 'Tranquil';
			name1X[46] = 'Enchanted';
			name1X[47] = 'Sacred';
			name1X[48] = 'Tick';
			name1X[49] = 'Valor';
			name1X[50] = 'Orc';
			name1X[51] = 'Dwarf';
			name1X[52] = 'Elf';
			name1X[53] = 'Moth';
			name1X[54] = 'Life';
			name1X[55] = 'Death';
			name1X[56] = 'Angel';
			name1X[57] = 'Arrow';
			name1X[58] = 'Flame';
			name1X[59] = 'Herb';
			name1X[60] = 'Carrion';
			name1X[61] = 'Carron';
			name1X[62] = 'Nest';
			name1X[63] = 'Nest';
			name1X[64] = 'Sun';
			name1X[65] = 'Moon';
			name1X[66] = 'Emerald';
			name1X[67] = 'Diamond';
			name1X[68] = 'Gold';
			name1X[69] = 'Gold';
			name1X[70] = 'Weak';
			name1X[71] = 'Fell';
			name1X[72] = 'Hell';
			name1X[73] = 'Way';
			name1X[74] = 'High';
			name1X[75] = 'Low';
			name1X[76] = 'New';
			name1X[77] = 'Old';
			name1X[78] = 'Young';
			name1X[79] = 'Sound';
			name1X[80] = 'Cut';
			name1X[81] = 'Hammer';
			name1X[82] = 'Phantom';
			name1X[83] = 'Ghost';
			name1X[84] = 'Ghoul';
			name1X[85] = 'Big';
			name1X[86] = 'Wake';
			name1X[87] = 'Light';
			name1X[88] = 'Heath';
			name1X[89] = 'Left';
			name1X[90] = 'Right';
			name1X[91] = 'Dying';
			name1X[92] = 'Hail';
			name1X[93] = 'Haze';
			name1X[94] = 'Coral';
			name1X[95] = 'Crow';
			name1X[96] = 'Scarecrow';
			name1X[97] = 'Spider';
			name1X[98] = 'Wolf';
			name1X[99] = 'Dragon';
			name1X[100] = 'Lion';
			name1X[101] = 'All';
			name1X[102] = 'Ill';
			name1X[103] = 'Rift';
			name1X[104] = 'Blow';
			name1X[105] = 'Devil\'s';
			name1X[106] = 'Good';
			name1X[107] = 'Good';
			name1X[108] = 'Scarlet';
			name1X[109] = 'Scarlet';
			name1X[110] = 'Rotting';
			name1X[111] = 'Nameless';
			name1X[112] = 'Wander';
			name1X[113] = 'Gate';
			name1X[114] = 'Toxic';
			name1X[115] = 'Poison';
			name1X[116] = 'Grass';
			name1X[117] = 'Great';
			name1X[118] = 'Hang';
			name1X[119] = 'Spell';
			name1X[120] = 'Witch';
			name1X[121] = 'Pierce';
			name1X[122] = 'Piercing';
			name1X[123] = 'Day';
			name1X[124] = 'Night';
			name1X[125] = 'Dawn';
			name1X[126] = 'Dusk';
			name1X[127] = 'Breath';
			name1X[128] = 'Dust';
			name1X[129] = 'Sand';
			name1X[130] = 'Rock';
			name1X[131] = 'Stone';
			name1X[132] = 'Cold';
			name1X[133] = 'Sorrow';
			name1X[134] = 'Twin';
			name1X[135] = 'Twin';
			name1X[136] = 'Winter';
			name1X[137] = 'Fall';
			name1X[138] = 'Spring';
			name1X[139] = 'Honor';
			name1X[140] = 'Worm';
			name1X[141] = 'Kill';
			name1X[142] = 'Storm';
			name1X[143] = 'Storm';
			name1X[144] = 'Argon';
			name1X[145] = 'Royal';
			name1X[146] = 'Spine';
			name1X[147] = 'Spine';
			name1X[148] = 'Back';
			name1X[149] = 'Front';
			name1X[150] = 'Emerald';
			name1X[151] = 'Diamond';
			name1X[152] = 'Titan';
			name1X[153] = 'Crescent';
			name1X[154] = 'Crescent Moon';
			name1X[155] = 'North';
			name1X[156] = 'South';
			name1X[157] = 'West';
			name1X[158] = 'East';
			name1X[159] = 'North';
			name1X[160] = 'South';
			name1X[161] = 'West';
			name1X[162] = 'East';
			name1X[163] = 'Heart';
			name1X[164] = 'Soul';
			name1X[165] = 'Bump';
			name1X[166] = 'Timber';
			name1X[167] = 'Lone';
			name1X[168] = 'Feather';
			name1X[169] = 'Cross';
			name1X[170] = 'Talon';
			name1X[171] = 'Veil';
			name1X[172] = 'Murk';
			name1X[173] = 'Grim';
			name1X[174] = 'Weather';
			name1X[175] = 'Morrow';
			name1X[176] = 'Sky';
			name1X[177] = 'Odd';
			name1X[178] = 'Strangle';
			name1X[179] = 'Searing';
			name1X[180] = 'Skull';
			name1X[181] = 'Skeleton';
			name1X[182] = 'Mend';
			name1X[183] = 'Scare';
			name1X[184] = 'Tainted';
			name1X[185] = 'Flower';
			name1X[186] = 'Vine';
			name1X[187] = 'Ever';
			name1X[188] = 'Ever';
			name1X[189] = 'Whole';
			name1X[190] = 'Garrow';
			name1X[191] = 'Gallow';
			name1X[192] = 'Marrow';
			name1X[193] = 'Harrow';
			name1X[194] = 'Roam';
			name1X[195] = 'Mold';
			name1X[196] = 'Crystal';
			name1X[197] = 'Beak';
			name1X[198] = 'Break';
			name1X[199] = 'Dim';
			name1X[200] = 'Waste';
			name1X[201] = 'Wrath';
			name1X[202] = 'Strong';
			name1X[203] = 'Saint';
			name1X[204] = 'Chaos';
			name1X[205] = 'Chaos';
			name1X[206] = 'Draw';
			name1X[207] = 'Narrow';
			name1X[208] = 'Pillar';
			name1X[209] = 'Legion';
			name1X[210] = 'Stock';
			name1X[211] = 'Serpent';
			name1X[212] = 'Scorpion';
			name1X[213] = 'Snake';
			name1X[214] = 'Vile';
			name1X[215] = 'Wax';
			name1X[216] = 'Elder';
			name1X[217] = 'Elder';
			name1X[218] = 'Shiver';
			name1X[219] = 'Blood';
			name1X[220] = 'Acid';
			name1X[221] = 'Mage';
			name1X[222] = 'Inferno';
			name1X[223] = 'Raven';
			name1X[224] = 'Raven';
			name1X[225] = 'Arcane';
			name1X[226] = 'Blade';
			name1X[227] = 'Blade';
			name1X[228] = 'Guard';
			name1X[229] = 'Mid';
			name1X[230] = 'Thread';
			name1X[231] = 'Claw';
			name1X[232] = 'Close';
			name1X[233] = 'Drift';
			name1X[234] = 'Wist';
			name1X[235] = 'Wift';
			name1X[236] = 'Wave';
			name1X[237] = 'Mosh';
			name1X[238] = 'Grow';
			name1X[239] = 'Zombie';
			name1X[240] = 'Mile';
			name1X[241] = 'Mile';
			name1X[242] = 'Grey';
			name1X[243] = 'Gray';
			name1X[244] = 'Roft';
			name1X[245] = 'Cyclop';
			name1X[246] = 'Wind';
			name1X[247] = 'Wand';
			name1X[248] = 'Rapid';
			name1X[249] = 'Swift';
			name1X[250] = 'Scold';
			name1X[251] = 'Silent';
			name1X[252] = 'Sudden';
			name1X[253] = 'Mist';
			name1X[254] = 'Broad';
			name1X[255] = 'Goblin';
			name1X[256] = 'Wyrm';
			name1X[257] = 'Bear';
			name1X[258] = 'Fare';
			name1X[259] = 'Fair';
			name1X[260] = 'Fear';
			name1X[261] = 'Spike';
			name1X[262] = 'Wet';
			name1X[263] = 'Ire';
			name1X[264] = 'Smog';
			name1X[265] = 'World';
			name1X[266] = 'World\'s End';
			name1X[267] = 'Dry';
			name1X[268] = 'Walk';
			name1X[269] = 'Run';
			name1X[270] = 'Bull';
			name1X[271] = 'Brim';
			name1X[272] = 'Hunter';
			name1X[273] = 'Shatter';
			name1X[274] = 'Scratch';
			name1X[275] = 'Grin';
			name1X[276] = 'Bolt';
			name1X[277] = 'Hill';
			name1X[278] = 'Hill';
			name1X[279] = 'Wild';
			name1X[280] = 'Anchor';
			name1X[281] = 'Earth';
			name1X[282] = 'Earth';
			name1X[283] = 'Fist';
			name1X[284] = 'Brave';
			name1X[285] = 'Fairy';
			name1X[286] = 'Eternal';
			name1X[287] = 'Star';
			name1X[288] = 'Navel';
			name1X[289] = 'Musk';
			name1X[290] = 'Burrow';
			name1X[291] = 'Harvest';
			name1X[292] = 'Chest';
			name1X[293] = 'Oak';
			name1X[294] = 'Gorm';
			name1X[295] = 'Locust';
			name1X[296] = 'Skin';
			name1X[297] = 'Wither';
			name1X[298] = 'Blight';
			name1X[299] = 'Fyre';
			name1X[300] = 'Spring';
			name1 = name1X[random(name1X.length)];
			if (name1 == 'Twilight' or name1 == 'Hidden' or name1 == 'Tranquil' or name1 == 'Enchanted' or name1 == 'Sacred' or name1 == 'Crescent' or name1 == 'Dying' or name1 == 'Scarecrow' or name1 == 'Devil\'s' or name1 == 'Rotting' or name1 == 'Nameless' or name1 == 'Piercing' or name1 == 'Tainted' or name1 == 'Searing' or name1 == 'Silent' or name1 == 'Crescent Moon' or name1 == 'World\'s End') {
				spacez = true;
			} else {
				if (name1 == 'Whisper' or name1 == 'Shriek' or name1 == 'Scream' or name1 == 'Shimmer' or name1 == 'Thunder' or name1 == 'Flow' or name1 == 'Hail' or name1 == 'Wander' or name1 == 'Dawn' or name1 == 'Shiver' or name1 == 'Burn' or name1 == 'Veil' or name1 == 'Harrow' or name1 == 'Roam' or name1 == 'Screech' or name1 == 'Drift' or name1 == 'Scold' or name1 == 'Shatter' or name1 == 'Burrow') {
					ing = true;
				} else {
					if (name1 == 'North' or name1 == 'South' or name1 == 'West' or name1 == 'East') {
						ern = true;
					} else {
						if (name1 == 'Gold') {
							en = true;
						}
					}
				}
			}
			chance = random(3);
			if (chance == 1 && (name1 == 'Diamond' or name1 == 'Emerald' or name1 == 'Legion' or name1 == 'Narrow' or name1 == 'Serpent' or name1 == 'Scorpion' or name1 == 'Lost' or name1 == 'Phantom' or name1 == 'Bandit' or name1 == 'Cyclop')) {
				spacez = true;
			}
		};
		randomName2 = function () {
			name2X = new Array();
			name2X[0] = 'will';
			name2X[1] = 'will';
			name2X[2] = 'forge';
			name2X[3] = 'scar';
			name2X[4] = 'scar';
			name2X[5] = 'tune';
			name2X[6] = 'glint';
			name2X[7] = 'mist';
			name2X[8] = 'cyst';
			name2X[9] = 'held';
			name2X[10] = 'white';
			name2X[11] = 'bell';
			name2X[12] = 'pine';
			name2X[13] = 'thorn';
			name2X[14] = 'thorn';
			name2X[15] = 'deep';
			name2X[16] = 'shimmer';
			name2X[17] = 'glow';
			name2X[18] = 'light';
			name2X[19] = 'thunder';
			name2X[20] = 'rain';
			name2X[21] = 'storm';
			name2X[22] = 'hidden';
			name2X[23] = 'moon';
			name2X[24] = 'sun';
			name2X[25] = 'veil';
			name2X[26] = 'well';
			name2X[27] = 'hole';
			name2X[28] = 'fin';
			name2X[29] = 'wing';
			name2X[30] = 'wing';
			name2X[31] = 'heaven';
			name2X[32] = 'haven';
			name2X[33] = 'bone';
			name2X[34] = 'torn';
			name2X[35] = 'torn';
			name2X[36] = 'stone';
			name2X[37] = 'sword';
			name2X[38] = 'shield';
			name2X[39] = 'swell';
			name2X[40] = 'snow';
			name2X[41] = 'fire';
			name2X[42] = 'creep';
			name2X[43] = 'blow';
			name2X[44] = 'flower';
			name2X[45] = 'flower';
			name2X[46] = 'root';
			name2X[47] = 'song';
			name2X[48] = 'wind';
			name2X[49] = 'band';
			name2X[50] = 'bond';
			name2X[51] = 'grip';
			name2X[52] = 'tale';
			name2X[53] = 'god';
			name2X[54] = 'howl';
			name2X[55] = 'angel';
			name2X[56] = 'arrow';
			name2X[57] = 'blade';
			name2X[58] = 'spike';
			name2X[59] = 'nail';
			name2X[60] = 'hammer';
			name2X[61] = 'fall';
			name2X[62] = 'fall';
			name2X[63] = 'brim';
			name2X[64] = 'brim';
			name2X[65] = 'fix';
			name2X[66] = 'fill';
			name2X[67] = 'full';
			name2X[68] = 'ful';
			name2X[69] = 'flame';
			name2X[70] = 'heat';
			name2X[71] = 'gape';
			name2X[72] = 'gape';
			name2X[73] = 'cape';
			name2X[74] = 'end';
			name2X[75] = 'end';
			name2X[76] = 'flock';
			name2X[77] = 'pack';
			name2X[78] = 'throat';
			name2X[79] = 'head';
			name2X[80] = 'foot';
			name2X[81] = 'bulge';
			name2X[82] = 'point';
			name2X[83] = 'born';
			name2X[84] = 'ghost';
			name2X[85] = 'fell';
			name2X[86] = 'child';
			name2X[87] = 'cloud';
			name2X[88] = 'top';
			name2X[89] = 'hedge';
			name2X[90] = 'window';
			name2X[91] = 'lot';
			name2X[92] = 'eden';
			name2X[93] = 'crow';
			name2X[94] = 'crowe';
			name2X[95] = 'town';
			name2X[96] = 'castle';
			name2X[97] = 'palace';
			name2X[98] = 'hang';
			name2X[99] = 'eye';
			name2X[100] = 'soul';
			name2X[101] = 'soul';
			name2X[102] = 'fly';
			name2X[103] = 'pore';
			name2X[104] = 'shriek';
			name2X[105] = 'scream';
			name2X[106] = 'shadow';
			name2X[107] = 'whisper';
			name2X[108] = 'darkness';
			name2X[109] = 'shadow';
			name2X[110] = 'whisper';
			name2X[111] = 'horde';
			name2X[112] = 'sin';
			name2X[113] = 'crest';
			name2X[114] = 'crest';
			name2X[115] = 'ivy';
			name2X[116] = 'neck';
			name2X[117] = 'hate';
			name2X[118] = 'peak';
			name2X[119] = 'port';
			name2X[120] = 'secret';
			name2X[121] = 'plant';
			name2X[122] = 'web';
			name2X[123] = 'glade';
			name2X[124] = 'glade';
			name2X[125] = 'timmer';
			name2X[126] = 'thistle';
			name2X[127] = 'thick';
			name2X[128] = 'whistle';
			name2X[129] = 'dawn';
			name2X[130] = 'dusk';
			name2X[131] = 'morning';
			name2X[132] = 'dust';
			name2X[133] = 'rock';
			name2X[134] = 'hard';
			name2X[135] = 'rift';
			name2X[136] = 'rift';
			name2X[137] = 'fold';
			name2X[138] = 'feld';
			name2X[139] = 'claw';
			name2X[140] = 'claw';
			name2X[141] = 'arm';
			name2X[142] = 'grit';
			name2X[143] = 'grit';
			name2X[144] = 'widow';
			name2X[145] = 'glory';
			name2X[146] = 'honor';
			name2X[147] = 'melody';
			name2X[148] = 'memory';
			name2X[149] = 'shine';
			name2X[150] = 'tongue';
			name2X[151] = 'angle';
			name2X[152] = 'lord';
			name2X[153] = 'pit';
			name2X[154] = 'pit';
			name2X[155] = 'knight';
			name2X[156] = 'bitten';
			name2X[157] = 'bite';
			name2X[158] = 'boat';
			name2X[159] = 'boad';
			name2X[160] = 'sleep';
			name2X[161] = 'wake';
			name2X[162] = 'twist';
			name2X[163] = 'terror';
			name2X[164] = 'scare';
			name2X[165] = 'joy';
			name2X[166] = 'luck';
			name2X[167] = 'hope';
			name2X[168] = 'win';
			name2X[169] = 'loss';
			name2X[170] = 'wild';
			name2X[171] = 'boot';
			name2X[172] = 'edge';
			name2X[173] = 'ache';
			name2X[174] = 'pain';
			name2X[175] = 'mug';
			name2X[176] = 'buld';
			name2X[177] = 'tole';
			name2X[178] = 'rise';
			name2X[179] = 'race';
			name2X[180] = 'bane';
			name2X[181] = 'bane';
			name2X[182] = 'harm';
			name2X[183] = 'back';
			name2X[184] = 'front';
			name2X[185] = 'ring';
			name2X[186] = 'left';
			name2X[187] = 'spine';
			name2X[188] = 'spine';
			name2X[189] = 'told';
			name2X[190] = 'home';
			name2X[191] = 'reign';
			name2X[192] = 'rust';
			name2X[193] = 'lust';
			name2X[194] = 'grave';
			name2X[195] = 'gate';
			name2X[196] = 'gate';
			name2X[197] = 'arch';
			name2X[198] = 'room';
			name2X[199] = 'beak';
			name2X[200] = 'shock';
			name2X[201] = 'heart';
			name2X[202] = 'loft';
			name2X[203] = 'rend';
			name2X[204] = 'wand';
			name2X[205] = 'sole';
			name2X[206] = 'beach';
			name2X[207] = 'prey';
			name2X[208] = 'feather';
			name2X[209] = 'cross';
			name2X[210] = 'talon';
			name2X[211] = 'branch';
			name2X[212] = 'wallow';
			name2X[213] = 'willow';
			name2X[214] = 'wood';
			name2X[215] = 'water';
			name2X[216] = 'grind';
			name2X[217] = 'rim';
			name2X[218] = 'bride';
			name2X[219] = 'moan';
			name2X[220] = 'loe';
			name2X[221] = 'crust';
			name2X[222] = 'less';
			name2X[223] = 'vine';
			name2X[224] = 'garrow';
			name2X[225] = 'marrow';
			name2X[226] = 'roll';
			name2X[227] = 'fickle';
			name2X[228] = 'sickle';
			name2X[229] = 'peace';
			name2X[230] = 'war';
			name2X[231] = 'battle';
			name2X[232] = 'wrath';
			name2X[233] = 'wrath';
			name2X[234] = 'wraith';
			name2X[235] = 'anger';
			name2X[236] = 'rage';
			name2X[237] = 'wake';
			name2X[238] = 'beat';
			name2X[239] = 'birm';
			name2X[240] = 'holm';
			name2X[241] = 'roof';
			name2X[242] = 'ridge';
			name2X[243] = 'ridge';
			name2X[244] = 'narrow';
			name2X[245] = 'narrow';
			name2X[246] = 'gorge';
			name2X[247] = 'gorge';
			name2X[248] = 'cliff';
			name2X[249] = 'built';
			name2X[250] = 'build';
			name2X[251] = 'horn';
			name2X[252] = 'beetle';
			name2X[253] = 'tiff';
			name2X[254] = 'grudge';
			name2X[255] = 'pen';
			name2X[256] = 'shift';
			name2X[257] = 'form';
			name2X[258] = 'shape';
			name2X[259] = 'prayer';
			name2X[260] = 'cut';
			name2X[261] = 'statue';
			name2X[262] = 'quest';
			name2X[263] = 'nest';
			name2X[264] = 'nest';
			name2X[265] = 'smoke';
			name2X[266] = 'hirm';
			name2X[267] = 'scale';
			name2X[268] = 'hold';
			name2X[269] = 'hold';
			name2X[270] = 'hedge';
			name2X[271] = 'vortex';
			name2X[272] = 'pace';
			name2X[273] = 'bridge';
			name2X[274] = 'cot';
			name2X[275] = 'cott';
			name2X[276] = 'wick';
			name2X[277] = 'hood';
			name2X[278] = 'dirge';
			name2X[279] = 'dirge';
			name2X[280] = 'torch';
			name2X[281] = 'haze';
			name2X[282] = 'thread';
			name2X[283] = 'blaze';
			name2X[284] = 'maul';
			name2X[285] = 'kiss';
			name2X[286] = 'kiss';
			name2X[287] = 'naked';
			name2X[288] = 'bare';
			name2X[289] = 'bludge';
			name2X[290] = 'poison';
			name2X[291] = 'crown';
			name2X[292] = 'glyph';
			name2X[293] = 'sight';
			name2X[294] = 'quail';
			name2X[295] = 'apple';
			name2X[296] = 'peach';
			name2X[297] = 'foam';
			name2X[298] = 'drift';
			name2X[299] = 'stomp';
			name2X[300] = 'camp';
			name2X[301] = 'drain';
			name2X[302] = 'darrow';
			name2X[303] = 'crack';
			name2X[304] = 'crack';
			name2X[305] = 'freeze';
			name2X[306] = 'break';
			name2X[307] = 'down';
			name2X[308] = 'sunder';
			name2X[309] = 'drone';
			name2X[310] = 'blur';
			name2X[311] = 'bent';
			name2X[312] = 'lock';
			name2X[313] = 'ruin';
			name2X[314] = 'mold';
			name2X[315] = 'mold';
			name2X[316] = 'spear';
			name2X[317] = 'draw';
			name2X[318] = 'trip';
			name2X[319] = 'burn';
			name2X[320] = 'drip';
			name2X[321] = 'drop';
			name2X[322] = 'worth';
			name2X[323] = 'hill';
			name2X[324] = 'hill';
			name2X[325] = 'spawn';
			name2X[326] = 'spawn';
			name2X[327] = 'birth';
			name2X[328] = 'birth';
			name2X[329] = 'drag';
			name2X[330] = 'world';
			name2X[331] = 'mald';
			name2X[332] = 'watch';
			name2X[333] = 'guard';
			name2X[334] = 'guard';
			name2X[335] = 'lash';
			name2X[336] = 'pearl';
			name2X[337] = 'look';
			name2X[338] = 'tip';
			name2X[339] = 'tip';
			name2X[340] = 'wax';
			name2X[341] = 'head';
			name2X[342] = 'face';
			name2X[343] = 'face';
			name2X[344] = 'den';
			name2X[345] = 'roach';
			name2X[346] = 'stalk';
			name2X[347] = 'ton';
			name2X[348] = 'shire';
			name2X[349] = 'day';
			name2X[350] = 'night';
			name2X[351] = 'chain';
			name2X[352] = 'mail';
			name2X[353] = 'tavern';
			name2X[354] = 'raft';
			name2X[355] = 'talk';
			name2X[356] = 'nag';
			name2X[357] = 'bag';
			name2X[358] = 'beck';
			name2X[359] = 'site';
			name2X[360] = 'state';
			name2X[361] = 'dire';
			name2X[362] = 'scold';
			name2X[363] = 'tear';
			name2X[364] = 'taint';
			name2X[365] = 'scent';
			name2X[366] = 'twice';
			name2X[367] = 'faith';
			name2X[368] = 'whine';
			name2X[369] = 'wail';
			name2X[370] = 'wail';
			name2X[371] = 'vault';
			name2X[372] = 'key';
			name2X[373] = 'crane';
			name2X[374] = 'barren';
			name2X[375] = 'bare';
			name2X[376] = 'bare';
			name2X[377] = 'wyrm';
			name2X[378] = 'worn';
			name2X[379] = 'ire';
			name2X[380] = 'foul';
			name2X[381] = 'wish';
			name2X[382] = 'lush';
			name2X[383] = 'way';
			name2X[384] = 'way';
			name2X[385] = 'shatter';
			name2X[386] = 'glass';
			name2X[387] = 'grass';
			name2X[388] = 'gloom';
			name2X[389] = 'stand';
			name2X[390] = 'bald';
			name2X[391] = 'thrift';
			name2X[392] = 'theft';
			name2X[393] = 'thrill';
			name2X[394] = 'blood';
			name2X[395] = 'boil';
			name2X[396] = 'herd';
			name2X[397] = 'meld';
			name2X[398] = 'meld';
			name2X[399] = 'crawl';
			name2X[400] = 'hog';
			name2X[401] = 'bog';
			name2X[402] = 'wake';
			name2X[403] = 'host';
			name2X[404] = 'shank';
			name2X[405] = 'prison';
			name2X[406] = 'touch';
			name2X[407] = 'scratch';
			name2X[408] = 'hatch';
			name2X[409] = 'beast';
			name2X[410] = 'hunt';
			name2X[411] = 'hunter';
			name2X[412] = 'craft';
			name2X[413] = 'frenzy';
			name2X[414] = 'shore';
			name2X[415] = 'flash';
			name2X[416] = 'roam';
			name2X[417] = 'choke';
			name2X[418] = 'grease';
			name2X[419] = 'hut';
			name2X[420] = 'kill';
			name2X[421] = 'dome';
			name2X[422] = 'dole';
			name2X[423] = 'score';
			name2X[424] = 'murl';
			name2X[425] = 'bore';
			name2X[426] = 'shrine';
			name2X[427] = 'bottom';
			name2X[428] = 'chest';
			name2X[429] = 'bolt';
			name2X[430] = 'work';
			name2X[431] = 'throw';
			name2X[432] = 'quill';
			name2X[433] = 'fang';
			name2X[434] = 'grove';
			name2X[435] = 'grove';
			name2X[436] = 'herb';
			name2X[437] = 'risk';
			name2X[438] = 'turn';
			name2X[439] = 'toll';
			name2X[440] = 'hit';
			name2X[441] = 'hell';
			name2X[442] = 'trek';
			name2X[443] = 'dance';
			name2X[444] = 'summon';
			name2X[445] = 'grim';
			name2X[446] = 'grim';
			name2X[447] = 'bot';
			name2X[448] = 'star';
			name2X[449] = 'shine';
			name2X[450] = 'hive';
			name2X[451] = 'hive';
			name2X[452] = 'lift';
			name2X[453] = 'tomb';
			name2X[454] = 'tomb';
			name2X[455] = 'crypt';
			name2X[456] = 'growth';
			name2X[457] = 'gripe';
			name2X[458] = 'chaos';
			name2X[459] = 'sand';
			name2X[460] = 'sack';
			name2X[461] = 'stash';
			name2X[462] = 'rose';
			name2X[463] = 'navel';
			name2X[464] = 'lint';
			name2X[465] = 'musk';
			name2X[466] = 'tar';
			name2X[467] = 'slumber';
			name2X[468] = 'harvest';
			name2X[469] = 'turf';
			name2X[470] = 'flux';
			name2X[471] = 'sting';
			name2X[472] = 'riff';
			name2X[473] = 'gorm';
			name2X[474] = 'bard';
			name2X[475] = 'spit';
			name2X[476] = 'swan';
			name2X[477] = 'shell';
			name2X[478] = 'gush';
			name2X[479] = 'gash';
			name2X[480] = 'warp';
			name2X[481] = 'skin';
			name2X[482] = 'shroud';
			name2X[483] = 'side';
			name2X[484] = 'blight';
			name2X[485] = 'fyre';
			name2X[486] = 'crist';
			name2X[487] = 'son';
			name2X[488] = 'spring';
			name2X[489] = 'haven';
			name2X[490] = 'shackle';
			name2X[491] = 'scarrow';
			name2X[492] = 'mog';
			name2X[493] = 'spire';
			if (nam4 == true) {
				name3 = name2X[random(name2X.length)];
			} else {
				name2 = name2X[random(name2X.length)];
			}
		};
		randomName3 = function () {
			name3X = new Array();
			name3X[0] = 'Mountain';
			name3X[1] = 'Mountains';
			name3X[2] = 'Tower';
			name3X[3] = 'Cave';
			name3X[4] = 'Swamp';
			name3X[5] = 'Valley';
			name3X[6] = 'Ocean';
			name3X[7] = 'Lake';
			name3X[8] = 'Sea';
			name3X[9] = 'River';
			name3X[10] = 'City';
			name3X[11] = 'Desert';
			name3X[12] = 'Dunes';
			name3X[13] = 'Forest';
			name3X[14] = 'Hill';
			name3X[15] = 'Deep';
			name3X[16] = 'Deeps';
			name3X[17] = 'Glade';
			name3X[18] = 'Woods';
			name3X[19] = 'Field';
			name3X[20] = 'Gulch';
			name3X[21] = 'Road';
			name3X[22] = 'Village';
			name3X[23] = 'Cove';
			name3X[24] = 'Fort';
			name3X[25] = 'Fortress';
			name3X[26] = 'Cathedral';
			name3X[27] = 'Pond';
			name3X[28] = 'Top';
			name3X[29] = 'Haven';
			name3X[30] = 'Bridge';
			name3X[31] = 'Ridge';
			name3X[32] = 'Pass';
			name3X[33] = 'Cliff';
			name3X[34] = 'Sanctuary';
			name3X[35] = 'Bog';
			name3X[36] = 'Gorge';
			name3X[37] = 'Narrow';
			name3X[38] = 'Isle';
			name3X[39] = 'Island';
			name3X[40] = 'Islands';
			name3X[41] = 'Barrens';
			name3X[42] = 'Hold';
			name3X[43] = 'Top';
			name3X[44] = 'Crater';
			name3X[45] = 'Marsh';
			name3X[46] = 'Peak';
			name3X[47] = 'Highlands';
			name3X[48] = 'Harbor';
			name3X[49] = 'Shore';
			name3X[50] = 'Vale';
			name3X[51] = 'Lands';
			name3X[52] = 'Lands';
			name3X[53] = 'Shore';
			name3X[54] = 'Beach';
			name3X[55] = 'Cavern';
			name3X[56] = 'Caverns';
			name3X[57] = 'Bay';
			name3X[58] = 'Rift';
			name3X[59] = 'Rift';
			name3X[60] = 'Dungeon';
			name3X[61] = 'Dungeons';
			name3X[62] = 'Maze';
			name3X[63] = 'Crest';
			name3X[64] = 'Temple';
			name3X[65] = 'Delta';
			name3X[66] = 'Fall';
			name3X[67] = 'Falls';
			name3X[68] = 'Point';
			name3X[69] = 'Brim';
			name3X[70] = 'Chasm';
			name3X[71] = 'Shrine';
			name3X[72] = 'Tunnel';
			name3X[73] = 'Gape';
			name3X[74] = 'Crack';
			name3X[75] = 'End';
			name3X[76] = 'Ravine';
			name3X[77] = 'Canyon';
			name3X[78] = 'Gully';
			name3X[79] = 'Glade';
			name3X[80] = 'Creek';
			name3X[81] = 'Peninsula';
			name3X[82] = 'Haven';
			name3 = name3X[random(name3X.length)];
			if (name3 == 'Highlands') {
				spacez = true;
			}
		};
		loadPlayer = function () {
			previewnum = 0;
			if (eval('player' + currentslot + 'SO.data.playerDat.corename') == undefined) {
				if (sfxmute == false) {
					error.start();
				}
			} else {
				doNotrun();
				corename = eval('player' + currentslot + 'SO.data.playerDat.corename');
				coreX = eval('player' + currentslot + 'SO.data.playerDat.coreX');
				calebX = eval('player' + currentslot + 'SO.data.playerDat.calebX');
				playerX = eval('player' + currentslot + 'SO.data.playerDat.playerX');
				playerY = eval('player' + currentslot + 'SO.data.playerDat.playerY');
				dateday = eval('player' + currentslot + 'SO.data.playerDat.dateday');
				datemonth = eval('player' + currentslot + 'SO.data.playerDat.datemonth');
				dateyear = eval('player' + currentslot + 'SO.data.playerDat.dateyear');
				stand = eval('player' + currentslot + 'SO.data.playerDat.stand');
				story = eval('player' + currentslot + 'SO.data.playerDat.story');
				tutz = eval('player' + currentslot + 'SO.data.playerDat.tutz');
				gold = eval('player' + currentslot + 'SO.data.playerDat.gold');
				autoscreensave = eval('player' + currentslot + 'SO.data.playerDat.autoscreensave');
				firstsave = eval('player' + currentslot + 'SO.data.playerDat.firstsave');
				gotfirststats = eval('player' + currentslot + 'SO.data.playerDat.gotfirststats');
				godmode = eval('player' + currentslot + 'SO.data.playerDat.godmode');
				hascheated = eval('player' + currentslot + 'SO.data.playerDat.hascheated');
				character = eval('player' + currentslot + 'SO.data.playerDat.character');
				numofchars = eval('player' + currentslot + 'SO.data.playerDat.numofchars');
				currentweapon = eval('player' + currentslot + 'SO.data.playerDat.currentweapon');
				runningz = eval('player' + currentslot + 'SO.data.playerDat.runningz');
				areaname = eval('player' + currentslot + 'SO.data.playerDat.areaname');
				menucolor = eval('player' + currentslot + 'SO.data.playerDat.menucolor');
				corenumofmagics = eval('player' + currentslot + 'SO.data.playerDat.corenumofmagics');
				corenumoflimits = eval('player' + currentslot + 'SO.data.playerDat.corenumoflimits');
				calebnumofmagics = eval('player' + currentslot + 'SO.data.playerDat.calebnumofmagics');
				calebnumoflimits = eval('player' + currentslot + 'SO.data.playerDat.calebnumoflimits');
				fishing_count = eval('player' + currentslot + 'SO.data.playerDat.fishing_count');
				fishinghighscore = eval('player' + currentslot + 'SO.data.playerDat.fishinghighscore');
				numofbattles = eval('player' + currentslot + 'SO.data.playerDat.numofbattles');
				numofswords = eval('player' + currentslot + 'SO.data.playerDat.numofswords');
				coremagic1 = eval('player' + currentslot + 'SO.data.playerDat.coremagic1');
				calebmagic1 = eval('player' + currentslot + 'SO.data.playerDat.calebmagic1');
				farsight = eval('player' + currentslot + 'SO.data.playerDat.farsight');
				difficulty = eval('player' + currentslot + 'SO.data.playerDat.difficulty');
				corehealth = eval('player' + currentslot + 'SO.data.playerDat.corehealth');
				coremaxhealth = eval('player' + currentslot + 'SO.data.playerDat.coremaxhealth');
				coremana = eval('player' + currentslot + 'SO.data.playerDat.coremana');
				coremaxmana = eval('player' + currentslot + 'SO.data.playerDat.coremaxmana');
				calebhealth = eval('player' + currentslot + 'SO.data.playerDat.calebhealth');
				calebmaxhealth = eval('player' + currentslot + 'SO.data.playerDat.calebmaxhealth');
				calebmana = eval('player' + currentslot + 'SO.data.playerDat.calebmana');
				calebmaxmana = eval('player' + currentslot + 'SO.data.playerDat.calebmaxmana');
				corelimit = eval('player' + currentslot + 'SO.data.playerDat.corelimit');
				coremaxlimit = eval('player' + currentslot + 'SO.data.playerDat.coremaxlimit');
				caleblimit = eval('player' + currentslot + 'SO.data.playerDat.caleblimit');
				calebmaxlimit = eval('player' + currentslot + 'SO.data.playerDat.calebmaxlimit');
				directions = eval('player' + currentslot + 'SO.data.playerDat.directions');
				weapon1 = eval('player' + currentslot + 'SO.data.playerDat.weapon1');
				weapon2 = eval('player' + currentslot + 'SO.data.playerDat.weapon2');
				weapon3 = eval('player' + currentslot + 'SO.data.playerDat.weapon3');
				weapon4 = eval('player' + currentslot + 'SO.data.playerDat.weapon4');
				weapon5 = eval('player' + currentslot + 'SO.data.playerDat.weapon5');
				weapon6 = eval('player' + currentslot + 'SO.data.playerDat.weapon6');
				coremagic1 = eval('player' + currentslot + 'SO.data.playerDat.coremagic1');
				coremagic2 = eval('player' + currentslot + 'SO.data.playerDat.coremagic2');
				coremagic3 = eval('player' + currentslot + 'SO.data.playerDat.coremagic3');
				coremagic4 = eval('player' + currentslot + 'SO.data.playerDat.coremagic4');
				coremagic5 = eval('player' + currentslot + 'SO.data.playerDat.coremagic5');
				coremagic6 = eval('player' + currentslot + 'SO.data.playerDat.coremagic6');
				calebmagic1 = eval('player' + currentslot + 'SO.data.playerDat.calebmagic1');
				calebmagic2 = eval('player' + currentslot + 'SO.data.playerDat.calebmagic2');
				calebmagic3 = eval('player' + currentslot + 'SO.data.playerDat.calebmagic3');
				calebmagic4 = eval('player' + currentslot + 'SO.data.playerDat.calebmagic4');
				calebmagic5 = eval('player' + currentslot + 'SO.data.playerDat.calebmagic5');
				calebmagic6 = eval('player' + currentslot + 'SO.data.playerDat.calebmagic6');
				corelimit1 = eval('player' + currentslot + 'SO.data.playerDat.corelimit1');
				corelimit2 = eval('player' + currentslot + 'SO.data.playerDat.corelimit2');
				corelimit3 = eval('player' + currentslot + 'SO.data.playerDat.corelimit3');
				corelimit4 = eval('player' + currentslot + 'SO.data.playerDat.corelimit4');
				caleblimit1 = eval('player' + currentslot + 'SO.data.playerDat.caleblimit1');
				caleblimit2 = eval('player' + currentslot + 'SO.data.playerDat.caleblimit2');
				caleblimit3 = eval('player' + currentslot + 'SO.data.playerDat.caleblimit3');
				caleblimit4 = eval('player' + currentslot + 'SO.data.playerDat.caleblimit4');
				gotsword2 = eval('player' + currentslot + 'SO.data.playerDat.gotsword2');
				gotsword3 = eval('player' + currentslot + 'SO.data.playerDat.gotsword3');
				gotsword4 = eval('player' + currentslot + 'SO.data.playerDat.gotsword4');
				gotsword5 = eval('player' + currentslot + 'SO.data.playerDat.gotsword5');
				gotsword6 = eval('player' + currentslot + 'SO.data.playerDat.gotsword6');
				sword1f = eval('player' + currentslot + 'SO.data.playerDat.sword1f');
				sword2f = eval('player' + currentslot + 'SO.data.playerDat.sword2f');
				sword3f = eval('player' + currentslot + 'SO.data.playerDat.sword3f');
				sword4f = eval('player' + currentslot + 'SO.data.playerDat.sword4f');
				sword5f = eval('player' + currentslot + 'SO.data.playerDat.sword5f');
				sword6f = eval('player' + currentslot + 'SO.data.playerDat.sword6f');
				corecounterchance = eval('player' + currentslot + 'SO.data.playerDat.corecounterchance');
				calebcounterchance = eval('player' + currentslot + 'SO.data.playerDat.calebcounterchance');
				corepoison = eval('player' + currentslot + 'SO.data.playerDat.corepoison');
				calebpoison = eval('player' + currentslot + 'SO.data.playerDat.calebpoison');
				coremagicdamage = eval('player' + currentslot + 'SO.data.playerDat.coremagicdamage');
				corestrength = eval('player' + currentslot + 'SO.data.playerDat.corestrength');
				coredefense = eval('player' + currentslot + 'SO.data.playerDat.coredefense');
				coremagicdefense = eval('player' + currentslot + 'SO.data.playerDat.coremagicdefense');
				coreluck = eval('player' + currentslot + 'SO.data.playerDat.coreluck');
				coreagility = eval('player' + currentslot + 'SO.data.playerDat.coreagility');
				coremagicdamageX = eval('player' + currentslot + 'SO.data.playerDat.coremagicdamageX');
				coremagicdefenseX = eval('player' + currentslot + 'SO.data.playerDat.coremagicdefenseX');
				corestrengthX = eval('player' + currentslot + 'SO.data.playerDat.corestrengthX');
				coredefenseX = eval('player' + currentslot + 'SO.data.playerDat.coredefenseX');
				coreluckX = eval('player' + currentslot + 'SO.data.playerDat.coreluckX');
				coreagilityX = eval('player' + currentslot + 'SO.data.playerDat.coreagilityX');
				corefireElement = eval('player' + currentslot + 'SO.data.playerDat.corefireElement');
				coredarkElement = eval('player' + currentslot + 'SO.data.playerDat.coredarkElement');
				coreiceElement = eval('player' + currentslot + 'SO.data.playerDat.coreiceElement');
				corethunderElement = eval('player' + currentslot + 'SO.data.playerDat.corethunderElement');
				calebmagicdamage = eval('player' + currentslot + 'SO.data.playerDat.calebmagicdamage');
				calebstrength = eval('player' + currentslot + 'SO.data.playerDat.calebstrength');
				calebdefense = eval('player' + currentslot + 'SO.data.playerDat.calebdefense');
				calebmagicdefense = eval('player' + currentslot + 'SO.data.playerDat.calebmagicdefense');
				calebluck = eval('player' + currentslot + 'SO.data.playerDat.calebluck');
				calebagility = eval('player' + currentslot + 'SO.data.playerDat.calebagility');
				calebmagicdamageX = eval('player' + currentslot + 'SO.data.playerDat.calebmagicdamageX');
				calebmagicdefenseX = eval('player' + currentslot + 'SO.data.playerDat.calebmagicdefenseX');
				calebstrengthX = eval('player' + currentslot + 'SO.data.playerDat.calebstrengthX');
				calebdefenseX = eval('player' + currentslot + 'SO.data.playerDat.calebdefenseX');
				calebluckX = eval('player' + currentslot + 'SO.data.playerDat.calebluckX');
				calebagilityX = eval('player' + currentslot + 'SO.data.playerDat.calebagilityX');
				calebfireElement = eval('player' + currentslot + 'SO.data.playerDat.calebfireElement');
				calebdarkElement = eval('player' + currentslot + 'SO.data.playerDat.calebdarkElement');
				calebiceElement = eval('player' + currentslot + 'SO.data.playerDat.calebiceElement');
				calebthunderElement = eval('player' + currentslot + 'SO.data.playerDat.calebthunderElement');
				sword = eval('player' + currentslot + 'SO.data.playerDat.sword');
				swordname = eval('player' + currentslot + 'SO.data.playerDat.swordname');
				corereghealth = eval('player' + currentslot + 'SO.data.playerDat.corereghealth');
				coreregmana = eval('player' + currentslot + 'SO.data.playerDat.coreregmana');
				coreregstamina = eval('player' + currentslot + 'SO.data.playerDat.coreregstamina');
				calebreghealth = eval('player' + currentslot + 'SO.data.playerDat.calebreghealth');
				calebregmana = eval('player' + currentslot + 'SO.data.playerDat.calebregmana');
				calebregstamina = eval('player' + currentslot + 'SO.data.playerDat.calebregstamina');
				normalspeed = eval('player' + currentslot + 'SO.data.playerDat.normalspeed');
				orgspeed = eval('player' + currentslot + 'SO.data.playerDat.orgspeed');
				potion = eval('player' + currentslot + 'SO.data.playerDat.potion');
				elixir = eval('player' + currentslot + 'SO.data.playerDat.elixir');
				remedy = eval('player' + currentslot + 'SO.data.playerDat.remedy');
				ether = eval('player' + currentslot + 'SO.data.playerDat.ether');
				limit = eval('player' + currentslot + 'SO.data.playerDat.limit');
				bottle = eval('player' + currentslot + 'SO.data.playerDat.bottle');
				areabattle = eval('player' + currentslot + 'SO.data.playerDat.areabattle');
				areascreen = eval('player' + currentslot + 'SO.data.playerDat.areascreen');
				footstepsound = eval('player' + currentslot + 'SO.data.playerDat.footstepsound');
				walkthrough = eval('player' + currentslot + 'SO.data.playerDat.walkthrough');
				champion = eval('player' + currentslot + 'SO.data.playerDat.champion');
				playerZ = eval('player' + currentslot + 'SO.data.playerDat.playerZ');
				floorz = eval('player' + currentslot + 'SO.data.playerDat.floorz');
				forcenotrun = eval('player' + currentslot + 'SO.data.playerDat.forcenotrun');
				restorespeed = eval('player' + currentslot + 'SO.data.playerDat.restorespeed');
				savedateday = eval('player' + currentslot + 'SO.data.playerDat.savedateday');
				savedateyear = eval('player' + currentslot + 'SO.data.playerDat.savedateyear');
				savedatemonth = eval('player' + currentslot + 'SO.data.playerDat.savedatemonth');
				saveseconds = eval('player' + currentslot + 'SO.data.playerDat.saveseconds');
				saveminutes = eval('player' + currentslot + 'SO.data.playerDat.saveminutes');
				savehours = eval('player' + currentslot + 'SO.data.playerDat.savehours');
				numofluckyhits = eval('player' + currentslot + 'SO.data.playerDat.numofluckyhits');
				numofmedals = eval('player' + currentslot + 'SO.data.playerDat.numofmedals');
				medalcharm = eval('player' + currentslot + 'SO.data.playerDat.medalcharm');
				medalcharms = eval('player' + currentslot + 'SO.data.playerDat.medalcharms');
				medalmeeting = eval('player' + currentslot + 'SO.data.playerDat.medalmeeting');
				medalrookie = eval('player' + currentslot + 'SO.data.playerDat.medalrookie');
				medalveteran = eval('player' + currentslot + 'SO.data.playerDat.medalveteran');
				medallegend = eval('player' + currentslot + 'SO.data.playerDat.medallegend');
				medalhelper = eval('player' + currentslot + 'SO.data.playerDat.medalhelper');
				medalswordfish = eval('player' + currentslot + 'SO.data.playerDat.medalswordfish');
				medalawakened = eval('player' + currentslot + 'SO.data.playerDat.medalawakened');
				medalpoet = eval('player' + currentslot + 'SO.data.playerDat.medalpoet');
				medalmeeting1 = eval('player' + currentslot + 'SO.data.playerDat.medalmeeting1');
				medalmeeting2 = eval('player' + currentslot + 'SO.data.playerDat.medalmeeting2');
				medaldiglet = eval('player' + currentslot + 'SO.data.playerDat.medaldiglet');
				medalherbivore = eval('player' + currentslot + 'SO.data.playerDat.medalherbivore');
				medalflawless = eval('player' + currentslot + 'SO.data.playerDat.medalflawless');
				medalflawlessX = eval('player' + currentslot + 'SO.data.playerDat.medalflawlessX');
				medaljuggernaught = eval('player' + currentslot + 'SO.data.playerDat.medaljuggernaught');
				medalaquaman = eval('player' + currentslot + 'SO.data.playerDat.medalaquaman');
				medalperfection = eval('player' + currentslot + 'SO.data.playerDat.medalperfection');
				changediff = eval('player' + currentslot + 'SO.data.playerDat.changediff');
				sfxmute = eval('player' + currentslot + 'SO.data.playerDat.sfxmute');
				night = eval('player' + currentslot + 'SO.data.playerDat.night');
				camera = eval('player' + currentslot + 'SO.data.playerDat.camera');
				hudvisible = eval('player' + currentslot + 'SO.data.playerDat.hudvisible');
				menuvisible = eval('player' + currentslot + 'SO.data.playerDat.menuvisible');
				gamequality = eval('player' + currentslot + 'SO.data.playerDat.gamequality');
				battlequality = eval('player' + currentslot + 'SO.data.playerDat.battlequality');
				menuquality = eval('player' + currentslot + 'SO.data.playerDat.menuquality');
				counter = eval('player' + currentslot + 'SO.data.playerDat.counter');
				counter2 = eval('player' + currentslot + 'SO.data.playerDat.counter2');
				counter3 = eval('player' + currentslot + 'SO.data.playerDat.counter3');
				counter2X = eval('player' + currentslot + 'SO.data.playerDat.counter2X');
				counter3X = eval('player' + currentslot + 'SO.data.playerDat.counter3X');
				counterminute = eval('player' + currentslot + 'SO.data.playerDat.counterminute');
				counterhour = eval('player' + currentslot + 'SO.data.playerDat.counterhour');
				housegrade = eval('player' + currentslot + 'SO.data.playerDat.housegrade');
				housegrade2 = eval('player' + currentslot + 'SO.data.playerDat.housegrade2');
				limitless = eval('player' + currentslot + 'SO.data.playerDat.limitless');
				housecarpet = eval('player' + currentslot + 'SO.data.playerDat.housecarpet');
				housechair = eval('player' + currentslot + 'SO.data.playerDat.housechair');
				housewardrobe = eval('player' + currentslot + 'SO.data.playerDat.housewardrobe');
				housecandelebra = eval('player' + currentslot + 'SO.data.playerDat.housecandelebra');
				housepainting = eval('player' + currentslot + 'SO.data.playerDat.housepainting');
				enterhouse1 = eval('player' + currentslot + 'SO.data.playerDat.enterhouse1');
				enterhouse2 = eval('player' + currentslot + 'SO.data.playerDat.enterhouse2');
				questbag = eval('player' + currentslot + 'SO.data.playerDat.questbag');
				questbbag = eval('player' + currentslot + 'SO.data.playerDat.questbbag');
				questbeer = eval('player' + currentslot + 'SO.data.playerDat.questbeer');
				questfindbook = eval('player' + currentslot + 'SO.data.playerDat.questfindbook');
				questreturnbook = eval('player' + currentslot + 'SO.data.playerDat.questreturnbook');
				questwolf = eval('player' + currentslot + 'SO.data.playerDat.questwolf');
				questlove = eval('player' + currentslot + 'SO.data.playerDat.questlove');
				questink = eval('player' + currentslot + 'SO.data.playerDat.questink');
				questbrock = eval('player' + currentslot + 'SO.data.playerDat.questbrock');
				questnewintown = eval('player' + currentslot + 'SO.data.playerDat.questnewintown');
				questfindsword = eval('player' + currentslot + 'SO.data.playerDat.questfindsword');
				questfisher = eval('player' + currentslot + 'SO.data.playerDat.questfisher');
				questboar = eval('player' + currentslot + 'SO.data.playerDat.questboar');
				questfriend = eval('player' + currentslot + 'SO.data.playerDat.questfriend');
				questspitter = eval('player' + currentslot + 'SO.data.playerDat.questspitter');
				questgornak = eval('player' + currentslot + 'SO.data.playerDat.questgornak');
				questpotion = eval('player' + currentslot + 'SO.data.playerDat.questpotion');
				questhorse = eval('player' + currentslot + 'SO.data.playerDat.questhorse');
				questgamble = eval('player' + currentslot + 'SO.data.playerDat.questgamble');
				questthanator = eval('player' + currentslot + 'SO.data.playerDat.questthanator');
				questgnome = eval('player' + currentslot + 'SO.data.playerDat.questgnome');
				questsick = eval('player' + currentslot + 'SO.data.playerDat.questsick');
				questdonovan = eval('player' + currentslot + 'SO.data.playerDat.questdonovan');
				questshow = eval('player' + currentslot + 'SO.data.playerDat.questshow');
				questdrugs = eval('player' + currentslot + 'SO.data.playerDat.questdrugs');
				questdrunk = eval('player' + currentslot + 'SO.data.playerDat.questdrunk');
				questitemhunter = eval('player' + currentslot + 'SO.data.playerDat.questitemhunter');
				questtreasure = eval('player' + currentslot + 'SO.data.playerDat.questtreasure');
				questkidnap = eval('player' + currentslot + 'SO.data.playerDat.questkidnap');
				questdeadman = eval('player' + currentslot + 'SO.data.playerDat.questdeadman');
				questbagX = eval('player' + currentslot + 'SO.data.playerDat.questbagX');
				questbbagX = eval('player' + currentslot + 'SO.data.playerDat.questbbagX');
				questbeerX = eval('player' + currentslot + 'SO.data.playerDat.questbeerX');
				questfindbookX = eval('player' + currentslot + 'SO.data.playerDat.questfindbookX');
				questreturnbookX = eval('player' + currentslot + 'SO.data.playerDat.questreturnbookX');
				questwolfX = eval('player' + currentslot + 'SO.data.playerDat.questwolfX');
				questloveX = eval('player' + currentslot + 'SO.data.playerDat.questloveX');
				questinkX = eval('player' + currentslot + 'SO.data.playerDat.questinkX');
				questbrockX = eval('player' + currentslot + 'SO.data.playerDat.questbrockX');
				questnewintownX = eval('player' + currentslot + 'SO.data.playerDat.questnewintownX');
				questfindswordX = eval('player' + currentslot + 'SO.data.playerDat.questfindswordX');
				questfisherX = eval('player' + currentslot + 'SO.data.playerDat.questfisherX');
				questboarX = eval('player' + currentslot + 'SO.data.playerDat.questboarX');
				questfriendX = eval('player' + currentslot + 'SO.data.playerDat.questfriendX');
				questspitterX = eval('player' + currentslot + 'SO.data.playerDat.questspitterX');
				questgornakX = eval('player' + currentslot + 'SO.data.playerDat.questgornakX');
				questpotionX = eval('player' + currentslot + 'SO.data.playerDat.questpotionX');
				questhorseX = eval('player' + currentslot + 'SO.data.playerDat.questhorseX');
				questgambleX = eval('player' + currentslot + 'SO.data.playerDat.questgambleX');
				questthanatorX = eval('player' + currentslot + 'SO.data.playerDat.questthanatorX');
				questgnomeX = eval('player' + currentslot + 'SO.data.playerDat.questgnomeX');
				questsickX = eval('player' + currentslot + 'SO.data.playerDat.questsickX');
				questdonovanX = eval('player' + currentslot + 'SO.data.playerDat.questdonovanX');
				questshowX = eval('player' + currentslot + 'SO.data.playerDat.questshowX');
				questdrugsX = eval('player' + currentslot + 'SO.data.playerDat.questdrugsX');
				questdrunkX = eval('player' + currentslot + 'SO.data.playerDat.questdrunkX');
				questitemhunterX = eval('player' + currentslot + 'SO.data.playerDat.questitemhunterX');
				questtreasureX = eval('player' + currentslot + 'SO.data.playerDat.questtreasureX');
				questkidnapX = eval('player' + currentslot + 'SO.data.playerDat.questkidnapX');
				questdeadmanX = eval('player' + currentslot + 'SO.data.playerDat.questdeadmanX');
				numquests = eval('player' + currentslot + 'SO.data.playerDat.numquests');
				sessions = eval('player' + currentslot + 'SO.data.playerDat.sessions') + 1;
				firstcoremagic1 = eval('player' + currentslot + 'SO.data.playerDat.firstcoremagic1');
				firstcoremagic2 = eval('player' + currentslot + 'SO.data.playerDat.firstcoremagic2');
				firstcoremagic3 = eval('player' + currentslot + 'SO.data.playerDat.firstcoremagic3');
				firstcoremagic4 = eval('player' + currentslot + 'SO.data.playerDat.firstcoremagic4');
				firstcoremagic5 = eval('player' + currentslot + 'SO.data.playerDat.firstcoremagic5');
				firstcoremagic6 = eval('player' + currentslot + 'SO.data.playerDat.firstcoremagic6');
				firstcalebmagic1 = eval('player' + currentslot + 'SO.data.playerDat.firstcalebmagic1');
				firstcalebmagic2 = eval('player' + currentslot + 'SO.data.playerDat.firstcalebmagic2');
				firstcalebmagic3 = eval('player' + currentslot + 'SO.data.playerDat.firstcalebmagic3');
				firstcalebmagic4 = eval('player' + currentslot + 'SO.data.playerDat.firstcalebmagic4');
				firstcalebmagic5 = eval('player' + currentslot + 'SO.data.playerDat.firstcalebmagic5');
				firstcalebmagic6 = eval('player' + currentslot + 'SO.data.playerDat.firstcalebmagic6');
				numpoet = eval('player' + currentslot + 'SO.data.playerDat.numpoet');
				founddouglas = eval('player' + currentslot + 'SO.data.playerDat.founddouglas');
				namecolor = eval('player' + currentslot + 'SO.data.playerDat.namecolor');
				rewardcolor = eval('player' + currentslot + 'SO.data.playerDat.rewardcolor');
				mainquest = eval('player' + currentslot + 'SO.data.playerDat.mainquest');
				imrahischat = eval('player' + currentslot + 'SO.data.playerDat.imrahischat');
				luvannonchat = eval('player' + currentslot + 'SO.data.playerDat.luvannonchat');
				ghosttalk = eval('player' + currentslot + 'SO.data.playerDat.ghosttalk');
				activequests = eval('player' + currentslot + 'SO.data.playerDat.activequests');
				completedquests = eval('player' + currentslot + 'SO.data.playerDat.completedquests');
				qpage = eval('player' + currentslot + 'SO.data.playerDat.qpage');
				musicmute = eval('player' + currentslot + 'SO.data.playerDat.musicmute');
				volumez = eval('player' + currentslot + 'SO.data.playerDat.volumez');
				areabg = eval('player' + currentslot + 'SO.data.playerDat.areabg');
				coregotlimit = eval('player' + currentslot + 'SO.data.playerDat.coregotlimit');
				calebgotlimit = eval('player' + currentslot + 'SO.data.playerDat.calebgotlimit');
				hotinfo = eval('player' + currentslot + 'SO.data.playerDat.hotinfo');
				cinemacam = eval('player' + currentslot + 'SO.data.playerDat.cinemacam');
				camXpoint = eval('player' + currentslot + 'SO.data.playerDat.camXpoint');
				camYpoint = eval('player' + currentslot + 'SO.data.playerDat.camYpoint');
				currentstage = eval('player' + currentslot + 'SO.data.playerDat.currentstage');
				newmusic = eval('player' + currentslot + 'SO.data.playerDat.currentmusic');
				currentmusic = '';
				gotshovel = eval('player' + currentslot + 'SO.data.playerDat.gotshovel');
				numofdigs = eval('player' + currentslot + 'SO.data.playerDat.numofdigs');
				gotfirstpotion = eval('player' + currentslot + 'SO.data.playerDat.gotfirstpotion');
				gotfirstelixir = eval('player' + currentslot + 'SO.data.playerDat.gotfirstelixir');
				gotfirstether = eval('player' + currentslot + 'SO.data.playerDat.gotfirstether');
				gotfirstremedy = eval('player' + currentslot + 'SO.data.playerDat.gotfirstremedy');
				gotfirstlimit = eval('player' + currentslot + 'SO.data.playerDat.gotfirstlimit');
				gotfirstbottle = eval('player' + currentslot + 'SO.data.playerDat.gotfirstbottle');
				firstrig = eval('player' + currentslot + 'SO.data.playerDat.firstrig');
				firstgornak = eval('player' + currentslot + 'SO.data.playerDat.firstgornak');
				firstgornak2 = eval('player' + currentslot + 'SO.data.playerDat.firstgornak2');
				firstcamera = eval('player' + currentslot + 'SO.data.playerDat.firstcamera');
				medalpoet1 = eval('player' + currentslot + 'SO.data.playerDat.medalpoet1');
				medalpoet2 = eval('player' + currentslot + 'SO.data.playerDat.medalpoet2');
				medalpoet3 = eval('player' + currentslot + 'SO.data.playerDat.medalpoet3');
				medalmeeting1 = eval('player' + currentslot + 'SO.data.playerDat.medalmeeting1');
				medalmeeting2 = eval('player' + currentslot + 'SO.data.playerDat.medalmeeting2');
				sonyacoins = eval('player' + currentslot + 'SO.data.playerDat.sonyacoins');
				janucoins = eval('player' + currentslot + 'SO.data.playerDat.janucoins');
				firstthanator = eval('player' + currentslot + 'SO.data.playerDat.firstthanator');
				firststalker = eval('player' + currentslot + 'SO.data.playerDat.firststalker');
				firstcarrion = eval('player' + currentslot + 'SO.data.playerDat.firstcarrion');
				firstghoul = eval('player' + currentslot + 'SO.data.playerDat.firstghoul');
				firstthanatorX = eval('player' + currentslot + 'SO.data.playerDat.firstthanatorX');
				firststalkerX = eval('player' + currentslot + 'SO.data.playerDat.firststalkerX');
				firstcarrionX = eval('player' + currentslot + 'SO.data.playerDat.firstcarrionX');
				firstgornakX = eval('player' + currentslot + 'SO.data.playerDat.firstgornakX');
				firstghoulX = eval('player' + currentslot + 'SO.data.playerDat.firstghoulX');
				gotfirstc = eval('player' + currentslot + 'SO.data.playerDat.gotfirstc');
				fame = eval('player' + currentslot + 'SO.data.playerDat.fame');
				shroom1 = eval('player' + currentslot + 'SO.data.playerDat.shroom1');
				shroom2 = eval('player' + currentslot + 'SO.data.playerDat.shroom2');
				shroom3 = eval('player' + currentslot + 'SO.data.playerDat.shroom3');
				shroom4 = eval('player' + currentslot + 'SO.data.playerDat.shroom4');
				butterfly1 = eval('player' + currentslot + 'SO.data.playerDat.butterfly1');
				butterfly2 = eval('player' + currentslot + 'SO.data.playerDat.butterfly2');
				collectibles = eval('player' + currentslot + 'SO.data.playerDat.collectibles');
				shroomitem1 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem1');
				shroomitem2 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem2');
				shroomitem3 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem3');
				shroomitem4 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem4');
				shroomitem5 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem5');
				shroomitem6 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem6');
				shroomitem7 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem7');
				shroomitem8 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem8');
				shroomitem9 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem9');
				shroomitem10 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem10');
				shroomitem11 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem11');
				shroomitem12 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem12');
				shroomitem13 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem13');
				shroomitem14 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem14');
				shroomitem15 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem15');
				shroomitem16 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem16');
				shroomitem17 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem17');
				shroomitem18 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem18');
				shroomitem19 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem19');
				shroomitem20 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem20');
				shroomitem21 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem21');
				shroomitem22 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem22');
				shroomitem23 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem23');
				shroomitem24 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem24');
				shroomitem25 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem25');
				shroomitem26 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem26');
				shroomitem27 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem27');
				shroomitem28 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem28');
				shroomitem29 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem29');
				shroomitem30 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem30');
				shroomitem31 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem31');
				shroomitem32 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem32');
				shroomitem33 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem33');
				shroomitem34 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem34');
				shroomitem35 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem35');
				shroomitem36 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem36');
				shroomitem37 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem37');
				shroomitem38 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem38');
				shroomitem39 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem39');
				shroomitem40 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem40');
				shroomitem41 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem41');
				shroomitem42 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem42');
				shroomitem43 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem43');
				shroomitem44 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem44');
				shroomitem45 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem45');
				shroomitem46 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem46');
				shroomitem47 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem47');
				shroomitem48 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem48');
				shroomitem49 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem49');
				shroomitem50 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem50');
				shroomitem51 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem51');
				shroomitem52 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem52');
				shroomitem53 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem53');
				shroomitem54 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem54');
				shroomitem55 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem55');
				shroomitem56 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem56');
				shroomitem57 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem57');
				shroomitem58 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem58');
				shroomitem59 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem59');
				shroomitem60 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem60');
				shroomitem61 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem61');
				shroomitem62 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem62');
				shroomitem63 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem63');
				shroomitem64 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem64');
				shroomitem65 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem65');
				shroomitem66 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem66');
				shroomitem67 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem67');
				shroomitem68 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem68');
				shroomitem69 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem69');
				shroomitem70 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem70');
				shroomitem71 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem71');
				shroomitem72 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem72');
				shroomitem73 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem73');
				shroomitem74 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem74');
				shroomitem75 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem75');
				shroomitem76 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem76');
				shroomitem77 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem77');
				shroomitem78 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem78');
				shroomitem79 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem79');
				shroomitem80 = eval('player' + currentslot + 'SO.data.playerDat.shroomitem80');
				butterflyitem1 = eval('player' + currentslot + 'SO.data.playerDat.butterflyitem1');
				butterflyitem2 = eval('player' + currentslot + 'SO.data.playerDat.butterflyitem2');
				butterflyitem3 = eval('player' + currentslot + 'SO.data.playerDat.butterflyitem3');
				butterflyitem4 = eval('player' + currentslot + 'SO.data.playerDat.butterflyitem4');
				butterflyitem5 = eval('player' + currentslot + 'SO.data.playerDat.butterflyitem5');
				butterflyitem6 = eval('player' + currentslot + 'SO.data.playerDat.butterflyitem6');
				butterflyitem7 = eval('player' + currentslot + 'SO.data.playerDat.butterflyitem7');
				butterflyitem8 = eval('player' + currentslot + 'SO.data.playerDat.butterflyitem8');
				butterflyitem9 = eval('player' + currentslot + 'SO.data.playerDat.butterflyitem9');
				butterflyitem10 = eval('player' + currentslot + 'SO.data.playerDat.butterflyitem10');
				shovel1 = eval('player' + currentslot + 'SO.data.playerDat.shovel1');
				shovel2 = eval('player' + currentslot + 'SO.data.playerDat.shovel2');
				shovel3 = eval('player' + currentslot + 'SO.data.playerDat.shovel3');
				shovel4 = eval('player' + currentslot + 'SO.data.playerDat.shovel4');
				shovel5 = eval('player' + currentslot + 'SO.data.playerDat.shovel5');
				shovel6 = eval('player' + currentslot + 'SO.data.playerDat.shovel6');
				shovel7 = eval('player' + currentslot + 'SO.data.playerDat.shovel7');
				shovel8 = eval('player' + currentslot + 'SO.data.playerDat.shovel8');
				shovel9 = eval('player' + currentslot + 'SO.data.playerDat.shovel9');
				shovel10 = eval('player' + currentslot + 'SO.data.playerDat.shovel10');
				item1 = eval('player' + currentslot + 'SO.data.playerDat.item1');
				item2 = eval('player' + currentslot + 'SO.data.playerDat.item2');
				item3 = eval('player' + currentslot + 'SO.data.playerDat.item3');
				item4 = eval('player' + currentslot + 'SO.data.playerDat.item4');
				item5 = eval('player' + currentslot + 'SO.data.playerDat.item5');
				item6 = eval('player' + currentslot + 'SO.data.playerDat.item6');
				item7 = eval('player' + currentslot + 'SO.data.playerDat.item7');
				item8 = eval('player' + currentslot + 'SO.data.playerDat.item8');
				item9 = eval('player' + currentslot + 'SO.data.playerDat.item9');
				item10 = eval('player' + currentslot + 'SO.data.playerDat.item10');
				item11 = eval('player' + currentslot + 'SO.data.playerDat.item11');
				item12 = eval('player' + currentslot + 'SO.data.playerDat.item12');
				item13 = eval('player' + currentslot + 'SO.data.playerDat.item13');
				item14 = eval('player' + currentslot + 'SO.data.playerDat.item14');
				item15 = eval('player' + currentslot + 'SO.data.playerDat.item15');
				item16 = eval('player' + currentslot + 'SO.data.playerDat.item16');
				item17 = eval('player' + currentslot + 'SO.data.playerDat.item17');
				item18 = eval('player' + currentslot + 'SO.data.playerDat.item18');
				item19 = eval('player' + currentslot + 'SO.data.playerDat.item19');
				item20 = eval('player' + currentslot + 'SO.data.playerDat.item20');
				item21 = eval('player' + currentslot + 'SO.data.playerDat.item21');
				item22 = eval('player' + currentslot + 'SO.data.playerDat.item22');
				item23 = eval('player' + currentslot + 'SO.data.playerDat.item23');
				item24 = eval('player' + currentslot + 'SO.data.playerDat.item24');
				item25 = eval('player' + currentslot + 'SO.data.playerDat.item25');
				item26 = eval('player' + currentslot + 'SO.data.playerDat.item26');
				item27 = eval('player' + currentslot + 'SO.data.playerDat.item27');
				item28 = eval('player' + currentslot + 'SO.data.playerDat.item28');
				item29 = eval('player' + currentslot + 'SO.data.playerDat.item29');
				item30 = eval('player' + currentslot + 'SO.data.playerDat.item30');
				switchzn1 = eval('player' + currentslot + 'SO.data.playerDat.switchzn1');
				switchzn2 = eval('player' + currentslot + 'SO.data.playerDat.switchzn2');
				switchzn3 = eval('player' + currentslot + 'SO.data.playerDat.switchzn3');
				switchzn4 = eval('player' + currentslot + 'SO.data.playerDat.switchzn4');
				switchzn5 = eval('player' + currentslot + 'SO.data.playerDat.switchzn5');
				switchzn6 = eval('player' + currentslot + 'SO.data.playerDat.switchzn6');
				switchzn7 = eval('player' + currentslot + 'SO.data.playerDat.switchzn7');
				switchzn8 = eval('player' + currentslot + 'SO.data.playerDat.switchzn8');
				switchzn9 = eval('player' + currentslot + 'SO.data.playerDat.switchzn9');
				obj0 = eval('player' + currentslot + 'SO.data.playerDat.obj0');
				obj1 = eval('player' + currentslot + 'SO.data.playerDat.obj1');
				obj2 = eval('player' + currentslot + 'SO.data.playerDat.obj2');
				obj3 = eval('player' + currentslot + 'SO.data.playerDat.obj3');
				obj4 = eval('player' + currentslot + 'SO.data.playerDat.obj4');
				obj5 = eval('player' + currentslot + 'SO.data.playerDat.obj5');
				obj6 = eval('player' + currentslot + 'SO.data.playerDat.obj6');
				obj7 = eval('player' + currentslot + 'SO.data.playerDat.obj7');
				obj8 = eval('player' + currentslot + 'SO.data.playerDat.obj8');
				obj9 = eval('player' + currentslot + 'SO.data.playerDat.obj9');
				obj10 = eval('player' + currentslot + 'SO.data.playerDat.obj10');
				obj11 = eval('player' + currentslot + 'SO.data.playerDat.obj11');
				obj12 = eval('player' + currentslot + 'SO.data.playerDat.obj12');
				obj13 = eval('player' + currentslot + 'SO.data.playerDat.obj13');
				obj14 = eval('player' + currentslot + 'SO.data.playerDat.obj14');
				obj15 = eval('player' + currentslot + 'SO.data.playerDat.obj15');
				obj16 = eval('player' + currentslot + 'SO.data.playerDat.obj16');
				obj17 = eval('player' + currentslot + 'SO.data.playerDat.obj17');
				obj18 = eval('player' + currentslot + 'SO.data.playerDat.obj18');
				obj19 = eval('player' + currentslot + 'SO.data.playerDat.obj19');
				obj20 = eval('player' + currentslot + 'SO.data.playerDat.obj20');
				obj21 = eval('player' + currentslot + 'SO.data.playerDat.obj21');
				obj22 = eval('player' + currentslot + 'SO.data.playerDat.obj22');
				obj23 = eval('player' + currentslot + 'SO.data.playerDat.obj23');
				obj24 = eval('player' + currentslot + 'SO.data.playerDat.obj24');
				obj25 = eval('player' + currentslot + 'SO.data.playerDat.obj25');
				obj26 = eval('player' + currentslot + 'SO.data.playerDat.obj26');
				obj27 = eval('player' + currentslot + 'SO.data.playerDat.obj27');
				obj28 = eval('player' + currentslot + 'SO.data.playerDat.obj28');
				obj29 = eval('player' + currentslot + 'SO.data.playerDat.obj29');
				obj30 = eval('player' + currentslot + 'SO.data.playerDat.obj30');
				objname0 = eval('player' + currentslot + 'SO.data.playerDat.objname0');
				objname1 = eval('player' + currentslot + 'SO.data.playerDat.objname1');
				objname2 = eval('player' + currentslot + 'SO.data.playerDat.objname2');
				objname3 = eval('player' + currentslot + 'SO.data.playerDat.objname3');
				objname4 = eval('player' + currentslot + 'SO.data.playerDat.objname4');
				objname5 = eval('player' + currentslot + 'SO.data.playerDat.objname5');
				objname6 = eval('player' + currentslot + 'SO.data.playerDat.objname6');
				objname7 = eval('player' + currentslot + 'SO.data.playerDat.objname7');
				objname8 = eval('player' + currentslot + 'SO.data.playerDat.objname8');
				objname9 = eval('player' + currentslot + 'SO.data.playerDat.objname9');
				objname10 = eval('player' + currentslot + 'SO.data.playerDat.objname10');
				objname11 = eval('player' + currentslot + 'SO.data.playerDat.objname11');
				objname12 = eval('player' + currentslot + 'SO.data.playerDat.objname12');
				objname13 = eval('player' + currentslot + 'SO.data.playerDat.objname13');
				objname14 = eval('player' + currentslot + 'SO.data.playerDat.objname14');
				objname15 = eval('player' + currentslot + 'SO.data.playerDat.objname15');
				objname16 = eval('player' + currentslot + 'SO.data.playerDat.objname16');
				objname17 = eval('player' + currentslot + 'SO.data.playerDat.objname17');
				objname18 = eval('player' + currentslot + 'SO.data.playerDat.objname18');
				objname19 = eval('player' + currentslot + 'SO.data.playerDat.objname19');
				objname20 = eval('player' + currentslot + 'SO.data.playerDat.objname20');
				objname21 = eval('player' + currentslot + 'SO.data.playerDat.objname21');
				objname22 = eval('player' + currentslot + 'SO.data.playerDat.objname22');
				objname23 = eval('player' + currentslot + 'SO.data.playerDat.objname23');
				objname24 = eval('player' + currentslot + 'SO.data.playerDat.objname24');
				objname25 = eval('player' + currentslot + 'SO.data.playerDat.objname25');
				objname26 = eval('player' + currentslot + 'SO.data.playerDat.objname26');
				objname27 = eval('player' + currentslot + 'SO.data.playerDat.objname27');
				objname28 = eval('player' + currentslot + 'SO.data.playerDat.objname28');
				objname29 = eval('player' + currentslot + 'SO.data.playerDat.objname29');
				objname30 = eval('player' + currentslot + 'SO.data.playerDat.objname30');
				darconstory = eval('player' + currentslot + 'SO.data.playerDat.darconstory');
				guarduniform = eval('player' + currentslot + 'SO.data.playerDat.guarduniform');
				goteyepatches = eval('player' + currentslot + 'SO.data.playerDat.goteyepatches');
				gotmaskcape = eval('player' + currentslot + 'SO.data.playerDat.gotmaskcape');
				gotgrayskin = eval('player' + currentslot + 'SO.data.playerDat.gotgrayskin');
				gotredskin = eval('player' + currentslot + 'SO.data.playerDat.gotredskin');
				gotmask1 = eval('player' + currentslot + 'SO.data.playerDat.gotmask1');
				gotmask2 = eval('player' + currentslot + 'SO.data.playerDat.gotmask2');
				gotmask3 = eval('player' + currentslot + 'SO.data.playerDat.gotmask3');
				gotmask4 = eval('player' + currentslot + 'SO.data.playerDat.gotmask4');
				gotbandana = eval('player' + currentslot + 'SO.data.playerDat.gotbandana');
				gotfedorahat = eval('player' + currentslot + 'SO.data.playerDat.gotfedorahat');
				gottophat = eval('player' + currentslot + 'SO.data.playerDat.gottophat');
				gotthunder = eval('player' + currentslot + 'SO.data.playerDat.gotthunder');
				gotblackpearl = eval('player' + currentslot + 'SO.data.playerDat.gotblackpearl');
				gotserpentnose = eval('player' + currentslot + 'SO.data.playerDat.gotserpentnose');
				gotwarpaint = eval('player' + currentslot + 'SO.data.playerDat.gotwarpaint');
				goteyebleed = eval('player' + currentslot + 'SO.data.playerDat.goteyebleed');
				goteyeshadow = eval('player' + currentslot + 'SO.data.playerDat.goteyeshadow');
				gotbloodshoteyes = eval('player' + currentslot + 'SO.data.playerDat.gotbloodshoteyes');
				gotundeadeyes = eval('player' + currentslot + 'SO.data.playerDat.gotundeadeyes');
				gotdemoneyes = eval('player' + currentslot + 'SO.data.playerDat.gotdemoneyes');
				capeon = eval('player' + currentslot + 'SO.data.playerDat.capeon');
				maskoff = eval('player' + currentslot + 'SO.data.playerDat.maskoff');
				extrabelt = eval('player' + currentslot + 'SO.data.playerDat.extrabelt');
				barechest = eval('player' + currentslot + 'SO.data.playerDat.barechest');
				outfit = eval('player' + currentslot + 'SO.data.playerDat.outfit');
				hair = eval('player' + currentslot + 'SO.data.playerDat.hair');
				earring = eval('player' + currentslot + 'SO.data.playerDat.earring');
				skinz = eval('player' + currentslot + 'SO.data.playerDat.skinz');
				freckles = eval('player' + currentslot + 'SO.data.playerDat.freckles');
				frecklesalpha = eval('player' + currentslot + 'SO.data.playerDat.frecklesalpha');
				nosez = eval('player' + currentslot + 'SO.data.playerDat.nosez');
				eyepatch = eval('player' + currentslot + 'SO.data.playerDat.eyepatch');
				eyesboth = eval('player' + currentslot + 'SO.data.playerDat.eyesboth');
				eyesparkle1 = eval('player' + currentslot + 'SO.data.playerDat.eyesparkle1');
				eyesparkle2 = eval('player' + currentslot + 'SO.data.playerDat.eyesparkle2');
				eyetype1 = eval('player' + currentslot + 'SO.data.playerDat.eyetype1');
				eyetype2 = eval('player' + currentslot + 'SO.data.playerDat.eyetype2');
				eyescale1 = eval('player' + currentslot + 'SO.data.playerDat.eyescale1');
				eyescale2 = eval('player' + currentslot + 'SO.data.playerDat.eyescale2');
				eyewhite1 = eval('player' + currentslot + 'SO.data.playerDat.eyewhite1');
				eyewhite2 = eval('player' + currentslot + 'SO.data.playerDat.eyewhite2');
				eyebrows = eval('player' + currentslot + 'SO.data.playerDat.eyebrows');
				eyesquint = eval('player' + currentslot + 'SO.data.playerDat.eyesquint');
				maskz = eval('player' + currentslot + 'SO.data.playerDat.maskz');
				tattoo = eval('player' + currentslot + 'SO.data.playerDat.tattoo');
				scar = eval('player' + currentslot + 'SO.data.playerDat.scar');
				beard = eval('player' + currentslot + 'SO.data.playerDat.beard');
				capecolor = eval('player' + currentslot + 'SO.data.playerDat.capecolor');
				cape_addon = eval('player' + currentslot + 'SO.data.playerDat.cape_addon');
				necklace = eval('player' + currentslot + 'SO.data.playerDat.necklace');
				jacket = eval('player' + currentslot + 'SO.data.playerDat.jacket');
				pouches = eval('player' + currentslot + 'SO.data.playerDat.pouches');
				belt = eval('player' + currentslot + 'SO.data.playerDat.belt');
				gauntlet = eval('player' + currentslot + 'SO.data.playerDat.gauntlet');
				arms = eval('player' + currentslot + 'SO.data.playerDat.arms');
				glove1 = eval('player' + currentslot + 'SO.data.playerDat.glove1');
				glove2 = eval('player' + currentslot + 'SO.data.playerDat.glove2');
				pants = eval('player' + currentslot + 'SO.data.playerDat.pants');
				shoes = eval('player' + currentslot + 'SO.data.playerDat.shoes');
				tattooalpha = eval('player' + currentslot + 'SO.data.playerDat.tattooalpha');
				scaralpha = eval('player' + currentslot + 'SO.data.playerDat.scaralpha');
				hairtintrb = eval('player' + currentslot + 'SO.data.playerDat.hairtintrb');
				hairtintgb = eval('player' + currentslot + 'SO.data.playerDat.hairtintgb');
				hairtintbb = eval('player' + currentslot + 'SO.data.playerDat.hairtintbb');
				eyepatchtintrb = eval('player' + currentslot + 'SO.data.playerDat.eyepatchtintrb');
				eyepatchtintbb = eval('player' + currentslot + 'SO.data.playerDat.eyepatchtintbb');
				eyepatchtintgb = eval('player' + currentslot + 'SO.data.playerDat.eyepatchtintgb');
				eye1tintrb = eval('player' + currentslot + 'SO.data.playerDat.eye1tintrb');
				eye1tintbb = eval('player' + currentslot + 'SO.data.playerDat.eye1tintbb');
				eye1tintgb = eval('player' + currentslot + 'SO.data.playerDat.eye1tintgb');
				eye2tintrb = eval('player' + currentslot + 'SO.data.playerDat.eye2tintrb');
				eye2tintbb = eval('player' + currentslot + 'SO.data.playerDat.eye2tintbb');
				eye2tintgb = eval('player' + currentslot + 'SO.data.playerDat.eye2tintgb');
				masktintrb = eval('player' + currentslot + 'SO.data.playerDat.masktintrb');
				masktintgb = eval('player' + currentslot + 'SO.data.playerDat.masktintgb');
				masktintbb = eval('player' + currentslot + 'SO.data.playerDat.masktintbb');
				tattootintrb = eval('player' + currentslot + 'SO.data.playerDat.tattootintrb');
				tattootintgb = eval('player' + currentslot + 'SO.data.playerDat.tattootintgb');
				tattootintbb = eval('player' + currentslot + 'SO.data.playerDat.tattootintbb');
				capetintrb = eval('player' + currentslot + 'SO.data.playerDat.capetintrb');
				capetintgb = eval('player' + currentslot + 'SO.data.playerDat.capetintgb');
				capetintbb = eval('player' + currentslot + 'SO.data.playerDat.capetintbb');
				necklacetintrb = eval('player' + currentslot + 'SO.data.playerDat.necklacetintrb');
				necklacetintgb = eval('player' + currentslot + 'SO.data.playerDat.necklacetintgb');
				necklacetintbb = eval('player' + currentslot + 'SO.data.playerDat.necklacetintbb');
				pouchtintrb = eval('player' + currentslot + 'SO.data.playerDat.pouchtintrb');
				pouchtintgb = eval('player' + currentslot + 'SO.data.playerDat.pouchtintgb');
				pouchtintbb = eval('player' + currentslot + 'SO.data.playerDat.pouchtintbb');
				belttintrb = eval('player' + currentslot + 'SO.data.playerDat.belttintrb');
				belttintgb = eval('player' + currentslot + 'SO.data.playerDat.belttintgb');
				belttintbb = eval('player' + currentslot + 'SO.data.playerDat.belttintbb');
				gauntlettintrb = eval('player' + currentslot + 'SO.data.playerDat.gauntlettintrb');
				gauntlettintgb = eval('player' + currentslot + 'SO.data.playerDat.gauntlettintgb');
				gauntlettintbb = eval('player' + currentslot + 'SO.data.playerDat.gauntlettintbb');
				armtintrb = eval('player' + currentslot + 'SO.data.playerDat.armtintrb');
				armtintgb = eval('player' + currentslot + 'SO.data.playerDat.armtintgb');
				armtintbb = eval('player' + currentslot + 'SO.data.playerDat.armtintbb');
				jackettintrb = eval('player' + currentslot + 'SO.data.playerDat.jackettintrb');
				jackettintgb = eval('player' + currentslot + 'SO.data.playerDat.jackettintgb');
				jackettintbb = eval('player' + currentslot + 'SO.data.playerDat.jackettintbb');
				glove1tintrb = eval('player' + currentslot + 'SO.data.playerDat.glove1tintrb');
				glove1tintgb = eval('player' + currentslot + 'SO.data.playerDat.glove1tintgb');
				glove1tintbb = eval('player' + currentslot + 'SO.data.playerDat.glove1tintbb');
				glove2tintrb = eval('player' + currentslot + 'SO.data.playerDat.glove2tintrb');
				glove2tintgb = eval('player' + currentslot + 'SO.data.playerDat.glove2tintgb');
				glove2tintbb = eval('player' + currentslot + 'SO.data.playerDat.glove2tintbb');
				panttintrb = eval('player' + currentslot + 'SO.data.playerDat.panttintrb');
				panttintgb = eval('player' + currentslot + 'SO.data.playerDat.panttintgb');
				panttintbb = eval('player' + currentslot + 'SO.data.playerDat.panttintbb');
				shoetintrb = eval('player' + currentslot + 'SO.data.playerDat.shoetintrb');
				shoetintgb = eval('player' + currentslot + 'SO.data.playerDat.shoetintgb');
				shoetintbb = eval('player' + currentslot + 'SO.data.playerDat.shoetintbb');
				skintintrb = eval('player' + currentslot + 'SO.data.playerDat.skintintrb');
				skintintgb = eval('player' + currentslot + 'SO.data.playerDat.skintintgb');
				skintintbb = eval('player' + currentslot + 'SO.data.playerDat.skintintbb');
				capeon_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.capeon_outfit1');
				maskoff_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.maskoff_outfit1');
				extrabelt_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.extrabelt_outfit1');
				barechest_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.barechest_outfit1');
				hair_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.hair_outfit1');
				earring_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.earring_outfit1');
				skinz_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.skinz_outfit1');
				freckles_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.freckles_outfit1');
				frecklesalpha_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.frecklesalpha_outfit1');
				nosez_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.nosez_outfit1');
				eyepatch_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eyepatch_outfit1');
				eyesboth_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eyesboth_outfit1');
				eyesparkle1_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eyesparkle1_outfit1');
				eyesparkle2_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eyesparkle2_outfit1');
				eyetype1_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eyetype1_outfit1');
				eyetype2_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eyetype2_outfit1');
				eyescale1_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eyescale1_outfit1');
				eyescale2_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eyescale2_outfit1');
				eyewhite1_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eyewhite1_outfit1');
				eyewhite2_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eyewhite2_outfit1');
				eyebrows_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eyebrows_outfit1');
				eyesquint_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eyesquint_outfit1');
				maskz_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.maskz_outfit1');
				tattoo_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.tattoo_outfit1');
				scar_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.scar_outfit1');
				beard_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.beard_outfit1');
				capecolor_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.capecolor_outfit1');
				cape_addon_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.cape_addon_outfit1');
				necklace_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.necklace_outfit1');
				jacket_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.jacket_outfit1');
				pouches_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.pouches_outfit1');
				belt_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.belt_outfit1');
				gauntlet_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.gauntlet_outfit1');
				arms_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.arms_outfit1');
				glove1_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.glove1_outfit1');
				glove2_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.glove2_outfit1');
				pants_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.pants_outfit1');
				shoes_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.shoes_outfit1');
				tattooalpha_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.tattooalpha_outfit1');
				scaralpha_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.scaralpha_outfit1');
				hairtintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.hairtintrb_outfit1');
				hairtintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.hairtintgb_outfit1');
				hairtintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.hairtintbb_outfit1');
				eye1tintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eye1tintrb_outfit1');
				eye1tintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eye1tintbb_outfit1');
				eye1tintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eye1tintgb_outfit1');
				eye2tintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eye2tintrb_outfit1');
				eye2tintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eye2tintbb_outfit1');
				eye2tintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.eye2tintgb_outfit1');
				masktintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.masktintrb_outfit1');
				masktintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.masktintgb_outfit1');
				masktintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.masktintbb_outfit1');
				tattootintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.tattootintrb_outfit1');
				tattootintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.tattootintgb_outfit1');
				tattootintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.tattootintbb_outfit1');
				capetintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.capetintrb_outfit1');
				capetintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.capetintgb_outfit1');
				capetintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.capetintbb_outfit1');
				necklacetintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.necklacetintrb_outfit1');
				necklacetintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.necklacetintgb_outfit1');
				necklacetintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.necklacetintbb_outfit1');
				pouchtintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.pouchtintrb_outfit1');
				pouchtintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.pouchtintgb_outfit1');
				pouchtintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.pouchtintbb_outfit1');
				belttintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.belttintrb_outfit1');
				belttintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.belttintgb_outfit1');
				belttintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.belttintbb_outfit1');
				gauntlettintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.gauntlettintrb_outfit1');
				gauntlettintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.gauntlettintgb_outfit1');
				gauntlettintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.gauntlettintbb_outfit1');
				armtintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.armtintrb_outfit1');
				armtintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.armtintgb_outfit1');
				armtintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.armtintbb_outfit1');
				jackettintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.jackettintrb_outfit1');
				jackettintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.jackettintgb_outfit1');
				jackettintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.jackettintbb_outfit1');
				glove1tintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.glove1tintrb_outfit1');
				glove1tintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.glove1tintgb_outfit1');
				glove1tintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.glove1tintbb_outfit1');
				glove2tintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.glove2tintrb_outfit1');
				glove2tintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.glove2tintgb_outfit1');
				glove2tintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.glove2tintbb_outfit1');
				panttintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.panttintrb_outfit1');
				panttintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.panttintgb_outfit1');
				panttintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.panttintbb_outfit1');
				shoetintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.shoetintrb_outfit1');
				shoetintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.shoetintgb_outfit1');
				shoetintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.shoetintbb_outfit1');
				skintintrb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.skintintrb_outfit1');
				skintintgb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.skintintgb_outfit1');
				skintintbb_outfit1 = eval('player' + currentslot + 'SO.data.playerDat.skintintbb_outfit1');
				capeon_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.capeon_outfit2');
				maskoff_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.maskoff_outfit2');
				extrabelt_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.extrabelt_outfit2');
				barechest_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.barechest_outfit2');
				hair_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.hair_outfit2');
				earring_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.earring_outfit2');
				skinz_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.skinz_outfit2');
				freckles_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.freckles_outfit2');
				frecklesalpha_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.frecklesalpha_outfit2');
				nosez_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.nosez_outfit2');
				eyepatch_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eyepatch_outfit2');
				eyesboth_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eyesboth_outfit2');
				eyesparkle1_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eyesparkle1_outfit2');
				eyesparkle2_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eyesparkle2_outfit2');
				eyetype1_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eyetype1_outfit2');
				eyetype2_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eyetype2_outfit2');
				eyescale1_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eyescale1_outfit2');
				eyescale2_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eyescale2_outfit2');
				eyewhite1_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eyewhite1_outfit2');
				eyewhite2_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eyewhite2_outfit2');
				eyebrows_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eyebrows_outfit2');
				eyesquint_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eyesquint_outfit2');
				maskz_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.maskz_outfit2');
				tattoo_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.tattoo_outfit2');
				scar_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.scar_outfit2');
				beard_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.beard_outfit2');
				capecolor_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.capecolor_outfit2');
				cape_addon_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.cape_addon_outfit2');
				necklace_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.necklace_outfit2');
				jacket_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.jacket_outfit2');
				pouches_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.pouches_outfit2');
				belt_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.belt_outfit2');
				gauntlet_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.gauntlet_outfit2');
				arms_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.arms_outfit2');
				glove1_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.glove1_outfit2');
				glove2_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.glove2_outfit2');
				pants_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.pants_outfit2');
				shoes_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.shoes_outfit2');
				tattooalpha_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.tattooalpha_outfit2');
				scaralpha_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.scaralpha_outfit2');
				hairtintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.hairtintrb_outfit2');
				hairtintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.hairtintgb_outfit2');
				hairtintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.hairtintbb_outfit2');
				eye1tintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eye1tintrb_outfit2');
				eye1tintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eye1tintbb_outfit2');
				eye1tintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eye1tintgb_outfit2');
				eye2tintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eye2tintrb_outfit2');
				eye2tintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eye2tintbb_outfit2');
				eye2tintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.eye2tintgb_outfit2');
				masktintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.masktintrb_outfit2');
				masktintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.masktintgb_outfit2');
				masktintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.masktintbb_outfit2');
				tattootintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.tattootintrb_outfit2');
				tattootintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.tattootintgb_outfit2');
				tattootintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.tattootintbb_outfit2');
				capetintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.capetintrb_outfit2');
				capetintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.capetintgb_outfit2');
				capetintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.capetintbb_outfit2');
				necklacetintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.necklacetintrb_outfit2');
				necklacetintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.necklacetintgb_outfit2');
				necklacetintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.necklacetintbb_outfit2');
				pouchtintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.pouchtintrb_outfit2');
				pouchtintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.pouchtintgb_outfit2');
				pouchtintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.pouchtintbb_outfit2');
				belttintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.belttintrb_outfit2');
				belttintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.belttintgb_outfit2');
				belttintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.belttintbb_outfit2');
				gauntlettintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.gauntlettintrb_outfit2');
				gauntlettintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.gauntlettintgb_outfit2');
				gauntlettintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.gauntlettintbb_outfit2');
				armtintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.armtintrb_outfit2');
				armtintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.armtintgb_outfit2');
				armtintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.armtintbb_outfit2');
				jackettintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.jackettintrb_outfit2');
				jackettintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.jackettintgb_outfit2');
				jackettintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.jackettintbb_outfit2');
				glove1tintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.glove1tintrb_outfit2');
				glove1tintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.glove1tintgb_outfit2');
				glove1tintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.glove1tintbb_outfit2');
				glove2tintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.glove2tintrb_outfit2');
				glove2tintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.glove2tintgb_outfit2');
				glove2tintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.glove2tintbb_outfit2');
				panttintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.panttintrb_outfit2');
				panttintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.panttintgb_outfit2');
				panttintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.panttintbb_outfit2');
				shoetintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.shoetintrb_outfit2');
				shoetintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.shoetintgb_outfit2');
				shoetintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.shoetintbb_outfit2');
				skintintrb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.skintintrb_outfit2');
				skintintgb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.skintintgb_outfit2');
				skintintbb_outfit2 = eval('player' + currentslot + 'SO.data.playerDat.skintintbb_outfit2');
				capeon_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.capeon_outfit3');
				maskoff_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.maskoff_outfit3');
				extrabelt_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.extrabelt_outfit3');
				barechest_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.barechest_outfit3');
				hair_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.hair_outfit3');
				earring_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.earring_outfit3');
				skinz_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.skinz_outfit3');
				freckles_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.freckles_outfit3');
				frecklesalpha_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.frecklesalpha_outfit3');
				nosez_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.nosez_outfit3');
				eyepatch_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eyepatch_outfit3');
				eyesboth_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eyesboth_outfit3');
				eyesparkle1_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eyesparkle1_outfit3');
				eyesparkle2_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eyesparkle2_outfit3');
				eyetype1_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eyetype1_outfit3');
				eyetype2_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eyetype2_outfit3');
				eyescale1_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eyescale1_outfit3');
				eyescale2_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eyescale2_outfit3');
				eyewhite1_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eyewhite1_outfit3');
				eyewhite2_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eyewhite2_outfit3');
				eyebrows_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eyebrows_outfit3');
				eyesquint_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eyesquint_outfit3');
				maskz_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.maskz_outfit3');
				tattoo_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.tattoo_outfit3');
				scar_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.scar_outfit3');
				beard_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.beard_outfit3');
				capecolor_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.capecolor_outfit3');
				cape_addon_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.cape_addon_outfit3');
				necklace_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.necklace_outfit3');
				jacket_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.jacket_outfit3');
				pouches_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.pouches_outfit3');
				belt_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.belt_outfit3');
				gauntlet_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.gauntlet_outfit3');
				arms_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.arms_outfit3');
				glove1_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.glove1_outfit3');
				glove2_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.glove2_outfit3');
				pants_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.pants_outfit3');
				shoes_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.shoes_outfit3');
				tattooalpha_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.tattooalpha_outfit3');
				scaralpha_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.scaralpha_outfit3');
				hairtintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.hairtintrb_outfit3');
				hairtintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.hairtintgb_outfit3');
				hairtintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.hairtintbb_outfit3');
				eye1tintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eye1tintrb_outfit3');
				eye1tintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eye1tintbb_outfit3');
				eye1tintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eye1tintgb_outfit3');
				eye2tintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eye2tintrb_outfit3');
				eye2tintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eye2tintbb_outfit3');
				eye2tintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.eye2tintgb_outfit3');
				masktintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.masktintrb_outfit3');
				masktintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.masktintgb_outfit3');
				masktintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.masktintbb_outfit3');
				tattootintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.tattootintrb_outfit3');
				tattootintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.tattootintgb_outfit3');
				tattootintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.tattootintbb_outfit3');
				capetintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.capetintrb_outfit3');
				capetintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.capetintgb_outfit3');
				capetintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.capetintbb_outfit3');
				necklacetintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.necklacetintrb_outfit3');
				necklacetintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.necklacetintgb_outfit3');
				necklacetintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.necklacetintbb_outfit3');
				pouchtintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.pouchtintrb_outfit3');
				pouchtintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.pouchtintgb_outfit3');
				pouchtintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.pouchtintbb_outfit3');
				belttintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.belttintrb_outfit3');
				belttintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.belttintgb_outfit3');
				belttintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.belttintbb_outfit3');
				gauntlettintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.gauntlettintrb_outfit3');
				gauntlettintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.gauntlettintgb_outfit3');
				gauntlettintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.gauntlettintbb_outfit3');
				armtintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.armtintrb_outfit3');
				armtintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.armtintgb_outfit3');
				armtintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.armtintbb_outfit3');
				jackettintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.jackettintrb_outfit3');
				jackettintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.jackettintgb_outfit3');
				jackettintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.jackettintbb_outfit3');
				glove1tintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.glove1tintrb_outfit3');
				glove1tintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.glove1tintgb_outfit3');
				glove1tintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.glove1tintbb_outfit3');
				glove2tintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.glove2tintrb_outfit3');
				glove2tintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.glove2tintgb_outfit3');
				glove2tintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.glove2tintbb_outfit3');
				panttintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.panttintrb_outfit3');
				panttintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.panttintgb_outfit3');
				panttintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.panttintbb_outfit3');
				shoetintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.shoetintrb_outfit3');
				shoetintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.shoetintgb_outfit3');
				shoetintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.shoetintbb_outfit3');
				skintintrb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.skintintrb_outfit3');
				skintintgb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.skintintgb_outfit3');
				skintintbb_outfit3 = eval('player' + currentslot + 'SO.data.playerDat.skintintbb_outfit3');
				slot = eval('player' + currentslot + 'SO.data.playerDat.slot');
				clearInterval(countID);
				clearInterval(countTID);
				clearInterval(count2ID);
				clearInterval(count3ID);
				clearInterval(count2XID);
				clearInterval(count3XID);
				tcounter = 0;
				tcounterminute = 0;
				tcounterhour = 0;
				stopAllSounds();
				if (sfxmute == false) {
					buttonclickz.start(0, 1);
				}
				gotoAndPlay('Continue');
			}
		};
		savePlayerInfo1 = function () {
			player1 = new Object();
			player1.corename = corename;
			player1.coreX = coreX;
			player1.calebX = calebX;
			player1.playerX = playerX;
			player1.playerY = playerY;
			player1.dateday = dateday;
			player1.datemonth = datemonth;
			player1.dateyear = dateyear;
			player1.stand = stand;
			player1.story = story;
			player1.tutz = tutz;
			player1.gold = gold;
			player1.autoscreensave = autoscreensave;
			player1.firstsave = firstsave;
			player1.gotfirststats = gotfirststats;
			player1.godmode = godmode;
			player1.hascheated = hascheated;
			player1.character = character;
			player1.numofchars = numofchars;
			player1.currentweapon = currentweapon;
			player1.runningz = runningz;
			player1.areaname = areaname;
			player1.menucolor = menucolor;
			player1.corenumofmagics = corenumofmagics;
			player1.corenumoflimits = corenumoflimits;
			player1.calebnumofmagics = calebnumofmagics;
			player1.calebnumoflimits = calebnumoflimits;
			player1.fishing_count = fishing_count;
			player1.fishinghighscore = fishinghighscore;
			player1.numofbattles = numofbattles;
			player1.numofswords = numofswords;
			player1.coremagic1 = coremagic1;
			player1.calebmagic1 = calebmagic1;
			player1.farsight = farsight;
			player1.difficulty = difficulty;
			player1.corehealth = corehealth;
			player1.coremaxhealth = coremaxhealth;
			player1.coremana = coremana;
			player1.coremaxmana = coremaxmana;
			player1.calebhealth = calebhealth;
			player1.calebmaxhealth = calebmaxhealth;
			player1.calebmana = calebmana;
			player1.calebmaxmana = calebmaxmana;
			player1.corelimit = corelimit;
			player1.coremaxlimit = coremaxlimit;
			player1.caleblimit = caleblimit;
			player1.calebmaxlimit = calebmaxlimit;
			player1.directions = directions;
			player1.weapon1 = weapon1;
			player1.weapon2 = weapon2;
			player1.weapon3 = weapon3;
			player1.weapon4 = weapon4;
			player1.weapon5 = weapon5;
			player1.weapon6 = weapon6;
			player1.coremagic1 = coremagic1;
			player1.coremagic2 = coremagic2;
			player1.coremagic3 = coremagic3;
			player1.coremagic4 = coremagic4;
			player1.coremagic5 = coremagic5;
			player1.coremagic6 = coremagic6;
			player1.calebmagic1 = calebmagic1;
			player1.calebmagic2 = calebmagic2;
			player1.calebmagic3 = calebmagic3;
			player1.calebmagic4 = calebmagic4;
			player1.calebmagic5 = calebmagic5;
			player1.calebmagic6 = calebmagic6;
			player1.corelimit1 = corelimit1;
			player1.corelimit2 = corelimit2;
			player1.corelimit3 = corelimit3;
			player1.corelimit4 = corelimit4;
			player1.caleblimit1 = caleblimit1;
			player1.caleblimit2 = caleblimit2;
			player1.caleblimit3 = caleblimit3;
			player1.caleblimit4 = caleblimit4;
			player1.gotsword2 = gotsword2;
			player1.gotsword3 = gotsword3;
			player1.gotsword4 = gotsword4;
			player1.gotsword5 = gotsword5;
			player1.gotsword6 = gotsword6;
			player1.sword1f = sword1f;
			player1.sword2f = sword2f;
			player1.sword3f = sword3f;
			player1.sword4f = sword4f;
			player1.sword5f = sword5f;
			player1.sword6f = sword6f;
			player1.corecounterchance = corecounterchance;
			player1.calebcounterchance = calebcounterchance;
			player1.corepoison = corepoison;
			player1.calebpoison = calebpoison;
			player1.coremagicdamage = coremagicdamage;
			player1.corestrength = corestrength;
			player1.coredefense = coredefense;
			player1.coremagicdefense = coremagicdefense;
			player1.coreluck = coreluck;
			player1.coreagility = coreagility;
			player1.coremagicdamageX = coremagicdamageX;
			player1.coremagicdefenseX = coremagicdefenseX;
			player1.corestrengthX = corestrengthX;
			player1.coredefenseX = coredefenseX;
			player1.coreluckX = coreluckX;
			player1.coreagilityX = coreagilityX;
			player1.corefireElement = corefireElement;
			player1.coredarkElement = coredarkElement;
			player1.coreiceElement = coreiceElement;
			player1.corethunderElement = corethunderElement;
			player1.calebmagicdamage = calebmagicdamage;
			player1.calebstrength = calebstrength;
			player1.calebdefense = calebdefense;
			player1.calebmagicdefense = calebmagicdefense;
			player1.calebluck = calebluck;
			player1.calebagility = calebagility;
			player1.calebmagicdamageX = calebmagicdamageX;
			player1.calebmagicdefenseX = calebmagicdefenseX;
			player1.calebstrengthX = calebstrengthX;
			player1.calebdefenseX = calebdefenseX;
			player1.calebluckX = calebluckX;
			player1.calebagilityX = calebagilityX;
			player1.calebfireElement = calebfireElement;
			player1.calebdarkElement = calebdarkElement;
			player1.calebiceElement = calebiceElement;
			player1.calebthunderElement = calebthunderElement;
			player1.sword = sword;
			player1.swordname = swordname;
			player1.corereghealth = corereghealth;
			player1.coreregmana = coreregmana;
			player1.coreregstamina = coreregstamina;
			player1.calebreghealth = calebreghealth;
			player1.calebregmana = calebregmana;
			player1.calebregstamina = calebregstamina;
			player1.normalspeed = normalspeed;
			player1.orgspeed = orgspeed;
			player1.potion = potion;
			player1.ether = ether;
			player1.elixir = elixir;
			player1.remedy = remedy;
			player1.limit = limit;
			player1.bottle = bottle;
			player1.areabattle = areabattle;
			player1.areascreen = areascreen;
			player1.footstepsound = footstepsound;
			player1.walkthrough = walkthrough;
			player1.champion = champion;
			player1.playerZ = playerZ;
			player1.floorz = floorz;
			player1.forcenotrun = forcenotrun;
			player1.restorespeed = restorespeed;
			player1.savedateday = savedateday;
			player1.savedateyear = savedateyear;
			player1.savedatemonth = savedatemonth;
			player1.saveseconds = saveseconds;
			player1.saveminutes = saveminutes;
			player1.savehours = savehours;
			player1.numofluckyhits = numofluckyhits;
			player1.numofmedals = numofmedals;
			player1.menuquality = menuquality;
			player1.medalcharm = medalcharm;
			player1.medalcharms = medalcharms;
			player1.medalmeeting = medalmeeting;
			player1.medalrookie = medalrookie;
			player1.medalveteran = medalveteran;
			player1.medallegend = medallegend;
			player1.medalhelper = medalhelper;
			player1.medalswordfish = medalswordfish;
			player1.medalawakened = medalawakened;
			player1.medalpoet = medalpoet;
			player1.medalmeeting1 = medalmeeting1;
			player1.medalmeeting2 = medalmeeting2;
			player1.medaldiglet = medaldiglet;
			player1.medalherbivore = medalherbivore;
			player1.medalflawless = medalflawless;
			player1.medalflawlessX = medalflawlessX;
			player1.medaljuggernaught = medaljuggernaught;
			player1.medalaquaman = medalaquaman;
			player1.medalperfection = medalperfection;
			player1.changediff = changediff;
			player1.sfxmute = sfxmute;
			player1.night = night;
			player1.camera = camera;
			player1.hudvisible = hudvisible;
			player1.menuvisible = menuvisible;
			player1.gamequality = gamequality;
			player1.battlequality = battlequality;
			player1.counter = counter;
			player1.counter2 = counter2;
			player1.counter3 = counter3;
			player1.counter2X = counter2X;
			player1.counter3X = counter3X;
			player1.counterminute = counterminute;
			player1.counterhour = counterhour;
			player1.housegrade = housegrade;
			player1.housegrade2 = housegrade2;
			player1.limitless = limitless;
			player1.housecarpet = housecarpet;
			player1.housechair = housechair;
			player1.housewardrobe = housewardrobe;
			player1.housecandelebra = housecandelebra;
			player1.housepainting = housepainting;
			player1.enterhouse1 = enterhouse1;
			player1.enterhouse2 = enterhouse2;
			player1.questbag = questbag;
			player1.questbbag = questbbag;
			player1.questbeer = questbeer;
			player1.questfindbook = questfindbook;
			player1.questreturnbook = questreturnbook;
			player1.questwolf = questwolf;
			player1.questlove = questlove;
			player1.questink = questink;
			player1.questbrock = questbrock;
			player1.questnewintown = questnewintown;
			player1.questfindsword = questfindsword;
			player1.questfisher = questfisher;
			player1.questboar = questboar;
			player1.questfriend = questfriend;
			player1.questspitter = questspitter;
			player1.questgornak = questgornak;
			player1.questpotion = questpotion;
			player1.questhorse = questhorse;
			player1.questgamble = questgamble;
			player1.questthanator = questthanator;
			player1.questgnome = questgnome;
			player1.questsick = questsick;
			player1.questdonovan = questdonovan;
			player1.questshow = questshow;
			player1.questdrugs = questdrugs;
			player1.questdrunk = questdrunk;
			player1.questitemhunter = questitemhunter;
			player1.questtreasure = questtreasure;
			player1.questkidnap = questkidnap;
			player1.questdeadman = questdeadman;
			player1.questbagX = questbagX;
			player1.questbbagX = questbbagX;
			player1.questbeerX = questbeerX;
			player1.questfindbookX = questfindbookX;
			player1.questreturnbookX = questreturnbookX;
			player1.questwolfX = questwolfX;
			player1.questloveX = questloveX;
			player1.questinkX = questinkX;
			player1.questbrockX = questbrockX;
			player1.questnewintownX = questnewintownX;
			player1.questfindswordX = questfindswordX;
			player1.questfisherX = questfisherX;
			player1.questboarX = questboarX;
			player1.questfriendX = questfriendX;
			player1.questspitterX = questspitterX;
			player1.questgornakX = questgornakX;
			player1.questpotionX = questpotionX;
			player1.questhorseX = questhorseX;
			player1.questgambleX = questgambleX;
			player1.questthanatorX = questthanatorX;
			player1.questgnomeX = questgnomeX;
			player1.questsickX = questsickX;
			player1.questdonovanX = questdonovanX;
			player1.questshowX = questshowX;
			player1.questdrugsX = questdrugsX;
			player1.questdrunkX = questdrunkX;
			player1.questitemhunterX = questitemhunterX;
			player1.questtreasureX = questtreasureX;
			player1.questkidnapX = questkidnapX;
			player1.questdeadmanX = questdeadmanX;
			player1.numquests = numquests;
			player1.sessions = sessions;
			player1.firstcoremagic1 = firstcoremagic1;
			player1.firstcoremagic2 = firstcoremagic2;
			player1.firstcoremagic3 = firstcoremagic3;
			player1.firstcoremagic4 = firstcoremagic4;
			player1.firstcoremagic5 = firstcoremagic5;
			player1.firstcoremagic6 = firstcoremagic6;
			player1.firstcalebmagic1 = firstcalebmagic1;
			player1.firstcalebmagic2 = firstcalebmagic2;
			player1.firstcalebmagic3 = firstcalebmagic3;
			player1.firstcalebmagic4 = firstcalebmagic4;
			player1.firstcalebmagic5 = firstcalebmagic5;
			player1.firstcalebmagic6 = firstcalebmagic6;
			player1.numpoet = numpoet;
			player1.founddouglas = founddouglas;
			player1.namecolor = namecolor;
			player1.rewardcolor = rewardcolor;
			player1.mainquest = mainquest;
			player1.imrahischat = imrahischat;
			player1.luvannonchat = luvannonchat;
			player1.ghosttalk = ghosttalk;
			player1.activequests = activequests;
			player1.completedquests = completedquests;
			player1.qpage = qpage;
			player1.musicmute = musicmute;
			player1.volumez = volumez;
			player1.areabg = areabg;
			player1.coregotlimit = coregotlimit;
			player1.calebgotlimit = calebgotlimit;
			player1.hotinfo = hotinfo;
			player1.cinemacam = cinemacam;
			player1.camXpoint = camXpoint;
			player1.camYpoint = camYpoint;
			player1.currentstage = currentstage;
			player1.currentmusic = currentmusic;
			player1.gotshovel = gotshovel;
			player1.numofdigs = numofdigs;
			player1.gotfirstpotion = gotfirstpotion;
			player1.gotfirstelixir = gotfirstelixir;
			player1.gotfirstether = gotfirstether;
			player1.gotfirstremedy = gotfirstremedy;
			player1.gotfirstlimit = gotfirstlimit;
			player1.gotfirstbottle = gotfirstbottle;
			player1.firstrig = firstrig;
			player1.firstgornak = firstgornak;
			player1.firstgornak2 = firstgornak2;
			player1.firstcamera = firstcamera;
			player1.medalpoet1 = medalpoet1;
			player1.medalpoet2 = medalpoet2;
			player1.medalpoet3 = medalpoet3;
			player1.medalmeeting1 = medalmeeting1;
			player1.medalmeeting2 = medalmeeting2;
			player1.sonyacoins = sonyacoins;
			player1.janucoins = janucoins;
			player1.firstthanator = firstthanator;
			player1.firststalker = firststalker;
			player1.firstcarrion = firstcarrion;
			player1.firstghoul = firstghoul;
			player1.firstthanatorX = firstthanatorX;
			player1.firststalkerX = firststalkerX;
			player1.firstcarrionX = firstcarrionX;
			player1.firstgornakX = firstgornakX;
			player1.firstghoulX = firstghoulX;
			player1.gotfirstc = gotfirstc;
			player1.fame = fame;
			player1.shroom1 = shroom1;
			player1.shroom2 = shroom2;
			player1.shroom3 = shroom3;
			player1.shroom4 = shroom4;
			player1.butterfly1 = butterfly1;
			player1.butterfly2 = butterfly2;
			player1.collectibles = collectibles;
			player1.shroomitem1 = shroomitem1;
			player1.shroomitem2 = shroomitem2;
			player1.shroomitem3 = shroomitem3;
			player1.shroomitem4 = shroomitem4;
			player1.shroomitem5 = shroomitem5;
			player1.shroomitem6 = shroomitem6;
			player1.shroomitem7 = shroomitem7;
			player1.shroomitem8 = shroomitem8;
			player1.shroomitem9 = shroomitem9;
			player1.shroomitem10 = shroomitem10;
			player1.shroomitem11 = shroomitem11;
			player1.shroomitem12 = shroomitem12;
			player1.shroomitem13 = shroomitem13;
			player1.shroomitem14 = shroomitem14;
			player1.shroomitem15 = shroomitem15;
			player1.shroomitem16 = shroomitem16;
			player1.shroomitem17 = shroomitem17;
			player1.shroomitem18 = shroomitem18;
			player1.shroomitem19 = shroomitem19;
			player1.shroomitem20 = shroomitem20;
			player1.shroomitem21 = shroomitem21;
			player1.shroomitem22 = shroomitem22;
			player1.shroomitem23 = shroomitem23;
			player1.shroomitem24 = shroomitem24;
			player1.shroomitem25 = shroomitem25;
			player1.shroomitem26 = shroomitem26;
			player1.shroomitem27 = shroomitem27;
			player1.shroomitem28 = shroomitem28;
			player1.shroomitem29 = shroomitem29;
			player1.shroomitem30 = shroomitem30;
			player1.shroomitem31 = shroomitem31;
			player1.shroomitem32 = shroomitem32;
			player1.shroomitem33 = shroomitem33;
			player1.shroomitem34 = shroomitem34;
			player1.shroomitem35 = shroomitem35;
			player1.shroomitem36 = shroomitem36;
			player1.shroomitem37 = shroomitem37;
			player1.shroomitem38 = shroomitem38;
			player1.shroomitem39 = shroomitem39;
			player1.shroomitem40 = shroomitem40;
			player1.shroomitem41 = shroomitem41;
			player1.shroomitem42 = shroomitem42;
			player1.shroomitem43 = shroomitem43;
			player1.shroomitem44 = shroomitem44;
			player1.shroomitem45 = shroomitem45;
			player1.shroomitem46 = shroomitem46;
			player1.shroomitem47 = shroomitem47;
			player1.shroomitem48 = shroomitem48;
			player1.shroomitem49 = shroomitem49;
			player1.shroomitem50 = shroomitem50;
			player1.shroomitem51 = shroomitem51;
			player1.shroomitem52 = shroomitem52;
			player1.shroomitem53 = shroomitem53;
			player1.shroomitem54 = shroomitem54;
			player1.shroomitem55 = shroomitem55;
			player1.shroomitem56 = shroomitem56;
			player1.shroomitem57 = shroomitem57;
			player1.shroomitem58 = shroomitem58;
			player1.shroomitem59 = shroomitem59;
			player1.shroomitem60 = shroomitem60;
			player1.shroomitem61 = shroomitem61;
			player1.shroomitem62 = shroomitem62;
			player1.shroomitem63 = shroomitem63;
			player1.shroomitem64 = shroomitem64;
			player1.shroomitem65 = shroomitem65;
			player1.shroomitem66 = shroomitem66;
			player1.shroomitem67 = shroomitem67;
			player1.shroomitem68 = shroomitem68;
			player1.shroomitem69 = shroomitem69;
			player1.shroomitem70 = shroomitem70;
			player1.shroomitem71 = shroomitem71;
			player1.shroomitem72 = shroomitem72;
			player1.shroomitem73 = shroomitem73;
			player1.shroomitem74 = shroomitem74;
			player1.shroomitem75 = shroomitem75;
			player1.shroomitem76 = shroomitem76;
			player1.shroomitem77 = shroomitem77;
			player1.shroomitem78 = shroomitem78;
			player1.shroomitem79 = shroomitem79;
			player1.shroomitem80 = shroomitem80;
			player1.butterflyitem1 = butterflyitem1;
			player1.butterflyitem2 = butterflyitem2;
			player1.butterflyitem3 = butterflyitem3;
			player1.butterflyitem4 = butterflyitem4;
			player1.butterflyitem5 = butterflyitem5;
			player1.butterflyitem6 = butterflyitem6;
			player1.butterflyitem7 = butterflyitem7;
			player1.butterflyitem8 = butterflyitem8;
			player1.butterflyitem9 = butterflyitem9;
			player1.butterflyitem10 = butterflyitem10;
			player1.shovel1 = shovel1;
			player1.shovel2 = shovel2;
			player1.shovel3 = shovel3;
			player1.shovel4 = shovel4;
			player1.shovel5 = shovel5;
			player1.shovel6 = shovel6;
			player1.shovel7 = shovel7;
			player1.shovel8 = shovel8;
			player1.shovel9 = shovel9;
			player1.shovel10 = shovel10;
			player1.item1 = item1;
			player1.item2 = item2;
			player1.item3 = item3;
			player1.item4 = item4;
			player1.item5 = item5;
			player1.item6 = item6;
			player1.item7 = item7;
			player1.item8 = item8;
			player1.item9 = item9;
			player1.item10 = item10;
			player1.item11 = item11;
			player1.item12 = item12;
			player1.item13 = item13;
			player1.item14 = item14;
			player1.item15 = item15;
			player1.item16 = item16;
			player1.item17 = item17;
			player1.item18 = item18;
			player1.item19 = item19;
			player1.item20 = item20;
			player1.item21 = item21;
			player1.item22 = item22;
			player1.item23 = item23;
			player1.item24 = item24;
			player1.item25 = item25;
			player1.item26 = item26;
			player1.item27 = item27;
			player1.item28 = item28;
			player1.item29 = item29;
			player1.item30 = item30;
			player1.switchzn1 = switchzn1;
			player1.switchzn2 = switchzn2;
			player1.switchzn3 = switchzn3;
			player1.switchzn4 = switchzn4;
			player1.switchzn5 = switchzn5;
			player1.switchzn6 = switchzn6;
			player1.switchzn7 = switchzn7;
			player1.switchzn8 = switchzn8;
			player1.switchzn9 = switchzn9;
			player1.obj0 = obj0;
			player1.obj1 = obj1;
			player1.obj2 = obj2;
			player1.obj3 = obj3;
			player1.obj4 = obj4;
			player1.obj5 = obj5;
			player1.obj6 = obj6;
			player1.obj7 = obj7;
			player1.obj8 = obj8;
			player1.obj9 = obj9;
			player1.obj10 = obj10;
			player1.obj11 = obj11;
			player1.obj12 = obj12;
			player1.obj13 = obj13;
			player1.obj14 = obj14;
			player1.obj15 = obj15;
			player1.obj16 = obj16;
			player1.obj17 = obj17;
			player1.obj18 = obj18;
			player1.obj19 = obj19;
			player1.obj20 = obj20;
			player1.obj21 = obj21;
			player1.obj22 = obj22;
			player1.obj23 = obj23;
			player1.obj24 = obj24;
			player1.obj25 = obj25;
			player1.obj26 = obj26;
			player1.obj27 = obj27;
			player1.obj28 = obj28;
			player1.obj29 = obj29;
			player1.obj30 = obj30;
			player1.objname0 = objname0;
			player1.objname1 = objname1;
			player1.objname2 = objname2;
			player1.objname3 = objname3;
			player1.objname4 = objname4;
			player1.objname5 = objname5;
			player1.objname6 = objname6;
			player1.objname7 = objname7;
			player1.objname8 = objname8;
			player1.objname9 = objname9;
			player1.objname10 = objname10;
			player1.objname11 = objname11;
			player1.objname12 = objname12;
			player1.objname13 = objname13;
			player1.objname14 = objname14;
			player1.objname15 = objname15;
			player1.objname16 = objname16;
			player1.objname17 = objname17;
			player1.objname18 = objname18;
			player1.objname19 = objname19;
			player1.objname20 = objname20;
			player1.objname21 = objname21;
			player1.objname22 = objname22;
			player1.objname23 = objname23;
			player1.objname24 = objname24;
			player1.objname25 = objname25;
			player1.objname26 = objname26;
			player1.objname27 = objname27;
			player1.objname28 = objname28;
			player1.objname29 = objname29;
			player1.objname30 = objname30;
			player1.darconstory = darconstory;
			player1.guarduniform = guarduniform;
			player1.goteyepatches = goteyepatches;
			player1.gotmaskcape = gotmaskcape;
			player1.gotgrayskin = gotgrayskin;
			player1.gotredskin = gotredskin;
			player1.gotmask1 = gotmask1;
			player1.gotmask2 = gotmask2;
			player1.gotmask3 = gotmask3;
			player1.gotmask4 = gotmask4;
			player1.gotbandana = gotbandana;
			player1.gotfedorahat = gotfedorahat;
			player1.gottophat = gottophat;
			player1.gotthunder = gotthunder;
			player1.gotblackpearl = gotblackpearl;
			player1.gotserpentnose = gotserpentnose;
			player1.gotwarpaint = gotwarpaint;
			player1.goteyebleed = goteyebleed;
			player1.goteyeshadow = goteyeshadow;
			player1.gotbloodshoteyes = gotbloodshoteyes;
			player1.gotundeadeyes = gotundeadeyes;
			player1.gotdemoneyes = gotdemoneyes;
			player1.capeon = capeon;
			player1.maskoff = maskoff;
			player1.extrabelt = extrabelt;
			player1.barechest = barechest;
			player1.outfit = outfit;
			player1.hair = hair;
			player1.earring = earring;
			player1.skinz = skinz;
			player1.freckles = freckles;
			player1.frecklesalpha = frecklesalpha;
			player1.nosez = nosez;
			player1.eyepatch = eyepatch;
			player1.eyesboth = eyesboth;
			player1.eyesparkle1 = eyesparkle1;
			player1.eyesparkle2 = eyesparkle2;
			player1.eyetype1 = eyetype1;
			player1.eyetype2 = eyetype2;
			player1.eyescale1 = eyescale1;
			player1.eyescale2 = eyescale2;
			player1.eyewhite1 = eyewhite1;
			player1.eyewhite2 = eyewhite2;
			player1.eyebrows = eyebrows;
			player1.eyesquint = eyesquint;
			player1.maskz = maskz;
			player1.tattoo = tattoo;
			player1.scar = scar;
			player1.beard = beard;
			player1.capecolor = capecolor;
			player1.cape_addon = cape_addon;
			player1.necklace = necklace;
			player1.jacket = jacket;
			player1.pouches = pouches;
			player1.belt = belt;
			player1.gauntlet = gauntlet;
			player1.arms = arms;
			player1.glove1 = glove1;
			player1.glove2 = glove2;
			player1.pants = pants;
			player1.shoes = shoes;
			player1.tattooalpha = tattooalpha;
			player1.scaralpha = scaralpha;
			player1.hairtintrb = hairtintrb;
			player1.hairtintgb = hairtintgb;
			player1.hairtintbb = hairtintbb;
			player1.eyepatchtintrb = eyepatchtintrb;
			player1.eyepatchtintbb = eyepatchtintbb;
			player1.eyepatchtintgb = eyepatchtintgb;
			player1.eye1tintrb = eye1tintrb;
			player1.eye1tintbb = eye1tintbb;
			player1.eye1tintgb = eye1tintgb;
			player1.eye2tintrb = eye2tintrb;
			player1.eye2tintbb = eye2tintbb;
			player1.eye2tintgb = eye2tintgb;
			player1.masktintrb = masktintrb;
			player1.masktintgb = masktintgb;
			player1.masktintbb = masktintbb;
			player1.tattootintrb = tattootintrb;
			player1.tattootintgb = tattootintgb;
			player1.tattootintbb = tattootintbb;
			player1.capetintrb = capetintrb;
			player1.capetintgb = capetintgb;
			player1.capetintbb = capetintbb;
			player1.necklacetintrb = necklacetintrb;
			player1.necklacetintgb = necklacetintgb;
			player1.necklacetintbb = necklacetintbb;
			player1.pouchtintrb = pouchtintrb;
			player1.pouchtintgb = pouchtintgb;
			player1.pouchtintbb = pouchtintbb;
			player1.belttintrb = belttintrb;
			player1.belttintgb = belttintgb;
			player1.belttintbb = belttintbb;
			player1.gauntlettintrb = gauntlettintrb;
			player1.gauntlettintgb = gauntlettintgb;
			player1.gauntlettintbb = gauntlettintbb;
			player1.armtintrb = armtintrb;
			player1.armtintgb = armtintgb;
			player1.armtintbb = armtintbb;
			player1.jackettintrb = jackettintrb;
			player1.jackettintgb = jackettintgb;
			player1.jackettintbb = jackettintbb;
			player1.glove1tintrb = glove1tintrb;
			player1.glove1tintgb = glove1tintgb;
			player1.glove1tintbb = glove1tintbb;
			player1.glove2tintrb = glove2tintrb;
			player1.glove2tintgb = glove2tintgb;
			player1.glove2tintbb = glove2tintbb;
			player1.panttintrb = panttintrb;
			player1.panttintgb = panttintgb;
			player1.panttintbb = panttintbb;
			player1.shoetintrb = shoetintrb;
			player1.shoetintgb = shoetintgb;
			player1.shoetintbb = shoetintbb;
			player1.skintintrb = skintintrb;
			player1.skintintgb = skintintgb;
			player1.skintintbb = skintintbb;
			player1.sheathtintrb = sheathtintrb;
			player1.sheathtintgb = sheathtintgb;
			player1.sheathtintbb = sheathtintbb;
			player1.capeon_outfit1 = capeon_outfit1;
			player1.maskoff_outfit1 = maskoff_outfit1;
			player1.extrabelt_outfit1 = extrabelt_outfit1;
			player1.barechest_outfit1 = barechest_outfit1;
			player1.hair_outfit1 = hair_outfit1;
			player1.earring_outfit1 = earring_outfit1;
			player1.skinz_outfit1 = skinz_outfit1;
			player1.freckles_outfit1 = freckles_outfit1;
			player1.frecklesalpha_outfit1 = frecklesalpha_outfit1;
			player1.nosez_outfit1 = nosez_outfit1;
			player1.eyepatch_outfit1 = eyepatch_outfit1;
			player1.eyesboth_outfit1 = eyesboth_outfit1;
			player1.eyesparkle1_outfit1 = eyesparkle1_outfit1;
			player1.eyesparkle2_outfit1 = eyesparkle2_outfit1;
			player1.eyetype1_outfit1 = eyetype1_outfit1;
			player1.eyetype2_outfit1 = eyetype2_outfit1;
			player1.eyescale1_outfit1 = eyescale1_outfit1;
			player1.eyescale2_outfit1 = eyescale2_outfit1;
			player1.eyewhite1_outfit1 = eyewhite1_outfit1;
			player1.eyewhite2_outfit1 = eyewhite2_outfit1;
			player1.eyebrows_outfit1 = eyebrows_outfit1;
			player1.eyesquint_outfit1 = eyesquint_outfit1;
			player1.maskz_outfit1 = maskz_outfit1;
			player1.tattoo_outfit1 = tattoo_outfit1;
			player1.scar_outfit1 = scar_outfit1;
			player1.beard_outfit1 = beard_outfit1;
			player1.capecolor_outfit1 = capecolor_outfit1;
			player1.cape_addon_outfit1 = cape_addon_outfit1;
			player1.necklace_outfit1 = necklace_outfit1;
			player1.jacket_outfit1 = jacket_outfit1;
			player1.pouches_outfit1 = pouches_outfit1;
			player1.belt_outfit1 = belt_outfit1;
			player1.gauntlet_outfit1 = gauntlet_outfit1;
			player1.arms_outfit1 = arms_outfit1;
			player1.glove1_outfit1 = glove1_outfit1;
			player1.glove2_outfit1 = glove2_outfit1;
			player1.pants_outfit1 = pants_outfit1;
			player1.shoes_outfit1 = shoes_outfit1;
			player1.tattooalpha_outfit1 = tattooalpha_outfit1;
			player1.scaralpha_outfit1 = scaralpha_outfit1;
			player1.hairtintrb_outfit1 = hairtintrb_outfit1;
			player1.hairtintgb_outfit1 = hairtintgb_outfit1;
			player1.hairtintbb_outfit1 = hairtintbb_outfit1;
			player1.eyepatchtintrb_outfit1 = eyepatchtintrb_outfit1;
			player1.eyepatchtintbb_outfit1 = eyepatchtintbb_outfit1;
			player1.eyepatchtintgb_outfit1 = eyepatchtintgb_outfit1;
			player1.eye1tintrb_outfit1 = eye1tintrb_outfit1;
			player1.eye1tintbb_outfit1 = eye1tintbb_outfit1;
			player1.eye1tintgb_outfit1 = eye1tintgb_outfit1;
			player1.eye2tintrb_outfit1 = eye2tintrb_outfit1;
			player1.eye2tintbb_outfit1 = eye2tintbb_outfit1;
			player1.eye2tintgb_outfit1 = eye2tintgb_outfit1;
			player1.masktintrb_outfit1 = masktintrb_outfit1;
			player1.masktintgb_outfit1 = masktintgb_outfit1;
			player1.masktintbb_outfit1 = masktintbb_outfit1;
			player1.tattootintrb_outfit1 = tattootintrb_outfit1;
			player1.tattootintgb_outfit1 = tattootintgb_outfit1;
			player1.tattootintbb_outfit1 = tattootintbb_outfit1;
			player1.capetintrb_outfit1 = capetintrb_outfit1;
			player1.capetintgb_outfit1 = capetintgb_outfit1;
			player1.capetintbb_outfit1 = capetintbb_outfit1;
			player1.necklacetintrb_outfit1 = necklacetintrb_outfit1;
			player1.necklacetintgb_outfit1 = necklacetintgb_outfit1;
			player1.necklacetintbb_outfit1 = necklacetintbb_outfit1;
			player1.pouchtintrb_outfit1 = pouchtintrb_outfit1;
			player1.pouchtintgb_outfit1 = pouchtintgb_outfit1;
			player1.pouchtintbb_outfit1 = pouchtintbb_outfit1;
			player1.belttintrb_outfit1 = belttintrb_outfit1;
			player1.belttintgb_outfit1 = belttintgb_outfit1;
			player1.belttintbb_outfit1 = belttintbb_outfit1;
			player1.gauntlettintrb_outfit1 = gauntlettintrb_outfit1;
			player1.gauntlettintgb_outfit1 = gauntlettintgb_outfit1;
			player1.gauntlettintbb_outfit1 = gauntlettintbb_outfit1;
			player1.armtintrb_outfit1 = armtintrb_outfit1;
			player1.armtintgb_outfit1 = armtintgb_outfit1;
			player1.armtintbb_outfit1 = armtintbb_outfit1;
			player1.jackettintrb_outfit1 = jackettintrb_outfit1;
			player1.jackettintgb_outfit1 = jackettintgb_outfit1;
			player1.jackettintbb_outfit1 = jackettintbb_outfit1;
			player1.glove1tintrb_outfit1 = glove1tintrb_outfit1;
			player1.glove1tintgb_outfit1 = glove1tintgb_outfit1;
			player1.glove1tintbb_outfit1 = glove1tintbb_outfit1;
			player1.glove2tintrb_outfit1 = glove2tintrb_outfit1;
			player1.glove2tintgb_outfit1 = glove2tintgb_outfit1;
			player1.glove2tintbb_outfit1 = glove2tintbb_outfit1;
			player1.panttintrb_outfit1 = panttintrb_outfit1;
			player1.panttintgb_outfit1 = panttintgb_outfit1;
			player1.panttintbb_outfit1 = panttintbb_outfit1;
			player1.shoetintrb_outfit1 = shoetintrb_outfit1;
			player1.shoetintgb_outfit1 = shoetintgb_outfit1;
			player1.shoetintbb_outfit1 = shoetintbb_outfit1;
			player1.skintintrb_outfit1 = skintintrb_outfit1;
			player1.skintintgb_outfit1 = skintintgb_outfit1;
			player1.skintintbb_outfit1 = skintintbb_outfit1;
			player1.sheathtintrb_outfit1 = sheathtintrb_outfit1;
			player1.sheathtintgb_outfit1 = sheathtintgb_outfit1;
			player1.sheathtintbb_outfit1 = sheathtintbb_outfit1;
			player1.capeon_outfit2 = capeon_outfit2;
			player1.maskoff_outfit2 = maskoff_outfit2;
			player1.extrabelt_outfit2 = extrabelt_outfit2;
			player1.barechest_outfit2 = barechest_outfit2;
			player1.hair_outfit2 = hair_outfit2;
			player1.earring_outfit2 = earring_outfit2;
			player1.skinz_outfit2 = skinz_outfit2;
			player1.freckles_outfit2 = freckles_outfit2;
			player1.frecklesalpha_outfit2 = frecklesalpha_outfit2;
			player1.nosez_outfit2 = nosez_outfit2;
			player1.eyepatch_outfit2 = eyepatch_outfit2;
			player1.eyesboth_outfit2 = eyesboth_outfit2;
			player1.eyesparkle1_outfit2 = eyesparkle1_outfit2;
			player1.eyesparkle2_outfit2 = eyesparkle2_outfit2;
			player1.eyetype1_outfit2 = eyetype1_outfit2;
			player1.eyetype2_outfit2 = eyetype2_outfit2;
			player1.eyescale1_outfit2 = eyescale1_outfit2;
			player1.eyescale2_outfit2 = eyescale2_outfit2;
			player1.eyewhite1_outfit2 = eyewhite1_outfit2;
			player1.eyewhite2_outfit2 = eyewhite2_outfit2;
			player1.eyebrows_outfit2 = eyebrows_outfit2;
			player1.eyesquint_outfit2 = eyesquint_outfit2;
			player1.maskz_outfit2 = maskz_outfit2;
			player1.tattoo_outfit2 = tattoo_outfit2;
			player1.scar_outfit2 = scar_outfit2;
			player1.beard_outfit2 = beard_outfit2;
			player1.capecolor_outfit2 = capecolor_outfit2;
			player1.cape_addon_outfit2 = cape_addon_outfit2;
			player1.necklace_outfit2 = necklace_outfit2;
			player1.jacket_outfit2 = jacket_outfit2;
			player1.pouches_outfit2 = pouches_outfit2;
			player1.belt_outfit2 = belt_outfit2;
			player1.gauntlet_outfit2 = gauntlet_outfit2;
			player1.arms_outfit2 = arms_outfit2;
			player1.glove1_outfit2 = glove1_outfit2;
			player1.glove2_outfit2 = glove2_outfit2;
			player1.pants_outfit2 = pants_outfit2;
			player1.shoes_outfit2 = shoes_outfit2;
			player1.tattooalpha_outfit2 = tattooalpha_outfit2;
			player1.scaralpha_outfit2 = scaralpha_outfit2;
			player1.hairtintrb_outfit2 = hairtintrb_outfit2;
			player1.hairtintgb_outfit2 = hairtintgb_outfit2;
			player1.hairtintbb_outfit2 = hairtintbb_outfit2;
			player1.eyepatchtintrb_outfit2 = eyepatchtintrb_outfit2;
			player1.eyepatchtintbb_outfit2 = eyepatchtintbb_outfit2;
			player1.eyepatchtintgb_outfit2 = eyepatchtintgb_outfit2;
			player1.eye1tintrb_outfit2 = eye1tintrb_outfit2;
			player1.eye1tintbb_outfit2 = eye1tintbb_outfit2;
			player1.eye1tintgb_outfit2 = eye1tintgb_outfit2;
			player1.eye2tintrb_outfit2 = eye2tintrb_outfit2;
			player1.eye2tintbb_outfit2 = eye2tintbb_outfit2;
			player1.eye2tintgb_outfit2 = eye2tintgb_outfit2;
			player1.masktintrb_outfit2 = masktintrb_outfit2;
			player1.masktintgb_outfit2 = masktintgb_outfit2;
			player1.masktintbb_outfit2 = masktintbb_outfit2;
			player1.tattootintrb_outfit2 = tattootintrb_outfit2;
			player1.tattootintgb_outfit2 = tattootintgb_outfit2;
			player1.tattootintbb_outfit2 = tattootintbb_outfit2;
			player1.capetintrb_outfit2 = capetintrb_outfit2;
			player1.capetintgb_outfit2 = capetintgb_outfit2;
			player1.capetintbb_outfit2 = capetintbb_outfit2;
			player1.necklacetintrb_outfit2 = necklacetintrb_outfit2;
			player1.necklacetintgb_outfit2 = necklacetintgb_outfit2;
			player1.necklacetintbb_outfit2 = necklacetintbb_outfit2;
			player1.pouchtintrb_outfit2 = pouchtintrb_outfit2;
			player1.pouchtintgb_outfit2 = pouchtintgb_outfit2;
			player1.pouchtintbb_outfit2 = pouchtintbb_outfit2;
			player1.belttintrb_outfit2 = belttintrb_outfit2;
			player1.belttintgb_outfit2 = belttintgb_outfit2;
			player1.belttintbb_outfit2 = belttintbb_outfit2;
			player1.gauntlettintrb_outfit2 = gauntlettintrb_outfit2;
			player1.gauntlettintgb_outfit2 = gauntlettintgb_outfit2;
			player1.gauntlettintbb_outfit2 = gauntlettintbb_outfit2;
			player1.armtintrb_outfit2 = armtintrb_outfit2;
			player1.armtintgb_outfit2 = armtintgb_outfit2;
			player1.armtintbb_outfit2 = armtintbb_outfit2;
			player1.jackettintrb_outfit2 = jackettintrb_outfit2;
			player1.jackettintgb_outfit2 = jackettintgb_outfit2;
			player1.jackettintbb_outfit2 = jackettintbb_outfit2;
			player1.glove1tintrb_outfit2 = glove1tintrb_outfit2;
			player1.glove1tintgb_outfit2 = glove1tintgb_outfit2;
			player1.glove1tintbb_outfit2 = glove1tintbb_outfit2;
			player1.glove2tintrb_outfit2 = glove2tintrb_outfit2;
			player1.glove2tintgb_outfit2 = glove2tintgb_outfit2;
			player1.glove2tintbb_outfit2 = glove2tintbb_outfit2;
			player1.panttintrb_outfit2 = panttintrb_outfit2;
			player1.panttintgb_outfit2 = panttintgb_outfit2;
			player1.panttintbb_outfit2 = panttintbb_outfit2;
			player1.shoetintrb_outfit2 = shoetintrb_outfit2;
			player1.shoetintgb_outfit2 = shoetintgb_outfit2;
			player1.shoetintbb_outfit2 = shoetintbb_outfit2;
			player1.skintintrb_outfit2 = skintintrb_outfit2;
			player1.skintintgb_outfit2 = skintintgb_outfit2;
			player1.skintintbb_outfit2 = skintintbb_outfit2;
			player1.sheathtintrb_outfit2 = sheathtintrb_outfit2;
			player1.sheathtintgb_outfit2 = sheathtintgb_outfit2;
			player1.sheathtintbb_outfit2 = sheathtintbb_outfit2;
			player1.capeon_outfit3 = capeon_outfit3;
			player1.maskoff_outfit3 = maskoff_outfit3;
			player1.extrabelt_outfit3 = extrabelt_outfit3;
			player1.barechest_outfit3 = barechest_outfit3;
			player1.hair_outfit3 = hair_outfit3;
			player1.earring_outfit3 = earring_outfit3;
			player1.skinz_outfit3 = skinz_outfit3;
			player1.freckles_outfit3 = freckles_outfit3;
			player1.frecklesalpha_outfit3 = frecklesalpha_outfit3;
			player1.nosez_outfit3 = nosez_outfit3;
			player1.eyepatch_outfit3 = eyepatch_outfit3;
			player1.eyesboth_outfit3 = eyesboth_outfit3;
			player1.eyesparkle1_outfit3 = eyesparkle1_outfit3;
			player1.eyesparkle2_outfit3 = eyesparkle2_outfit3;
			player1.eyetype1_outfit3 = eyetype1_outfit3;
			player1.eyetype2_outfit3 = eyetype2_outfit3;
			player1.eyescale1_outfit3 = eyescale1_outfit3;
			player1.eyescale2_outfit3 = eyescale2_outfit3;
			player1.eyewhite1_outfit3 = eyewhite1_outfit3;
			player1.eyewhite2_outfit3 = eyewhite2_outfit3;
			player1.eyebrows_outfit3 = eyebrows_outfit3;
			player1.eyesquint_outfit3 = eyesquint_outfit3;
			player1.maskz_outfit3 = maskz_outfit3;
			player1.tattoo_outfit3 = tattoo_outfit3;
			player1.scar_outfit3 = scar_outfit3;
			player1.beard_outfit3 = beard_outfit3;
			player1.capecolor_outfit3 = capecolor_outfit3;
			player1.cape_addon_outfit3 = cape_addon_outfit3;
			player1.necklace_outfit3 = necklace_outfit3;
			player1.jacket_outfit3 = jacket_outfit3;
			player1.pouches_outfit3 = pouches_outfit3;
			player1.belt_outfit3 = belt_outfit3;
			player1.gauntlet_outfit3 = gauntlet_outfit3;
			player1.arms_outfit3 = arms_outfit3;
			player1.glove1_outfit3 = glove1_outfit3;
			player1.glove2_outfit3 = glove2_outfit3;
			player1.pants_outfit3 = pants_outfit3;
			player1.shoes_outfit3 = shoes_outfit3;
			player1.tattooalpha_outfit3 = tattooalpha_outfit3;
			player1.scaralpha_outfit3 = scaralpha_outfit3;
			player1.hairtintrb_outfit3 = hairtintrb_outfit3;
			player1.hairtintgb_outfit3 = hairtintgb_outfit3;
			player1.hairtintbb_outfit3 = hairtintbb_outfit3;
			player1.eyepatchtintrb_outfit3 = eyepatchtintrb_outfit3;
			player1.eyepatchtintbb_outfit3 = eyepatchtintbb_outfit3;
			player1.eyepatchtintgb_outfit3 = eyepatchtintgb_outfit3;
			player1.eye1tintrb_outfit3 = eye1tintrb_outfit3;
			player1.eye1tintbb_outfit3 = eye1tintbb_outfit3;
			player1.eye1tintgb_outfit3 = eye1tintgb_outfit3;
			player1.eye2tintrb_outfit3 = eye2tintrb_outfit3;
			player1.eye2tintbb_outfit3 = eye2tintbb_outfit3;
			player1.eye2tintgb_outfit3 = eye2tintgb_outfit3;
			player1.masktintrb_outfit3 = masktintrb_outfit3;
			player1.masktintgb_outfit3 = masktintgb_outfit3;
			player1.masktintbb_outfit3 = masktintbb_outfit3;
			player1.tattootintrb_outfit3 = tattootintrb_outfit3;
			player1.tattootintgb_outfit3 = tattootintgb_outfit3;
			player1.tattootintbb_outfit3 = tattootintbb_outfit3;
			player1.capetintrb_outfit3 = capetintrb_outfit3;
			player1.capetintgb_outfit3 = capetintgb_outfit3;
			player1.capetintbb_outfit3 = capetintbb_outfit3;
			player1.necklacetintrb_outfit3 = necklacetintrb_outfit3;
			player1.necklacetintgb_outfit3 = necklacetintgb_outfit3;
			player1.necklacetintbb_outfit3 = necklacetintbb_outfit3;
			player1.pouchtintrb_outfit3 = pouchtintrb_outfit3;
			player1.pouchtintgb_outfit3 = pouchtintgb_outfit3;
			player1.pouchtintbb_outfit3 = pouchtintbb_outfit3;
			player1.belttintrb_outfit3 = belttintrb_outfit3;
			player1.belttintgb_outfit3 = belttintgb_outfit3;
			player1.belttintbb_outfit3 = belttintbb_outfit3;
			player1.gauntlettintrb_outfit3 = gauntlettintrb_outfit3;
			player1.gauntlettintgb_outfit3 = gauntlettintgb_outfit3;
			player1.gauntlettintbb_outfit3 = gauntlettintbb_outfit3;
			player1.armtintrb_outfit3 = armtintrb_outfit3;
			player1.armtintgb_outfit3 = armtintgb_outfit3;
			player1.armtintbb_outfit3 = armtintbb_outfit3;
			player1.jackettintrb_outfit3 = jackettintrb_outfit3;
			player1.jackettintgb_outfit3 = jackettintgb_outfit3;
			player1.jackettintbb_outfit3 = jackettintbb_outfit3;
			player1.glove1tintrb_outfit3 = glove1tintrb_outfit3;
			player1.glove1tintgb_outfit3 = glove1tintgb_outfit3;
			player1.glove1tintbb_outfit3 = glove1tintbb_outfit3;
			player1.glove2tintrb_outfit3 = glove2tintrb_outfit3;
			player1.glove2tintgb_outfit3 = glove2tintgb_outfit3;
			player1.glove2tintbb_outfit3 = glove2tintbb_outfit3;
			player1.panttintrb_outfit3 = panttintrb_outfit3;
			player1.panttintgb_outfit3 = panttintgb_outfit3;
			player1.panttintbb_outfit3 = panttintbb_outfit3;
			player1.shoetintrb_outfit3 = shoetintrb_outfit3;
			player1.shoetintgb_outfit3 = shoetintgb_outfit3;
			player1.shoetintbb_outfit3 = shoetintbb_outfit3;
			player1.skintintrb_outfit3 = skintintrb_outfit3;
			player1.skintintgb_outfit3 = skintintgb_outfit3;
			player1.skintintbb_outfit3 = skintintbb_outfit3;
			player1.sheathtintrb_outfit3 = sheathtintrb_outfit3;
			player1.sheathtintgb_outfit3 = sheathtintgb_outfit3;
			player1.sheathtintbb_outfit3 = sheathtintbb_outfit3;
			player1.slot = slot;
			player1SO = SharedObject.getLocal('playerInfo1');
			player1SO.data.playerDat = player1;
			player1SO.flush();
		};
		savePlayerInfo2 = function () {
			player2 = new Object();
			player2.corename = corename;
			player2.coreX = coreX;
			player2.calebX = calebX;
			player2.playerX = playerX;
			player2.playerY = playerY;
			player2.dateday = dateday;
			player2.datemonth = datemonth;
			player2.dateyear = dateyear;
			player2.stand = stand;
			player2.story = story;
			player2.tutz = tutz;
			player2.gold = gold;
			player2.autoscreensave = autoscreensave;
			player2.firstsave = firstsave;
			player2.gotfirststats = gotfirststats;
			player2.godmode = godmode;
			player2.hascheated = hascheated;
			player2.character = character;
			player2.numofchars = numofchars;
			player2.currentweapon = currentweapon;
			player2.runningz = runningz;
			player2.areaname = areaname;
			player2.menucolor = menucolor;
			player2.corenumofmagics = corenumofmagics;
			player2.corenumoflimits = corenumoflimits;
			player2.calebnumofmagics = calebnumofmagics;
			player2.calebnumoflimits = calebnumoflimits;
			player2.fishing_count = fishing_count;
			player2.fishinghighscore = fishinghighscore;
			player2.numofbattles = numofbattles;
			player2.numofswords = numofswords;
			player2.coremagic1 = coremagic1;
			player2.calebmagic1 = calebmagic1;
			player2.farsight = farsight;
			player2.difficulty = difficulty;
			player2.corehealth = corehealth;
			player2.coremaxhealth = coremaxhealth;
			player2.coremana = coremana;
			player2.coremaxmana = coremaxmana;
			player2.calebhealth = calebhealth;
			player2.calebmaxhealth = calebmaxhealth;
			player2.calebmana = calebmana;
			player2.calebmaxmana = calebmaxmana;
			player2.corelimit = corelimit;
			player2.coremaxlimit = coremaxlimit;
			player2.caleblimit = caleblimit;
			player2.calebmaxlimit = calebmaxlimit;
			player2.directions = directions;
			player2.weapon1 = weapon1;
			player2.weapon2 = weapon2;
			player2.weapon3 = weapon3;
			player2.weapon4 = weapon4;
			player2.weapon5 = weapon5;
			player2.weapon6 = weapon6;
			player2.coremagic1 = coremagic1;
			player2.coremagic2 = coremagic2;
			player2.coremagic3 = coremagic3;
			player2.coremagic4 = coremagic4;
			player2.coremagic5 = coremagic5;
			player2.coremagic6 = coremagic6;
			player2.calebmagic1 = calebmagic1;
			player2.calebmagic2 = calebmagic2;
			player2.calebmagic3 = calebmagic3;
			player2.calebmagic4 = calebmagic4;
			player2.calebmagic5 = calebmagic5;
			player2.calebmagic6 = calebmagic6;
			player2.corelimit1 = corelimit1;
			player2.corelimit2 = corelimit2;
			player2.corelimit3 = corelimit3;
			player2.corelimit4 = corelimit4;
			player2.caleblimit1 = caleblimit1;
			player2.caleblimit2 = caleblimit2;
			player2.caleblimit3 = caleblimit3;
			player2.caleblimit4 = caleblimit4;
			player2.gotsword2 = gotsword2;
			player2.gotsword3 = gotsword3;
			player2.gotsword4 = gotsword4;
			player2.gotsword5 = gotsword5;
			player2.gotsword6 = gotsword6;
			player2.sword1f = sword1f;
			player2.sword2f = sword2f;
			player2.sword3f = sword3f;
			player2.sword4f = sword4f;
			player2.sword5f = sword5f;
			player2.sword6f = sword6f;
			player2.corecounterchance = corecounterchance;
			player2.calebcounterchance = calebcounterchance;
			player2.corepoison = corepoison;
			player2.calebpoison = calebpoison;
			player2.coremagicdamage = coremagicdamage;
			player2.corestrength = corestrength;
			player2.coredefense = coredefense;
			player2.coremagicdefense = coremagicdefense;
			player2.coreluck = coreluck;
			player2.coreagility = coreagility;
			player2.coremagicdamageX = coremagicdamageX;
			player2.coremagicdefenseX = coremagicdefenseX;
			player2.corestrengthX = corestrengthX;
			player2.coredefenseX = coredefenseX;
			player2.coreluckX = coreluckX;
			player2.coreagilityX = coreagilityX;
			player2.corefireElement = corefireElement;
			player2.coredarkElement = coredarkElement;
			player2.coreiceElement = coreiceElement;
			player2.corethunderElement = corethunderElement;
			player2.calebmagicdamage = calebmagicdamage;
			player2.calebstrength = calebstrength;
			player2.calebdefense = calebdefense;
			player2.calebmagicdefense = calebmagicdefense;
			player2.calebluck = calebluck;
			player2.calebagility = calebagility;
			player2.calebmagicdamageX = calebmagicdamageX;
			player2.calebmagicdefenseX = calebmagicdefenseX;
			player2.calebstrengthX = calebstrengthX;
			player2.calebdefenseX = calebdefenseX;
			player2.calebluckX = calebluckX;
			player2.calebagilityX = calebagilityX;
			player2.calebfireElement = calebfireElement;
			player2.calebdarkElement = calebdarkElement;
			player2.calebiceElement = calebiceElement;
			player2.calebthunderElement = calebthunderElement;
			player2.sword = sword;
			player2.swordname = swordname;
			player2.corereghealth = corereghealth;
			player2.coreregmana = coreregmana;
			player2.coreregstamina = coreregstamina;
			player2.calebreghealth = calebreghealth;
			player2.calebregmana = calebregmana;
			player2.calebregstamina = calebregstamina;
			player2.normalspeed = normalspeed;
			player2.orgspeed = orgspeed;
			player2.potion = potion;
			player2.ether = ether;
			player2.elixir = elixir;
			player2.remedy = remedy;
			player2.limit = limit;
			player2.bottle = bottle;
			player2.areabattle = areabattle;
			player2.areascreen = areascreen;
			player2.footstepsound = footstepsound;
			player2.walkthrough = walkthrough;
			player2.champion = champion;
			player2.playerZ = playerZ;
			player2.floorz = floorz;
			player2.forcenotrun = forcenotrun;
			player2.restorespeed = restorespeed;
			player2.savedateday = savedateday;
			player2.savedateyear = savedateyear;
			player2.savedatemonth = savedatemonth;
			player2.saveseconds = saveseconds;
			player2.saveminutes = saveminutes;
			player2.savehours = savehours;
			player2.numofluckyhits = numofluckyhits;
			player2.numofmedals = numofmedals;
			player2.menuquality = menuquality;
			player2.medalcharm = medalcharm;
			player2.medalcharms = medalcharms;
			player2.medalmeeting = medalmeeting;
			player2.medalrookie = medalrookie;
			player2.medalveteran = medalveteran;
			player2.medallegend = medallegend;
			player2.medalhelper = medalhelper;
			player2.medalswordfish = medalswordfish;
			player2.medalawakened = medalawakened;
			player2.medalpoet = medalpoet;
			player2.medalmeeting1 = medalmeeting1;
			player2.medalmeeting2 = medalmeeting2;
			player2.medaldiglet = medaldiglet;
			player2.medalherbivore = medalherbivore;
			player2.medalflawless = medalflawless;
			player2.medalflawlessX = medalflawlessX;
			player2.medaljuggernaught = medaljuggernaught;
			player2.medalaquaman = medalaquaman;
			player2.medalperfection = medalperfection;
			player2.changediff = changediff;
			player2.sfxmute = sfxmute;
			player2.night = night;
			player2.camera = camera;
			player2.hudvisible = hudvisible;
			player2.menuvisible = menuvisible;
			player2.gamequality = gamequality;
			player2.battlequality = battlequality;
			player2.counter = counter;
			player2.counter2 = counter2;
			player2.counter3 = counter3;
			player2.counter2X = counter2X;
			player2.counter3X = counter3X;
			player2.counterminute = counterminute;
			player2.counterhour = counterhour;
			player2.housegrade = housegrade;
			player2.housegrade2 = housegrade2;
			player2.limitless = limitless;
			player2.housecarpet = housecarpet;
			player2.housechair = housechair;
			player2.housewardrobe = housewardrobe;
			player2.housecandelebra = housecandelebra;
			player2.housepainting = housepainting;
			player2.enterhouse1 = enterhouse1;
			player2.enterhouse2 = enterhouse2;
			player2.questbag = questbag;
			player2.questbbag = questbbag;
			player2.questbeer = questbeer;
			player2.questfindbook = questfindbook;
			player2.questreturnbook = questreturnbook;
			player2.questwolf = questwolf;
			player2.questlove = questlove;
			player2.questink = questink;
			player2.questbrock = questbrock;
			player2.questnewintown = questnewintown;
			player2.questfindsword = questfindsword;
			player2.questfisher = questfisher;
			player2.questboar = questboar;
			player2.questfriend = questfriend;
			player2.questspitter = questspitter;
			player2.questgornak = questgornak;
			player2.questpotion = questpotion;
			player2.questhorse = questhorse;
			player2.questgamble = questgamble;
			player2.questthanator = questthanator;
			player2.questgnome = questgnome;
			player2.questsick = questsick;
			player2.questdonovan = questdonovan;
			player2.questshow = questshow;
			player2.questdrugs = questdrugs;
			player2.questdrunk = questdrunk;
			player2.questitemhunter = questitemhunter;
			player2.questtreasure = questtreasure;
			player2.questkidnap = questkidnap;
			player2.questdeadman = questdeadman;
			player2.questbagX = questbagX;
			player2.questbbagX = questbbagX;
			player2.questbeerX = questbeerX;
			player2.questfindbookX = questfindbookX;
			player2.questreturnbookX = questreturnbookX;
			player2.questwolfX = questwolfX;
			player2.questloveX = questloveX;
			player2.questinkX = questinkX;
			player2.questbrockX = questbrockX;
			player2.questnewintownX = questnewintownX;
			player2.questfindswordX = questfindswordX;
			player2.questfisherX = questfisherX;
			player2.questboarX = questboarX;
			player2.questfriendX = questfriendX;
			player2.questspitterX = questspitterX;
			player2.questgornakX = questgornakX;
			player2.questpotionX = questpotionX;
			player2.questhorseX = questhorseX;
			player2.questgambleX = questgambleX;
			player2.questthanatorX = questthanatorX;
			player2.questgnomeX = questgnomeX;
			player2.questsickX = questsickX;
			player2.questdonovanX = questdonovanX;
			player2.questshowX = questshowX;
			player2.questdrugsX = questdrugsX;
			player2.questdrunkX = questdrunkX;
			player2.questitemhunterX = questitemhunterX;
			player2.questtreasureX = questtreasureX;
			player2.questkidnapX = questkidnapX;
			player2.questdeadmanX = questdeadmanX;
			player2.numquests = numquests;
			player2.sessions = sessions;
			player2.firstcoremagic1 = firstcoremagic1;
			player2.firstcoremagic2 = firstcoremagic2;
			player2.firstcoremagic3 = firstcoremagic3;
			player2.firstcoremagic4 = firstcoremagic4;
			player2.firstcoremagic5 = firstcoremagic5;
			player2.firstcoremagic6 = firstcoremagic6;
			player2.firstcalebmagic1 = firstcalebmagic1;
			player2.firstcalebmagic2 = firstcalebmagic2;
			player2.firstcalebmagic3 = firstcalebmagic3;
			player2.firstcalebmagic4 = firstcalebmagic4;
			player2.firstcalebmagic5 = firstcalebmagic5;
			player2.firstcalebmagic6 = firstcalebmagic6;
			player2.numpoet = numpoet;
			player2.founddouglas = founddouglas;
			player2.namecolor = namecolor;
			player2.rewardcolor = rewardcolor;
			player2.mainquest = mainquest;
			player2.imrahischat = imrahischat;
			player2.luvannonchat = luvannonchat;
			player2.ghosttalk = ghosttalk;
			player2.activequests = activequests;
			player2.completedquests = completedquests;
			player2.qpage = qpage;
			player2.musicmute = musicmute;
			player2.volumez = volumez;
			player2.areabg = areabg;
			player2.coregotlimit = coregotlimit;
			player2.calebgotlimit = calebgotlimit;
			player2.hotinfo = hotinfo;
			player2.cinemacam = cinemacam;
			player2.camXpoint = camXpoint;
			player2.camYpoint = camYpoint;
			player2.currentstage = currentstage;
			player2.currentmusic = currentmusic;
			player2.gotshovel = gotshovel;
			player2.numofdigs = numofdigs;
			player2.gotfirstpotion = gotfirstpotion;
			player2.gotfirstelixir = gotfirstelixir;
			player2.gotfirstether = gotfirstether;
			player2.gotfirstremedy = gotfirstremedy;
			player2.gotfirstlimit = gotfirstlimit;
			player2.gotfirstbottle = gotfirstbottle;
			player2.firstrig = firstrig;
			player2.firstgornak = firstgornak;
			player2.firstgornak2 = firstgornak2;
			player2.firstcamera = firstcamera;
			player2.medalpoet1 = medalpoet1;
			player2.medalpoet2 = medalpoet2;
			player2.medalpoet3 = medalpoet3;
			player2.medalmeeting1 = medalmeeting1;
			player2.medalmeeting2 = medalmeeting2;
			player2.sonyacoins = sonyacoins;
			player2.janucoins = janucoins;
			player2.firstthanator = firstthanator;
			player2.firststalker = firststalker;
			player2.firstcarrion = firstcarrion;
			player2.firstghoul = firstghoul;
			player2.firstthanatorX = firstthanatorX;
			player2.firststalkerX = firststalkerX;
			player2.firstcarrionX = firstcarrionX;
			player2.firstgornakX = firstgornakX;
			player2.firstghoulX = firstghoulX;
			player2.gotfirstc = gotfirstc;
			player2.fame = fame;
			player2.shroom1 = shroom1;
			player2.shroom2 = shroom2;
			player2.shroom3 = shroom3;
			player2.shroom4 = shroom4;
			player2.butterfly1 = butterfly1;
			player2.butterfly2 = butterfly2;
			player2.collectibles = collectibles;
			player2.shroomitem1 = shroomitem1;
			player2.shroomitem2 = shroomitem2;
			player2.shroomitem3 = shroomitem3;
			player2.shroomitem4 = shroomitem4;
			player2.shroomitem5 = shroomitem5;
			player2.shroomitem6 = shroomitem6;
			player2.shroomitem7 = shroomitem7;
			player2.shroomitem8 = shroomitem8;
			player2.shroomitem9 = shroomitem9;
			player2.shroomitem10 = shroomitem10;
			player2.shroomitem11 = shroomitem11;
			player2.shroomitem12 = shroomitem12;
			player2.shroomitem13 = shroomitem13;
			player2.shroomitem14 = shroomitem14;
			player2.shroomitem15 = shroomitem15;
			player2.shroomitem16 = shroomitem16;
			player2.shroomitem17 = shroomitem17;
			player2.shroomitem18 = shroomitem18;
			player2.shroomitem19 = shroomitem19;
			player2.shroomitem20 = shroomitem20;
			player2.shroomitem21 = shroomitem21;
			player2.shroomitem22 = shroomitem22;
			player2.shroomitem23 = shroomitem23;
			player2.shroomitem24 = shroomitem24;
			player2.shroomitem25 = shroomitem25;
			player2.shroomitem26 = shroomitem26;
			player2.shroomitem27 = shroomitem27;
			player2.shroomitem28 = shroomitem28;
			player2.shroomitem29 = shroomitem29;
			player2.shroomitem30 = shroomitem30;
			player2.shroomitem31 = shroomitem31;
			player2.shroomitem32 = shroomitem32;
			player2.shroomitem33 = shroomitem33;
			player2.shroomitem34 = shroomitem34;
			player2.shroomitem35 = shroomitem35;
			player2.shroomitem36 = shroomitem36;
			player2.shroomitem37 = shroomitem37;
			player2.shroomitem38 = shroomitem38;
			player2.shroomitem39 = shroomitem39;
			player2.shroomitem40 = shroomitem40;
			player2.shroomitem41 = shroomitem41;
			player2.shroomitem42 = shroomitem42;
			player2.shroomitem43 = shroomitem43;
			player2.shroomitem44 = shroomitem44;
			player2.shroomitem45 = shroomitem45;
			player2.shroomitem46 = shroomitem46;
			player2.shroomitem47 = shroomitem47;
			player2.shroomitem48 = shroomitem48;
			player2.shroomitem49 = shroomitem49;
			player2.shroomitem50 = shroomitem50;
			player2.shroomitem51 = shroomitem51;
			player2.shroomitem52 = shroomitem52;
			player2.shroomitem53 = shroomitem53;
			player2.shroomitem54 = shroomitem54;
			player2.shroomitem55 = shroomitem55;
			player2.shroomitem56 = shroomitem56;
			player2.shroomitem57 = shroomitem57;
			player2.shroomitem58 = shroomitem58;
			player2.shroomitem59 = shroomitem59;
			player2.shroomitem60 = shroomitem60;
			player2.shroomitem61 = shroomitem61;
			player2.shroomitem62 = shroomitem62;
			player2.shroomitem63 = shroomitem63;
			player2.shroomitem64 = shroomitem64;
			player2.shroomitem65 = shroomitem65;
			player2.shroomitem66 = shroomitem66;
			player2.shroomitem67 = shroomitem67;
			player2.shroomitem68 = shroomitem68;
			player2.shroomitem69 = shroomitem69;
			player2.shroomitem70 = shroomitem70;
			player2.shroomitem71 = shroomitem71;
			player2.shroomitem72 = shroomitem72;
			player2.shroomitem73 = shroomitem73;
			player2.shroomitem74 = shroomitem74;
			player2.shroomitem75 = shroomitem75;
			player2.shroomitem76 = shroomitem76;
			player2.shroomitem77 = shroomitem77;
			player2.shroomitem78 = shroomitem78;
			player2.shroomitem79 = shroomitem79;
			player2.shroomitem80 = shroomitem80;
			player2.butterflyitem1 = butterflyitem1;
			player2.butterflyitem2 = butterflyitem2;
			player2.butterflyitem3 = butterflyitem3;
			player2.butterflyitem4 = butterflyitem4;
			player2.butterflyitem5 = butterflyitem5;
			player2.butterflyitem6 = butterflyitem6;
			player2.butterflyitem7 = butterflyitem7;
			player2.butterflyitem8 = butterflyitem8;
			player2.butterflyitem9 = butterflyitem9;
			player2.butterflyitem10 = butterflyitem10;
			player2.shovel1 = shovel1;
			player2.shovel2 = shovel2;
			player2.shovel3 = shovel3;
			player2.shovel4 = shovel4;
			player2.shovel5 = shovel5;
			player2.shovel6 = shovel6;
			player2.shovel7 = shovel7;
			player2.shovel8 = shovel8;
			player2.shovel9 = shovel9;
			player2.shovel10 = shovel10;
			player2.item1 = item1;
			player2.item2 = item2;
			player2.item3 = item3;
			player2.item4 = item4;
			player2.item5 = item5;
			player2.item6 = item6;
			player2.item7 = item7;
			player2.item8 = item8;
			player2.item9 = item9;
			player2.item10 = item10;
			player2.item11 = item11;
			player2.item12 = item12;
			player2.item13 = item13;
			player2.item14 = item14;
			player2.item15 = item15;
			player2.item16 = item16;
			player2.item17 = item17;
			player2.item18 = item18;
			player2.item19 = item19;
			player2.item20 = item20;
			player2.item21 = item21;
			player2.item22 = item22;
			player2.item23 = item23;
			player2.item24 = item24;
			player2.item25 = item25;
			player2.item26 = item26;
			player2.item27 = item27;
			player2.item28 = item28;
			player2.item29 = item29;
			player2.item30 = item30;
			player2.switchzn1 = switchzn1;
			player2.switchzn2 = switchzn2;
			player2.switchzn3 = switchzn3;
			player2.switchzn4 = switchzn4;
			player2.switchzn5 = switchzn5;
			player2.switchzn6 = switchzn6;
			player2.switchzn7 = switchzn7;
			player2.switchzn8 = switchzn8;
			player2.switchzn9 = switchzn9;
			player2.obj0 = obj0;
			player2.obj1 = obj1;
			player2.obj2 = obj2;
			player2.obj3 = obj3;
			player2.obj4 = obj4;
			player2.obj5 = obj5;
			player2.obj6 = obj6;
			player2.obj7 = obj7;
			player2.obj8 = obj8;
			player2.obj9 = obj9;
			player2.obj10 = obj10;
			player2.obj11 = obj11;
			player2.obj12 = obj12;
			player2.obj13 = obj13;
			player2.obj14 = obj14;
			player2.obj15 = obj15;
			player2.obj16 = obj16;
			player2.obj17 = obj17;
			player2.obj18 = obj18;
			player2.obj19 = obj19;
			player2.obj20 = obj20;
			player2.obj21 = obj21;
			player2.obj22 = obj22;
			player2.obj23 = obj23;
			player2.obj24 = obj24;
			player2.obj25 = obj25;
			player2.obj26 = obj26;
			player2.obj27 = obj27;
			player2.obj28 = obj28;
			player2.obj29 = obj29;
			player2.obj30 = obj30;
			player2.objname0 = objname0;
			player2.objname1 = objname1;
			player2.objname2 = objname2;
			player2.objname3 = objname3;
			player2.objname4 = objname4;
			player2.objname5 = objname5;
			player2.objname6 = objname6;
			player2.objname7 = objname7;
			player2.objname8 = objname8;
			player2.objname9 = objname9;
			player2.objname10 = objname10;
			player2.objname11 = objname11;
			player2.objname12 = objname12;
			player2.objname13 = objname13;
			player2.objname14 = objname14;
			player2.objname15 = objname15;
			player2.objname16 = objname16;
			player2.objname17 = objname17;
			player2.objname18 = objname18;
			player2.objname19 = objname19;
			player2.objname20 = objname20;
			player2.objname21 = objname21;
			player2.objname22 = objname22;
			player2.objname23 = objname23;
			player2.objname24 = objname24;
			player2.objname25 = objname25;
			player2.objname26 = objname26;
			player2.objname27 = objname27;
			player2.objname28 = objname28;
			player2.objname29 = objname29;
			player2.objname30 = objname30;
			player2.darconstory = darconstory;
			player2.guarduniform = guarduniform;
			player2.goteyepatches = goteyepatches;
			player2.gotmaskcape = gotmaskcape;
			player2.gotgrayskin = gotgrayskin;
			player2.gotredskin = gotredskin;
			player2.gotmask1 = gotmask1;
			player2.gotmask2 = gotmask2;
			player2.gotmask3 = gotmask3;
			player2.gotmask4 = gotmask4;
			player2.gotbandana = gotbandana;
			player2.gotfedorahat = gotfedorahat;
			player2.gottophat = gottophat;
			player2.gotthunder = gotthunder;
			player2.gotblackpearl = gotblackpearl;
			player2.gotserpentnose = gotserpentnose;
			player2.gotwarpaint = gotwarpaint;
			player2.goteyebleed = goteyebleed;
			player2.goteyeshadow = goteyeshadow;
			player2.gotbloodshoteyes = gotbloodshoteyes;
			player2.gotundeadeyes = gotundeadeyes;
			player2.gotdemoneyes = gotdemoneyes;
			player2.capeon = capeon;
			player2.maskoff = maskoff;
			player2.extrabelt = extrabelt;
			player2.barechest = barechest;
			player2.outfit = outfit;
			player2.hair = hair;
			player2.earring = earring;
			player2.skinz = skinz;
			player2.freckles = freckles;
			player2.frecklesalpha = frecklesalpha;
			player2.nosez = nosez;
			player2.eyepatch = eyepatch;
			player2.eyesboth = eyesboth;
			player2.eyesparkle1 = eyesparkle1;
			player2.eyesparkle2 = eyesparkle2;
			player2.eyetype1 = eyetype1;
			player2.eyetype2 = eyetype2;
			player2.eyescale1 = eyescale1;
			player2.eyescale2 = eyescale2;
			player2.eyewhite1 = eyewhite1;
			player2.eyewhite2 = eyewhite2;
			player2.eyebrows = eyebrows;
			player2.eyesquint = eyesquint;
			player2.maskz = maskz;
			player2.tattoo = tattoo;
			player2.scar = scar;
			player2.beard = beard;
			player2.capecolor = capecolor;
			player2.cape_addon = cape_addon;
			player2.necklace = necklace;
			player2.jacket = jacket;
			player2.pouches = pouches;
			player2.belt = belt;
			player2.gauntlet = gauntlet;
			player2.arms = arms;
			player2.glove1 = glove1;
			player2.glove2 = glove2;
			player2.pants = pants;
			player2.shoes = shoes;
			player2.tattooalpha = tattooalpha;
			player2.scaralpha = scaralpha;
			player2.hairtintrb = hairtintrb;
			player2.hairtintgb = hairtintgb;
			player2.hairtintbb = hairtintbb;
			player2.eyepatchtintrb = eyepatchtintrb;
			player2.eyepatchtintbb = eyepatchtintbb;
			player2.eyepatchtintgb = eyepatchtintgb;
			player2.eye1tintrb = eye1tintrb;
			player2.eye1tintbb = eye1tintbb;
			player2.eye1tintgb = eye1tintgb;
			player2.eye2tintrb = eye2tintrb;
			player2.eye2tintbb = eye2tintbb;
			player2.eye2tintgb = eye2tintgb;
			player2.masktintrb = masktintrb;
			player2.masktintgb = masktintgb;
			player2.masktintbb = masktintbb;
			player2.tattootintrb = tattootintrb;
			player2.tattootintgb = tattootintgb;
			player2.tattootintbb = tattootintbb;
			player2.capetintrb = capetintrb;
			player2.capetintgb = capetintgb;
			player2.capetintbb = capetintbb;
			player2.necklacetintrb = necklacetintrb;
			player2.necklacetintgb = necklacetintgb;
			player2.necklacetintbb = necklacetintbb;
			player2.pouchtintrb = pouchtintrb;
			player2.pouchtintgb = pouchtintgb;
			player2.pouchtintbb = pouchtintbb;
			player2.belttintrb = belttintrb;
			player2.belttintgb = belttintgb;
			player2.belttintbb = belttintbb;
			player2.gauntlettintrb = gauntlettintrb;
			player2.gauntlettintgb = gauntlettintgb;
			player2.gauntlettintbb = gauntlettintbb;
			player2.armtintrb = armtintrb;
			player2.armtintgb = armtintgb;
			player2.armtintbb = armtintbb;
			player2.jackettintrb = jackettintrb;
			player2.jackettintgb = jackettintgb;
			player2.jackettintbb = jackettintbb;
			player2.glove1tintrb = glove1tintrb;
			player2.glove1tintgb = glove1tintgb;
			player2.glove1tintbb = glove1tintbb;
			player2.glove2tintrb = glove2tintrb;
			player2.glove2tintgb = glove2tintgb;
			player2.glove2tintbb = glove2tintbb;
			player2.panttintrb = panttintrb;
			player2.panttintgb = panttintgb;
			player2.panttintbb = panttintbb;
			player2.shoetintrb = shoetintrb;
			player2.shoetintgb = shoetintgb;
			player2.shoetintbb = shoetintbb;
			player2.skintintrb = skintintrb;
			player2.skintintgb = skintintgb;
			player2.skintintbb = skintintbb;
			player2.sheathtintrb = sheathtintrb;
			player2.sheathtintgb = sheathtintgb;
			player2.sheathtintbb = sheathtintbb;
			player2.capeon_outfit1 = capeon_outfit1;
			player2.maskoff_outfit1 = maskoff_outfit1;
			player2.extrabelt_outfit1 = extrabelt_outfit1;
			player2.barechest_outfit1 = barechest_outfit1;
			player2.hair_outfit1 = hair_outfit1;
			player2.earring_outfit1 = earring_outfit1;
			player2.skinz_outfit1 = skinz_outfit1;
			player2.freckles_outfit1 = freckles_outfit1;
			player2.frecklesalpha_outfit1 = frecklesalpha_outfit1;
			player2.nosez_outfit1 = nosez_outfit1;
			player2.eyepatch_outfit1 = eyepatch_outfit1;
			player2.eyesboth_outfit1 = eyesboth_outfit1;
			player2.eyesparkle1_outfit1 = eyesparkle1_outfit1;
			player2.eyesparkle2_outfit1 = eyesparkle2_outfit1;
			player2.eyetype1_outfit1 = eyetype1_outfit1;
			player2.eyetype2_outfit1 = eyetype2_outfit1;
			player2.eyescale1_outfit1 = eyescale1_outfit1;
			player2.eyescale2_outfit1 = eyescale2_outfit1;
			player2.eyewhite1_outfit1 = eyewhite1_outfit1;
			player2.eyewhite2_outfit1 = eyewhite2_outfit1;
			player2.eyebrows_outfit1 = eyebrows_outfit1;
			player2.eyesquint_outfit1 = eyesquint_outfit1;
			player2.maskz_outfit1 = maskz_outfit1;
			player2.tattoo_outfit1 = tattoo_outfit1;
			player2.scar_outfit1 = scar_outfit1;
			player2.beard_outfit1 = beard_outfit1;
			player2.capecolor_outfit1 = capecolor_outfit1;
			player2.cape_addon_outfit1 = cape_addon_outfit1;
			player2.necklace_outfit1 = necklace_outfit1;
			player2.jacket_outfit1 = jacket_outfit1;
			player2.pouches_outfit1 = pouches_outfit1;
			player2.belt_outfit1 = belt_outfit1;
			player2.gauntlet_outfit1 = gauntlet_outfit1;
			player2.arms_outfit1 = arms_outfit1;
			player2.glove1_outfit1 = glove1_outfit1;
			player2.glove2_outfit1 = glove2_outfit1;
			player2.pants_outfit1 = pants_outfit1;
			player2.shoes_outfit1 = shoes_outfit1;
			player2.tattooalpha_outfit1 = tattooalpha_outfit1;
			player2.scaralpha_outfit1 = scaralpha_outfit1;
			player2.hairtintrb_outfit1 = hairtintrb_outfit1;
			player2.hairtintgb_outfit1 = hairtintgb_outfit1;
			player2.hairtintbb_outfit1 = hairtintbb_outfit1;
			player2.eyepatchtintrb_outfit1 = eyepatchtintrb_outfit1;
			player2.eyepatchtintbb_outfit1 = eyepatchtintbb_outfit1;
			player2.eyepatchtintgb_outfit1 = eyepatchtintgb_outfit1;
			player2.eye1tintrb_outfit1 = eye1tintrb_outfit1;
			player2.eye1tintbb_outfit1 = eye1tintbb_outfit1;
			player2.eye1tintgb_outfit1 = eye1tintgb_outfit1;
			player2.eye2tintrb_outfit1 = eye2tintrb_outfit1;
			player2.eye2tintbb_outfit1 = eye2tintbb_outfit1;
			player2.eye2tintgb_outfit1 = eye2tintgb_outfit1;
			player2.masktintrb_outfit1 = masktintrb_outfit1;
			player2.masktintgb_outfit1 = masktintgb_outfit1;
			player2.masktintbb_outfit1 = masktintbb_outfit1;
			player2.tattootintrb_outfit1 = tattootintrb_outfit1;
			player2.tattootintgb_outfit1 = tattootintgb_outfit1;
			player2.tattootintbb_outfit1 = tattootintbb_outfit1;
			player2.capetintrb_outfit1 = capetintrb_outfit1;
			player2.capetintgb_outfit1 = capetintgb_outfit1;
			player2.capetintbb_outfit1 = capetintbb_outfit1;
			player2.necklacetintrb_outfit1 = necklacetintrb_outfit1;
			player2.necklacetintgb_outfit1 = necklacetintgb_outfit1;
			player2.necklacetintbb_outfit1 = necklacetintbb_outfit1;
			player2.pouchtintrb_outfit1 = pouchtintrb_outfit1;
			player2.pouchtintgb_outfit1 = pouchtintgb_outfit1;
			player2.pouchtintbb_outfit1 = pouchtintbb_outfit1;
			player2.belttintrb_outfit1 = belttintrb_outfit1;
			player2.belttintgb_outfit1 = belttintgb_outfit1;
			player2.belttintbb_outfit1 = belttintbb_outfit1;
			player2.gauntlettintrb_outfit1 = gauntlettintrb_outfit1;
			player2.gauntlettintgb_outfit1 = gauntlettintgb_outfit1;
			player2.gauntlettintbb_outfit1 = gauntlettintbb_outfit1;
			player2.armtintrb_outfit1 = armtintrb_outfit1;
			player2.armtintgb_outfit1 = armtintgb_outfit1;
			player2.armtintbb_outfit1 = armtintbb_outfit1;
			player2.jackettintrb_outfit1 = jackettintrb_outfit1;
			player2.jackettintgb_outfit1 = jackettintgb_outfit1;
			player2.jackettintbb_outfit1 = jackettintbb_outfit1;
			player2.glove1tintrb_outfit1 = glove1tintrb_outfit1;
			player2.glove1tintgb_outfit1 = glove1tintgb_outfit1;
			player2.glove1tintbb_outfit1 = glove1tintbb_outfit1;
			player2.glove2tintrb_outfit1 = glove2tintrb_outfit1;
			player2.glove2tintgb_outfit1 = glove2tintgb_outfit1;
			player2.glove2tintbb_outfit1 = glove2tintbb_outfit1;
			player2.panttintrb_outfit1 = panttintrb_outfit1;
			player2.panttintgb_outfit1 = panttintgb_outfit1;
			player2.panttintbb_outfit1 = panttintbb_outfit1;
			player2.shoetintrb_outfit1 = shoetintrb_outfit1;
			player2.shoetintgb_outfit1 = shoetintgb_outfit1;
			player2.shoetintbb_outfit1 = shoetintbb_outfit1;
			player2.skintintrb_outfit1 = skintintrb_outfit1;
			player2.skintintgb_outfit1 = skintintgb_outfit1;
			player2.skintintbb_outfit1 = skintintbb_outfit1;
			player2.sheathtintrb_outfit1 = sheathtintrb_outfit1;
			player2.sheathtintgb_outfit1 = sheathtintgb_outfit1;
			player2.sheathtintbb_outfit1 = sheathtintbb_outfit1;
			player2.capeon_outfit2 = capeon_outfit2;
			player2.maskoff_outfit2 = maskoff_outfit2;
			player2.extrabelt_outfit2 = extrabelt_outfit2;
			player2.barechest_outfit2 = barechest_outfit2;
			player2.hair_outfit2 = hair_outfit2;
			player2.earring_outfit2 = earring_outfit2;
			player2.skinz_outfit2 = skinz_outfit2;
			player2.freckles_outfit2 = freckles_outfit2;
			player2.frecklesalpha_outfit2 = frecklesalpha_outfit2;
			player2.nosez_outfit2 = nosez_outfit2;
			player2.eyepatch_outfit2 = eyepatch_outfit2;
			player2.eyesboth_outfit2 = eyesboth_outfit2;
			player2.eyesparkle1_outfit2 = eyesparkle1_outfit2;
			player2.eyesparkle2_outfit2 = eyesparkle2_outfit2;
			player2.eyetype1_outfit2 = eyetype1_outfit2;
			player2.eyetype2_outfit2 = eyetype2_outfit2;
			player2.eyescale1_outfit2 = eyescale1_outfit2;
			player2.eyescale2_outfit2 = eyescale2_outfit2;
			player2.eyewhite1_outfit2 = eyewhite1_outfit2;
			player2.eyewhite2_outfit2 = eyewhite2_outfit2;
			player2.eyebrows_outfit2 = eyebrows_outfit2;
			player2.eyesquint_outfit2 = eyesquint_outfit2;
			player2.maskz_outfit2 = maskz_outfit2;
			player2.tattoo_outfit2 = tattoo_outfit2;
			player2.scar_outfit2 = scar_outfit2;
			player2.beard_outfit2 = beard_outfit2;
			player2.capecolor_outfit2 = capecolor_outfit2;
			player2.cape_addon_outfit2 = cape_addon_outfit2;
			player2.necklace_outfit2 = necklace_outfit2;
			player2.jacket_outfit2 = jacket_outfit2;
			player2.pouches_outfit2 = pouches_outfit2;
			player2.belt_outfit2 = belt_outfit2;
			player2.gauntlet_outfit2 = gauntlet_outfit2;
			player2.arms_outfit2 = arms_outfit2;
			player2.glove1_outfit2 = glove1_outfit2;
			player2.glove2_outfit2 = glove2_outfit2;
			player2.pants_outfit2 = pants_outfit2;
			player2.shoes_outfit2 = shoes_outfit2;
			player2.tattooalpha_outfit2 = tattooalpha_outfit2;
			player2.scaralpha_outfit2 = scaralpha_outfit2;
			player2.hairtintrb_outfit2 = hairtintrb_outfit2;
			player2.hairtintgb_outfit2 = hairtintgb_outfit2;
			player2.hairtintbb_outfit2 = hairtintbb_outfit2;
			player2.eyepatchtintrb_outfit2 = eyepatchtintrb_outfit2;
			player2.eyepatchtintbb_outfit2 = eyepatchtintbb_outfit2;
			player2.eyepatchtintgb_outfit2 = eyepatchtintgb_outfit2;
			player2.eye1tintrb_outfit2 = eye1tintrb_outfit2;
			player2.eye1tintbb_outfit2 = eye1tintbb_outfit2;
			player2.eye1tintgb_outfit2 = eye1tintgb_outfit2;
			player2.eye2tintrb_outfit2 = eye2tintrb_outfit2;
			player2.eye2tintbb_outfit2 = eye2tintbb_outfit2;
			player2.eye2tintgb_outfit2 = eye2tintgb_outfit2;
			player2.masktintrb_outfit2 = masktintrb_outfit2;
			player2.masktintgb_outfit2 = masktintgb_outfit2;
			player2.masktintbb_outfit2 = masktintbb_outfit2;
			player2.tattootintrb_outfit2 = tattootintrb_outfit2;
			player2.tattootintgb_outfit2 = tattootintgb_outfit2;
			player2.tattootintbb_outfit2 = tattootintbb_outfit2;
			player2.capetintrb_outfit2 = capetintrb_outfit2;
			player2.capetintgb_outfit2 = capetintgb_outfit2;
			player2.capetintbb_outfit2 = capetintbb_outfit2;
			player2.necklacetintrb_outfit2 = necklacetintrb_outfit2;
			player2.necklacetintgb_outfit2 = necklacetintgb_outfit2;
			player2.necklacetintbb_outfit2 = necklacetintbb_outfit2;
			player2.pouchtintrb_outfit2 = pouchtintrb_outfit2;
			player2.pouchtintgb_outfit2 = pouchtintgb_outfit2;
			player2.pouchtintbb_outfit2 = pouchtintbb_outfit2;
			player2.belttintrb_outfit2 = belttintrb_outfit2;
			player2.belttintgb_outfit2 = belttintgb_outfit2;
			player2.belttintbb_outfit2 = belttintbb_outfit2;
			player2.gauntlettintrb_outfit2 = gauntlettintrb_outfit2;
			player2.gauntlettintgb_outfit2 = gauntlettintgb_outfit2;
			player2.gauntlettintbb_outfit2 = gauntlettintbb_outfit2;
			player2.armtintrb_outfit2 = armtintrb_outfit2;
			player2.armtintgb_outfit2 = armtintgb_outfit2;
			player2.armtintbb_outfit2 = armtintbb_outfit2;
			player2.jackettintrb_outfit2 = jackettintrb_outfit2;
			player2.jackettintgb_outfit2 = jackettintgb_outfit2;
			player2.jackettintbb_outfit2 = jackettintbb_outfit2;
			player2.glove1tintrb_outfit2 = glove1tintrb_outfit2;
			player2.glove1tintgb_outfit2 = glove1tintgb_outfit2;
			player2.glove1tintbb_outfit2 = glove1tintbb_outfit2;
			player2.glove2tintrb_outfit2 = glove2tintrb_outfit2;
			player2.glove2tintgb_outfit2 = glove2tintgb_outfit2;
			player2.glove2tintbb_outfit2 = glove2tintbb_outfit2;
			player2.panttintrb_outfit2 = panttintrb_outfit2;
			player2.panttintgb_outfit2 = panttintgb_outfit2;
			player2.panttintbb_outfit2 = panttintbb_outfit2;
			player2.shoetintrb_outfit2 = shoetintrb_outfit2;
			player2.shoetintgb_outfit2 = shoetintgb_outfit2;
			player2.shoetintbb_outfit2 = shoetintbb_outfit2;
			player2.skintintrb_outfit2 = skintintrb_outfit2;
			player2.skintintgb_outfit2 = skintintgb_outfit2;
			player2.skintintbb_outfit2 = skintintbb_outfit2;
			player2.sheathtintrb_outfit2 = sheathtintrb_outfit2;
			player2.sheathtintgb_outfit2 = sheathtintgb_outfit2;
			player2.sheathtintbb_outfit2 = sheathtintbb_outfit2;
			player2.capeon_outfit3 = capeon_outfit3;
			player2.maskoff_outfit3 = maskoff_outfit3;
			player2.extrabelt_outfit3 = extrabelt_outfit3;
			player2.barechest_outfit3 = barechest_outfit3;
			player2.hair_outfit3 = hair_outfit3;
			player2.earring_outfit3 = earring_outfit3;
			player2.skinz_outfit3 = skinz_outfit3;
			player2.freckles_outfit3 = freckles_outfit3;
			player2.frecklesalpha_outfit3 = frecklesalpha_outfit3;
			player2.nosez_outfit3 = nosez_outfit3;
			player2.eyepatch_outfit3 = eyepatch_outfit3;
			player2.eyesboth_outfit3 = eyesboth_outfit3;
			player2.eyesparkle1_outfit3 = eyesparkle1_outfit3;
			player2.eyesparkle2_outfit3 = eyesparkle2_outfit3;
			player2.eyetype1_outfit3 = eyetype1_outfit3;
			player2.eyetype2_outfit3 = eyetype2_outfit3;
			player2.eyescale1_outfit3 = eyescale1_outfit3;
			player2.eyescale2_outfit3 = eyescale2_outfit3;
			player2.eyewhite1_outfit3 = eyewhite1_outfit3;
			player2.eyewhite2_outfit3 = eyewhite2_outfit3;
			player2.eyebrows_outfit3 = eyebrows_outfit3;
			player2.eyesquint_outfit3 = eyesquint_outfit3;
			player2.maskz_outfit3 = maskz_outfit3;
			player2.tattoo_outfit3 = tattoo_outfit3;
			player2.scar_outfit3 = scar_outfit3;
			player2.beard_outfit3 = beard_outfit3;
			player2.capecolor_outfit3 = capecolor_outfit3;
			player2.cape_addon_outfit3 = cape_addon_outfit3;
			player2.necklace_outfit3 = necklace_outfit3;
			player2.jacket_outfit3 = jacket_outfit3;
			player2.pouches_outfit3 = pouches_outfit3;
			player2.belt_outfit3 = belt_outfit3;
			player2.gauntlet_outfit3 = gauntlet_outfit3;
			player2.arms_outfit3 = arms_outfit3;
			player2.glove1_outfit3 = glove1_outfit3;
			player2.glove2_outfit3 = glove2_outfit3;
			player2.pants_outfit3 = pants_outfit3;
			player2.shoes_outfit3 = shoes_outfit3;
			player2.tattooalpha_outfit3 = tattooalpha_outfit3;
			player2.scaralpha_outfit3 = scaralpha_outfit3;
			player2.hairtintrb_outfit3 = hairtintrb_outfit3;
			player2.hairtintgb_outfit3 = hairtintgb_outfit3;
			player2.hairtintbb_outfit3 = hairtintbb_outfit3;
			player2.eyepatchtintrb_outfit3 = eyepatchtintrb_outfit3;
			player2.eyepatchtintbb_outfit3 = eyepatchtintbb_outfit3;
			player2.eyepatchtintgb_outfit3 = eyepatchtintgb_outfit3;
			player2.eye1tintrb_outfit3 = eye1tintrb_outfit3;
			player2.eye1tintbb_outfit3 = eye1tintbb_outfit3;
			player2.eye1tintgb_outfit3 = eye1tintgb_outfit3;
			player2.eye2tintrb_outfit3 = eye2tintrb_outfit3;
			player2.eye2tintbb_outfit3 = eye2tintbb_outfit3;
			player2.eye2tintgb_outfit3 = eye2tintgb_outfit3;
			player2.masktintrb_outfit3 = masktintrb_outfit3;
			player2.masktintgb_outfit3 = masktintgb_outfit3;
			player2.masktintbb_outfit3 = masktintbb_outfit3;
			player2.tattootintrb_outfit3 = tattootintrb_outfit3;
			player2.tattootintgb_outfit3 = tattootintgb_outfit3;
			player2.tattootintbb_outfit3 = tattootintbb_outfit3;
			player2.capetintrb_outfit3 = capetintrb_outfit3;
			player2.capetintgb_outfit3 = capetintgb_outfit3;
			player2.capetintbb_outfit3 = capetintbb_outfit3;
			player2.necklacetintrb_outfit3 = necklacetintrb_outfit3;
			player2.necklacetintgb_outfit3 = necklacetintgb_outfit3;
			player2.necklacetintbb_outfit3 = necklacetintbb_outfit3;
			player2.pouchtintrb_outfit3 = pouchtintrb_outfit3;
			player2.pouchtintgb_outfit3 = pouchtintgb_outfit3;
			player2.pouchtintbb_outfit3 = pouchtintbb_outfit3;
			player2.belttintrb_outfit3 = belttintrb_outfit3;
			player2.belttintgb_outfit3 = belttintgb_outfit3;
			player2.belttintbb_outfit3 = belttintbb_outfit3;
			player2.gauntlettintrb_outfit3 = gauntlettintrb_outfit3;
			player2.gauntlettintgb_outfit3 = gauntlettintgb_outfit3;
			player2.gauntlettintbb_outfit3 = gauntlettintbb_outfit3;
			player2.armtintrb_outfit3 = armtintrb_outfit3;
			player2.armtintgb_outfit3 = armtintgb_outfit3;
			player2.armtintbb_outfit3 = armtintbb_outfit3;
			player2.jackettintrb_outfit3 = jackettintrb_outfit3;
			player2.jackettintgb_outfit3 = jackettintgb_outfit3;
			player2.jackettintbb_outfit3 = jackettintbb_outfit3;
			player2.glove1tintrb_outfit3 = glove1tintrb_outfit3;
			player2.glove1tintgb_outfit3 = glove1tintgb_outfit3;
			player2.glove1tintbb_outfit3 = glove1tintbb_outfit3;
			player2.glove2tintrb_outfit3 = glove2tintrb_outfit3;
			player2.glove2tintgb_outfit3 = glove2tintgb_outfit3;
			player2.glove2tintbb_outfit3 = glove2tintbb_outfit3;
			player2.panttintrb_outfit3 = panttintrb_outfit3;
			player2.panttintgb_outfit3 = panttintgb_outfit3;
			player2.panttintbb_outfit3 = panttintbb_outfit3;
			player2.shoetintrb_outfit3 = shoetintrb_outfit3;
			player2.shoetintgb_outfit3 = shoetintgb_outfit3;
			player2.shoetintbb_outfit3 = shoetintbb_outfit3;
			player2.skintintrb_outfit3 = skintintrb_outfit3;
			player2.skintintgb_outfit3 = skintintgb_outfit3;
			player2.skintintbb_outfit3 = skintintbb_outfit3;
			player2.sheathtintrb_outfit3 = sheathtintrb_outfit3;
			player2.sheathtintgb_outfit3 = sheathtintgb_outfit3;
			player2.sheathtintbb_outfit3 = sheathtintbb_outfit3;
			player2.slot = slot;
			player2SO = SharedObject.getLocal('playerInfo2');
			player2SO.data.playerDat = player2;
			player2SO.flush();
		};
		savePlayerInfo3 = function () {
			player3 = new Object();
			player3.corename = corename;
			player3.coreX = coreX;
			player3.calebX = calebX;
			player3.playerX = playerX;
			player3.playerY = playerY;
			player3.dateday = dateday;
			player3.datemonth = datemonth;
			player3.dateyear = dateyear;
			player3.stand = stand;
			player3.story = story;
			player3.tutz = tutz;
			player3.gold = gold;
			player3.autoscreensave = autoscreensave;
			player3.firstsave = firstsave;
			player3.gotfirststats = gotfirststats;
			player3.godmode = godmode;
			player3.hascheated = hascheated;
			player3.character = character;
			player3.numofchars = numofchars;
			player3.currentweapon = currentweapon;
			player3.runningz = runningz;
			player3.areaname = areaname;
			player3.menucolor = menucolor;
			player3.corenumofmagics = corenumofmagics;
			player3.corenumoflimits = corenumoflimits;
			player3.calebnumofmagics = calebnumofmagics;
			player3.calebnumoflimits = calebnumoflimits;
			player3.fishing_count = fishing_count;
			player3.fishinghighscore = fishinghighscore;
			player3.numofbattles = numofbattles;
			player3.numofswords = numofswords;
			player3.coremagic1 = coremagic1;
			player3.calebmagic1 = calebmagic1;
			player3.farsight = farsight;
			player3.difficulty = difficulty;
			player3.corehealth = corehealth;
			player3.coremaxhealth = coremaxhealth;
			player3.coremana = coremana;
			player3.coremaxmana = coremaxmana;
			player3.calebhealth = calebhealth;
			player3.calebmaxhealth = calebmaxhealth;
			player3.calebmana = calebmana;
			player3.calebmaxmana = calebmaxmana;
			player3.corelimit = corelimit;
			player3.coremaxlimit = coremaxlimit;
			player3.caleblimit = caleblimit;
			player3.calebmaxlimit = calebmaxlimit;
			player3.directions = directions;
			player3.weapon1 = weapon1;
			player3.weapon2 = weapon2;
			player3.weapon3 = weapon3;
			player3.weapon4 = weapon4;
			player3.weapon5 = weapon5;
			player3.weapon6 = weapon6;
			player3.coremagic1 = coremagic1;
			player3.coremagic2 = coremagic2;
			player3.coremagic3 = coremagic3;
			player3.coremagic4 = coremagic4;
			player3.coremagic5 = coremagic5;
			player3.coremagic6 = coremagic6;
			player3.calebmagic1 = calebmagic1;
			player3.calebmagic2 = calebmagic2;
			player3.calebmagic3 = calebmagic3;
			player3.calebmagic4 = calebmagic4;
			player3.calebmagic5 = calebmagic5;
			player3.calebmagic6 = calebmagic6;
			player3.corelimit1 = corelimit1;
			player3.corelimit2 = corelimit2;
			player3.corelimit3 = corelimit3;
			player3.corelimit4 = corelimit4;
			player3.caleblimit1 = caleblimit1;
			player3.caleblimit2 = caleblimit2;
			player3.caleblimit3 = caleblimit3;
			player3.caleblimit4 = caleblimit4;
			player3.gotsword2 = gotsword2;
			player3.gotsword3 = gotsword3;
			player3.gotsword4 = gotsword4;
			player3.gotsword5 = gotsword5;
			player3.gotsword6 = gotsword6;
			player3.sword1f = sword1f;
			player3.sword2f = sword2f;
			player3.sword3f = sword3f;
			player3.sword4f = sword4f;
			player3.sword5f = sword5f;
			player3.sword6f = sword6f;
			player3.corecounterchance = corecounterchance;
			player3.calebcounterchance = calebcounterchance;
			player3.corepoison = corepoison;
			player3.calebpoison = calebpoison;
			player3.coremagicdamage = coremagicdamage;
			player3.corestrength = corestrength;
			player3.coredefense = coredefense;
			player3.coremagicdefense = coremagicdefense;
			player3.coreluck = coreluck;
			player3.coreagility = coreagility;
			player3.coremagicdamageX = coremagicdamageX;
			player3.coremagicdefenseX = coremagicdefenseX;
			player3.corestrengthX = corestrengthX;
			player3.coredefenseX = coredefenseX;
			player3.coreluckX = coreluckX;
			player3.coreagilityX = coreagilityX;
			player3.corefireElement = corefireElement;
			player3.coredarkElement = coredarkElement;
			player3.coreiceElement = coreiceElement;
			player3.corethunderElement = corethunderElement;
			player3.calebmagicdamage = calebmagicdamage;
			player3.calebstrength = calebstrength;
			player3.calebdefense = calebdefense;
			player3.calebmagicdefense = calebmagicdefense;
			player3.calebluck = calebluck;
			player3.calebagility = calebagility;
			player3.calebmagicdamageX = calebmagicdamageX;
			player3.calebmagicdefenseX = calebmagicdefenseX;
			player3.calebstrengthX = calebstrengthX;
			player3.calebdefenseX = calebdefenseX;
			player3.calebluckX = calebluckX;
			player3.calebagilityX = calebagilityX;
			player3.calebfireElement = calebfireElement;
			player3.calebdarkElement = calebdarkElement;
			player3.calebiceElement = calebiceElement;
			player3.calebthunderElement = calebthunderElement;
			player3.sword = sword;
			player3.swordname = swordname;
			player3.corereghealth = corereghealth;
			player3.coreregmana = coreregmana;
			player3.coreregstamina = coreregstamina;
			player3.calebreghealth = calebreghealth;
			player3.calebregmana = calebregmana;
			player3.calebregstamina = calebregstamina;
			player3.normalspeed = normalspeed;
			player3.orgspeed = orgspeed;
			player3.potion = potion;
			player3.ether = ether;
			player3.elixir = elixir;
			player3.remedy = remedy;
			player3.limit = limit;
			player3.bottle = bottle;
			player3.areabattle = areabattle;
			player3.areascreen = areascreen;
			player3.footstepsound = footstepsound;
			player3.walkthrough = walkthrough;
			player3.champion = champion;
			player3.playerZ = playerZ;
			player3.floorz = floorz;
			player3.forcenotrun = forcenotrun;
			player3.restorespeed = restorespeed;
			player3.savedateday = savedateday;
			player3.savedateyear = savedateyear;
			player3.savedatemonth = savedatemonth;
			player3.saveseconds = saveseconds;
			player3.saveminutes = saveminutes;
			player3.savehours = savehours;
			player3.numofluckyhits = numofluckyhits;
			player3.numofmedals = numofmedals;
			player3.menuquality = menuquality;
			player3.medalcharm = medalcharm;
			player3.medalcharms = medalcharms;
			player3.medalmeeting = medalmeeting;
			player3.medalrookie = medalrookie;
			player3.medalveteran = medalveteran;
			player3.medallegend = medallegend;
			player3.medalhelper = medalhelper;
			player3.medalswordfish = medalswordfish;
			player3.medalawakened = medalawakened;
			player3.medalpoet = medalpoet;
			player3.medalmeeting1 = medalmeeting1;
			player3.medalmeeting2 = medalmeeting2;
			player3.medaldiglet = medaldiglet;
			player3.medalherbivore = medalherbivore;
			player3.medalflawless = medalflawless;
			player3.medalflawlessX = medalflawlessX;
			player3.medaljuggernaught = medaljuggernaught;
			player3.medalaquaman = medalaquaman;
			player3.medalperfection = medalperfection;
			player3.changediff = changediff;
			player3.sfxmute = sfxmute;
			player3.night = night;
			player3.camera = camera;
			player3.hudvisible = hudvisible;
			player3.menuvisible = menuvisible;
			player3.gamequality = gamequality;
			player3.battlequality = battlequality;
			player3.counter = counter;
			player3.counter2 = counter2;
			player3.counter3 = counter3;
			player3.counter2X = counter2X;
			player3.counter3X = counter3X;
			player3.counterminute = counterminute;
			player3.counterhour = counterhour;
			player3.housegrade = housegrade;
			player3.housegrade2 = housegrade2;
			player3.limitless = limitless;
			player3.housecarpet = housecarpet;
			player3.housechair = housechair;
			player3.housewardrobe = housewardrobe;
			player3.housecandelebra = housecandelebra;
			player3.housepainting = housepainting;
			player3.enterhouse1 = enterhouse1;
			player3.enterhouse2 = enterhouse2;
			player3.questbag = questbag;
			player3.questbbag = questbbag;
			player3.questbeer = questbeer;
			player3.questfindbook = questfindbook;
			player3.questreturnbook = questreturnbook;
			player3.questwolf = questwolf;
			player3.questlove = questlove;
			player3.questink = questink;
			player3.questbrock = questbrock;
			player3.questnewintown = questnewintown;
			player3.questfindsword = questfindsword;
			player3.questfisher = questfisher;
			player3.questboar = questboar;
			player3.questfriend = questfriend;
			player3.questspitter = questspitter;
			player3.questgornak = questgornak;
			player3.questpotion = questpotion;
			player3.questhorse = questhorse;
			player3.questgamble = questgamble;
			player3.questthanator = questthanator;
			player3.questgnome = questgnome;
			player3.questsick = questsick;
			player3.questdonovan = questdonovan;
			player3.questshow = questshow;
			player3.questdrugs = questdrugs;
			player3.questdrunk = questdrunk;
			player3.questitemhunter = questitemhunter;
			player3.questtreasure = questtreasure;
			player3.questkidnap = questkidnap;
			player3.questdeadman = questdeadman;
			player3.questbagX = questbagX;
			player3.questbbagX = questbbagX;
			player3.questbeerX = questbeerX;
			player3.questfindbookX = questfindbookX;
			player3.questreturnbookX = questreturnbookX;
			player3.questwolfX = questwolfX;
			player3.questloveX = questloveX;
			player3.questinkX = questinkX;
			player3.questbrockX = questbrockX;
			player3.questnewintownX = questnewintownX;
			player3.questfindswordX = questfindswordX;
			player3.questfisherX = questfisherX;
			player3.questboarX = questboarX;
			player3.questfriendX = questfriendX;
			player3.questspitterX = questspitterX;
			player3.questgornakX = questgornakX;
			player3.questpotionX = questpotionX;
			player3.questhorseX = questhorseX;
			player3.questgambleX = questgambleX;
			player3.questthanatorX = questthanatorX;
			player3.questgnomeX = questgnomeX;
			player3.questsickX = questsickX;
			player3.questdonovanX = questdonovanX;
			player3.questshowX = questshowX;
			player3.questdrugsX = questdrugsX;
			player3.questdrunkX = questdrunkX;
			player3.questitemhunterX = questitemhunterX;
			player3.questtreasureX = questtreasureX;
			player3.questkidnapX = questkidnapX;
			player3.questdeadmanX = questdeadmanX;
			player3.numquests = numquests;
			player3.sessions = sessions;
			player3.firstcoremagic1 = firstcoremagic1;
			player3.firstcoremagic2 = firstcoremagic2;
			player3.firstcoremagic3 = firstcoremagic3;
			player3.firstcoremagic4 = firstcoremagic4;
			player3.firstcoremagic5 = firstcoremagic5;
			player3.firstcoremagic6 = firstcoremagic6;
			player3.firstcalebmagic1 = firstcalebmagic1;
			player3.firstcalebmagic2 = firstcalebmagic2;
			player3.firstcalebmagic3 = firstcalebmagic3;
			player3.firstcalebmagic4 = firstcalebmagic4;
			player3.firstcalebmagic5 = firstcalebmagic5;
			player3.firstcalebmagic6 = firstcalebmagic6;
			player3.numpoet = numpoet;
			player3.founddouglas = founddouglas;
			player3.namecolor = namecolor;
			player3.rewardcolor = rewardcolor;
			player3.mainquest = mainquest;
			player3.imrahischat = imrahischat;
			player3.luvannonchat = luvannonchat;
			player3.ghosttalk = ghosttalk;
			player3.activequests = activequests;
			player3.completedquests = completedquests;
			player3.qpage = qpage;
			player3.musicmute = musicmute;
			player3.volumez = volumez;
			player3.areabg = areabg;
			player3.coregotlimit = coregotlimit;
			player3.calebgotlimit = calebgotlimit;
			player3.hotinfo = hotinfo;
			player3.cinemacam = cinemacam;
			player3.camXpoint = camXpoint;
			player3.camYpoint = camYpoint;
			player3.currentstage = currentstage;
			player3.currentmusic = currentmusic;
			player3.gotshovel = gotshovel;
			player3.numofdigs = numofdigs;
			player3.gotfirstpotion = gotfirstpotion;
			player3.gotfirstelixir = gotfirstelixir;
			player3.gotfirstether = gotfirstether;
			player3.gotfirstremedy = gotfirstremedy;
			player3.gotfirstlimit = gotfirstlimit;
			player3.gotfirstbottle = gotfirstbottle;
			player3.firstrig = firstrig;
			player3.firstgornak = firstgornak;
			player3.firstgornak2 = firstgornak2;
			player3.firstcamera = firstcamera;
			player3.medalpoet1 = medalpoet1;
			player3.medalpoet2 = medalpoet2;
			player3.medalpoet3 = medalpoet3;
			player3.medalmeeting1 = medalmeeting1;
			player3.medalmeeting2 = medalmeeting2;
			player3.sonyacoins = sonyacoins;
			player3.janucoins = janucoins;
			player3.firstthanator = firstthanator;
			player3.firststalker = firststalker;
			player3.firstcarrion = firstcarrion;
			player3.firstghoul = firstghoul;
			player3.firstthanatorX = firstthanatorX;
			player3.firststalkerX = firststalkerX;
			player3.firstcarrionX = firstcarrionX;
			player3.firstgornakX = firstgornakX;
			player3.firstghoulX = firstghoulX;
			player3.gotfirstc = gotfirstc;
			player3.fame = fame;
			player3.shroom1 = shroom1;
			player3.shroom2 = shroom2;
			player3.shroom3 = shroom3;
			player3.shroom4 = shroom4;
			player3.butterfly1 = butterfly1;
			player3.butterfly2 = butterfly2;
			player3.collectibles = collectibles;
			player3.shroomitem1 = shroomitem1;
			player3.shroomitem2 = shroomitem2;
			player3.shroomitem3 = shroomitem3;
			player3.shroomitem4 = shroomitem4;
			player3.shroomitem5 = shroomitem5;
			player3.shroomitem6 = shroomitem6;
			player3.shroomitem7 = shroomitem7;
			player3.shroomitem8 = shroomitem8;
			player3.shroomitem9 = shroomitem9;
			player3.shroomitem10 = shroomitem10;
			player3.shroomitem11 = shroomitem11;
			player3.shroomitem12 = shroomitem12;
			player3.shroomitem13 = shroomitem13;
			player3.shroomitem14 = shroomitem14;
			player3.shroomitem15 = shroomitem15;
			player3.shroomitem16 = shroomitem16;
			player3.shroomitem17 = shroomitem17;
			player3.shroomitem18 = shroomitem18;
			player3.shroomitem19 = shroomitem19;
			player3.shroomitem20 = shroomitem20;
			player3.shroomitem21 = shroomitem21;
			player3.shroomitem22 = shroomitem22;
			player3.shroomitem23 = shroomitem23;
			player3.shroomitem24 = shroomitem24;
			player3.shroomitem25 = shroomitem25;
			player3.shroomitem26 = shroomitem26;
			player3.shroomitem27 = shroomitem27;
			player3.shroomitem28 = shroomitem28;
			player3.shroomitem29 = shroomitem29;
			player3.shroomitem30 = shroomitem30;
			player3.shroomitem31 = shroomitem31;
			player3.shroomitem32 = shroomitem32;
			player3.shroomitem33 = shroomitem33;
			player3.shroomitem34 = shroomitem34;
			player3.shroomitem35 = shroomitem35;
			player3.shroomitem36 = shroomitem36;
			player3.shroomitem37 = shroomitem37;
			player3.shroomitem38 = shroomitem38;
			player3.shroomitem39 = shroomitem39;
			player3.shroomitem40 = shroomitem40;
			player3.shroomitem41 = shroomitem41;
			player3.shroomitem42 = shroomitem42;
			player3.shroomitem43 = shroomitem43;
			player3.shroomitem44 = shroomitem44;
			player3.shroomitem45 = shroomitem45;
			player3.shroomitem46 = shroomitem46;
			player3.shroomitem47 = shroomitem47;
			player3.shroomitem48 = shroomitem48;
			player3.shroomitem49 = shroomitem49;
			player3.shroomitem50 = shroomitem50;
			player3.shroomitem51 = shroomitem51;
			player3.shroomitem52 = shroomitem52;
			player3.shroomitem53 = shroomitem53;
			player3.shroomitem54 = shroomitem54;
			player3.shroomitem55 = shroomitem55;
			player3.shroomitem56 = shroomitem56;
			player3.shroomitem57 = shroomitem57;
			player3.shroomitem58 = shroomitem58;
			player3.shroomitem59 = shroomitem59;
			player3.shroomitem60 = shroomitem60;
			player3.shroomitem61 = shroomitem61;
			player3.shroomitem62 = shroomitem62;
			player3.shroomitem63 = shroomitem63;
			player3.shroomitem64 = shroomitem64;
			player3.shroomitem65 = shroomitem65;
			player3.shroomitem66 = shroomitem66;
			player3.shroomitem67 = shroomitem67;
			player3.shroomitem68 = shroomitem68;
			player3.shroomitem69 = shroomitem69;
			player3.shroomitem70 = shroomitem70;
			player3.shroomitem71 = shroomitem71;
			player3.shroomitem72 = shroomitem72;
			player3.shroomitem73 = shroomitem73;
			player3.shroomitem74 = shroomitem74;
			player3.shroomitem75 = shroomitem75;
			player3.shroomitem76 = shroomitem76;
			player3.shroomitem77 = shroomitem77;
			player3.shroomitem78 = shroomitem78;
			player3.shroomitem79 = shroomitem79;
			player3.shroomitem80 = shroomitem80;
			player3.butterflyitem1 = butterflyitem1;
			player3.butterflyitem2 = butterflyitem2;
			player3.butterflyitem3 = butterflyitem3;
			player3.butterflyitem4 = butterflyitem4;
			player3.butterflyitem5 = butterflyitem5;
			player3.butterflyitem6 = butterflyitem6;
			player3.butterflyitem7 = butterflyitem7;
			player3.butterflyitem8 = butterflyitem8;
			player3.butterflyitem9 = butterflyitem9;
			player3.butterflyitem10 = butterflyitem10;
			player3.shovel1 = shovel1;
			player3.shovel2 = shovel2;
			player3.shovel3 = shovel3;
			player3.shovel4 = shovel4;
			player3.shovel5 = shovel5;
			player3.shovel6 = shovel6;
			player3.shovel7 = shovel7;
			player3.shovel8 = shovel8;
			player3.shovel9 = shovel9;
			player3.shovel10 = shovel10;
			player3.item1 = item1;
			player3.item2 = item2;
			player3.item3 = item3;
			player3.item4 = item4;
			player3.item5 = item5;
			player3.item6 = item6;
			player3.item7 = item7;
			player3.item8 = item8;
			player3.item9 = item9;
			player3.item10 = item10;
			player3.item11 = item11;
			player3.item12 = item12;
			player3.item13 = item13;
			player3.item14 = item14;
			player3.item15 = item15;
			player3.item16 = item16;
			player3.item17 = item17;
			player3.item18 = item18;
			player3.item19 = item19;
			player3.item20 = item20;
			player3.item21 = item21;
			player3.item22 = item22;
			player3.item23 = item23;
			player3.item24 = item24;
			player3.item25 = item25;
			player3.item26 = item26;
			player3.item27 = item27;
			player3.item28 = item28;
			player3.item29 = item29;
			player3.item30 = item30;
			player3.switchzn1 = switchzn1;
			player3.switchzn2 = switchzn2;
			player3.switchzn3 = switchzn3;
			player3.switchzn4 = switchzn4;
			player3.switchzn5 = switchzn5;
			player3.switchzn6 = switchzn6;
			player3.switchzn7 = switchzn7;
			player3.switchzn8 = switchzn8;
			player3.switchzn9 = switchzn9;
			player3.obj0 = obj0;
			player3.obj1 = obj1;
			player3.obj2 = obj2;
			player3.obj3 = obj3;
			player3.obj4 = obj4;
			player3.obj5 = obj5;
			player3.obj6 = obj6;
			player3.obj7 = obj7;
			player3.obj8 = obj8;
			player3.obj9 = obj9;
			player3.obj10 = obj10;
			player3.obj11 = obj11;
			player3.obj12 = obj12;
			player3.obj13 = obj13;
			player3.obj14 = obj14;
			player3.obj15 = obj15;
			player3.obj16 = obj16;
			player3.obj17 = obj17;
			player3.obj18 = obj18;
			player3.obj19 = obj19;
			player3.obj20 = obj20;
			player3.obj21 = obj21;
			player3.obj22 = obj22;
			player3.obj23 = obj23;
			player3.obj24 = obj24;
			player3.obj25 = obj25;
			player3.obj26 = obj26;
			player3.obj27 = obj27;
			player3.obj28 = obj28;
			player3.obj29 = obj29;
			player3.obj30 = obj30;
			player3.objname0 = objname0;
			player3.objname1 = objname1;
			player3.objname2 = objname2;
			player3.objname3 = objname3;
			player3.objname4 = objname4;
			player3.objname5 = objname5;
			player3.objname6 = objname6;
			player3.objname7 = objname7;
			player3.objname8 = objname8;
			player3.objname9 = objname9;
			player3.objname10 = objname10;
			player3.objname11 = objname11;
			player3.objname12 = objname12;
			player3.objname13 = objname13;
			player3.objname14 = objname14;
			player3.objname15 = objname15;
			player3.objname16 = objname16;
			player3.objname17 = objname17;
			player3.objname18 = objname18;
			player3.objname19 = objname19;
			player3.objname20 = objname20;
			player3.objname21 = objname21;
			player3.objname22 = objname22;
			player3.objname23 = objname23;
			player3.objname24 = objname24;
			player3.objname25 = objname25;
			player3.objname26 = objname26;
			player3.objname27 = objname27;
			player3.objname28 = objname28;
			player3.objname29 = objname29;
			player3.objname30 = objname30;
			player3.darconstory = darconstory;
			player3.guarduniform = guarduniform;
			player3.goteyepatches = goteyepatches;
			player3.gotmaskcape = gotmaskcape;
			player3.gotgrayskin = gotgrayskin;
			player3.gotredskin = gotredskin;
			player3.gotmask1 = gotmask1;
			player3.gotmask2 = gotmask2;
			player3.gotmask3 = gotmask3;
			player3.gotmask4 = gotmask4;
			player3.gotbandana = gotbandana;
			player3.gotfedorahat = gotfedorahat;
			player3.gottophat = gottophat;
			player3.gotthunder = gotthunder;
			player3.gotblackpearl = gotblackpearl;
			player3.gotserpentnose = gotserpentnose;
			player3.gotwarpaint = gotwarpaint;
			player3.goteyebleed = goteyebleed;
			player3.goteyeshadow = goteyeshadow;
			player3.gotbloodshoteyes = gotbloodshoteyes;
			player3.gotundeadeyes = gotundeadeyes;
			player3.gotdemoneyes = gotdemoneyes;
			player3.capeon = capeon;
			player3.maskoff = maskoff;
			player3.extrabelt = extrabelt;
			player3.barechest = barechest;
			player3.outfit = outfit;
			player3.hair = hair;
			player3.earring = earring;
			player3.skinz = skinz;
			player3.freckles = freckles;
			player3.frecklesalpha = frecklesalpha;
			player3.nosez = nosez;
			player3.eyepatch = eyepatch;
			player3.eyesboth = eyesboth;
			player3.eyesparkle1 = eyesparkle1;
			player3.eyesparkle2 = eyesparkle2;
			player3.eyetype1 = eyetype1;
			player3.eyetype2 = eyetype2;
			player3.eyescale1 = eyescale1;
			player3.eyescale2 = eyescale2;
			player3.eyewhite1 = eyewhite1;
			player3.eyewhite2 = eyewhite2;
			player3.eyebrows = eyebrows;
			player3.eyesquint = eyesquint;
			player3.maskz = maskz;
			player3.tattoo = tattoo;
			player3.scar = scar;
			player3.beard = beard;
			player3.capecolor = capecolor;
			player3.cape_addon = cape_addon;
			player3.necklace = necklace;
			player3.jacket = jacket;
			player3.pouches = pouches;
			player3.belt = belt;
			player3.gauntlet = gauntlet;
			player3.arms = arms;
			player3.glove1 = glove1;
			player3.glove2 = glove2;
			player3.pants = pants;
			player3.shoes = shoes;
			player3.tattooalpha = tattooalpha;
			player3.scaralpha = scaralpha;
			player3.hairtintrb = hairtintrb;
			player3.hairtintgb = hairtintgb;
			player3.hairtintbb = hairtintbb;
			player3.eyepatchtintrb = eyepatchtintrb;
			player3.eyepatchtintbb = eyepatchtintbb;
			player3.eyepatchtintgb = eyepatchtintgb;
			player3.eye1tintrb = eye1tintrb;
			player3.eye1tintbb = eye1tintbb;
			player3.eye1tintgb = eye1tintgb;
			player3.eye2tintrb = eye2tintrb;
			player3.eye2tintbb = eye2tintbb;
			player3.eye2tintgb = eye2tintgb;
			player3.masktintrb = masktintrb;
			player3.masktintgb = masktintgb;
			player3.masktintbb = masktintbb;
			player3.tattootintrb = tattootintrb;
			player3.tattootintgb = tattootintgb;
			player3.tattootintbb = tattootintbb;
			player3.capetintrb = capetintrb;
			player3.capetintgb = capetintgb;
			player3.capetintbb = capetintbb;
			player3.necklacetintrb = necklacetintrb;
			player3.necklacetintgb = necklacetintgb;
			player3.necklacetintbb = necklacetintbb;
			player3.pouchtintrb = pouchtintrb;
			player3.pouchtintgb = pouchtintgb;
			player3.pouchtintbb = pouchtintbb;
			player3.belttintrb = belttintrb;
			player3.belttintgb = belttintgb;
			player3.belttintbb = belttintbb;
			player3.gauntlettintrb = gauntlettintrb;
			player3.gauntlettintgb = gauntlettintgb;
			player3.gauntlettintbb = gauntlettintbb;
			player3.armtintrb = armtintrb;
			player3.armtintgb = armtintgb;
			player3.armtintbb = armtintbb;
			player3.jackettintrb = jackettintrb;
			player3.jackettintgb = jackettintgb;
			player3.jackettintbb = jackettintbb;
			player3.glove1tintrb = glove1tintrb;
			player3.glove1tintgb = glove1tintgb;
			player3.glove1tintbb = glove1tintbb;
			player3.glove2tintrb = glove2tintrb;
			player3.glove2tintgb = glove2tintgb;
			player3.glove2tintbb = glove2tintbb;
			player3.panttintrb = panttintrb;
			player3.panttintgb = panttintgb;
			player3.panttintbb = panttintbb;
			player3.shoetintrb = shoetintrb;
			player3.shoetintgb = shoetintgb;
			player3.shoetintbb = shoetintbb;
			player3.skintintrb = skintintrb;
			player3.skintintgb = skintintgb;
			player3.skintintbb = skintintbb;
			player3.sheathtintrb = sheathtintrb;
			player3.sheathtintgb = sheathtintgb;
			player3.sheathtintbb = sheathtintbb;
			player3.capeon_outfit1 = capeon_outfit1;
			player3.maskoff_outfit1 = maskoff_outfit1;
			player3.extrabelt_outfit1 = extrabelt_outfit1;
			player3.barechest_outfit1 = barechest_outfit1;
			player3.hair_outfit1 = hair_outfit1;
			player3.earring_outfit1 = earring_outfit1;
			player3.skinz_outfit1 = skinz_outfit1;
			player3.freckles_outfit1 = freckles_outfit1;
			player3.frecklesalpha_outfit1 = frecklesalpha_outfit1;
			player3.nosez_outfit1 = nosez_outfit1;
			player3.eyepatch_outfit1 = eyepatch_outfit1;
			player3.eyesboth_outfit1 = eyesboth_outfit1;
			player3.eyesparkle1_outfit1 = eyesparkle1_outfit1;
			player3.eyesparkle2_outfit1 = eyesparkle2_outfit1;
			player3.eyetype1_outfit1 = eyetype1_outfit1;
			player3.eyetype2_outfit1 = eyetype2_outfit1;
			player3.eyescale1_outfit1 = eyescale1_outfit1;
			player3.eyescale2_outfit1 = eyescale2_outfit1;
			player3.eyewhite1_outfit1 = eyewhite1_outfit1;
			player3.eyewhite2_outfit1 = eyewhite2_outfit1;
			player3.eyebrows_outfit1 = eyebrows_outfit1;
			player3.eyesquint_outfit1 = eyesquint_outfit1;
			player3.maskz_outfit1 = maskz_outfit1;
			player3.tattoo_outfit1 = tattoo_outfit1;
			player3.scar_outfit1 = scar_outfit1;
			player3.beard_outfit1 = beard_outfit1;
			player3.capecolor_outfit1 = capecolor_outfit1;
			player3.cape_addon_outfit1 = cape_addon_outfit1;
			player3.necklace_outfit1 = necklace_outfit1;
			player3.jacket_outfit1 = jacket_outfit1;
			player3.pouches_outfit1 = pouches_outfit1;
			player3.belt_outfit1 = belt_outfit1;
			player3.gauntlet_outfit1 = gauntlet_outfit1;
			player3.arms_outfit1 = arms_outfit1;
			player3.glove1_outfit1 = glove1_outfit1;
			player3.glove2_outfit1 = glove2_outfit1;
			player3.pants_outfit1 = pants_outfit1;
			player3.shoes_outfit1 = shoes_outfit1;
			player3.tattooalpha_outfit1 = tattooalpha_outfit1;
			player3.scaralpha_outfit1 = scaralpha_outfit1;
			player3.hairtintrb_outfit1 = hairtintrb_outfit1;
			player3.hairtintgb_outfit1 = hairtintgb_outfit1;
			player3.hairtintbb_outfit1 = hairtintbb_outfit1;
			player3.eyepatchtintrb_outfit1 = eyepatchtintrb_outfit1;
			player3.eyepatchtintbb_outfit1 = eyepatchtintbb_outfit1;
			player3.eyepatchtintgb_outfit1 = eyepatchtintgb_outfit1;
			player3.eye1tintrb_outfit1 = eye1tintrb_outfit1;
			player3.eye1tintbb_outfit1 = eye1tintbb_outfit1;
			player3.eye1tintgb_outfit1 = eye1tintgb_outfit1;
			player3.eye2tintrb_outfit1 = eye2tintrb_outfit1;
			player3.eye2tintbb_outfit1 = eye2tintbb_outfit1;
			player3.eye2tintgb_outfit1 = eye2tintgb_outfit1;
			player3.masktintrb_outfit1 = masktintrb_outfit1;
			player3.masktintgb_outfit1 = masktintgb_outfit1;
			player3.masktintbb_outfit1 = masktintbb_outfit1;
			player3.tattootintrb_outfit1 = tattootintrb_outfit1;
			player3.tattootintgb_outfit1 = tattootintgb_outfit1;
			player3.tattootintbb_outfit1 = tattootintbb_outfit1;
			player3.capetintrb_outfit1 = capetintrb_outfit1;
			player3.capetintgb_outfit1 = capetintgb_outfit1;
			player3.capetintbb_outfit1 = capetintbb_outfit1;
			player3.necklacetintrb_outfit1 = necklacetintrb_outfit1;
			player3.necklacetintgb_outfit1 = necklacetintgb_outfit1;
			player3.necklacetintbb_outfit1 = necklacetintbb_outfit1;
			player3.pouchtintrb_outfit1 = pouchtintrb_outfit1;
			player3.pouchtintgb_outfit1 = pouchtintgb_outfit1;
			player3.pouchtintbb_outfit1 = pouchtintbb_outfit1;
			player3.belttintrb_outfit1 = belttintrb_outfit1;
			player3.belttintgb_outfit1 = belttintgb_outfit1;
			player3.belttintbb_outfit1 = belttintbb_outfit1;
			player3.gauntlettintrb_outfit1 = gauntlettintrb_outfit1;
			player3.gauntlettintgb_outfit1 = gauntlettintgb_outfit1;
			player3.gauntlettintbb_outfit1 = gauntlettintbb_outfit1;
			player3.armtintrb_outfit1 = armtintrb_outfit1;
			player3.armtintgb_outfit1 = armtintgb_outfit1;
			player3.armtintbb_outfit1 = armtintbb_outfit1;
			player3.jackettintrb_outfit1 = jackettintrb_outfit1;
			player3.jackettintgb_outfit1 = jackettintgb_outfit1;
			player3.jackettintbb_outfit1 = jackettintbb_outfit1;
			player3.glove1tintrb_outfit1 = glove1tintrb_outfit1;
			player3.glove1tintgb_outfit1 = glove1tintgb_outfit1;
			player3.glove1tintbb_outfit1 = glove1tintbb_outfit1;
			player3.glove2tintrb_outfit1 = glove2tintrb_outfit1;
			player3.glove2tintgb_outfit1 = glove2tintgb_outfit1;
			player3.glove2tintbb_outfit1 = glove2tintbb_outfit1;
			player3.panttintrb_outfit1 = panttintrb_outfit1;
			player3.panttintgb_outfit1 = panttintgb_outfit1;
			player3.panttintbb_outfit1 = panttintbb_outfit1;
			player3.shoetintrb_outfit1 = shoetintrb_outfit1;
			player3.shoetintgb_outfit1 = shoetintgb_outfit1;
			player3.shoetintbb_outfit1 = shoetintbb_outfit1;
			player3.skintintrb_outfit1 = skintintrb_outfit1;
			player3.skintintgb_outfit1 = skintintgb_outfit1;
			player3.skintintbb_outfit1 = skintintbb_outfit1;
			player3.sheathtintrb_outfit1 = sheathtintrb_outfit1;
			player3.sheathtintgb_outfit1 = sheathtintgb_outfit1;
			player3.sheathtintbb_outfit1 = sheathtintbb_outfit1;
			player3.capeon_outfit2 = capeon_outfit2;
			player3.maskoff_outfit2 = maskoff_outfit2;
			player3.extrabelt_outfit2 = extrabelt_outfit2;
			player3.barechest_outfit2 = barechest_outfit2;
			player3.hair_outfit2 = hair_outfit2;
			player3.earring_outfit2 = earring_outfit2;
			player3.skinz_outfit2 = skinz_outfit2;
			player3.freckles_outfit2 = freckles_outfit2;
			player3.frecklesalpha_outfit2 = frecklesalpha_outfit2;
			player3.nosez_outfit2 = nosez_outfit2;
			player3.eyepatch_outfit2 = eyepatch_outfit2;
			player3.eyesboth_outfit2 = eyesboth_outfit2;
			player3.eyesparkle1_outfit2 = eyesparkle1_outfit2;
			player3.eyesparkle2_outfit2 = eyesparkle2_outfit2;
			player3.eyetype1_outfit2 = eyetype1_outfit2;
			player3.eyetype2_outfit2 = eyetype2_outfit2;
			player3.eyescale1_outfit2 = eyescale1_outfit2;
			player3.eyescale2_outfit2 = eyescale2_outfit2;
			player3.eyewhite1_outfit2 = eyewhite1_outfit2;
			player3.eyewhite2_outfit2 = eyewhite2_outfit2;
			player3.eyebrows_outfit2 = eyebrows_outfit2;
			player3.eyesquint_outfit2 = eyesquint_outfit2;
			player3.maskz_outfit2 = maskz_outfit2;
			player3.tattoo_outfit2 = tattoo_outfit2;
			player3.scar_outfit2 = scar_outfit2;
			player3.beard_outfit2 = beard_outfit2;
			player3.capecolor_outfit2 = capecolor_outfit2;
			player3.cape_addon_outfit2 = cape_addon_outfit2;
			player3.necklace_outfit2 = necklace_outfit2;
			player3.jacket_outfit2 = jacket_outfit2;
			player3.pouches_outfit2 = pouches_outfit2;
			player3.belt_outfit2 = belt_outfit2;
			player3.gauntlet_outfit2 = gauntlet_outfit2;
			player3.arms_outfit2 = arms_outfit2;
			player3.glove1_outfit2 = glove1_outfit2;
			player3.glove2_outfit2 = glove2_outfit2;
			player3.pants_outfit2 = pants_outfit2;
			player3.shoes_outfit2 = shoes_outfit2;
			player3.tattooalpha_outfit2 = tattooalpha_outfit2;
			player3.scaralpha_outfit2 = scaralpha_outfit2;
			player3.hairtintrb_outfit2 = hairtintrb_outfit2;
			player3.hairtintgb_outfit2 = hairtintgb_outfit2;
			player3.hairtintbb_outfit2 = hairtintbb_outfit2;
			player3.eyepatchtintrb_outfit2 = eyepatchtintrb_outfit2;
			player3.eyepatchtintbb_outfit2 = eyepatchtintbb_outfit2;
			player3.eyepatchtintgb_outfit2 = eyepatchtintgb_outfit2;
			player3.eye1tintrb_outfit2 = eye1tintrb_outfit2;
			player3.eye1tintbb_outfit2 = eye1tintbb_outfit2;
			player3.eye1tintgb_outfit2 = eye1tintgb_outfit2;
			player3.eye2tintrb_outfit2 = eye2tintrb_outfit2;
			player3.eye2tintbb_outfit2 = eye2tintbb_outfit2;
			player3.eye2tintgb_outfit2 = eye2tintgb_outfit2;
			player3.masktintrb_outfit2 = masktintrb_outfit2;
			player3.masktintgb_outfit2 = masktintgb_outfit2;
			player3.masktintbb_outfit2 = masktintbb_outfit2;
			player3.tattootintrb_outfit2 = tattootintrb_outfit2;
			player3.tattootintgb_outfit2 = tattootintgb_outfit2;
			player3.tattootintbb_outfit2 = tattootintbb_outfit2;
			player3.capetintrb_outfit2 = capetintrb_outfit2;
			player3.capetintgb_outfit2 = capetintgb_outfit2;
			player3.capetintbb_outfit2 = capetintbb_outfit2;
			player3.necklacetintrb_outfit2 = necklacetintrb_outfit2;
			player3.necklacetintgb_outfit2 = necklacetintgb_outfit2;
			player3.necklacetintbb_outfit2 = necklacetintbb_outfit2;
			player3.pouchtintrb_outfit2 = pouchtintrb_outfit2;
			player3.pouchtintgb_outfit2 = pouchtintgb_outfit2;
			player3.pouchtintbb_outfit2 = pouchtintbb_outfit2;
			player3.belttintrb_outfit2 = belttintrb_outfit2;
			player3.belttintgb_outfit2 = belttintgb_outfit2;
			player3.belttintbb_outfit2 = belttintbb_outfit2;
			player3.gauntlettintrb_outfit2 = gauntlettintrb_outfit2;
			player3.gauntlettintgb_outfit2 = gauntlettintgb_outfit2;
			player3.gauntlettintbb_outfit2 = gauntlettintbb_outfit2;
			player3.armtintrb_outfit2 = armtintrb_outfit2;
			player3.armtintgb_outfit2 = armtintgb_outfit2;
			player3.armtintbb_outfit2 = armtintbb_outfit2;
			player3.jackettintrb_outfit2 = jackettintrb_outfit2;
			player3.jackettintgb_outfit2 = jackettintgb_outfit2;
			player3.jackettintbb_outfit2 = jackettintbb_outfit2;
			player3.glove1tintrb_outfit2 = glove1tintrb_outfit2;
			player3.glove1tintgb_outfit2 = glove1tintgb_outfit2;
			player3.glove1tintbb_outfit2 = glove1tintbb_outfit2;
			player3.glove2tintrb_outfit2 = glove2tintrb_outfit2;
			player3.glove2tintgb_outfit2 = glove2tintgb_outfit2;
			player3.glove2tintbb_outfit2 = glove2tintbb_outfit2;
			player3.panttintrb_outfit2 = panttintrb_outfit2;
			player3.panttintgb_outfit2 = panttintgb_outfit2;
			player3.panttintbb_outfit2 = panttintbb_outfit2;
			player3.shoetintrb_outfit2 = shoetintrb_outfit2;
			player3.shoetintgb_outfit2 = shoetintgb_outfit2;
			player3.shoetintbb_outfit2 = shoetintbb_outfit2;
			player3.skintintrb_outfit2 = skintintrb_outfit2;
			player3.skintintgb_outfit2 = skintintgb_outfit2;
			player3.skintintbb_outfit2 = skintintbb_outfit2;
			player3.sheathtintrb_outfit2 = sheathtintrb_outfit2;
			player3.sheathtintgb_outfit2 = sheathtintgb_outfit2;
			player3.sheathtintbb_outfit2 = sheathtintbb_outfit2;
			player3.capeon_outfit3 = capeon_outfit3;
			player3.maskoff_outfit3 = maskoff_outfit3;
			player3.extrabelt_outfit3 = extrabelt_outfit3;
			player3.barechest_outfit3 = barechest_outfit3;
			player3.hair_outfit3 = hair_outfit3;
			player3.earring_outfit3 = earring_outfit3;
			player3.skinz_outfit3 = skinz_outfit3;
			player3.freckles_outfit3 = freckles_outfit3;
			player3.frecklesalpha_outfit3 = frecklesalpha_outfit3;
			player3.nosez_outfit3 = nosez_outfit3;
			player3.eyepatch_outfit3 = eyepatch_outfit3;
			player3.eyesboth_outfit3 = eyesboth_outfit3;
			player3.eyesparkle1_outfit3 = eyesparkle1_outfit3;
			player3.eyesparkle2_outfit3 = eyesparkle2_outfit3;
			player3.eyetype1_outfit3 = eyetype1_outfit3;
			player3.eyetype2_outfit3 = eyetype2_outfit3;
			player3.eyescale1_outfit3 = eyescale1_outfit3;
			player3.eyescale2_outfit3 = eyescale2_outfit3;
			player3.eyewhite1_outfit3 = eyewhite1_outfit3;
			player3.eyewhite2_outfit3 = eyewhite2_outfit3;
			player3.eyebrows_outfit3 = eyebrows_outfit3;
			player3.eyesquint_outfit3 = eyesquint_outfit3;
			player3.maskz_outfit3 = maskz_outfit3;
			player3.tattoo_outfit3 = tattoo_outfit3;
			player3.scar_outfit3 = scar_outfit3;
			player3.beard_outfit3 = beard_outfit3;
			player3.capecolor_outfit3 = capecolor_outfit3;
			player3.cape_addon_outfit3 = cape_addon_outfit3;
			player3.necklace_outfit3 = necklace_outfit3;
			player3.jacket_outfit3 = jacket_outfit3;
			player3.pouches_outfit3 = pouches_outfit3;
			player3.belt_outfit3 = belt_outfit3;
			player3.gauntlet_outfit3 = gauntlet_outfit3;
			player3.arms_outfit3 = arms_outfit3;
			player3.glove1_outfit3 = glove1_outfit3;
			player3.glove2_outfit3 = glove2_outfit3;
			player3.pants_outfit3 = pants_outfit3;
			player3.shoes_outfit3 = shoes_outfit3;
			player3.tattooalpha_outfit3 = tattooalpha_outfit3;
			player3.scaralpha_outfit3 = scaralpha_outfit3;
			player3.hairtintrb_outfit3 = hairtintrb_outfit3;
			player3.hairtintgb_outfit3 = hairtintgb_outfit3;
			player3.hairtintbb_outfit3 = hairtintbb_outfit3;
			player3.eyepatchtintrb_outfit3 = eyepatchtintrb_outfit3;
			player3.eyepatchtintbb_outfit3 = eyepatchtintbb_outfit3;
			player3.eyepatchtintgb_outfit3 = eyepatchtintgb_outfit3;
			player3.eye1tintrb_outfit3 = eye1tintrb_outfit3;
			player3.eye1tintbb_outfit3 = eye1tintbb_outfit3;
			player3.eye1tintgb_outfit3 = eye1tintgb_outfit3;
			player3.eye2tintrb_outfit3 = eye2tintrb_outfit3;
			player3.eye2tintbb_outfit3 = eye2tintbb_outfit3;
			player3.eye2tintgb_outfit3 = eye2tintgb_outfit3;
			player3.masktintrb_outfit3 = masktintrb_outfit3;
			player3.masktintgb_outfit3 = masktintgb_outfit3;
			player3.masktintbb_outfit3 = masktintbb_outfit3;
			player3.tattootintrb_outfit3 = tattootintrb_outfit3;
			player3.tattootintgb_outfit3 = tattootintgb_outfit3;
			player3.tattootintbb_outfit3 = tattootintbb_outfit3;
			player3.capetintrb_outfit3 = capetintrb_outfit3;
			player3.capetintgb_outfit3 = capetintgb_outfit3;
			player3.capetintbb_outfit3 = capetintbb_outfit3;
			player3.necklacetintrb_outfit3 = necklacetintrb_outfit3;
			player3.necklacetintgb_outfit3 = necklacetintgb_outfit3;
			player3.necklacetintbb_outfit3 = necklacetintbb_outfit3;
			player3.pouchtintrb_outfit3 = pouchtintrb_outfit3;
			player3.pouchtintgb_outfit3 = pouchtintgb_outfit3;
			player3.pouchtintbb_outfit3 = pouchtintbb_outfit3;
			player3.belttintrb_outfit3 = belttintrb_outfit3;
			player3.belttintgb_outfit3 = belttintgb_outfit3;
			player3.belttintbb_outfit3 = belttintbb_outfit3;
			player3.gauntlettintrb_outfit3 = gauntlettintrb_outfit3;
			player3.gauntlettintgb_outfit3 = gauntlettintgb_outfit3;
			player3.gauntlettintbb_outfit3 = gauntlettintbb_outfit3;
			player3.armtintrb_outfit3 = armtintrb_outfit3;
			player3.armtintgb_outfit3 = armtintgb_outfit3;
			player3.armtintbb_outfit3 = armtintbb_outfit3;
			player3.jackettintrb_outfit3 = jackettintrb_outfit3;
			player3.jackettintgb_outfit3 = jackettintgb_outfit3;
			player3.jackettintbb_outfit3 = jackettintbb_outfit3;
			player3.glove1tintrb_outfit3 = glove1tintrb_outfit3;
			player3.glove1tintgb_outfit3 = glove1tintgb_outfit3;
			player3.glove1tintbb_outfit3 = glove1tintbb_outfit3;
			player3.glove2tintrb_outfit3 = glove2tintrb_outfit3;
			player3.glove2tintgb_outfit3 = glove2tintgb_outfit3;
			player3.glove2tintbb_outfit3 = glove2tintbb_outfit3;
			player3.panttintrb_outfit3 = panttintrb_outfit3;
			player3.panttintgb_outfit3 = panttintgb_outfit3;
			player3.panttintbb_outfit3 = panttintbb_outfit3;
			player3.shoetintrb_outfit3 = shoetintrb_outfit3;
			player3.shoetintgb_outfit3 = shoetintgb_outfit3;
			player3.shoetintbb_outfit3 = shoetintbb_outfit3;
			player3.skintintrb_outfit3 = skintintrb_outfit3;
			player3.skintintgb_outfit3 = skintintgb_outfit3;
			player3.skintintbb_outfit3 = skintintbb_outfit3;
			player3.sheathtintrb_outfit3 = sheathtintrb_outfit3;
			player3.sheathtintgb_outfit3 = sheathtintgb_outfit3;
			player3.sheathtintbb_outfit3 = sheathtintbb_outfit3;
			player3.slot = slot;
			player3SO = SharedObject.getLocal('playerInfo3');
			player3SO.data.playerDat = player3;
			player3SO.flush();
		};
		savePlayerInfo4 = function () {
			player4 = new Object();
			player4.corename = corename;
			player4.coreX = coreX;
			player4.calebX = calebX;
			player4.playerX = playerX;
			player4.playerY = playerY;
			player4.dateday = dateday;
			player4.datemonth = datemonth;
			player4.dateyear = dateyear;
			player4.stand = stand;
			player4.story = story;
			player4.tutz = tutz;
			player4.gold = gold;
			player4.autoscreensave = autoscreensave;
			player4.firstsave = firstsave;
			player4.gotfirststats = gotfirststats;
			player4.godmode = godmode;
			player4.hascheated = hascheated;
			player4.character = character;
			player4.numofchars = numofchars;
			player4.currentweapon = currentweapon;
			player4.runningz = runningz;
			player4.areaname = areaname;
			player4.menucolor = menucolor;
			player4.corenumofmagics = corenumofmagics;
			player4.corenumoflimits = corenumoflimits;
			player4.calebnumofmagics = calebnumofmagics;
			player4.calebnumoflimits = calebnumoflimits;
			player4.fishing_count = fishing_count;
			player4.fishinghighscore = fishinghighscore;
			player4.numofbattles = numofbattles;
			player4.numofswords = numofswords;
			player4.coremagic1 = coremagic1;
			player4.calebmagic1 = calebmagic1;
			player4.farsight = farsight;
			player4.difficulty = difficulty;
			player4.corehealth = corehealth;
			player4.coremaxhealth = coremaxhealth;
			player4.coremana = coremana;
			player4.coremaxmana = coremaxmana;
			player4.calebhealth = calebhealth;
			player4.calebmaxhealth = calebmaxhealth;
			player4.calebmana = calebmana;
			player4.calebmaxmana = calebmaxmana;
			player4.corelimit = corelimit;
			player4.coremaxlimit = coremaxlimit;
			player4.caleblimit = caleblimit;
			player4.calebmaxlimit = calebmaxlimit;
			player4.directions = directions;
			player4.weapon1 = weapon1;
			player4.weapon2 = weapon2;
			player4.weapon3 = weapon3;
			player4.weapon4 = weapon4;
			player4.weapon5 = weapon5;
			player4.weapon6 = weapon6;
			player4.coremagic1 = coremagic1;
			player4.coremagic2 = coremagic2;
			player4.coremagic3 = coremagic3;
			player4.coremagic4 = coremagic4;
			player4.coremagic5 = coremagic5;
			player4.coremagic6 = coremagic6;
			player4.calebmagic1 = calebmagic1;
			player4.calebmagic2 = calebmagic2;
			player4.calebmagic3 = calebmagic3;
			player4.calebmagic4 = calebmagic4;
			player4.calebmagic5 = calebmagic5;
			player4.calebmagic6 = calebmagic6;
			player4.corelimit1 = corelimit1;
			player4.corelimit2 = corelimit2;
			player4.corelimit3 = corelimit3;
			player4.corelimit4 = corelimit4;
			player4.caleblimit1 = caleblimit1;
			player4.caleblimit2 = caleblimit2;
			player4.caleblimit3 = caleblimit3;
			player4.caleblimit4 = caleblimit4;
			player4.gotsword2 = gotsword2;
			player4.gotsword3 = gotsword3;
			player4.gotsword4 = gotsword4;
			player4.gotsword5 = gotsword5;
			player4.gotsword6 = gotsword6;
			player4.sword1f = sword1f;
			player4.sword2f = sword2f;
			player4.sword3f = sword3f;
			player4.sword4f = sword4f;
			player4.sword5f = sword5f;
			player4.sword6f = sword6f;
			player4.corecounterchance = corecounterchance;
			player4.calebcounterchance = calebcounterchance;
			player4.corepoison = corepoison;
			player4.calebpoison = calebpoison;
			player4.coremagicdamage = coremagicdamage;
			player4.corestrength = corestrength;
			player4.coredefense = coredefense;
			player4.coremagicdefense = coremagicdefense;
			player4.coreluck = coreluck;
			player4.coreagility = coreagility;
			player4.coremagicdamageX = coremagicdamageX;
			player4.coremagicdefenseX = coremagicdefenseX;
			player4.corestrengthX = corestrengthX;
			player4.coredefenseX = coredefenseX;
			player4.coreluckX = coreluckX;
			player4.coreagilityX = coreagilityX;
			player4.corefireElement = corefireElement;
			player4.coredarkElement = coredarkElement;
			player4.coreiceElement = coreiceElement;
			player4.corethunderElement = corethunderElement;
			player4.calebmagicdamage = calebmagicdamage;
			player4.calebstrength = calebstrength;
			player4.calebdefense = calebdefense;
			player4.calebmagicdefense = calebmagicdefense;
			player4.calebluck = calebluck;
			player4.calebagility = calebagility;
			player4.calebmagicdamageX = calebmagicdamageX;
			player4.calebmagicdefenseX = calebmagicdefenseX;
			player4.calebstrengthX = calebstrengthX;
			player4.calebdefenseX = calebdefenseX;
			player4.calebluckX = calebluckX;
			player4.calebagilityX = calebagilityX;
			player4.calebfireElement = calebfireElement;
			player4.calebdarkElement = calebdarkElement;
			player4.calebiceElement = calebiceElement;
			player4.calebthunderElement = calebthunderElement;
			player4.sword = sword;
			player4.swordname = swordname;
			player4.corereghealth = corereghealth;
			player4.coreregmana = coreregmana;
			player4.coreregstamina = coreregstamina;
			player4.calebreghealth = calebreghealth;
			player4.calebregmana = calebregmana;
			player4.calebregstamina = calebregstamina;
			player4.normalspeed = normalspeed;
			player4.orgspeed = orgspeed;
			player4.potion = potion;
			player4.ether = ether;
			player4.elixir = elixir;
			player4.remedy = remedy;
			player4.limit = limit;
			player4.bottle = bottle;
			player4.areabattle = areabattle;
			player4.areascreen = areascreen;
			player4.footstepsound = footstepsound;
			player4.walkthrough = walkthrough;
			player4.champion = champion;
			player4.playerZ = playerZ;
			player4.floorz = floorz;
			player4.forcenotrun = forcenotrun;
			player4.restorespeed = restorespeed;
			player4.savedateday = savedateday;
			player4.savedateyear = savedateyear;
			player4.savedatemonth = savedatemonth;
			player4.saveseconds = saveseconds;
			player4.saveminutes = saveminutes;
			player4.savehours = savehours;
			player4.numofluckyhits = numofluckyhits;
			player4.numofmedals = numofmedals;
			player4.menuquality = menuquality;
			player4.medalcharm = medalcharm;
			player4.medalcharms = medalcharms;
			player4.medalmeeting = medalmeeting;
			player4.medalrookie = medalrookie;
			player4.medalveteran = medalveteran;
			player4.medallegend = medallegend;
			player4.medalhelper = medalhelper;
			player4.medalswordfish = medalswordfish;
			player4.medalawakened = medalawakened;
			player4.medalpoet = medalpoet;
			player4.medalmeeting1 = medalmeeting1;
			player4.medalmeeting2 = medalmeeting2;
			player4.medaldiglet = medaldiglet;
			player4.medalherbivore = medalherbivore;
			player4.medalflawless = medalflawless;
			player4.medalflawlessX = medalflawlessX;
			player4.medaljuggernaught = medaljuggernaught;
			player4.medalaquaman = medalaquaman;
			player4.medalperfection = medalperfection;
			player4.changediff = changediff;
			player4.sfxmute = sfxmute;
			player4.night = night;
			player4.camera = camera;
			player4.hudvisible = hudvisible;
			player4.menuvisible = menuvisible;
			player4.gamequality = gamequality;
			player4.battlequality = battlequality;
			player4.counter = counter;
			player4.counter2 = counter2;
			player4.counter3 = counter3;
			player4.counter2X = counter2X;
			player4.counter3X = counter3X;
			player4.counterminute = counterminute;
			player4.counterhour = counterhour;
			player4.housegrade = housegrade;
			player4.housegrade2 = housegrade2;
			player4.limitless = limitless;
			player4.housecarpet = housecarpet;
			player4.housechair = housechair;
			player4.housewardrobe = housewardrobe;
			player4.housecandelebra = housecandelebra;
			player4.housepainting = housepainting;
			player4.enterhouse1 = enterhouse1;
			player4.enterhouse2 = enterhouse2;
			player4.questbag = questbag;
			player4.questbbag = questbbag;
			player4.questbeer = questbeer;
			player4.questfindbook = questfindbook;
			player4.questreturnbook = questreturnbook;
			player4.questwolf = questwolf;
			player4.questlove = questlove;
			player4.questink = questink;
			player4.questbrock = questbrock;
			player4.questnewintown = questnewintown;
			player4.questfindsword = questfindsword;
			player4.questfisher = questfisher;
			player4.questboar = questboar;
			player4.questfriend = questfriend;
			player4.questspitter = questspitter;
			player4.questgornak = questgornak;
			player4.questpotion = questpotion;
			player4.questhorse = questhorse;
			player4.questgamble = questgamble;
			player4.questthanator = questthanator;
			player4.questgnome = questgnome;
			player4.questsick = questsick;
			player4.questdonovan = questdonovan;
			player4.questshow = questshow;
			player4.questdrugs = questdrugs;
			player4.questdrunk = questdrunk;
			player4.questitemhunter = questitemhunter;
			player4.questtreasure = questtreasure;
			player4.questkidnap = questkidnap;
			player4.questdeadman = questdeadman;
			player4.questbagX = questbagX;
			player4.questbbagX = questbbagX;
			player4.questbeerX = questbeerX;
			player4.questfindbookX = questfindbookX;
			player4.questreturnbookX = questreturnbookX;
			player4.questwolfX = questwolfX;
			player4.questloveX = questloveX;
			player4.questinkX = questinkX;
			player4.questbrockX = questbrockX;
			player4.questnewintownX = questnewintownX;
			player4.questfindswordX = questfindswordX;
			player4.questfisherX = questfisherX;
			player4.questboarX = questboarX;
			player4.questfriendX = questfriendX;
			player4.questspitterX = questspitterX;
			player4.questgornakX = questgornakX;
			player4.questpotionX = questpotionX;
			player4.questhorseX = questhorseX;
			player4.questgambleX = questgambleX;
			player4.questthanatorX = questthanatorX;
			player4.questgnomeX = questgnomeX;
			player4.questsickX = questsickX;
			player4.questdonovanX = questdonovanX;
			player4.questshowX = questshowX;
			player4.questdrugsX = questdrugsX;
			player4.questdrunkX = questdrunkX;
			player4.questitemhunterX = questitemhunterX;
			player4.questtreasureX = questtreasureX;
			player4.questkidnapX = questkidnapX;
			player4.questdeadmanX = questdeadmanX;
			player4.numquests = numquests;
			player4.sessions = sessions;
			player4.firstcoremagic1 = firstcoremagic1;
			player4.firstcoremagic2 = firstcoremagic2;
			player4.firstcoremagic3 = firstcoremagic3;
			player4.firstcoremagic4 = firstcoremagic4;
			player4.firstcoremagic5 = firstcoremagic5;
			player4.firstcoremagic6 = firstcoremagic6;
			player4.firstcalebmagic1 = firstcalebmagic1;
			player4.firstcalebmagic2 = firstcalebmagic2;
			player4.firstcalebmagic3 = firstcalebmagic3;
			player4.firstcalebmagic4 = firstcalebmagic4;
			player4.firstcalebmagic5 = firstcalebmagic5;
			player4.firstcalebmagic6 = firstcalebmagic6;
			player4.numpoet = numpoet;
			player4.founddouglas = founddouglas;
			player4.namecolor = namecolor;
			player4.rewardcolor = rewardcolor;
			player4.mainquest = mainquest;
			player4.imrahischat = imrahischat;
			player4.luvannonchat = luvannonchat;
			player4.ghosttalk = ghosttalk;
			player4.activequests = activequests;
			player4.completedquests = completedquests;
			player4.qpage = qpage;
			player4.musicmute = musicmute;
			player4.volumez = volumez;
			player4.areabg = areabg;
			player4.coregotlimit = coregotlimit;
			player4.calebgotlimit = calebgotlimit;
			player4.hotinfo = hotinfo;
			player4.cinemacam = cinemacam;
			player4.camXpoint = camXpoint;
			player4.camYpoint = camYpoint;
			player4.currentstage = currentstage;
			player4.currentmusic = currentmusic;
			player4.gotshovel = gotshovel;
			player4.numofdigs = numofdigs;
			player4.gotfirstpotion = gotfirstpotion;
			player4.gotfirstelixir = gotfirstelixir;
			player4.gotfirstether = gotfirstether;
			player4.gotfirstremedy = gotfirstremedy;
			player4.gotfirstlimit = gotfirstlimit;
			player4.gotfirstbottle = gotfirstbottle;
			player4.firstrig = firstrig;
			player4.firstgornak = firstgornak;
			player4.firstgornak2 = firstgornak2;
			player4.firstcamera = firstcamera;
			player4.medalpoet1 = medalpoet1;
			player4.medalpoet2 = medalpoet2;
			player4.medalpoet3 = medalpoet3;
			player4.medalmeeting1 = medalmeeting1;
			player4.medalmeeting2 = medalmeeting2;
			player4.sonyacoins = sonyacoins;
			player4.janucoins = janucoins;
			player4.firstthanator = firstthanator;
			player4.firststalker = firststalker;
			player4.firstcarrion = firstcarrion;
			player4.firstghoul = firstghoul;
			player4.firstthanatorX = firstthanatorX;
			player4.firststalkerX = firststalkerX;
			player4.firstcarrionX = firstcarrionX;
			player4.firstgornakX = firstgornakX;
			player4.firstghoulX = firstghoulX;
			player4.gotfirstc = gotfirstc;
			player4.fame = fame;
			player4.shroom1 = shroom1;
			player4.shroom2 = shroom2;
			player4.shroom3 = shroom3;
			player4.shroom4 = shroom4;
			player4.butterfly1 = butterfly1;
			player4.butterfly2 = butterfly2;
			player4.collectibles = collectibles;
			player4.shroomitem1 = shroomitem1;
			player4.shroomitem2 = shroomitem2;
			player4.shroomitem3 = shroomitem3;
			player4.shroomitem4 = shroomitem4;
			player4.shroomitem5 = shroomitem5;
			player4.shroomitem6 = shroomitem6;
			player4.shroomitem7 = shroomitem7;
			player4.shroomitem8 = shroomitem8;
			player4.shroomitem9 = shroomitem9;
			player4.shroomitem10 = shroomitem10;
			player4.shroomitem11 = shroomitem11;
			player4.shroomitem12 = shroomitem12;
			player4.shroomitem13 = shroomitem13;
			player4.shroomitem14 = shroomitem14;
			player4.shroomitem15 = shroomitem15;
			player4.shroomitem16 = shroomitem16;
			player4.shroomitem17 = shroomitem17;
			player4.shroomitem18 = shroomitem18;
			player4.shroomitem19 = shroomitem19;
			player4.shroomitem20 = shroomitem20;
			player4.shroomitem21 = shroomitem21;
			player4.shroomitem22 = shroomitem22;
			player4.shroomitem23 = shroomitem23;
			player4.shroomitem24 = shroomitem24;
			player4.shroomitem25 = shroomitem25;
			player4.shroomitem26 = shroomitem26;
			player4.shroomitem27 = shroomitem27;
			player4.shroomitem28 = shroomitem28;
			player4.shroomitem29 = shroomitem29;
			player4.shroomitem30 = shroomitem30;
			player4.shroomitem31 = shroomitem31;
			player4.shroomitem32 = shroomitem32;
			player4.shroomitem33 = shroomitem33;
			player4.shroomitem34 = shroomitem34;
			player4.shroomitem35 = shroomitem35;
			player4.shroomitem36 = shroomitem36;
			player4.shroomitem37 = shroomitem37;
			player4.shroomitem38 = shroomitem38;
			player4.shroomitem39 = shroomitem39;
			player4.shroomitem40 = shroomitem40;
			player4.shroomitem41 = shroomitem41;
			player4.shroomitem42 = shroomitem42;
			player4.shroomitem43 = shroomitem43;
			player4.shroomitem44 = shroomitem44;
			player4.shroomitem45 = shroomitem45;
			player4.shroomitem46 = shroomitem46;
			player4.shroomitem47 = shroomitem47;
			player4.shroomitem48 = shroomitem48;
			player4.shroomitem49 = shroomitem49;
			player4.shroomitem50 = shroomitem50;
			player4.shroomitem51 = shroomitem51;
			player4.shroomitem52 = shroomitem52;
			player4.shroomitem53 = shroomitem53;
			player4.shroomitem54 = shroomitem54;
			player4.shroomitem55 = shroomitem55;
			player4.shroomitem56 = shroomitem56;
			player4.shroomitem57 = shroomitem57;
			player4.shroomitem58 = shroomitem58;
			player4.shroomitem59 = shroomitem59;
			player4.shroomitem60 = shroomitem60;
			player4.shroomitem61 = shroomitem61;
			player4.shroomitem62 = shroomitem62;
			player4.shroomitem63 = shroomitem63;
			player4.shroomitem64 = shroomitem64;
			player4.shroomitem65 = shroomitem65;
			player4.shroomitem66 = shroomitem66;
			player4.shroomitem67 = shroomitem67;
			player4.shroomitem68 = shroomitem68;
			player4.shroomitem69 = shroomitem69;
			player4.shroomitem70 = shroomitem70;
			player4.shroomitem71 = shroomitem71;
			player4.shroomitem72 = shroomitem72;
			player4.shroomitem73 = shroomitem73;
			player4.shroomitem74 = shroomitem74;
			player4.shroomitem75 = shroomitem75;
			player4.shroomitem76 = shroomitem76;
			player4.shroomitem77 = shroomitem77;
			player4.shroomitem78 = shroomitem78;
			player4.shroomitem79 = shroomitem79;
			player4.shroomitem80 = shroomitem80;
			player4.butterflyitem1 = butterflyitem1;
			player4.butterflyitem2 = butterflyitem2;
			player4.butterflyitem3 = butterflyitem3;
			player4.butterflyitem4 = butterflyitem4;
			player4.butterflyitem5 = butterflyitem5;
			player4.butterflyitem6 = butterflyitem6;
			player4.butterflyitem7 = butterflyitem7;
			player4.butterflyitem8 = butterflyitem8;
			player4.butterflyitem9 = butterflyitem9;
			player4.butterflyitem10 = butterflyitem10;
			player4.shovel1 = shovel1;
			player4.shovel2 = shovel2;
			player4.shovel3 = shovel3;
			player4.shovel4 = shovel4;
			player4.shovel5 = shovel5;
			player4.shovel6 = shovel6;
			player4.shovel7 = shovel7;
			player4.shovel8 = shovel8;
			player4.shovel9 = shovel9;
			player4.shovel10 = shovel10;
			player4.item1 = item1;
			player4.item2 = item2;
			player4.item3 = item3;
			player4.item4 = item4;
			player4.item5 = item5;
			player4.item6 = item6;
			player4.item7 = item7;
			player4.item8 = item8;
			player4.item9 = item9;
			player4.item10 = item10;
			player4.item11 = item11;
			player4.item12 = item12;
			player4.item13 = item13;
			player4.item14 = item14;
			player4.item15 = item15;
			player4.item16 = item16;
			player4.item17 = item17;
			player4.item18 = item18;
			player4.item19 = item19;
			player4.item20 = item20;
			player4.item21 = item21;
			player4.item22 = item22;
			player4.item23 = item23;
			player4.item24 = item24;
			player4.item25 = item25;
			player4.item26 = item26;
			player4.item27 = item27;
			player4.item28 = item28;
			player4.item29 = item29;
			player4.item30 = item30;
			player4.switchzn1 = switchzn1;
			player4.switchzn2 = switchzn2;
			player4.switchzn3 = switchzn3;
			player4.switchzn4 = switchzn4;
			player4.switchzn5 = switchzn5;
			player4.switchzn6 = switchzn6;
			player4.switchzn7 = switchzn7;
			player4.switchzn8 = switchzn8;
			player4.switchzn9 = switchzn9;
			player4.obj0 = obj0;
			player4.obj1 = obj1;
			player4.obj2 = obj2;
			player4.obj3 = obj3;
			player4.obj4 = obj4;
			player4.obj5 = obj5;
			player4.obj6 = obj6;
			player4.obj7 = obj7;
			player4.obj8 = obj8;
			player4.obj9 = obj9;
			player4.obj10 = obj10;
			player4.obj11 = obj11;
			player4.obj12 = obj12;
			player4.obj13 = obj13;
			player4.obj14 = obj14;
			player4.obj15 = obj15;
			player4.obj16 = obj16;
			player4.obj17 = obj17;
			player4.obj18 = obj18;
			player4.obj19 = obj19;
			player4.obj20 = obj20;
			player4.obj21 = obj21;
			player4.obj22 = obj22;
			player4.obj23 = obj23;
			player4.obj24 = obj24;
			player4.obj25 = obj25;
			player4.obj26 = obj26;
			player4.obj27 = obj27;
			player4.obj28 = obj28;
			player4.obj29 = obj29;
			player4.obj30 = obj30;
			player4.objname0 = objname0;
			player4.objname1 = objname1;
			player4.objname2 = objname2;
			player4.objname3 = objname3;
			player4.objname4 = objname4;
			player4.objname5 = objname5;
			player4.objname6 = objname6;
			player4.objname7 = objname7;
			player4.objname8 = objname8;
			player4.objname9 = objname9;
			player4.objname10 = objname10;
			player4.objname11 = objname11;
			player4.objname12 = objname12;
			player4.objname13 = objname13;
			player4.objname14 = objname14;
			player4.objname15 = objname15;
			player4.objname16 = objname16;
			player4.objname17 = objname17;
			player4.objname18 = objname18;
			player4.objname19 = objname19;
			player4.objname20 = objname20;
			player4.objname21 = objname21;
			player4.objname22 = objname22;
			player4.objname23 = objname23;
			player4.objname24 = objname24;
			player4.objname25 = objname25;
			player4.objname26 = objname26;
			player4.objname27 = objname27;
			player4.objname28 = objname28;
			player4.objname29 = objname29;
			player4.objname30 = objname30;
			player4.darconstory = darconstory;
			player4.guarduniform = guarduniform;
			player4.goteyepatches = goteyepatches;
			player4.gotmaskcape = gotmaskcape;
			player4.gotgrayskin = gotgrayskin;
			player4.gotredskin = gotredskin;
			player4.gotmask1 = gotmask1;
			player4.gotmask2 = gotmask2;
			player4.gotmask3 = gotmask3;
			player4.gotmask4 = gotmask4;
			player4.gotbandana = gotbandana;
			player4.gotfedorahat = gotfedorahat;
			player4.gottophat = gottophat;
			player4.gotthunder = gotthunder;
			player4.gotblackpearl = gotblackpearl;
			player4.gotserpentnose = gotserpentnose;
			player4.gotwarpaint = gotwarpaint;
			player4.goteyebleed = goteyebleed;
			player4.goteyeshadow = goteyeshadow;
			player4.gotbloodshoteyes = gotbloodshoteyes;
			player4.gotundeadeyes = gotundeadeyes;
			player4.gotdemoneyes = gotdemoneyes;
			player4.capeon = capeon;
			player4.maskoff = maskoff;
			player4.extrabelt = extrabelt;
			player4.barechest = barechest;
			player4.outfit = outfit;
			player4.hair = hair;
			player4.earring = earring;
			player4.skinz = skinz;
			player4.freckles = freckles;
			player4.frecklesalpha = frecklesalpha;
			player4.nosez = nosez;
			player4.eyepatch = eyepatch;
			player4.eyesboth = eyesboth;
			player4.eyesparkle1 = eyesparkle1;
			player4.eyesparkle2 = eyesparkle2;
			player4.eyetype1 = eyetype1;
			player4.eyetype2 = eyetype2;
			player4.eyescale1 = eyescale1;
			player4.eyescale2 = eyescale2;
			player4.eyewhite1 = eyewhite1;
			player4.eyewhite2 = eyewhite2;
			player4.eyebrows = eyebrows;
			player4.eyesquint = eyesquint;
			player4.maskz = maskz;
			player4.tattoo = tattoo;
			player4.scar = scar;
			player4.beard = beard;
			player4.capecolor = capecolor;
			player4.cape_addon = cape_addon;
			player4.necklace = necklace;
			player4.jacket = jacket;
			player4.pouches = pouches;
			player4.belt = belt;
			player4.gauntlet = gauntlet;
			player4.arms = arms;
			player4.glove1 = glove1;
			player4.glove2 = glove2;
			player4.pants = pants;
			player4.shoes = shoes;
			player4.tattooalpha = tattooalpha;
			player4.scaralpha = scaralpha;
			player4.hairtintrb = hairtintrb;
			player4.hairtintgb = hairtintgb;
			player4.hairtintbb = hairtintbb;
			player4.eyepatchtintrb = eyepatchtintrb;
			player4.eyepatchtintbb = eyepatchtintbb;
			player4.eyepatchtintgb = eyepatchtintgb;
			player4.eye1tintrb = eye1tintrb;
			player4.eye1tintbb = eye1tintbb;
			player4.eye1tintgb = eye1tintgb;
			player4.eye2tintrb = eye2tintrb;
			player4.eye2tintbb = eye2tintbb;
			player4.eye2tintgb = eye2tintgb;
			player4.masktintrb = masktintrb;
			player4.masktintgb = masktintgb;
			player4.masktintbb = masktintbb;
			player4.tattootintrb = tattootintrb;
			player4.tattootintgb = tattootintgb;
			player4.tattootintbb = tattootintbb;
			player4.capetintrb = capetintrb;
			player4.capetintgb = capetintgb;
			player4.capetintbb = capetintbb;
			player4.necklacetintrb = necklacetintrb;
			player4.necklacetintgb = necklacetintgb;
			player4.necklacetintbb = necklacetintbb;
			player4.pouchtintrb = pouchtintrb;
			player4.pouchtintgb = pouchtintgb;
			player4.pouchtintbb = pouchtintbb;
			player4.belttintrb = belttintrb;
			player4.belttintgb = belttintgb;
			player4.belttintbb = belttintbb;
			player4.gauntlettintrb = gauntlettintrb;
			player4.gauntlettintgb = gauntlettintgb;
			player4.gauntlettintbb = gauntlettintbb;
			player4.armtintrb = armtintrb;
			player4.armtintgb = armtintgb;
			player4.armtintbb = armtintbb;
			player4.jackettintrb = jackettintrb;
			player4.jackettintgb = jackettintgb;
			player4.jackettintbb = jackettintbb;
			player4.glove1tintrb = glove1tintrb;
			player4.glove1tintgb = glove1tintgb;
			player4.glove1tintbb = glove1tintbb;
			player4.glove2tintrb = glove2tintrb;
			player4.glove2tintgb = glove2tintgb;
			player4.glove2tintbb = glove2tintbb;
			player4.panttintrb = panttintrb;
			player4.panttintgb = panttintgb;
			player4.panttintbb = panttintbb;
			player4.shoetintrb = shoetintrb;
			player4.shoetintgb = shoetintgb;
			player4.shoetintbb = shoetintbb;
			player4.skintintrb = skintintrb;
			player4.skintintgb = skintintgb;
			player4.skintintbb = skintintbb;
			player4.sheathtintrb = sheathtintrb;
			player4.sheathtintgb = sheathtintgb;
			player4.sheathtintbb = sheathtintbb;
			player4.capeon_outfit1 = capeon_outfit1;
			player4.maskoff_outfit1 = maskoff_outfit1;
			player4.extrabelt_outfit1 = extrabelt_outfit1;
			player4.barechest_outfit1 = barechest_outfit1;
			player4.hair_outfit1 = hair_outfit1;
			player4.earring_outfit1 = earring_outfit1;
			player4.skinz_outfit1 = skinz_outfit1;
			player4.freckles_outfit1 = freckles_outfit1;
			player4.frecklesalpha_outfit1 = frecklesalpha_outfit1;
			player4.nosez_outfit1 = nosez_outfit1;
			player4.eyepatch_outfit1 = eyepatch_outfit1;
			player4.eyesboth_outfit1 = eyesboth_outfit1;
			player4.eyesparkle1_outfit1 = eyesparkle1_outfit1;
			player4.eyesparkle2_outfit1 = eyesparkle2_outfit1;
			player4.eyetype1_outfit1 = eyetype1_outfit1;
			player4.eyetype2_outfit1 = eyetype2_outfit1;
			player4.eyescale1_outfit1 = eyescale1_outfit1;
			player4.eyescale2_outfit1 = eyescale2_outfit1;
			player4.eyewhite1_outfit1 = eyewhite1_outfit1;
			player4.eyewhite2_outfit1 = eyewhite2_outfit1;
			player4.eyebrows_outfit1 = eyebrows_outfit1;
			player4.eyesquint_outfit1 = eyesquint_outfit1;
			player4.maskz_outfit1 = maskz_outfit1;
			player4.tattoo_outfit1 = tattoo_outfit1;
			player4.scar_outfit1 = scar_outfit1;
			player4.beard_outfit1 = beard_outfit1;
			player4.capecolor_outfit1 = capecolor_outfit1;
			player4.cape_addon_outfit1 = cape_addon_outfit1;
			player4.necklace_outfit1 = necklace_outfit1;
			player4.jacket_outfit1 = jacket_outfit1;
			player4.pouches_outfit1 = pouches_outfit1;
			player4.belt_outfit1 = belt_outfit1;
			player4.gauntlet_outfit1 = gauntlet_outfit1;
			player4.arms_outfit1 = arms_outfit1;
			player4.glove1_outfit1 = glove1_outfit1;
			player4.glove2_outfit1 = glove2_outfit1;
			player4.pants_outfit1 = pants_outfit1;
			player4.shoes_outfit1 = shoes_outfit1;
			player4.tattooalpha_outfit1 = tattooalpha_outfit1;
			player4.scaralpha_outfit1 = scaralpha_outfit1;
			player4.hairtintrb_outfit1 = hairtintrb_outfit1;
			player4.hairtintgb_outfit1 = hairtintgb_outfit1;
			player4.hairtintbb_outfit1 = hairtintbb_outfit1;
			player4.eyepatchtintrb_outfit1 = eyepatchtintrb_outfit1;
			player4.eyepatchtintbb_outfit1 = eyepatchtintbb_outfit1;
			player4.eyepatchtintgb_outfit1 = eyepatchtintgb_outfit1;
			player4.eye1tintrb_outfit1 = eye1tintrb_outfit1;
			player4.eye1tintbb_outfit1 = eye1tintbb_outfit1;
			player4.eye1tintgb_outfit1 = eye1tintgb_outfit1;
			player4.eye2tintrb_outfit1 = eye2tintrb_outfit1;
			player4.eye2tintbb_outfit1 = eye2tintbb_outfit1;
			player4.eye2tintgb_outfit1 = eye2tintgb_outfit1;
			player4.masktintrb_outfit1 = masktintrb_outfit1;
			player4.masktintgb_outfit1 = masktintgb_outfit1;
			player4.masktintbb_outfit1 = masktintbb_outfit1;
			player4.tattootintrb_outfit1 = tattootintrb_outfit1;
			player4.tattootintgb_outfit1 = tattootintgb_outfit1;
			player4.tattootintbb_outfit1 = tattootintbb_outfit1;
			player4.capetintrb_outfit1 = capetintrb_outfit1;
			player4.capetintgb_outfit1 = capetintgb_outfit1;
			player4.capetintbb_outfit1 = capetintbb_outfit1;
			player4.necklacetintrb_outfit1 = necklacetintrb_outfit1;
			player4.necklacetintgb_outfit1 = necklacetintgb_outfit1;
			player4.necklacetintbb_outfit1 = necklacetintbb_outfit1;
			player4.pouchtintrb_outfit1 = pouchtintrb_outfit1;
			player4.pouchtintgb_outfit1 = pouchtintgb_outfit1;
			player4.pouchtintbb_outfit1 = pouchtintbb_outfit1;
			player4.belttintrb_outfit1 = belttintrb_outfit1;
			player4.belttintgb_outfit1 = belttintgb_outfit1;
			player4.belttintbb_outfit1 = belttintbb_outfit1;
			player4.gauntlettintrb_outfit1 = gauntlettintrb_outfit1;
			player4.gauntlettintgb_outfit1 = gauntlettintgb_outfit1;
			player4.gauntlettintbb_outfit1 = gauntlettintbb_outfit1;
			player4.armtintrb_outfit1 = armtintrb_outfit1;
			player4.armtintgb_outfit1 = armtintgb_outfit1;
			player4.armtintbb_outfit1 = armtintbb_outfit1;
			player4.jackettintrb_outfit1 = jackettintrb_outfit1;
			player4.jackettintgb_outfit1 = jackettintgb_outfit1;
			player4.jackettintbb_outfit1 = jackettintbb_outfit1;
			player4.glove1tintrb_outfit1 = glove1tintrb_outfit1;
			player4.glove1tintgb_outfit1 = glove1tintgb_outfit1;
			player4.glove1tintbb_outfit1 = glove1tintbb_outfit1;
			player4.glove2tintrb_outfit1 = glove2tintrb_outfit1;
			player4.glove2tintgb_outfit1 = glove2tintgb_outfit1;
			player4.glove2tintbb_outfit1 = glove2tintbb_outfit1;
			player4.panttintrb_outfit1 = panttintrb_outfit1;
			player4.panttintgb_outfit1 = panttintgb_outfit1;
			player4.panttintbb_outfit1 = panttintbb_outfit1;
			player4.shoetintrb_outfit1 = shoetintrb_outfit1;
			player4.shoetintgb_outfit1 = shoetintgb_outfit1;
			player4.shoetintbb_outfit1 = shoetintbb_outfit1;
			player4.skintintrb_outfit1 = skintintrb_outfit1;
			player4.skintintgb_outfit1 = skintintgb_outfit1;
			player4.skintintbb_outfit1 = skintintbb_outfit1;
			player4.sheathtintrb_outfit1 = sheathtintrb_outfit1;
			player4.sheathtintgb_outfit1 = sheathtintgb_outfit1;
			player4.sheathtintbb_outfit1 = sheathtintbb_outfit1;
			player4.capeon_outfit2 = capeon_outfit2;
			player4.maskoff_outfit2 = maskoff_outfit2;
			player4.extrabelt_outfit2 = extrabelt_outfit2;
			player4.barechest_outfit2 = barechest_outfit2;
			player4.hair_outfit2 = hair_outfit2;
			player4.earring_outfit2 = earring_outfit2;
			player4.skinz_outfit2 = skinz_outfit2;
			player4.freckles_outfit2 = freckles_outfit2;
			player4.frecklesalpha_outfit2 = frecklesalpha_outfit2;
			player4.nosez_outfit2 = nosez_outfit2;
			player4.eyepatch_outfit2 = eyepatch_outfit2;
			player4.eyesboth_outfit2 = eyesboth_outfit2;
			player4.eyesparkle1_outfit2 = eyesparkle1_outfit2;
			player4.eyesparkle2_outfit2 = eyesparkle2_outfit2;
			player4.eyetype1_outfit2 = eyetype1_outfit2;
			player4.eyetype2_outfit2 = eyetype2_outfit2;
			player4.eyescale1_outfit2 = eyescale1_outfit2;
			player4.eyescale2_outfit2 = eyescale2_outfit2;
			player4.eyewhite1_outfit2 = eyewhite1_outfit2;
			player4.eyewhite2_outfit2 = eyewhite2_outfit2;
			player4.eyebrows_outfit2 = eyebrows_outfit2;
			player4.eyesquint_outfit2 = eyesquint_outfit2;
			player4.maskz_outfit2 = maskz_outfit2;
			player4.tattoo_outfit2 = tattoo_outfit2;
			player4.scar_outfit2 = scar_outfit2;
			player4.beard_outfit2 = beard_outfit2;
			player4.capecolor_outfit2 = capecolor_outfit2;
			player4.cape_addon_outfit2 = cape_addon_outfit2;
			player4.necklace_outfit2 = necklace_outfit2;
			player4.jacket_outfit2 = jacket_outfit2;
			player4.pouches_outfit2 = pouches_outfit2;
			player4.belt_outfit2 = belt_outfit2;
			player4.gauntlet_outfit2 = gauntlet_outfit2;
			player4.arms_outfit2 = arms_outfit2;
			player4.glove1_outfit2 = glove1_outfit2;
			player4.glove2_outfit2 = glove2_outfit2;
			player4.pants_outfit2 = pants_outfit2;
			player4.shoes_outfit2 = shoes_outfit2;
			player4.tattooalpha_outfit2 = tattooalpha_outfit2;
			player4.scaralpha_outfit2 = scaralpha_outfit2;
			player4.hairtintrb_outfit2 = hairtintrb_outfit2;
			player4.hairtintgb_outfit2 = hairtintgb_outfit2;
			player4.hairtintbb_outfit2 = hairtintbb_outfit2;
			player4.eyepatchtintrb_outfit2 = eyepatchtintrb_outfit2;
			player4.eyepatchtintbb_outfit2 = eyepatchtintbb_outfit2;
			player4.eyepatchtintgb_outfit2 = eyepatchtintgb_outfit2;
			player4.eye1tintrb_outfit2 = eye1tintrb_outfit2;
			player4.eye1tintbb_outfit2 = eye1tintbb_outfit2;
			player4.eye1tintgb_outfit2 = eye1tintgb_outfit2;
			player4.eye2tintrb_outfit2 = eye2tintrb_outfit2;
			player4.eye2tintbb_outfit2 = eye2tintbb_outfit2;
			player4.eye2tintgb_outfit2 = eye2tintgb_outfit2;
			player4.masktintrb_outfit2 = masktintrb_outfit2;
			player4.masktintgb_outfit2 = masktintgb_outfit2;
			player4.masktintbb_outfit2 = masktintbb_outfit2;
			player4.tattootintrb_outfit2 = tattootintrb_outfit2;
			player4.tattootintgb_outfit2 = tattootintgb_outfit2;
			player4.tattootintbb_outfit2 = tattootintbb_outfit2;
			player4.capetintrb_outfit2 = capetintrb_outfit2;
			player4.capetintgb_outfit2 = capetintgb_outfit2;
			player4.capetintbb_outfit2 = capetintbb_outfit2;
			player4.necklacetintrb_outfit2 = necklacetintrb_outfit2;
			player4.necklacetintgb_outfit2 = necklacetintgb_outfit2;
			player4.necklacetintbb_outfit2 = necklacetintbb_outfit2;
			player4.pouchtintrb_outfit2 = pouchtintrb_outfit2;
			player4.pouchtintgb_outfit2 = pouchtintgb_outfit2;
			player4.pouchtintbb_outfit2 = pouchtintbb_outfit2;
			player4.belttintrb_outfit2 = belttintrb_outfit2;
			player4.belttintgb_outfit2 = belttintgb_outfit2;
			player4.belttintbb_outfit2 = belttintbb_outfit2;
			player4.gauntlettintrb_outfit2 = gauntlettintrb_outfit2;
			player4.gauntlettintgb_outfit2 = gauntlettintgb_outfit2;
			player4.gauntlettintbb_outfit2 = gauntlettintbb_outfit2;
			player4.armtintrb_outfit2 = armtintrb_outfit2;
			player4.armtintgb_outfit2 = armtintgb_outfit2;
			player4.armtintbb_outfit2 = armtintbb_outfit2;
			player4.jackettintrb_outfit2 = jackettintrb_outfit2;
			player4.jackettintgb_outfit2 = jackettintgb_outfit2;
			player4.jackettintbb_outfit2 = jackettintbb_outfit2;
			player4.glove1tintrb_outfit2 = glove1tintrb_outfit2;
			player4.glove1tintgb_outfit2 = glove1tintgb_outfit2;
			player4.glove1tintbb_outfit2 = glove1tintbb_outfit2;
			player4.glove2tintrb_outfit2 = glove2tintrb_outfit2;
			player4.glove2tintgb_outfit2 = glove2tintgb_outfit2;
			player4.glove2tintbb_outfit2 = glove2tintbb_outfit2;
			player4.panttintrb_outfit2 = panttintrb_outfit2;
			player4.panttintgb_outfit2 = panttintgb_outfit2;
			player4.panttintbb_outfit2 = panttintbb_outfit2;
			player4.shoetintrb_outfit2 = shoetintrb_outfit2;
			player4.shoetintgb_outfit2 = shoetintgb_outfit2;
			player4.shoetintbb_outfit2 = shoetintbb_outfit2;
			player4.skintintrb_outfit2 = skintintrb_outfit2;
			player4.skintintgb_outfit2 = skintintgb_outfit2;
			player4.skintintbb_outfit2 = skintintbb_outfit2;
			player4.sheathtintrb_outfit2 = sheathtintrb_outfit2;
			player4.sheathtintgb_outfit2 = sheathtintgb_outfit2;
			player4.sheathtintbb_outfit2 = sheathtintbb_outfit2;
			player4.capeon_outfit3 = capeon_outfit3;
			player4.maskoff_outfit3 = maskoff_outfit3;
			player4.extrabelt_outfit3 = extrabelt_outfit3;
			player4.barechest_outfit3 = barechest_outfit3;
			player4.hair_outfit3 = hair_outfit3;
			player4.earring_outfit3 = earring_outfit3;
			player4.skinz_outfit3 = skinz_outfit3;
			player4.freckles_outfit3 = freckles_outfit3;
			player4.frecklesalpha_outfit3 = frecklesalpha_outfit3;
			player4.nosez_outfit3 = nosez_outfit3;
			player4.eyepatch_outfit3 = eyepatch_outfit3;
			player4.eyesboth_outfit3 = eyesboth_outfit3;
			player4.eyesparkle1_outfit3 = eyesparkle1_outfit3;
			player4.eyesparkle2_outfit3 = eyesparkle2_outfit3;
			player4.eyetype1_outfit3 = eyetype1_outfit3;
			player4.eyetype2_outfit3 = eyetype2_outfit3;
			player4.eyescale1_outfit3 = eyescale1_outfit3;
			player4.eyescale2_outfit3 = eyescale2_outfit3;
			player4.eyewhite1_outfit3 = eyewhite1_outfit3;
			player4.eyewhite2_outfit3 = eyewhite2_outfit3;
			player4.eyebrows_outfit3 = eyebrows_outfit3;
			player4.eyesquint_outfit3 = eyesquint_outfit3;
			player4.maskz_outfit3 = maskz_outfit3;
			player4.tattoo_outfit3 = tattoo_outfit3;
			player4.scar_outfit3 = scar_outfit3;
			player4.beard_outfit3 = beard_outfit3;
			player4.capecolor_outfit3 = capecolor_outfit3;
			player4.cape_addon_outfit3 = cape_addon_outfit3;
			player4.necklace_outfit3 = necklace_outfit3;
			player4.jacket_outfit3 = jacket_outfit3;
			player4.pouches_outfit3 = pouches_outfit3;
			player4.belt_outfit3 = belt_outfit3;
			player4.gauntlet_outfit3 = gauntlet_outfit3;
			player4.arms_outfit3 = arms_outfit3;
			player4.glove1_outfit3 = glove1_outfit3;
			player4.glove2_outfit3 = glove2_outfit3;
			player4.pants_outfit3 = pants_outfit3;
			player4.shoes_outfit3 = shoes_outfit3;
			player4.tattooalpha_outfit3 = tattooalpha_outfit3;
			player4.scaralpha_outfit3 = scaralpha_outfit3;
			player4.hairtintrb_outfit3 = hairtintrb_outfit3;
			player4.hairtintgb_outfit3 = hairtintgb_outfit3;
			player4.hairtintbb_outfit3 = hairtintbb_outfit3;
			player4.eyepatchtintrb_outfit3 = eyepatchtintrb_outfit3;
			player4.eyepatchtintbb_outfit3 = eyepatchtintbb_outfit3;
			player4.eyepatchtintgb_outfit3 = eyepatchtintgb_outfit3;
			player4.eye1tintrb_outfit3 = eye1tintrb_outfit3;
			player4.eye1tintbb_outfit3 = eye1tintbb_outfit3;
			player4.eye1tintgb_outfit3 = eye1tintgb_outfit3;
			player4.eye2tintrb_outfit3 = eye2tintrb_outfit3;
			player4.eye2tintbb_outfit3 = eye2tintbb_outfit3;
			player4.eye2tintgb_outfit3 = eye2tintgb_outfit3;
			player4.masktintrb_outfit3 = masktintrb_outfit3;
			player4.masktintgb_outfit3 = masktintgb_outfit3;
			player4.masktintbb_outfit3 = masktintbb_outfit3;
			player4.tattootintrb_outfit3 = tattootintrb_outfit3;
			player4.tattootintgb_outfit3 = tattootintgb_outfit3;
			player4.tattootintbb_outfit3 = tattootintbb_outfit3;
			player4.capetintrb_outfit3 = capetintrb_outfit3;
			player4.capetintgb_outfit3 = capetintgb_outfit3;
			player4.capetintbb_outfit3 = capetintbb_outfit3;
			player4.necklacetintrb_outfit3 = necklacetintrb_outfit3;
			player4.necklacetintgb_outfit3 = necklacetintgb_outfit3;
			player4.necklacetintbb_outfit3 = necklacetintbb_outfit3;
			player4.pouchtintrb_outfit3 = pouchtintrb_outfit3;
			player4.pouchtintgb_outfit3 = pouchtintgb_outfit3;
			player4.pouchtintbb_outfit3 = pouchtintbb_outfit3;
			player4.belttintrb_outfit3 = belttintrb_outfit3;
			player4.belttintgb_outfit3 = belttintgb_outfit3;
			player4.belttintbb_outfit3 = belttintbb_outfit3;
			player4.gauntlettintrb_outfit3 = gauntlettintrb_outfit3;
			player4.gauntlettintgb_outfit3 = gauntlettintgb_outfit3;
			player4.gauntlettintbb_outfit3 = gauntlettintbb_outfit3;
			player4.armtintrb_outfit3 = armtintrb_outfit3;
			player4.armtintgb_outfit3 = armtintgb_outfit3;
			player4.armtintbb_outfit3 = armtintbb_outfit3;
			player4.jackettintrb_outfit3 = jackettintrb_outfit3;
			player4.jackettintgb_outfit3 = jackettintgb_outfit3;
			player4.jackettintbb_outfit3 = jackettintbb_outfit3;
			player4.glove1tintrb_outfit3 = glove1tintrb_outfit3;
			player4.glove1tintgb_outfit3 = glove1tintgb_outfit3;
			player4.glove1tintbb_outfit3 = glove1tintbb_outfit3;
			player4.glove2tintrb_outfit3 = glove2tintrb_outfit3;
			player4.glove2tintgb_outfit3 = glove2tintgb_outfit3;
			player4.glove2tintbb_outfit3 = glove2tintbb_outfit3;
			player4.panttintrb_outfit3 = panttintrb_outfit3;
			player4.panttintgb_outfit3 = panttintgb_outfit3;
			player4.panttintbb_outfit3 = panttintbb_outfit3;
			player4.shoetintrb_outfit3 = shoetintrb_outfit3;
			player4.shoetintgb_outfit3 = shoetintgb_outfit3;
			player4.shoetintbb_outfit3 = shoetintbb_outfit3;
			player4.skintintrb_outfit3 = skintintrb_outfit3;
			player4.skintintgb_outfit3 = skintintgb_outfit3;
			player4.skintintbb_outfit3 = skintintbb_outfit3;
			player4.sheathtintrb_outfit3 = sheathtintrb_outfit3;
			player4.sheathtintgb_outfit3 = sheathtintgb_outfit3;
			player4.sheathtintbb_outfit3 = sheathtintbb_outfit3;
			player4.slot = slot;
			player4SO = SharedObject.getLocal('playerInfo4');
			player4SO.data.playerDat = player4;
			player4SO.flush();
		};
		savePlayerInfo5 = function () {
			player5 = new Object();
			player5.corename = corename;
			player5.coreX = coreX;
			player5.calebX = calebX;
			player5.playerX = playerX;
			player5.playerY = playerY;
			player5.dateday = dateday;
			player5.datemonth = datemonth;
			player5.dateyear = dateyear;
			player5.stand = stand;
			player5.story = story;
			player5.tutz = tutz;
			player5.gold = gold;
			player5.autoscreensave = autoscreensave;
			player5.firstsave = firstsave;
			player5.gotfirststats = gotfirststats;
			player5.godmode = godmode;
			player5.hascheated = hascheated;
			player5.character = character;
			player5.numofchars = numofchars;
			player5.currentweapon = currentweapon;
			player5.runningz = runningz;
			player5.areaname = areaname;
			player5.menucolor = menucolor;
			player5.corenumofmagics = corenumofmagics;
			player5.corenumoflimits = corenumoflimits;
			player5.calebnumofmagics = calebnumofmagics;
			player5.calebnumoflimits = calebnumoflimits;
			player5.fishing_count = fishing_count;
			player5.fishinghighscore = fishinghighscore;
			player5.numofbattles = numofbattles;
			player5.numofswords = numofswords;
			player5.coremagic1 = coremagic1;
			player5.calebmagic1 = calebmagic1;
			player5.farsight = farsight;
			player5.difficulty = difficulty;
			player5.corehealth = corehealth;
			player5.coremaxhealth = coremaxhealth;
			player5.coremana = coremana;
			player5.coremaxmana = coremaxmana;
			player5.calebhealth = calebhealth;
			player5.calebmaxhealth = calebmaxhealth;
			player5.calebmana = calebmana;
			player5.calebmaxmana = calebmaxmana;
			player5.corelimit = corelimit;
			player5.coremaxlimit = coremaxlimit;
			player5.caleblimit = caleblimit;
			player5.calebmaxlimit = calebmaxlimit;
			player5.directions = directions;
			player5.weapon1 = weapon1;
			player5.weapon2 = weapon2;
			player5.weapon3 = weapon3;
			player5.weapon4 = weapon4;
			player5.weapon5 = weapon5;
			player5.weapon6 = weapon6;
			player5.coremagic1 = coremagic1;
			player5.coremagic2 = coremagic2;
			player5.coremagic3 = coremagic3;
			player5.coremagic4 = coremagic4;
			player5.coremagic5 = coremagic5;
			player5.coremagic6 = coremagic6;
			player5.calebmagic1 = calebmagic1;
			player5.calebmagic2 = calebmagic2;
			player5.calebmagic3 = calebmagic3;
			player5.calebmagic4 = calebmagic4;
			player5.calebmagic5 = calebmagic5;
			player5.calebmagic6 = calebmagic6;
			player5.corelimit1 = corelimit1;
			player5.corelimit2 = corelimit2;
			player5.corelimit3 = corelimit3;
			player5.corelimit4 = corelimit4;
			player5.caleblimit1 = caleblimit1;
			player5.caleblimit2 = caleblimit2;
			player5.caleblimit3 = caleblimit3;
			player5.caleblimit4 = caleblimit4;
			player5.gotsword2 = gotsword2;
			player5.gotsword3 = gotsword3;
			player5.gotsword4 = gotsword4;
			player5.gotsword5 = gotsword5;
			player5.gotsword6 = gotsword6;
			player5.sword1f = sword1f;
			player5.sword2f = sword2f;
			player5.sword3f = sword3f;
			player5.sword4f = sword4f;
			player5.sword5f = sword5f;
			player5.sword6f = sword6f;
			player5.corecounterchance = corecounterchance;
			player5.calebcounterchance = calebcounterchance;
			player5.corepoison = corepoison;
			player5.calebpoison = calebpoison;
			player5.coremagicdamage = coremagicdamage;
			player5.corestrength = corestrength;
			player5.coredefense = coredefense;
			player5.coremagicdefense = coremagicdefense;
			player5.coreluck = coreluck;
			player5.coreagility = coreagility;
			player5.coremagicdamageX = coremagicdamageX;
			player5.coremagicdefenseX = coremagicdefenseX;
			player5.corestrengthX = corestrengthX;
			player5.coredefenseX = coredefenseX;
			player5.coreluckX = coreluckX;
			player5.coreagilityX = coreagilityX;
			player5.corefireElement = corefireElement;
			player5.coredarkElement = coredarkElement;
			player5.coreiceElement = coreiceElement;
			player5.corethunderElement = corethunderElement;
			player5.calebmagicdamage = calebmagicdamage;
			player5.calebstrength = calebstrength;
			player5.calebdefense = calebdefense;
			player5.calebmagicdefense = calebmagicdefense;
			player5.calebluck = calebluck;
			player5.calebagility = calebagility;
			player5.calebmagicdamageX = calebmagicdamageX;
			player5.calebmagicdefenseX = calebmagicdefenseX;
			player5.calebstrengthX = calebstrengthX;
			player5.calebdefenseX = calebdefenseX;
			player5.calebluckX = calebluckX;
			player5.calebagilityX = calebagilityX;
			player5.calebfireElement = calebfireElement;
			player5.calebdarkElement = calebdarkElement;
			player5.calebiceElement = calebiceElement;
			player5.calebthunderElement = calebthunderElement;
			player5.sword = sword;
			player5.swordname = swordname;
			player5.corereghealth = corereghealth;
			player5.coreregmana = coreregmana;
			player5.coreregstamina = coreregstamina;
			player5.calebreghealth = calebreghealth;
			player5.calebregmana = calebregmana;
			player5.calebregstamina = calebregstamina;
			player5.normalspeed = normalspeed;
			player5.orgspeed = orgspeed;
			player5.potion = potion;
			player5.ether = ether;
			player5.elixir = elixir;
			player5.remedy = remedy;
			player5.limit = limit;
			player5.bottle = bottle;
			player5.areabattle = areabattle;
			player5.areascreen = areascreen;
			player5.footstepsound = footstepsound;
			player5.walkthrough = walkthrough;
			player5.champion = champion;
			player5.playerZ = playerZ;
			player5.floorz = floorz;
			player5.forcenotrun = forcenotrun;
			player5.restorespeed = restorespeed;
			player5.savedateday = savedateday;
			player5.savedateyear = savedateyear;
			player5.savedatemonth = savedatemonth;
			player5.saveseconds = saveseconds;
			player5.saveminutes = saveminutes;
			player5.savehours = savehours;
			player5.numofluckyhits = numofluckyhits;
			player5.numofmedals = numofmedals;
			player5.menuquality = menuquality;
			player5.medalcharm = medalcharm;
			player5.medalcharms = medalcharms;
			player5.medalmeeting = medalmeeting;
			player5.medalrookie = medalrookie;
			player5.medalveteran = medalveteran;
			player5.medallegend = medallegend;
			player5.medalhelper = medalhelper;
			player5.medalswordfish = medalswordfish;
			player5.medalawakened = medalawakened;
			player5.medalpoet = medalpoet;
			player5.medalmeeting1 = medalmeeting1;
			player5.medalmeeting2 = medalmeeting2;
			player5.medaldiglet = medaldiglet;
			player5.medalherbivore = medalherbivore;
			player5.medalflawless = medalflawless;
			player5.medalflawlessX = medalflawlessX;
			player5.medaljuggernaught = medaljuggernaught;
			player5.medalaquaman = medalaquaman;
			player5.medalperfection = medalperfection;
			player5.changediff = changediff;
			player5.sfxmute = sfxmute;
			player5.night = night;
			player5.camera = camera;
			player5.hudvisible = hudvisible;
			player5.menuvisible = menuvisible;
			player5.gamequality = gamequality;
			player5.battlequality = battlequality;
			player5.counter = counter;
			player5.counter2 = counter2;
			player5.counter3 = counter3;
			player5.counter2X = counter2X;
			player5.counter3X = counter3X;
			player5.counterminute = counterminute;
			player5.counterhour = counterhour;
			player5.housegrade = housegrade;
			player5.housegrade2 = housegrade2;
			player5.limitless = limitless;
			player5.housecarpet = housecarpet;
			player5.housechair = housechair;
			player5.housewardrobe = housewardrobe;
			player5.housecandelebra = housecandelebra;
			player5.housepainting = housepainting;
			player5.enterhouse1 = enterhouse1;
			player5.enterhouse2 = enterhouse2;
			player5.questbag = questbag;
			player5.questbbag = questbbag;
			player5.questbeer = questbeer;
			player5.questfindbook = questfindbook;
			player5.questreturnbook = questreturnbook;
			player5.questwolf = questwolf;
			player5.questlove = questlove;
			player5.questink = questink;
			player5.questbrock = questbrock;
			player5.questnewintown = questnewintown;
			player5.questfindsword = questfindsword;
			player5.questfisher = questfisher;
			player5.questboar = questboar;
			player5.questfriend = questfriend;
			player5.questspitter = questspitter;
			player5.questgornak = questgornak;
			player5.questpotion = questpotion;
			player5.questhorse = questhorse;
			player5.questgamble = questgamble;
			player5.questthanator = questthanator;
			player5.questgnome = questgnome;
			player5.questsick = questsick;
			player5.questdonovan = questdonovan;
			player5.questshow = questshow;
			player5.questdrugs = questdrugs;
			player5.questdrunk = questdrunk;
			player5.questitemhunter = questitemhunter;
			player5.questtreasure = questtreasure;
			player5.questkidnap = questkidnap;
			player5.questdeadman = questdeadman;
			player5.questbagX = questbagX;
			player5.questbbagX = questbbagX;
			player5.questbeerX = questbeerX;
			player5.questfindbookX = questfindbookX;
			player5.questreturnbookX = questreturnbookX;
			player5.questwolfX = questwolfX;
			player5.questloveX = questloveX;
			player5.questinkX = questinkX;
			player5.questbrockX = questbrockX;
			player5.questnewintownX = questnewintownX;
			player5.questfindswordX = questfindswordX;
			player5.questfisherX = questfisherX;
			player5.questboarX = questboarX;
			player5.questfriendX = questfriendX;
			player5.questspitterX = questspitterX;
			player5.questgornakX = questgornakX;
			player5.questpotionX = questpotionX;
			player5.questhorseX = questhorseX;
			player5.questgambleX = questgambleX;
			player5.questthanatorX = questthanatorX;
			player5.questgnomeX = questgnomeX;
			player5.questsickX = questsickX;
			player5.questdonovanX = questdonovanX;
			player5.questshowX = questshowX;
			player5.questdrugsX = questdrugsX;
			player5.questdrunkX = questdrunkX;
			player5.questitemhunterX = questitemhunterX;
			player5.questtreasureX = questtreasureX;
			player5.questkidnapX = questkidnapX;
			player5.questdeadmanX = questdeadmanX;
			player5.numquests = numquests;
			player5.sessions = sessions;
			player5.firstcoremagic1 = firstcoremagic1;
			player5.firstcoremagic2 = firstcoremagic2;
			player5.firstcoremagic3 = firstcoremagic3;
			player5.firstcoremagic4 = firstcoremagic4;
			player5.firstcoremagic5 = firstcoremagic5;
			player5.firstcoremagic6 = firstcoremagic6;
			player5.firstcalebmagic1 = firstcalebmagic1;
			player5.firstcalebmagic2 = firstcalebmagic2;
			player5.firstcalebmagic3 = firstcalebmagic3;
			player5.firstcalebmagic4 = firstcalebmagic4;
			player5.firstcalebmagic5 = firstcalebmagic5;
			player5.firstcalebmagic6 = firstcalebmagic6;
			player5.numpoet = numpoet;
			player5.founddouglas = founddouglas;
			player5.namecolor = namecolor;
			player5.rewardcolor = rewardcolor;
			player5.mainquest = mainquest;
			player5.imrahischat = imrahischat;
			player5.luvannonchat = luvannonchat;
			player5.ghosttalk = ghosttalk;
			player5.activequests = activequests;
			player5.completedquests = completedquests;
			player5.qpage = qpage;
			player5.musicmute = musicmute;
			player5.volumez = volumez;
			player5.areabg = areabg;
			player5.coregotlimit = coregotlimit;
			player5.calebgotlimit = calebgotlimit;
			player5.hotinfo = hotinfo;
			player5.cinemacam = cinemacam;
			player5.camXpoint = camXpoint;
			player5.camYpoint = camYpoint;
			player5.currentstage = currentstage;
			player5.currentmusic = currentmusic;
			player5.gotshovel = gotshovel;
			player5.numofdigs = numofdigs;
			player5.gotfirstpotion = gotfirstpotion;
			player5.gotfirstelixir = gotfirstelixir;
			player5.gotfirstether = gotfirstether;
			player5.gotfirstremedy = gotfirstremedy;
			player5.gotfirstlimit = gotfirstlimit;
			player5.gotfirstbottle = gotfirstbottle;
			player5.firstrig = firstrig;
			player5.firstgornak = firstgornak;
			player5.firstgornak2 = firstgornak2;
			player5.firstcamera = firstcamera;
			player5.medalpoet1 = medalpoet1;
			player5.medalpoet2 = medalpoet2;
			player5.medalpoet3 = medalpoet3;
			player5.medalmeeting1 = medalmeeting1;
			player5.medalmeeting2 = medalmeeting2;
			player5.sonyacoins = sonyacoins;
			player5.janucoins = janucoins;
			player5.firstthanator = firstthanator;
			player5.firststalker = firststalker;
			player5.firstcarrion = firstcarrion;
			player5.firstghoul = firstghoul;
			player5.firstthanatorX = firstthanatorX;
			player5.firststalkerX = firststalkerX;
			player5.firstcarrionX = firstcarrionX;
			player5.firstgornakX = firstgornakX;
			player5.firstghoulX = firstghoulX;
			player5.gotfirstc = gotfirstc;
			player5.fame = fame;
			player5.shroom1 = shroom1;
			player5.shroom2 = shroom2;
			player5.shroom3 = shroom3;
			player5.shroom4 = shroom4;
			player5.butterfly1 = butterfly1;
			player5.butterfly2 = butterfly2;
			player5.collectibles = collectibles;
			player5.shroomitem1 = shroomitem1;
			player5.shroomitem2 = shroomitem2;
			player5.shroomitem3 = shroomitem3;
			player5.shroomitem4 = shroomitem4;
			player5.shroomitem5 = shroomitem5;
			player5.shroomitem6 = shroomitem6;
			player5.shroomitem7 = shroomitem7;
			player5.shroomitem8 = shroomitem8;
			player5.shroomitem9 = shroomitem9;
			player5.shroomitem10 = shroomitem10;
			player5.shroomitem11 = shroomitem11;
			player5.shroomitem12 = shroomitem12;
			player5.shroomitem13 = shroomitem13;
			player5.shroomitem14 = shroomitem14;
			player5.shroomitem15 = shroomitem15;
			player5.shroomitem16 = shroomitem16;
			player5.shroomitem17 = shroomitem17;
			player5.shroomitem18 = shroomitem18;
			player5.shroomitem19 = shroomitem19;
			player5.shroomitem20 = shroomitem20;
			player5.shroomitem21 = shroomitem21;
			player5.shroomitem22 = shroomitem22;
			player5.shroomitem23 = shroomitem23;
			player5.shroomitem24 = shroomitem24;
			player5.shroomitem25 = shroomitem25;
			player5.shroomitem26 = shroomitem26;
			player5.shroomitem27 = shroomitem27;
			player5.shroomitem28 = shroomitem28;
			player5.shroomitem29 = shroomitem29;
			player5.shroomitem30 = shroomitem30;
			player5.shroomitem31 = shroomitem31;
			player5.shroomitem32 = shroomitem32;
			player5.shroomitem33 = shroomitem33;
			player5.shroomitem34 = shroomitem34;
			player5.shroomitem35 = shroomitem35;
			player5.shroomitem36 = shroomitem36;
			player5.shroomitem37 = shroomitem37;
			player5.shroomitem38 = shroomitem38;
			player5.shroomitem39 = shroomitem39;
			player5.shroomitem40 = shroomitem40;
			player5.shroomitem41 = shroomitem41;
			player5.shroomitem42 = shroomitem42;
			player5.shroomitem43 = shroomitem43;
			player5.shroomitem44 = shroomitem44;
			player5.shroomitem45 = shroomitem45;
			player5.shroomitem46 = shroomitem46;
			player5.shroomitem47 = shroomitem47;
			player5.shroomitem48 = shroomitem48;
			player5.shroomitem49 = shroomitem49;
			player5.shroomitem50 = shroomitem50;
			player5.shroomitem51 = shroomitem51;
			player5.shroomitem52 = shroomitem52;
			player5.shroomitem53 = shroomitem53;
			player5.shroomitem54 = shroomitem54;
			player5.shroomitem55 = shroomitem55;
			player5.shroomitem56 = shroomitem56;
			player5.shroomitem57 = shroomitem57;
			player5.shroomitem58 = shroomitem58;
			player5.shroomitem59 = shroomitem59;
			player5.shroomitem60 = shroomitem60;
			player5.shroomitem61 = shroomitem61;
			player5.shroomitem62 = shroomitem62;
			player5.shroomitem63 = shroomitem63;
			player5.shroomitem64 = shroomitem64;
			player5.shroomitem65 = shroomitem65;
			player5.shroomitem66 = shroomitem66;
			player5.shroomitem67 = shroomitem67;
			player5.shroomitem68 = shroomitem68;
			player5.shroomitem69 = shroomitem69;
			player5.shroomitem70 = shroomitem70;
			player5.shroomitem71 = shroomitem71;
			player5.shroomitem72 = shroomitem72;
			player5.shroomitem73 = shroomitem73;
			player5.shroomitem74 = shroomitem74;
			player5.shroomitem75 = shroomitem75;
			player5.shroomitem76 = shroomitem76;
			player5.shroomitem77 = shroomitem77;
			player5.shroomitem78 = shroomitem78;
			player5.shroomitem79 = shroomitem79;
			player5.shroomitem80 = shroomitem80;
			player5.butterflyitem1 = butterflyitem1;
			player5.butterflyitem2 = butterflyitem2;
			player5.butterflyitem3 = butterflyitem3;
			player5.butterflyitem4 = butterflyitem4;
			player5.butterflyitem5 = butterflyitem5;
			player5.butterflyitem6 = butterflyitem6;
			player5.butterflyitem7 = butterflyitem7;
			player5.butterflyitem8 = butterflyitem8;
			player5.butterflyitem9 = butterflyitem9;
			player5.butterflyitem10 = butterflyitem10;
			player5.shovel1 = shovel1;
			player5.shovel2 = shovel2;
			player5.shovel3 = shovel3;
			player5.shovel4 = shovel4;
			player5.shovel5 = shovel5;
			player5.shovel6 = shovel6;
			player5.shovel7 = shovel7;
			player5.shovel8 = shovel8;
			player5.shovel9 = shovel9;
			player5.shovel10 = shovel10;
			player5.item1 = item1;
			player5.item2 = item2;
			player5.item3 = item3;
			player5.item4 = item4;
			player5.item5 = item5;
			player5.item6 = item6;
			player5.item7 = item7;
			player5.item8 = item8;
			player5.item9 = item9;
			player5.item10 = item10;
			player5.item11 = item11;
			player5.item12 = item12;
			player5.item13 = item13;
			player5.item14 = item14;
			player5.item15 = item15;
			player5.item16 = item16;
			player5.item17 = item17;
			player5.item18 = item18;
			player5.item19 = item19;
			player5.item20 = item20;
			player5.item21 = item21;
			player5.item22 = item22;
			player5.item23 = item23;
			player5.item24 = item24;
			player5.item25 = item25;
			player5.item26 = item26;
			player5.item27 = item27;
			player5.item28 = item28;
			player5.item29 = item29;
			player5.item30 = item30;
			player5.switchzn1 = switchzn1;
			player5.switchzn2 = switchzn2;
			player5.switchzn3 = switchzn3;
			player5.switchzn4 = switchzn4;
			player5.switchzn5 = switchzn5;
			player5.switchzn6 = switchzn6;
			player5.switchzn7 = switchzn7;
			player5.switchzn8 = switchzn8;
			player5.switchzn9 = switchzn9;
			player5.obj0 = obj0;
			player5.obj1 = obj1;
			player5.obj2 = obj2;
			player5.obj3 = obj3;
			player5.obj4 = obj4;
			player5.obj5 = obj5;
			player5.obj6 = obj6;
			player5.obj7 = obj7;
			player5.obj8 = obj8;
			player5.obj9 = obj9;
			player5.obj10 = obj10;
			player5.obj11 = obj11;
			player5.obj12 = obj12;
			player5.obj13 = obj13;
			player5.obj14 = obj14;
			player5.obj15 = obj15;
			player5.obj16 = obj16;
			player5.obj17 = obj17;
			player5.obj18 = obj18;
			player5.obj19 = obj19;
			player5.obj20 = obj20;
			player5.obj21 = obj21;
			player5.obj22 = obj22;
			player5.obj23 = obj23;
			player5.obj24 = obj24;
			player5.obj25 = obj25;
			player5.obj26 = obj26;
			player5.obj27 = obj27;
			player5.obj28 = obj28;
			player5.obj29 = obj29;
			player5.obj30 = obj30;
			player5.objname0 = objname0;
			player5.objname1 = objname1;
			player5.objname2 = objname2;
			player5.objname3 = objname3;
			player5.objname4 = objname4;
			player5.objname5 = objname5;
			player5.objname6 = objname6;
			player5.objname7 = objname7;
			player5.objname8 = objname8;
			player5.objname9 = objname9;
			player5.objname10 = objname10;
			player5.objname11 = objname11;
			player5.objname12 = objname12;
			player5.objname13 = objname13;
			player5.objname14 = objname14;
			player5.objname15 = objname15;
			player5.objname16 = objname16;
			player5.objname17 = objname17;
			player5.objname18 = objname18;
			player5.objname19 = objname19;
			player5.objname20 = objname20;
			player5.objname21 = objname21;
			player5.objname22 = objname22;
			player5.objname23 = objname23;
			player5.objname24 = objname24;
			player5.objname25 = objname25;
			player5.objname26 = objname26;
			player5.objname27 = objname27;
			player5.objname28 = objname28;
			player5.objname29 = objname29;
			player5.objname30 = objname30;
			player5.darconstory = darconstory;
			player5.guarduniform = guarduniform;
			player5.goteyepatches = goteyepatches;
			player5.gotmaskcape = gotmaskcape;
			player5.gotgrayskin = gotgrayskin;
			player5.gotredskin = gotredskin;
			player5.gotmask1 = gotmask1;
			player5.gotmask2 = gotmask2;
			player5.gotmask3 = gotmask3;
			player5.gotmask4 = gotmask4;
			player5.gotbandana = gotbandana;
			player5.gotfedorahat = gotfedorahat;
			player5.gottophat = gottophat;
			player5.gotthunder = gotthunder;
			player5.gotblackpearl = gotblackpearl;
			player5.gotserpentnose = gotserpentnose;
			player5.gotwarpaint = gotwarpaint;
			player5.goteyebleed = goteyebleed;
			player5.goteyeshadow = goteyeshadow;
			player5.gotbloodshoteyes = gotbloodshoteyes;
			player5.gotundeadeyes = gotundeadeyes;
			player5.gotdemoneyes = gotdemoneyes;
			player5.capeon = capeon;
			player5.maskoff = maskoff;
			player5.extrabelt = extrabelt;
			player5.barechest = barechest;
			player5.outfit = outfit;
			player5.hair = hair;
			player5.earring = earring;
			player5.skinz = skinz;
			player5.freckles = freckles;
			player5.frecklesalpha = frecklesalpha;
			player5.nosez = nosez;
			player5.eyepatch = eyepatch;
			player5.eyesboth = eyesboth;
			player5.eyesparkle1 = eyesparkle1;
			player5.eyesparkle2 = eyesparkle2;
			player5.eyetype1 = eyetype1;
			player5.eyetype2 = eyetype2;
			player5.eyescale1 = eyescale1;
			player5.eyescale2 = eyescale2;
			player5.eyewhite1 = eyewhite1;
			player5.eyewhite2 = eyewhite2;
			player5.eyebrows = eyebrows;
			player5.eyesquint = eyesquint;
			player5.maskz = maskz;
			player5.tattoo = tattoo;
			player5.scar = scar;
			player5.beard = beard;
			player5.capecolor = capecolor;
			player5.cape_addon = cape_addon;
			player5.necklace = necklace;
			player5.jacket = jacket;
			player5.pouches = pouches;
			player5.belt = belt;
			player5.gauntlet = gauntlet;
			player5.arms = arms;
			player5.glove1 = glove1;
			player5.glove2 = glove2;
			player5.pants = pants;
			player5.shoes = shoes;
			player5.tattooalpha = tattooalpha;
			player5.scaralpha = scaralpha;
			player5.hairtintrb = hairtintrb;
			player5.hairtintgb = hairtintgb;
			player5.hairtintbb = hairtintbb;
			player5.eyepatchtintrb = eyepatchtintrb;
			player5.eyepatchtintbb = eyepatchtintbb;
			player5.eyepatchtintgb = eyepatchtintgb;
			player5.eye1tintrb = eye1tintrb;
			player5.eye1tintbb = eye1tintbb;
			player5.eye1tintgb = eye1tintgb;
			player5.eye2tintrb = eye2tintrb;
			player5.eye2tintbb = eye2tintbb;
			player5.eye2tintgb = eye2tintgb;
			player5.masktintrb = masktintrb;
			player5.masktintgb = masktintgb;
			player5.masktintbb = masktintbb;
			player5.tattootintrb = tattootintrb;
			player5.tattootintgb = tattootintgb;
			player5.tattootintbb = tattootintbb;
			player5.capetintrb = capetintrb;
			player5.capetintgb = capetintgb;
			player5.capetintbb = capetintbb;
			player5.necklacetintrb = necklacetintrb;
			player5.necklacetintgb = necklacetintgb;
			player5.necklacetintbb = necklacetintbb;
			player5.pouchtintrb = pouchtintrb;
			player5.pouchtintgb = pouchtintgb;
			player5.pouchtintbb = pouchtintbb;
			player5.belttintrb = belttintrb;
			player5.belttintgb = belttintgb;
			player5.belttintbb = belttintbb;
			player5.gauntlettintrb = gauntlettintrb;
			player5.gauntlettintgb = gauntlettintgb;
			player5.gauntlettintbb = gauntlettintbb;
			player5.armtintrb = armtintrb;
			player5.armtintgb = armtintgb;
			player5.armtintbb = armtintbb;
			player5.jackettintrb = jackettintrb;
			player5.jackettintgb = jackettintgb;
			player5.jackettintbb = jackettintbb;
			player5.glove1tintrb = glove1tintrb;
			player5.glove1tintgb = glove1tintgb;
			player5.glove1tintbb = glove1tintbb;
			player5.glove2tintrb = glove2tintrb;
			player5.glove2tintgb = glove2tintgb;
			player5.glove2tintbb = glove2tintbb;
			player5.panttintrb = panttintrb;
			player5.panttintgb = panttintgb;
			player5.panttintbb = panttintbb;
			player5.shoetintrb = shoetintrb;
			player5.shoetintgb = shoetintgb;
			player5.shoetintbb = shoetintbb;
			player5.skintintrb = skintintrb;
			player5.skintintgb = skintintgb;
			player5.skintintbb = skintintbb;
			player5.sheathtintrb = sheathtintrb;
			player5.sheathtintgb = sheathtintgb;
			player5.sheathtintbb = sheathtintbb;
			player5.capeon_outfit1 = capeon_outfit1;
			player5.maskoff_outfit1 = maskoff_outfit1;
			player5.extrabelt_outfit1 = extrabelt_outfit1;
			player5.barechest_outfit1 = barechest_outfit1;
			player5.hair_outfit1 = hair_outfit1;
			player5.earring_outfit1 = earring_outfit1;
			player5.skinz_outfit1 = skinz_outfit1;
			player5.freckles_outfit1 = freckles_outfit1;
			player5.frecklesalpha_outfit1 = frecklesalpha_outfit1;
			player5.nosez_outfit1 = nosez_outfit1;
			player5.eyepatch_outfit1 = eyepatch_outfit1;
			player5.eyesboth_outfit1 = eyesboth_outfit1;
			player5.eyesparkle1_outfit1 = eyesparkle1_outfit1;
			player5.eyesparkle2_outfit1 = eyesparkle2_outfit1;
			player5.eyetype1_outfit1 = eyetype1_outfit1;
			player5.eyetype2_outfit1 = eyetype2_outfit1;
			player5.eyescale1_outfit1 = eyescale1_outfit1;
			player5.eyescale2_outfit1 = eyescale2_outfit1;
			player5.eyewhite1_outfit1 = eyewhite1_outfit1;
			player5.eyewhite2_outfit1 = eyewhite2_outfit1;
			player5.eyebrows_outfit1 = eyebrows_outfit1;
			player5.eyesquint_outfit1 = eyesquint_outfit1;
			player5.maskz_outfit1 = maskz_outfit1;
			player5.tattoo_outfit1 = tattoo_outfit1;
			player5.scar_outfit1 = scar_outfit1;
			player5.beard_outfit1 = beard_outfit1;
			player5.capecolor_outfit1 = capecolor_outfit1;
			player5.cape_addon_outfit1 = cape_addon_outfit1;
			player5.necklace_outfit1 = necklace_outfit1;
			player5.jacket_outfit1 = jacket_outfit1;
			player5.pouches_outfit1 = pouches_outfit1;
			player5.belt_outfit1 = belt_outfit1;
			player5.gauntlet_outfit1 = gauntlet_outfit1;
			player5.arms_outfit1 = arms_outfit1;
			player5.glove1_outfit1 = glove1_outfit1;
			player5.glove2_outfit1 = glove2_outfit1;
			player5.pants_outfit1 = pants_outfit1;
			player5.shoes_outfit1 = shoes_outfit1;
			player5.tattooalpha_outfit1 = tattooalpha_outfit1;
			player5.scaralpha_outfit1 = scaralpha_outfit1;
			player5.hairtintrb_outfit1 = hairtintrb_outfit1;
			player5.hairtintgb_outfit1 = hairtintgb_outfit1;
			player5.hairtintbb_outfit1 = hairtintbb_outfit1;
			player5.eyepatchtintrb_outfit1 = eyepatchtintrb_outfit1;
			player5.eyepatchtintbb_outfit1 = eyepatchtintbb_outfit1;
			player5.eyepatchtintgb_outfit1 = eyepatchtintgb_outfit1;
			player5.eye1tintrb_outfit1 = eye1tintrb_outfit1;
			player5.eye1tintbb_outfit1 = eye1tintbb_outfit1;
			player5.eye1tintgb_outfit1 = eye1tintgb_outfit1;
			player5.eye2tintrb_outfit1 = eye2tintrb_outfit1;
			player5.eye2tintbb_outfit1 = eye2tintbb_outfit1;
			player5.eye2tintgb_outfit1 = eye2tintgb_outfit1;
			player5.masktintrb_outfit1 = masktintrb_outfit1;
			player5.masktintgb_outfit1 = masktintgb_outfit1;
			player5.masktintbb_outfit1 = masktintbb_outfit1;
			player5.tattootintrb_outfit1 = tattootintrb_outfit1;
			player5.tattootintgb_outfit1 = tattootintgb_outfit1;
			player5.tattootintbb_outfit1 = tattootintbb_outfit1;
			player5.capetintrb_outfit1 = capetintrb_outfit1;
			player5.capetintgb_outfit1 = capetintgb_outfit1;
			player5.capetintbb_outfit1 = capetintbb_outfit1;
			player5.necklacetintrb_outfit1 = necklacetintrb_outfit1;
			player5.necklacetintgb_outfit1 = necklacetintgb_outfit1;
			player5.necklacetintbb_outfit1 = necklacetintbb_outfit1;
			player5.pouchtintrb_outfit1 = pouchtintrb_outfit1;
			player5.pouchtintgb_outfit1 = pouchtintgb_outfit1;
			player5.pouchtintbb_outfit1 = pouchtintbb_outfit1;
			player5.belttintrb_outfit1 = belttintrb_outfit1;
			player5.belttintgb_outfit1 = belttintgb_outfit1;
			player5.belttintbb_outfit1 = belttintbb_outfit1;
			player5.gauntlettintrb_outfit1 = gauntlettintrb_outfit1;
			player5.gauntlettintgb_outfit1 = gauntlettintgb_outfit1;
			player5.gauntlettintbb_outfit1 = gauntlettintbb_outfit1;
			player5.armtintrb_outfit1 = armtintrb_outfit1;
			player5.armtintgb_outfit1 = armtintgb_outfit1;
			player5.armtintbb_outfit1 = armtintbb_outfit1;
			player5.jackettintrb_outfit1 = jackettintrb_outfit1;
			player5.jackettintgb_outfit1 = jackettintgb_outfit1;
			player5.jackettintbb_outfit1 = jackettintbb_outfit1;
			player5.glove1tintrb_outfit1 = glove1tintrb_outfit1;
			player5.glove1tintgb_outfit1 = glove1tintgb_outfit1;
			player5.glove1tintbb_outfit1 = glove1tintbb_outfit1;
			player5.glove2tintrb_outfit1 = glove2tintrb_outfit1;
			player5.glove2tintgb_outfit1 = glove2tintgb_outfit1;
			player5.glove2tintbb_outfit1 = glove2tintbb_outfit1;
			player5.panttintrb_outfit1 = panttintrb_outfit1;
			player5.panttintgb_outfit1 = panttintgb_outfit1;
			player5.panttintbb_outfit1 = panttintbb_outfit1;
			player5.shoetintrb_outfit1 = shoetintrb_outfit1;
			player5.shoetintgb_outfit1 = shoetintgb_outfit1;
			player5.shoetintbb_outfit1 = shoetintbb_outfit1;
			player5.skintintrb_outfit1 = skintintrb_outfit1;
			player5.skintintgb_outfit1 = skintintgb_outfit1;
			player5.skintintbb_outfit1 = skintintbb_outfit1;
			player5.sheathtintrb_outfit1 = sheathtintrb_outfit1;
			player5.sheathtintgb_outfit1 = sheathtintgb_outfit1;
			player5.sheathtintbb_outfit1 = sheathtintbb_outfit1;
			player5.capeon_outfit2 = capeon_outfit2;
			player5.maskoff_outfit2 = maskoff_outfit2;
			player5.extrabelt_outfit2 = extrabelt_outfit2;
			player5.barechest_outfit2 = barechest_outfit2;
			player5.hair_outfit2 = hair_outfit2;
			player5.earring_outfit2 = earring_outfit2;
			player5.skinz_outfit2 = skinz_outfit2;
			player5.freckles_outfit2 = freckles_outfit2;
			player5.frecklesalpha_outfit2 = frecklesalpha_outfit2;
			player5.nosez_outfit2 = nosez_outfit2;
			player5.eyepatch_outfit2 = eyepatch_outfit2;
			player5.eyesboth_outfit2 = eyesboth_outfit2;
			player5.eyesparkle1_outfit2 = eyesparkle1_outfit2;
			player5.eyesparkle2_outfit2 = eyesparkle2_outfit2;
			player5.eyetype1_outfit2 = eyetype1_outfit2;
			player5.eyetype2_outfit2 = eyetype2_outfit2;
			player5.eyescale1_outfit2 = eyescale1_outfit2;
			player5.eyescale2_outfit2 = eyescale2_outfit2;
			player5.eyewhite1_outfit2 = eyewhite1_outfit2;
			player5.eyewhite2_outfit2 = eyewhite2_outfit2;
			player5.eyebrows_outfit2 = eyebrows_outfit2;
			player5.eyesquint_outfit2 = eyesquint_outfit2;
			player5.maskz_outfit2 = maskz_outfit2;
			player5.tattoo_outfit2 = tattoo_outfit2;
			player5.scar_outfit2 = scar_outfit2;
			player5.beard_outfit2 = beard_outfit2;
			player5.capecolor_outfit2 = capecolor_outfit2;
			player5.cape_addon_outfit2 = cape_addon_outfit2;
			player5.necklace_outfit2 = necklace_outfit2;
			player5.jacket_outfit2 = jacket_outfit2;
			player5.pouches_outfit2 = pouches_outfit2;
			player5.belt_outfit2 = belt_outfit2;
			player5.gauntlet_outfit2 = gauntlet_outfit2;
			player5.arms_outfit2 = arms_outfit2;
			player5.glove1_outfit2 = glove1_outfit2;
			player5.glove2_outfit2 = glove2_outfit2;
			player5.pants_outfit2 = pants_outfit2;
			player5.shoes_outfit2 = shoes_outfit2;
			player5.tattooalpha_outfit2 = tattooalpha_outfit2;
			player5.scaralpha_outfit2 = scaralpha_outfit2;
			player5.hairtintrb_outfit2 = hairtintrb_outfit2;
			player5.hairtintgb_outfit2 = hairtintgb_outfit2;
			player5.hairtintbb_outfit2 = hairtintbb_outfit2;
			player5.eyepatchtintrb_outfit2 = eyepatchtintrb_outfit2;
			player5.eyepatchtintbb_outfit2 = eyepatchtintbb_outfit2;
			player5.eyepatchtintgb_outfit2 = eyepatchtintgb_outfit2;
			player5.eye1tintrb_outfit2 = eye1tintrb_outfit2;
			player5.eye1tintbb_outfit2 = eye1tintbb_outfit2;
			player5.eye1tintgb_outfit2 = eye1tintgb_outfit2;
			player5.eye2tintrb_outfit2 = eye2tintrb_outfit2;
			player5.eye2tintbb_outfit2 = eye2tintbb_outfit2;
			player5.eye1tintgb_outfit2 = eye2tintgb_outfit2;
			player5.masktintrb_outfit2 = masktintrb_outfit2;
			player5.masktintgb_outfit2 = masktintgb_outfit2;
			player5.masktintbb_outfit2 = masktintbb_outfit2;
			player5.tattootintrb_outfit2 = tattootintrb_outfit2;
			player5.tattootintgb_outfit2 = tattootintgb_outfit2;
			player5.tattootintbb_outfit2 = tattootintbb_outfit2;
			player5.capetintrb_outfit2 = capetintrb_outfit2;
			player5.capetintgb_outfit2 = capetintgb_outfit2;
			player5.capetintbb_outfit2 = capetintbb_outfit2;
			player5.necklacetintrb_outfit2 = necklacetintrb_outfit2;
			player5.necklacetintgb_outfit2 = necklacetintgb_outfit2;
			player5.necklacetintbb_outfit2 = necklacetintbb_outfit2;
			player5.pouchtintrb_outfit2 = pouchtintrb_outfit2;
			player5.pouchtintgb_outfit2 = pouchtintgb_outfit2;
			player5.pouchtintbb_outfit2 = pouchtintbb_outfit2;
			player5.belttintrb_outfit2 = belttintrb_outfit2;
			player5.belttintgb_outfit2 = belttintgb_outfit2;
			player5.belttintbb_outfit2 = belttintbb_outfit2;
			player5.gauntlettintrb_outfit2 = gauntlettintrb_outfit2;
			player5.gauntlettintgb_outfit2 = gauntlettintgb_outfit2;
			player5.gauntlettintbb_outfit2 = gauntlettintbb_outfit2;
			player5.armtintrb_outfit2 = armtintrb_outfit2;
			player5.armtintgb_outfit2 = armtintgb_outfit2;
			player5.armtintbb_outfit2 = armtintbb_outfit2;
			player5.jackettintrb_outfit2 = jackettintrb_outfit2;
			player5.jackettintgb_outfit2 = jackettintgb_outfit2;
			player5.jackettintbb_outfit2 = jackettintbb_outfit2;
			player5.glove1tintrb_outfit2 = glove1tintrb_outfit2;
			player5.glove1tintgb_outfit2 = glove1tintgb_outfit2;
			player5.glove1tintbb_outfit2 = glove1tintbb_outfit2;
			player5.glove2tintrb_outfit2 = glove2tintrb_outfit2;
			player5.glove2tintgb_outfit2 = glove2tintgb_outfit2;
			player5.glove2tintbb_outfit2 = glove2tintbb_outfit2;
			player5.panttintrb_outfit2 = panttintrb_outfit2;
			player5.panttintgb_outfit2 = panttintgb_outfit2;
			player5.panttintbb_outfit2 = panttintbb_outfit2;
			player5.shoetintrb_outfit2 = shoetintrb_outfit2;
			player5.shoetintgb_outfit2 = shoetintgb_outfit2;
			player5.shoetintbb_outfit2 = shoetintbb_outfit2;
			player5.skintintrb_outfit2 = skintintrb_outfit2;
			player5.skintintgb_outfit2 = skintintgb_outfit2;
			player5.skintintbb_outfit2 = skintintbb_outfit2;
			player5.sheathtintrb_outfit2 = sheathtintrb_outfit2;
			player5.sheathtintgb_outfit2 = sheathtintgb_outfit2;
			player5.sheathtintbb_outfit2 = sheathtintbb_outfit2;
			player5.capeon_outfit3 = capeon_outfit3;
			player5.maskoff_outfit3 = maskoff_outfit3;
			player5.extrabelt_outfit3 = extrabelt_outfit3;
			player5.barechest_outfit3 = barechest_outfit3;
			player5.hair_outfit3 = hair_outfit3;
			player5.earring_outfit3 = earring_outfit3;
			player5.skinz_outfit3 = skinz_outfit3;
			player5.freckles_outfit3 = freckles_outfit3;
			player5.frecklesalpha_outfit3 = frecklesalpha_outfit3;
			player5.nosez_outfit3 = nosez_outfit3;
			player5.eyepatch_outfit3 = eyepatch_outfit3;
			player5.eyesboth_outfit3 = eyesboth_outfit3;
			player5.eyesparkle1_outfit3 = eyesparkle1_outfit3;
			player5.eyesparkle2_outfit3 = eyesparkle2_outfit3;
			player5.eyetype1_outfit3 = eyetype1_outfit3;
			player5.eyetype2_outfit3 = eyetype2_outfit3;
			player5.eyescale1_outfit3 = eyescale1_outfit3;
			player5.eyescale2_outfit3 = eyescale2_outfit3;
			player5.eyewhite1_outfit3 = eyewhite1_outfit3;
			player5.eyewhite2_outfit3 = eyewhite2_outfit3;
			player5.eyebrows_outfit3 = eyebrows_outfit3;
			player5.eyesquint_outfit3 = eyesquint_outfit3;
			player5.maskz_outfit3 = maskz_outfit3;
			player5.tattoo_outfit3 = tattoo_outfit3;
			player5.scar_outfit3 = scar_outfit3;
			player5.beard_outfit3 = beard_outfit3;
			player5.capecolor_outfit3 = capecolor_outfit3;
			player5.cape_addon_outfit3 = cape_addon_outfit3;
			player5.necklace_outfit3 = necklace_outfit3;
			player5.jacket_outfit3 = jacket_outfit3;
			player5.pouches_outfit3 = pouches_outfit3;
			player5.belt_outfit3 = belt_outfit3;
			player5.gauntlet_outfit3 = gauntlet_outfit3;
			player5.arms_outfit3 = arms_outfit3;
			player5.glove1_outfit3 = glove1_outfit3;
			player5.glove2_outfit3 = glove2_outfit3;
			player5.pants_outfit3 = pants_outfit3;
			player5.shoes_outfit3 = shoes_outfit3;
			player5.tattooalpha_outfit3 = tattooalpha_outfit3;
			player5.scaralpha_outfit3 = scaralpha_outfit3;
			player5.hairtintrb_outfit3 = hairtintrb_outfit3;
			player5.hairtintgb_outfit3 = hairtintgb_outfit3;
			player5.hairtintbb_outfit3 = hairtintbb_outfit3;
			player5.eyepatchtintrb_outfit3 = eyepatchtintrb_outfit3;
			player5.eyepatchtintbb_outfit3 = eyepatchtintbb_outfit3;
			player5.eyepatchtintgb_outfit3 = eyepatchtintgb_outfit3;
			player5.eye1tintrb_outfit3 = eye1tintrb_outfit3;
			player5.eye1tintbb_outfit3 = eye1tintbb_outfit3;
			player5.eye1tintgb_outfit3 = eye1tintgb_outfit3;
			player5.eye2tintrb_outfit3 = eye2tintrb_outfit3;
			player5.eye2tintbb_outfit3 = eye2tintbb_outfit3;
			player5.eye2tintgb_outfit3 = eye2tintgb_outfit3;
			player5.masktintrb_outfit3 = masktintrb_outfit3;
			player5.masktintgb_outfit3 = masktintgb_outfit3;
			player5.masktintbb_outfit3 = masktintbb_outfit3;
			player5.tattootintrb_outfit3 = tattootintrb_outfit3;
			player5.tattootintgb_outfit3 = tattootintgb_outfit3;
			player5.tattootintbb_outfit3 = tattootintbb_outfit3;
			player5.capetintrb_outfit3 = capetintrb_outfit3;
			player5.capetintgb_outfit3 = capetintgb_outfit3;
			player5.capetintbb_outfit3 = capetintbb_outfit3;
			player5.necklacetintrb_outfit3 = necklacetintrb_outfit3;
			player5.necklacetintgb_outfit3 = necklacetintgb_outfit3;
			player5.necklacetintbb_outfit3 = necklacetintbb_outfit3;
			player5.pouchtintrb_outfit3 = pouchtintrb_outfit3;
			player5.pouchtintgb_outfit3 = pouchtintgb_outfit3;
			player5.pouchtintbb_outfit3 = pouchtintbb_outfit3;
			player5.belttintrb_outfit3 = belttintrb_outfit3;
			player5.belttintgb_outfit3 = belttintgb_outfit3;
			player5.belttintbb_outfit3 = belttintbb_outfit3;
			player5.gauntlettintrb_outfit3 = gauntlettintrb_outfit3;
			player5.gauntlettintgb_outfit3 = gauntlettintgb_outfit3;
			player5.gauntlettintbb_outfit3 = gauntlettintbb_outfit3;
			player5.armtintrb_outfit3 = armtintrb_outfit3;
			player5.armtintgb_outfit3 = armtintgb_outfit3;
			player5.armtintbb_outfit3 = armtintbb_outfit3;
			player5.jackettintrb_outfit3 = jackettintrb_outfit3;
			player5.jackettintgb_outfit3 = jackettintgb_outfit3;
			player5.jackettintbb_outfit3 = jackettintbb_outfit3;
			player5.glove1tintrb_outfit3 = glove1tintrb_outfit3;
			player5.glove1tintgb_outfit3 = glove1tintgb_outfit3;
			player5.glove1tintbb_outfit3 = glove1tintbb_outfit3;
			player5.glove2tintrb_outfit3 = glove2tintrb_outfit3;
			player5.glove2tintgb_outfit3 = glove2tintgb_outfit3;
			player5.glove2tintbb_outfit3 = glove2tintbb_outfit3;
			player5.panttintrb_outfit3 = panttintrb_outfit3;
			player5.panttintgb_outfit3 = panttintgb_outfit3;
			player5.panttintbb_outfit3 = panttintbb_outfit3;
			player5.shoetintrb_outfit3 = shoetintrb_outfit3;
			player5.shoetintgb_outfit3 = shoetintgb_outfit3;
			player5.shoetintbb_outfit3 = shoetintbb_outfit3;
			player5.skintintrb_outfit3 = skintintrb_outfit3;
			player5.skintintgb_outfit3 = skintintgb_outfit3;
			player5.skintintbb_outfit3 = skintintbb_outfit3;
			player5.sheathtintrb_outfit3 = sheathtintrb_outfit3;
			player5.sheathtintgb_outfit3 = sheathtintgb_outfit3;
			player5.sheathtintbb_outfit3 = sheathtintbb_outfit3;
			player5.slot = slot;
			player5SO = SharedObject.getLocal('playerInfo5');
			player5SO.data.playerDat = player5;
			player5SO.flush();
		};
		savePlayerInfo6 = function () {
			player6 = new Object();
			player6.corename = corename;
			player6.coreX = coreX;
			player6.calebX = calebX;
			player6.playerX = playerX;
			player6.playerY = playerY;
			player6.dateday = dateday;
			player6.datemonth = datemonth;
			player6.dateyear = dateyear;
			player6.stand = stand;
			player6.story = story;
			player6.tutz = tutz;
			player6.gold = gold;
			player6.autoscreensave = autoscreensave;
			player6.firstsave = firstsave;
			player6.gotfirststats = gotfirststats;
			player6.godmode = godmode;
			player6.hascheated = hascheated;
			player6.character = character;
			player6.numofchars = numofchars;
			player6.currentweapon = currentweapon;
			player6.runningz = runningz;
			player6.areaname = areaname;
			player6.menucolor = menucolor;
			player6.corenumofmagics = corenumofmagics;
			player6.corenumoflimits = corenumoflimits;
			player6.calebnumofmagics = calebnumofmagics;
			player6.calebnumoflimits = calebnumoflimits;
			player6.fishing_count = fishing_count;
			player6.fishinghighscore = fishinghighscore;
			player6.numofbattles = numofbattles;
			player6.numofswords = numofswords;
			player6.coremagic1 = coremagic1;
			player6.calebmagic1 = calebmagic1;
			player6.farsight = farsight;
			player6.difficulty = difficulty;
			player6.corehealth = corehealth;
			player6.coremaxhealth = coremaxhealth;
			player6.coremana = coremana;
			player6.coremaxmana = coremaxmana;
			player6.calebhealth = calebhealth;
			player6.calebmaxhealth = calebmaxhealth;
			player6.calebmana = calebmana;
			player6.calebmaxmana = calebmaxmana;
			player6.corelimit = corelimit;
			player6.coremaxlimit = coremaxlimit;
			player6.caleblimit = caleblimit;
			player6.calebmaxlimit = calebmaxlimit;
			player6.directions = directions;
			player6.weapon1 = weapon1;
			player6.weapon2 = weapon2;
			player6.weapon3 = weapon3;
			player6.weapon4 = weapon4;
			player6.weapon5 = weapon5;
			player6.weapon6 = weapon6;
			player6.coremagic1 = coremagic1;
			player6.coremagic2 = coremagic2;
			player6.coremagic3 = coremagic3;
			player6.coremagic4 = coremagic4;
			player6.coremagic5 = coremagic5;
			player6.coremagic6 = coremagic6;
			player6.calebmagic1 = calebmagic1;
			player6.calebmagic2 = calebmagic2;
			player6.calebmagic3 = calebmagic3;
			player6.calebmagic4 = calebmagic4;
			player6.calebmagic5 = calebmagic5;
			player6.calebmagic6 = calebmagic6;
			player6.corelimit1 = corelimit1;
			player6.corelimit2 = corelimit2;
			player6.corelimit3 = corelimit3;
			player6.corelimit4 = corelimit4;
			player6.caleblimit1 = caleblimit1;
			player6.caleblimit2 = caleblimit2;
			player6.caleblimit3 = caleblimit3;
			player6.caleblimit4 = caleblimit4;
			player6.gotsword2 = gotsword2;
			player6.gotsword3 = gotsword3;
			player6.gotsword4 = gotsword4;
			player6.gotsword5 = gotsword5;
			player6.gotsword6 = gotsword6;
			player6.sword1f = sword1f;
			player6.sword2f = sword2f;
			player6.sword3f = sword3f;
			player6.sword4f = sword4f;
			player6.sword5f = sword5f;
			player6.sword6f = sword6f;
			player6.corecounterchance = corecounterchance;
			player6.calebcounterchance = calebcounterchance;
			player6.corepoison = corepoison;
			player6.calebpoison = calebpoison;
			player6.coremagicdamage = coremagicdamage;
			player6.corestrength = corestrength;
			player6.coredefense = coredefense;
			player6.coremagicdefense = coremagicdefense;
			player6.coreluck = coreluck;
			player6.coreagility = coreagility;
			player6.coremagicdamageX = coremagicdamageX;
			player6.coremagicdefenseX = coremagicdefenseX;
			player6.corestrengthX = corestrengthX;
			player6.coredefenseX = coredefenseX;
			player6.coreluckX = coreluckX;
			player6.coreagilityX = coreagilityX;
			player6.corefireElement = corefireElement;
			player6.coredarkElement = coredarkElement;
			player6.coreiceElement = coreiceElement;
			player6.corethunderElement = corethunderElement;
			player6.calebmagicdamage = calebmagicdamage;
			player6.calebstrength = calebstrength;
			player6.calebdefense = calebdefense;
			player6.calebmagicdefense = calebmagicdefense;
			player6.calebluck = calebluck;
			player6.calebagility = calebagility;
			player6.calebmagicdamageX = calebmagicdamageX;
			player6.calebmagicdefenseX = calebmagicdefenseX;
			player6.calebstrengthX = calebstrengthX;
			player6.calebdefenseX = calebdefenseX;
			player6.calebluckX = calebluckX;
			player6.calebagilityX = calebagilityX;
			player6.calebfireElement = calebfireElement;
			player6.calebdarkElement = calebdarkElement;
			player6.calebiceElement = calebiceElement;
			player6.calebthunderElement = calebthunderElement;
			player6.sword = sword;
			player6.swordname = swordname;
			player6.corereghealth = corereghealth;
			player6.coreregmana = coreregmana;
			player6.coreregstamina = coreregstamina;
			player6.calebreghealth = calebreghealth;
			player6.calebregmana = calebregmana;
			player6.calebregstamina = calebregstamina;
			player6.normalspeed = normalspeed;
			player6.orgspeed = orgspeed;
			player6.potion = potion;
			player6.ether = ether;
			player6.elixir = elixir;
			player6.remedy = remedy;
			player6.limit = limit;
			player6.bottle = bottle;
			player6.areabattle = areabattle;
			player6.areascreen = areascreen;
			player6.footstepsound = footstepsound;
			player6.walkthrough = walkthrough;
			player6.champion = champion;
			player6.playerZ = playerZ;
			player6.floorz = floorz;
			player6.forcenotrun = forcenotrun;
			player6.restorespeed = restorespeed;
			player6.savedateday = savedateday;
			player6.savedateyear = savedateyear;
			player6.savedatemonth = savedatemonth;
			player6.saveseconds = saveseconds;
			player6.saveminutes = saveminutes;
			player6.savehours = savehours;
			player6.numofluckyhits = numofluckyhits;
			player6.numofmedals = numofmedals;
			player6.menuquality = menuquality;
			player6.medalcharm = medalcharm;
			player6.medalcharms = medalcharms;
			player6.medalmeeting = medalmeeting;
			player6.medalrookie = medalrookie;
			player6.medalveteran = medalveteran;
			player6.medallegend = medallegend;
			player6.medalhelper = medalhelper;
			player6.medalswordfish = medalswordfish;
			player6.medalawakened = medalawakened;
			player6.medalpoet = medalpoet;
			player6.medalmeeting1 = medalmeeting1;
			player6.medalmeeting2 = medalmeeting2;
			player6.medaldiglet = medaldiglet;
			player6.medalherbivore = medalherbivore;
			player6.medalflawless = medalflawless;
			player6.medalflawlessX = medalflawlessX;
			player6.medaljuggernaught = medaljuggernaught;
			player6.medalaquaman = medalaquaman;
			player6.medalperfection = medalperfection;
			player6.changediff = changediff;
			player6.sfxmute = sfxmute;
			player6.night = night;
			player6.camera = camera;
			player6.hudvisible = hudvisible;
			player6.menuvisible = menuvisible;
			player6.gamequality = gamequality;
			player6.battlequality = battlequality;
			player6.counter = counter;
			player6.counter2 = counter2;
			player6.counter3 = counter3;
			player6.counter2X = counter2X;
			player6.counter3X = counter3X;
			player6.counterminute = counterminute;
			player6.counterhour = counterhour;
			player6.housegrade = housegrade;
			player6.housegrade2 = housegrade2;
			player6.limitless = limitless;
			player6.housecarpet = housecarpet;
			player6.housechair = housechair;
			player6.housewardrobe = housewardrobe;
			player6.housecandelebra = housecandelebra;
			player6.housepainting = housepainting;
			player6.enterhouse1 = enterhouse1;
			player6.enterhouse2 = enterhouse2;
			player6.questbag = questbag;
			player6.questbbag = questbbag;
			player6.questbeer = questbeer;
			player6.questfindbook = questfindbook;
			player6.questreturnbook = questreturnbook;
			player6.questwolf = questwolf;
			player6.questlove = questlove;
			player6.questink = questink;
			player6.questbrock = questbrock;
			player6.questnewintown = questnewintown;
			player6.questfindsword = questfindsword;
			player6.questfisher = questfisher;
			player6.questboar = questboar;
			player6.questfriend = questfriend;
			player6.questspitter = questspitter;
			player6.questgornak = questgornak;
			player6.questpotion = questpotion;
			player6.questhorse = questhorse;
			player6.questgamble = questgamble;
			player6.questthanator = questthanator;
			player6.questgnome = questgnome;
			player6.questsick = questsick;
			player6.questdonovan = questdonovan;
			player6.questshow = questshow;
			player6.questdrugs = questdrugs;
			player6.questdrunk = questdrunk;
			player6.questitemhunter = questitemhunter;
			player6.questtreasure = questtreasure;
			player6.questkidnap = questkidnap;
			player6.questdeadman = questdeadman;
			player6.questbagX = questbagX;
			player6.questbbagX = questbbagX;
			player6.questbeerX = questbeerX;
			player6.questfindbookX = questfindbookX;
			player6.questreturnbookX = questreturnbookX;
			player6.questwolfX = questwolfX;
			player6.questloveX = questloveX;
			player6.questinkX = questinkX;
			player6.questbrockX = questbrockX;
			player6.questnewintownX = questnewintownX;
			player6.questfindswordX = questfindswordX;
			player6.questfisherX = questfisherX;
			player6.questboarX = questboarX;
			player6.questfriendX = questfriendX;
			player6.questspitterX = questspitterX;
			player6.questgornakX = questgornakX;
			player6.questpotionX = questpotionX;
			player6.questhorseX = questhorseX;
			player6.questgambleX = questgambleX;
			player6.questthanatorX = questthanatorX;
			player6.questgnomeX = questgnomeX;
			player6.questsickX = questsickX;
			player6.questdonovanX = questdonovanX;
			player6.questshowX = questshowX;
			player6.questdrugsX = questdrugsX;
			player6.questdrunkX = questdrunkX;
			player6.questitemhunterX = questitemhunterX;
			player6.questtreasureX = questtreasureX;
			player6.questkidnapX = questkidnapX;
			player6.questdeadmanX = questdeadmanX;
			player6.numquests = numquests;
			player6.sessions = sessions;
			player6.firstcoremagic1 = firstcoremagic1;
			player6.firstcoremagic2 = firstcoremagic2;
			player6.firstcoremagic3 = firstcoremagic3;
			player6.firstcoremagic4 = firstcoremagic4;
			player6.firstcoremagic5 = firstcoremagic5;
			player6.firstcoremagic6 = firstcoremagic6;
			player6.firstcalebmagic1 = firstcalebmagic1;
			player6.firstcalebmagic2 = firstcalebmagic2;
			player6.firstcalebmagic3 = firstcalebmagic3;
			player6.firstcalebmagic4 = firstcalebmagic4;
			player6.firstcalebmagic5 = firstcalebmagic5;
			player6.firstcalebmagic6 = firstcalebmagic6;
			player6.numpoet = numpoet;
			player6.founddouglas = founddouglas;
			player6.namecolor = namecolor;
			player6.rewardcolor = rewardcolor;
			player6.mainquest = mainquest;
			player6.imrahischat = imrahischat;
			player6.luvannonchat = luvannonchat;
			player6.ghosttalk = ghosttalk;
			player6.activequests = activequests;
			player6.completedquests = completedquests;
			player6.qpage = qpage;
			player6.musicmute = musicmute;
			player6.volumez = volumez;
			player6.areabg = areabg;
			player6.coregotlimit = coregotlimit;
			player6.calebgotlimit = calebgotlimit;
			player6.hotinfo = hotinfo;
			player6.cinemacam = cinemacam;
			player6.camXpoint = camXpoint;
			player6.camYpoint = camYpoint;
			player6.currentstage = currentstage;
			player6.currentmusic = currentmusic;
			player6.gotshovel = gotshovel;
			player6.numofdigs = numofdigs;
			player6.gotfirstpotion = gotfirstpotion;
			player6.gotfirstelixir = gotfirstelixir;
			player6.gotfirstether = gotfirstether;
			player6.gotfirstremedy = gotfirstremedy;
			player6.gotfirstlimit = gotfirstlimit;
			player6.gotfirstbottle = gotfirstbottle;
			player6.firstrig = firstrig;
			player6.firstgornak = firstgornak;
			player6.firstgornak2 = firstgornak2;
			player6.firstcamera = firstcamera;
			player6.medalpoet1 = medalpoet1;
			player6.medalpoet2 = medalpoet2;
			player6.medalpoet3 = medalpoet3;
			player6.medalmeeting1 = medalmeeting1;
			player6.medalmeeting2 = medalmeeting2;
			player6.sonyacoins = sonyacoins;
			player6.janucoins = janucoins;
			player6.firstthanator = firstthanator;
			player6.firststalker = firststalker;
			player6.firstcarrion = firstcarrion;
			player6.firstghoul = firstghoul;
			player6.firstthanatorX = firstthanatorX;
			player6.firststalkerX = firststalkerX;
			player6.firstcarrionX = firstcarrionX;
			player6.firstgornakX = firstgornakX;
			player6.firstghoulX = firstghoulX;
			player6.gotfirstc = gotfirstc;
			player6.fame = fame;
			player6.shroom1 = shroom1;
			player6.shroom2 = shroom2;
			player6.shroom3 = shroom3;
			player6.shroom4 = shroom4;
			player6.butterfly1 = butterfly1;
			player6.butterfly2 = butterfly2;
			player6.collectibles = collectibles;
			player6.shroomitem1 = shroomitem1;
			player6.shroomitem2 = shroomitem2;
			player6.shroomitem3 = shroomitem3;
			player6.shroomitem4 = shroomitem4;
			player6.shroomitem5 = shroomitem5;
			player6.shroomitem6 = shroomitem6;
			player6.shroomitem7 = shroomitem7;
			player6.shroomitem8 = shroomitem8;
			player6.shroomitem9 = shroomitem9;
			player6.shroomitem10 = shroomitem10;
			player6.shroomitem11 = shroomitem11;
			player6.shroomitem12 = shroomitem12;
			player6.shroomitem13 = shroomitem13;
			player6.shroomitem14 = shroomitem14;
			player6.shroomitem15 = shroomitem15;
			player6.shroomitem16 = shroomitem16;
			player6.shroomitem17 = shroomitem17;
			player6.shroomitem18 = shroomitem18;
			player6.shroomitem19 = shroomitem19;
			player6.shroomitem20 = shroomitem20;
			player6.shroomitem21 = shroomitem21;
			player6.shroomitem22 = shroomitem22;
			player6.shroomitem23 = shroomitem23;
			player6.shroomitem24 = shroomitem24;
			player6.shroomitem25 = shroomitem25;
			player6.shroomitem26 = shroomitem26;
			player6.shroomitem27 = shroomitem27;
			player6.shroomitem28 = shroomitem28;
			player6.shroomitem29 = shroomitem29;
			player6.shroomitem30 = shroomitem30;
			player6.shroomitem31 = shroomitem31;
			player6.shroomitem32 = shroomitem32;
			player6.shroomitem33 = shroomitem33;
			player6.shroomitem34 = shroomitem34;
			player6.shroomitem35 = shroomitem35;
			player6.shroomitem36 = shroomitem36;
			player6.shroomitem37 = shroomitem37;
			player6.shroomitem38 = shroomitem38;
			player6.shroomitem39 = shroomitem39;
			player6.shroomitem40 = shroomitem40;
			player6.shroomitem41 = shroomitem41;
			player6.shroomitem42 = shroomitem42;
			player6.shroomitem43 = shroomitem43;
			player6.shroomitem44 = shroomitem44;
			player6.shroomitem45 = shroomitem45;
			player6.shroomitem46 = shroomitem46;
			player6.shroomitem47 = shroomitem47;
			player6.shroomitem48 = shroomitem48;
			player6.shroomitem49 = shroomitem49;
			player6.shroomitem50 = shroomitem50;
			player6.shroomitem51 = shroomitem51;
			player6.shroomitem52 = shroomitem52;
			player6.shroomitem53 = shroomitem53;
			player6.shroomitem54 = shroomitem54;
			player6.shroomitem55 = shroomitem55;
			player6.shroomitem56 = shroomitem56;
			player6.shroomitem57 = shroomitem57;
			player6.shroomitem58 = shroomitem58;
			player6.shroomitem59 = shroomitem59;
			player6.shroomitem60 = shroomitem60;
			player6.shroomitem61 = shroomitem61;
			player6.shroomitem62 = shroomitem62;
			player6.shroomitem63 = shroomitem63;
			player6.shroomitem64 = shroomitem64;
			player6.shroomitem65 = shroomitem65;
			player6.shroomitem66 = shroomitem66;
			player6.shroomitem67 = shroomitem67;
			player6.shroomitem68 = shroomitem68;
			player6.shroomitem69 = shroomitem69;
			player6.shroomitem70 = shroomitem70;
			player6.shroomitem71 = shroomitem71;
			player6.shroomitem72 = shroomitem72;
			player6.shroomitem73 = shroomitem73;
			player6.shroomitem74 = shroomitem74;
			player6.shroomitem75 = shroomitem75;
			player6.shroomitem76 = shroomitem76;
			player6.shroomitem77 = shroomitem77;
			player6.shroomitem78 = shroomitem78;
			player6.shroomitem79 = shroomitem79;
			player6.shroomitem80 = shroomitem80;
			player6.butterflyitem1 = butterflyitem1;
			player6.butterflyitem2 = butterflyitem2;
			player6.butterflyitem3 = butterflyitem3;
			player6.butterflyitem4 = butterflyitem4;
			player6.butterflyitem5 = butterflyitem5;
			player6.butterflyitem6 = butterflyitem6;
			player6.butterflyitem7 = butterflyitem7;
			player6.butterflyitem8 = butterflyitem8;
			player6.butterflyitem9 = butterflyitem9;
			player6.butterflyitem10 = butterflyitem10;
			player6.shovel1 = shovel1;
			player6.shovel2 = shovel2;
			player6.shovel3 = shovel3;
			player6.shovel4 = shovel4;
			player6.shovel5 = shovel5;
			player6.shovel6 = shovel6;
			player6.shovel7 = shovel7;
			player6.shovel8 = shovel8;
			player6.shovel9 = shovel9;
			player6.shovel10 = shovel10;
			player6.item1 = item1;
			player6.item2 = item2;
			player6.item3 = item3;
			player6.item4 = item4;
			player6.item5 = item5;
			player6.item6 = item6;
			player6.item7 = item7;
			player6.item8 = item8;
			player6.item9 = item9;
			player6.item10 = item10;
			player6.item11 = item11;
			player6.item12 = item12;
			player6.item13 = item13;
			player6.item14 = item14;
			player6.item15 = item15;
			player6.item16 = item16;
			player6.item17 = item17;
			player6.item18 = item18;
			player6.item19 = item19;
			player6.item20 = item20;
			player6.item21 = item21;
			player6.item22 = item22;
			player6.item23 = item23;
			player6.item24 = item24;
			player6.item25 = item25;
			player6.item26 = item26;
			player6.item27 = item27;
			player6.item28 = item28;
			player6.item29 = item29;
			player6.item30 = item30;
			player6.switchzn1 = switchzn1;
			player6.switchzn2 = switchzn2;
			player6.switchzn3 = switchzn3;
			player6.switchzn4 = switchzn4;
			player6.switchzn5 = switchzn5;
			player6.switchzn6 = switchzn6;
			player6.switchzn7 = switchzn7;
			player6.switchzn8 = switchzn8;
			player6.switchzn9 = switchzn9;
			player6.obj0 = obj0;
			player6.obj1 = obj1;
			player6.obj2 = obj2;
			player6.obj3 = obj3;
			player6.obj4 = obj4;
			player6.obj5 = obj5;
			player6.obj6 = obj6;
			player6.obj7 = obj7;
			player6.obj8 = obj8;
			player6.obj9 = obj9;
			player6.obj10 = obj10;
			player6.obj11 = obj11;
			player6.obj12 = obj12;
			player6.obj13 = obj13;
			player6.obj14 = obj14;
			player6.obj15 = obj15;
			player6.obj16 = obj16;
			player6.obj17 = obj17;
			player6.obj18 = obj18;
			player6.obj19 = obj19;
			player6.obj20 = obj20;
			player6.obj21 = obj21;
			player6.obj22 = obj22;
			player6.obj23 = obj23;
			player6.obj24 = obj24;
			player6.obj25 = obj25;
			player6.obj26 = obj26;
			player6.obj27 = obj27;
			player6.obj28 = obj28;
			player6.obj29 = obj29;
			player6.obj30 = obj30;
			player6.objname0 = objname0;
			player6.objname1 = objname1;
			player6.objname2 = objname2;
			player6.objname3 = objname3;
			player6.objname4 = objname4;
			player6.objname5 = objname5;
			player6.objname6 = objname6;
			player6.objname7 = objname7;
			player6.objname8 = objname8;
			player6.objname9 = objname9;
			player6.objname10 = objname10;
			player6.objname11 = objname11;
			player6.objname12 = objname12;
			player6.objname13 = objname13;
			player6.objname14 = objname14;
			player6.objname15 = objname15;
			player6.objname16 = objname16;
			player6.objname17 = objname17;
			player6.objname18 = objname18;
			player6.objname19 = objname19;
			player6.objname20 = objname20;
			player6.objname21 = objname21;
			player6.objname22 = objname22;
			player6.objname23 = objname23;
			player6.objname24 = objname24;
			player6.objname25 = objname25;
			player6.objname26 = objname26;
			player6.objname27 = objname27;
			player6.objname28 = objname28;
			player6.objname29 = objname29;
			player6.objname30 = objname30;
			player6.darconstory = darconstory;
			player6.guarduniform = guarduniform;
			player6.goteyepatches = goteyepatches;
			player6.gotmaskcape = gotmaskcape;
			player6.gotgrayskin = gotgrayskin;
			player6.gotredskin = gotredskin;
			player6.gotmask1 = gotmask1;
			player6.gotmask2 = gotmask2;
			player6.gotmask3 = gotmask3;
			player6.gotmask4 = gotmask4;
			player6.gotbandana = gotbandana;
			player6.gotfedorahat = gotfedorahat;
			player6.gottophat = gottophat;
			player6.gotthunder = gotthunder;
			player6.gotblackpearl = gotblackpearl;
			player6.gotserpentnose = gotserpentnose;
			player6.gotwarpaint = gotwarpaint;
			player6.goteyebleed = goteyebleed;
			player6.goteyeshadow = goteyeshadow;
			player6.gotbloodshoteyes = gotbloodshoteyes;
			player6.gotundeadeyes = gotundeadeyes;
			player6.gotdemoneyes = gotdemoneyes;
			player6.capeon = capeon;
			player6.maskoff = maskoff;
			player6.extrabelt = extrabelt;
			player6.barechest = barechest;
			player6.outfit = outfit;
			player6.hair = hair;
			player6.earring = earring;
			player6.skinz = skinz;
			player6.freckles = freckles;
			player6.frecklesalpha = frecklesalpha;
			player6.nosez = nosez;
			player6.eyepatch = eyepatch;
			player6.eyesboth = eyesboth;
			player6.eyesparkle1 = eyesparkle1;
			player6.eyesparkle2 = eyesparkle2;
			player6.eyetype1 = eyetype1;
			player6.eyetype2 = eyetype2;
			player6.eyescale1 = eyescale1;
			player6.eyescale2 = eyescale2;
			player6.eyewhite1 = eyewhite1;
			player6.eyewhite2 = eyewhite2;
			player6.eyebrows = eyebrows;
			player6.eyesquint = eyesquint;
			player6.maskz = maskz;
			player6.tattoo = tattoo;
			player6.scar = scar;
			player6.beard = beard;
			player6.capecolor = capecolor;
			player6.cape_addon = cape_addon;
			player6.necklace = necklace;
			player6.jacket = jacket;
			player6.pouches = pouches;
			player6.belt = belt;
			player6.gauntlet = gauntlet;
			player6.arms = arms;
			player6.glove1 = glove1;
			player6.glove2 = glove2;
			player6.pants = pants;
			player6.shoes = shoes;
			player6.tattooalpha = tattooalpha;
			player6.scaralpha = scaralpha;
			player6.hairtintrb = hairtintrb;
			player6.hairtintgb = hairtintgb;
			player6.hairtintbb = hairtintbb;
			player6.eyepatchtintrb = eyepatchtintrb;
			player6.eyepatchtintbb = eyepatchtintbb;
			player6.eyepatchtintgb = eyepatchtintgb;
			player6.eye1tintrb = eye1tintrb;
			player6.eye1tintbb = eye1tintbb;
			player6.eye1tintgb = eye1tintgb;
			player6.eye2tintrb = eye2tintrb;
			player6.eye2tintbb = eye2tintbb;
			player6.eye2tintgb = eye2tintgb;
			player6.masktintrb = masktintrb;
			player6.masktintgb = masktintgb;
			player6.masktintbb = masktintbb;
			player6.tattootintrb = tattootintrb;
			player6.tattootintgb = tattootintgb;
			player6.tattootintbb = tattootintbb;
			player6.capetintrb = capetintrb;
			player6.capetintgb = capetintgb;
			player6.capetintbb = capetintbb;
			player6.necklacetintrb = necklacetintrb;
			player6.necklacetintgb = necklacetintgb;
			player6.necklacetintbb = necklacetintbb;
			player6.pouchtintrb = pouchtintrb;
			player6.pouchtintgb = pouchtintgb;
			player6.pouchtintbb = pouchtintbb;
			player6.belttintrb = belttintrb;
			player6.belttintgb = belttintgb;
			player6.belttintbb = belttintbb;
			player6.gauntlettintrb = gauntlettintrb;
			player6.gauntlettintgb = gauntlettintgb;
			player6.gauntlettintbb = gauntlettintbb;
			player6.armtintrb = armtintrb;
			player6.armtintgb = armtintgb;
			player6.armtintbb = armtintbb;
			player6.jackettintrb = jackettintrb;
			player6.jackettintgb = jackettintgb;
			player6.jackettintbb = jackettintbb;
			player6.glove1tintrb = glove1tintrb;
			player6.glove1tintgb = glove1tintgb;
			player6.glove1tintbb = glove1tintbb;
			player6.glove2tintrb = glove2tintrb;
			player6.glove2tintgb = glove2tintgb;
			player6.glove2tintbb = glove2tintbb;
			player6.panttintrb = panttintrb;
			player6.panttintgb = panttintgb;
			player6.panttintbb = panttintbb;
			player6.shoetintrb = shoetintrb;
			player6.shoetintgb = shoetintgb;
			player6.shoetintbb = shoetintbb;
			player6.skintintrb = skintintrb;
			player6.skintintgb = skintintgb;
			player6.skintintbb = skintintbb;
			player6.sheathtintrb = sheathtintrb;
			player6.sheathtintgb = sheathtintgb;
			player6.sheathtintbb = sheathtintbb;
			player6.capeon_outfit1 = capeon_outfit1;
			player6.maskoff_outfit1 = maskoff_outfit1;
			player6.extrabelt_outfit1 = extrabelt_outfit1;
			player6.barechest_outfit1 = barechest_outfit1;
			player6.hair_outfit1 = hair_outfit1;
			player6.earring_outfit1 = earring_outfit1;
			player6.skinz_outfit1 = skinz_outfit1;
			player6.freckles_outfit1 = freckles_outfit1;
			player6.frecklesalpha_outfit1 = frecklesalpha_outfit1;
			player6.nosez_outfit1 = nosez_outfit1;
			player6.eyepatch_outfit1 = eyepatch_outfit1;
			player6.eyesboth_outfit1 = eyesboth_outfit1;
			player6.eyesparkle1_outfit1 = eyesparkle1_outfit1;
			player6.eyesparkle2_outfit1 = eyesparkle2_outfit1;
			player6.eyetype1_outfit1 = eyetype1_outfit1;
			player6.eyetype2_outfit1 = eyetype2_outfit1;
			player6.eyescale1_outfit1 = eyescale1_outfit1;
			player6.eyescale2_outfit1 = eyescale2_outfit1;
			player6.eyewhite1_outfit1 = eyewhite1_outfit1;
			player6.eyewhite2_outfit1 = eyewhite2_outfit1;
			player6.eyebrows_outfit1 = eyebrows_outfit1;
			player6.eyesquint_outfit1 = eyesquint_outfit1;
			player6.maskz_outfit1 = maskz_outfit1;
			player6.tattoo_outfit1 = tattoo_outfit1;
			player6.scar_outfit1 = scar_outfit1;
			player6.beard_outfit1 = beard_outfit1;
			player6.capecolor_outfit1 = capecolor_outfit1;
			player6.cape_addon_outfit1 = cape_addon_outfit1;
			player6.necklace_outfit1 = necklace_outfit1;
			player6.jacket_outfit1 = jacket_outfit1;
			player6.pouches_outfit1 = pouches_outfit1;
			player6.belt_outfit1 = belt_outfit1;
			player6.gauntlet_outfit1 = gauntlet_outfit1;
			player6.arms_outfit1 = arms_outfit1;
			player6.glove1_outfit1 = glove1_outfit1;
			player6.glove2_outfit1 = glove2_outfit1;
			player6.pants_outfit1 = pants_outfit1;
			player6.shoes_outfit1 = shoes_outfit1;
			player6.tattooalpha_outfit1 = tattooalpha_outfit1;
			player6.scaralpha_outfit1 = scaralpha_outfit1;
			player6.hairtintrb_outfit1 = hairtintrb_outfit1;
			player6.hairtintgb_outfit1 = hairtintgb_outfit1;
			player6.hairtintbb_outfit1 = hairtintbb_outfit1;
			player6.eyepatchtintrb_outfit1 = eyepatchtintrb_outfit1;
			player6.eyepatchtintbb_outfit1 = eyepatchtintbb_outfit1;
			player6.eyepatchtintgb_outfit1 = eyepatchtintgb_outfit1;
			player6.eye1tintrb_outfit1 = eye1tintrb_outfit1;
			player6.eye1tintbb_outfit1 = eye1tintbb_outfit1;
			player6.eye1tintgb_outfit1 = eye1tintgb_outfit1;
			player6.eye2tintrb_outfit1 = eye2tintrb_outfit1;
			player6.eye2tintbb_outfit1 = eye2tintbb_outfit1;
			player6.eye2tintgb_outfit1 = eye2tintgb_outfit1;
			player6.masktintrb_outfit1 = masktintrb_outfit1;
			player6.masktintgb_outfit1 = masktintgb_outfit1;
			player6.masktintbb_outfit1 = masktintbb_outfit1;
			player6.tattootintrb_outfit1 = tattootintrb_outfit1;
			player6.tattootintgb_outfit1 = tattootintgb_outfit1;
			player6.tattootintbb_outfit1 = tattootintbb_outfit1;
			player6.capetintrb_outfit1 = capetintrb_outfit1;
			player6.capetintgb_outfit1 = capetintgb_outfit1;
			player6.capetintbb_outfit1 = capetintbb_outfit1;
			player6.necklacetintrb_outfit1 = necklacetintrb_outfit1;
			player6.necklacetintgb_outfit1 = necklacetintgb_outfit1;
			player6.necklacetintbb_outfit1 = necklacetintbb_outfit1;
			player6.pouchtintrb_outfit1 = pouchtintrb_outfit1;
			player6.pouchtintgb_outfit1 = pouchtintgb_outfit1;
			player6.pouchtintbb_outfit1 = pouchtintbb_outfit1;
			player6.belttintrb_outfit1 = belttintrb_outfit1;
			player6.belttintgb_outfit1 = belttintgb_outfit1;
			player6.belttintbb_outfit1 = belttintbb_outfit1;
			player6.gauntlettintrb_outfit1 = gauntlettintrb_outfit1;
			player6.gauntlettintgb_outfit1 = gauntlettintgb_outfit1;
			player6.gauntlettintbb_outfit1 = gauntlettintbb_outfit1;
			player6.armtintrb_outfit1 = armtintrb_outfit1;
			player6.armtintgb_outfit1 = armtintgb_outfit1;
			player6.armtintbb_outfit1 = armtintbb_outfit1;
			player6.jackettintrb_outfit1 = jackettintrb_outfit1;
			player6.jackettintgb_outfit1 = jackettintgb_outfit1;
			player6.jackettintbb_outfit1 = jackettintbb_outfit1;
			player6.glove1tintrb_outfit1 = glove1tintrb_outfit1;
			player6.glove1tintgb_outfit1 = glove1tintgb_outfit1;
			player6.glove1tintbb_outfit1 = glove1tintbb_outfit1;
			player6.glove2tintrb_outfit1 = glove2tintrb_outfit1;
			player6.glove2tintgb_outfit1 = glove2tintgb_outfit1;
			player6.glove2tintbb_outfit1 = glove2tintbb_outfit1;
			player6.panttintrb_outfit1 = panttintrb_outfit1;
			player6.panttintgb_outfit1 = panttintgb_outfit1;
			player6.panttintbb_outfit1 = panttintbb_outfit1;
			player6.shoetintrb_outfit1 = shoetintrb_outfit1;
			player6.shoetintgb_outfit1 = shoetintgb_outfit1;
			player6.shoetintbb_outfit1 = shoetintbb_outfit1;
			player6.skintintrb_outfit1 = skintintrb_outfit1;
			player6.skintintgb_outfit1 = skintintgb_outfit1;
			player6.skintintbb_outfit1 = skintintbb_outfit1;
			player6.sheathtintrb_outfit1 = sheathtintrb_outfit1;
			player6.sheathtintgb_outfit1 = sheathtintgb_outfit1;
			player6.sheathtintbb_outfit1 = sheathtintbb_outfit1;
			player6.capeon_outfit2 = capeon_outfit2;
			player6.maskoff_outfit2 = maskoff_outfit2;
			player6.extrabelt_outfit2 = extrabelt_outfit2;
			player6.barechest_outfit2 = barechest_outfit2;
			player6.hair_outfit2 = hair_outfit2;
			player6.earring_outfit2 = earring_outfit2;
			player6.skinz_outfit2 = skinz_outfit2;
			player6.freckles_outfit2 = freckles_outfit2;
			player6.frecklesalpha_outfit2 = frecklesalpha_outfit2;
			player6.nosez_outfit2 = nosez_outfit2;
			player6.eyepatch_outfit2 = eyepatch_outfit2;
			player6.eyesboth_outfit2 = eyesboth_outfit2;
			player6.eyesparkle1_outfit2 = eyesparkle1_outfit2;
			player6.eyesparkle2_outfit2 = eyesparkle2_outfit2;
			player6.eyetype1_outfit2 = eyetype1_outfit2;
			player6.eyetype2_outfit2 = eyetype2_outfit2;
			player6.eyescale1_outfit2 = eyescale1_outfit2;
			player6.eyescale2_outfit2 = eyescale2_outfit2;
			player6.eyewhite1_outfit2 = eyewhite1_outfit2;
			player6.eyewhite2_outfit2 = eyewhite2_outfit2;
			player6.eyebrows_outfit2 = eyebrows_outfit2;
			player6.eyesquint_outfit2 = eyesquint_outfit2;
			player6.maskz_outfit2 = maskz_outfit2;
			player6.tattoo_outfit2 = tattoo_outfit2;
			player6.scar_outfit2 = scar_outfit2;
			player6.beard_outfit2 = beard_outfit2;
			player6.capecolor_outfit2 = capecolor_outfit2;
			player6.cape_addon_outfit2 = cape_addon_outfit2;
			player6.necklace_outfit2 = necklace_outfit2;
			player6.jacket_outfit2 = jacket_outfit2;
			player6.pouches_outfit2 = pouches_outfit2;
			player6.belt_outfit2 = belt_outfit2;
			player6.gauntlet_outfit2 = gauntlet_outfit2;
			player6.arms_outfit2 = arms_outfit2;
			player6.glove1_outfit2 = glove1_outfit2;
			player6.glove2_outfit2 = glove2_outfit2;
			player6.pants_outfit2 = pants_outfit2;
			player6.shoes_outfit2 = shoes_outfit2;
			player6.tattooalpha_outfit2 = tattooalpha_outfit2;
			player6.scaralpha_outfit2 = scaralpha_outfit2;
			player6.hairtintrb_outfit2 = hairtintrb_outfit2;
			player6.hairtintgb_outfit2 = hairtintgb_outfit2;
			player6.hairtintbb_outfit2 = hairtintbb_outfit2;
			player6.eyepatchtintrb_outfit2 = eyepatchtintrb_outfit2;
			player6.eyepatchtintbb_outfit2 = eyepatchtintbb_outfit2;
			player6.eyepatchtintgb_outfit2 = eyepatchtintgb_outfit2;
			player6.eye1tintrb_outfit2 = eye1tintrb_outfit2;
			player6.eye1tintbb_outfit2 = eye1tintbb_outfit2;
			player6.eye1tintgb_outfit2 = eye1tintgb_outfit2;
			player6.eye2tintrb_outfit2 = eye2tintrb_outfit2;
			player6.eye2tintbb_outfit2 = eye2tintbb_outfit2;
			player6.eye2tintgb_outfit2 = eye2tintgb_outfit2;
			player6.masktintrb_outfit2 = masktintrb_outfit2;
			player6.masktintgb_outfit2 = masktintgb_outfit2;
			player6.masktintbb_outfit2 = masktintbb_outfit2;
			player6.tattootintrb_outfit2 = tattootintrb_outfit2;
			player6.tattootintgb_outfit2 = tattootintgb_outfit2;
			player6.tattootintbb_outfit2 = tattootintbb_outfit2;
			player6.capetintrb_outfit2 = capetintrb_outfit2;
			player6.capetintgb_outfit2 = capetintgb_outfit2;
			player6.capetintbb_outfit2 = capetintbb_outfit2;
			player6.necklacetintrb_outfit2 = necklacetintrb_outfit2;
			player6.necklacetintgb_outfit2 = necklacetintgb_outfit2;
			player6.necklacetintbb_outfit2 = necklacetintbb_outfit2;
			player6.pouchtintrb_outfit2 = pouchtintrb_outfit2;
			player6.pouchtintgb_outfit2 = pouchtintgb_outfit2;
			player6.pouchtintbb_outfit2 = pouchtintbb_outfit2;
			player6.belttintrb_outfit2 = belttintrb_outfit2;
			player6.belttintgb_outfit2 = belttintgb_outfit2;
			player6.belttintbb_outfit2 = belttintbb_outfit2;
			player6.gauntlettintrb_outfit2 = gauntlettintrb_outfit2;
			player6.gauntlettintgb_outfit2 = gauntlettintgb_outfit2;
			player6.gauntlettintbb_outfit2 = gauntlettintbb_outfit2;
			player6.armtintrb_outfit2 = armtintrb_outfit2;
			player6.armtintgb_outfit2 = armtintgb_outfit2;
			player6.armtintbb_outfit2 = armtintbb_outfit2;
			player6.jackettintrb_outfit2 = jackettintrb_outfit2;
			player6.jackettintgb_outfit2 = jackettintgb_outfit2;
			player6.jackettintbb_outfit2 = jackettintbb_outfit2;
			player6.glove1tintrb_outfit2 = glove1tintrb_outfit2;
			player6.glove1tintgb_outfit2 = glove1tintgb_outfit2;
			player6.glove1tintbb_outfit2 = glove1tintbb_outfit2;
			player6.glove2tintrb_outfit2 = glove2tintrb_outfit2;
			player6.glove2tintgb_outfit2 = glove2tintgb_outfit2;
			player6.glove2tintbb_outfit2 = glove2tintbb_outfit2;
			player6.panttintrb_outfit2 = panttintrb_outfit2;
			player6.panttintgb_outfit2 = panttintgb_outfit2;
			player6.panttintbb_outfit2 = panttintbb_outfit2;
			player6.shoetintrb_outfit2 = shoetintrb_outfit2;
			player6.shoetintgb_outfit2 = shoetintgb_outfit2;
			player6.shoetintbb_outfit2 = shoetintbb_outfit2;
			player6.skintintrb_outfit2 = skintintrb_outfit2;
			player6.skintintgb_outfit2 = skintintgb_outfit2;
			player6.skintintbb_outfit2 = skintintbb_outfit2;
			player6.sheathtintrb_outfit2 = sheathtintrb_outfit2;
			player6.sheathtintgb_outfit2 = sheathtintgb_outfit2;
			player6.sheathtintbb_outfit2 = sheathtintbb_outfit2;
			player6.capeon_outfit3 = capeon_outfit3;
			player6.maskoff_outfit3 = maskoff_outfit3;
			player6.extrabelt_outfit3 = extrabelt_outfit3;
			player6.barechest_outfit3 = barechest_outfit3;
			player6.hair_outfit3 = hair_outfit3;
			player6.earring_outfit3 = earring_outfit3;
			player6.skinz_outfit3 = skinz_outfit3;
			player6.freckles_outfit3 = freckles_outfit3;
			player6.frecklesalpha_outfit3 = frecklesalpha_outfit3;
			player6.nosez_outfit3 = nosez_outfit3;
			player6.eyepatch_outfit3 = eyepatch_outfit3;
			player6.eyesboth_outfit3 = eyesboth_outfit3;
			player6.eyesparkle1_outfit3 = eyesparkle1_outfit3;
			player6.eyesparkle2_outfit3 = eyesparkle2_outfit3;
			player6.eyetype1_outfit3 = eyetype1_outfit3;
			player6.eyetype2_outfit3 = eyetype2_outfit3;
			player6.eyescale1_outfit3 = eyescale1_outfit3;
			player6.eyescale2_outfit3 = eyescale2_outfit3;
			player6.eyewhite1_outfit3 = eyewhite1_outfit3;
			player6.eyewhite2_outfit3 = eyewhite2_outfit3;
			player6.eyebrows_outfit3 = eyebrows_outfit3;
			player6.eyesquint_outfit3 = eyesquint_outfit3;
			player6.maskz_outfit3 = maskz_outfit3;
			player6.tattoo_outfit3 = tattoo_outfit3;
			player6.scar_outfit3 = scar_outfit3;
			player6.beard_outfit3 = beard_outfit3;
			player6.capecolor_outfit3 = capecolor_outfit3;
			player6.cape_addon_outfit3 = cape_addon_outfit3;
			player6.necklace_outfit3 = necklace_outfit3;
			player6.jacket_outfit3 = jacket_outfit3;
			player6.pouches_outfit3 = pouches_outfit3;
			player6.belt_outfit3 = belt_outfit3;
			player6.gauntlet_outfit3 = gauntlet_outfit3;
			player6.arms_outfit3 = arms_outfit3;
			player6.glove1_outfit3 = glove1_outfit3;
			player6.glove2_outfit3 = glove2_outfit3;
			player6.pants_outfit3 = pants_outfit3;
			player6.shoes_outfit3 = shoes_outfit3;
			player6.tattooalpha_outfit3 = tattooalpha_outfit3;
			player6.scaralpha_outfit3 = scaralpha_outfit3;
			player6.hairtintrb_outfit3 = hairtintrb_outfit3;
			player6.hairtintgb_outfit3 = hairtintgb_outfit3;
			player6.hairtintbb_outfit3 = hairtintbb_outfit3;
			player6.eyepatchtintrb_outfit3 = eyepatchtintrb_outfit3;
			player6.eyepatchtintbb_outfit3 = eyepatchtintbb_outfit3;
			player6.eyepatchtintgb_outfit3 = eyepatchtintgb_outfit3;
			player6.eye1tintrb_outfit3 = eye1tintrb_outfit3;
			player6.eye1tintbb_outfit3 = eye1tintbb_outfit3;
			player6.eye1tintgb_outfit3 = eye1tintgb_outfit3;
			player6.eye2tintrb_outfit3 = eye2tintrb_outfit3;
			player6.eye2tintbb_outfit3 = eye2tintbb_outfit3;
			player6.eye2tintgb_outfit3 = eye2tintgb_outfit3;
			player6.masktintrb_outfit3 = masktintrb_outfit3;
			player6.masktintgb_outfit3 = masktintgb_outfit3;
			player6.masktintbb_outfit3 = masktintbb_outfit3;
			player6.tattootintrb_outfit3 = tattootintrb_outfit3;
			player6.tattootintgb_outfit3 = tattootintgb_outfit3;
			player6.tattootintbb_outfit3 = tattootintbb_outfit3;
			player6.capetintrb_outfit3 = capetintrb_outfit3;
			player6.capetintgb_outfit3 = capetintgb_outfit3;
			player6.capetintbb_outfit3 = capetintbb_outfit3;
			player6.necklacetintrb_outfit3 = necklacetintrb_outfit3;
			player6.necklacetintgb_outfit3 = necklacetintgb_outfit3;
			player6.necklacetintbb_outfit3 = necklacetintbb_outfit3;
			player6.pouchtintrb_outfit3 = pouchtintrb_outfit3;
			player6.pouchtintgb_outfit3 = pouchtintgb_outfit3;
			player6.pouchtintbb_outfit3 = pouchtintbb_outfit3;
			player6.belttintrb_outfit3 = belttintrb_outfit3;
			player6.belttintgb_outfit3 = belttintgb_outfit3;
			player6.belttintbb_outfit3 = belttintbb_outfit3;
			player6.gauntlettintrb_outfit3 = gauntlettintrb_outfit3;
			player6.gauntlettintgb_outfit3 = gauntlettintgb_outfit3;
			player6.gauntlettintbb_outfit3 = gauntlettintbb_outfit3;
			player6.armtintrb_outfit3 = armtintrb_outfit3;
			player6.armtintgb_outfit3 = armtintgb_outfit3;
			player6.armtintbb_outfit3 = armtintbb_outfit3;
			player6.jackettintrb_outfit3 = jackettintrb_outfit3;
			player6.jackettintgb_outfit3 = jackettintgb_outfit3;
			player6.jackettintbb_outfit3 = jackettintbb_outfit3;
			player6.glove1tintrb_outfit3 = glove1tintrb_outfit3;
			player6.glove1tintgb_outfit3 = glove1tintgb_outfit3;
			player6.glove1tintbb_outfit3 = glove1tintbb_outfit3;
			player6.glove2tintrb_outfit3 = glove2tintrb_outfit3;
			player6.glove2tintgb_outfit3 = glove2tintgb_outfit3;
			player6.glove2tintbb_outfit3 = glove2tintbb_outfit3;
			player6.panttintrb_outfit3 = panttintrb_outfit3;
			player6.panttintgb_outfit3 = panttintgb_outfit3;
			player6.panttintbb_outfit3 = panttintbb_outfit3;
			player6.shoetintrb_outfit3 = shoetintrb_outfit3;
			player6.shoetintgb_outfit3 = shoetintgb_outfit3;
			player6.shoetintbb_outfit3 = shoetintbb_outfit3;
			player6.skintintrb_outfit3 = skintintrb_outfit3;
			player6.skintintgb_outfit3 = skintintgb_outfit3;
			player6.skintintbb_outfit3 = skintintbb_outfit3;
			player6.sheathtintrb_outfit3 = sheathtintrb_outfit3;
			player6.sheathtintgb_outfit3 = sheathtintgb_outfit3;
			player6.sheathtintbb_outfit3 = sheathtintbb_outfit3;
			player6.slot = slot;
			player6SO = SharedObject.getLocal('playerInfo6');
			player6SO.data.playerDat = player6;
			player6SO.flush();
		};
	}
	frame 2 {
		stop();
		beginz = false;
		tcounter = 0;
		tcounterminute = 0;
		tcounterhour = 0;
		unlockFlawless = false;
		unlockCharm = false;
		unlockCharms = false;
		unlockRookie = false;
		unlockVeteran = false;
		unlockLegend = false;
		player2SO = SharedObject.getLocal('playerInfo2');
		player3SO = SharedObject.getLocal('playerInfo3');
		player4SO = SharedObject.getLocal('playerInfo4');
		player5SO = SharedObject.getLocal('playerInfo5');
		player6SO = SharedObject.getLocal('playerInfo6');
		LoadLatestSave = function () {
			today = new Date();
			i = 1;
			while (i <= 6) {
				this['date' + i] = new Date(this['player' + i + 'SO'].savedateday, this['player' + i + 'SO'].savedatemonth, this['player' + i + 'SO'].savedateyear, this['player' + i + 'SO'].savehours, this['player' + i + 'SO'].saveminutes, this['player' + i + 'SO'].saveseconds);
				++i;
			}
			checkDates = new Array(today - date1, today - date2, today - date3, today - date4, today - date5, today - date6);
			checkDates.sort();
			i = 1;
			while (i <= 6) {
				if (today - this['date' + i] == checkDates[0] && eval('player' + i + 'SO.data.playerDat.corename') != undefined) {
					currentslot = i;
					loadPlayer();
				}
				++i;
			}
		};
		if (player1SO.data.playerDat.corename == undefined && player2SO.data.playerDat.corename == undefined && player3SO.data.playerDat.corename == undefined && player4SO.data.playerDat.corename == undefined && player5SO.data.playerDat.corename == undefined && player6SO.data.playerDat.corename == undefined) {
			loadz = false;
		} else {
			loadz = true;
		}
		putarrowz = function () {
			if (eval('point' + arrnumber) != undefined) {
				Scenez.attachMovie('Arrow_MC', 'arrowz' + arrnumber, arrnumber);
				var fmt = Scenez['arrowz' + arrnumber].q_txt.getTextFormat();
				fmt.bold = true;
				Scenez['arrowz' + arrnumber].q_txt.setNewTextFormat(fmt);
				Scenez['arrowz' + arrnumber].q_txt.text = questname;
			}
		};
		loading_game = false;
		dosave = false;
		delay = 0;
		talkv = random(15) + 1;
		riddles = random(8) + 1;
		haircut = false;
		inventoryon = false;
		notwalk = false;
		talkedtobandits = false;
		walkload = false;
		boss = false;
		training = false;
		summon = false;
		challenge = false;
		summon_finished = false;
		challenge_finished = false;
		donefishing = false;
		endfishing = false;
		twomonsters = 0;
		musicon = true;
		entercave = false;
		win_challenge = false;
		sound1 = new Sound();
		sound2 = new Sound();
		sound3 = new Sound();
		sound4 = new Sound();
		enmsound1 = new Sound();
		enmsound2 = new Sound();
		enmsound3 = new Sound();
		enmsound4 = new Sound();
		hurtsfx = new Sound();
		enmhurt = new Sound();
		growl1 = new Sound();
		growl2 = new Sound();
		flashexplosion = new Sound();
		hurt = new Sound();
		footstep = new Sound();
		footstep.attachSound('');
		pageturn = new Sound();
		drink = new Sound();
		error = new Sound();
		item = new Sound();
		buttonover = new Sound();
		buttonclickz = new Sound();
		swordswap = new Sound();
		swordswap.attachSound('028');
		error.attachSound('error');
		drink.attachSound('gulp');
		item.attachSound('hit2');
		flashexplosion.attachSound('ex5');
		pageturn.attachSound('page');
		buttonover.attachSound('kong');
		buttonclickz.attachSound('ominous');
		cheatsound.attachSound('buttonclick');
		cheat = false;
		nomorncave1 = false;
		nomorncave2 = false;
		coreberserk = false;
		startcustomize = false;
		doShovel = function () {
			if (Scenez.sh1.hitTest(Scenez.playerblock) && shovel1 == false) {
				++numofdigs;
				shovel1 = true;
				foundgold = 8;
				doFoundGold();
			} else {
				if (Scenez.sh2.hitTest(Scenez.playerblock) && shovel2 == false) {
					++numofdigs;
					shovel2 = true;
					num = 2;
					doFoundPotion();
				} else {
					if (Scenez.sh3.hitTest(Scenez.playerblock) && shovel3 == false) {
						++numofdigs;
						shovel3 = true;
						num = 1;
						doFoundLimit();
					} else {
						if (Scenez.sh4.hitTest(Scenez.playerblock) && shovel4 == false) {
							++numofdigs;
							shovel4 = true;
							num = 2;
							doFoundEther();
						} else {
							if (Scenez.sh5.hitTest(Scenez.playerblock) && shovel5 == false) {
								++numofdigs;
								shovel5 = true;
								foundgold = 10;
								doFoundGold();
							} else {
								if (Scenez.sh6.hitTest(Scenez.playerblock) && shovel6 == false) {
									++numofdigs;
									shovel6 = true;
									foundgold = 25;
									doFoundGold();
								} else {
									if (Scenez.sh7.hitTest(Scenez.playerblock) && shovel7 == false && questgnome == 2) {
										++numofdigs;
										shovel7 = true;
										questgnome = 3;
										this['obj' + questgnomeX] = 'I found the Wisp necklace, I should give it to Memble.';
										page1 = 'Roy: I found the Wisp necklace! This is what Memble was looking for.';
										doStartText();
									} else {
										if (Scenez.sh8.hitTest(Scenez.playerblock) && shovel8 == false) {
											++numofdigs;
											shovel8 = true;
											foundgold = 20;
											doFoundGold();
										} else {
											if (Scenez.sh9.hitTest(Scenez.playerblock) && shovel9 == false) {
												++numofdigs;
												shovel9 = true;
												num = 2;
												doFoundPotion();
											} else {
												if (Scenez.sh10.hitTest(Scenez.playerblock) && shovel10 == false) {
													++numofdigs;
													shovel10 = true;
													foundgold = 20;
													doFoundGold();
													if (questtreasure == 2) {
														delquest = questtreasureX;
														delJournal();
													}
													questtreasure = 3;
												} else {
													page1 = 'You dig but find nothing.';
													doStartText();
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
			black.gotoAndPlay(2);
			sword_MC.shovel_MC.gotoAndPlay(2);
			shovelitem = true;
			if (sfxmute == false) {
				sound1.attachSound('grasspick');
				sound1.start();
			}
			if (numofdigs == 3 && medaldiglet == false) {
				medaldiglet = true;
				medaltext = 'Diglet';
				gotthunder = 2;
				gotblackpearl = 2;
				customitem = 'Thunder and Black Pearl earrings';
				doAddmedal();
				com.newgrounds.API.unlockMedal('Diglet');
			}
		};
		doFootstep = function () {
			if (sfxmute == false) {
				if (footstepsound == 0) {
					fsound = new Array('empty');
				} else {
					if (footstepsound == 1) {
						fsound = new Array('grass1', 'grass2', 'grass3', 'grass4');
					} else {
						if (footstepsound == 2) {
							fsound = new Array('concrete1', 'concrete2', 'concrete3', 'concrete4');
						} else {
							if (footstepsound == 3) {
								fsound = new Array('wood1', 'wood2', 'wood3', 'wood4');
							} else {
								if (footstepsound == 4) {
									fsound = new Array('dirt1', 'dirt2', 'dirt3', 'dirt4');
								}
							}
						}
					}
				}
				footstep.attachSound(fsound[random(fsound.length)]);
				footstep.start();
			}
		};
		doCounterWalk = function () {
			if (counterWalk < 300 && walking == true) {
				++counterWalk;
			}
		};
		countWalkID = setInterval(doCounterWalk, 150);
		doCounter = function () {
			++counter;
			if (counter > 59) {
				++counterminute;
				counter = 0;
				if (counterminute > 59) {
					++counterhour;
					counterminute = 0;
				}
			}
		};
		doTCounter = function () {
			++tcounter;
			if (tcounter > 59) {
				++tcounterminute;
				tcounter = 0;
				if (tcounterminute > 59) {
					++tcounterhour;
					tcounterminute = 0;
				}
			}
		};
		corepoison = false;
		calebpoison = false;
		doCounter2 = function () {
			if (gamepause == 0 && corereghealth != 0 && corepoison == false) {
				++counter2;
				if (counter2 >= corereghealth / 5 && corehealth < coremaxhealth && corehealth > 0) {
					++corehealth;
					counter2 = 0;
				}
			}
		};
		doCounter3 = function () {
			if (gamepause == 0 && coreregmana != 0 && corepoison == false) {
				++counter3;
				if (counter3 >= coreregmana / 5 && coremana < coremaxmana) {
					++coremana;
					counter3 = 0;
				}
			}
		};
		doCounter2X = function () {
			if (gamepause == 0 && calebreghealth != 0 && calebpoison == false) {
				++counter2X;
				if (counter2X >= calebreghealth / 5 && calebhealth < calebmaxhealth && calebhealth > 0) {
					++calebhealth;
					counter2X = 0;
				}
			}
		};
		doCounter3X = function () {
			if (gamepause == 0 && calebregmana != 0 && calebpoison == false) {
				++counter3X;
				if (counter3X >= calebregmana / 5 && calebmana < calebmaxmana) {
					++calebmana;
					counter3X = 0;
				}
			}
		};
		doCounter4 = function () {
			if (gamepause == 0) {
				++counter4;
				if (counter4 >= regmana / 5 && enemymana < enemymaxmana) {
					++enemymana;
					counter4 = 0;
				}
			}
		};
		doCounter5 = function () {
			if (gamepause == 0 && reghealth != 0) {
				++counter5;
				if (counter5 >= reghealth && enemyhealth < enemymaxhealth && enemyhealth > 0) {
					++enemyhealth;
					counter5 = 0;
				}
			}
		};
		bg.gotoAndStop(2);
		coremagic6stam = 150;
		coremagic6mana = 90;
		coremagic5stam = 80;
		coremagic5mana = 55;
		coremagic4stam = 90;
		coremagic4mana = 50;
		coremagic3stam = 90;
		coremagic3mana = 55;
		coremagic2stam = 50;
		coremagic2mana = 25;
		coremagic1stam = 50;
		calebmagic6stam = 120;
		calebmagic6mana = 100;
		calebmagic5stam = 70;
		calebmagic5mana = 35;
		calebmagic4stam = 110;
		calebmagic4mana = 75;
		calebmagic3stam = 110;
		calebmagic3mana = 75;
		calebmagic2stam = 60;
		calebmagic2mana = 40;
		calebmagic1stam = 60;
		calebmagic1mana = 25;
		calebmagic1Xstam = 50;
		calebmagic1Xmana = 10;
		calebmagic2Xstam = 110;
		calebmagic2Xmana = 60;
		calebmagic3Xstam = 150;
		calebmagic3Xmana = 100;
		coremagic2info = 'Temporarily boosts your damage.';
		coremagic3info = 'Inflicts ice damage. May Slow enemy.';
		coremagic4info = 'Inflicts thunder damage. May Paralyze enemy.';
		coremagic5info = 'Inflicts fire damage. May Weaken enemy.';
		coremagic6info = 'Inflicts dark damage. Damages the enemy equal to the Health points you have lost.';
		calebmagic1info = 'Gives Caleb temporary Armor Piercing damage.';
		calebmagic2info = 'Puts the enemy into a state where it may attack itself.';
		calebmagic3info = 'Inflicts ice damage. Will Slow enemy.';
		calebmagic4info = 'Inflicts thunder damage. May Paralyze enemy.';
		calebmagic5info = 'Inflicts fire damage. Must cast twice rapidly to inflict damage. May Weaken enemy.';
		calebmagic5infoX = 'Cast while the mark is present. May Weaken enemy.';
		calebmagic6info = 'Will Paralyze enemy.';
		calebmagic1Xinfo = '';
		calebmagic2Xinfo = '';
		calebmagic3Xinfo = 'May cause Sudden Death.';
		corelimit1info = 'A powerful attack.';
		corelimit2info = 'A powerful attack that inflicts Imbalance.';
		corelimit3info = 'Multiple swift attacks.';
		corelimit4info = 'Many, many swift attacks.';
		caleblimit1info = 'Slows the enemies\' stamina, hastens yours.';
		caleblimit2info = 'Two powerful attacks.';
		caleblimit3info = 'Armor piercing.';
		caleblimit4info = 'Shapeshifts Caleb into a demon.';
		caleblimit4infoX = '';
		armorpierceMCX = 2;
		fireMCX = 2;
		iceMCX = 2;
		thunderMCX = 2;
		darkMCX = 2;
		doEnterBattle = function () {
			playerX = player._x;
			playerY = player._y;
			delay = music.position / 1000;
			walking = false;
			cheat = false;
			clearInterval(counttextID);
			counterWalk = 0;
			countertext = 0;
			inventoryon = false;
			text_MC.textz.gotoAndStop(1);
			gamepause = 0;
			sound4.stop('fireloop');
			sound4.attachSound('feral');
			sound4.start();
			gotoAndPlay(193);
		};
		doEnterFishing = function () {
			playerX = player._x;
			playerY = player._y;
			delay = music.position / 1000;
			walking = false;
			cheat = false;
			clearInterval(counttextID);
			counterWalk = 0;
			countertext = 0;
			inventoryon = false;
			text_MC.textz.gotoAndStop(1);
			gamepause = 0;
			gotoAndStop('Fishing');
		};
		doRiddle = function () {
			ans = shop_MC.r_txt.text.toLowerCase();
			ansX = ans.slice(ans.length - 1, ans.length);
			if (ansX == 's') {
				ans = ans.slice(0, ans.length - 1);
			}
			ansX = ans.slice(0, 4);
			if (ansX == 'the ') {
				ans = ans.slice(4, ans.length);
			}
			if ((shop_MC._currentframe == 1 or shop_MC._currentframe == 19 or currentpage != 1) && story != 156 && cheat == false && concoct_MC._currentframe == 1 && shop_MC._currentframe != 15) {
				doTextpage();
				doActivatedText();
			} else {
				if (shop_MC._currentframe == 15 && ans == riddleanswer1 or shop_MC._currentframe == 15 && ans == riddleanswer2) {
					shop_MC.gotoAndStop(1);
					notwalk = false;
					dialog = 2;
					this['page' + (turnsX + 1)] = riddlez1;
					doTextpage();
					doActivatedText();
				} else {
					shop_MC.wrong_MC.gotoAndPlay(2);
					error.start();
				}
			}
		};
		doChangenamecolor = function () {
			namecolorobject = new TextFormat();
			namecolorobject.color = namecolor;
			namecolorobject.size = 8;
			turns = 0;
			turnsX = 0;
			dialog = 2;
			page1 = 'Benter: Is this color better?';
			text_MC.textz.gotoAndPlay(2);
		};
		doChangerewardcolor = function () {
			rewardcolorobject = new TextFormat();
			rewardcolorobject.color = rewardcolor;
			rewardcolorobject.size = 8;
			turns = 0;
			turnsX = 0;
			dialog = 2;
			page1 = 'Barga: Is this color better?\r*Reward text color';
			text_MC.textz.gotoAndPlay(2);
		};
		doendPause = function () {
			--gamepause;
			if (gamepause < 0) {
				gamepause = 0;
			}
			if (gamepause == 0) {
				if (coreblind == true or calebblind == true) {
					blind_MC.play();
				}
				if (firemark == true) {
					firemark1.play();
				}
			}
		};
		removeCalebX = function () {
			calebX = false;
			if (character == 2) {
				character = 1;
			}
		};
		doSmith = function () {
			goldnum = swordnum * 20;
			removingGold();
			cinematic = false;
			currentweapon += swordnum;
			if (sword == 1) {
				weapon1 += swordnum;
			} else {
				if (sword == 2) {
					weapon2 += swordnum;
				} else {
					if (sword == 3) {
						weapon3 += swordnum;
					} else {
						if (sword == 4) {
							weapon4 += swordnum;
						} else {
							if (sword == 5) {
								weapon5 += swordnum;
							} else {
								if (sword == 6) {
									weapon6 += swordnum;
								}
							}
						}
					}
				}
			}
		};
		addingGold = function () {
			goldnumz = gold + goldnum;
			if (goldnumz > 99999) {
				goldnumz -= 99999;
				goldnum -= goldnumz;
			}
			gold += goldnum;
		};
		removingGold = function () {
			gold -= goldnum;
			if (gold < 0) {
				gold = 0;
			}
		};
		addingDefenseCore = function () {
			numz = coredefense + num;
			if (numz > 99) {
				numz -= 99;
				num -= numz;
			}
			coredefense += num;
			corehealth += num * 10;
			coremaxhealth += num * 10;
		};
		addingDefenseCaleb = function () {
			numz = calebdefense + num;
			if (numz > 99) {
				numz -= 99;
				num -= numz;
			}
			calebdefense += num;
			calebhealth += num * 10;
			calebmaxhealth += num * 10;
		};
		addingStrengthCore = function () {
			numz = corestrength + num;
			if (numz > 99) {
				numz -= 99;
				num -= numz;
			}
			corestrength += num;
		};
		addingStrengthCaleb = function () {
			numz = calebstrength + num;
			if (numz > 99) {
				numz -= 99;
				num -= numz;
			}
			calebstrength += num;
		};
		addingMagicCore = function () {
			numz = coremagicdamage + num;
			if (numz > 99) {
				numz -= 99;
				num -= numz;
			}
			coremana += num * 10;
			coremaxmana += num * 10;
			coremagicdamage += num;
			coreregmana -= num;
			if (coreregmana < 0) {
				coreregmana = 10;
			}
		};
		addingMagicCaleb = function () {
			numz = calebmagicdamage + num;
			if (numz > 99) {
				numz -= 99;
				num -= numz;
			}
			calebmana += num * 10;
			calebmaxmana += num * 10;
			calebmagicdamage += num;
			calebregmana -= num;
			if (calebregmana < 0) {
				calebregmana = 10;
			}
		};
		addingMagicdefenseCore = function () {
			numz = coremagicdefense + num;
			if (numz > 99) {
				numz -= 99;
				num -= numz;
			}
			coremana += num * 5;
			coremaxmana += num * 5;
			corehealth += num * 5;
			coremaxhealth += num * 5;
			coremagicdefense += num;
		};
		addingMagicdefenseCaleb = function () {
			numz = calebmagicdefense + num;
			if (numz > 99) {
				numz -= 99;
				num -= numz;
			}
			calebmana += num * 5;
			calebmaxmana += num * 5;
			calebhealth += num * 5;
			calebmaxhealth += num * 5;
			calebmagicdefense += num;
		};
		addingAgilityCore = function () {
			numz = coreagility + num;
			if (numz > 99) {
				numz -= 99;
				num -= numz;
			}
			coreagility += num;
			coreregstamina += num / 100;
		};
		addingAgilityCaleb = function () {
			numz = calebagility + num;
			if (numz > 99) {
				numz -= 99;
				num -= numz;
			}
			calebagility += num;
			calebregstamina += num / 100;
		};
		addingLuckCore = function () {
			numz = coreluck + num;
			if (numz > 99) {
				numz -= 99;
				num -= numz;
			}
			coreluck += num;
		};
		addingLuckCaleb = function () {
			numz = calebluck + num;
			if (numz > 99) {
				numz -= 99;
				num -= numz;
			}
			calebluck += num;
		};
		removingDefenseCore = function () {
			coredefense -= num;
			corehealth -= num * 15;
			coremaxhealth -= num * 15;
			if (coredefense < 1) {
				coredefense = 1;
			}
			if (coremaxhealth < 15) {
				corehealth = 15;
				coremaxhealth = 15;
			}
		};
		removingDefenseCaleb = function () {
			calebdefense -= num;
			calebhealth -= num * 15;
			calebmaxhealth -= num * 15;
			if (calebdefense < 1) {
				calebdefense = 1;
			}
			if (calebmaxhealth < 15) {
				calebhealth = 15;
				calebmaxhealth = 15;
			}
		};
		removingStrengthCore = function () {
			corestrength -= num;
			corehealth -= num * 5;
			coremaxhealth -= num * 5;
			if (corestrength < 1) {
				corestrength = 1;
			}
			if (coremaxhealth < 15) {
				corehealth = 15;
				coremaxhealth = 15;
			}
		};
		removingStrengthCaleb = function () {
			calebstrength -= num;
			calebhealth -= num * 5;
			calebmaxhealth -= num * 5;
			if (calebstrength < 1) {
				calebstrength = 1;
			}
			if (calebmaxhealth < 15) {
				calebhealth = 15;
				calebmaxhealth = 15;
			}
		};
		removingMagicCore = function () {
			coremana -= num * 10;
			coremaxmana -= num * 10;
			coremagicdamage -= num;
			coreregmana += num;
			if (coremagicdamage < 1) {
				coremagicdamage = 1;
			}
			if (coremaxmana < 15) {
				coremana = 15;
				coremaxmana = 15;
			}
		};
		removingMagicCaleb = function () {
			calebmana -= num * 10;
			calebmaxmana -= num * 10;
			calebmagicdamage -= num;
			calebregmana += num;
			if (calebmagicdamage < 1) {
				calebmagicdamage = 1;
			}
			if (calebmaxmana < 15) {
				calebmana = 15;
				calebmaxmana = 15;
			}
		};
		removingMagicdefenseCore = function () {
			coremana -= num * 5;
			coremaxmana -= num * 5;
			corehealth -= num * 5;
			coremaxhealth -= num * 5;
			coremagicdefense -= num;
			if (coremagicdefense < 1) {
				coremagicdefense = 1;
			}
			if (coremana < 0) {
				coremana = 0;
			}
			if (coremaxmana < 15) {
				coremana = 15;
				coremaxmana = 15;
			}
		};
		removingMagicdefenseCaleb = function () {
			calebmana -= num * 5;
			calebmaxmana -= num * 5;
			calebhealth -= num * 5;
			calebmaxhealth -= num * 5;
			calebmagicdefense -= num;
			if (calebmagicdefense < 0) {
				calebmagicdefense = 0;
			}
			if (calebmana < 0) {
				calebmana = 0;
			}
			if (calebmaxmana < 15) {
				calebmana = 15;
				calebmaxmana = 15;
			}
		};
		removingAgilityCore = function () {
			coreagility -= num;
			coremaxlimit += num * 2;
			coreregstamina -= num / 100;
			if (coreagility < 1) {
				coreagility = 1;
			}
		};
		removingAgilityCaleb = function () {
			calebagility -= num;
			calebmaxlimit += num * 2;
			calebregstamina -= num / 100;
			if (calebagility < 1) {
				calebagility = 1;
			}
		};
		removingLuckCore = function () {
			coreluck -= num;
			if (coreluck < 1) {
				coreluck = 1;
			}
		};
		removingLuckCaleb = function () {
			calebluck -= num;
			if (calebluck < 1) {
				calebluck = 1;
			}
		};
		addingCoremagic = function () {
			if (eval('coremagic' + num) == false) {
				++corenumofmagics;
			}
			this['coremagic' + num] = true;
		};
		addingCalebmagic = function () {
			if (eval('calebmagic' + num) == false) {
				++calebnumofmagics;
			}
			this['calebmagic' + num] = true;
		};
		addingCorelimit = function () {
			if (eval('corelimit' + num) == false) {
				++corenumoflimits;
			}
			this['corelimit' + num] = true;
			numlimits = 0;
			i = 1;
			while (i <= 4) {
				if (this['corelimit' + i] == true) {
					++numlimits;
				}
				++i;
			}
			i = 1;
			while (i <= 4) {
				if (this['caleblimit' + i] == true) {
					++numlimits;
				}
				++i;
			}
		};
		addingCaleblimit = function () {
			if (eval('caleblimit' + num) == false) {
				++calebnumoflimits;
			}
			this['caleblimit' + num] = true;
			numlimits = 0;
			i = 1;
			while (i <= 4) {
				if (this['corelimit' + i] == true) {
					++numlimits;
				}
				++i;
			}
			i = 1;
			while (i <= 4) {
				if (this['caleblimit' + i] == true) {
					++numlimits;
				}
				++i;
			}
		};
		addingSword = function () {
			if (eval('gotsword' + num) == false) {
				++numofswords;
				if (num != 2) {
					sword_MC.gotoAndPlay(2);
				}
			}
			this['gotsword' + num] = true;
			if (num > sword) {
				doSwordSwap();
				if (num == 2) {
					changeSword2();
				} else {
					if (num == 3) {
						changeSword3();
					} else {
						if (num == 4) {
							changeSword4();
						} else {
							if (num == 5) {
								changeSword5();
							} else {
								if (num == 6) {
									changeSword6();
								}
							}
						}
					}
				}
			}
			if (medalswordfish == false && numofswords == 3) {
				medalswordfish = true;
				medaltext = 'Swordfish';
				gotmaskcape = 2;
				customitem = 'Cape Mask';
				doAddmedal();
				com.newgrounds.API.unlockMedal('Swordfish');
			}
		};
		removingSword = function () {
			if (sword == num) {
				changeSword1();
			}
			if (eval('gotsword' + num) == true) {
				--numofswords;
				this['gotsword' + num] = false;
			}
		};
		doEndCheat = function () {
			inventory_MC.contentz.entercheat._visible = false;
			inventory_MC.contentz.cheat_BT._visible = true;
			inventory_MC.contentz.cancel_BT._visible = false;
			inventory_MC.contentz.info_MC.gotoAndStop(1);
			cheat = false;
		};
		doCheat = function () {
			cheatval1 = inventory_MC.contentz.info_MC.cheat_txt.text.indexOf(' ');
			cheatval2 = inventory_MC.contentz.info_MC.cheat_txt.text.split(' ', 3);
			mathz = 0;
			if (cheatval2[1] == '+') {
				mathz = 1;
			} else {
				if (cheatval2[1] == '-') {
					mathz = 2;
				} else {
					if (cheatval2[1] == '=') {
						mathz = 3;
					}
				}
			}
			entercode = cheatval2[0].toLowerCase();
			if (mathz == 1 or mathz == 2) {
				num = parseInt(cheatval2[2]);
				if (entercode == 'alfa') {
					inventory_MC.contentz.info_MC.cheat_txt.text = '';
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					hascheated = true;
					if (mathz == 1) {
						addingDefenseCore();
						addingDefenseCaleb();
						inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(5);
					} else {
						if (mathz == 2) {
							removingDefenseCore();
							removingDefenseCaleb();
							inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(36);
						}
					}
					doEndCheat();
				}
				if (entercode == 'bravo') {
					inventory_MC.contentz.info_MC.cheat_txt.text = '';
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					hascheated = true;
					if (mathz == 1) {
						addingStrengthCore();
						addingStrengthCaleb();
						inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(4);
					} else {
						if (mathz == 2) {
							removingStrengthCore();
							removingStrengthCaleb();
							inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(37);
						}
					}
					doEndCheat();
				}
				if (entercode == 'charlie') {
					inventory_MC.contentz.info_MC.cheat_txt.text = '';
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					hascheated = true;
					if (mathz == 1) {
						addingMagicCore();
						addingMagicCaleb();
						inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(16);
					} else {
						if (mathz == 2) {
							removingMagicCore();
							removingMagicCaleb();
							inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(38);
						}
					}
					doEndCheat();
				}
				if (entercode == 'delta') {
					inventory_MC.contentz.info_MC.cheat_txt.text = '';
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					hascheated = true;
					if (mathz == 1) {
						addingMagicdefenseCore();
						addingMagicdefenseCaleb();
						inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(17);
					} else {
						if (mathz == 2) {
							removingMagicdefenseCore();
							removingMagicdefenseCaleb();
							inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(39);
						}
					}
					doEndCheat();
				}
				if (entercode == 'echo') {
					inventory_MC.contentz.info_MC.cheat_txt.text = '';
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					hascheated = true;
					if (mathz == 1) {
						addingAgilityCore();
						addingAgilityCaleb();
						inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(18);
					} else {
						if (mathz == 2) {
							removingAgilityCore();
							removingAgilityCaleb();
							inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(40);
						}
					}
					doEndCheat();
				}
				if (entercode == 'foxtrot') {
					inventory_MC.contentz.info_MC.cheat_txt.text = '';
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					hascheated = true;
					if (mathz == 1) {
						addingLuckCore();
						addingLuckCaleb();
						inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(19);
					} else {
						if (mathz == 2) {
							removingLuckCore();
							removingLuckCaleb();
							inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(41);
						}
					}
					doEndCheat();
				}
				if (entercode == 'haste') {
					inventory_MC.contentz.info_MC.cheat_txt.text = '';
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					hascheated = true;
					if (mathz == 1) {
						orgspeed += num / 10;
						if (orgspeed > 20) {
							orgspeed = 20;
						}
						inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(26);
					} else {
						if (mathz == 2) {
							orgspeed -= num / 10;
							if (orgspeed < 1) {
								orgspeed = 1;
							}
							inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(43);
						}
					}
					speed = orgspeed;
					doSpeeds();
					doEndCheat();
				}
				if (entercode == 'goldmine') {
					goldnum = num;
					inventory_MC.contentz.info_MC.cheat_txt.text = '';
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					hascheated = true;
					if (mathz == 1) {
						addingGold();
						inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(27);
					} else {
						if (mathz == 2) {
							removingGold();
							inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(44);
						}
					}
					doEndCheat();
				}
			} else {
				if (mathz == 3) {
					if (entercode == 'skipping') {
						inventory_MC.contentz.info_MC.cheat_txt.text = '';
						inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
						hascheated = true;
						story = parseInt(cheatval2[2]);
						inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(49);
						doEndCheat();
					}
					if (entercode == 'tskipping') {
						inventory_MC.contentz.info_MC.cheat_txt.text = '';
						inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
						hascheated = true;
						tutz = parseInt(cheatval2[2]);
						inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(62);
						doEndCheat();
					}
					if (entercode == 'dskipping') {
						inventory_MC.contentz.info_MC.cheat_txt.text = '';
						inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
						hascheated = true;
						darconstory = parseInt(cheatval2[2]);
						inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(63);
						doEndCheat();
					}
					if (entercode == 'teleport') {
						inventory_MC.contentz.info_MC.cheat_txt.text = '';
						hascheated = true;
						if (parseInt(cheatval2[2]) < 50) {
							areascreen = parseInt(cheatval2[2]);
						}
						music.setVolume(volumez);
						doNotrun2();
						dosave = false;
						walkload = false;
						doGotoGame();
						doEndCheat();
						currentstage = 3;
						if (story < 10) {
							story = 10;
						}
					}
					if (entercode == 'screenname') {
						inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
						if (cheatval2[2].length <= 10 && cheatval2[2].length > 2) {
							corename = cheatval2[2];
							inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(50);
							inventory_MC.contentz.info_MC.cheat_txt.text = '';
							doEndCheat();
						} else {
							if (cheatval2[2].length > 10) {
								inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(51);
							} else {
								if (cheatval2[2].length <= 2) {
									inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(52);
								}
							}
						}
					}
					if (entercode == 'battle') {
						inventory_MC.contentz.info_MC.cheat_txt.text = '';
						inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
						hascheated = true;
						ename = cheatval2[2];
						doEnterBattle();
					}
				}
			}
			entercode = inventory_MC.contentz.info_MC.cheat_txt.text.toLowerCase();
			if (entercode == 'godmode') {
				if (godmode == false) {
					godmode = true;
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(20);
				} else {
					godmode = false;
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(21);
				}
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'aegis') {
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				hascheated = true;
				if (corereghealth == 0) {
					corereghealth = 1;
					coreregmana = 1;
					calebreghealth = 1;
					calebregmana = 1;
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(1);
				} else {
					corereghealth = 0;
					coreregmana = 0;
					calebreghealth = 0;
					calebregmana = 0;
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(42);
				}
				doEndCheat();
			}
			if (entercode == 'alchemist') {
				num = 10;
				addPotion();
				addElixir();
				addEther();
				addRemedy();
				addLimit();
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(60);
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'mushroom kingdom') {
				shroom1 += 10;
				shroom2 += 10;
				shroom3 += 10;
				shroom4 += 10;
				butterfly1 += 10;
				butterfly2 += 10;
				bottle += 10;
				gotfirstc = true;
				gotfirstshroom1 = true;
				gotfirstshroom2 = true;
				gotfirstshroom3 = true;
				gotfirstshroom4 = true;
				gotfirstfly1 = true;
				gotfirstfly2 = true;
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(54);
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'helium') {
				corehealth = coremaxhealth;
				coremana = coremaxmana;
				calebhealth = calebmaxhealth;
				calebmana = calebmaxmana;
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(6);
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'climhazzard') {
				num = 2;
				addingSword();
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				if (gotsword2 == true) {
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(7);
				} else {
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(8);
				}
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'true flame') {
				num = 3;
				addingSword();
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				if (gotsword3 == true) {
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(9);
				} else {
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(10);
				}
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'twin serpent blade') {
				num = 4;
				addingSword();
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				if (gotsword4 == true) {
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(11);
				} else {
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(12);
				}
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'mournshadow') {
				num = 5;
				addingSword();
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				if (gotsword5 == true) {
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(13);
				} else {
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(14);
				}
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'soulcleaver') {
				num = 6;
				addingSword();
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				if (gotsword6 == true) {
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(2);
				} else {
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(3);
				}
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'piece of cake') {
				difficulty = 4;
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(15);
				hascheated = true;
				changediff = true;
				doEndCheat();
			}
			if (entercode == 'piece of crap') {
				difficulty = 5;
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(64);
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'champion') {
				if (champion == false) {
					champion = true;
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(23);
				} else {
					champion = false;
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(31);
				}
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'walkthrough') {
				if (walkthrough == false) {
					walkthrough = true;
					cangoright = true;
					cangoleft = true;
					cangoup = true;
					cangodown = true;
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(22);
				} else {
					walkthrough = false;
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(32);
				}
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'guarded') {
				if (guarduniform == false) {
					guarduniform = true;
					Scenez.playerP1.gotoAndStop(17);
					Scenez.playerP2.gotoAndStop(17);
					Scenez.playerP1.gotoAndStop(12);
					Scenez.playerP2.gotoAndStop(12);
					black.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(58);
				} else {
					guarduniform = false;
					Scenez.playerP1.gotoAndStop(17);
					Scenez.playerP2.gotoAndStop(17);
					Scenez.playerP1.gotoAndStop(12);
					Scenez.playerP2.gotoAndStop(12);
					black.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(59);
				}
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				doEndCheat();
			}
			if (entercode == 'chuck norris') {
				num = 1;
				addingCorelimit();
				addingCaleblimit();
				num = 2;
				addingCorelimit();
				addingCaleblimit();
				num = 3;
				addingCorelimit();
				addingCaleblimit();
				num = 4;
				addingCorelimit();
				addingCaleblimit();
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(24);
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'gandalf') {
				num = 1;
				addingCoremagic();
				addingCalebmagic();
				num = 2;
				addingCoremagic();
				addingCalebmagic();
				num = 3;
				addingCoremagic();
				addingCalebmagic();
				num = 4;
				addingCoremagic();
				addingCalebmagic();
				num = 5;
				addingCoremagic();
				addingCalebmagic();
				num = 6;
				addingCoremagic();
				addingCalebmagic();
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(25);
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'limitless') {
				if (limitless == false) {
					limitless = true;
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(28);
				} else {
					limitless = false;
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(33);
				}
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'warcraft') {
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				hascheated = true;
				doEnterBattle();
			}
			if (entercode == 'blindsided') {
				if (calebX == false) {
					calebX = true;
					++numofchars;
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(45);
				} else {
					calebX = false;
					--numofchars;
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(46);
				}
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'farsight') {
				if (farsight == false) {
					farsight = true;
					Scenez.viewblock.gotoAndStop('sight');
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(47);
				} else {
					farsight = false;
					Scenez.viewblock.gotoAndStop(stand);
					inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
					inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(48);
				}
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'war drobe') {
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				doEndCheat();
				playerX = player._x;
				playerY = player._y;
				gotoAndStop('custom');
			}
			if (entercode == 'customsized') {
				if (gotmaskcape == 1) {
					gotmaskcape = 2;
				}
				if (gotgrayskin == 1) {
					gotgrayskin = 2;
				}
				if (gotredskin == 1) {
					gotredskin = 2;
				}
				if (gotmask1 == 1) {
					gotmask1 = 2;
				}
				if (gotmask2 == 1) {
					gotmask2 = 2;
				}
				if (gotmask3 == 1) {
					gotmask3 = 2;
				}
				if (gotmask4 == 1) {
					gotmask4 = 2;
				}
				if (gotbandana == 1) {
					gotbandana = 2;
				}
				if (gotfedorahat == 1) {
					gotfedorahat = 2;
				}
				if (gottophat == 1) {
					gottophat = 2;
				}
				if (goteyepatches == 1) {
					goteyepatches = 2;
				}
				if (gotthunder == 1) {
					gotthunder = 2;
				}
				if (gotblackpearl == 1) {
					gotblackpearl = 2;
				}
				if (gotserpentnose == 1) {
					gotserpentnose = 2;
				}
				if (gotwarpaint == 1) {
					gotwarpaint = 2;
				}
				if (goteyebleed == 1) {
					goteyebleed = 2;
				}
				if (goteyeshadow == 1) {
					goteyeshadow = 2;
				}
				if (gotbloodshoteyes == 1) {
					gotbloodshoteyes = 2;
				}
				if (gotundeadeyes == 1) {
					gotundeadeyes = 2;
				}
				if (gotdemoneyes == 1) {
					gotdemoneyes = 2;
				}
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(56);
				hascheated = true;
				doEndCheat();
			}
			if (entercode == 'author') {
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(57);
				doEndCheat();
			}
			if (entercode == 'medallion') {
				if (medalflawless == false) {
					medalflawless = true;
					medaltext = 'Flawlessly';
					gotmask3 = 2;
					customitem = 'Devil mask';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Flawlessly');
				}
				if (medalaquaman == false) {
					medalaquaman = true;
					medaltext = 'Aqua Man';
					gotredskin = 2;
					customitem = 'Red skin';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Aqua Man');
				}
				if (medalswordfish == false) {
					medalswordfish = true;
					medaltext = 'Swordfish';
					gotmaskcape = 2;
					customitem = 'Cape Mask';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Swordfish');
				}
				if (medalhelper == false) {
					medalhelper = true;
					medaltext = 'Santa\'s Little Helper';
					gotmask4 = 2;
					customitem = 'Anonymous mask';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Santa\'s Little Helper');
				}
				if (medalherbivore == false) {
					medalherbivore = true;
					medaltext = 'Shrooms';
					gotserpentnose = 2;
					customitem = 'Serpent Nose';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Shrooms');
				}
				if (medaljuggernaught == false) {
					medaljuggernaught = true;
					medaltext = 'Juggernaught';
					goteyebleed = 2;
					goteyeshadow = 2;
					customitem = 'Eye Shadow';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Juggernaught');
				}
				if (medalcharm == false) {
					medalcharm = true;
					medaltext = 'Lucky Charm';
					gotwarpaint = 2;
					customitem = 'War Paint tattoo';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Lucky Charm');
				}
				if (medalcharms == false) {
					medalcharms = true;
					medaltext = 'Lucky Charms';
					gotgrayskin = 2;
					customitem = 'Gray skin';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Lucky Charms');
				}
				if (medalawakened == false) {
					medaltext = 'Awakened';
					medalawakened = true;
					goteyepatches = 2;
					customitem = 'Eyepatches';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Awakened');
				}
				if (medalpoet == false) {
					medalpoet = true;
					medaltext = 'Soul of a Poet';
					gotmask1 = 2;
					customitem = 'Masquerade mask';
					othermedal = false;
					doAddmedal();
					com.newgrounds.API.unlockMedal('Soul of a Poet');
				}
				if (medalmeeting == false) {
					medalmeeting = true;
					medaltext = 'Divine Intervention';
					gotmask2 = 2;
					customitem = 'Ghost mask';
					othermedal = false;
					doAddmedal();
					com.newgrounds.API.unlockMedal('Divine Intervention');
				}
				if (medaldiglet == false) {
					medaldiglet = true;
					medaltext = 'Diglet';
					gotthunder = 2;
					gotblackpearl = 2;
					customitem = 'Thunder and Black Pearl earrings';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Diglet');
				}
				if (medalrookie == false) {
					medalrookie = true;
					medaltext = 'Rookie';
					gotbandana = 2;
					gotbloodshoteyes = 2;
					customitem = 'Bandana and the Bloodshot eyes';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Rookie');
				}
				if (medalveteran == false) {
					medalveteran = true;
					medaltext = 'Veteran';
					gotfedorahat = 2;
					gotundeadeyes = 2;
					customitem = 'Fedora Hat and the Undead eyes';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Veteran');
				}
				if (medallegend == false) {
					medallegend = true;
					medaltext = 'Legend';
					gottophat = 2;
					gotdemoneyes = 2;
					customitem = 'Top Hat and the Demon eyes';
					doAddmedal();
					com.newgrounds.API.unlockMedal('Legend');
				}
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(61);
				doEndCheat();
			}
			if (entercode == 'konami code') {
				tutz = 10;
				story = 500;
				godmode = true;
				walkthrough = true;
				cangoright = true;
				cangoleft = true;
				cangoup = true;
				cangodown = true;
				champion = true;
				limitless = true;
				gotshovel = true;
				gold += 10000;
				if (calebX == false) {
					calebX = true;
					++numofchars;
				}
				orgspeed += 1;
				if (orgspeed > 20) {
					orgspeed = 20;
				}
				speed = orgspeed;
				doSpeeds();
				num = 1;
				addingCorelimit();
				addingCaleblimit();
				addingCoremagic();
				addingCalebmagic();
				addingSword();
				num = 2;
				addingCorelimit();
				addingCaleblimit();
				addingCoremagic();
				addingCalebmagic();
				addingSword();
				num = 3;
				addingCorelimit();
				addingCaleblimit();
				addingCoremagic();
				addingCalebmagic();
				addingSword();
				num = 4;
				addingCorelimit();
				addingCaleblimit();
				addingCoremagic();
				addingCalebmagic();
				addingSword();
				num = 5;
				addingCoremagic();
				addingCalebmagic();
				addingSword();
				num = 6;
				addingCoremagic();
				addingCalebmagic();
				addingSword();
				sword_MC.gotoAndStop(1);
				num = 10;
				addingDefenseCore();
				addingDefenseCaleb();
				addingStrengthCore();
				addingStrengthCaleb();
				addingMagicCore();
				addingMagicCaleb();
				addingMagicdefenseCore();
				addingMagicdefenseCaleb();
				addingAgilityCore();
				addingAgilityCaleb();
				addingLuckCore();
				addingLuckCaleb();
				addPotion();
				addElixir();
				addEther();
				addRemedy();
				addLimit();
				addBottle();
				shroom1 += 10;
				shroom2 += 10;
				shroom3 += 10;
				shroom4 += 10;
				butterfly1 += 10;
				butterfly2 += 10;
				bottle += 10;
				gotfirstc = true;
				gotfirstshroom1 = true;
				gotfirstshroom2 = true;
				gotfirstshroom3 = true;
				gotfirstshroom4 = true;
				gotfirstfly1 = true;
				gotfirstfly2 = true;
				if (gotmaskcape == 1) {
					gotmaskcape = 2;
				}
				if (gotgrayskin == 1) {
					gotgrayskin = 2;
				}
				if (gotredskin == 1) {
					gotredskin = 2;
				}
				if (gotmask1 == 1) {
					gotmask1 = 2;
				}
				if (gotmask2 == 1) {
					gotmask2 = 2;
				}
				if (gotmask3 == 1) {
					gotmask3 = 2;
				}
				if (gotmask4 == 1) {
					gotmask4 = 2;
				}
				if (gotbandana == 1) {
					gotbandana = 2;
				}
				if (gotfedorahat == 1) {
					gotfedorahat = 2;
				}
				if (gottophat == 1) {
					gottophat = 2;
				}
				if (goteyepatches == 1) {
					goteyepatches = 2;
				}
				if (gotthunder == 1) {
					gotthunder = 2;
				}
				if (gotblackpearl == 1) {
					gotblackpearl = 2;
				}
				if (gotserpentnose == 1) {
					gotserpentnose = 2;
				}
				if (gotwarpaint == 1) {
					gotwarpaint = 2;
				}
				if (goteyebleed == 1) {
					goteyebleed = 2;
				}
				if (goteyeshadow == 1) {
					goteyeshadow = 2;
				}
				if (gotbloodshoteyes == 1) {
					gotbloodshoteyes = 2;
				}
				if (gotundeadeyes == 1) {
					gotundeadeyes = 2;
				}
				if (gotdemoneyes == 1) {
					gotdemoneyes = 2;
				}
				corehealth = coremaxhealth;
				coremana = coremaxmana;
				corelimit = coremaxlimit;
				calebhealth = calebmaxhealth;
				calebmana = calebmaxmana;
				caleblimit = calebmaxlimit;
				inventory_MC.contentz.info_MC.cheat_txt.text = '';
				inventory_MC.contentz.info_MC.infoX.gotoAndPlay(2);
				inventory_MC.contentz.info_MC.infoX.infoXX.gotoAndStop(55);
				hascheated = true;
				doEndCheat();
				doAutosave();
			}
		};
		addJournal = function () {
			arrnumber = numquests;
			putarrowz();
			this['obj' + numquests] = newquest;
			this['objname' + numquests] = questname;
			++activequests;
			++numquests;
		};
		questnames = new Array();
		questnames[1] = 'bag';
		questnames[2] = 'bbag';
		questnames[3] = 'beer';
		questnames[4] = 'findbook';
		questnames[5] = 'returnbook';
		questnames[6] = 'wolf';
		questnames[7] = 'love';
		questnames[8] = 'ink';
		questnames[9] = 'brock';
		questnames[10] = 'newintown';
		questnames[11] = 'findsword';
		questnames[12] = 'fisher';
		questnames[13] = 'boar';
		questnames[14] = 'friend';
		questnames[15] = 'spitter';
		questnames[16] = 'gornak';
		questnames[17] = 'potion';
		questnames[18] = 'horse';
		questnames[19] = 'gamble';
		questnames[20] = 'thanator';
		questnames[21] = 'gnome';
		questnames[22] = 'sick';
		questnames[23] = 'donovan';
		questnames[24] = 'show';
		questnames[25] = 'drugs';
		questnames[26] = 'drunk';
		questnames[27] = 'itemhunter';
		questnames[28] = 'treasure';
		questnames[29] = 'kidnap';
		questnames[30] = 'deadman';
		delJournal = function () {
			Scenez['arrowz' + delquest].gotoAndStop(2);
			i = 1;
			while (i <= questnames.length) {
				this['objz' + this['quest' + questnames[i] + 'X']] = this['obj' + this['quest' + questnames[i] + 'X']];
				this['objzname' + this['quest' + questnames[i] + 'X']] = this['objname' + this['quest' + questnames[i] + 'X']];
				Scenez['arrowz' + this['quest' + questnames[i] + 'X']]._visible = false;
				if (eval('quest' + questnames[i] + 'X') == delquest) {
					j = 0;
					while (j <= allquests) {
						if (this['quest' + questnames[i] + 'X'] == j && this['obj' + j] != undefined) {
							this['obj' + j] = undefined;
							this['objname' + this['quest' + questnames[i] + 'X']] = undefined;
							this['quest' + questnames[i] + 'X'] = -1;
						}
						++j;
					}
				}
				++i;
			}
			i = 1;
			while (i <= questnames.length) {
				if (eval('quest' + questnames[i] + 'X') > delquest) {
					j = 0;
					while (j <= allquests) {
						if (eval('obj' + j) == eval('obj' + eval('quest' + questnames[i] + 'X'))) {
							this['obj' + (j - 1)] = this['objz' + j];
							this['point' + (j - 1)] = this['point' + j];
						}
						++j;
					}
					--this['quest' + questnames[i] + 'X'];
					this['objname' + this['quest' + questnames[i] + 'X']] = this['objzname' + (this['quest' + questnames[i] + 'X'] + 1)];
					questname = this['objzname' + (this['quest' + questnames[i] + 'X'] + 1)];
					arrnumber = this['quest' + questnames[i] + 'X'];
					putarrowz();
				}
				++i;
			}
			Scenez['arrowz' + (numquests - 1)].removeMovieClip();
			this['point' + (numquests - 1)] = undefined;
			--activequests;
			--numquests;
			++completedquests;
			fame += 5;
			if (completedquests >= 10 && medalhelper == false) {
				medalhelper = true;
				medaltext = 'Santa\'s Little Helper';
				gotmask4 = 2;
				customitem = 'Anonymous mask';
				doAddmedal();
				com.newgrounds.API.unlockMedal('Santa\'s Little Helper');
			}
			doAutosave();
		};
		doTextpage = function () {
			stopfor = false;
			i = 1;
			while (i <= 50) {
				if (this['page' + (i + 1)] == '' && stopfor == false) {
					turns = i;
					stopfor = true;
				}
				++i;
			}
			if (text_MC.textz._currentframe == 6) {
				if (currentpage < turns) {
					++currentpage;
					doT = function () {
						text_MC.textz.gotoAndPlay(5);
					};
					setTimeout(doT, 10);
				} else {
					++currentpage;
					doT2 = function () {
						text_MC.textz.gotoAndPlay(7);
					};
					setTimeout(doT2, 10);
				}
			}
		};
		doStartText = function () {
			if (text_MC.textz._currentframe == 1) {
				dialog = 1;
				text_MC.textz.gotoAndPlay(2);
			}
		};
		doMusic = function () {
			if (newmusic != currentmusic) {
				music.stop(currentmusic);
				currentmusic = newmusic;
				music.attachSound(currentmusic);
				if (musicmute == false) {
					music.start(delay, 1);
				}
				delay = 0;
				music.onSoundComplete = function () {
					music.start(0, 999);
				};
			}
		};
		doSleep = function () {
			if (story == 260) {
				black.gotoAndPlay(92);
				story = 270;
			} else {
				black.gotoAndPlay(17);
			}
			corehealth = coremaxhealth;
			coremana = coremaxmana;
			calebhealth = calebmaxhealth;
			calebmana = calebmaxmana;
		};
		doHomeSleep = function () {
			doSleep();
			corelimit = coremaxlimit;
			if (calebX == true) {
				caleblimit = calebmaxlimit;
			}
		};
		housegrade3 = function () {
			if (housepainting == true && housewardrobe == true && housecarpet == true && housecandelebra == true && housechair == true) {
				housegrade = 3;
			}
		};
		doTaverntalkB = function () {
			if (talkv == 1) {
				if (darconstory < 50) {
					taverntalk = 'There is a fellow in the Bavelock prison called Darcon. He is bad news I tell ya.';
				} else {
					taverntalk = 'I heard from the guys that Darcon, the thief, had escaped prison. And with the help of two other criminals! What is this world coming to?';
				}
			} else {
				if (talkv == 2) {
					if (questsick < 4) {
						taverntalk = 'I heard that a child in town was sick. Some people think he\'s infected by the Grey Blood disease.';
					} else {
						taverntalk = 'I heard the good news! You helped cure Neville, the boy with the Grey Blood disease. You are a true hero!';
					}
				} else {
					if (talkv == 3) {
						if (questfindsword < 7) {
							taverntalk = 'Edna is the local crazy woman... I really wish she would just leave town.';
						} else {
							taverntalk = 'Is it true that Edna is in prison? That is probably where she belongs, that crazy woman!';
						}
					} else {
						if (talkv == 4) {
							if (questshow < 8) {
								taverntalk = 'There is a magician standing next to the gym, doing tricks. But no one seems interested.';
							} else {
								taverntalk = 'There is a magician in town! There are posters everywhere telling about him, have you seen?';
							}
						} else {
							if (talkv == 5) {
								taverntalk = 'Did you know that a bandit came in here earlier? He openly talked about his thievery! What a horrible person he was.';
							} else {
								if (talkv == 6) {
									taverntalk = 'This tavern is the best one in all of Andora! But don\'t just take my word for it, try our beds and drink our beer and find out for yourself!';
								} else {
									if (talkv == 7) {
										taverntalk = 'Did you know that the Spider Cap mushrooms are filled with spiders inside them? They actually burrow into it and make it their home!';
									} else {
										if (talkv == 8) {
											taverntalk = 'When I was younger this city used to be so clean and crime-free. Nowadays... I just don\'t know. Bandits and gamblers everywhere, dirt and garbage everywhere!';
										} else {
											if (talkv == 9) {
												taverntalk = 'There are rumors that the Golden Demon is returning to Andora! The end times are here, I\'m sure of it.';
											} else {
												if (talkv == 10) {
													taverntalk = 'Have you ever heard of the Blackwhisper cave? You should stay out of that place. No one knows for sure what monsters dwell inside.';
												} else {
													if (talkv == 11) {
														taverntalk = 'My grandfather once came home injured from a swordfight. He was a guard in the Bavelock brigade. My grandmother told me how she gave him a healing potion and he instantly got better.';
													} else {
														if (talkv == 12) {
															taverntalk = 'Do you know any elvish? It\'s a strange language I tell ya.';
														} else {
															if (talkv == 13) {
																taverntalk = 'There occasionally come in elves in here who wandered all the way from Aorna in the north. I just can\'t stop staring at their pointy ears!';
															} else {
																if (talkv == 14) {
																	taverntalk = 'I might be crazy, but sometimes I wish I had them pointy ears like the elves have.';
																} else {
																	if (talkv == 15) {
																		taverntalk = 'I sometimes don\'t go home at night and just sleep in one of our beds upstairs. They are very comfortable you know!';
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
			++talkv;
			if (talkv == 16) {
				talkv = 1;
			}
		};
		doTaverntalkS = function () {
			if (talkv == 1) {
				if (questfriend >= 6) {
					taverntalk = 'You found Mike\'s friend, right? You are a good man.';
				} else {
					taverntalk = 'I met a child who was looking for his friend Mill. Have you seen him?';
				}
			} else {
				if (talkv == 2) {
					if (questbbag >= 4) {
						taverntalk = 'I appreciate that you found Kanto\'s bag he had lost. He was getting very grumpy indeed.';
					} else {
						taverntalk = 'There is a man over there who seems very grumpy for some reason. What is going on with him?';
					}
				} else {
					if (talkv == 3) {
						if (questthanator >= 4) {
							taverntalk = 'Is it true you killed a Thanator and brought back its tooth? That is an unprecedented achievement!';
						} else {
							taverntalk = 'There are people over there who keeps talking about all the great things they have done. It is getting tiresome!';
						}
					} else {
						if (talkv == 4) {
							taverntalk = 'I heard there was a man in town who was robbed! Rumors say it was his neighbor who did it.';
						} else {
							if (talkv == 5) {
								taverntalk = 'There is a man in town who is crazy about alchemy. He can make any potion in the world. There are rumors that he is crazy, though...';
							} else {
								if (talkv == 6) {
									taverntalk = 'I read that undead creatures are vulnerable to black magic. I shiver at the mere thought of meeting an undead zombie.';
								} else {
									if (talkv == 7) {
										taverntalk = 'I really appreciate geography. I have studied many maps of this country. I can name any mountain, any lake or any city in Andora!';
									} else {
										if (talkv == 8) {
											taverntalk = 'Savina is famous for its market. There are constantly people there selling and buying goods from all over the world.';
										} else {
											if (talkv == 9) {
												taverntalk = 'I am practicing my methalas. Do you know the language? IlÃ©men gimna, han derth le? It\'s ancient elvish, you see.\rI read that Savina is called Simris and Bavelock called Bethnarin in the language.';
											} else {
												if (talkv == 10) {
													taverntalk = 'Have you seen Donovan? He is the magician doing fire tricks outside. I am constantly impressed by what he can do.';
												} else {
													if (talkv == 11) {
														taverntalk = 'Donovan the magician is actually a close friend of mine! You should go see him do his tricks.';
													} else {
														if (talkv == 12) {
															taverntalk = 'There are many felk who come in here. Felk are those tailed people with large ears. Well, I say people... Technically they aren\'t people.';
														} else {
															if (talkv == 13) {
																taverntalk = 'I know a guy in town who fell in love with a felk. That is not a common thing, not at all. But I wish the best for them.';
															} else {
																if (talkv == 14) {
																	taverntalk = 'Do not regret growing older. It is a privelege denied by many.';
																} else {
																	if (talkv == 15) {
																		taverntalk = 'I sometimes wish I had pointy ears, just like the elves. Do you know what I mean?';
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
			++talkv;
			if (talkv == 16) {
				talkv = 1;
			}
		};
		doCountertext = function () {
			++countertext;
			if (countertext > 2) {
				text_MC.textz.gotoAndPlay(7);
				clearInterval(counttextID);
				countertext = 0;
			}
		};
		doCountertext2 = function () {
			++countertext2;
			if (countertext2 > 2) {
				bhud.text_MCX.textz.gotoAndPlay(7);
				clearInterval(counttextID2);
				countertext2 = 0;
			}
		};
		doCinematic = function () {
			if (cinematic == false) {
				if (inventory_MC._currentframe > 1 && inventory_MC._currentframe <= 14) {
					inventory_MC.gotoAndPlay(15);
				}
				if (options_MC._currentframe == 2) {
					options_MC.gotoAndStop(1);
				}
				doStopWalking();
				cinematic = true;
			}
		};
		doNotrun = function () {
			if (forcenotrun == false && cinematic == false) {
				forcenotrun = true;
				if (runningz == true && restorespeed == false) {
					normalspeed -= runspeed;
					restorespeed = true;
				}
			}
		};
		doNotrun2 = function () {
			if (forcenotrun == true && cinematic == false) {
				forcenotrun = false;
				if (runningz == true && restorespeed == true) {
					normalspeed += runspeed;
					restorespeed = false;
				}
			}
		};
		walkingspeed1 = 2;
		walkingspeed2 = 2;
		walkingspeed3 = 2;
		walking1 = function () {
			if (directions1 == 1) {
				var v1 = 0;
				while (v1 < walking1chars.length) {
					walking1chars[v1]._x -= walkingspeed1;
					walking1chars[v1].gotoAndStop(1);
					++v1;
				}
			} else {
				if (directions1 == 2) {
					var v1 = 0;
					while (v1 < walking1chars.length) {
						walking1chars[v1]._x += walkingspeed1;
						walking1chars[v1].gotoAndStop(2);
						++v1;
					}
				} else {
					if (directions1 == 3) {
						var v1 = 0;
						while (v1 < walking1chars.length) {
							walking1chars[v1]._y -= walkingspeed1;
							walking1chars[v1].gotoAndStop(3);
							++v1;
						}
					} else {
						if (directions1 == 4) {
							var v1 = 0;
							while (v1 < walking1chars.length) {
								walking1chars[v1]._y += walkingspeed1;
								walking1chars[v1].gotoAndStop(4);
								++v1;
							}
						}
					}
				}
			}
		};
		walking2 = function () {
			if (directions2 == 1) {
				var v1 = 0;
				while (v1 < walking2chars.length) {
					walking2chars[v1]._x -= walkingspeed2;
					walking2chars[v1].gotoAndStop(1);
					++v1;
				}
			} else {
				if (directions2 == 2) {
					var v1 = 0;
					while (v1 < walking2chars.length) {
						walking2chars[v1]._x += walkingspeed2;
						walking2chars[v1].gotoAndStop(2);
						++v1;
					}
				} else {
					if (directions2 == 3) {
						var v1 = 0;
						while (v1 < walking2chars.length) {
							walking2chars[v1]._y -= walkingspeed2;
							walking2chars[v1].gotoAndStop(3);
							++v1;
						}
					} else {
						if (directions2 == 4) {
							var v1 = 0;
							while (v1 < walking2chars.length) {
								walking2chars[v1]._y += walkingspeed2;
								walking2chars[v1].gotoAndStop(4);
								++v1;
							}
						}
					}
				}
			}
		};
		walking3 = function () {
			if (directions3 == 1) {
				var v1 = 0;
				while (v1 < walking3chars.length) {
					walking3chars[v1]._x -= walkingspeed3;
					walking3chars[v1].gotoAndStop(1);
					++v1;
				}
			} else {
				if (directions3 == 2) {
					var v1 = 0;
					while (v1 < walking3chars.length) {
						walking3chars[v1]._x += walkingspeed3;
						walking3chars[v1].gotoAndStop(2);
						++v1;
					}
				} else {
					if (directions3 == 3) {
						var v1 = 0;
						while (v1 < walking3chars.length) {
							walking3chars[v1]._y -= walkingspeed3;
							walking3chars[v1].gotoAndStop(3);
							++v1;
						}
					} else {
						if (directions3 == 4) {
							var v1 = 0;
							while (v1 < walking3chars.length) {
								walking3chars[v1]._y += walkingspeed3;
								walking3chars[v1].gotoAndStop(4);
								++v1;
							}
						}
					}
				}
			}
		};
		dpage = new Array();
		dpage[0] = 'Douglas: Have you checked your medal list yet? It\'s in your inventory.';
		dpage[1] = 'Douglas: Did you know that the whole game was drawn with a mouse? I don\'t even own a tablet.';
		dpage[2] = 'Douglas: Did you know that the whole game was drawn with a mouse? I don\'t even own a tablet.';
		dpage[3] = 'Douglas: This game is a tribute to many old school RPG\'s like the Final Fantasy and Suikoden series.';
		dpage[4] = 'Douglas: This game is a tribute to many old school RPG\'s like the Final Fantasy and Suikoden series.';
		dpage[5] = 'Douglas: There are hotkeys for everything, so you can play the game with your keyboard instead of the mouse. Hotkeys are shown with red letters when you hover over a button. You can also see all hotkeys listed in the Options menu.';
		dpage[6] = 'Douglas: The game constantly autosaves for you, in case you forget to save manually!';
		dpage[7] = 'Douglas: You can change the text-window color if you visit Benter the windowmaker in Bavelock.';
		dpage[8] = 'Douglas: Open the Options menu with ESCAPE to change settings for audio and graphics and other gameplay options.';
		dpage[9] = 'Douglas: In battle you can press E to heal yourself if you have a potion.';
		dpage[10] = 'Douglas: If you have a shovel you can dig up items in certain places.';
		dpage[11] = 'Douglas: There are many ways to get money. By helping people, by fishing, collecting mushrooms and selling them, or fighting enemies. If you are lucky you can find gold on the ground, or even under the ground if you have a shovel to dig with.';
		dpage[12] = 'Douglas: There are 28 optional sidequests in this game. How many have you done so far? You can read that in your journal.';
		doFoundDouglas = function () {
			page1 = 'Douglas: Hey, I\'m Douglas Gavelin, I made this game. I made you.\rBOW BEFORE ME!';
			page2 = 'Douglas: So yeah, you found me. You want a medal or something?';
			page3 = 'Check your medal list in your inventory!';
			page4 = 'Douglas: Find me in every town to get the Divine Intervention medal.\rSee you around...';
			if (currentpage == 3) {
				founddouglas = 1;
				othermedal = true;
				medaltext = 'You have found Douglas ' + founddouglas + ' times of 2.';
				medal_MC.gotoAndPlay(2);
				doAutosave();
			}
		};
		doAddmedal = function () {
			++numofmedals;
			++newmedals;
			if (story == 370) {
				story = 400;
				com.newgrounds.API.unlockMedal('Awakened');
			}
			if (newmedals == 1) {
				medaltext1 = medaltext;
			} else {
				if (newmedals == 2) {
					medaltext2 = ', and the ' + medaltext;
				}
			}
			if (numofmedals == 15) {
				medaltext3 = ', you got all medals!';
				medalperfection = true;
			}
			medal_MC.gotoAndPlay(2);
			bhud.medal_MC.gotoAndPlay(2);
			doAutosave();
		};
		doMedalPoet = function () {
			if (medalpoet == false && medalpoet1 == true && medalpoet2 == true && medalpoet3 == true) {
				medalpoet = true;
				medaltext = 'Soul of a Poet';
				gotmask1 = 2;
				customitem = 'Masquerade mask';
				othermedal = false;
				doAddmedal();
				com.newgrounds.API.unlockMedal('Soul of a Poet');
			}
		};
		doMedalMeeting = function () {
			if (medalmeeting == false && medalmeeting1 == true && medalmeeting2 == true) {
				medalmeeting = true;
				medaltext = 'Divine Intervention';
				gotmask2 = 2;
				customitem = 'Ghost mask';
				othermedal = false;
				doAddmedal();
				com.newgrounds.API.unlockMedal('Divine Intervention');
			}
		};
		doGambleResult = function () {
			if (story == 153) {
				if (three == 1) {
					++three;
					chosenpos = coinpos;
					page1 = 'Leon: What is this... you actually won!\rBest out of three! See if you can do it again.';
					doStartText();
					gambling_MC.totalmoves = 25;
				} else {
					if (three == 2) {
						++three;
						chosenpos = coinpos;
						page1 = 'Leon: Best out of five!';
						doStartText();
						gambling_MC.totalmoves = 30;
					} else {
						if (three == 3) {
							LeonWin();
						}
					}
				}
			}
			if (Scenez.gambletalk.hitTest(Scenez.playerP1.coreblock)) {
				goldnum = gambleprice * 2;
				if (questgamble == 2) {
					page1 = 'Marlo: What is this! You won? How annoying!\r*' + goldnum + ' Pix added';
					questgamble = 3;
					this['obj' + questgambleX] = 'Odessa wants me to win two games in a row at the gambler in Bavelock park. I won once.';
				} else {
					if (questgamble == 3) {
						page1 = 'Marlo: I can\'t believe it! You are getting way too good at this!\r*' + goldnum + ' Pix added';
						page2 = 'Roy: I won two times in a row! I should tell Odessa about this.';
						page3 = 'Marlo: Odessa, huh? Are you talking about the girl who lost almost all her money? She definitely should stay away from gamblers in the future!';
						questgamble = 4;
						this['obj' + questgambleX] = 'I won 2 games in a row at the gambler in Bavelock park! I should tell Odessa and see what she sais.';
					} else {
						page1 = 'Marlo: What is this? You won, I can scarcely believe it! Here is your money.\r*' + goldnum + ' Pix added';
					}
				}
				doStartText();
				addingGold();
				chosenpos = coinpos;
			}
			if (Scenez.talk5.hitTest(Scenez.playerP1.coreblock)) {
				goldnum = gambleprice * 2;
				page1 = 'Porgel: You won! I can\'t believe it... But fine here\'s the money.\r*' + goldnum + ' Pix added';
				doStartText();
				addingGold();
				chosenpos = coinpos;
			}
		};
		doGambleEnd = function () {
			if (story == 153) {
				black.gotoAndPlay(2);
				gambling_MC.gotoAndPlay(40);
			} else {
				if (Scenez.gambletalk.hitTest(Scenez.actionblock)) {
					page1 = 'Marlo: You lost. Better luck next time.';
					doStartText();
					if (questgamble == 3) {
						questgamble = 2;
						this['obj' + questgambleX] = 'Odessa wants me to win two games in a row at the gambler in Bavelock park.';
					}
				}
				if (Scenez.talk5.hitTest(Scenez.actionblock)) {
					page1 = 'Jaden: You lost. Better luck next time.';
					doStartText();
				}
			}
		};
		doFoundGold = function () {
			itemname = foundgold + ' Pix';
			page1 = 'Found ' + itemname + '.';
			itempickup = true;
			text_MC.textz.gotoAndPlay(2);
			goldnum = foundgold;
			addingGold();
			if (sfxmute == false) {
				item.start();
			}
		};
		doFoundStrength = function () {
			itemname = num + ' Strength auras';
			page1 = 'Found ' + itemname + '. ' + corename + '\'s Strength improved!';
			itempickup = true;
			text_MC.textz.gotoAndPlay(2);
			addingStrengthCore();
			if (sfxmute == false) {
				item.start();
			}
		};
		doFoundDefense = function () {
			itemname = num + ' Defense auras';
			page1 = 'Found ' + itemname + '. ' + corename + '\'s Defense improved!';
			itempickup = true;
			text_MC.textz.gotoAndPlay(2);
			addingDefenseCore();
			if (sfxmute == false) {
				item.start();
			}
		};
		doFoundMagic = function () {
			itemname = num + ' Magic auras';
			page1 = 'Found ' + itemname + '. ' + corename + '\'s Magic improved!';
			itempickup = true;
			text_MC.textz.gotoAndPlay(2);
			addingMagicCore();
			if (sfxmute == false) {
				item.start();
			}
		};
		doFoundMagicdefense = function () {
			itemname = num + ' Magic Defense auras';
			page1 = 'Found ' + itemname + '. ' + corename + '\'s Magic Defense improved!';
			itempickup = true;
			text_MC.textz.gotoAndPlay(2);
			addingMagicdefenseCore();
			if (sfxmute == false) {
				item.start();
			}
		};
		doFoundAgility = function () {
			itemname = num + ' Agility auras';
			page1 = 'Found ' + itemname + '. ' + corename + '\'s Agility improved!';
			itempickup = true;
			text_MC.textz.gotoAndPlay(2);
			addingAgilityCore();
			if (sfxmute == false) {
				item.start();
			}
		};
		doFoundLuck = function () {
			itemname = num + ' Luck auras';
			page1 = 'Found ' + itemname + '. ' + corename + '\'s Luck improved!';
			itempickup = true;
			text_MC.textz.gotoAndPlay(2);
			addingLuckCore();
			if (sfxmute == false) {
				item.start();
			}
		};
		doFoundSword = function () {
			if (num == 3) {
				itemname = 'True Flame';
			} else {
				if (num == 4) {
					itemname = 'Twin Serpent Blade';
				} else {
					if (num == 5) {
						itemname = 'Mournshadow';
					} else {
						if (num == 6) {
							itemname = 'Soulcleaver';
						}
					}
				}
			}
			page1 = 'Found a hidden sword!\rYou found the legendary ' + itemname + ', with ' + this['weapon' + num] + ' in damage!';
			if (num == 6) {
				page1 += ' The Soulcleaver is the most powerful sword in Andora!';
			}
			text_MC.textz.gotoAndPlay(2);
			black.gotoAndPlay(2);
			addingSword();
			if (sfxmute == false) {
				swordswap.start();
			}
		};
		doAddC = function () {
			++collectibles;
			if (collectibles == maxcollectibles && medalherbivore == false) {
				medalherbivore = true;
				medaltext = 'Shrooms';
				gotserpentnose = 2;
				customitem = 'Serpent Nose';
				doAddmedal();
				com.newgrounds.API.unlockMedal('Shrooms');
			}
			if (sfxmute == false) {
				sound3.attachSound('grasspick');
				sound3.start();
			}
		};
		doFoundBlood = function () {
			if (text_MC.textz._currentframe == 1) {
				if (eval('shroomitem' + num) == false) {
					itemname = 'Bloodsprout mushroom';
					page1 = 'Harvested ' + itemname + '.';
					if (gotfirstc == false) {
						page1 += '\rCollect mushrooms and butterflies to sell, or to concoct potions (if you have three or more ingredients to use and an empty bottle).\rView them in your inventory.';
					}
					++shroom1;
					gotfirstc = true;
					gotfirstshroom1 = true;
					itempickup2 = true;
					doStartText();
					doAddC();
					this['shroomitem' + num] = true;
				} else {
					page1 = 'These Bloodsprout mushrooms are already looted.';
					doStartText();
				}
			}
		};
		doFoundCap = function () {
			if (text_MC.textz._currentframe == 1) {
				if (eval('shroomitem' + num) == false) {
					itemname = 'Spider Cap mushroom';
					page1 = 'Harvested ' + itemname + '.';
					if (gotfirstc == false) {
						page1 += '\rCollect mushrooms and butterflies to sell, or to concoct potions (if you have three or more ingredients to use and an empty bottle).\rView them in your inventory.';
					}
					++shroom2;
					gotfirstc = true;
					gotfirstshroom2 = true;
					itempickup2 = true;
					doStartText();
					doAddC();
					this['shroomitem' + num] = true;
				} else {
					page1 = 'These Spider Cap mushrooms are already looted.';
					doStartText();
				}
			}
		};
		doFoundFinger = function () {
			if (text_MC.textz._currentframe == 1) {
				if (eval('shroomitem' + num) == false) {
					itemname = 'Arbog Finger mushroom';
					page1 = 'Harvested ' + itemname + '.';
					if (gotfirstc == false) {
						page1 += '\rCollect mushrooms and butterflies to sell, or to concoct potions (if you have three or more ingredients to use and an empty bottle).\rView them in your inventory.';
					}
					++shroom3;
					gotfirstc = true;
					gotfirstshroom3 = true;
					itempickup2 = true;
					doStartText();
					doAddC();
					this['shroomitem' + num] = true;
				} else {
					page1 = 'These Arbog Finger mushrooms are already looted.';
					doStartText();
				}
			}
		};
		doFoundMoon = function () {
			if (text_MC.textz._currentframe == 1) {
				if (eval('shroomitem' + num) == false) {
					itemname = 'Moonflame Stalk mushroom';
					page1 = 'Harvested ' + itemname + '.';
					if (gotfirstc == false) {
						page1 += '\rCollect mushrooms and butterflies to sell, or to concoct potions (if you have three or more ingredients to use and an empty bottle).\rView them in your inventory.';
					}
					++shroom4;
					gotfirstc = true;
					gotfirstshroom4 = true;
					itempickup2 = true;
					doStartText();
					doAddC();
					this['shroomitem' + num] = true;
				} else {
					page1 = 'These Moonflame Stalk mushrooms are already looted.';
					doStartText();
				}
			}
		};
		doFoundSun = function () {
			if (text_MC.textz._currentframe == 1) {
				if (eval('butterflyitem' + num) == false) {
					itemname = 'Suncrest butterfly';
					page1 = 'Caught a ' + itemname + '!';
					if (gotfirstc == false) {
						page1 += '\rCollect mushrooms and butterflies to sell, or to concoct potions (if you have three or more ingredients to use and an empty bottle).\rView them in your inventory.';
					}
					++butterfly1;
					gotfirstc = true;
					gotfirstfly1 = true;
					itempickup3 = true;
					doStartText();
					doAddC();
					this['butterflyitem' + num] = true;
				} else {
					page1 = 'You cannot catch any more Suncrest butterflies here.';
					doStartText();
				}
			}
		};
		doFoundRed = function () {
			if (text_MC.textz._currentframe == 1) {
				if (eval('butterflyitem' + num) == false) {
					itemname = 'Red Pearl butterfly';
					page1 = 'Caught a ' + itemname + '!';
					if (gotfirstc == false) {
						page1 += '\rCollect mushrooms and butterflies to sell, or to concoct potions (if you have three or more ingredients to use and an empty bottle).\rView them in your inventory.';
					}
					++butterfly2;
					gotfirstc = true;
					gotfirstfly2 = true;
					itempickup3 = true;
					doStartText();
					doAddC();
					this['butterflyitem' + num] = true;
					if (questsick == 2) {
						questsick = 3;
						this['obj' + questsickX] = 'I found a Red Pearl butterfly, I should go back to Meldanya in Bavelock to cure her son.';
						page2 = 'I found a Red Pearl butterfly! I should go back to Meldanya in Bavelock to cure her son.';
					}
				} else {
					page1 = 'You cannot catch any more Red Pearl butterflies here.';
					doStartText();
				}
			}
		};
		doFoundArtifact = function () {
			if (questitemhunter == 1) {
				questitemhunter = 2;
				page1 = 'Found ' + itemname + '! Someone must be willing to pay a lot of money for this.';
				questitemhunterX = numquests;
				newquest = 'There must be someone who would pay money for this artifact I found.';
				questname = 'Item hunter';
				addJournal();
			} else {
				if (questitemhunter == 2) {
					page1 = 'Found ' + itemname + '! Someone must be willing to pay a lot of money for this.';
				} else {
					page1 = 'Found ' + itemname + '! Lupel in Savina must want this artifact!';
					this['obj' + questitemhunterX] = 'I have found an artifact I can sell to Lupel in Savina.';
				}
			}
			itempickup = true;
			text_MC.textz.gotoAndPlay(2);
			if (sfxmute == false) {
				item.start();
			}
		};
		doFoundPotion = function () {
			itemname = 'Potion';
			if (concoct == false) {
				page1 = 'Found ' + itemname + '.';
			} else {
				page1 = 'You made a ' + itemname + '.';
			}
			itempickup = true;
			if (gotfirstpotion == false) {
				page1 += '\rUse to replenish health!';
				page2 = 'In battle you use Potions in the Item menu, outside battle you use it in your inventory.\rPress SPACE to open your inventory.';
				gotfirstpotion = true;
				itempickup = false;
				colorstill = true;
			}
			num = 1;
			addPotion();
			text_MC.textz.gotoAndPlay(2);
			if (sfxmute == false) {
				item.start();
			}
		};
		addPotion = function () {
			potion += num;
			if (potion > 100) {
				potion = 99;
			}
			if (gotfirstpotion == false) {
				gotfirstpotion = true;
			}
		};
		doFoundElixir = function () {
			itemname = 'Elixir';
			if (concoct == false) {
				page1 = 'Found ' + itemname + '.';
			} else {
				page1 = 'You made an ' + itemname + '.';
			}
			itempickup = true;
			if (gotfirstelixir == false) {
				page1 += '\rUse to replenish mana!';
				gotfirstelixir = true;
				colorstill = true;
			}
			num = 1;
			addElixir();
			text_MC.textz.gotoAndPlay(2);
			if (sfxmute == false) {
				item.start();
			}
		};
		addElixir = function () {
			elixir += num;
			if (elixir > 100) {
				elixir = 99;
			}
			if (gotfirstelixir == false) {
				gotfirstelixir = true;
			}
		};
		doFoundEther = function () {
			itemname = 'Ether';
			if (concoct == false) {
				page1 = 'Found ' + itemname + '.';
			} else {
				page1 = 'You made an ' + itemname + '.';
			}
			itempickup = true;
			if (gotfirstether == false) {
				page1 += '\rUse to replenish health and mana in battle!';
				gotfirstether = true;
				colorstill = true;
			}
			num = 1;
			addEther();
			text_MC.textz.gotoAndPlay(2);
			if (sfxmute == false) {
				item.start();
			}
		};
		addEther = function () {
			ether += num;
			if (ether > 100) {
				ether = 99;
			}
			if (gotfirstether == false) {
				gotfirstether = true;
			}
		};
		doFoundRemedy = function () {
			itemname = 'Remedy';
			if (concoct == false) {
				page1 = 'Found ' + itemname + '.';
			} else {
				page1 = 'You made a ' + itemname + '.';
			}
			itempickup = true;
			if (gotfirstremedy == false) {
				page1 += '\rUse to heal status ailments in battle!';
				gotfirstremedy = true;
				colorstill = true;
			}
			num = 1;
			addRemedy();
			text_MC.textz.gotoAndPlay(2);
			if (sfxmute == false) {
				item.start();
			}
		};
		addRemedy = function () {
			remedy += num;
			if (remedy > 100) {
				remedy = 99;
			}
			if (gotfirstremedy == false) {
				gotfirstremedy = true;
			}
		};
		addLimit = function () {
			limit += num;
			if (limit > 100) {
				limit = 99;
			}
			if (gotfirstlimit == false) {
				gotfirstlimit = true;
			}
		};
		doFoundLimit = function () {
			itemname = 'Limit Boost';
			if (concoct == false) {
				page1 = 'Found ' + itemname + '.';
			} else {
				page1 = 'You made a ' + itemname + '.';
			}
			itempickup = true;
			if (gotfirstlimit == false) {
				page1 += '\rUse to gain instant Limit Break in battle!';
				gotfirstlimit = true;
				colorstill = true;
			}
			num = 1;
			addLimit();
			text_MC.textz.gotoAndPlay(2);
			if (sfxmute == false) {
				item.start();
			}
		};
		addBottle = function () {
			bottle += num;
			if (bottle > 100) {
				bottle = 99;
			}
			if (gotfirstbottle == false) {
				gotfirstbottle = true;
			}
		};
		doFoundBottle = function () {
			itemname = 'Empty Bottle';
			if (concoct == false) {
				page1 = 'Found ' + itemname + '.';
			} else {
				page1 = 'You made a ' + itemname + '.';
			}
			itempickup = true;
			if (gotfirstbottle == false) {
				page1 += '\rUse to create your own potions. Collect mushrooms and butterflies to fill it with to concoct potions.';
				gotfirstbottle = true;
				colorstill = true;
			}
			num = 1;
			addBottle();
			text_MC.textz.gotoAndPlay(2);
			if (sfxmute == false) {
				item.start();
			}
		};
		doStopWalking = function () {
			if (Scenez.playerP1._currentframe < 9) {
				if (stuck == false && sfxmute == false) {
					doFootstep();
				}
				if (stand == 1) {
					Scenez.playerP1.gotoAndStop(9);
					Scenez.playerP2.gotoAndStop(9);
					if (farsight == false) {
						Scenez.viewblock.gotoAndStop(1);
					}
				}
				if (stand == 2) {
					Scenez.playerP1.gotoAndStop(10);
					Scenez.playerP2.gotoAndStop(10);
					if (farsight == false) {
						Scenez.viewblock.gotoAndStop(2);
					}
				}
				if (stand == 3) {
					Scenez.playerP1.gotoAndStop(11);
					Scenez.playerP2.gotoAndStop(11);
					if (farsight == false) {
						Scenez.viewblock.gotoAndStop(3);
					}
				}
				if (stand == 4) {
					Scenez.playerP1.gotoAndStop(12);
					Scenez.playerP2.gotoAndStop(12);
					if (farsight == false) {
						Scenez.viewblock.gotoAndStop(4);
					}
				}
				if (stand == 5) {
					Scenez.playerP1.gotoAndStop(13);
					Scenez.playerP2.gotoAndStop(13);
					if (farsight == false) {
						Scenez.viewblock.gotoAndStop(5);
					}
				}
				if (stand == 6) {
					Scenez.playerP1.gotoAndStop(14);
					Scenez.playerP2.gotoAndStop(14);
					if (farsight == false) {
						Scenez.viewblock.gotoAndStop(6);
					}
				}
				if (stand == 7) {
					Scenez.playerP1.gotoAndStop(15);
					Scenez.playerP2.gotoAndStop(15);
					if (farsight == false) {
						Scenez.viewblock.gotoAndStop(7);
					}
				}
				if (stand == 8) {
					Scenez.playerP1.gotoAndStop(16);
					Scenez.playerP2.gotoAndStop(16);
					if (farsight == false) {
						Scenez.viewblock.gotoAndStop(8);
					}
				}
			}
		};
		doPlayer1 = function () {
			Scenez.playerP1._visible = true;
			Scenez.playerP2._visible = false;
			playerZ = 1;
		};
		doPlayer2 = function () {
			Scenez.playerP1._visible = false;
			Scenez.playerP2._visible = true;
			playerZ = 2;
		};
		doSwordSwap = function () {
			if (sfxmute == false) {
				swordswap.start();
			}
		};
		changeSword1 = function () {
			sword = 1;
			swordname = 'Storm';
			currentweapon = weapon1;
		};
		changeSword2 = function () {
			sword = 2;
			swordname = 'Climhazzard';
			currentweapon = weapon2;
		};
		changeSword3 = function () {
			sword = 3;
			swordname = 'True Flame';
			currentweapon = weapon3;
		};
		changeSword4 = function () {
			sword = 4;
			swordname = 'Twin Serpent Blade';
			currentweapon = weapon4;
		};
		changeSword5 = function () {
			sword = 5;
			swordname = 'Mournshadow';
			currentweapon = weapon5;
		};
		changeSword6 = function () {
			sword = 6;
			swordname = 'Soulcleaver';
			currentweapon = weapon6;
		};
		doTestSave = function () {
			testvar = 'testing';
			savetest = new Object();
			savetest.testvar = testvar;
			savetestSO = SharedObject.getLocal('savetestInfo');
			savetestSO.data.testDat = savetest;
			flushstatus = savetestSO.flush();
			savetestSO = SharedObject.getLocal('savetestInfo');
			if (flushstatus == true && savetestSO.data.testDat.testvar == 'testing') {
				cansave = true;
			} else {
				cansave = false;
			}
		};
		doTestSave();
		doAutosave = function () {
			autotxt.gotoAndPlay(2);
			inventory_MC.autotxt.gotoAndPlay(2);
			doTestSave();
			if (cansave == true) {
				if (player._x != undefined) {
					playerX = player._x;
					playerY = player._y;
				}
				if (slot != 10) {
					saveclockDate = new Date();
					savedateday = saveclockDate.getDate();
					savedateyear = saveclockDate.getFullYear();
					savedatemonth = saveclockDate.getMonth() + 1;
					saveseconds = saveclockDate.getSeconds();
					saveminutes = saveclockDate.getMinutes();
					savehours = saveclockDate.getHours();
					this['savePlayerInfo' + (slot + 3)]();
				}
				loadz = true;
			}
		};
		doQuicksave = function () {
			if (text_MC.textz._currentframe == 1) {
				inventory_MC.autotxt.gotoAndPlay(2);
				if (slot != 10) {
					saveclockDate = new Date();
					savedateday = saveclockDate.getDate();
					savedateyear = saveclockDate.getFullYear();
					savedatemonth = saveclockDate.getMonth() + 1;
					saveseconds = saveclockDate.getSeconds();
					saveminutes = saveclockDate.getMinutes();
					savehours = saveclockDate.getHours();
					playerX = Scenez.playerP1._x;
					playerY = Scenez.playerP1._y;
					this['savePlayerInfo' + slot]();
					loadz = true;
				}
			}
		};
		saveGlow = function () {
			j = 1;
			while (j <= 6) {
				this['slot' + j]._visible = false;
				if (eval('player' + j + 'SO.data.playerDat.corename') == undefined) {
					this['s' + j]._visible = false;
				}
				++j;
			}
			this['slot' + clearslotz]._visible = true;
		};
		saveRollover = function () {
			if (yousure_MC._currentframe == 1) {
				previewnum = i;
				clearslotz = i;
				showData();
				saveGlow();
			}
		};
		saveRollout = function () {
			if (firstsave_MC._currentframe != 2) {
				firstsave_MC.gotoAndStop(1);
			}
			if (yousure_MC._currentframe == 1) {
				if (inf._currentframe != 3) {
					inf.gotoAndStop(1);
				}
				previewnum = 0;
				clearslotz = 0;
				saveGlow();
			}
		};
		showData = function () {
			if (eval('player' + i + 'SO.data.playerDat.corename') == undefined) {
				inf.gotoAndStop(4);
				var fmt = inf.name_txt.getTextFormat();
				inf.name_txt.setNewTextFormat(fmt);
				inf.name_txt.text = 'Available slot';
			} else {
				inf.gotoAndStop(3);
				var fmt = inf.name_txt.getTextFormat();
				inf.name_txt.setNewTextFormat(fmt);
				var fmt = inf.progress_txt.getTextFormat();
				inf.progress_txt.setNewTextFormat(fmt);
				var fmt = inf.time_txt.getTextFormat();
				inf.time_txt.setNewTextFormat(fmt);
				if (firstsave_MC._currentframe != 2) {
					firstsave_MC.gotoAndPlay(3);
				}
				this['em' + i]._visible = false;
				inf.name_txt.text = eval('player' + i + 'SO.data.playerDat.corename');
				if (eval('player' + i + 'SO.data.playerDat.counterhour') < 10) {
					counterhourZ = '0' + eval('player' + i + 'SO.data.playerDat.counterhour');
				} else {
					counterhourZ = eval('player' + i + 'SO.data.playerDat.counterhour');
				}
				if (eval('player' + i + 'SO.data.playerDat.counterminute') < 10) {
					counterminuteZ = '0' + eval('player' + i + 'SO.data.playerDat.counterminute');
				} else {
					counterminuteZ = eval('player' + i + 'SO.data.playerDat.counterminute');
				}
				if (eval('player' + i + 'SO.data.playerDat.counter') < 10) {
					counterZ = '0' + eval('player' + i + 'SO.data.playerDat.counter');
				} else {
					counterZ = eval('player' + i + 'SO.data.playerDat.counter');
				}
				if (eval('player' + i + 'SO.data.playerDat.counterhour') == 0) {
					inf.progress_txt.text = counterminuteZ + 'm : ' + counterZ + 's';
				} else {
					inf.progress_txt.text = counterhourZ + 'h : ' + counterminuteZ + 'm';
				}
				if (eval('player' + i + 'SO.data.playerDat.savedateday') < 10) {
					this['savedateday' + i + 'z'] = '0' + eval('player' + i + 'SO.data.playerDat.savedateday');
				} else {
					this['savedateday' + i + 'z'] = eval('player' + i + 'SO.data.playerDat.savedateday');
				}
				if (eval('player' + i + 'SO.data.playerDat.savedatemonth') < 10) {
					this['savedatemonth' + i + 'z'] = '0' + eval('player' + i + 'SO.data.playerDat.savedatemonth');
				} else {
					this['savedatemonth' + i + 'z'] = eval('player' + i + 'SO.data.playerDat.savedatemonth');
				}
				if (eval('player' + i + 'SO.data.playerDat.savedateyear') < 10) {
					this['savedateyear' + i + 'z'] = '0' + eval('player' + i + 'SO.data.playerDat.savedateyear');
				} else {
					this['savedateyear' + i + 'z'] = eval('player' + i + 'SO.data.playerDat.savedateyear');
				}
				inf.time_txt.text = eval('savedateyear' + i + 'z') + '-' + eval('savedatemonth' + i + 'z') + '-' + eval('savedateday' + i + 'z');
			}
		};
		doBavelockHouse = function () {
			playerX = Scenez.player._x;
			playerY = Scenez.player._y;
			areascreen = 4;
			doGotoGame();
			if (sfxmute == false) {
				sound2.attachSound('doorclose');
				sound2.start();
			}
		};
		doSavinaHouse = function () {
			playerX = Scenez.player._x;
			playerY = Scenez.player._y;
			areascreen = 37;
			doGotoGame();
			if (sfxmute == false) {
				sound2.attachSound('doorclose');
				sound2.start();
			}
		};
		doGoinhouse = function () {
			footstepsound = 3;
			if (sfxmute == false) {
				sound2.attachSound('doorclose');
				sound2.start();
			}
			doPlayer1();
			playerX = player._x;
			playerY = player._y;
			doGotoGame();
		};
		doGotoGame = function () {
			if (walkload == false) {
				walkfpz = 0;
				counterWalk = 0;
				darkscene = false;
				if (story >= 210 && story <= 221) {
					gotoAndPlay('GameScene');
				} else {
					gotoAndStop('GameScene');
				}
				if (story >= 161 && story <= 171) {
					areascreen = 37;
					Scenez.gotoAndStop('Savina');
				} else {
					if (areascreen == 1) {
						Scenez.gotoAndStop('Everthorn1');
						footstepsound = 1;
						areabattle = 1;
						areabg = 1;
						areaname = 'Everthorn Forest';
					} else {
						if (areascreen == 2) {
							Scenez.gotoAndStop('Everthorn2');
							footstepsound = 1;
							areabattle = 1;
							areabg = 1;
							areaname = 'Everthorn Forest';
							currentstage = 3;
						} else {
							if (areascreen == 3) {
								Scenez.gotoAndStop('Map');
								footstepsound = 0;
								areabattle = 2;
								areabg = 2;
								areaname = 'World Map';
								coloring = new Array(Scenez.playerP1, Scenez.playerP2);
								var v2 = 0;
								while (v2 < coloring.length) {
									myColor = new Color(coloring[v2]);
									myColor.setTransform({'rb': 0, 'gb': 0, 'bb': 0});
									++v2;
								}
							} else {
								if (areascreen == 4) {
									Scenez.gotoAndStop('Bavelock');
									footstepsound = 2;
									areabattle = 2;
									areabg = 3;
									areaname = 'Bavelock City';
								} else {
									if (areascreen == 5) {
										Scenez.gotoAndStop('bhouse2');
									} else {
										if (areascreen == 6) {
											Scenez.gotoAndStop('bhouse3');
										} else {
											if (areascreen == 7) {
												Scenez.gotoAndStop('bhouse4');
											} else {
												if (areascreen == 8) {
													Scenez.gotoAndStop('bhouse5');
												} else {
													if (areascreen == 9) {
														Scenez.gotoAndStop('bhouse6');
													} else {
														if (areascreen == 10) {
															Scenez.gotoAndStop('bhouse7');
														} else {
															if (areascreen == 11) {
																Scenez.gotoAndStop('bhouse8');
															} else {
																if (areascreen == 12) {
																	Scenez.gotoAndStop('bhouse9');
																} else {
																	if (areascreen == 13) {
																		Scenez.gotoAndStop('bhouse10');
																	} else {
																		if (areascreen == 14) {
																			Scenez.gotoAndStop('bhouse11');
																		} else {
																			if (areascreen == 15) {
																				Scenez.gotoAndStop('bhouse12');
																			} else {
																				if (areascreen == 16) {
																					Scenez.gotoAndStop('bhouse13');
																				} else {
																					if (areascreen == 17) {
																						Scenez.gotoAndStop('bhouse14');
																					} else {
																						if (areascreen == 18) {
																							Scenez.gotoAndStop('bhouse15');
																						} else {
																							if (areascreen == 19) {
																								Scenez.gotoAndStop('bhouse16');
																							} else {
																								if (areascreen == 20) {
																									Scenez.gotoAndStop('bhouse17');
																								} else {
																									if (areascreen == 21) {
																										Scenez.gotoAndStop('bhouse18');
																									} else {
																										if (areascreen == 22) {
																											Scenez.gotoAndStop('bhouse19');
																										} else {
																											if (areascreen == 23) {
																												Scenez.gotoAndStop('bhouse20');
																											} else {
																												if (areascreen == 24) {
																													Scenez.gotoAndStop('bhouse2up');
																													areaname = 'Bavelock City';
																												} else {
																													if (areascreen == 25) {
																														Scenez.gotoAndStop('bhouse7up');
																													} else {
																														if (areascreen == 26) {
																															Scenez.gotoAndStop('bhouse8up');
																														} else {
																															if (areascreen == 27) {
																																Scenez.gotoAndStop('bhouse15up');
																															} else {
																																if (areascreen == 28) {
																																	Scenez.gotoAndStop('Gwydion');
																																	doPlayer1();
																																	footstepsound = 1;
																																	areabattle = 1;
																																	areabg = 1;
																																	areaname = 'Gwydion Woods';
																																} else {
																																	if (areascreen == 29) {
																																		Scenez.gotoAndStop('Whisper1');
																																		doPlayer1();
																																		footstepsound = 3;
																																		areabattle = 4;
																																		areabg = 6;
																																		areaname = 'Blackwhisper Cave';
																																		coloring = new Array(Scenez.playerP1, Scenez.playerP2);
																																		var v2 = 0;
																																		while (v2 < coloring.length) {
																																			myColor = new Color(coloring[v2]);
																																			myColor.setTransform({'rb': darkcolor, 'gb': darkcolor, 'bb': darkcolor});
																																			++v2;
																																		}
																																	} else {
																																		if (areascreen == 30) {
																																			Scenez.gotoAndStop('Whisper2');
																																			footstepsound = 3;
																																			areabattle = 4;
																																			areabg = 6;
																																			areaname = 'Blackwhisper Cave';
																																			coloring = new Array(Scenez.playerP1, Scenez.playerP2);
																																			var v2 = 0;
																																			while (v2 < coloring.length) {
																																				myColor = new Color(coloring[v2]);
																																				myColor.setTransform({'rb': darkcolor, 'gb': darkcolor, 'bb': darkcolor});
																																				++v2;
																																			}
																																		} else {
																																			if (areascreen == 49) {
																																				Scenez.gotoAndStop('Whisper3');
																																				footstepsound = 3;
																																				areabattle = 4;
																																				areabg = 6;
																																				areaname = 'Blackwhisper Cave';
																																				coloring = new Array(Scenez.playerP1, Scenez.playerP2);
																																				var v2 = 0;
																																				while (v2 < coloring.length) {
																																					myColor = new Color(coloring[v2]);
																																					myColor.setTransform({'rb': darkcolor, 'gb': darkcolor, 'bb': darkcolor});
																																					++v2;
																																				}
																																			} else {
																																				if (areascreen == 31) {
																																					Scenez.gotoAndStop('SavinaX');
																																					footstepsound = 4;
																																					areabattle = 2;
																																					areabg = 2;
																																					areaname = 'Savina City';
																																				} else {
																																					if (areascreen == 37) {
																																						Scenez.gotoAndStop('Savina');
																																						footstepsound = 4;
																																						areabattle = 2;
																																						areabg = 3;
																																						areaname = 'Savina City';
																																					} else {
																																						if (areascreen == 38) {
																																							Scenez.gotoAndStop('shouse1');
																																						} else {
																																							if (areascreen == 39) {
																																								Scenez.gotoAndStop('shouse2');
																																							} else {
																																								if (areascreen == 40) {
																																									Scenez.gotoAndStop('shouse3');
																																								} else {
																																									if (areascreen == 41) {
																																										Scenez.gotoAndStop('shouse4');
																																									} else {
																																										if (areascreen == 42) {
																																											Scenez.gotoAndStop('shouse5');
																																										} else {
																																											if (areascreen == 43) {
																																												Scenez.gotoAndStop('shouse6');
																																											} else {
																																												if (areascreen == 44) {
																																													Scenez.gotoAndStop('shouse7');
																																												} else {
																																													if (areascreen == 45) {
																																														Scenez.gotoAndStop('shouse8');
																																													} else {
																																														if (areascreen == 46) {
																																															Scenez.gotoAndStop('shouse9');
																																														} else {
																																															if (areascreen == 47) {
																																																Scenez.gotoAndStop('shouse1up');
																																															} else {
																																																if (areascreen == 48) {
																																																	Scenez.gotoAndStop('shouse5up');
																																																} else {
																																																	if (areascreen == 32) {
																																																		Scenez.gotoAndStop('Fisherhouse');
																																																		footstepsound = 1;
																																																		areabattle = 2;
																																																		areabg = 2;
																																																		areaname = 'Fisherhouse';
																																																	} else {
																																																		if (areascreen == 33) {
																																																			Scenez.gotoAndStop('LoneHouse');
																																																			footstepsound = 3;
																																																			areabattle = 2;
																																																			areabg = 2;
																																																			areaname = 'Fisherhouse';
																																																		} else {
																																																			if (areascreen == 34) {
																																																				Scenez.gotoAndStop('Bridge');
																																																				footstepsound = 4;
																																																				areabattle = 2;
																																																				areabg = 2;
																																																				areaname = 'Goldbrim Bridge';
																																																			} else {
																																																				if (areascreen == 35) {
																																																					Scenez.gotoAndStop('Mogwai');
																																																					footstepsound = 1;
																																																					areabattle = 5;
																																																					areabg = 7;
																																																					areaname = 'Mogwai Mountains';
																																																				} else {
																																																					if (areascreen == 36) {
																																																						Scenez.gotoAndStop('Passage');
																																																						footstepsound = 2;
																																																						areabattle = 3;
																																																						areabg = 4;
																																																						areaname = 'Thieves\' Passage';
																																																						darkscene = true;
																																																						coloring = new Array(Scenez.playerP1, Scenez.playerP2);
																																																						var v2 = 0;
																																																						while (v2 < coloring.length) {
																																																							myColor = new Color(coloring[v2]);
																																																							myColor.setTransform({'rb': darkcolor / 2, 'gb': darkcolor / 2, 'bb': darkcolor / 2});
																																																							++v2;
																																																						}
																																																					} else {
																																																						if (areascreen == 50) {
																																																							Scenez.gotoAndStop('firstdream');
																																																							footstepsound = 0;
																																																							areabattle = 2;
																																																							areabg = 2;
																																																							areaname = 'Dream';
																																																						} else {
																																																							if (areascreen == 51) {
																																																								Scenez.gotoAndStop('Cemetary');
																																																								footstepsound = 1;
																																																								areabattle = 2;
																																																								areabg = 2;
																																																								areaname = 'Nightshade Cemetary';
																																																							}
																																																						}
																																																					}
																																																				}
																																																			}
																																																		}
																																																	}
																																																}
																																															}
																																														}
																																													}
																																												}
																																											}
																																										}
																																									}
																																								}
																																							}
																																						}
																																					}
																																				}
																																			}
																																		}
																																	}
																																}
																															}
																														}
																													}
																												}
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
				Scenez.playerP1._x = playerX;
				Scenez.playerP1._y = playerY;
			}
			if (autoscreensave == true) {
				if (dosave == true) {
					playerX = Scenez.playerP1._x;
					playerY = Scenez.playerP1._y;
					saveclockDate = new Date();
					savedateday = saveclockDate.getDate();
					savedateyear = saveclockDate.getFullYear();
					savedatemonth = saveclockDate.getMonth() + 1;
					saveseconds = saveclockDate.getSeconds();
					saveminutes = saveclockDate.getMinutes();
					savehours = saveclockDate.getHours();
					this['savePlayerInfo' + (slot + 3)]();
					loadz = true;
				}
				dosave = true;
			}
			walkload = true;
		};
		darkcolor = -25;
	}
	movieClip 1895	{
		frame 1 {
			stop();
		}
	}
	movieClip 1897	{
	}
	button 1901 {
		on (release) {
			_root.gotoAndPlay('Start');
		}
	}
	movieClip 1903	{
		frame 1 {
			if (_root.loadz == false) {
				this._visible = false;
			}
		}
	}
	movieClip 1905	{
		frame 1 {
			if (_root.loadz == true) {
				this._visible = false;
			}
		}
	}
	button 1908 {
		on (release) {
			if (_root.loadz == true) {
				_root.gotoAndStop('Load');
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 1912 {
		on (release) {
			_root.gotoAndStop('Special');
		}
	}
	movieClip 1913	{
		frame 83 {
			stop();
		}
	}
	movieClip 1916	{
	}
	movieClip 1919	{
		frame 1 {
			if (_root.corename != undefined) {
				gotoAndStop(95);
			}
		}
		frame 93 {
			stop();
		}
	}
	instance of movieClip 1680 APIConnector {
		onClipEvent (construct) {
			apiId = '20679:EVcXyH2H';
			encryptionKey = 'FpQeHMNwhmhMMhAfdlAEm0Ue6e7a380H';
			debugMode = 'Simulate Logged-in User';
			movieVersion = '';
			connectorType = 'Invisible';
			redirectOnNewVersion = true;
			redirectOnHostBlocked = true;
			adType = 'Video';
		}
	}
	movieClip 1693 __Packages.com.newgrounds.APIConnection {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.APIConnection) {
				var v1 = function () {
					this.reset();
				};
				com.newgrounds.APIConnection = v1;
				var v2 = v1.prototype;
				v2.__get__hostURL = function () {
					return this._hostURL;
				};
				v2.__set__hostURL = function (value) {
					this._hostURL = value;
					this.hostDomain = null;
					if (this._hostURL) {
						var v2 = this._hostURL.split('/');
						if (v2[0] != 'file:' && this._hostURL != 'localhost') {
							this.hostDomain = v2[2];
						}
					}
					if (!this.hostDomain) {
						this.hostDomain = 'localhost';
					}
					return this.__get__hostURL();
				};
				v2.__get__sandboxType = function () {
					return System.security.sandboxType;
				};
				v2.__get__isNetworkHost = function () {
					switch (this.__get__sandboxType()) {
							return true;
						case 'localWithFile':
						case 'localWithNetwork':
						case 'localTrusted':
						case 'application':
							return false;
						case 'remote':
					}
					return true;
				};
				v2.__get__hasUserSession = function () {
					return this.sessionId != null && this.sessionId != '' && this.publisherId != 0;
				};
				v2.__get__connected = function () {
					return this.connectionState == com.newgrounds.APIConnection.CONNECTED;
				};
				v2.reset = function () {
					this.connectionState = com.newgrounds.APIConnection.NOT_CONNECTED;
					this.encryptionKey = null;
					this.sessionId = null;
					this.userEmail = null;
					this.username = null;
					this.userId = 0;
					this.userpageFormat = 0;
				};
				v2.assertInitialized = function () {
					if (!this.initialized) {
						com.newgrounds.Logger.logError('You must initialized the API using API.connect() before using this command.');
						return false;
					}
					return true;
				};
				v2.assertConnected = function () {
					if (!this.connectionState == com.newgrounds.APIConnection.CONNECTED) {
						com.newgrounds.Logger.logError('You must establish a connection using API.connect() before using this command.');
						return false;
					}
					return true;
				};
				v2.sendSimpleCommand = function (command, completeHandler, parameters, secureParameters) {
					if (parameters == undefined) {
						parameters = null;
					}
					if (secureParameters == undefined) {
						secureParameters = null;
					}
					var v2 = new com.newgrounds.APICommand(command);
					v2.__set__parameters(parameters);
					v2.__set__secureParameters(secureParameters);
					if (completeHandler != null) {
						v2.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, completeHandler);
					}
					v2.send(this);
				};
				v2.sendCommand = function (command) {
					command.send(this);
				};
				v2.loadInBrowser = function (command, newWindow, parameters) {
					if (newWindow == undefined) {
						newWindow = true;
					}
					if (parameters == undefined) {
						parameters = null;
					}
					var v2 = new com.newgrounds.APICommand(command);
					v2.__set__parameters(parameters);
					v2.loadInBrowser(this, newWindow);
				};
				v1.NOT_CONNECTED = 'notConnected';
				v1.CONNECTING = 'connecting';
				v1.CONNECTED = 'connected';
				v2.connectionState = com.newgrounds.APIConnection.NOT_CONNECTED;
				v2.apiURL = 'http://www.ngads.com/gateway_v2.php';
				v2.addProperty('connected', v2.__get__connected, function () {});
				v2.addProperty('hasUserSession', v2.__get__hasUserSession, function () {});
				v2.addProperty('hostURL', v2.__get__hostURL, v2.__set__hostURL);
				v2.addProperty('isNetworkHost', v2.__get__isNetworkHost, function () {});
				v2.addProperty('sandboxType', v2.__get__sandboxType, function () {});
				ASSetPropFlags(com.newgrounds.APIConnection.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1687 __Packages.com.newgrounds.EventDispatcher {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.EventDispatcher) {
				var v1 = function () {
					this._listeners = {};
				};
				com.newgrounds.EventDispatcher = v1;
				var v2 = v1.prototype;
				v2.addEventListener = function (type, listener) {
					if (!this._listeners[type]) {
						this._listeners[type] = [];
					}
					if (typeof listener == 'function') {
						this._listeners[type].push({'target': null, 'func': listener});
					} else {
						this._listeners[type].push(listener);
					}
				};
				v2.removeEventListener = function (type, listener) {
					var v3 = this._listeners[type];
					if (v3) {
						var v5 = v3.length;
						var v2 = 0;
						while (v2 < v5) {
							if (v3[v2].func == listener || v3[v2] == listener) {
								v3.splice(v2, 1);
								return undefined;
							}
							++v2;
						}
					}
				};
				v2.dispatchEvent = function (event) {
					var v4 = this._listeners[event.__get__type()];
					if (v4) {
						var v5 = v4.length;
						var v2 = 0;
						while (v2 < v5) {
							var v3 = v4[v2];
							v3.func.call(v3.target, event);
							++v2;
						}
					}
					return true;
				};
				ASSetPropFlags(com.newgrounds.EventDispatcher.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1686 __Packages.com.newgrounds.Event {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.Event) {
				var v1 = function (type) {
					this._type = type;
				};
				com.newgrounds.Event = v1;
				var v2 = v1.prototype;
				v2.__get__type = function () {
					return this._type;
				};
				v2.addProperty('type', v2.__get__type, function () {});
				ASSetPropFlags(com.newgrounds.Event.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1688 __Packages.com.newgrounds.APIEventDispatcher {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.APIEventDispatcher) {
				var v1 = function () {
					super();
				};
				com.newgrounds.APIEventDispatcher = v1;
				com.newgrounds.APIEventDispatcher extends com.newgrounds.EventDispatcher;
				var v2 = v1.prototype;
				v1.__get__globalDispatcher = function () {
					return com.newgrounds.APIEventDispatcher._globalDispatcher;
				};
				v1.__set__globalDispatcher = function (value) {
					com.newgrounds.APIEventDispatcher._globalDispatcher = value;
					return com.newgrounds.APIEventDispatcher.__get__globalDispatcher();
				};
				v1.initEventQueue = function () {
					setInterval(com.newgrounds.APIEventDispatcher.runEventQueue, 50);
					return [];
				};
				v2.dispatchEvent = function (event) {
					com.newgrounds.APIEventDispatcher._eventQueue.push({'dispatcher': this, 'event': event});
					return true;
				};
				v2.actualDispatchEvent = function (event) {
					var v3 = super.dispatchEvent(event);
					if (com.newgrounds.APIEventDispatcher._globalDispatcher && this != com.newgrounds.APIEventDispatcher._globalDispatcher) {
						com.newgrounds.APIEventDispatcher._globalDispatcher.dispatchEvent(event);
					}
				};
				v1.runEventQueue = function (event) {
					var v3 = com.newgrounds.APIEventDispatcher._eventQueue.length;
					if (v3) {
						var v4 = com.newgrounds.APIEventDispatcher._eventQueue;
						com.newgrounds.APIEventDispatcher._eventQueue = [];
						var v1 = 0;
						while (v1 < v3) {
							var v2 = v4[v1];
							v2.dispatcher.actualDispatchEvent(v2.event);
							++v1;
						}
					}
				};
				v1._eventQueue = com.newgrounds.APIEventDispatcher.initEventQueue();
				v1.addProperty('globalDispatcher', v1.__get__globalDispatcher, v1.__set__globalDispatcher);
				ASSetPropFlags(com.newgrounds.APIEventDispatcher.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1691 __Packages.com.newgrounds.encoders.BaseN {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.encoders) {
				_global.com.newgrounds.encoders = new Object();
			}
			if (!_global.com.newgrounds.encoders.BaseN) {
				var v1 = function (hash) {
					if (hash) {
						this._hash = hash;
					} else {
						this._hash = com.newgrounds.encoders.BaseN.DEFAULT_HASH;
					}
					this._base = this._hash.length;
					this._reverseHash = new Object();
					var v2 = 0;
					while (v2 < this._hash.length) {
						this._reverseHash[this._hash.charAt(v2)] = v2;
						++v2;
					}
				};
				com.newgrounds.encoders.BaseN = v1;
				var v2 = v1.prototype;
				v2.encodeUint = function (number, minimumChars) {
					if (minimumChars == undefined) {
						minimumChars = 1;
					}
					var v2 = '';
					var v3 = number;
					while (v3 != 0) {
						v2 = this._hash.charAt(v3 % this._base) + v2;
						v3 /= this._base;
						v3 = int(v3);
					}
					while (v2.length < minimumChars) {
						v2 = this._hash.charAt(0) + v2;
					}
					return v2;
				};
				v2.decodeUint = function (encodedNumber) {
					var v3 = 0;
					var v2 = 0;
					while (v2 < encodedNumber.length) {
						v3 *= this._base;
						v3 += this._reverseHash[encodedNumber.charAt(v2)];
						++v2;
					}
					return v3;
				};
				v1.DEFAULT_HASH = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/';
				ASSetPropFlags(com.newgrounds.encoders.BaseN.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1697 __Packages.com.newgrounds.APICommand {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.APICommand) {
				var v1 = function (command) {
					super();
					this._command = command;
					this._parameters = new Object();
					this._secureParameters = new Object();
					this._hasTimeout = true;
				};
				com.newgrounds.APICommand = v1;
				com.newgrounds.APICommand extends com.newgrounds.APIEventDispatcher;
				var v2 = v1.prototype;
				v1.stopPendingCommands = function () {
					for (var v2 in com.newgrounds.APICommand._pendingCommands) {
						var v1 = com.newgrounds.APICommand._pendingCommands[v2];
						v1.close();
					}
					com.newgrounds.APICommand._pendingCommands = [];
				};
				v1.onThrottleTimer = function (event) {
					com.newgrounds.APICommand._throttleCount = 0;
					com.newgrounds.APICommand._throttleCount = 0;
					for (;;) {
						if (!(com.newgrounds.APICommand._commandQueue.length && com.newgrounds.APICommand._throttleCount < com.newgrounds.APICommand.THROTTLE_THRESHOLD)) break;
						var v1 = com.newgrounds.APICommand._commandQueue.shift();
						v1.command.send(v1.connection);
						++com.newgrounds.APICommand._throttleCount;
					}
				};
				v1.encryptHex = function (hexValue) {
					var v4 = hexValue.length % 6;
					var v3 = '';
					var v1 = 0;
					while (v1 < hexValue.length) {
						v3 += com.newgrounds.APICommand._encryptor.encodeUint(int('0x' + hexValue.substr(v1, 6)), 4);
						v1 += 6;
					}
					return v4.toString() + v3;
				};
				v2.__get__command = function () {
					return this._command;
				};
				v2.__set__command = function (value) {
					this._command = value;
					return this.__get__command();
				};
				v2.__get__hasTimeout = function () {
					return this._hasTimeout;
				};
				v2.__set__hasTimeout = function (val) {
					this._hasTimeout = val;
					return this.__get__hasTimeout();
				};
				v2.__get__parameters = function () {
					return this._parameters;
				};
				v2.__set__parameters = function (object) {
					this._parameters = new Object();
					if (object) {
						for (var v3 in object) {
							this._parameters[v3] = object[v3];
						}
					}
					return this.__get__parameters();
				};
				v2.__get__preventCache = function () {
					return this._preventCache;
				};
				v2.__set__preventCache = function (value) {
					this._preventCache = value;
					return this.__get__preventCache();
				};
				v2.__get__secureParameters = function () {
					return this._secureParameters;
				};
				v2.__set__secureParameters = function (object) {
					this._secureParameters = new Object();
					if (object) {
						for (var v3 in object) {
							this._secureParameters[v3] = object[v3];
						}
					}
					return this.__get__secureParameters();
				};
				v2.__get__hasSecureParameters = function () {
					for (var v2 in this._secureParameters) {
												return true;
					}
					return false;
				};
				v2.addFile = function (filename, data, dataField, contentType) {
					if (contentType == undefined) {
						contentType = 'application/octet-stream';
					}
					if (!this._files) {
						this._files = new Object();
					}
					var v3 = {'filename': filename, 'data': data, 'dataField': dataField, 'contentType': contentType};
					this._files[filename] = v3;
				};
				v2.removeFile = function (filename) {
					if (this._files) {
						delete this._files[filename];
					}
				};
				v2.clearFiles = function () {
					this._files = null;
				};
				v2.close = function () {
					if (this._loader) {
						clearInterval(this._timeoutTimer);
						var v2 = 0;
						while (v2 < com.newgrounds.APICommand._pendingCommands.length) {
							if (com.newgrounds.APICommand._pendingCommands[v2] == this) {
								com.newgrounds.APICommand._pendingCommands.splice(v2, 1);
								break;
							}
							++v2;
						}
						this._loader = null;
					}
				};
				v2.loadInBrowser = function (connection, newWindow) {
					this._parameters.command_id = this._command;
					this._parameters.tracker_id = connection.apiId ? connection.apiId : 1;
					if (connection.debug) {
						this._parameters.debug = 1;
					}
					var v3 = connection.apiURL + '?host=' + escape(connection.hostDomain);
					for (var v4 in this._parameters) {
						v3 += '&' + escape(v4) + '=' + escape(this._parameters[v4]);
					}
					var v6;
					if (newWindow) {
						v6 = '_blank';
					} else {
						v6 = '_top';
					}
					_root.getURL(v3, v6);
				};
				v2.send = function (connection) {
					if (com.newgrounds.APICommand._throttleCount >= com.newgrounds.APICommand.THROTTLE_THRESHOLD) {
						com.newgrounds.APICommand._commandQueue.push({'connection': connection, 'command': this});
					} else {
						this.sendInternal(connection);
					}
				};
				v2.sendInternal = function (connection) {
					var v4;
					v4 = new LoadVars();
					v4.command_id = this._command;
					v4.tracker_id = connection.apiId;
					if (connection.debug) {
						v4.debug = 1;
					}
					if (this._preventCache) {
						v4.seed = Math.random();
					}
					var v2;
					var v3;
					var v7;
					for (v2 in this._parameters) {
						v3 = this._parameters[v2];
						if (v3 != null) {
							if (typeof v3 == 'boolean') {
								v4[v2] = int(v3);
							} else {
								v4[v2] = v3;
							}
						}
					}
					if (this.__get__hasSecureParameters()) {
						var v6 = new Object();
						for (v2 in this._secureParameters) {
							v3 = this._secureParameters[v2];
							if (v3 != null) {
								if (typeof v3 == 'boolean') {
									v6[v2] = int(v3);
								} else {
									v6[v2] = v3;
								}
							}
						}
						var v8 = '';
						v7 = 0;
						while (v7 < 16) {
							v8 += com.newgrounds.APICommand.ENCRYPTOR_RADIX.charAt(int(Math.random() * com.newgrounds.APICommand.ENCRYPTOR_RADIX.length));
							++v7;
						}
						v4.command_id = 'securePacket';
						v6.command_id = this._command;
						v6.as_version = 3;
						v6.session_id = connection.sessionId;
						v6.user_email = connection.userEmail;
						v6.publisher_id = connection.publisherId;
						v6.seed = v8;
						var v13 = com.newgrounds.crypto.MD5.hash(v8);
						var v11 = com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(v6), connection.encryptionKey);
						v4.secure = com.newgrounds.APICommand.encryptHex(v13 + v11);
					}
					com.newgrounds.Logger.logInternal('Sending packet:', v4);
					var v12;
					v12 = 'application/x-www-form-urlencoded';
					for (v2 in v4) {
						if (typeof v4[v2] == 'object') {
							v4[v2] = com.newgrounds.encoders.json.JSON.encode(v4[v2]);
						}
					}
					if (this._files) {
						for (var v10 in this._files) {
							var v5 = this._files[v10];
							if (typeof v5.data == 'string') {
								v4[v10] = v5.data;
							} else {
								v4[v10] = com.newgrounds.encoders.json.JSON.encode(v5.data);
							}
						}
					}
					com.newgrounds.APICommand._pendingCommands.push(this);
					++com.newgrounds.APICommand._throttleCount;
					this.startLoader(connection.apiURL, v4, v12);
				};
				v2.startLoader = function (url, data, contentType) {
					this._loader = LoadVars(data);
					this._loader.onData = this.as2CompleteHandler;
					this._loader.contentType = contentType;
					this._loader.sendAndLoad(url, this._loader, 'POST');
					if (this._hasTimeout) {
						setInterval(this, this.onTimeout, com.newgrounds.APICommand.TIMEOUT_INTERVAL);
					}
				};
				v2.as2CompleteHandler = function (data) {
					var v3;
					var v2 = 0;
					while (v2 < com.newgrounds.APICommand._pendingCommands.length) {
						if (com.newgrounds.APICommand._pendingCommands[v2]._loader == this) {
							v3 = com.newgrounds.APICommand._pendingCommands[v2];
							break;
						}
						++v2;
					}
					v3.onComplete(data);
				};
				v2.onTimeout = function (event) {
					this.close();
					com.newgrounds.Logger.logError('Command timed out.');
					this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_TIMED_OUT));
				};
				v2.onError = function (error) {
					com.newgrounds.Logger.logError('Error when sending command:', error);
					this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_UNKNOWN));
					this.close();
				};
				v2.onComplete = function (data) {
					try {
						if (!data || data == '') {
							throw new Error();
						}
						com.newgrounds.Logger.logInternal('Received packet:', data);
						var v2 = com.newgrounds.encoders.json.JSON.decode(data);
						if (!v2) {
							throw new Error();
						}
						if (com.newgrounds.APICommand.bridge) {
							com.newgrounds.APICommand.bridge.sendEvent(v2.command_id, v2);
						}
						this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, v2, (v2 && v2.success) ? com.newgrounds.APIEvent.ERROR_NONE : com.newgrounds.APIEvent.ERROR_COMMAND_FAILED));
					}
					catch (e) {
						com.newgrounds.Logger.logError('Invalid response returned from server: ' + data);
						this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_BAD_RESPONSE));
					}
					this.close();
				};
				v1.TIMEOUT_INTERVAL = 10000;
				v1.THROTTLE_INTERVAL = 5000;
				v1.THROTTLE_THRESHOLD = 12;
				v1._throttleCount = 0;
				v1._commandQueue = [];
				v1._throttleTimer = setInterval(com.newgrounds.APICommand.onThrottleTimer, com.newgrounds.APICommand.THROTTLE_INTERVAL);
				v1.ENCRYPTOR_RADIX = '/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X';
				v1._encryptor = new com.newgrounds.encoders.BaseN(com.newgrounds.APICommand.ENCRYPTOR_RADIX);
				v1._pendingCommands = [];
				v1.CRLF = '\r\n';
				v2.addProperty('command', v2.__get__command, v2.__set__command);
				v2.addProperty('hasSecureParameters', v2.__get__hasSecureParameters, function () {});
				v2.addProperty('hasTimeout', v2.__get__hasTimeout, v2.__set__hasTimeout);
				v2.addProperty('parameters', v2.__get__parameters, v2.__set__parameters);
				v2.addProperty('preventCache', v2.__get__preventCache, v2.__set__preventCache);
				v2.addProperty('secureParameters', v2.__get__secureParameters, v2.__set__secureParameters);
				ASSetPropFlags(com.newgrounds.APICommand.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1692 __Packages.com.newgrounds.Bridge {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.Bridge) {
				var v1 = function (id) {
					this._widgetId = id;
					this._inConnection = new LocalConnection();
					this._outConnection = new LocalConnection();
					this._inConnection.receiveEvent = this.receiveEvent;
					try {
						this._inConnection.connect('rec_' + this._widgetId);
					}
					com.newgrounds.Logger.addEventListener(com.newgrounds.APIEvent.LOG, {'target': this, 'func': this.onLogMessage});
				};
				com.newgrounds.Bridge = v1;
				var v2 = v1.prototype;
				v2.onLogMessage = function (event) {
					try {
						this._outConnection.send(this._widgetId, 'sendEvent', 'trace', String(event.__get__data()));
					}
				};
				v2.sendEvent = function (command, parameters) {
					if (this._outConnection) {
						parameters = {'data': parameters};
						this._outConnection.send(this._widgetId, 'sendEvent', command, parameters);
					}
				};
				v2.receiveEvent = function (event, parameters) {};
				v2.onStatus = function (event) {};
				ASSetPropFlags(com.newgrounds.Bridge.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1689 __Packages.com.newgrounds.APIEvent {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.APIEvent) {
				var v1 = function (type, data, error) {
					super(type);
					if (data == undefined) {
						data = null;
					}
					if (error == undefined) {
						error = null;
					}
					if (!error || error == '' || error == com.newgrounds.APIEvent.ERROR_NONE) {
						this._error = com.newgrounds.APIEvent.ERROR_NONE;
						this._success = true;
					} else {
						this._error = error;
						this._success = false;
					}
					if (data) {
						this._data = data;
					} else {
						this._data = {};
					}
				};
				com.newgrounds.APIEvent = v1;
				com.newgrounds.APIEvent extends com.newgrounds.Event;
				var v2 = v1.prototype;
				v2.clone = function () {
					return new com.newgrounds.APIEvent(this.__get__type(), this._data, this._error);
				};
				v2.__get__success = function () {
					return this._success;
				};
				v2.__get__data = function () {
					return this._data;
				};
				v2.__get__error = function () {
					return this._error;
				};
				v1.COMMAND_COMPLETE = 'commandComplete';
				v1.MEDAL_UNLOCK_CONFIRMED = 'medalUnlockConfirmed';
				v1.ICON_LOADED = 'iconLoaded';
				v1.API_CONNECTED = 'movieConnected';
				v1.LOG = 'log';
				v1.MEDAL_UNLOCKED = 'medalUnlocked';
				v1.SCORES_LOADED = 'scoresLoaded';
				v1.SCORE_POSTED = 'scorePosted';
				v1.QUERY_COMPLETE = 'queryComplete';
				v1.FILE_LOADED = 'fileLoaded';
				v1.FILE_SAVED = 'fileSaved';
				v1.FILE_REQUESTED = 'fileRequested';
				v1.VOTE_COMPLETE = 'voteComplete';
				v1.ERROR_NONE = 'noError';
				v1.ERROR_UNKNOWN = 'unknownError';
				v1.ERROR_COMMAND_FAILED = 'commandFailed';
				v1.ERROR_NOT_CONNECTED = 'notConnected';
				v1.ERROR_INVALID_ARGUMENT = 'invalidArgument';
				v1.ERROR_TIMED_OUT = 'timedOut';
				v1.ERROR_BAD_FILE = 'badFile';
				v1.ERROR_BAD_RESPONSE = 'badResponse';
				v1.ERROR_SENDING_COMMAND = 'errorSendingCommand';
				v1.ERROR_HOST_BLOCKED = 'hostBlocked';
				v1.ERROR_ALREADY_VOTED = 'alreadyVoted';
				v1.ERROR_NOT_LOGGED_IN = 'notLoggedIn';
				v2.addProperty('data', v2.__get__data, function () {});
				v2.addProperty('error', v2.__get__error, function () {});
				v2.addProperty('success', v2.__get__success, function () {});
				ASSetPropFlags(com.newgrounds.APIEvent.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1708 __Packages.com.newgrounds.API {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.API) {
				var v1 = function () {};
				com.newgrounds.API = v1;
				var v2 = v1.prototype;
				v1.__get__connected = function () {
					return com.newgrounds.API._connection.__get__connected();
				};
				v1.__get__isNetworkHost = function () {
					return com.newgrounds.API._connection.__get__isNetworkHost();
				};
				v1.__get__apiId = function () {
					com.newgrounds.API._connection.assertInitialized();
					return com.newgrounds.API._connection.apiId;
				};
				v1.__get__debugMode = function () {
					return com.newgrounds.API._debugMode;
				};
				v1.__set__debugMode = function (val) {
					com.newgrounds.API._debugMode = val;
					return com.newgrounds.API.__get__debugMode();
				};
				v1.__get__publisherId = function () {
					com.newgrounds.API._connection.assertInitialized();
					return com.newgrounds.API._connection.publisherId;
				};
				v1.__get__sessionId = function () {
					com.newgrounds.API._connection.assertInitialized();
					return com.newgrounds.API._connection.sessionId;
				};
				v1.__get__hostDomain = function () {
					com.newgrounds.API._connection.assertInitialized();
					return com.newgrounds.API._connection.hostDomain;
				};
				v1.__get__hostURL = function () {
					com.newgrounds.API._connection.assertInitialized();
					return com.newgrounds.API._connection.__get__hostURL();
				};
				v1.__get__isNewgrounds = function () {
					return com.newgrounds.API._connection.publisherId == 1;
				};
				v1.__get__hasUserSession = function () {
					com.newgrounds.API._connection.assertInitialized();
					return com.newgrounds.API._connection.__get__hasUserSession();
				};
				v1.__get__username = function () {
					com.newgrounds.API._connection.assertInitialized();
					return com.newgrounds.API._connection.username;
				};
				v1.__get__userId = function () {
					com.newgrounds.API._connection.assertInitialized();
					return com.newgrounds.API._connection.userId;
				};
				v1.assertConnected = function (eventType) {
					if (eventType == undefined) {
						eventType = null;
					}
					if (com.newgrounds.API._connection.assertConnected()) {
						return true;
					} else {
						if (eventType) {
							com.newgrounds.API.dispatchEvent(eventType, null, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED);
						}
						return false;
					}
				};
				v1.__get__adsApproved = function () {
					return com.newgrounds.API._adsApproved;
				};
				v1.__get__adFeedURL = function () {
					return com.newgrounds.API._adFeedURL;
				};
				v1.__get__medals = function () {
					return com.newgrounds.API._medalsArray;
				};
				v1.__get__scoreBoards = function () {
					return com.newgrounds.API._scoreBoardsArray;
				};
				v1.__get__saveGroups = function () {
					return com.newgrounds.API._saveGroupsArray;
				};
				v1.connect = function (_root, apiId, encryptionKey, movieVersion) {
					if (encryptionKey == undefined) {
						encryptionKey = null;
					}
					if (movieVersion == undefined) {
						movieVersion = '';
					}
					com.newgrounds.APIEventDispatcher.__set__globalDispatcher(com.newgrounds.API._dispatcher);
					System.security.loadPolicyFile('http://apifiles.ngfiles.com/crossdomain.xml');
					if (com.newgrounds.API._connection.initialized) {
						com.newgrounds.Logger.logError('Connection already in progress. Please call API.disconnect() before attempting another connection.');
						com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED);
						return undefined;
					}
					var v2 = 0;
					while (apiId.charAt(v2) == ' ') {
						++v2;
					}
					apiId = apiId.slice(v2);
					v2 = apiId.length - 1;
					while (apiId.charAt(v2) == ' ') {
						--v2;
					}
					apiId = apiId.slice(0, v2 + 1);
					if (!apiId || apiId == '') {
						com.newgrounds.Logger.logError('No apiId given. Please use the API ID from your API settings page.');
						com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
						return undefined;
					}
					com.newgrounds.Logger.logMessage('====== Newgrounds API v' + com.newgrounds.API.VERSION + ' ======');
					com.newgrounds.API._connection.connectionState = com.newgrounds.APIConnection.CONNECTING;
					_root = _root;
					com.newgrounds.API._movieVersion = movieVersion;
					com.newgrounds.API._connection.apiId = apiId;
					v2 = apiId.indexOf(':');
					if (v2 != -1) {
						com.newgrounds.API._connection.trackerId = int(apiId.substring(0, v2));
					} else {
						com.newgrounds.API._connection.trackerId = int(apiId);
					}
					if (!com.newgrounds.API._connection.trackerId) {
						com.newgrounds.Logger.logError('Invalid API ID: ' + apiId);
						com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
						return undefined;
					}
					com.newgrounds.API._connection.encryptionKey = encryptionKey;
					com.newgrounds.API._connection.initialized = true;
					com.newgrounds.API._connection.__set__hostURL(_root._url);
					com.newgrounds.API.doConnect(_root);
				};
				v1.doConnect = function (flashVars) {
					if (com.newgrounds.API.__get__isNetworkHost() && com.newgrounds.API._debugMode != com.newgrounds.API.RELEASE_MODE) {
						com.newgrounds.Logger.logMessage('Live file detected, turning off debug mode.');
						com.newgrounds.API._debugMode = com.newgrounds.API.RELEASE_MODE;
					}
					if (flashVars && flashVars.NewgroundsAPI_SandboxID) {
						com.newgrounds.API._bridge = new com.newgrounds.Bridge(flashVars.NewgroundsAPI_SandboxID);
						com.newgrounds.APICommand.bridge = com.newgrounds.API._bridge;
					}
					if (com.newgrounds.API._debugMode == com.newgrounds.API.RELEASE_MODE) {
						if (flashVars) {
							if (flashVars.NewgroundsAPI_UserName) {
								com.newgrounds.API._connection.username = flashVars.NewgroundsAPI_UserName;
							}
							if (flashVars.NewgroundsAPI_UserID) {
								com.newgrounds.API._connection.userId = flashVars.NewgroundsAPI_UserID;
							}
							if (flashVars.NewgroundsAPI_PublisherID) {
								com.newgrounds.API._connection.publisherId = flashVars.NewgroundsAPI_PublisherID;
							}
							if (flashVars.NewgroundsAPI_UserpageFormat) {
								com.newgrounds.API._connection.userpageFormat = flashVars.NewgroundsAPI_UserpageFormat;
							}
							if (flashVars.NewgroundsAPI_SessionID) {
								com.newgrounds.API._connection.sessionId = flashVars.NewgroundsAPI_SessionID;
							}
							if (flashVars.NewgroundsAPI_SaveGroupID) {
								com.newgrounds.API._requestedSaveGroupId = flashVars.NewgroundsAPI_SaveGroupID;
							}
							if (flashVars.NewgroundsAPI_SaveFileID) {
								com.newgrounds.API._requestedSaveFileId = flashVars.NewgroundsAPI_SaveFileID;
							}
						}
					} else {
						com.newgrounds.API._connection.debug = true;
						if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_IN || com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_OUT) {
							com.newgrounds.API._connection.publisherId = 1;
						}
						if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_IN) {
							com.newgrounds.API._connection.sessionId = 'D3bu64p1U53R';
							com.newgrounds.API._connection.userId = 10;
							com.newgrounds.API._connection.username = 'API-Debugger';
						}
					}
					com.newgrounds.API._connection.sendSimpleCommand('connectMovie', com.newgrounds.API.onConnect, {'host': com.newgrounds.API._connection.hostDomain, 'movie_version': com.newgrounds.API._movieVersion, 'publisher_id': com.newgrounds.API._connection.publisherId});
				};
				v1.onConnect = function (event) {
					var v1 = event.__get__data();
					if (!event.__get__success()) {
						com.newgrounds.Logger.logError('Unable to connect to the API.');
						com.newgrounds.API._connection.reset();
						com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, event.__get__data(), event.__get__error());
						return undefined;
					}
					if (com.newgrounds.API.__get__debugMode() != com.newgrounds.API.RELEASE_MODE) {
						com.newgrounds.API._adFeedURL = com.newgrounds.API.TEST_AD_FEED_URL;
					} else {
						if (v1.ad_url) {
							com.newgrounds.API._adFeedURL = unescape(v1.ad_url);
						}
					}
					switch (v1.ad_status) {
						case -1:
							com.newgrounds.Logger.logWarning('Your movie is not approved to run Flash Ads.');
							break;
						case 0:
							com.newgrounds.Logger.logWarning('Your movie is still awaiting approval to run Flash Ads.');
							break;
						case 1:
							com.newgrounds.Logger.logMessage('Your movie is approved to run Flash Ads!');
					}
					com.newgrounds.API._adsApproved = v1.ad_status == 1;
					if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_HOST_BLOCKED || v1.deny_host) {
						com.newgrounds.Logger.logWarning(com.newgrounds.API._connection.hostDomain + ' does not have permission to host this movie!', 'Update your API configuration to allow this host.');
						com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {'officialURL': unescape(v1.movie_url)}, com.newgrounds.APIEvent.ERROR_HOST_BLOCKED);
						com.newgrounds.API._connection.reset();
						return undefined;
					}
					com.newgrounds.API._movieName = v1.movieName ? v1.movieName : '';
					com.newgrounds.Logger.logMessage('Connecting to the Newgrounds API Gateway...', '----- ' + v1.movie_name + ' -----');
					if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_NEW_VERSION) {
						v1.movie_version = 'Debug Mode';
					}
					if (v1.movie_version) {
						com.newgrounds.Logger.logMessage('A new version of this movie is available.', 'Current version:\t' + com.newgrounds.API._movieVersion, 'Newest version:\t' + v1.movie_version, 'Use API.loadOfficialVersion() to link to the latest version.');
						com.newgrounds.API._newVersion = true;
					} else {
						com.newgrounds.API._newVersion = false;
					}
					if (v1.request_portal_url) {
						com.newgrounds.API._connection.sendSimpleCommand('setPortalID', null, {'portal_url': com.newgrounds.API._connection.__get__hostURL()});
					}
					com.newgrounds.API._connection.sendSimpleCommand('preloadSettings', com.newgrounds.API.onMetadataLoaded, {'publisher_id': com.newgrounds.API._connection.publisherId, 'user_id': com.newgrounds.API._connection.userId});
				};
				v1.onMetadataLoaded = function (event) {
					var v11 = event.__get__data();
					var v1;
					var v7;
					if (!event.__get__success()) {
						com.newgrounds.Logger.logWarning('Unable to load movie metadata.');
						com.newgrounds.API.disconnect();
						com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, null, event.__get__error());
						return undefined;
					}
					var v10 = 0;
					if (v11.medals) {
						v10 = v11.medals.length;
						var v17;
						if (com.newgrounds.API.__get__hasUserSession()) {
							v17 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username());
						} else {
							v17 = com.newgrounds.API.loadLocal('medals_unlocked');
						}
						v1 = 0;
						while (v1 < v10) {
							var v6 = v11.medals[v1];
							var v14 = v6.medal_unlocked;
							var v16 = v17 && v17[v6.medal_id];
							var v4 = new com.newgrounds.Medal(com.newgrounds.API._connection, v6.medal_id, v6.medal_name, com.newgrounds.API.__get__hasUserSession() ? v14 : v16, v6.medal_value, v6.medal_difficulty, v6.medal_icon);
							v4.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, com.newgrounds.API.onMedalUnlocked, false, 0, true);
							v4.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, com.newgrounds.API.onMedalUnlockConfirmed, false, 0, true);
							com.newgrounds.API._medals[v4.__get__name()] = v4;
							com.newgrounds.API._medalsArray.push(v4);
							com.newgrounds.Logger.logMessage(v4);
							if (com.newgrounds.API.__get__hasUserSession() && v16 && !v14) {
								com.newgrounds.Logger.logMessage('Server missed the "' + v4.__get__name() + '" unlock. Resending...');
								v4.unlock();
							}
							++v1;
						}
					}
					com.newgrounds.Logger.logMessage(v10 + ' medal' + ((v10 != 1) ? 's' : '') + ' initialized.');
					v10 = 0;
					if (v11.score_boards) {
						v10 = v11.score_boards.length;
						v1 = 0;
						while (v1 < v10) {
							var v15 = v11.score_boards[v1];
							var v9 = new com.newgrounds.ScoreBoard(com.newgrounds.API._connection, v15.name, v15.id);
							com.newgrounds.API._scoreBoards[v9.__get__name()] = v9;
							com.newgrounds.API._scoreBoardsArray.push(v9);
							com.newgrounds.Logger.logMessage(v9);
							++v1;
						}
					}
					com.newgrounds.Logger.logMessage(v10 + ' scoreboard' + ((v10 != 1) ? 's' : '') + ' initialized.');
					v10 = 0;
					if (v11.save_groups) {
						v10 = v11.save_groups.length;
						v1 = 0;
						while (v1 < v10) {
							var v2 = v11.save_groups[v1];
							var v13 = [];
							if (v2.keys) {
								v7 = 0;
								while (v7 < v2.keys.length) {
									var v5 = v2.keys[v7];
									v13.push(new com.newgrounds.SaveKey(v5.name, v5.id, v5.type));
									++v7;
								}
							}
							var v12 = [];
							if (v2.ratings) {
								v1 = 0;
								while (v1 < v2.ratings.length) {
									var v3 = v2.ratings[v1];
									v12.push(new com.newgrounds.SaveRating(v3.name, v3.id, v3.float, v3.min, v3.max));
									++v1;
								}
							}
							var v8 = new com.newgrounds.SaveGroup(com.newgrounds.API._connection, v2.group_name, v2.group_id, v2.group_type, v13, v12);
							com.newgrounds.API._saveGroups[v8.__get__name()] = v8;
							com.newgrounds.API._saveGroupsArray.push(v8);
							com.newgrounds.Logger.logMessage(v8);
							++v1;
						}
					}
					com.newgrounds.Logger.logMessage(v10 + ' save group' + ((v10 != 1) ? 's' : '') + ' initialized.');
					if (v11.save_file_path) {
						com.newgrounds.API._saveFilePath = v11.save_file_path + '/';
						com.newgrounds.SaveFile._saveFilePath = com.newgrounds.API._saveFilePath;
						com.newgrounds.Logger.logInternal('Save file path: ' + com.newgrounds.API._saveFilePath);
					}
					if (v11.image_file_path) {
						com.newgrounds.API._imageFilePath = v11.image_file_path + '/';
						com.newgrounds.SaveFile._imageFilePath = com.newgrounds.API._imageFilePath;
						com.newgrounds.Logger.logInternal('Image file path: ' + com.newgrounds.API._imageFilePath);
					}
					com.newgrounds.Logger.logMessage('Connection complete!');
					com.newgrounds.API._connection.connectionState = com.newgrounds.APIConnection.CONNECTED;
					com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {'movieName': com.newgrounds.API._movieName, 'newVersion': com.newgrounds.API._newVersion});
					if (com.newgrounds.API._requestedSaveFileId && com.newgrounds.API._requestedSaveGroupId) {
						com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.FILE_LOADED, com.newgrounds.API.onRequestedFileLoaded);
						com.newgrounds.API.loadSaveFile(com.newgrounds.API._requestedSaveFileId, false);
					}
				};
				v1.disconnect = function () {
					if (!com.newgrounds.API._connection.__get__connected()) {
						com.newgrounds.Logger.logWarning('The Newgrounds API is already disconnected.');
						return undefined;
					}
					com.newgrounds.API._connection.reset();
					for (var v2 in com.newgrounds.API._medals) {
						var v1 = com.newgrounds.API._medals[v2];
						v1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, com.newgrounds.API.onMedalUnlocked);
						v1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, com.newgrounds.API.onMedalUnlockConfirmed);
					}
					com.newgrounds.API._newVersion = false;
					com.newgrounds.API._medals = new Object();
					com.newgrounds.API._medalsArray = [];
					com.newgrounds.API._scoreBoards = new Object();
					com.newgrounds.API._scoreBoardsArray = [];
					com.newgrounds.API._saveGroups = new Object();
					com.newgrounds.API._saveGroupsArray = [];
					com.newgrounds.API._sharedObjects = new Object();
					com.newgrounds.API._imageFilePath = null;
					com.newgrounds.API._saveFilePath = null;
					com.newgrounds.Logger.logMessage('Disconnected from the Newgrounds API.');
				};
				v1.loadNewgrounds = function () {
					com.newgrounds.API._connection.loadInBrowser('loadNewgrounds');
				};
				v1.loadOfficialVersion = function () {
					if (com.newgrounds.API._connection.assertInitialized()) {
						com.newgrounds.API._connection.loadInBrowser('loadOfficialVersion', false);
					}
				};
				v1.loadMySite = function () {
					if (com.newgrounds.API._connection.assertInitialized()) {
						com.newgrounds.API._connection.loadInBrowser('loadMySite');
					}
				};
				v1.loadCustomLink = function (linkName) {
					if (com.newgrounds.API._connection.assertInitialized()) {
						com.newgrounds.API._connection.loadInBrowser('loadCustomLink', true, {'link': linkName});
					}
				};
				v1.getMedal = function (medalName) {
					return com.newgrounds.API._medals[medalName];
				};
				v1.unlockMedal = function (medalName) {
					if (!com.newgrounds.API.assertConnected()) {
						return undefined;
					}
					var v1 = com.newgrounds.API._medals[medalName];
					if (!v1) {
						com.newgrounds.Logger.logError('No medal named "' + medalName + '" w.');
						return undefined;
					}
					v1.unlock();
				};
				v1.onMedalUnlocked = function (event) {
					if (event.__get__success()) {
						var v2 = com.newgrounds.Medal(event.__get__data());
						var v1;
						if (com.newgrounds.API.__get__hasUserSession()) {
							v1 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username());
							if (!v1) {
								v1 = new Object();
							}
							v1[v2.__get__id()] = true;
							com.newgrounds.API.saveLocal('medals_unlocked_' + com.newgrounds.API.__get__username(), v1);
						} else {
							v1 = com.newgrounds.API.loadLocal('medals_unlocked');
							if (!v1) {
								v1 = new Object();
							}
							v1[(com.newgrounds.Medal(event.__get__data())).__get__id()] = true;
							com.newgrounds.API.saveLocal('medals_unlocked', v1);
							com.newgrounds.Logger.logMessage('User instanceof not logged in. Medal "' + v2.__get__name() + '" unlocked locally.');
						}
					}
				};
				v1.onMedalUnlockConfirmed = function (event) {
					if (com.newgrounds.API.__get__hasUserSession()) {
						var v1 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username());
						if (!v1) {
							v1 = new Object();
						} else {
							delete v1[(com.newgrounds.Medal(event.__get__data())).__get__id()];
						}
						com.newgrounds.API.saveLocal('medals_unlocked_' + com.newgrounds.API.__get__username(), v1);
					}
				};
				v1.getScoreBoard = function (scoreBoardName) {
					if (!com.newgrounds.API.assertConnected()) {
						return null;
					}
					return com.newgrounds.API._scoreBoards[scoreBoardName];
				};
				v1.loadScores = function (scoreBoardName, period, firstResult, numResults, tag) {
					if (period == undefined) {
						period = 'All-Time';
					}
					if (firstResult == undefined) {
						firstResult = 1;
					}
					if (numResults == undefined) {
						numResults = 10;
					}
					if (tag == undefined) {
						tag = null;
					}
					if (!com.newgrounds.API.assertConnected()) {
						return null;
					}
					var v1 = com.newgrounds.API._scoreBoards[scoreBoardName];
					if (!v1) {
						com.newgrounds.Logger.logError('No scoreboard named "' + scoreBoardName + '" w.');
						com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
						return null;
					}
					v1.__set__period(period);
					v1.__set__firstResult(firstResult);
					v1.__set__numResults(numResults);
					v1.__set__tag(tag);
					v1.loadScores();
					return v1;
				};
				v1.postScore = function (scoreBoardName, numericScore, tag) {
					if (tag == undefined) {
						tag = null;
					}
					if (!com.newgrounds.API.assertConnected()) {
						return undefined;
					}
					if (!com.newgrounds.API.__get__hasUserSession()) {
						com.newgrounds.Logger.logError('The user must be logged-in to post a score.');
						com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN);
						return undefined;
					}
					var v1 = com.newgrounds.API._scoreBoards[scoreBoardName];
					if (!v1) {
						com.newgrounds.Logger.logError('No scoreboard named "' + scoreBoardName + '" w.');
						com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
						return undefined;
					}
					v1.postScore(numericScore, tag);
				};
				v1.getSaveGroup = function (groupName) {
					if (!com.newgrounds.API.assertConnected()) {
						return null;
					}
					return com.newgrounds.API._saveGroups[groupName];
				};
				v1.getSaveGroupById = function (id) {
					for (var v3 in com.newgrounds.API._saveGroups) {
						var v1 = com.newgrounds.API._saveGroups[v3];
						if (v1.__get__id() == id) {
														return v1;
						}
					}
					return null;
				};
				v1.createSaveFile = function (groupName) {
					if (!com.newgrounds.API.assertConnected()) {
						return null;
					}
					var v1 = com.newgrounds.API.getSaveGroup(groupName);
					if (!v1) {
						com.newgrounds.Logger.logError('The save group "' + groupName + '" w found.');
						return null;
					}
					return new com.newgrounds.SaveFile(v1);
				};
				v1.loadSaveFile = function (saveId, loadContents) {
					if (loadContents == undefined) {
						loadContents = true;
					}
					com.newgrounds.API._connection.sendSimpleCommand('loadSaveFile', com.newgrounds.API.onFileLoaded, {'save_id': saveId, 'get_contents': loadContents});
				};
				v1.onFileLoaded = function (event) {
					var v2;
					if (event.__get__success()) {
						v2 = com.newgrounds.SaveFile.fromObject(com.newgrounds.API.getSaveGroupById((event.__get__data()).group_id), (event.__get__data()).file);
						if ((event.__get__data()).get_contents) {
							v2.load();
						} else {
							com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, v2);
						}
					} else {
						com.newgrounds.Logger.logError('Unable to load file:', event.__get__error());
						com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, null, event.__get__error());
					}
				};
				v1.createSaveQuery = function (groupName) {
					if (!com.newgrounds.API.assertConnected()) {
						return null;
					}
					var v1 = com.newgrounds.API.getSaveGroup(groupName);
					if (!v1) {
						com.newgrounds.Logger.logError('The save group "' + groupName + '" w found.');
						return null;
					}
					var v2 = new com.newgrounds.SaveQuery(v1);
					return v2;
				};
				v1.createSaveQueryByDate = function (groupName, sortDescending) {
					if (sortDescending == undefined) {
						sortDescending = true;
					}
					var v1 = com.newgrounds.API.createSaveQuery(groupName);
					if (!v1) {
						return null;
					}
					v1.sortOn(com.newgrounds.SaveQuery.CREATED_ON, sortDescending);
					return v1;
				};
				v1.createSaveQueryByName = function (groupName, filename, exactMatch, sortDescending) {
					if (exactMatch == undefined) {
						exactMatch = false;
					}
					if (sortDescending == undefined) {
						sortDescending = false;
					}
					var v1 = com.newgrounds.API.createSaveQuery(groupName);
					if (!exactMatch) {
						v1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.OPERATOR_CONTAINS, filename);
						return v1;
					}
					v1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.OPERATOR_EQUAL, filename);
					return v1;
				};
				v1.createSaveQueryByRating = function (groupName, ratingName, sortDescending) {
					if (sortDescending == undefined) {
						sortDescending = true;
					}
					var v1 = com.newgrounds.API.createSaveQuery(groupName);
					v1.sortOn(ratingName, sortDescending);
					return v1;
				};
				v1.onRequestedFileLoaded = function (event) {
					com.newgrounds.API.removeEventListener(com.newgrounds.APIEvent.FILE_LOADED, com.newgrounds.API.onRequestedFileLoaded);
					if (event.__get__success()) {
						var v1 = event.__get__data();
						if (v1) {
							com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_REQUESTED, v1);
						}
					}
				};
				v1.addEventListener = function (eventType, listener, priority, useWeakReference) {
					if (priority == undefined) {
						priority = 0;
					}
					if (useWeakReference == undefined) {
						useWeakReference = true;
					}
					com.newgrounds.API._dispatcher.addEventListener(eventType, listener, false, priority, useWeakReference);
				};
				v1.removeEventListener = function (eventType, listener) {
					com.newgrounds.API._dispatcher.removeEventListener(eventType, listener);
				};
				v1.dispatchEvent = function (event, data, error) {
					if (data == undefined) {
						data = null;
					}
					if (error == undefined) {
						error = null;
					}
					com.newgrounds.API._dispatcher.dispatchEvent(new com.newgrounds.APIEvent(event, data, error));
				};
				v1.saveLocal = function (saveId, saveData) {
					try {
						var v3;
						var v2 = 'ng_ap_secure_' + com.newgrounds.API._connection.trackerId + '_' + com.newgrounds.crypto.RC4.encrypt(saveId, com.newgrounds.API._connection.encryptionKey);
						if (!com.newgrounds.API._sharedObjects[saveId]) {
							com.newgrounds.API._sharedObjects[saveId] = SharedObject.getLocal(v2);
						}
						v3 = com.newgrounds.API._sharedObjects[saveId];
						v3.data.data = com.newgrounds.API.encodeData(saveData);
					}
					catch (v0) {
						if (Error(v0) != null) {
							var error = Error(v0);
							com.newgrounds.Logger.logError('Unable to save local data.', error);
							return false;
							return true;
						}
						throw v0;
					}
					return true;
				};
				v1.loadLocal = function (saveId) {
					try {
						var v1;
						var v3 = 'ng_ap_secure_' + com.newgrounds.API._connection.trackerId + '_' + com.newgrounds.crypto.RC4.encrypt(saveId, com.newgrounds.API._connection.encryptionKey);
						if (!com.newgrounds.API._sharedObjects[saveId]) {
							com.newgrounds.API._sharedObjects[saveId] = SharedObject.getLocal(v3);
						}
						v1 = com.newgrounds.API._sharedObjects[saveId];
						if (v1 && v1.data && v1.data.data) {
							return com.newgrounds.API.decodeData(v1.data.data);
						}
						return null;
					}
					catch (v0) {
						if (Error(v0) != null) {
							var error = Error(v0);
							com.newgrounds.Logger.logError('Unable to load local data.', error);
							return null;
						}
						throw v0;
					}
					return null;
				};
				v1.logCustomEvent = function (eventName) {
					if (com.newgrounds.API.assertConnected()) {
						com.newgrounds.Logger.logMessage('Logged event: ' + eventName);
						com.newgrounds.API._connection.sendSimpleCommand('logCustomEvent', null, {'event': eventName});
					}
				};
				v1.encodeData = function (data) {
					if (!com.newgrounds.API._connection.assertInitialized()) {
						return null;
					}
					return com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(data), com.newgrounds.API._connection.encryptionKey);
				};
				v1.decodeData = function (data) {
					if (!com.newgrounds.API._connection.assertInitialized()) {
						return null;
					}
					try {
						return com.newgrounds.encoders.json.JSON.decode(com.newgrounds.crypto.RC4.decrypt(data, com.newgrounds.API._connection.encryptionKey));
					}
					catch (v0) {
						if (Error(v0) != null) {
							var error = Error(v0);
							return null;
						}
						throw v0;
					}
					return null;
				};
				v1.stopPendingCommands = function () {
					com.newgrounds.APICommand.stopPendingCommands();
					com.newgrounds.Logger.logMessage('Pending commands stopped.');
				};
				v1.setFont = function (textField, font) {
					if (textField && font) {
						var v2 = textField.getTextFormat();
						var v4 = textField.embedFonts;
						var v3 = new TextFormat(font);
						textField.setNewTextFormat(v3);
						textField.setTextFormat(v3);
						textField.embedFonts = true;
						if (textField.textWidth == 0) {
							textField.embedFonts = v4;
							textField.setTextFormat(v2);
							textField.setNewTextFormat(v2);
						} else {
							textField.antiAliasType = 'advanced';
							textField.sharpness = 120;
						}
					}
				};
				v1.VERSION = '3.0.4.2 beta AS2';
				v1.RELEASE_MODE = 'releaseMode';
				v1.DEBUG_MODE_LOGGED_IN = 'debugModeLoggedIn';
				v1.DEBUG_MODE_LOGGED_OUT = 'debugModeLoggedOut';
				v1.DEBUG_MODE_NEW_VERSION = 'debugModeNewVersion';
				v1.DEBUG_MODE_HOST_BLOCKED = 'debugModeHostBlocked';
				v1.TEST_AD_FEED_URL = 'http://www.ngads.com/adtest.php';
				v1._dispatcher = new com.newgrounds.APIEventDispatcher();
				v1._connection = new com.newgrounds.APIConnection();
				v1._debugMode = com.newgrounds.API.DEBUG_MODE_LOGGED_IN;
				v1._adsApproved = false;
				v1._medals = new Object();
				v1._medalsArray = [];
				v1._scoreBoards = new Object();
				v1._scoreBoardsArray = [];
				v1._saveGroups = new Object();
				v1._saveGroupsArray = [];
				v1._sharedObjects = new Object();
				v1.addProperty('adFeedURL', v1.__get__adFeedURL, function () {});
				v1.addProperty('adsApproved', v1.__get__adsApproved, function () {});
				v1.addProperty('apiId', v1.__get__apiId, function () {});
				v1.addProperty('connected', v1.__get__connected, function () {});
				v1.addProperty('debugMode', v1.__get__debugMode, v1.__set__debugMode);
				v1.addProperty('hasUserSession', v1.__get__hasUserSession, function () {});
				v1.addProperty('hostDomain', v1.__get__hostDomain, function () {});
				v1.addProperty('hostURL', v1.__get__hostURL, function () {});
				v1.addProperty('isNetworkHost', v1.__get__isNetworkHost, function () {});
				v1.addProperty('isNewgrounds', v1.__get__isNewgrounds, function () {});
				v1.addProperty('medals', v1.__get__medals, function () {});
				v1.addProperty('publisherId', v1.__get__publisherId, function () {});
				v1.addProperty('saveGroups', v1.__get__saveGroups, function () {});
				v1.addProperty('scoreBoards', v1.__get__scoreBoards, function () {});
				v1.addProperty('sessionId', v1.__get__sessionId, function () {});
				v1.addProperty('userId', v1.__get__userId, function () {});
				v1.addProperty('username', v1.__get__username, function () {});
				ASSetPropFlags(com.newgrounds.API.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1705 __Packages.com.newgrounds.encoders.ImageScanner {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.encoders) {
				_global.com.newgrounds.encoders = new Object();
			}
			if (!_global.com.newgrounds.encoders.ImageScanner) {
				var v1 = function (hashLength, charsPerPixel) {
					if (hashLength) {
						this._hash = com.newgrounds.encoders.ImageScanner.DEFAULT_HASH.substr(0, hashLength);
					}
					this._baseN = new com.newgrounds.encoders.BaseN(this._hash);
					if (charsPerPixel) {
						this._charsPerPixel = charsPerPixel;
					}
					this.__set__encodeAlpha(false);
				};
				com.newgrounds.encoders.ImageScanner = v1;
				var v2 = v1.prototype;
				v2.__get__encodeAlpha = function () {
					return this._encodeAlpha;
				};
				v2.__set__encodeAlpha = function (v) {
					this._encodeAlpha = v;
					this._maxPerChannel = int(Math.pow(this._hash.length, this._charsPerPixel / (this._encodeAlpha ? 4 : 3)));
					if (this._maxPerChannel > 256) {
						this._maxPerChannel = 256;
					}
					return this.__get__encodeAlpha();
				};
				v2.encode = function (source, callbackFunction, callbackObject) {
					var v4 = {'callbackFunction': callbackFunction, 'callbackObject': callbackObject, 'source': source, 'x': 0, 'y': 0, 'output': null};
					var v2 = source.width.toString();
					var v3 = source.height.toString();
					while (v2.length < 3) {
						v2 = '0' + v2;
					}
					while (v3.length < 3) {
						v3 = '0' + v3;
					}
					v4.output = v2 + v3;
					var v6 = setInterval(this, 'doEncode', com.newgrounds.encoders.ImageScanner.WORK_INTERVAL, v4);
					v4.interval = v6;
				};
				v2.decode = function (source, callbackFunction, callbackObject) {
					var v2 = {'callbackFunction': callbackFunction, 'callbackObject': callbackObject, 'source': source, 'i': 6, 'x': 0, 'y': 0, 'output': null};
					var v5 = int(source.substr(0, 3));
					var v6 = int(source.substr(3, 3));
					v2.output = new flash.display.BitmapData(v5, v6, this._encodeAlpha);
					var v4 = setInterval(this, 'doDecode', com.newgrounds.encoders.ImageScanner.WORK_INTERVAL, v2);
					v2.interval = v4;
				};
				v2.doEncode = function (state) {
					var v3 = getTimer();
					for (;;) {
						if (!(state.y < state.source.height && getTimer() - v3 < com.newgrounds.encoders.ImageScanner.WORK_INTERVAL)) break;
						state.output += this.encodePixel(state.source.getPixel32(state.x, state.y));
						++state.x;
						if (state.x == state.source.width) {
							state.x = 0;
							++state.y;
						}
					}
					if (state.y == state.source.height) {
						clearInterval(state.interval);
						state.callbackFunction.call(state.callbackObject, state.output);
					}
				};
				v2.doDecode = function (state) {
					var v4 = getTimer();
					for (;;) {
						if (!(state.y < state.output.height && getTimer() - v4 < com.newgrounds.encoders.ImageScanner.WORK_INTERVAL)) break;
						var v3 = this.decodePixel(state.source.substr(state.i, this._charsPerPixel));
						state.output.setPixel32(state.x, state.y, v3);
						state.i += this._charsPerPixel;
						++state.x;
						if (state.x == state.output.width) {
							state.x = 0;
							++state.y;
						}
					}
					if (state.y == state.output.height) {
						clearInterval(state.interval);
						state.callbackFunction.call(state.callbackObject, state.output);
					}
				};
				v2.encodePixel = function (pixel) {
					var v3 = pixel >> 24 & 255;
					var v4 = pixel >> 16 & 255;
					var v5 = pixel >> 8 & 255;
					var v2 = pixel & 255;
					v3 = int((v3 / 256) * this._maxPerChannel);
					v4 = int((v4 / 256) * this._maxPerChannel);
					v5 = int((v5 / 256) * this._maxPerChannel);
					v2 = int((v2 / 256) * this._maxPerChannel);
					var v7 = v4 * this._maxPerChannel * this._maxPerChannel + v5 * this._maxPerChannel + v2;
					if (this._encodeAlpha) {
						v7 += v3 * this._maxPerChannel * this._maxPerChannel * this._maxPerChannel;
					}
					return this._baseN.encodeUint(v7, this._charsPerPixel);
				};
				v2.decodePixel = function (encodedPixel) {
					var v3 = 255;
					var v5;
					var v6;
					var v4;
					var v7 = 0;
					var v2 = this._baseN.decodeUint(encodedPixel);
					v4 = v2 % this._maxPerChannel;
					v2 /= int(this._maxPerChannel);
					v6 = v2 % this._maxPerChannel;
					v2 /= int(this._maxPerChannel);
					v5 = v2 % this._maxPerChannel;
					v2 /= int(this._maxPerChannel);
					if (this._encodeAlpha) {
						v3 = v2 % this._maxPerChannel;
						v2 /= int(this._maxPerChannel);
					}
					return v3 << 24 | v5 << 16 | v6 << 8 | v4;
				};
				v1.DEFAULT_HASH = '0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&';
				v2._hash = com.newgrounds.encoders.ImageScanner.DEFAULT_HASH;
				v2._charsPerPixel = 2;
				v1.WORK_INTERVAL = 33.33333333333334;
				v2.addProperty('encodeAlpha', v2.__get__encodeAlpha, v2.__set__encodeAlpha);
				ASSetPropFlags(com.newgrounds.encoders.ImageScanner.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1706 __Packages.com.newgrounds.SaveFile {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.SaveFile) {
				var v1 = function (group) {
					super();
					this._iconLoader = new com.newgrounds.BitmapLoader(com.newgrounds.SaveFile.DEFAULT_ICON, null);
					this._group = group;
				};
				com.newgrounds.SaveFile = v1;
				com.newgrounds.SaveFile extends com.newgrounds.APIEventDispatcher;
				var v2 = v1.prototype;
				v1.__get__currentFile = function () {
					return com.newgrounds.SaveFile._currentFile;
				};
				v1.fromObject = function (group, fileData) {
					var v4 = new com.newgrounds.SaveFile(group);
					v4._name = fileData.filename;
					v4._description = fileData.description;
					v4._id = fileData.save_id;
					v4._authorId = fileData.user_id;
					v4._authorName = fileData.user_name;
					v4._createdDate = fileData.created;
					v4._modifiedDate = fileData.last_update;
					v4._views = fileData.views;
					if (fileData.thumb && fileData.thumb != '') {
						v4._iconLoader.__set__url(com.newgrounds.SaveFile._imageFilePath + fileData.thumb);
					}
					v4._dataURL = com.newgrounds.SaveFile._saveFilePath + fileData.file;
					v4._fileSize = fileData.file_size;
					v4._approved = fileData.status != com.newgrounds.SaveFile.STATUS_UNAPPROVED;
					v4._readOnly = false;
					v4._public = fileData.status != com.newgrounds.SaveFile.STATUS_PRIVATE && fileData.status != com.newgrounds.SaveFile.STATUS_UNAPPROVED;
					for (var v8 in fileData.keys) {
						var v6 = fileData.keys[v8];
						var v2 = group.getKeyById(v6.id);
						if (v2) {
							v4._keys[v2.__get__name()] = v2.validateValue(v6.value);
						}
					}
					for (var v9 in fileData.ratings) {
						var v5 = fileData.ratings[v9];
						var v3 = group.getRatingById(v5.id);
						if (v3) {
							v4._ratings[v3.__get__name()] = v3.validateValue(v5.score);
						}
					}
					return v4;
				};
				v2.__get__group = function () {
					return this._group;
				};
				v2.__get__name = function () {
					return this._name;
				};
				v2.__set__name = function (val) {
					this._name = val;
					return this.__get__name();
				};
				v2.__get__description = function () {
					return this._description;
				};
				v2.__set__description = function (val) {
					this._description = val;
					return this.__get__description();
				};
				v2.__get__id = function () {
					return this._id;
				};
				v2.__get__data = function () {
					return this._data;
				};
				v2.__set__data = function (val) {
					this._data = val;
					return this.__get__data();
				};
				v2.__get__bytesLoaded = function () {
					if (this._data) {
						return this.__get__bytesTotal();
					} else {
						if (!this._dataLoader) {
							return 0;
						} else {
							return this._dataLoader.getBytesLoaded();
						}
					}
				};
				v2.__get__bytesTotal = function () {
					return this._fileSize;
				};
				v2.__get__readOnly = function () {
					return this._readOnly;
				};
				v2.__get__draft = function () {
					return this._draft;
				};
				v2.__set__draft = function (v) {
					this._draft = v;
					return this.__get__draft();
				};
				v2.__get__authorId = function () {
					return this._authorId;
				};
				v2.__get__authorName = function () {
					return this._authorName;
				};
				v2.__get__keys = function () {
					return this._keys;
				};
				v2.__get__ratings = function () {
					return this._ratings;
				};
				v2.__get__views = function () {
					return this._views;
				};
				v2.__get__createdDate = function () {
					return this._createdDate;
				};
				v2.__get__updatedDate = function () {
					return this._modifiedDate;
				};
				v2.toString = function () {
					return 'Save File: ' + this._name;
				};
				v2.__get__icon = function () {
					return this._iconLoader.__get__bitmapData();
				};
				v2.__set__icon = function (v) {
					this.createIcon(v);
					return this.__get__icon();
				};
				v2.__get__iconLoaded = function () {
					return this._iconLoader.__get__loaded();
				};
				v2.createIcon = function (source) {
					var v9 = new flash.display.BitmapData(com.newgrounds.SaveFile.ICON_WIDTH, com.newgrounds.SaveFile.ICON_HEIGHT, false, 0);
					var v6;
					var v5;
					var v10 = 0;
					var v8 = 0;
					if (source instanceof flash.display.BitmapData) {
						v6 = source.width;
						v5 = source.height;
					} else {
						if (source instanceof MovieClip) {
							v6 = source._width;
							v5 = source._height;
							var v7 = (MovieClip(source)).getBounds(source);
							v10 = v7.xMin;
							v8 = v7.yMin;
						}
					}
					var v3 = new flash.geom.Matrix();
					var v4;
					v4 = Math.min(com.newgrounds.SaveFile.ICON_WIDTH / v6, com.newgrounds.SaveFile.ICON_HEIGHT / v5);
					v3.translate(-v10, -v8);
					v3.scale(v4, v4);
					v3.translate((com.newgrounds.SaveFile.ICON_WIDTH - v6 * v4) / 2, (com.newgrounds.SaveFile.ICON_HEIGHT - v5 * v4) / 2);
					v9.draw(source, v3);
					this._iconLoader.__set__bitmapData(v9);
				};
				v2.attachIcon = function (parent) {
					if (this._iconLoader) {
						return this._iconLoader.attachBitmap(parent);
					}
					com.newgrounds.Logger.logError('No icon available for this sumbission.');
					return null;
				};
				v2.save = function () {
					if (!(this._group.__get__connection()).__get__hasUserSession()) {
						com.newgrounds.Logger.logError('The user must be logged-in to save a file.');
						this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN));
						return undefined;
					}
					++com.newgrounds.BitmapLoader._cacheSeed;
					com.newgrounds.SaveFile._currentFile = this;
					if (this.__get__iconLoaded()) {
						com.newgrounds.SaveFile.ICON_IMAGE_SCANNER.encode(this.__get__icon(), this.onIconEncoded, this);
					} else {
						this.encodeData(true);
					}
				};
				v2.onIconEncoded = function (encodedIcon) {
					this._encodedIcon = encodedIcon;
					this.encodeData(true);
				};
				v2.doSave = function () {
					var v4 = new com.newgrounds.APICommand('saveFile');
					(v4.__get__secureParameters()).group = this._group.id;
					(v4.__get__secureParameters()).user_name = (this._group.__get__connection()).username;
					(v4.__get__secureParameters()).filename = this._name;
					(v4.__get__secureParameters()).description = this._description;
					if (this._draft) {
						(v4.__get__secureParameters()).draft = true;
					}
					if (this._id && !this._readOnly) {
						(v4.__get__secureParameters()).overwrite = 1;
						(v4.__get__secureParameters()).save_id = this._id;
					}
					var v8 = [];
					for (var v9 in this._keys) {
						var v2 = this._group.getKey(v9);
						if (v2) {
							v8.push({'id': v2.__get__id(), 'value': v2.validateValue(this._keys[v9])});
						} else {
							com.newgrounds.Logger.logError('No key named "' + v9 + '" in save group "' + this._group.__get__name() + '".');
						}
					}
					(v4.__get__secureParameters()).keys = v8;
					var v7 = [];
					for (var v10 in this._ratings) {
						var v3 = this._group.getRating(v10);
						if (v3) {
							v7.push({'id': v3.__get__id(), 'value': v3.validateValue(this._ratings[v10])});
						} else {
							com.newgrounds.Logger.logError('No rating named "' + v10 + '" in save group "' + this._group.__get__name() + '".');
						}
					}
					(v4.__get__secureParameters()).ratings = v7;
					if (typeof this._encodedData == 'string') {
						v4.addFile('file', this._encodedData, 'file');
					} else {
						v4.addFile('file', com.newgrounds.encoders.json.JSON.encode(this._encodedData), 'file');
					}
					if (this.__get__iconLoaded()) {
						v4.addFile('thumbnail', this._encodedIcon, 'thumbnail');
					}
					v4.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, {'target': this, 'func': this.onSaveComplete});
					(this._group.__get__connection()).sendCommand(v4);
				};
				v2.encodeData = function (encode) {
					this._encoderQueue = [];
					this._encoding = encode;
					if (encode) {
						this._encodedData = this._data;
						this.preEncodeObject(this, '_encodedData');
					} else {
						this.preEncodeObject(this, '_data');
					}
					this.encodeObject();
				};
				v2.preEncodeObject = function (parent, property) {
					var v3 = parent[property];
					var v5;
					try {
						if (this._encoding) {
							v5 = v3 instanceof flash.display.BitmapData;
						} else {
							v5 = v3.type == '__bitmap';
						}
					}
					var v2 = v3;
					var v8;
					if (v5) {
						this._encoderQueue.push({'parent': parent, 'property': property});
					} else {
						if (typeof v3 == 'object' && !v8) {
							if (this._encoding) {
								if (v3 instanceof Array) {
									v2 = [];
								} else {
									v2 = {};
								}
								for (var v4 in v3) {
									v2[v4] = v3[v4];
								}
								parent[property] = v2;
							}
							for (v4 in v2) {
								this.preEncodeObject(v2, v4);
							}
						}
					}
				};
				v2.encodeObject = function () {
					if (!this._encoderQueue.length) {
						if (this._encoding) {
							this.doSave();
						} else {
							this._dataLoaded = true;
							this.checkLoadComplete();
						}
						return undefined;
					}
					var v6 = this._encoderQueue.pop();
					var v4 = v6.parent;
					var v3 = v6.property;
					var v2 = v4[v3];
					var v5;
					if (this._encoding) {
						v5 = {'type': '__bitmap', 'width': v2.width, 'height': v2.height, 'transparent': v2.transparent};
						v4[v3] = v5;
						this._encodingParent = v5;
						this._encodingProperty = 'data';
						com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.__set__encodeAlpha(v2.transparent);
						com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.encode(flash.display.BitmapData(v2), this.encodeBitmapComplete, this);
					} else {
						this._encodingParent = v4;
						this._encodingProperty = v3;
						com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.__set__encodeAlpha(v2.transparent);
						com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.decode(String(v2.data), this.encodeBitmapComplete, this);
					}
				};
				v2.encodeBitmapComplete = function (data) {
					this._encodingParent[this._encodingProperty] = data;
					this.encodeObject();
				};
				v2.load = function () {
					com.newgrounds.SaveFile._currentFile = this;
					this._dataLoaded = false;
					this._data = null;
					if (!this.__get__iconLoaded()) {
						this._iconLoader.addEventListener(com.newgrounds.APIEvent.ICON_LOADED, {'target': this, 'func': this.onIconLoaded});
						this._iconLoader.load();
					}
					this._dataLoader = new LoadVars();
					var file = this;
					this._dataLoader.onData = function (data) {
						file.onDataLoaded(data);
					};
					this._dataLoader.load(this._dataURL);
				};
				v2.onIconLoaded = function (event) {
					if (!event.__get__success() && this._iconLoader.__get__url()) {
						com.newgrounds.Logger.logWarning('Unable to load the icon for this save file.');
					}
					this._iconLoader.removeEventListener(com.newgrounds.APIEvent.ICON_LOADED, this.onIconLoaded);
					this.checkLoadComplete();
				};
				v2.checkLoadComplete = function () {
					if (this._dataLoaded && this.__get__iconLoaded()) {
						com.newgrounds.Logger.logMessage('Data loaded.');
						this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this));
					}
				};
				v2.onDataLoaded = function (data) {
					try {
						if (data) {
							if (data.charAt(0) == '{') {
								this._data = com.newgrounds.encoders.json.JSON.decode(String(data));
							} else {
								this._data = String(data);
							}
							this.encodeData(false);
						}
					}
					catch (v0) {
						if (Error(v0) != null) {
							var error = Error(v0);
							com.newgrounds.Logger.logError('Error while loading data:', error);
							this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE));
						} else {
							throw v0;
						}
					}
				};
				v2.onDataError = function (error) {
					com.newgrounds.Logger.logError('Unable to load data:', error);
					this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE));
				};
				v2.onSaveComplete = function (event) {
					if (event.__get__success()) {
						com.newgrounds.Logger.logMessage('File "' + this._name + '" saved!');
						if (event.__get__data()) {
							this._id = (event.__get__data()).save_id;
							this._dataURL = unescape((event.__get__data()).file_url);
						}
						this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this));
					} else {
						com.newgrounds.Logger.logError('Error saving file "' + this._name + '":', event.__get__error());
						this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this, event.__get__error()));
					}
				};
				v2.sendVote = function (ratingName, vote) {
					var v2 = this._group.getRating(ratingName);
					if (!v2) {
						com.newgrounds.Logger.logError('No save rating named "' + ratingName + '" exists for this save group.');
						this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT));
						return undefined;
					}
					vote = v2.validateValue(vote);
					if (isNaN(vote)) {
						com.newgrounds.Logger.logError('Invalid vote (' + vote + '). ' + ratingName + ' allows a range of ' + v2.__get__minimum() + '-' + v2.__get__maximum() + '.');
						this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT));
						return undefined;
					}
					com.newgrounds.Logger.logMessage('Voting ' + vote + ' for ' + ratingName + ' on ' + this._name + '...');
					(this._group.__get__connection()).sendSimpleCommand('rateSaveFile', {'target': this, 'func': this.onVoteComplete}, null, {'group': this._group.__get__id(), 'save_id': this._id, 'rating_id': v2.__get__id(), 'vote': vote});
				};
				v2.onVoteComplete = function (event) {
					var v2 = event.__get__error();
					if ((event.__get__data()).already_voted) {
						com.newgrounds.Logger.logError('Vote failed. You\'ve already voted on this rating today.');
						v2 = com.newgrounds.APIEvent.ERROR_ALREADY_VOTED;
					}
					if (v2 == com.newgrounds.APIEvent.ERROR_NONE) {
						var v3 = this._group.getRatingById((event.__get__data()).rating_id);
						if (v3) {
							this._ratings[v3.__get__name()] = v3.validateValue((event.__get__data()).score);
						}
					}
					this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, this, v2));
				};
				v2.clone = function () {
					var v3 = new com.newgrounds.SaveFile(this._group);
					v3._data = this._data;
					v3._description = this._description;
					v3._draft = this._draft;
					v3._fileSize = this._fileSize;
					v3._iconLoader.__set__bitmapData(this._iconLoader.bitmapData);
					var v2;
					for (v2 in this._keys) {
						v3._keys[v2] = this._keys[v2];
					}
					for (v2 in this._ratings) {
						v3._ratings[v2] = this._ratings[v2];
					}
					v3._name = this._name;
					return v3;
				};
				v1.ICON_WIDTH = 90;
				v1.ICON_HEIGHT = 90;
				v1.DEFAULT_ICON = flash.display.BitmapData.loadBitmap('DefaultSaveIcon');
				v1.STATUS_PRIVATE = 0;
				v1.STATUS_SHARED = 1;
				v1.STATUS_UNAPPROVED = 2;
				v1.STATUS_APPROVED = 3;
				v1._imageFilePath = '';
				v1._saveFilePath = '';
				v1.ICON_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner();
				v1.DATA_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner(64, 6);
				v2._keys = new Object();
				v2._ratings = new Object();
				v2.addProperty('authorId', v2.__get__authorId, function () {});
				v2.addProperty('authorName', v2.__get__authorName, function () {});
				v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {});
				v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {});
				v2.addProperty('createdDate', v2.__get__createdDate, function () {});
				v1.addProperty('currentFile', v1.__get__currentFile, function () {});
				v2.addProperty('data', v2.__get__data, v2.__set__data);
				v2.addProperty('description', v2.__get__description, v2.__set__description);
				v2.addProperty('draft', v2.__get__draft, v2.__set__draft);
				v2.addProperty('group', v2.__get__group, function () {});
				v2.addProperty('icon', v2.__get__icon, v2.__set__icon);
				v2.addProperty('iconLoaded', v2.__get__iconLoaded, function () {});
				v2.addProperty('id', v2.__get__id, function () {});
				v2.addProperty('keys', v2.__get__keys, function () {});
				v2.addProperty('name', v2.__get__name, v2.__set__name);
				v2.addProperty('ratings', v2.__get__ratings, function () {});
				v2.addProperty('readOnly', v2.__get__readOnly, function () {});
				v2.addProperty('updatedDate', v2.__get__updatedDate, function () {});
				v2.addProperty('views', v2.__get__views, function () {});
				ASSetPropFlags(com.newgrounds.SaveFile.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1704 __Packages.com.newgrounds.SaveGroup {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.SaveGroup) {
				var v1 = function (connection, name, id, type, keys, ratings) {
					this._connection = connection;
					this._id = id;
					this._name = name;
					this._type = type;
					this._keysArray = keys;
					this._ratingsArray = ratings;
					this._keys = new Object();
					this._ratings = new Object();
					var v11;
					for (var v7 in keys) {
						var v2 = keys[v7];
						this._keys[v2.__get__name()] = v2;
					}
					for (var v6 in ratings) {
						var v3 = ratings[v6];
						this._ratings[v3.__get__name()] = v3;
					}
				};
				com.newgrounds.SaveGroup = v1;
				var v2 = v1.prototype;
				v2.__get__connection = function () {
					return this._connection;
				};
				v2.__get__name = function () {
					return this._name;
				};
				v2.__get__type = function () {
					return this._type;
				};
				v2.__get__id = function () {
					return this._id;
				};
				v2.__get__keys = function () {
					return this._keysArray;
				};
				v2.__get__ratings = function () {
					return this._ratingsArray;
				};
				v2.getKey = function (name) {
					return this._keys[name];
				};
				v2.getRating = function (name) {
					return this._ratings[name];
				};
				v2.getKeyById = function (id) {
					for (var v4 in this._keys) {
						var v2 = this._keys[v4];
						if (v2.__get__id() == id) {
														return v2;
						}
					}
					return null;
				};
				v2.getRatingById = function (id) {
					for (var v4 in this._ratings) {
						var v2 = this._ratings[v4];
						if (v2.__get__id() == id) {
														return v2;
						}
					}
					return null;
				};
				v2.toString = function () {
					return 'SaveGroup: ' + this.__get__name() + '	Keys: ' + this._keysArray + '	Ratings: ' + this._ratingsArray;
				};
				v1.TYPE_SYSTEM = 0;
				v1.TYPE_PRIVATE = 1;
				v1.TYPE_PUBLIC = 2;
				v1.TYPE_MODERATED = 3;
				v2.addProperty('connection', v2.__get__connection, function () {});
				v2.addProperty('id', v2.__get__id, function () {});
				v2.addProperty('keys', v2.__get__keys, function () {});
				v2.addProperty('name', v2.__get__name, function () {});
				v2.addProperty('ratings', v2.__get__ratings, function () {});
				v2.addProperty('type', v2.__get__type, function () {});
				ASSetPropFlags(com.newgrounds.SaveGroup.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1702 __Packages.com.newgrounds.SaveKey {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.SaveKey) {
				var v1 = function (name, id, type) {
					this._name = name;
					this._id = id;
					this._type = type;
				};
				com.newgrounds.SaveKey = v1;
				var v2 = v1.prototype;
				v2.__get__name = function () {
					return this._name;
				};
				v2.__get__id = function () {
					return this._id;
				};
				v2.__get__type = function () {
					return this._type;
				};
				v2.validateValue = function (value) {
					switch (this._type) {
							return null;
						case com.newgrounds.SaveKey.TYPE_INTEGER:
							value = Number(value);
							if (!isNaN(value)) {
								var v3 = int(value);
								if (v3 != value) {
									com.newgrounds.Logger.logWarning('Float value ' + value + ' given for integer key "' + this._name + '". Clamping to ' + v3 + '.');
								}
								return v3;
							}
							return null;
						case com.newgrounds.SaveKey.TYPE_FLOAT:
							value = Number(value);
							if (!isNaN(value)) {
								return isNaN(Number(value));
							}
							return null;
						case com.newgrounds.SaveKey.TYPE_BOOLEAN:
							return Boolean(value);
							return null;
						case com.newgrounds.SaveKey.TYPE_STRING:
							return value ? value.toString() : '';
							return null;
					}
					return null;
				};
				v2.toString = function () {
					return this._name;
				};
				v1.TYPE_FLOAT = 1;
				v1.TYPE_INTEGER = 2;
				v1.TYPE_STRING = 3;
				v1.TYPE_BOOLEAN = 4;
				v2.addProperty('id', v2.__get__id, function () {});
				v2.addProperty('name', v2.__get__name, function () {});
				v2.addProperty('type', v2.__get__type, function () {});
				ASSetPropFlags(com.newgrounds.SaveKey.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1703 __Packages.com.newgrounds.SaveRating {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.SaveRating) {
				var v1 = function (name, id, isFloat, minimum, maximum) {
					this._name = name;
					this._id = id;
					this._isFloat = isFloat;
					this._minimum = minimum;
					this._maximum = maximum;
				};
				com.newgrounds.SaveRating = v1;
				var v2 = v1.prototype;
				v2.__get__name = function () {
					return this._name;
				};
				v2.__get__id = function () {
					return this._id;
				};
				v2.__get__isFloat = function () {
					return this._isFloat;
				};
				v2.__get__minimum = function () {
					return this._minimum;
				};
				v2.__get__maximum = function () {
					return this._maximum;
				};
				v2.validateValue = function (value) {
					var v2 = Number(value);
					if (isNaN(v2)) {
						com.newgrounds.Logger.logError('Invalid value for rating "' + this._name + '".');
						return NaN;
					}
					if (v2 < this._minimum) {
						com.newgrounds.Logger.logWarning(v2 + ' is out of acceptable range for rating "' + this._name + '". Clamping to ' + this._minimum + '.');
						return this._minimum;
					}
					if (v2 > this._maximum) {
						com.newgrounds.Logger.logWarning(v2 + ' is out of acceptable range for rating "' + this._name + '". Clamping to ' + this._maximum + '.');
						return this._maximum;
					}
					if (!this.__get__isFloat()) {
						var v3 = int(v2);
						if (v3 != v2) {
							com.newgrounds.Logger.logWarning('Float value ' + v2 + ' given for integer rating "' + this._name + '". Clamping to ' + v3 + '.');
						}
						return v3;
					}
					return v2;
				};
				v2.toString = function () {
					return this._name;
				};
				v2.addProperty('id', v2.__get__id, function () {});
				v2.addProperty('isFloat', v2.__get__isFloat, function () {});
				v2.addProperty('maximum', v2.__get__maximum, function () {});
				v2.addProperty('minimum', v2.__get__minimum, function () {});
				v2.addProperty('name', v2.__get__name, function () {});
				ASSetPropFlags(com.newgrounds.SaveRating.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1698 __Packages.com.newgrounds.BitmapLoader {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.BitmapLoader) {
				var v1 = function (defaultBitmap, url) {
					super();
					this._bitmapData = defaultBitmap;
					this._url = url;
				};
				com.newgrounds.BitmapLoader = v1;
				com.newgrounds.BitmapLoader extends com.newgrounds.APIEventDispatcher;
				var v2 = v1.prototype;
				v2.__get__url = function () {
					return this._url;
				};
				v2.__set__url = function (v) {
					this._loaded = false;
					this._url = v;
					return this.__get__url();
				};
				v2.__get__bitmapData = function () {
					return this._bitmapData;
				};
				v2.__set__bitmapData = function (v) {
					this._bitmapData = v;
					this._loaded = true;
					return this.__get__bitmapData();
				};
				v2.__get__loaded = function () {
					return this._loaded;
				};
				v2.disposeLoader = function () {
					if (this._loader) {
						if (this._loaderClip._parent == _root) {
							this._loader.unloadClip(this._loaderClip.bitmap);
							this._loaderClip.removeMovieClip();
						}
						this._loader = null;
						this._loaderClip = null;
					}
				};
				v2.load = function () {
					if (!this._url || this._url == '') {
						this.onLoadComplete();
						return undefined;
					}
					this._loaded = false;
					if (this._bitmapData) {
						this._bitmapData.dispose();
						this._bitmapData = null;
					}
					this.disposeLoader();
					this.attachBitmap(null);
				};
				v2.attachBitmap = function (parent) {
					if (!parent) {
						parent = _root;
					}
					var v5 = parent.getNextHighestDepth();
					var v3 = parent.createEmptyMovieClip('__bitmap' + v5, v5);
					if (!this._loaded && this._url && this._url != '') {
						v3.createEmptyMovieClip('bitmap', 0);
						this._loader = new MovieClipLoader();
						this._loaderClip = v3;
						if (parent == _root) {
							this._loaderClip._visible = false;
						}
						var thisObj = this;
						this._loaderClip.onEnterFrame = function () {
							thisObj.pollLoad();
						};
						this._loader.addListener({'onLoadError': function () {
							thisObj.onLoadComplete();
						}});
						this._loader.loadClip(this._url, v3.bitmap);
						return v3;
					}
					v3.attachBitmap(this._bitmapData, 0);
					return v3;
				};
				v2.pollLoad = function () {
					if (this._loaderClip._width) {
						this.onLoadComplete();
					}
				};
				v2.onLoadComplete = function () {
					var v2;
					if (this._loader && this._loaderClip && this._loaderClip._width) {
						try {
							this._loaderClip.onEnterFrame = null;
							v2 = new flash.display.BitmapData(this._loaderClip._width, this._loaderClip._height, true, 0);
							v2.draw(this._loaderClip);
							this._bitmapData = v2;
							this._loaded = true;
						}
						catch (error) {
							if (v2) {
								v2.dispose();
							}
						}
					}
					this.disposeLoader();
					this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.ICON_LOADED, this, this._loaded ? null : com.newgrounds.APIEvent.ERROR_BAD_FILE));
				};
				v1._cacheSeed = 0;
				v2._loaded = true;
				v2.addProperty('bitmapData', v2.__get__bitmapData, v2.__set__bitmapData);
				v2.addProperty('loaded', v2.__get__loaded, function () {});
				v2.addProperty('url', v2.__get__url, v2.__set__url);
				ASSetPropFlags(com.newgrounds.BitmapLoader.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1707 __Packages.com.newgrounds.SaveQuery {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.SaveQuery) {
				var v1 = function (group) {
					super();
					this._group = group;
					this._connection = group.connection;
					this.includeAllFields();
				};
				com.newgrounds.SaveQuery = v1;
				com.newgrounds.SaveQuery extends com.newgrounds.APIEventDispatcher;
				var v2 = v1.prototype;
				v2.__get__group = function () {
					return this._group;
				};
				v2.__get__resultsPerPage = function () {
					return this._resultsPerPage;
				};
				v2.__set__resultsPerPage = function (val) {
					this._resultsPerPage = Math.min(Math.max(val, 1), 100);
					return this.__get__resultsPerPage();
				};
				v2.__get__page = function () {
					return this._page;
				};
				v2.__set__page = function (val) {
					this._page = Math.max(val, 1);
					return this.__get__page();
				};
				v2.prevPage = function () {
					this.__set__page(this.__get__page() - 1);
				};
				v2.nextPage = function () {
					this.__set__page(this.__get__page() + 1);
				};
				v2.__get__isRandomized = function () {
					return this._isRandomized;
				};
				v2.__set__isRandomized = function (val) {
					this._isRandomized = val;
					return this.__get__isRandomized();
				};
				v2.__get__files = function () {
					return this._files;
				};
				v2.reset = function () {
					this._page = 1;
					this._resultsPerPage = 10;
					this._isRandomized = false;
					this._lookupKeys = [];
					this._lookupRatings = [];
					this._fileConditions = [];
					this._keyConditions = [];
					this._ratingConditions = [];
					this._files = [];
					this.includeAllFields();
				};
				v2.clone = function () {
					var v2 = new com.newgrounds.SaveQuery(this._group);
					v2._page = this._page;
					v2._resultsPerPage = this._resultsPerPage;
					v2._isRandomized = this._isRandomized;
					v2._lookupKeys = this._lookupKeys.concat();
					v2._lookupRatings = this._lookupRatings.concat();
					v2._fileConditions = this._fileConditions.concat();
					v2._keyConditions = this._keyConditions.concat();
					v2._ratingConditions = this._ratingConditions.concat();
					return v2;
				};
				v2.includeAllFields = function () {
					for (var v5 in this._group.__get__keys()) {
						var v2 = (this._group.__get__keys())[v5];
						this._lookupKeys.push(v2.__get__id());
					}
					for (var v4 in this._group.__get__ratings()) {
						var v3 = (this._group.__get__ratings())[v4];
						this._lookupRatings.push(v3.__get__id());
					}
				};
				v2.addCondition = function (field, operator, value) {
					var v2;
					v2 = 0;
					while (v2 < com.newgrounds.SaveQuery.FILE_FIELDS.length) {
						if (com.newgrounds.SaveQuery.FILE_FIELDS[v2] == field) {
							break;
						}
						++v2;
					}
					if (v2 == com.newgrounds.SaveQuery.FILE_FIELDS.length) {
						v2 = -1;
					}
					if (v2 >= 0) {
						this._fileConditions.push({'field': v2, 'operator': operator, 'value': value});
					} else {
						var v3 = this._group.getKey(field);
						if (v3) {
							value = v3.validateValue(value);
							this._keyConditions.push({'key_id': v3.__get__id(), 'operator': operator, 'value': value});
							return undefined;
						}
						var v4 = field.split('.');
						var v6 = this._group.getRating(v4[0]);
						if (v6) {
							value = v6.validateValue(value);
							this._ratingConditions.push({'rating_id': v6.__get__id(), 'operator': operator, 'value': value, 'column': v4[1] ? v4[1] : 'score'});
							return undefined;
						}
						com.newgrounds.Logger.logError('The save group "' + this._group.__get__name() + '" does not have a field named "' + field + '".');
					}
				};
				v2.sortOn = function (field, sortDescending) {
					if (sortDescending == undefined) {
						sortDescending = false;
					}
					var v2;
					v2 = 0;
					while (v2 < com.newgrounds.SaveQuery.FILE_FIELDS.length) {
						if (com.newgrounds.SaveQuery.FILE_FIELDS[v2] == field) {
							break;
						}
						++v2;
					}
					if (v2 == com.newgrounds.SaveQuery.FILE_FIELDS.length) {
						v2 = -1;
					}
					if (v2 >= 0) {
						this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_FILES, 'field': v2, 'desc': sortDescending});
					} else {
						var v5 = this._group.getKey(field);
						if (v5) {
							this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_KEYS, 'field': v5.__get__id(), 'desc': sortDescending});
							return undefined;
						}
						var v3 = field.split('.');
						var v6 = this._group.getRating(v3[0]);
						if (v6) {
							this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_RATINGS, 'field': v6.__get__id(), 'desc': sortDescending, 'extra': v3[1] ? v3[1] : 'score'});
							return undefined;
						}
						com.newgrounds.Logger.logError('The save group "' + this._group.__get__name() + '" does not have a field named "' + field + '".');
					}
				};
				v2.execute = function () {
					var v5 = {};
					v5.page = this._page;
					v5.num_results = this._resultsPerPage;
					if (this._isRandomized) {
						v5.randomize = 1;
					}
					if (this._lookupKeys && this._lookupKeys.length) {
						v5.lookup_keys = this._lookupKeys;
					}
					if (this._lookupRatings && this._lookupRatings.length) {
						v5.lookup_ratings = this._lookupRatings;
					}
					if (this._fileConditions && this._fileConditions.length) {
						v5.file_conditions = this._fileConditions;
					}
					if (this._keyConditions && this._keyConditions.length) {
						v5.key_conditions = this._keyConditions;
					}
					if (this._ratingConditions && this._ratingConditions.length) {
						v5.rating_conditions = this._ratingConditions;
					}
					if (this._sortFields && this._sortFields.length) {
						v5.sort_conditions = this._sortFields;
					}
					this._connection.sendSimpleCommand('lookupSaveFiles', {'target': this, 'func': this.onQueryComplete}, {'publisher_id': this._connection.publisherId, 'group_id': this._group.__get__id(), 'query': v5});
				};
				v2.onQueryComplete = function (event) {
					if (event.__get__success()) {
						var v4 = event.__get__data();
						this._files = [];
						if (v4.files) {
							var v2 = 0;
							while (v2 < v4.files.length) {
								var v3 = com.newgrounds.SaveFile.fromObject(this._group, v4.files[v2]);
								if (v3) {
									this._files.push(v3);
								}
								++v2;
							}
						}
						this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this));
					} else {
						com.newgrounds.Logger.logError('Query failed: ' + event.__get__error());
						this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this, event.__get__error()));
					}
				};
				v1.FILE_ID = 'fileId';
				v1.AUTHOR_ID = 'authorId';
				v1.AUTHOR_NAME = 'authorName';
				v1.FILE_NAME = 'fileName';
				v1.CREATED_ON = 'createdOn';
				v1.UPDATED_ON = 'updatedOn';
				v1.FILE_VIEWS = 'fileViews';
				v1.FILE_STATUS = 'fileStatus';
				v1.FILE_FIELDS = [com.newgrounds.SaveQuery.FILE_ID, com.newgrounds.SaveQuery.AUTHOR_ID, com.newgrounds.SaveQuery.AUTHOR_NAME, com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.CREATED_ON, com.newgrounds.SaveQuery.UPDATED_ON, com.newgrounds.SaveQuery.FILE_VIEWS, com.newgrounds.SaveQuery.FILE_STATUS];
				v1.OPERATOR_EQUAL = '=';
				v1.OPERATOR_LESS_THAN = '<';
				v1.OPERATOR_GREATER_THAN = '>';
				v1.OPERATOR_NOT_EQUAL = '!=';
				v1.OPERATOR_LESS_OR_EQUAL = '<=';
				v1.OPERATOR_GREATER_OR_EQUAL = '>=';
				v1.OPERATOR_CONTAINS = '*';
				v1.OPERATOR_NOT_CONTAINS = '!*';
				v1.OPERATOR_NOT_BEGINS_WITH = '!*=';
				v1.OPERATOR_NOT_ENDS_WITH = '!=*';
				v1.OPERATOR_BEGINS_WITH = '*=';
				v1.OPERATOR_ENDS_WITH = '=*';
				v1.TABLE_FILES = 1;
				v1.TABLE_KEYS = 2;
				v1.TABLE_RATINGS = 3;
				v2._page = 1;
				v2._resultsPerPage = 10;
				v2._isRandomized = false;
				v2._files = [];
				v2._lookupKeys = [];
				v2._lookupRatings = [];
				v2._fileConditions = [];
				v2._keyConditions = [];
				v2._ratingConditions = [];
				v2._sortFields = [];
				v2.addProperty('files', v2.__get__files, function () {});
				v2.addProperty('group', v2.__get__group, function () {});
				v2.addProperty('isRandomized', v2.__get__isRandomized, v2.__set__isRandomized);
				v2.addProperty('page', v2.__get__page, v2.__set__page);
				v2.addProperty('resultsPerPage', v2.__get__resultsPerPage, v2.__set__resultsPerPage);
				ASSetPropFlags(com.newgrounds.SaveQuery.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1699 __Packages.com.newgrounds.Medal {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.Medal) {
				var v1 = function (connection, id, name, unlocked, value, difficultyId, iconURL) {
					super();
					this._connection = connection;
					this._id = id;
					this._name = name;
					this._unlocked = unlocked;
					this._value = value;
					this._difficulty = com.newgrounds.Medal.DIFFICULTIES[difficultyId];
					this._iconLoader = new com.newgrounds.BitmapLoader(com.newgrounds.Medal.DEFAULT_ICON, iconURL);
					this._iconLoader.load();
				};
				com.newgrounds.Medal = v1;
				com.newgrounds.Medal extends com.newgrounds.APIEventDispatcher;
				var v2 = v1.prototype;
				v2.__get__difficulty = function () {
					return this._difficulty;
				};
				v2.__get__icon = function () {
					return this._iconLoader.__get__bitmapData();
				};
				v2.__get__id = function () {
					return this._id;
				};
				v2.__get__name = function () {
					return this._name;
				};
				v2.__get__unlocked = function () {
					return this._unlocked;
				};
				v2.__get__value = function () {
					return this._value;
				};
				v2.toString = function () {
					if (!this._unlocked) {
						return 'Medal: ' + this._name + '\t\t(' + 'locked, ' + this._value + 'pts, ' + this._difficulty + ')';
					}
					return 'Medal: ' + this._name + '\t\t(' + 'unlocked, ' + this._value + 'pts, ' + this._difficulty + ')';
				};
				v2.attachIcon = function (parent) {
					return this._iconLoader.attachBitmap(parent);
				};
				v2.unlock = function () {
					if (!this._connection.debug && this._unlocked) {
						com.newgrounds.Logger.logWarning('Medal "' + this._name + '" is already unlocked.');
						return undefined;
					}
					com.newgrounds.Logger.logMessage('Unlocking medal "' + this.__get__name() + '"...');
					this._unlocked = true;
					this._connection.sendSimpleCommand('unlockMedal', {'target': this, 'func': this.onUnlockConfirmed}, null, {'medal_id': this.__get__id()});
					this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCKED, this));
				};
				v2.onUnlockConfirmed = function (event) {
					if (event.__get__success()) {
						com.newgrounds.Logger.logMessage('Medal "' + this.__get__name() + '" unlocked.');
					} else {
						com.newgrounds.Logger.logError('Failed to unlock "' + this.__get__name() + '"!');
					}
					this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, this, event.__get__error()));
				};
				v1.ICON_WIDTH = 50;
				v1.ICON_HEIGHT = 50;
				v1.DEFAULT_ICON = flash.display.BitmapData.loadBitmap('DefaultMedalIcon');
				v1.DIFFICULTY_EASY = 'Easy';
				v1.DIFFICULTY_MODERATE = 'Moderate';
				v1.DIFFICULTY_CHALLENGING = 'Challenging';
				v1.DIFFICULTY_DIFFICULT = 'Difficult';
				v1.DIFFICULTY_BRUTAL = 'Brutal';
				v1.DIFFICULTIES = ['Unknown', com.newgrounds.Medal.DIFFICULTY_EASY, com.newgrounds.Medal.DIFFICULTY_MODERATE, com.newgrounds.Medal.DIFFICULTY_CHALLENGING, com.newgrounds.Medal.DIFFICULTY_DIFFICULT, com.newgrounds.Medal.DIFFICULTY_BRUTAL];
				v2.addProperty('difficulty', v2.__get__difficulty, function () {});
				v2.addProperty('icon', v2.__get__icon, function () {});
				v2.addProperty('id', v2.__get__id, function () {});
				v2.addProperty('name', v2.__get__name, function () {});
				v2.addProperty('unlocked', v2.__get__unlocked, function () {});
				v2.addProperty('value', v2.__get__value, function () {});
				ASSetPropFlags(com.newgrounds.Medal.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1701 __Packages.com.newgrounds.ScoreBoard {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.ScoreBoard) {
				var v1 = function (connection, name, id) {
					super();
					this._connection = connection;
					this._name = name;
					this._id = id;
				};
				com.newgrounds.ScoreBoard = v1;
				com.newgrounds.ScoreBoard extends com.newgrounds.APIEventDispatcher;
				var v2 = v1.prototype;
				v2.__get__name = function () {
					return this._name;
				};
				v2.__get__scores = function () {
					return this._scores;
				};
				v2.__get__period = function () {
					return this._period;
				};
				v2.__set__period = function (val) {
					this._period = val;
					return this.__get__period();
				};
				v2.__get__firstResult = function () {
					return this._firstResult;
				};
				v2.__set__firstResult = function (val) {
					this._firstResult = Math.max(1, val);
					return this.__get__firstResult();
				};
				v2.__get__numResults = function () {
					return this._numResults;
				};
				v2.__set__numResults = function (val) {
					this._numResults = val;
					return this.__get__numResults();
				};
				v2.__get__tag = function () {
					return this._tag;
				};
				v2.__set__tag = function (val) {
					this._tag = val;
					return this.__get__tag();
				};
				v2.__get__page = function () {
					return Math.ceil((this._firstResult - 1) / this._numResults) + 1;
				};
				v2.prevPage = function () {
					if (this.__get__firstResult() > this._numResults) {
						this.firstResult -= this._numResults;
					}
				};
				v2.nextPage = function () {
					this.firstResult += this._numResults;
				};
				v2.loadScores = function () {
					this._connection.sendSimpleCommand('loadScores', {'target': this, 'func': this.onScoresLoaded}, {'publisher_id': this._connection.publisherId, 'board': this._id, 'page': (this._firstResult - 1) / this._numResults + 1, 'num_results': this._numResults, 'period': this._period, 'tag': this._tag});
				};
				v2.postScore = function (numericScore, tag) {
					if (tag == undefined) {
						tag = null;
					}
					if (isNaN(numericScore)) {
						com.newgrounds.Logger.logError('Cannot post invalid score: ' + numericScore);
						this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT));
						return undefined;
					}
					com.newgrounds.Logger.logMessage('Posting a score of ' + numericScore + ' by ' + this._connection.username + ' to scoreboard "' + this._name + '"...');
					this._connection.sendSimpleCommand('postScore', {'target': this, 'func': this.onScorePosted}, null, {'user_name': this._connection.username, 'board': this._id, 'value': numericScore, 'tag': tag});
				};
				v2.onScoresLoaded = function (event) {
					var v4 = event.__get__data();
					this._scores = [];
					var v5;
					if (v4.first_result) {
						v5 = v4.first_result;
					} else {
						v5 = this._firstResult;
					}
					if (v4.scores) {
						var v3 = 0;
						while (v3 < v4.scores.length) {
							var v2 = v4.scores[v3];
							if (v2) {
								this._scores[v3] = new com.newgrounds.Score(v5, v2.username, v2.value, v2.numeric_value, v2.tag);
							}
							v3++;
							v5++;
						}
					}
					this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORES_LOADED, this));
				};
				v2.onScorePosted = function (event) {
					if (event.__get__success()) {
						com.newgrounds.Logger.logMessage('Score posted!');
						var v4 = event.__get__data();
						var v2 = {};
						v2.score = v4.value;
						v2.scoreBoard = this;
					} else {
						com.newgrounds.Logger.logError('Error posting score: ' + event.__get__error());
					}
					this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, storedv2, event.__get__error()));
				};
				v2.toString = function () {
					return 'Scoreboard: ' + this._name;
				};
				v1.TODAY = 'Today';
				v1.THIS_WEEK = 'This Week';
				v1.THIS_MONTH = 'This Month';
				v1.THIS_YEAR = 'This Year';
				v1.ALL_TIME = 'All-Time';
				v2._period = com.newgrounds.ScoreBoard.ALL_TIME;
				v2._firstResult = 1;
				v2._numResults = 10;
				v2.addProperty('firstResult', v2.__get__firstResult, v2.__set__firstResult);
				v2.addProperty('name', v2.__get__name, function () {});
				v2.addProperty('numResults', v2.__get__numResults, v2.__set__numResults);
				v2.addProperty('page', v2.__get__page, function () {});
				v2.addProperty('period', v2.__get__period, v2.__set__period);
				v2.addProperty('scores', v2.__get__scores, function () {});
				v2.addProperty('tag', v2.__get__tag, v2.__set__tag);
				ASSetPropFlags(com.newgrounds.ScoreBoard.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1690 __Packages.com.newgrounds.Logger {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.Logger) {
				var v1 = function () {};
				com.newgrounds.Logger = v1;
				var v2 = v1.prototype;
				v1.logInternal = function () {
					var v2 = arguments;
					com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_INTERNAL, v2);
				};
				v1.logMessage = function () {
					var v2 = arguments;
					com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_MESSAGE, v2);
				};
				v1.logWarning = function () {
					var v2 = arguments;
					com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_WARNING, v2);
				};
				v1.logError = function () {
					var v2 = arguments;
					com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_ERROR, v2);
				};
				v1.log = function (priority, messages) {
					if (priority == undefined) {
						priority = com.newgrounds.Logger.PRIORITY_MESSAGE;
					}
					if (messages == undefined) {
						messages = null;
					}
					if (priority >= com.newgrounds.Logger._messageLevel) {
						var v1 = 0;
						while (v1 < messages.length) {
							trace(com.newgrounds.Logger.HEADER + messages[v1]);
							com.newgrounds.Logger._eventDispatcher.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.LOG, messages[v1]));
							++v1;
						}
					}
					if (priority >= com.newgrounds.Logger._throwLevel) {
						throw new Error(messages.join('\n'));
					}
				};
				v1.addEventListener = function (event, listener) {
					com.newgrounds.Logger._eventDispatcher.addEventListener(event, listener, false, 0, false);
				};
				v1.PRIORITY_INTERNAL = 0;
				v1.PRIORITY_MESSAGE = 1;
				v1.PRIORITY_WARNING = 2;
				v1.PRIORITY_ERROR = 3;
				v1.PRIORITY_MAX = 4;
				v1.HEADER = '[Newgrounds API] :: ';
				v1._eventDispatcher = new com.newgrounds.EventDispatcher();
				v1._messageLevel = com.newgrounds.Logger.PRIORITY_MESSAGE;
				v1._throwLevel = com.newgrounds.Logger.PRIORITY_MAX;
				ASSetPropFlags(com.newgrounds.Logger.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1709 __Packages.com.newgrounds.components.FlashAdBase {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.components) {
				_global.com.newgrounds.components = new Object();
			}
			if (!_global.com.newgrounds.components.FlashAdBase) {
				var v1 = function () {
					super();
					try {
						System.security.allowDomain('server.cpmstar.com');
						System.security.allowInsecureDomain('server.cpmstar.com');
					}
					this._x = int(this._x);
					this._y = int(this._y);
					this.stop();
					if (this.__get___newgroundsButton()) {
						(this.__get___newgroundsButton()).onRelease = this.onNGClick;
					}
					this.onUnload = this.removeAd;
					var v4 = this;
					this._adListener = {'onLoadError': function (target, error, httpStatus) {
						target._parent.onAdError(target, error, httpStatus);
					}};
					if (com.newgrounds.API.__get__adFeedURL()) {
						this.loadAdFeed();
					} else {
						com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, {'target': this, 'func': this.loadAdFeed});
					}
				};
				com.newgrounds.components.FlashAdBase = v1;
				com.newgrounds.components.FlashAdBase extends MovieClip;
				var v2 = v1.prototype;
				v2.__get___adContainer = function () {
					return this.adContainer;
				};
				v2.__get___newgroundsButton = function () {
					return this.newgroundsButton;
				};
				v2.__get__showBorder = function () {
					return this._showBorder;
				};
				v2.__set__showBorder = function (value) {
					this._showBorder = value;
					if (this._showBorder) {
						if (this._ad) {
							var v2 = this._ad.getProgress(this.__get___adContainer());
							if (v2.bytesLoaded >= v2.bytesTotal) {
								this.gotoAndStop('loaded');
							} else {
								this.gotoAndStop('loading');
							}
						} else {
							this.gotoAndStop('idle');
						}
					} else {
						this.gotoAndStop('noBorder');
					}
					return this.__get__showBorder();
				};
				v2.loadAdFeed = function (event) {
					if (event == undefined) {
						event = null;
					}
					this._adFeedLoader = new LoadVars();
					var target = this;
					this._adFeedLoader.onData = function (data) {
						target.onAdFeedLoaded(data);
					};
					this._adFeedLoader.load(com.newgrounds.API.__get__adFeedURL(), this._adFeedLoader);
				};
				v2.onAdFeedLoaded = function (data) {
					if (data && data != '') {
						this.loadAd(data);
					} else {
						this.onAdError();
					}
				};
				v2.loadAd = function (adURL) {
					this._ad = new MovieClipLoader();
					this._ad.addListener(this._adListener);
					(this.__get___adContainer())._lockroot = true;
					this._ad.loadClip(adURL, this.__get___adContainer());
				};
				v2.removeAd = function () {
					this._adFeedLoader.onData = null;
					this._adFeedLoader = null;
					this._ad.removeListener(this._adListener);
					if (this.__get___adContainer()) {
						this._ad.unloadClip(this.__get___adContainer());
					}
					this._ad = null;
				};
				v2.onAdError = function (target, error, httpStatus) {
					com.newgrounds.Logger.logError('Unable to load ad.');
					this.removeAd();
				};
				v2.onNGClick = function () {
					com.newgrounds.API.loadNewgrounds();
				};
				v2.addProperty('_adContainer', v2.__get___adContainer, function () {});
				v2.addProperty('_newgroundsButton', v2.__get___newgroundsButton, function () {});
				v2.addProperty('showBorder', v2.__get__showBorder, v2.__set__showBorder);
				ASSetPropFlags(com.newgrounds.components.FlashAdBase.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1681 __Packages.com.newgrounds.shims.APIShim {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.shims) {
				_global.com.newgrounds.shims = new Object();
			}
			if (!_global.com.newgrounds.shims.APIShim) {
				var v1 = function () {
					super();
				};
				com.newgrounds.shims.APIShim = v1;
				com.newgrounds.shims.APIShim extends MovieClip;
				var v2 = v1.prototype;
				ASSetPropFlags(com.newgrounds.shims.APIShim.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1694 __Packages.com.newgrounds.crypto.MD5 {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.crypto) {
				_global.com.newgrounds.crypto = new Object();
			}
			if (!_global.com.newgrounds.crypto.MD5) {
				var v1 = function () {};
				com.newgrounds.crypto.MD5 = v1;
				var v2 = v1.prototype;
				v1.hash = function (src) {
					return com.newgrounds.crypto.MD5.hex_md5(src);
				};
				v1.hex_md5 = function (src) {
					return com.newgrounds.crypto.MD5.binl2hex(com.newgrounds.crypto.MD5.core_md5(com.newgrounds.crypto.MD5.str2binl(src), src.length * 8));
				};
				v1.core_md5 = function (x, len) {
					x[len >> 5] |= 128 << len % 32;
					x[(len + 64 >>> 9 << 4) + 14] = len;
					var v4 = 1732584193;
					var v3 = -271733879;
					var v2 = -1732584194;
					var v1 = 271733878;
					var v5 = 0;
					while (v5 < x.length) {
						var v10 = v4;
						var v9 = v3;
						var v8 = v2;
						var v7 = v1;
						v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 0], 7, -680876936);
						v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 1], 12, -389564586);
						v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 2], 17, 606105819);
						v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 3], 22, -1044525330);
						v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 4], 7, -176418897);
						v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 5], 12, 1200080426);
						v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 6], 17, -1473231341);
						v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 7], 22, -45705983);
						v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 8], 7, 1770035416);
						v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 9], 12, -1958414417);
						v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 10], 17, -42063);
						v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 11], 22, -1990404162);
						v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 12], 7, 1804603682);
						v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 13], 12, -40341101);
						v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 14], 17, -1502002290);
						v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 15], 22, 1236535329);
						v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 1], 5, -165796510);
						v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 6], 9, -1069501632);
						v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 11], 14, 643717713);
						v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 0], 20, -373897302);
						v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 5], 5, -701558691);
						v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 10], 9, 38016083);
						v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 15], 14, -660478335);
						v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 4], 20, -405537848);
						v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 9], 5, 568446438);
						v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 14], 9, -1019803690);
						v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 3], 14, -187363961);
						v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 8], 20, 1163531501);
						v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 13], 5, -1444681467);
						v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 2], 9, -51403784);
						v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 7], 14, 1735328473);
						v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 12], 20, -1926607734);
						v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 5], 4, -378558);
						v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 8], 11, -2022574463);
						v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 11], 16, 1839030562);
						v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 14], 23, -35309556);
						v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 1], 4, -1530992060);
						v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 4], 11, 1272893353);
						v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 7], 16, -155497632);
						v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 10], 23, -1094730640);
						v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 13], 4, 681279174);
						v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 0], 11, -358537222);
						v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 3], 16, -722521979);
						v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 6], 23, 76029189);
						v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 9], 4, -640364487);
						v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 12], 11, -421815835);
						v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 15], 16, 530742520);
						v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 2], 23, -995338651);
						v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 0], 6, -198630844);
						v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 7], 10, 1126891415);
						v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 14], 15, -1416354905);
						v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 5], 21, -57434055);
						v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 12], 6, 1700485571);
						v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 3], 10, -1894986606);
						v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 10], 15, -1051523);
						v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 1], 21, -2054922799);
						v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 8], 6, 1873313359);
						v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 15], 10, -30611744);
						v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 6], 15, -1560198380);
						v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 13], 21, 1309151649);
						v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 4], 6, -145523070);
						v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 11], 10, -1120210379);
						v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 2], 15, 718787259);
						v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 9], 21, -343485551);
						v4 = com.newgrounds.crypto.MD5.safe_add(v4, v10);
						v3 = com.newgrounds.crypto.MD5.safe_add(v3, v9);
						v2 = com.newgrounds.crypto.MD5.safe_add(v2, v8);
						v1 = com.newgrounds.crypto.MD5.safe_add(v1, v7);
						v5 += 16;
					}
					return new Array(v4, v3, v2, v1);
				};
				v1.md5_cmn = function (q, a, b, x, s, t) {
					return com.newgrounds.crypto.MD5.safe_add(com.newgrounds.crypto.MD5.bit_rol(com.newgrounds.crypto.MD5.safe_add(com.newgrounds.crypto.MD5.safe_add(a, q), com.newgrounds.crypto.MD5.safe_add(x, t)), s), b);
				};
				v1.md5_ff = function (a, b, c, d, x, s, t) {
					return com.newgrounds.crypto.MD5.md5_cmn(b & c | ~b & d, a, b, x, s, t);
				};
				v1.md5_gg = function (a, b, c, d, x, s, t) {
					return com.newgrounds.crypto.MD5.md5_cmn(b & d | c & ~d, a, b, x, s, t);
				};
				v1.md5_hh = function (a, b, c, d, x, s, t) {
					return com.newgrounds.crypto.MD5.md5_cmn(b ^ c ^ d, a, b, x, s, t);
				};
				v1.md5_ii = function (a, b, c, d, x, s, t) {
					return com.newgrounds.crypto.MD5.md5_cmn(c ^ (b | ~d), a, b, x, s, t);
				};
				v1.bit_rol = function (num, cnt) {
					return num << cnt | num >>> 32 - cnt;
				};
				v1.safe_add = function (x, y) {
					var v1 = (x & 65535) + (y & 65535);
					var v2 = (x >> 16) + (y >> 16) + (v1 >> 16);
					return v2 << 16 | v1 & 65535;
				};
				v1.str2binl = function (str) {
					var v3 = new Array();
					var v4 = 255;
					var v1 = 0;
					while (v1 < str.length * 8) {
						v3[v1 >> 5] |= (str.charCodeAt(v1 / 8) & v4) << v1 % 32;
						v1 += 8;
					}
					return v3;
				};
				v1.binl2hex = function (binarray) {
					var v4 = new String('');
					var v3 = new String('0123456789abcdef');
					var v1 = 0;
					while (v1 < binarray.length * 4) {
						v4 += v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 + 4 & 15) + v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 & 15);
						++v1;
					}
					return v4;
				};
				ASSetPropFlags(com.newgrounds.crypto.MD5.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1695 __Packages.com.newgrounds.crypto.RC4 {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.crypto) {
				_global.com.newgrounds.crypto = new Object();
			}
			if (!_global.com.newgrounds.crypto.RC4) {
				var v1 = function () {};
				com.newgrounds.crypto.RC4 = v1;
				var v2 = v1.prototype;
				v1.encrypt = function (src, key) {
					var v3 = com.newgrounds.crypto.RC4.strToChars(src);
					var v1 = com.newgrounds.crypto.RC4.strToChars(key);
					var v2 = com.newgrounds.crypto.RC4.calculate(v3, v1);
					return com.newgrounds.crypto.RC4.charsToHex(v2);
				};
				v1.encryptbin = function (src, key) {
					var v3 = com.newgrounds.crypto.RC4.strToChars(src);
					var v1 = com.newgrounds.crypto.RC4.strToChars(key);
					var v2 = com.newgrounds.crypto.RC4.calculate(v3, v1);
					return v2;
				};
				v1.decrypt = function (src, key) {
					var v3 = com.newgrounds.crypto.RC4.hexToChars(src);
					var v1 = com.newgrounds.crypto.RC4.strToChars(key);
					var v2 = com.newgrounds.crypto.RC4.calculate(v3, v1);
					return com.newgrounds.crypto.RC4.charsToStr(v2);
				};
				v1.initialize = function (pwd) {
					var v2 = 0;
					var v3;
					var v4 = pwd.length;
					var v1 = 0;
					while (v1 <= 255) {
						com.newgrounds.crypto.RC4.mykey[v1] = pwd[v1 % v4];
						com.newgrounds.crypto.RC4.sbox[v1] = v1;
						++v1;
					}
					v1 = 0;
					while (v1 <= 255) {
						v2 = (v2 + com.newgrounds.crypto.RC4.sbox[v1] + com.newgrounds.crypto.RC4.mykey[v1]) % 256;
						v3 = com.newgrounds.crypto.RC4.sbox[v1];
						com.newgrounds.crypto.RC4.sbox[v1] = com.newgrounds.crypto.RC4.sbox[v2];
						com.newgrounds.crypto.RC4.sbox[v2] = v3;
						++v1;
					}
				};
				v1.calculate = function (plaintxt, psw) {
					com.newgrounds.crypto.RC4.initialize(psw);
					var v1 = 0;
					var v2 = 0;
					var v9 = new Array();
					var v7;
					var v5;
					var v6;
					var v3 = 0;
					while (v3 < plaintxt.length) {
						v1 = (v1 + 1) % 256;
						v2 = (v2 + com.newgrounds.crypto.RC4.sbox[v1]) % 256;
						v5 = com.newgrounds.crypto.RC4.sbox[v1];
						com.newgrounds.crypto.RC4.sbox[v1] = com.newgrounds.crypto.RC4.sbox[v2];
						com.newgrounds.crypto.RC4.sbox[v2] = v5;
						var v4 = (com.newgrounds.crypto.RC4.sbox[v1] + com.newgrounds.crypto.RC4.sbox[v2]) % 256;
						v7 = com.newgrounds.crypto.RC4.sbox[v4];
						v6 = plaintxt[v3] ^ v7;
						v9.push(v6);
						++v3;
					}
					return v9;
				};
				v1.charsToHex = function (chars) {
					var v4 = new String('');
					var v3 = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');
					var v1 = 0;
					while (v1 < chars.length) {
						v4 += v3[chars[v1] >> 4] + v3[chars[v1] & 15];
						++v1;
					}
					return v4;
				};
				v1.hexToChars = function (hex) {
					var v3 = new Array();
					var v1 = (hex.substr(0, 2) == '0x') ? 2 : 0;
					while (v1 < hex.length) {
						v3.push(parseInt(hex.substr(v1, 2), 16));
						v1 += 2;
					}
					return v3;
				};
				v1.charsToStr = function (chars) {
					var v3 = new String('');
					var v1 = 0;
					while (v1 < chars.length) {
						v3 += String.fromCharCode(chars[v1]);
						++v1;
					}
					return v3;
				};
				v1.strToChars = function (str) {
					var v3 = new Array();
					var v1 = 0;
					while (v1 < str.length) {
						v3.push(str.charCodeAt(v1));
						++v1;
					}
					return v3;
				};
				v1.sbox = new Array(255);
				v1.mykey = new Array(255);
				ASSetPropFlags(com.newgrounds.crypto.RC4.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1696 __Packages.com.newgrounds.encoders.json.JSON {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.encoders) {
				_global.com.newgrounds.encoders = new Object();
			}
			if (!_global.com.newgrounds.encoders.json) {
				_global.com.newgrounds.encoders.json = new Object();
			}
			if (!_global.com.newgrounds.encoders.json.JSON) {
				var v1 = function () {};
				com.newgrounds.encoders.json.JSON = v1;
				var v2 = v1.prototype;
				v1.encode = function (arg, noquotes) {
					var v3;
					var v2;
					var v6;
					var v1 = '';
					var v4;
					if (arg.isSServerVar()) {
						var v8 = 'sservervariable';
					} else {
						var v8 = typeof arg;
					}
					switch (v8) {
							return 'null';
						case 'sservervariable':
							return '?' + arg.getEncodedValue();
							break;
						case 'object':
							if (arg) {
								if (arg instanceof Array) {
									v2 = 0;
									while (v2 < arg.length) {
										v4 = com.newgrounds.encoders.json.JSON.encode(arg[v2]);
										if (v1) {
											v1 += ',';
										}
										v1 += v4;
										++v2;
									}
									return '[' + v1 + ']';
								} else {
									if (typeof arg.toString != 'undefined') {
										for (v2 in arg) {
											v4 = arg[v2];
											if (typeof v4 != 'undefined' && typeof v4 != 'function') {
												v4 = com.newgrounds.encoders.json.JSON.encode(v4);
												if (v1) {
													v1 += ',';
												}
												v1 += com.newgrounds.encoders.json.JSON.encode(v2) + ':' + v4;
											}
										}
										return '{' + v1 + '}';
									}
								}
							}
							return 'null';
						case 'number':
							return isFinite(arg) ? String(arg) : 'null';
						case 'string':
							v6 = arg.length;
							if (noquotes) {
								var v7 = '';
							} else {
								var v7 = '"';
							}
							v1 = v7;
							v2 = 0;
							while (v2 < v6) {
								v3 = arg.charAt(v2);
								if (v3 >= ' ') {
									if (v3 == '\\' || v3 == '"') {
										v1 += '\\';
									}
									v1 += v3;
								} else {
									switch (v3) {
										case '\b':
											v1 += '\\b';
											break;
										case '\f':
											v1 += '\\f';
											break;
										case '\n':
											v1 += '\\n';
											break;
										case '\r':
											v1 += '\\r';
											break;
										case '\t':
											v1 += '\\t';
											break;
										default:
											v3 = v3.charCodeAt();
											v1 += '\\u00' + (Math.floor(v3 / 16)).toString(16) + (v3 % 16).toString(16);
									}
								}
								v2 += 1;
							}
							return v1 + v7;
						case 'boolean':
							return String(arg);
						default:
							return 'null';
					}
				};
				v1.background_encode = function (arg, callback) {
					if (com.newgrounds.encoders.json.JSON.busy) {
						trace('[Newgrounds Encoder] :: Cannot encode a new file until the previous file is completed');
						return false;
					} else {
						if (!callback) {
							trace('[Newgrounds Encoder] :: Missing a callback function, skipping encode');
							return false;
						}
					}
					com.newgrounds.encoders.json.JSON.busy = true;
					var v2 = new Date();
					com.newgrounds.encoders.json.JSON.start = v2.getTime();
					com.newgrounds.encoders.json.JSON.cache = {'busy': false, 'complete': false, 'arg': arg, 'target': arg, 'parents': [], 'encoded': '', 'callback': callback, 'encode_chunk': function () {
						com.newgrounds.encoders.json.JSON.encode_chunk();
					}};
					if (com.newgrounds.encoders.json.JSON.getType(arg) == 'object') {
						com.newgrounds.encoders.json.JSON.cache.encoded = '{';
						com.newgrounds.encoders.json.JSON.interval = setInterval(com.newgrounds.encoders.json.JSON.cache, 'encode_chunk', 25);
						return true;
					}
					if (com.newgrounds.encoders.json.JSON.getType(arg) == 'array') {
						com.newgrounds.encoders.json.JSON.cache.encoded = '[';
					}
					com.newgrounds.encoders.json.JSON.interval = setInterval(com.newgrounds.encoders.json.JSON.cache, 'encode_chunk', 25);
					return true;
				};
				v1.background_decode = function (arg, callback) {
					if (com.newgrounds.encoders.json.JSON.busy) {
						trace('[Newgrounds Encoder] :: Cannot decode a new file until the previous file is completed');
						return false;
					} else {
						if (!callback) {
							trace('[Newgrounds Encoder] :: Missing a callback function, skipping decode');
							return false;
						}
					}
					com.newgrounds.encoders.json.JSON.busy = true;
					var v1 = new Date();
					com.newgrounds.encoders.json.JSON.start = v1.getTime();
					com.newgrounds.encoders.json.JSON.cache = {'busy': false, 'callback': callback, 'complete': false, 'arg': arg, 'pos': 0, 'parents': ['root'], 'target': null, 'scratch': '', 'decode_chunk': function () {
						com.newgrounds.encoders.json.JSON.decode_chunk();
					}};
					com.newgrounds.encoders.json.JSON.interval = setInterval(com.newgrounds.encoders.json.JSON.cache, 'decode_chunk', 25);
					return true;
				};
				v1.decode = function (text) {
					var at = 0;
					var ch = ' ';
					var _value;
					var _error = function (m) {
						throw {'name': 'JSONError', 'message': m, 'at': at - 1, 'text': text};
					};
					var _next = function () {
						ch = text.charAt(at);
						at += 1;
						return ch;
					};
					var _white = function () {
						while (ch) {
							if (ch <= ' ') {
								_next();
							} else {
								if (ch == '/') {
									switch (_next()) {
										case '/':
											for (;;) {
												if (!(_next() && ch != '\n' && ch != '\r')) break;
											}
											break;
										case '*':
											_next();
											for (;;) {
												if (ch) {
													if (ch == '*') {
														if (_next() == '/') {
															_next();
															break;
														}
													} else {
														_next();
													}
													continue;
												}
												_error('Unterminated comment');
											}
											break;
										default:
											_error('Syntax error');
									}
								} else {
									break;
								}
							}
						}
					};
					var _string = function () {
						var v4;
						var v1 = '';
						var v3;
						var v2;
						var v5 = false;
						if (ch == '"') {
							while (_next()) {
								if (ch == '"') {
									_next();
									return v1;
								} else {
									if (ch == '\\') {
										switch (_next()) {
											case 'b':
												v1 += '\b';
												break;
											case 'f':
												v1 += '\f';
												break;
											case 'n':
												v1 += '\n';
												break;
											case 'r':
												v1 += '\r';
												break;
											case 't':
												v1 += '\t';
												break;
											case 'u':
												v2 = 0;
												v4 = 0;
												while (v4 < 4) {
													v3 = parseInt(_next(), 16);
													if (!isFinite(v3)) {
														v5 = true;
														break;
													}
													v2 = v2 * 16 + v3;
													v4 += 1;
												}
												if (v5) {
													v5 = false;
												} else {
													v1 += String.fromCharCode(v2);
													break;
												default:
													v1 += ch;
												}
										}
									} else {
										v1 += ch;
									}
								}
							}
						}
						_error('Bad string');
					};
					var _array = function () {
						var v1 = [];
						if (ch == '[') {
							_next();
							_white();
							if (ch == ']') {
								_next();
								return v1;
							}
							while (ch) {
								v1.push(_value());
								_white();
								if (ch == ']') {
									_next();
									return v1;
								} else {
									if (ch != ',') {
										break;
									}
								}
								_next();
								_white();
							}
						}
						_error('Bad array');
					};
					var _object = function () {
						var v2;
						var v1 = {};
						if (ch == '{') {
							_next();
							_white();
							if (ch == '}') {
								_next();
								return v1;
							}
							while (ch) {
								v2 = _string();
								_white();
								if (ch != ':') {
									break;
								}
								_next();
								v1[v2] = _value();
								_white();
								if (ch == '}') {
									_next();
									return v1;
								} else {
									if (ch != ',') {
										break;
									}
								}
								_next();
								_white();
							}
						}
						_error('Bad object');
					};
					var _number = function () {
						var v1 = '';
						var v2;
						if (ch == '-') {
							v1 = '-';
							_next();
						}
						for (;;) {
							if (!(ch >= '0' && ch <= '9')) break;
							v1 += ch;
							_next();
						}
						if (ch == '.') {
							v1 += '.';
							for (;;) {
								if (!(_next() && ch >= '0' && ch <= '9')) break;
								v1 += ch;
							}
						}
						v2 = 1 * v1;
						if (!isFinite(v2)) {
							_error('Bad number');
						} else {
							return v2;
						}
					};
					var _word = function () {
						switch (ch) {
							case 't':
								if (_next() == 'r' && _next() == 'u' && _next() == 'e') {
									_next();
									return true;
								}
								break;
							case 'f':
								if (_next() == 'a' && _next() == 'l' && _next() == 's' && _next() == 'e') {
									_next();
									return false;
								}
								break;
							case 'n':
								if (_next() == 'u' && _next() == 'l' && _next() == 'l') {
									_next();
									return null;
								}
						}
						_error('Syntax error');
					};
					_value = function () {
						_white();
						switch (ch) {
							case '{':
								return _object();
							case '[':
								return _array();
							case '"':
								return _string();
							case '-':
								return _number();
						}
						return (ch >= '0' && ch <= '9') ? _number() : _word();
					};
					return _value();
				};
				v1.getType = function (v) {
					if (v instanceof Array) {
						return 'array';
					} else {
						return typeof v;
					}
				};
				v1.decode_chunk = function () {
					if (!com.newgrounds.encoders.json.JSON.cache.busy && !com.newgrounds.encoders.json.JSON.cache.complete) {
						com.newgrounds.encoders.json.JSON.cache.busy = true;
						var v1 = 0;
						while (v1 < com.newgrounds.encoders.json.JSON.decode_chunks) {
							com.newgrounds.encoders.json.JSON.chunk_decoder();
							if (com.newgrounds.encoders.json.JSON.cache.complete) {
								break;
							}
							++v1;
						}
						trace(Math.round((com.newgrounds.encoders.json.JSON.cache.pos / com.newgrounds.encoders.json.JSON.cache.arg.length) * 100) + '% decoded');
						com.newgrounds.encoders.json.JSON.cache.busy = false;
					}
					if (com.newgrounds.encoders.json.JSON.cache.complete) {
						var v2 = new Date();
						com.newgrounds.encoders.json.JSON.busy = false;
						clearInterval(com.newgrounds.encoders.json.JSON.interval);
						com.newgrounds.encoders.json.JSON.cache.callback(com.newgrounds.encoders.json.JSON.cache.root, v2.getTime() - com.newgrounds.encoders.json.JSON.start);
						com.newgrounds.encoders.json.JSON.cache.arg = '';
					}
				};
				v1.encode_chunk = function () {
					if (!com.newgrounds.encoders.json.JSON.cache.busy && !com.newgrounds.encoders.json.JSON.cache.complete) {
						com.newgrounds.encoders.json.JSON.cache.busy = true;
						var v1 = 0;
						while (v1 < com.newgrounds.encoders.json.JSON.encode_chunks) {
							com.newgrounds.encoders.json.JSON.chunk_encoder();
							if (com.newgrounds.encoders.json.JSON.cache.complete) {
								break;
							}
							++v1;
						}
						com.newgrounds.encoders.json.JSON.cache.busy = false;
					}
					if (com.newgrounds.encoders.json.JSON.cache.complete) {
						var v3 = new Date();
						var v2 = v3.getTime();
						com.newgrounds.encoders.json.JSON.busy = false;
						clearInterval(com.newgrounds.encoders.json.JSON.interval);
						com.newgrounds.encoders.json.JSON.cache.callback(com.newgrounds.encoders.json.JSON.cache.encoded, v2 - com.newgrounds.encoders.json.JSON.start);
						com.newgrounds.encoders.json.JSON.cache.encoded = '';
					}
				};
				v1.chunk_decoder = function () {
					function _object() {
						var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
						if (!com.newgrounds.encoders.json.JSON.cache.mode) {
							com.newgrounds.encoders.json.JSON.cache.mode = 'object';
							++com.newgrounds.encoders.json.JSON.cache.pos;
							v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
							if (v1 != '"') {
								throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")';
							}
							com.newgrounds.encoders.json.JSON.cache.scratch = '';
							_setTargetValue({});
						} else {
							if (v1 == ',') {
								++com.newgrounds.encoders.json.JSON.cache.pos;
								v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
								if (v1 != '"') {
									throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")';
								}
								com.newgrounds.encoders.json.JSON.cache.scratch = '';
							} else {
								if (v1 == '}') {
									_useParent();
								} else {
									if (v1 == '"') {
										++com.newgrounds.encoders.json.JSON.cache.pos;
										v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
										if (v1 != ':') {
											throw 'Malformed object notation. Object keys and values must be separated by colons(:)';
										}
										_addParent(com.newgrounds.encoders.json.JSON.cache.scratch);
										com.newgrounds.encoders.json.JSON.cache.mode = null;
									} else {
										if (v1 == '\\') {
											++com.newgrounds.encoders.json.JSON.cache.pos;
											v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
										}
										com.newgrounds.encoders.json.JSON.cache.scratch += v1;
									}
								}
							}
						}
						++com.newgrounds.encoders.json.JSON.cache.pos;
					}
					function _array() {
						var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
						if (!com.newgrounds.encoders.json.JSON.cache.mode) {
							com.newgrounds.encoders.json.JSON.cache.mode = 'array';
							++com.newgrounds.encoders.json.JSON.cache.pos;
							v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
							_setTargetValue([]);
							if (v1 != ']') {
								_addArrayKey();
							} else {
								_useParent();
							}
							return undefined;
						} else {
							if (v1 == ',') {
								_addArrayKey();
							} else {
								if (v1 == ']') {
									_useParent();
								}
							}
						}
						++com.newgrounds.encoders.json.JSON.cache.pos;
					}
					function _boolean() {
						var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
						if (v1 == 't') {
							_setTargetValue(true);
							com.newgrounds.encoders.json.JSON.cache.pos += 3;
						} else {
							if (v1 == 'f') {
								_setTargetValue(false);
								com.newgrounds.encoders.json.JSON.cache.pos += 4;
							} else {
								throw 'Bool values must be true or false';
							}
						}
						_useParent();
					}
					function _null() {
						var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
						if (v1 == 'n') {
							_setTargetValue(null);
							com.newgrounds.encoders.json.JSON.cache.pos += 2;
						} else {
							throw 'Null values must be null';
						}
						_useParent();
					}
					function _string() {
						var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
						if (!com.newgrounds.encoders.json.JSON.cache.mode) {
							if (v1 != '"') {
								throw 'Strings must be wrapped in quotes ("")';
							}
							com.newgrounds.encoders.json.JSON.cache.scratch = '';
							com.newgrounds.encoders.json.JSON.cache.mode = 'string';
						} else {
							if (v1 == '"') {
								_setTargetValue(com.newgrounds.encoders.json.JSON.cache.scratch);
								_useParent();
							} else {
								if (v1 == '\\') {
									++com.newgrounds.encoders.json.JSON.cache.pos;
									v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
									switch (v1) {
										case 'n':
											v1 = '\n';
											break;
										case 'r':
											v1 = '\n';
											break;
										case 't':
											v1 = '\t';
											break;
										case 'u':
											v1 = '\\' + v1;
									}
								}
								com.newgrounds.encoders.json.JSON.cache.scratch += v1;
							}
						}
						++com.newgrounds.encoders.json.JSON.cache.pos;
					}
					function _number() {
						var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
						var v2 = '01234567890.-';
						if (!com.newgrounds.encoders.json.JSON.cache.mode) {
							com.newgrounds.encoders.json.JSON.cache.mode = 'number';
							com.newgrounds.encoders.json.JSON.cache.scratch = '';
						}
						if (v2.indexOf(v1) < 0) {
							_setTargetValue(Number(com.newgrounds.encoders.json.JSON.cache.scratch));
							_useParent();
						} else {
							com.newgrounds.encoders.json.JSON.cache.scratch += v1;
							++com.newgrounds.encoders.json.JSON.cache.pos;
						}
					}
					function _setTargetValue(newval) {
						var v2 = (_getParent()).obj;
						var v1 = com.newgrounds.encoders.json.JSON.cache.parents[com.newgrounds.encoders.json.JSON.cache.parents.length - 1];
						v2[v1] = newval;
					}
					function _useParent() {
						com.newgrounds.encoders.json.JSON.cache.mode = com.newgrounds.encoders.json.JSON.getType((_getParent()).obj);
						com.newgrounds.encoders.json.JSON.cache.parents.pop();
					}
					function _getParent() {
						var v2 = com.newgrounds.encoders.json.JSON.cache;
						var v1 = 0;
						while (v1 < com.newgrounds.encoders.json.JSON.cache.parents.length - 1) {
							v2 = v2[com.newgrounds.encoders.json.JSON.cache.parents[v1]];
							++v1;
						}
						return {'obj': v2, 'name': com.newgrounds.encoders.json.JSON.cache.parents[v1]};
					}
					function _getCurrent() {
						var v2 = com.newgrounds.encoders.json.JSON.cache;
						var v1 = 0;
						while (v1 < com.newgrounds.encoders.json.JSON.cache.parents.length) {
							v2 = v2[com.newgrounds.encoders.json.JSON.cache.parents[v1]];
							++v1;
						}
						return {'obj': v2, 'name': com.newgrounds.encoders.json.JSON.cache.parents[v1]};
					}
					function _addParent(child) {
						com.newgrounds.encoders.json.JSON.cache.parents.push(child);
					}
					function _addArrayKey() {
						var v1 = (_getCurrent()).obj.length;
						com.newgrounds.encoders.json.JSON.cache.parents.push(v1);
						com.newgrounds.encoders.json.JSON.cache.mode = null;
					}
					if (com.newgrounds.encoders.json.JSON.cache.pos >= com.newgrounds.encoders.json.JSON.cache.arg.length) {
						com.newgrounds.encoders.json.JSON.cache.complete = true;
						return undefined;
					} else {
						if (com.newgrounds.encoders.json.JSON.cache.mode) {
							('_' + com.newgrounds.encoders.json.JSON.cache.mode)();
						} else {
							var char = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
							switch (char) {
								case '{':
									_object();
									break;
								case '[':
									_array();
									break;
								case '"':
									_string();
									break;
								case 'n':
									_null();
									break;
								case 't':
									_boolean();
									break;
								case 'f':
									_boolean();
									break;
								default:
									_number();
							}
						}
					}
				};
				v1.chunk_encoder = function () {
					if (com.newgrounds.encoders.json.JSON.cache.complete) {
						return undefined;
					}
					var v2 = com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target);
					switch (v2) {
						case 'number':
							com.newgrounds.encoders.json.JSON.cache.encoded += com.newgrounds.encoders.json.JSON.cache.target;
							com.newgrounds.encoders.json.JSON.getParent();
							break;
						case 'string':
							com.newgrounds.encoders.json.JSON.cache.encoded += '"' + (com.newgrounds.encoders.json.JSON.cache.target.split('"')).join('\\"') + '"';
							com.newgrounds.encoders.json.JSON.getParent();
							break;
						case 'boolean':
							com.newgrounds.encoders.json.JSON.cache.encoded += (com.newgrounds.encoders.json.JSON.cache.target == true) ? 'true' : 'false';
							com.newgrounds.encoders.json.JSON.getParent();
							break;
						case 'null':
							com.newgrounds.encoders.json.JSON.cache.encoded += 'null';
							com.newgrounds.encoders.json.JSON.getParent();
							break;
						case 'array':
							if (com.newgrounds.encoders.json.JSON.cache.target.length < 1) {
								com.newgrounds.encoders.json.JSON.cache.encoded += ']';
								com.newgrounds.encoders.json.JSON.getParent();
							} else {
								com.newgrounds.encoders.json.JSON.cache.parents.push(com.newgrounds.encoders.json.JSON.cache.target);
								com.newgrounds.encoders.json.JSON.cache.target = com.newgrounds.encoders.json.JSON.cache.target[0];
								if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'array') {
									com.newgrounds.encoders.json.JSON.cache.encoded += '[';
								} else {
									if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'object') {
										com.newgrounds.encoders.json.JSON.cache.encoded += '{';
									}
								}
							}
							break;
						case 'object':
							for (var v1 in com.newgrounds.encoders.json.JSON.cache.target) {
								break;
							}
														if (v1 === undefined) {
								com.newgrounds.encoders.json.JSON.cache.encoded += '}';
								com.newgrounds.encoders.json.JSON.getParent();
							} else {
								com.newgrounds.encoders.json.JSON.cache.parents.push(com.newgrounds.encoders.json.JSON.cache.target);
								com.newgrounds.encoders.json.JSON.cache.target = com.newgrounds.encoders.json.JSON.cache.target[v1];
								com.newgrounds.encoders.json.JSON.cache.encoded += '"' + (v1.split('"')).join('\\"') + '":';
								if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'array') {
									com.newgrounds.encoders.json.JSON.cache.encoded += '[';
								} else {
									if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'object') {
										com.newgrounds.encoders.json.JSON.cache.encoded += '{';
									}
								}
							}
							break;
						default:
							com.newgrounds.encoders.json.JSON.cache.encoded += 'null';
							com.newgrounds.encoders.json.JSON.getParent();
					}
				};
				v1.getParent = function () {
					if (com.newgrounds.encoders.json.JSON.cache.parents.length > 0) {
						var v1 = com.newgrounds.encoders.json.JSON.cache.parents.pop();
						if (com.newgrounds.encoders.json.JSON.getType(v1) == 'array') {
							v1.shift();
						} else {
							for (var v3 in v1) {
								delete v1[v3];
								break;
							}
													}
						if (com.newgrounds.encoders.json.JSON.getType(v1) == 'object' or com.newgrounds.encoders.json.JSON.getType(v1) == 'array') {
							for (var v2 in v1) {
								break;
							}
														if (v2 !== undefined) {
								com.newgrounds.encoders.json.JSON.cache.encoded += ',';
							}
						}
						com.newgrounds.encoders.json.JSON.cache.target = v1;
					} else {
						com.newgrounds.encoders.json.JSON.cache.complete = true;
					}
				};
				v1.encode_chunks = 20000;
				v1.decode_chunks = 20000;
				v1.busy = false;
				ASSetPropFlags(com.newgrounds.encoders.json.JSON.prototype, null, 1);
			}
		#endinitclip
	}
	movieClip 1700 __Packages.com.newgrounds.Score {
		#initclip
			if (!_global.com) {
				_global.com = new Object();
			}
			if (!_global.com.newgrounds) {
				_global.com.newgrounds = new Object();
			}
			if (!_global.com.newgrounds.Score) {
				var v1 = function (rank, username, score, numericValue, tag) {
					this._rank = rank;
					this._username = username;
					this._score = score;
					this._numericValue = numericValue;
					this._tag = tag;
				};
				com.newgrounds.Score = v1;
				var v2 = v1.prototype;
				v2.__get__numericValue = function () {
					return this._numericValue;
				};
				v2.__get__rank = function () {
					return this._rank;
				};
				v2.__get__score = function () {
					return this._score;
				};
				v2.__get__tag = function () {
					return this._tag;
				};
				v2.__get__username = function () {
					return this._username;
				};
				v2.toString = function () {
					return this._rank + '.\t' + this._username + '\t' + this._score;
				};
				v2.addProperty('numericValue', v2.__get__numericValue, function () {});
				v2.addProperty('rank', v2.__get__rank, function () {});
				v2.addProperty('score', v2.__get__score, function () {});
				v2.addProperty('tag', v2.__get__tag, function () {});
				v2.addProperty('username', v2.__get__username, function () {});
				ASSetPropFlags(com.newgrounds.Score.prototype, null, 1);
			}
		#endinitclip
	}
	frame 3 {
		stop();
		_quality = menuquality;
		i = 0;
		clearslotz = 0;
		saveGlow();
		onEnterFrame = function () {
			MainMenu();
		};
	}
	movieClip 1922	{
	}
	button 1929 {
		on (rollOver) {
			i = 4;
			saveRollover();
		}
		on (rollOut) {
			saveRollout();
		}
		on (release) {
			if (yousure_MC._currentframe == 1) {
				currentslot = 4;
				music.stop(currentmusic);
				loadPlayer();
			}
		}
	}
	button 1933 {
		on (release) {
			clearslotz = 100;
			gotoAndPlay('Title_back');
		}
	}
	button 1937 {
		on (release) {
			if (_root.saveinfo_MC._currentframe == 1) {
				_root.saveinfo_MC.gotoAndStop(2);
			} else {
				_root.saveinfo_MC.gotoAndStop(1);
			}
		}
	}
	movieClip 1939	{
	}
	movieClip 1940	{
		frame 1 {
			stop();
		}
		frame 29 {
			stop();
		}
	}
	button 1944 {
		on (rollOver) {
			i = 1;
			saveRollover();
		}
		on (rollOut) {
			saveRollout();
		}
		on (release) {
			if (yousure_MC._currentframe == 1) {
				currentslot = 1;
				music.stop(currentmusic);
				loadPlayer();
			}
		}
	}
	button 1948 {
		on (rollOver) {
			i = 2;
			saveRollover();
		}
		on (rollOut) {
			saveRollout();
		}
		on (release) {
			if (yousure_MC._currentframe == 1) {
				currentslot = 2;
				music.stop(currentmusic);
				loadPlayer();
			}
		}
	}
	button 1952 {
		on (rollOver) {
			i = 3;
			saveRollover();
		}
		on (rollOut) {
			saveRollout();
		}
		on (release) {
			if (yousure_MC._currentframe == 1) {
				currentslot = 3;
				music.stop(currentmusic);
				loadPlayer();
			}
		}
	}
	button 1956 {
		on (rollOver) {
			i = 5;
			saveRollover();
		}
		on (rollOut) {
			saveRollout();
		}
		on (release) {
			if (yousure_MC._currentframe == 1) {
				currentslot = 5;
				music.stop(currentmusic);
				loadPlayer();
			}
		}
	}
	button 1960 {
		on (rollOver) {
			i = 6;
			saveRollover();
		}
		on (rollOut) {
			saveRollout();
		}
		on (release) {
			if (yousure_MC._currentframe == 1) {
				currentslot = 6;
				music.stop(currentmusic);
				loadPlayer();
			}
		}
	}
	movieClip 1965	{
	}
	movieClip 1972	{
	}
	movieClip 1974	{
	}
	movieClip 1976	{
	}
	movieClip 1978	{
	}
	movieClip 1980	{
	}
	movieClip 1982	{
	}
	movieClip 1984	{
	}
	movieClip 1986	{
	}
	movieClip 1988	{
	}
	movieClip 1989	{
	}
	movieClip 1991	{
	}
	movieClip 1992	{
	}
	movieClip 1993	{
	}
	movieClip 1994	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.guarduniform') == false) {
					gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.hair') + 1);
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.hairtintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.hairtintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.hairtintbb')});
				} else {
					gotoAndStop(1);
				}
			} else {
				if (_root.guarduniform == false) {
					gotoAndStop(_root.hair + 1);
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
				} else {
					gotoAndStop(1);
				}
			}
		}
	}
	movieClip 2000	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skinz'));
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skintintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skintintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skintintbb')});
			} else {
				gotoAndStop(_root.skinz);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
			}
		}
	}
	movieClip 2007	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.jacket'));
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.jackettintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.jackettintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.jackettintbb')});
			} else {
				gotoAndStop(_root.jacket);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.jackettintrb, 'gb': _root.jackettintgb, 'bb': _root.jackettintbb});
			}
		}
	}
	movieClip 2018	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skinz'));
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skintintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skintintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skintintbb')});
			} else {
				gotoAndStop(_root.skinz);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
			}
		}
	}
	movieClip 2020	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.barechest') == true) {
					gotoAndStop(6);
				} else {
					gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.arms'));
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.armtintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.armtintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.armtintbb')});
				}
			} else {
				if (_root.barechest == true) {
					gotoAndStop(6);
				} else {
					gotoAndStop(_root.arms);
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
				}
			}
		}
	}
	movieClip 2021	{
	}
	movieClip 2026	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.necklace'));
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.necklacetintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.necklacetintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.necklacetintbb')});
			} else {
				gotoAndStop(_root.necklace);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.necklacetintrb, 'gb': _root.necklacetintgb, 'bb': _root.necklacetintbb});
			}
		}
	}
	movieClip 2030	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.jacket'));
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.sheathtintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.sheathtintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.sheathtintbb')});
			} else {
				gotoAndStop(_root.jacket);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
			}
		}
	}
	movieClip 2036	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skinz'));
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skintintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skintintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skintintbb')});
			} else {
				gotoAndStop(_root.skinz);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
			}
		}
	}
	movieClip 2038	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.freckles'));
				this._alpha = eval('_root.player' + _root.previewnum + 'SO.data.playerDat.frecklesalpha');
			} else {
				gotoAndStop(_root.freckles);
				this._alpha = _root.frecklesalpha;
			}
		}
	}
	movieClip 2041	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.nosez') == 6) {
					gotoAndStop(2);
				} else {
					stop();
				}
			} else {
				if (_root.nosez == 6) {
					gotoAndStop(2);
				} else {
					stop();
				}
			}
		}
	}
	movieClip 2051	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.tattoo'));
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.tattootintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.tattootintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.tattootintbb')});
				this._alpha = eval('_root.player' + _root.previewnum + 'SO.data.playerDat.tattooalpha');
			} else {
				gotoAndStop(_root.tattoo);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.tattootintrb, 'gb': _root.tattootintgb, 'bb': _root.tattootintbb});
				this._alpha = _root.tattooalpha;
			}
		}
	}
	movieClip 2057	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.scar'));
				this._alpha = eval('_root.player' + _root.previewnum + 'SO.data.playerDat.scaralpha');
			} else {
				gotoAndStop(_root.scar);
				this._alpha = _root.scaralpha;
			}
		}
	}
	movieClip 2060	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.skinz') > 2) {
					gotoAndStop(2);
				} else {
					stop();
				}
			} else {
				if (_root.skinz > 2) {
					gotoAndStop(2);
				} else {
					stop();
				}
			}
		}
	}
	movieClip 2062	{
	}
	movieClip 2065	{
	}
	movieClip 2067	{
	}
	movieClip 2069	{
	}
	movieClip 2071	{
	}
	movieClip 2073	{
	}
	movieClip 2074	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capeon') == false && eval('_root.player' + _root.previewnum + 'SO.data.playerDat.cape_addon') == 1 && eval('_root.player' + _root.previewnum + 'SO.data.playerDat.guarduniform') == false) {
					gotoAndStop(7);
				} else {
					gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capecolor'));
					_root.myColor = new Color(colorbase);
					_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capetintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capetintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capetintbb')});
				}
			} else {
				if (_root.capeon == false && _root.cape_addon == 1 && _root.guarduniform == false) {
					gotoAndStop(7);
				} else {
					gotoAndStop(_root.capecolor);
					_root.myColor = new Color(colorbase);
					_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
				}
			}
		}
	}
	movieClip 2081	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.cape_addon') == 1 && eval('_root.player' + _root.previewnum + 'SO.data.playerDat.guarduniform') == false) {
					gotoAndStop(7);
				} else {
					gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capecolor'));
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capetintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capetintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capetintbb')});
				}
			} else {
				if (_root.cape_addon == 1 && _root.guarduniform == false) {
					gotoAndStop(7);
				} else {
					gotoAndStop(_root.capecolor);
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
				}
			}
		}
	}
	movieClip 2085	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eyebrows'));
			} else {
				gotoAndStop(_root.eyebrows);
			}
		}
	}
	movieClip 2094	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.beard') == 9) {
					if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.cape_addon') < 3 && eval('_root.player' + _root.previewnum + 'SO.data.playerDat.guarduniform') == false or eval('_root.player' + _root.previewnum + 'SO.data.playerDat.maskoff') == true) {
						gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.beard'));
					} else {
						gotoAndStop(8);
					}
				} else {
					gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.beard'));
				}
			} else {
				if (_root.beard == 9) {
					if (_root.cape_addon < 3 && _root.guarduniform == false or _root.maskoff == true) {
						gotoAndStop(_root.beard);
					} else {
						gotoAndStop(8);
					}
				} else {
					gotoAndStop(_root.beard);
				}
			}
		}
	}
	movieClip 2095	{
		frame 1 {
			if (_root.previewnum > 0) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.hairtintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.hairtintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.hairtintbb')});
			} else {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
			}
		}
	}
	movieClip 2097	{
	}
	movieClip 2100	{
	}
	movieClip 2102	{
	}
	movieClip 2104	{
	}
	movieClip 2106	{
	}
	movieClip 2108	{
	}
	movieClip 2109	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.cape_addon') < 3 && eval('_root.player' + _root.previewnum + 'SO.data.playerDat.guarduniform') == false or eval('_root.player' + _root.previewnum + 'SO.data.playerDat.maskoff') == true) {
					gotoAndStop(7);
				} else {
					gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capecolor'));
					_root.myColor = new Color(colorbase);
					_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capetintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capetintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.capetintbb')});
				}
			} else {
				if (_root.cape_addon < 3 && _root.guarduniform == false or _root.maskoff == true) {
					gotoAndStop(7);
				} else {
					gotoAndStop(_root.capecolor);
					_root.myColor = new Color(colorbase);
					_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
				}
			}
		}
	}
	movieClip 2113	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eyesquint'));
			} else {
				gotoAndStop(_root.eyesquint);
			}
		}
	}
	movieClip 2117	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eyewhite1'));
			} else {
				gotoAndStop(_root.eyewhite1);
			}
		}
	}
	movieClip 2121	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eyewhite2'));
			} else {
				gotoAndStop(_root.eyewhite2);
			}
		}
	}
	movieClip 2122	{
		frame 1 {
			if (_root.eyesparkle1 == false) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 2123	{
		frame 1 {
			if (_root.eyesparkle2 == false) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 2126	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eyesquint'));
			} else {
				gotoAndStop(_root.eyesquint);
			}
		}
	}
	movieClip 2127	{
		frame 1 {
			if (_root.previewnum > 0) {
				eye1._xscale = eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eyescale1') * 3;
				eye1._yscale = eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eyescale1') * 3;
				eye2._xscale = eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eyescale2') * 1.5;
				eye2._yscale = eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eyescale2') * 3;
			} else {
				eye1._xscale = _root.eyescale1 * 3.5;
				eye1._yscale = _root.eyescale1 * 3.5;
				eye2._xscale = _root.eyescale2 * 1.5;
				eye2._yscale = _root.eyescale2 * 3;
			}
		}
	}
	movieClip 2130	{
		frame 1 {
			if (_root.previewnum > 0) {
				gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.eyepatch'));
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.patchtintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.patchtintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.patchtintbb')});
			} else {
				gotoAndStop(_root.eyepatch);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.patchtintrb, 'gb': _root.patchtintgb, 'bb': _root.patchtintbb});
			}
		}
	}
	movieClip 2136	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.guarduniform') == false && eval('_root.player' + _root.previewnum + 'SO.data.playerDat.maskoff') == false) {
					gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.maskz'));
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.masktintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.masktintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.masktintbb')});
				} else {
					gotoAndStop(1);
				}
			} else {
				if (_root.guarduniform == false && _root.maskoff == false) {
					gotoAndStop(_root.maskz);
					_root.myColor = new Color(this);
					_root.myColor.setTransform({'rb': _root.masktintrb, 'gb': _root.masktintgb, 'bb': _root.masktintbb});
				} else {
					gotoAndStop(1);
				}
			}
		}
	}
	movieClip 2139	{
	}
	movieClip 2142	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.maskz') == 4) {
					gotoAndStop(2);
				} else {
					stop();
				}
			} else {
				if (_root.maskz == 4) {
					gotoAndStop(2);
				} else {
					stop();
				}
			}
		}
	}
	movieClip 2144	{
	}
	movieClip 2146	{
	}
	movieClip 2149	{
	}
	movieClip 2152	{
	}
	movieClip 2155	{
	}
	movieClip 2158	{
	}
	movieClip 2161	{
	}
	movieClip 2164	{
	}
	movieClip 2167	{
	}
	movieClip 2170	{
	}
	movieClip 2172	{
	}
	movieClip 2174	{
	}
	movieClip 2178	{
	}
	movieClip 2181	{
	}
	movieClip 2182	{
		frame 1 {
			if (_root.previewnum > 0) {
				if (eval('_root.player' + _root.previewnum + 'SO.data.playerDat.guarduniform') == false) {
					gotoAndStop(eval('_root.player' + _root.previewnum + 'SO.data.playerDat.hair') + 1);
					_root.myColor = new Color(colorbase);
					_root.myColor.setTransform({'rb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.hairtintrb'), 'gb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.hairtintgb'), 'bb': eval('_root.player' + _root.previewnum + 'SO.data.playerDat.hairtintbb')});
				} else {
					gotoAndStop(1);
				}
			} else {
				if (_root.guarduniform == false) {
					gotoAndStop(_root.hair + 1);
					_root.myColor = new Color(colorbase);
					_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
				} else {
					gotoAndStop(1);
				}
			}
		}
	}
	movieClip 2183	{
	}
	movieClip 2188	{
		frame 1 {
			stop();
		}
		frame 2 {
			if (name_txt.text.length < 10) {
				name_txt._x = -name_txt.text.length;
			} else {
				name_txt._x = -10;
			}
		}
		frame 3 {
			gotoAndStop(2);
		}
		frame 4 {
			stop();
		}
	}
	movieClip 2190	{
	}
	movieClip 2192	{
	}
	movieClip 2194	{
	}
	movieClip 2196	{
	}
	movieClip 2198	{
	}
	movieClip 2200	{
	}
	button 2207 {
		on (release) {
			_root.datalight.gotoAndStop(1);
			_root.goback_BT._visible = true;
			_root.i = 0;
			_root.clearslotz = i;
			_root.saveGlow();
			_root.black.gotoAndPlay(2);
			_root.inf.gotoAndStop(1);
			_root.previewnum = 0;
			this.gotoAndStop(1);
		}
	}
	button 2212 {
		on (release) {
			if (_root.clearslotz == 1) {
				_root.player1SO.clear();
				_root.i = 1;
				if (_root.slot == 10) {
					_root.slot = 1;
				}
				if (_root.player2SO.data.playerDat.corename == undefined && _root.player3SO.data.playerDat.corename == undefined) {
					_root.loadz = false;
				}
			} else {
				if (_root.clearslotz == 2) {
					_root.player2SO.clear();
					_root.i = 2;
					if (_root.slot == 10) {
						_root.slot = 2;
					}
					if (_root.player1SO.data.playerDat.corename == undefined && _root.player3SO.data.playerDat.corename == undefined) {
						_root.loadz = false;
					}
				} else {
					if (_root.clearslotz == 3) {
						_root.player3SO.clear();
						_root.i = 3;
						if (_root.slot == 10) {
							_root.slot = 3;
						}
						if (_root.player1SO.data.playerDat.corename == undefined && _root.player2SO.data.playerDat.corename == undefined) {
							_root.loadz = false;
						}
					} else {
						if (_root.clearslotz == 4) {
							_root.player4SO.clear();
							_root.i = 4;
							if (_root.player1SO.data.playerDat.corename == undefined && _root.player2SO.data.playerDat.corename == undefined && _root.player3SO.data.playerDat.corename == undefined) {
								_root.loadz = false;
							}
						} else {
							if (_root.clearslotz == 5) {
								_root.player5SO.clear();
								_root.i = 5;
								if (_root.player1SO.data.playerDat.corename == undefined && _root.player2SO.data.playerDat.corename == undefined && _root.player3SO.data.playerDat.corename == undefined) {
									_root.loadz = false;
								}
							} else {
								if (_root.clearslotz == 6) {
									_root.player6SO.clear();
									_root.i = 6;
									if (_root.player1SO.data.playerDat.corename == undefined && _root.player2SO.data.playerDat.corename == undefined && _root.player3SO.data.playerDat.corename == undefined) {
										_root.loadz = false;
									}
								}
							}
						}
					}
				}
			}
			i = 1;
			while (i <= 3) {
				if (eval('_root.player' + i + 'SO.data.playerDat.corename') == undefined) {
					_root['em' + i]._visible = true;
				}
				++i;
			}
			_root.sound2.attachSound('064');
			_root.sound2.start(0, 1);
			_root.datalight.gotoAndStop(1);
			_root.goback_BT._visible = true;
			_root.i = 0;
			_root.clearslotz = 0;
			_root.saveGlow();
			_root.clearslotz = i;
			_root.black.gotoAndPlay(2);
			_root.inf.gotoAndStop(1);
			_root.previewnum = 0;
			this.gotoAndStop(1);
		}
	}
	movieClip 2213	{
		frame 1 {
			stop();
		}
	}
	movieClip 2215	{
		frame 1 {
			stop();
		}
	}
	frame 4 {
		stop();
		_quality = menuquality;
		i = 0;
		clearslotz = 0;
		saveGlow();
		i = 1;
		while (i <= 3) {
			if (eval('player' + i + 'SO.data.playerDat.corename') != undefined) {
				this['em' + i]._visible = false;
			}
			++i;
		}
		onEnterFrame = function () {
			MainMenu();
		};
		saveButton = function () {
			doTestSave();
			if (cansave == false) {
				white.gotoAndPlay(2);
				cannot_save.gotoAndPlay(2);
				error.start();
			}
			if (cansave == true) {
				if (firstsave == true) {
					firstsave_MC.gotoAndStop(2);
					firstsave = false;
				}
				white.gotoAndPlay(2);
				i = currentslot;
				clearslotz = currentslot;
				saveclockDate = new Date();
				savedateday = saveclockDate.getDate();
				savedateyear = saveclockDate.getFullYear();
				savedatemonth = saveclockDate.getMonth() + 1;
				saveseconds = saveclockDate.getSeconds();
				saveminutes = saveclockDate.getMinutes();
				savehours = saveclockDate.getHours();
				this['savePlayerInfo' + currentslot]();
				loadz = true;
				showData();
			}
		};
	}
	button 2219 {
		on (release) {
			music.setVolume(volumez);
			clearslotz = 100;
			loading_game = true;
			dosave = false;
			doGotoGame();
		}
	}
	button 2220 {
		on (rollOver) {
			i = 1;
			saveRollover();
		}
		on (rollOut) {
			saveRollout();
		}
		on (release) {
			if (yousure_MC._currentframe == 1) {
				currentslot = 1;
				if (slot != currentslot) {
					player4SO.clear();
				}
				i = 1;
				slot = i;
				clearslotz = i;
				saveButton();
				if (sfxmute == false) {
					sound1.attachSound('063');
					sound1.start(0, 1);
				}
			}
		}
	}
	button 2221 {
		on (rollOver) {
			i = 2;
			saveRollover();
		}
		on (rollOut) {
			saveRollout();
		}
		on (release) {
			if (yousure_MC._currentframe == 1) {
				currentslot = 2;
				if (slot != currentslot) {
					player5SO.clear();
				}
				i = 2;
				slot = i;
				clearslotz = i;
				saveButton();
				if (sfxmute == false) {
					sound1.attachSound('063');
					sound1.start(0, 1);
				}
			}
		}
	}
	button 2222 {
		on (rollOver) {
			i = 3;
			saveRollover();
		}
		on (rollOut) {
			saveRollout();
		}
		on (release) {
			if (yousure_MC._currentframe == 1) {
				currentslot = 3;
				if (slot != currentslot) {
					player6SO.clear();
				}
				i = 3;
				slot = i;
				clearslotz = i;
				saveButton();
				if (sfxmute == false) {
					sound1.attachSound('063');
					sound1.start(0, 1);
				}
			}
		}
	}
	movieClip 2225	{
	}
	movieClip 2227	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 2229	{
		frame 1 {
			stop();
		}
	}
	frame 5 {
		stop();
		_quality = menuquality;
		skipz = false;
		if (corename == undefined or (corehealth == 0 or calebhealth == 0)) {
			back_BT._visible = false;
		}
		onEnterFrame = function () {
			MainMenu();
		};
	}
	button 2230 {
		on (release) {
			music.setVolume(volumez);
			loading_game = true;
			dosave = false;
			doGotoGame();
		}
	}
	button 2231 {
		on (release) {
			gotoAndStop('Special');
		}
	}
	button 2232 {
		on (release) {
			gotoAndPlay('Start');
		}
	}
	button 2234 {
		on (release) {
			gotoAndStop('Title_back');
		}
	}
	button 2238 {
		on (release) {
			getURL('http://www.rocklou.com/awakening', '_blank');
		}
	}
	button 2242 {
		on (release) {
			gotoAndStop(8);
		}
	}
	button 2246 {
		on (release) {
			getURL('http://www.rocklou.deviantart.com', '_blank');
		}
	}
	button 2250 {
		on (release) {
			getURL('http://www.facebook.com/rocklouart', '_blank');
		}
	}
	button 2255 {
		on (release) {
			gotoAndStop(7);
		}
	}
	button 2259 {
		on (release) {
			getURL('http://www.rocklou.com', '_blank');
		}
	}
	button 2260 {
		on (release) {
			gotoAndStop(6);
		}
	}
	movieClip 2266	{
	}
	button 2268 {
		on (release) {
			getURL('http://fav.me/d7r8cib', '_blank');
		}
	}
	movieClip 2271	{
	}
	button 2273 {
		on (release) {
			getURL('http://fav.me/d7snubs', '_blank');
		}
	}
	frame 10 {
		stopAllSounds();
		bg.gotoAndStop(1);
		previewnum = 0;
		story = 0;
		areascreen = 1;
		gold = 0;
		tutz = 1;
		corename = 'Roy';
		character = 1;
		numofchars = 1;
		difficulty = 2;
		coreX = true;
		calebX = false;
		playerX = -360;
		playerY = -235;
		playerZ = 1;
		stand = 2;
		orgspeed = 1.3;
		inside = false;
		runningz = false;
		forcenotrun = false;
		restorespeed = false;
		floorz = 1;
		speed = orgspeed;
		doSpeeds();
		currentstage = 1;
		currentmusic = '';
		fame = 0;
		coregotlimit = false;
		calebgotlimit = false;
		hotinfo = true;
		godmode = false;
		walkthrough = false;
		champion = false;
		limitless = false;
		gotshovel = false;
		numofdigs = 0;
		i = 1;
		while (i <= 10) {
			this['shovel' + i] = false;
			++i;
		}
		clockDate = new Date();
		dateday = clockDate.getDate();
		dateyear = clockDate.getFullYear();
		datemonth = clockDate.getMonth() + 1;
		savedateday = 0;
		savedateyear = 0;
		savedatemonth = 0;
		saveminutes = 0;
		savehours = 0;
		corelimit = 0;
		coremaxlimit = 70;
		caleblimit = 0;
		calebmaxlimit = 60;
		directions = 0;
		weapon1 = 5;
		weapon2 = 15;
		weapon3 = 22;
		weapon4 = 30;
		weapon5 = 45;
		weapon6 = 190;
		currentweapon = weapon1;
		gotfirststats = 1;
		firstcamera = true;
		camera = false;
		fishing_count = 0;
		fishinghighscore = 0;
		numofbattles = 0;
		numofluckyhits = 0;
		numofmedals = 0;
		numofswords = 1;
		medalcharm = false;
		medalcharms = false;
		medalrookie = false;
		medalveteran = false;
		medallegend = false;
		medalhelper = false;
		medalswordfish = false;
		medalawakened = false;
		medalpoet = false;
		i = 1;
		while (i <= 3) {
			this['medalpoet' + i] = false;
			++i;
		}
		medalmeeting = false;
		i = 1;
		while (i <= 2) {
			this['medalmeeting' + i] = false;
			++i;
		}
		medaldiglet = false;
		medalherbivore = false;
		medalflawless = false;
		medalflawlessX = 0;
		medaljuggernaught = false;
		medalaquaman = false;
		medalperfection = false;
		changediff = false;
		numpoet = 0;
		founddouglas = 0;
		namecolor = 15925120;
		rewardcolor = 8978418;
		namecolorobject = new TextFormat();
		namecolorobject.color = namecolor;
		namecolorobject.size = 8;
		rewardcolorobject = new TextFormat();
		rewardcolorobject.color = rewardcolor;
		rewardcolorobject.size = 8;
		i = 1;
		while (i <= 6) {
			this['coremagic' + i] = false;
			++i;
		}
		i = 1;
		while (i <= 6) {
			this['calebmagic' + i] = false;
			++i;
		}
		corenumofmagics = 0;
		calebnumofmagics = 0;
		corenumoflimits = 0;
		calebnumoflimits = 0;
		i = 1;
		while (i <= 4) {
			this['corelimit' + i] = false;
			++i;
		}
		i = 1;
		while (i <= 4) {
			this['caleblimit' + i] = false;
			++i;
		}
		i = 2;
		while (i <= 6) {
			this['gotsword' + i] = false;
			++i;
		}
		i = 1;
		while (i <= 6) {
			this['sword' + i + 'f'] = 0;
			++i;
		}
		sword1f = 0;
		housegrade = 1;
		housegrade2 = 1;
		housecarpet = false;
		housechair = false;
		housewardrobe = false;
		housecandelebra = false;
		housepainting = false;
		enterhouse1 = false;
		enterhouse2 = false;
		coremagicdamage = 2;
		coremagicdamageX = 0;
		corestrength = 5;
		corestrengthX = 0;
		coredefense = 7;
		coredefenseX = 0;
		coremagicdefense = 2;
		coremagicdefenseX = 0;
		coreluck = 5;
		coreluckX = 0;
		coreagility = 5;
		coreagilityX = 0;
		corefireElement = 5;
		coredarkElement = 5;
		coreiceElement = 5;
		corethunderElement = 5;
		corehealth = 70;
		coremaxhealth = corehealth;
		coremana = 30;
		coremaxmana = coremana;
		calebmagicdamage = 13;
		calebmagicdamageX = 0;
		calebstrength = 3;
		calebstrengthX = 0;
		calebdefense = 2;
		calebdefenseX = 0;
		calebmagicdefense = 5;
		calebmagicdefenseX = 0;
		calebluck = 5;
		calebluckX = 0;
		calebagility = 1;
		calebagilityX = 0;
		calebfireElement = 5;
		calebdarkElement = 5;
		calebiceElement = 5;
		calebthunderElement = 5;
		calebhealth = 50;
		calebmaxhealth = calebhealth;
		calebmana = 70;
		calebmaxmana = calebmana;
		runningz = true;
		normalspeed += runspeed;
		sword = 1;
		swordname = 'Storm';
		corecounterchance = 8;
		calebcounterchance = 8;
		corereghealth = 0;
		coreregmana = 200;
		coreregstamina = 1;
		calebreghealth = 0;
		calebregmana = 200;
		calebregstamina = 1;
		potion = 0;
		elixir = 0;
		ether = 0;
		remedy = 0;
		limit = 0;
		bottle = 0;
		gotfirstpotion = false;
		gotfirstelixir = false;
		gotfirstether = false;
		gotfirstremedy = false;
		gotfirstlimit = false;
		gotfirstbottle = false;
		musicmute = false;
		sfxmute = false;
		night = false;
		cinemacam = false;
		camXpoint = 0;
		camYpoint = 0;
		hudvisible = true;
		menuvisible = true;
		hascheated = false;
		menucolor = 1;
		autoscreensave = true;
		firstsave = true;
		firstthanator = false;
		firststalker = false;
		firstcarrion = false;
		firstrig = false;
		firstgornak = 1;
		firstgornak2 = 1;
		firstghoul = false;
		firstthanatorX = false;
		firststalkerX = false;
		firstcarrionX = false;
		firstgornakX = true;
		firstghoulX = false;
		mainquest = 'I woke up in a forest, wounded.\rI don\'t know where I am. Or even who I am.';
		i = 1;
		while (i < questnames.length) {
			this['quest' + questnames[i]] = 1;
			this['quest' + questnames[i] + 'X'] = 0;
			++i;
		}
		imrahischat = 1;
		luvannonchat = 1;
		ghosttalk = 1;
		activequests = 0;
		completedquests = 0;
		qpage = 1;
		numquests = 0;
		sessions = 1;
		i = 1;
		while (i <= 6) {
			this['firstcoremagic' + i] = false;
			++i;
		}
		i = 1;
		while (i <= 6) {
			this['firstcalebmagic' + i] = false;
			++i;
		}
		gamequality = 'medium';
		battlequality = 'medium';
		counter = 0;
		counter2 = 0;
		counter3 = 0;
		counter2X = 0;
		counter3X = 0;
		counterminute = 0;
		counterhour = 0;
		fishing_progression = 0;
		sonyacoins = 0;
		janucoins = 0;
		farsight = false;
		footstepsound = 1;
		slot = 10;
		i = 1;
		while (i <= 3) {
			if (eval('player' + i + 'SO.data.playerDat.corename') == undefined && eval('player' + (i + 3) + 'SO.data.playerDat.corename') == undefined) {
				slot = i;
				break;
			}
			++i;
		}
		i = 1;
		while (i <= 30) {
			this['item' + i] = false;
			++i;
		}
		item26 = 1;
		item27 = 1;
		item28 = 1;
		shroom1 = 0;
		shroom2 = 0;
		shroom3 = 0;
		shroom4 = 0;
		butterfly1 = 0;
		butterfly2 = 0;
		gotfirstc = false;
		collectibles = 0;
		i = 1;
		while (i <= 80) {
			this['shroomitem' + i] = false;
			++i;
		}
		i = 1;
		while (i <= 10) {
			this['butterflyitem' + i] = false;
			++i;
		}
		i = 1;
		while (i <= 9) {
			this['switchzn' + i] = false;
			++i;
		}
		clearInterval(countID);
		clearInterval(countTID);
		clearInterval(count2ID);
		clearInterval(count3ID);
		clearInterval(count2XID);
		clearInterval(count3XID);
		darconstory = 0;
		goteyepatches = 1;
		gotmaskcape = 1;
		gotgrayskin = 1;
		gotredskin = 1;
		gotmask1 = 1;
		gotmask2 = 1;
		gotmask3 = 1;
		gotmask4 = 1;
		gotbandana = 1;
		gotfedorahat = 1;
		gottophat = 1;
		gotthunder = 1;
		gotblackpearl = 1;
		gotserpentnose = 1;
		gotwarpaint = 1;
		goteyebleed = 1;
		goteyeshadow = 1;
		gotbloodshoteyes = 1;
		gotundeadeyes = 1;
		gotdemoneyes = 1;
		guarduniform = false;
		capeon = true;
		maskoff = false;
		extrabelt = true;
		barechest = false;
		outfit = 1;
		eyepatch = 1;
		maskz = 1;
		hair = 1;
		nosez = 2;
		earring = 1;
		skinz = 2;
		freckles = 1;
		frecklesalpha = 50;
		eyepatch = 1;
		eyesboth = false;
		eyesparkle1 = true;
		eyesparkle2 = true;
		eyetype1 = 1;
		eyetype2 = 1;
		eyescale1 = 100;
		eyescale2 = 100;
		eyewhite1 = 1;
		eyewhite2 = 1;
		eyebrows = 1;
		eyesquint = 1;
		tattoo = 1;
		scar = 1;
		beard = 1;
		capecolor = 1;
		cape_addon = 1;
		necklace = 1;
		jacket = 1;
		pouches = 1;
		belt = 1;
		gauntlet = 1;
		arms = 1;
		glove1 = 1;
		glove2 = 1;
		pants = 1;
		shoes = 1;
		tattooalpha = 50;
		scaralpha = 50;
		hairtintrb = -10;
		hairtintgb = -10;
		hairtintbb = -10;
		eyepatchtintrb = 0;
		eyepatchtintbb = 0;
		eyepatchtintgb = 0;
		eye1tintrb = 0;
		eye1tintbb = 0;
		eye1tintgb = 0;
		eye2tintrb = 0;
		eye2tintbb = 0;
		eye2tintgb = 0;
		masktintrb = 0;
		masktintgb = 0;
		masktintbb = 0;
		tattootintrb = 0;
		tattootintgb = 0;
		tattootintbb = 0;
		capetintrb = 0;
		capetintgb = 0;
		capetintbb = 0;
		jackettintrb = 0;
		jackettintgb = 0;
		jackettintbb = 0;
		necklacetintrb = 0;
		necklacetintgb = 0;
		necklacetintbb = 0;
		pouchtintrb = 0;
		pouchtintgb = 0;
		pouchtintbb = 0;
		belttintrb = 0;
		belttintgb = 0;
		belttintbb = 0;
		gauntlettintrb = 0;
		gauntlettintgb = 0;
		gauntlettintbb = 0;
		armtintrb = 0;
		armtintgb = 0;
		armtintbb = 0;
		glove1tintrb = 0;
		glove1tintgb = 0;
		glove1tintbb = 0;
		glove2tintrb = 0;
		glove2tintgb = 0;
		glove2tintbb = 0;
		panttintrb = 0;
		panttintgb = 0;
		panttintbb = 0;
		shoetintrb = 0;
		shoetintgb = 0;
		shoetintbb = 0;
		skintintrb = 0;
		skintintgb = 0;
		skintintbb = 0;
		sheathtintrb = 0;
		sheathtintgb = 0;
		sheathtintbb = 0;
		i = 1;
		while (i <= 3) {
			this['capeon_outfit' + i] = true;
			this['maskoff_outfit' + i] = false;
			this['extrabelt_outfit' + i] = true;
			this['hair_outfit' + i] = 1;
			this['nosez_outfit' + i] = 2;
			this['earring_outfit' + i] = 1;
			this['skinz_outfit' + i] = 2;
			this['freckles_outfit' + i] = 1;
			this['frecklesalpha_outfit' + i] = 50;
			this['eyepatch_outfit' + i] = 1;
			this['eyesboth_outfit' + i] = false;
			this['eyesparkle1_outfit' + i] = true;
			this['eyesparkle2_outfit' + i] = true;
			this['eyetype1_outfit' + i] = 1;
			this['eyetype2_outfit' + i] = 1;
			this['eyescale1_outfit' + i] = 100;
			this['eyescale2_outfit' + i] = 100;
			this['eyewhite1_outfit' + i] = 1;
			this['eyewhite2_outfit' + i] = 1;
			this['eyebrows_outfit' + i] = 1;
			this['eyesquint_outfit' + i] = 1;
			this['maskz_outfit' + i] = 1;
			this['tattoo_outfit' + i] = 1;
			this['scar_outfit' + i] = 1;
			this['beard_outfit' + i] = 1;
			this['capecolor_outfit' + i] = 1;
			this['cape_addon_outfit' + i] = 1;
			this['necklace_outfit' + i] = 1;
			this['jacket_outfit' + i] = 1;
			this['pouches_outfit' + i] = 1;
			this['belt_outfit' + i] = 1;
			this['gauntlet_outfit' + i] = 1;
			this['arms_outfit' + i] = 1;
			this['glove1_outfit' + i] = 1;
			this['glove2_outfit' + i] = 1;
			this['pants_outfit' + i] = 1;
			this['shoes_outfit' + i] = 1;
			this['tattooalpha_outfit' + i] = 50;
			this['scaralpha_outfit' + i] = 50;
			this['hairtintrb_outfit' + i] = 0;
			this['hairtintgb_outfit' + i] = 0;
			this['hairtintbb_outfit' + i] = 0;
			this['eyepatchtintrb_outfit' + i] = 0;
			this['eyepatchtintbb_outfit' + i] = 0;
			this['eyepatchtintgb_outfit' + i] = 0;
			this['eye1tintrb_outfit' + i] = 0;
			this['eye1tintbb_outfit' + i] = 50;
			this['eye1tintgb_outfit' + i] = 0;
			this['eye2tintrb_outfit' + i] = 0;
			this['eye2tintbb_outfit' + i] = 50;
			this['eye2tintgb_outfit' + i] = 0;
			this['masktintrb_outfit' + i] = 0;
			this['masktintgb_outfit' + i] = 0;
			this['masktintbb_outfit' + i] = 0;
			this['tattootintrb_outfit' + i] = 0;
			this['tattootintgb_outfit' + i] = 0;
			this['tattootintbb_outfit' + i] = 0;
			this['capetintrb_outfit' + i] = 0;
			this['capetintgb_outfit' + i] = 0;
			this['capetintbb_outfit' + i] = 0;
			this['jackettintrb_outfit' + i] = 0;
			this['jackettintgb_outfit' + i] = 0;
			this['jackettintbb_outfit' + i] = 0;
			this['necklacetintrb_outfit' + i] = 0;
			this['necklacetintgb_outfit' + i] = 0;
			this['necklacetintbb_outfit' + i] = 0;
			this['pouchtintrb_outfit' + i] = 0;
			this['pouchtintgb_outfit' + i] = 0;
			this['pouchtintbb_outfit' + i] = 0;
			this['belttintrb_outfit' + i] = 0;
			this['belttintgb_outfit' + i] = 0;
			this['belttintbb_outfit' + i] = 0;
			this['gauntlettintrb_outfit' + i] = 0;
			this['gauntlettintgb_outfit' + i] = 0;
			this['gauntlettintbb_outfit' + i] = 0;
			this['armtintrb_outfit' + i] = 0;
			this['armtintgb_outfit' + i] = 0;
			this['armtintbb_outfit' + i] = 0;
			this['glove1tintrb_outfit' + i] = 0;
			this['glove1tintgb_outfit' + i] = 0;
			this['glove1tintbb_outfit' + i] = 0;
			this['glove2tintrb_outfit' + i] = 0;
			this['glove2tintgb_outfit' + i] = 0;
			this['glove2tintbb_outfit' + i] = 0;
			this['panttintrb_outfit' + i] = 0;
			this['panttintgb_outfit' + i] = 0;
			this['panttintbb_outfit' + i] = 0;
			this['shoetintrb_outfit' + i] = 0;
			this['shoetintgb_outfit' + i] = 0;
			this['shoetintbb_outfit' + i] = 0;
			this['skintintrb_outfit' + i] = 0;
			this['skintintgb_outfit' + i] = 0;
			this['skintintbb_outfit' + i] = 0;
			this['sheathtintrb_outfit' + i] = 0;
			this['sheathtintgb_outfit' + i] = 0;
			this['sheathtintbb_outfit' + i] = 0;
			++i;
		}
		gamepause = 0;
		delay = 0;
		customz = 1;
		inventoryon = false;
		cinematic = false;
		skipz = true;
	}
	frame 10 {
		if (sfxmute == false) {
			buttonclickz.start();
		}
	}
	movieClip 2278	{
		frame 1 {
			function camControl() {
				parentColor.setTransform(camColor.getTransform());
				var v4 = sX / this._width;
				var v3 = sY / this._height;
				_parent._x = cX - this._x * v4;
				_parent._y = cY - this._y * v3;
				_parent._xscale = 100 * v4;
				_parent._yscale = 100 * v3;
			}
			function resetStage() {
				var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
				parentColor.setTransform(v2);
				_parent._xscale = 100;
				_parent._yscale = 100;
				_parent._x = 0;
				_parent._y = 0;
			}
			this._visible = false;
			var oldMode = Stage.scaleMode;
			Stage.scaleMode = 'exactFit';
			var cX = Stage.width / 2;
			var cY = Stage.height / 2;
			var sX = Stage.width;
			var sY = Stage.height;
			Stage.scaleMode = oldMode;
			var camColor = new Color(this);
			var parentColor = new Color(_parent);
			this.onEnterFrame = camControl;
			camControl();
			this.onUnload = resetStage;
		}
	}
	instance cam of movieClip 2278	{
		onClipEvent (enterFrame) {
			this.destx = _root.player._x + 10;
			this.desty = _root.player._y + 30;
			var diffx = this.destx - this._x + 0;
			var diffy = this.desty - this._y + 0;
			this._x += diffx * 0.1;
			this._y += diffy * 0.1;
		}
	}
	frame 84 {
		_quality = 'autohigh';
		stop();
		Mouse.hide();
	}
	movieClip 2280	{
	}
	movieClip 2295	{
	}
	movieClip 2297	{
	}
	movieClip 2299	{
	}
	movieClip 2300	{
	}
	movieClip 2302	{
	}
	movieClip 2307	{
	}
	movieClip 2309	{
	}
	movieClip 2310	{
	}
	movieClip 2311	{
	}
	movieClip 2314	{
	}
	movieClip 2328	{
		frame 86 {
			stop();
		}
	}
	movieClip 2331	{
		frame 559 {
			_root.gotoAndStop(85);
		}
	}
	frame 85 {
		_quality = 'autohigh';
		countID = setInterval(doCounter, 1000);
		countTID = setInterval(doTCounter, 1000);
		count2ID = setInterval(doCounter2, 100);
		count3ID = setInterval(doCounter3, 100);
		count2XID = setInterval(doCounter2X, 100);
		count3XID = setInterval(doCounter3X, 100);
		if (customz == 3) {
			mc2.gotoAndPlay('nameX');
		}
		stop();
	}
	movieClip 2337	{
	}
	movieClip 2339	{
	}
	movieClip 2341	{
	}
	movieClip 2343	{
	}
	movieClip 2347	{
	}
	movieClip 2350	{
	}
	movieClip 2357	{
	}
	movieClip 2364	{
	}
	movieClip 2377	{
	}
	movieClip 2380	{
	}
	movieClip 2382	{
	}
	movieClip 2384	{
	}
	movieClip 2392	{
	}
	button 2397 {
		on (release) {
			if (name_txt.length > 1 or name_txt.text == 'V') {
				_root.corename = name_txt.text;
				if (_parent._currentframe == 710) {
					_parent.gotoAndPlay('next1');
				}
			} else {
				few.gotoAndPlay(2);
			}
		}
	}
	movieClip 2399	{
	}
	movieClip 2400	{
		frame 1 {
			stop();
		}
	}
	button 2404 {
		on (release) {
			_root.customz = 2;
			_root.gotoAndStop('Custom');
		}
	}
	movieClip 2405	{
		frame 1 {
			var fmt = name_txt.getTextFormat();
			name_txt.setNewTextFormat(fmt);
			name_txt.text = '';
			Selection.setFocus('name_txt');
		}
	}
	button 2406 {
		on (release) {
			if (_parent._currentframe == 730) {
				_parent.gotoAndPlay('next2');
			}
		}
	}
	button 2409 {
		on (release) {
			_root.difficulty = 1;
		}
	}
	button 2412 {
		on (release) {
			_root.difficulty = 2;
		}
	}
	button 2415 {
		on (release) {
			_root.difficulty = 3;
		}
	}
	movieClip 2417	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.difficulty == 1) {
					ea._alpha = 100;
					me._alpha = 50;
					ha._alpha = 50;
				} else {
					if (_root.difficulty == 2) {
						ea._alpha = 50;
						me._alpha = 100;
						ha._alpha = 50;
					} else {
						if (_root.difficulty == 3) {
							ea._alpha = 50;
							me._alpha = 50;
							ha._alpha = 100;
						}
					}
				}
			};
		}
	}
	button 2418 {
		on (release) {
			if (_parent._currentframe == 751) {
				_parent.gotoAndPlay('next3');
			}
		}
	}
	movieClip 2421	{
		frame 1 {
			if (_root.cansave == false) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 2423	{
		instance cam of movieClip 2278	{
			onClipEvent (enterFrame) {
				this.destx = _root.player._x + 10;
				this.desty = _root.player._y + 30;
				var diffx = this.destx - this._x + 0;
				var diffy = this.desty - this._y + 0;
				this._x += diffx * 0.1;
				this._y += diffy * 0.1;
			}
		}
		frame 697 {
			_root.customz = 2;
			_root.gotoAndStop('Custom');
		}
		frame 698 {
			_root.customz = 0;
			_quality = 'high';
			Mouse.show();
		}
		frame 710 {
			Mouse.show();
			_root.skipz = false;
			_root.nohotkeys = true;
			stop();
		}
		frame 711 {
			_root.nohotkeys = false;
			corenamez = _root.corename.toLowerCase();
			if (corenamez == 'anon' or corenamez == 'anonymous' or corenamez == 'guy fawkes' or corenamez == 'v') {
				_root.maskz = 5;
				_root.gotmask4 = 2;
			}
		}
		frame 730 {
			stop();
		}
		frame 751 {
			stop();
		}
		frame 790 {
			stopAllSounds();
			_root.loading_game = true;
			_root.dosave = false;
			_root.doGotoGame();
		}
	}
	frame 145 {
		music.stop(currentmusic);
		music.setVolume(volumez);
		gamepause = 0;
		cinematic = false;
		inventoryon = false;
		startcustomize = true;
		countID = setInterval(doCounter, 1000);
		countTID = setInterval(doTCounter, 1000);
		count2ID = setInterval(doCounter2, 100);
		count3ID = setInterval(doCounter3, 100);
		count2XID = setInterval(doCounter2X, 100);
		count3XID = setInterval(doCounter3X, 100);
		namecolorobject = new TextFormat();
		namecolorobject.color = namecolor;
		namecolorobject.size = 8;
		rewardcolorobject = new TextFormat();
		rewardcolorobject.color = rewardcolor;
		rewardcolorobject.size = 8;
		loading_game = true;
		dosave = false;
		doGotoGame();
	}
	frame 146 {
		Mouse.show();
		stop();
		presetz = 0;
		nodone = false;
		done_outfit = true;
		newmusic = 'savinacity';
		doMusic();
		music.setVolume(volumez / 3);
		if (haircut == true) {
			customize.gotoAndStop(2);
		}
		onEnterFrame = function () {
			MainMenu();
			cursorz._x = _xmouse;
			cursorz._y = _ymouse;
			if (cursorz.hitTest(customize.mark1)) {
				customize.b1._alpha = 100;
			} else {
				customize.b1._alpha = 30;
				customize.b1.gotoAndStop(1);
			}
			if (cursorz.hitTest(customize.mark2)) {
				customize.b2._alpha = 100;
			} else {
				customize.b2._alpha = 30;
				customize.b2.gotoAndStop(1);
			}
			if (cursorz.hitTest(customize.mark3)) {
				customize.b3._alpha = 100;
			} else {
				customize.b3._alpha = 30;
				customize.b3.gotoAndStop(1);
			}
			if (cursorz.hitTest(customize.mark4)) {
				customize.b4._alpha = 100;
			} else {
				customize.b4._alpha = 30;
				customize.b4.gotoAndStop(1);
			}
		};
		updatez = function () {
			if (nodone == true) {
				done_outfit = false;
				nodone = false;
			} else {
				done_outfit = true;
			}
			customize.doll.gotoAndPlay(2);
			if (maskz > 1 or cape_addon == 3 && capecolor < 7) {
				customize.m1._visible = true;
				customize.m2._visible = false;
			} else {
				customize.m1._visible = false;
				customize.m2._visible = false;
			}
		};
		oldOutfit = function () {
			this['capeon_outfit' + outfit] = capeon;
			this['maskoff_outfit' + outfit] = maskoff;
			this['extrabelt_outfit' + outfit] = extrabelt;
			this['barechest_outfit' + outfit] = barechest;
			this['hair_outfit' + outfit] = hair;
			this['earring_outfit' + outfit] = earring;
			this['skinz_outfit' + outfit] = skinz;
			this['freckles_outfit' + outfit] = freckles;
			this['frecklesalpha_outfit' + outfit] = frecklesalpha;
			this['nosez_outfit' + outfit] = nosez;
			this['eyepatch_outfit' + outfit] = eyepatch;
			this['eyeboth_outfit' + outfit] = eyeboth;
			this['eyesparkle1_outfit' + outfit] = eyesparkle1;
			this['eyesparkle2_outfit' + outfit] = eyesparkle2;
			this['eyetype1_outfit' + outfit] = eyetype1;
			this['eyetype2_outfit' + outfit] = eyetype2;
			this['eyescale1_outfit' + outfit] = eyescale1;
			this['eyescale2_outfit' + outfit] = eyescale2;
			this['eyewhite1_outfit' + outfit] = eyewhite1;
			this['eyewhite2_outfit' + outfit] = eyewhite2;
			this['eyebrows_outfit' + outfit] = eyebrows;
			this['eyesquint_outfit' + outfit] = eyesquint;
			this['maskz_outfit' + outfit] = maskz;
			this['tattoo_outfit' + outfit] = tattoo;
			this['scar_outfit' + outfit] = scar;
			this['beard_outfit' + outfit] = beard;
			this['capecolor_outfit' + outfit] = capecolor;
			this['cape_addon_outfit' + outfit] = cape_addon;
			this['necklace_outfit' + outfit] = necklace;
			this['jacket_outfit' + outfit] = jacket;
			this['pouches_outfit' + outfit] = pouches;
			this['belt_outfit' + outfit] = belt;
			this['gauntlet_outfit' + outfit] = gauntlet;
			this['arms_outfit' + outfit] = arms;
			this['glove1_outfit' + outfit] = glove1;
			this['glove2_outfit' + outfit] = glove2;
			this['pants_outfit' + outfit] = pants;
			this['shoes_outfit' + outfit] = shoes;
			this['tattooalpha_outfit' + outfit] = tattooalpha;
			this['scaralpha_outfit' + outfit] = scaralpha;
			this['hairtintrb_outfit' + outfit] = hairtintrb;
			this['hairtintgb_outfit' + outfit] = hairtintgb;
			this['hairtintbb_outfit' + outfit] = hairtintbb;
			this['eyepatchtintrb_outfit' + outfit] = eyepatchtintrb;
			this['eyepatchtintbb_outfit' + outfit] = eyepatchtintbb;
			this['eyepatchtintgb_outfit' + outfit] = eyepatchtintgb;
			this['eye1tintrb_outfit' + outfit] = eye1tintrb;
			this['eye1tintbb_outfit' + outfit] = eye1tintbb;
			this['eye1tintgb_outfit' + outfit] = eye1tintgb;
			this['eye2tintrb_outfit' + outfit] = eye2tintrb;
			this['eye2tintbb_outfit' + outfit] = eye2tintbb;
			this['eye2tintgb_outfit' + outfit] = eye2tintgb;
			this['hairtintrb_outfit' + outfit] = hairtintrb;
			this['hairtintgb_outfit' + outfit] = hairtintgb;
			this['hairtintbb_outfit' + outfit] = hairtintbb;
			this['masktintrb_outfit' + outfit] = masktintrb;
			this['masktintgb_outfit' + outfit] = masktintgb;
			this['masktintbb_outfit' + outfit] = masktintbb_;
			this['tattootintrb_outfit' + outfit] = tattootintrb;
			this['tattootintgb_outfit' + outfit] = tattootintgb;
			this['tattootintbb_outfit' + outfit] = tattootintbb;
			this['capetintrb_outfit' + outfit] = capetintrb;
			this['capetintgb_outfit' + outfit] = capetintgb;
			this['capetintbb_outfit' + outfit] = capetintbb;
			this['jackettintrb_outfit' + outfit] = jackettintrb;
			this['jackettintgb_outfit' + outfit] = jackettintgb;
			this['jackettintbb_outfit' + outfit] = jackettintbb;
			this['necklacetintrb_outfit' + outfit] = necklacetintrb;
			this['necklacetintgb_outfit' + outfit] = necklacetintgb;
			this['necklacetintbb_outfit' + outfit] = necklacetintbb;
			this['pouchtintrb_outfit' + outfit] = pouchtintrb;
			this['pouchtintgb_outfit' + outfit] = pouchtintgb;
			this['pouchtintbb_outfit' + outfit] = pouchtintbb;
			this['belttintrb_outfit' + outfit] = belttintrb;
			this['belttintgb_outfit' + outfit] = belttintgb;
			this['belttintbb_outfit' + outfit] = belttintbb;
			this['gauntlettintrb_outfit' + outfit] = gauntlettintrb;
			this['gauntlettintgb_outfit' + outfit] = gauntlettintgb;
			this['gauntlettintbb_outfit' + outfit] = gauntlettintbb;
			this['armtintrb_outfit' + outfit] = armtintrb;
			this['armtintgb_outfit' + outfit] = armtintgb;
			this['armtintbb_outfit' + outfit] = armtintbb;
			this['glove1tintrb_outfit' + outfit] = glove1tintrb;
			this['glove1tintgb_outfit' + outfit] = glove1tintgb;
			this['glove1tintbb_outfit' + outfit] = glove1tintbb;
			this['glove2tintrb_outfit' + outfit] = glove2tintrb;
			this['glove2tintgb_outfit' + outfit] = glove2tintgb;
			this['glove2tintbb_outfit' + outfit] = glove2tintbb;
			this['panttintrb_outfit' + outfit] = panttintrb;
			this['panttintgb_outfit' + outfit] = panttintgb;
			this['panttintbb_outfit' + outfit] = panttintbb;
			this['shoetintrb_outfit' + outfit] = shoetintrb;
			this['shoetintgb_outfit' + outfit] = shoetintgb;
			this['shoetintbb_outfit' + outfit] = shoetintbb;
			this['skintintrb_outfit' + outfit] = skintintrb;
			this['skintintgb_outfit' + outfit] = skintintgb;
			this['skintintbb_outfit' + outfit] = skintintbb;
			this['sheathtintrb_outfit' + outfit] = sheathtintrb;
			this['sheathtintgb_outfit' + outfit] = sheathtintgb;
			this['sheathtintbb_outfit' + outfit] = sheathtintbb;
		};
		newOutfit = function () {
			done_outfit = false;
			capeon = this['capeon_outfit' + outfit];
			maskoff = this['maskoff_outfit' + outfit];
			extrabelt = this['extrabelt_outfit' + outfit];
			barechest = this['barechest_outfit' + outfit];
			hair = this['hair_outfit' + outfit];
			earring = this['earring_outfit' + outfit];
			skinz = this['skinz_outfit' + outfit];
			freckles = this['freckles_outfit' + outfit];
			frecklesalpha = this['frecklesalpha_outfit' + outfit];
			nosez = this['nosez_outfit' + outfit];
			eyepatch = this['eyepatch_outfit' + outfit];
			eyeboth = this['eyeboth_outfit' + outfit];
			eyesparkle1 = this['eyesparkle1_outfit' + outfit];
			eyesparkle2 = this['eyesparkle2_outfit' + outfit];
			eyetype1 = this['eyetype1_outfit' + outfit];
			eyetype2 = this['eyetype2_outfit' + outfit];
			eyescale1 = this['eyescale1_outfit' + outfit];
			eyescale2 = this['eyescale2_outfit' + outfit];
			eyewhite1 = this['eyewhite1_outfit' + outfit];
			eyewhite2 = this['eyewhite2_outfit' + outfit];
			eyebrows = this['eyebrows_outfit' + outfit];
			eyesquint = this['eyesquint_outfit' + outfit];
			maskz = this['maskz_outfit' + outfit];
			tattoo = this['tattoo_outfit' + outfit];
			scar = this['scar_outfit' + outfit];
			beard = this['beard_outfit' + outfit];
			capecolor = this['capecolor_outfit' + outfit];
			cape_addon = this['cape_addon_outfit' + outfit];
			necklace = this['necklace_outfit' + outfit];
			jacket = this['jacket_outfit' + outfit];
			pouches = this['pouches_outfit' + outfit];
			belt = this['belt_outfit' + outfit];
			gauntlet = this['gauntlet_outfit' + outfit];
			arms = this['arms_outfit' + outfit];
			glove1 = this['glove1_outfit' + outfit];
			glove2 = this['glove2_outfit' + outfit];
			pants = this['pants_outfit' + outfit];
			shoes = this['shoes_outfit' + outfit];
			tattooalpha = this['tattooalpha_outfit' + outfit];
			scaralpha = this['scaralpha_outfit' + outfit];
			hairtintrb = this['hairtintrb_outfit' + outfit];
			hairtintgb = this['hairtintgb_outfit' + outfit];
			hairtintbb = this['hairtintbb_outfit' + outfit];
			eyepatchtintrb = this['eyepatchtintrb_outfit' + outfit];
			eyepatchtintbb = this['eyepatchtintbb_outfit' + outfit];
			eyepatchtintgb = this['eyepatchtintgb_outfit' + outfit];
			eye1tintrb = this['eye1tintrb_outfit' + outfit];
			eye1tintbb = this['eye1tintbb_outfit' + outfit];
			eye1tintgb = this['eye1tintgb_outfit' + outfit];
			eye2tintrb = this['eye2tintrb_outfit' + outfit];
			eye2tintbb = this['eye2tintbb_outfit' + outfit];
			eye2tintgb = this['eye2tintgb_outfit' + outfit];
			hairtintrb = this['hairtintrb_outfit' + outfit];
			hairtintgb = this['hairtintgb_outfit' + outfit];
			hairtintbb = this['hairtintbb_outfit' + outfit];
			masktintrb = this['masktintrb_outfit' + outfit];
			masktintgb = this['masktintgb_outfit' + outfit];
			masktintbb = this['masktintbb_outfit' + outfit];
			tattootintrb = this['tattootintrb_outfit' + outfit];
			tattootintgb = this['tattootintgb_outfit' + outfit];
			tattootintbb = this['tattootintbb_outfit' + outfit];
			capetintrb = this['capetintrb_outfit' + outfit];
			capetintgb = this['capetintgb_outfit' + outfit];
			capetintbb = this['capetintbb_outfit' + outfit];
			jackettintrb = this['jackettintrb_outfit' + outfit];
			jackettintgb = this['jackettintgb_outfit' + outfit];
			jackettintbb = this['jackettintbb_outfit' + outfit];
			necklacetintrb = this['necklacetintrb_outfit' + outfit];
			necklacetintgb = this['necklacetintgb_outfit' + outfit];
			necklacetintbb = this['necklacetintbb_outfit' + outfit];
			pouchtintrb = this['pouchtintrb_outfit' + outfit];
			pouchtintgb = this['pouchtintgb_outfit' + outfit];
			pouchtintbb = this['pouchtintbb_outfit' + outfit];
			belttintrb = this['belttintrb_outfit' + outfit];
			belttintgb = this['belttintgb_outfit' + outfit];
			belttintbb = this['belttintbb_outfit' + outfit];
			gauntlettintrb = this['gauntlettintrb_outfit' + outfit];
			gauntlettintgb = this['gauntlettintgb_outfit' + outfit];
			gauntlettintbb = this['gauntlettintbb_outfit' + outfit];
			armtintrb = this['armtintrb_outfit' + outfit];
			armtintgb = this['armtintgb_outfit' + outfit];
			armtintbb = this['armtintbb_outfit' + outfit];
			glove1tintrb = this['glove1tintrb_outfit' + outfit];
			glove1tintgb = this['glove1tintgb_outfit' + outfit];
			glove1tintbb = this['glove1tintbb_outfit' + outfit];
			glove2tintrb = this['glove2tintrb_outfit' + outfit];
			glove2tintgb = this['glove2tintgb_outfit' + outfit];
			glove2tintbb = this['glove2tintbb_outfit' + outfit];
			panttintrb = this['panttintrb_outfit' + outfit];
			panttintgb = this['panttintgb_outfit' + outfit];
			panttintbb = this['panttintbb_outfit' + outfit];
			shoetintrb = this['shoetintrb_outfit' + outfit];
			shoetintgb = this['shoetintgb_outfit' + outfit];
			shoetintbb = this['shoetintbb_outfit' + outfit];
			skintintrb = this['skintintrb_outfit' + outfit];
			skintintgb = this['skintintgb_outfit' + outfit];
			skintintbb = this['skintintbb_outfit' + outfit];
			sheathtintrb = this['sheathtintrb_outfit' + outfit];
			sheathtintgb = this['sheathtintgb_outfit' + outfit];
			sheathtintbb = this['sheathtintbb_outfit' + outfit];
			maskoff = false;
			updatez();
		};
		randomizeOutfit = function () {
			done_outfit = false;
			hair = random(16) + 1;
			chance = random(2);
			if (chance == 1) {
				earring = random(6) + 1;
			} else {
				earring = 1;
			}
			chance = random(3);
			if (chance == 1) {
				skinz = random(5) + 1;
			} else {
				chancez = random(3);
				if (chancez == 1) {
					skinz = random(2) + 2;
				} else {
					skinz = random(3) + 1;
				}
			}
			chance = random(5);
			if (chance == 1) {
				freckles = 2;
			} else {
				freckles = 1;
			}
			frecklesalpha = 50;
			nosez = random(6) + 1;
			chance = random(3);
			if (chance != 1) {
				extrabelt = true;
			} else {
				extrabelt = false;
			}
			chance = random(5);
			if (chance != 1) {
				barechest = false;
			} else {
				barechest = true;
			}
			chance = random(10);
			if (chance == 1) {
				eyepatch = 2;
			} else {
				if (chance == 2) {
					eyepatch = 3;
				} else {
					eyepatch = 1;
				}
			}
			eyeboth = false;
			eyescale1 = 100;
			eyescale2 = 100;
			eyesparkle1 = true;
			eyesparkle2 = true;
			chance = random(3);
			if (chance == 1) {
				eyetypeX = random(7) + 1;
			} else {
				eyetypeX = random(3) + 1;
			}
			if (gotbloodshoteyes == 1 && eyetypeX == 5) {
				eyetypeX = 2;
			}
			if (gotundeadeyes == 1 && eyetypeX == 6) {
				eyetypeX = 2;
			}
			if (gotdemoneyes == 1 && eyetypeX == 7) {
				eyetypeX = 2;
			}
			if (eyetypeX == 1) {
				eyetype1 = 1;
				eyetype2 = 1;
				eyewhite1 = 1;
				eyewhite2 = 1;
			} else {
				if (eyetypeX == 2) {
					eyetype1 = 2;
					eyetype2 = 2;
					eyewhite1 = 1;
					eyewhite2 = 1;
				} else {
					if (eyetypeX == 3) {
						eyetype1 = 3;
						eyetype2 = 3;
						eyewhite1 = 1;
						eyewhite2 = 1;
					} else {
						if (eyetypeX == 4) {
							eyetype1 = 4;
							eyetype2 = 4;
							eyewhite1 = 1;
							eyewhite2 = 1;
						} else {
							if (eyetypeX == 5) {
								eyetype1 = 1;
								eyetype2 = 6;
								eyewhite1 = 1;
								eyewhite2 = 1;
								eyesparkle2 = false;
							} else {
								if (eyetypeX == 6) {
									eyetype1 = 7;
									eyetype2 = 7;
									eyewhite1 = 3;
									eyewhite2 = 3;
									eyesparkle1 = false;
									eyesparkle2 = false;
								} else {
									if (eyetypeX == 7) {
										eyetype1 = 5;
										eyetype2 = 5;
										eyewhite1 = 3;
										eyewhite2 = 3;
										eyesparkle1 = false;
										eyesparkle2 = false;
									}
								}
							}
						}
					}
				}
			}
			chance = random(3);
			if (chance == 1) {
				eyebrows = random(3) + 1;
			} else {
				eyebrows = 1;
			}
			chance = random(3);
			if (chance == 1) {
				eyesquint = random(3) + 1;
			} else {
				eyesquint = 1;
			}
			chance = random(5);
			if (chance == 1) {
				maskz = random(5) + 1;
			} else {
				maskz = 1;
			}
			chance = random(3);
			if (chance == 1) {
				tattoo = random(11) + 1;
			} else {
				tattoo = 1;
			}
			chance = random(3);
			if (chance == 1) {
				scar = random(7) + 1;
			} else {
				scar = 1;
			}
			capecolor = random(6) + 1;
			chance = random(4);
			if (chance != 1) {
				capeon = true;
			} else {
				capeon = false;
			}
			chance = random(3);
			if (chance == 1) {
				cape_addon = random(3) + 1;
			} else {
				if (chance == 2) {
					cape_addon = random(2) + 1;
				} else {
					cape_addon = 1;
				}
			}
			chance = random(3);
			if (chance == 1) {
				beard = random(9) + 1;
			} else {
				beard = 1;
			}
			necklace = random(5) + 1;
			jacket = random(5) + 1;
			pouches = random(4) + 1;
			belt = random(4) + 1;
			gauntlet = random(6) + 1;
			arms = random(5) + 1;
			glove1 = random(3) + 1;
			glove2 = random(3) + 1;
			pants = random(5) + 1;
			shoes = random(3) + 1;
			tattooalpha = 50;
			scaralpha = 50;
			hairtintrb = 0;
			hairtintbb = 0;
			hairtintgb = 0;
			eartintrb = 0;
			eartintbb = 0;
			eartintgb = 0;
			eye1tintrb = random(100);
			eye1tintbb = random(100);
			eye1tintgb = random(100);
			eye2tintrb = eye1tintrb;
			eye2tintbb = eye1tintbb;
			eye2tintgb = eye1tintgb;
			eyepatchtintrb = 0;
			eyepatchtintbb = 0;
			eyepatchtintgb = 0;
			hairtintrb = 0;
			hairtintbb = 0;
			hairtintgb = 0;
			chance = random(5);
			if (chance == 1) {
				hairtintrb = random(80) - 10;
				hairtintbb = random(80) - 10;
				hairtintgb = random(80) - 10;
			} else {
				if (chance == 2) {
					hairtintrb = random(40) + 10;
					hairtintbb = random(40) + 10;
					hairtintgb = random(40) + 10;
				}
			}
			masktintrb = 0;
			masktintbb = 0;
			masktintgb = 0;
			tattootintrb = 0;
			tattootintbb = 0;
			tattootintgb = 0;
			capetintrb = 0;
			capetintbb = 0;
			capetintgb = 0;
			jackettintrb = 0;
			jackettintbb = 0;
			jackettintgb = 0;
			necklacetintrb = 0;
			necklacetintbb = 0;
			necklacetintgb = 0;
			pouchtintrb = 0;
			pouchtintbb = 0;
			pouchtintgb = 0;
			belttintrb = 0;
			belttintbb = 0;
			belttintgb = 0;
			gauntlettintrb = 0;
			gauntlettintbb = 0;
			gauntlettintgb = 0;
			armtintrb = 0;
			armtintbb = 0;
			armtintgb = 0;
			glove1tintrb = 0;
			glove1tintbb = 0;
			glove1tintgb = 0;
			glove2tintrb = 0;
			glove2tintbb = 0;
			glove2tintgb = 0;
			panttintrb = 0;
			panttintbb = 0;
			panttintgb = 0;
			shoetintrb = 0;
			shoetintbb = 0;
			shoetintgb = 0;
			skintintrb = 0;
			skintintbb = 0;
			skintintgb = 0;
			sheathtintrb = 0;
			sheathtintbb = 0;
			sheathtintgb = 0;
			if (gotmaskcape == 1 && cape_addon == 3) {
				cape_addon = 1;
			}
			if (gotgrayskin == 1 && skinz == 4) {
				skinz = 2;
			}
			if (gotredskin == 1 && skinz == 5) {
				skinz = 2;
			}
			if (gotbandana == 1 && hair == 14) {
				hair = random(13) + 1;
			}
			if (gotfedorahat == 1 && hair == 15) {
				hair = random(13) + 1;
			}
			if (gottophat == 1 && hair == 16) {
				hair = random(13) + 1;
			}
			if (goteyepatches == 1) {
				eyepatch = 1;
			}
			if (gotthunder == 1 && earring == 5) {
				earring = random(4) + 1;
			}
			if (gotblackpearl == 1 && earring == 6) {
				earring = random(4) + 1;
			}
			if (gotserpentnose == 1 && nosez == 6) {
				nosez = random(5) + 1;
			}
			if (gotmask1 == 1 && maskz == 2) {
				maskz = 1;
			}
			if (gotmask2 == 1 && maskz == 3) {
				maskz = 1;
			}
			if (gotmask3 == 1 && maskz == 4) {
				maskz = 1;
			}
			if (gotmask4 == 1 && maskz == 5) {
				maskz = 1;
			}
			if (gotwarpaint == 1 && tattoo == 9) {
				tattoo = random(8) + 1;
			}
			if (goteyebleed == 1 && tattoo == 10) {
				tattoo = random(8) + 1;
			}
			if (goteyeshadow == 1 && tattoo == 11) {
				tattoo = random(8) + 1;
			}
			customize.outfitpoint._visible = true;
			customize.o1._visible = true;
			customize.o2._visible = true;
			customize.o3._visible = true;
		};
		doPKnight = function () {
			done_outfit = false;
			hair = 2;
			earring = 3;
			skinz = 2;
			freckles = 1;
			frecklesalpha = 50;
			nosez = 1;
			extrabelt = false;
			barechest = false;
			eyepatch = 1;
			eyeboth = false;
			eyescale1 = 100;
			eyescale2 = 100;
			eyesparkle1 = true;
			eyesparkle2 = true;
			eyetype1 = 2;
			eyetype2 = 2;
			eyewhite1 = 1;
			eyewhite2 = 1;
			eyebrows = 1;
			eyesquint = 1;
			maskz = 1;
			tattoo = 3;
			tattooalpha = 50;
			scar = 1;
			scaralpha = 50;
			capecolor = 6;
			capeon = true;
			cape_addon = 1;
			beard = 8;
			necklace = 2;
			jacket = 2;
			pouches = 1;
			belt = 2;
			gauntlet = 1;
			arms = 4;
			glove1 = 1;
			glove2 = 1;
			pants = 5;
			shoes = 2;
			hairtintrb = 35;
			hairtintbb = 0;
			hairtintgb = 30;
			eartintrb = 0;
			eartintbb = 0;
			eartintgb = 0;
			eye1tintrb = 0;
			eye1tintbb = 50;
			eye1tintgb = 0;
			eye2tintrb = eye1tintrb;
			eye2tintbb = eye1tintbb;
			eye2tintgb = eye1tintgb;
			eyepatchtintrb = 0;
			eyepatchtintbb = 0;
			eyepatchtintgb = 0;
			masktintrb = 0;
			masktintbb = 0;
			masktintgb = 0;
			tattootintrb = 0;
			tattootintbb = 0;
			tattootintgb = 0;
			capetintrb = 0;
			capetintbb = 0;
			capetintgb = 0;
			jackettintrb = 0;
			jackettintbb = 0;
			jackettintgb = 0;
			necklacetintrb = 0;
			necklacetintbb = 0;
			necklacetintgb = 0;
			pouchtintrb = 0;
			pouchtintbb = 0;
			pouchtintgb = 0;
			belttintrb = 0;
			belttintbb = 0;
			belttintgb = 0;
			gauntlettintrb = 0;
			gauntlettintbb = 0;
			gauntlettintgb = 0;
			armtintrb = 0;
			armtintbb = 0;
			armtintgb = 0;
			glove1tintrb = 0;
			glove1tintbb = 10;
			glove1tintgb = 0;
			glove2tintrb = 0;
			glove2tintbb = 0;
			glove2tintgb = 0;
			panttintrb = 0;
			panttintbb = 0;
			panttintgb = 0;
			shoetintrb = 0;
			shoetintbb = 0;
			shoetintgb = 0;
			skintintrb = 0;
			skintintbb = 0;
			skintintgb = 0;
			sheathtintrb = 0;
			sheathtintbb = 0;
			sheathtintgb = 0;
			customize.preset_MC.dotz._visible = true;
			customize.preset_MC.dotz._y = -59;
			updatez();
		};
		doPMercenary = function () {
			done_outfit = false;
			hair = 3;
			earring = 1;
			skinz = 2;
			freckles = 1;
			frecklesalpha = 50;
			nosez = 2;
			extrabelt = true;
			barechest = false;
			eyepatch = 1;
			eyeboth = false;
			eyescale1 = 100;
			eyescale2 = 100;
			eyesparkle1 = true;
			eyesparkle2 = true;
			eyetype1 = 1;
			eyetype2 = 5;
			eyewhite1 = 1;
			eyewhite2 = 2;
			eyebrows = 2;
			eyesquint = 3;
			maskz = 1;
			tattoo = 8;
			tattooalpha = 40;
			scar = 2;
			scaralpha = 70;
			capecolor = 1;
			capeon = true;
			cape_addon = 1;
			beard = 9;
			necklace = 5;
			jacket = 1;
			pouches = 4;
			belt = 1;
			gauntlet = 3;
			arms = 3;
			glove1 = 4;
			glove2 = 2;
			pants = 4;
			shoes = 3;
			hairtintrb = 0;
			hairtintbb = 0;
			hairtintgb = 0;
			eartintrb = 0;
			eartintbb = 0;
			eartintgb = 0;
			eye1tintrb = 0;
			eye1tintbb = 0;
			eye1tintgb = 0;
			eye2tintrb = 0;
			eye2tintbb = 0;
			eye2tintgb = 0;
			eyepatchtintrb = 0;
			eyepatchtintbb = 0;
			eyepatchtintgb = 0;
			masktintrb = 0;
			masktintbb = 0;
			masktintgb = 0;
			tattootintrb = 80;
			tattootintbb = 0;
			tattootintgb = 0;
			capetintrb = 0;
			capetintbb = 0;
			capetintgb = 0;
			jackettintrb = 0;
			jackettintbb = 0;
			jackettintgb = 0;
			necklacetintrb = 0;
			necklacetintbb = 0;
			necklacetintgb = 0;
			pouchtintrb = 0;
			pouchtintbb = 0;
			pouchtintgb = 0;
			belttintrb = 0;
			belttintbb = 0;
			belttintgb = 0;
			gauntlettintrb = 0;
			gauntlettintbb = 0;
			gauntlettintgb = 0;
			armtintrb = 0;
			armtintbb = 0;
			armtintgb = 0;
			glove1tintrb = 0;
			glove1tintbb = 0;
			glove1tintgb = 0;
			glove2tintrb = 0;
			glove2tintbb = 0;
			glove2tintgb = 0;
			panttintrb = 0;
			panttintbb = 0;
			panttintgb = 0;
			shoetintrb = 0;
			shoetintbb = 0;
			shoetintgb = 0;
			skintintrb = 0;
			skintintbb = 0;
			skintintgb = 0;
			sheathtintrb = 0;
			sheathtintbb = 0;
			sheathtintgb = 0;
			customize.preset_MC.dotz._visible = true;
			customize.preset_MC.dotz._y = -34;
			updatez();
		};
		doPWarrior = function () {
			done_outfit = false;
			hair = 11;
			earring = 4;
			skinz = 3;
			freckles = 1;
			frecklesalpha = 50;
			nosez = 4;
			extrabelt = false;
			barechest = false;
			eyepatch = 1;
			eyeboth = false;
			eyescale1 = 100;
			eyescale2 = 100;
			eyesparkle1 = true;
			eyesparkle2 = true;
			eyetype1 = 1;
			eyetype2 = 1;
			eyewhite1 = 1;
			eyewhite2 = 1;
			eyebrows = 3;
			eyesquint = 3;
			maskz = 1;
			tattoo = 1;
			tattooalpha = 50;
			scar = 7;
			scaralpha = 50;
			capecolor = 4;
			capeon = true;
			cape_addon = 2;
			beard = 3;
			necklace = 4;
			jacket = 4;
			pouches = 3;
			belt = 2;
			gauntlet = 4;
			arms = 4;
			glove1 = 2;
			glove2 = 2;
			pants = 1;
			shoes = 3;
			hairtintrb = -10;
			hairtintbb = -10;
			hairtintgb = -10;
			eartintrb = 0;
			eartintbb = 0;
			eartintgb = 0;
			eye1tintrb = 0;
			eye1tintbb = 0;
			eye1tintgb = 0;
			eye2tintrb = 0;
			eye2tintbb = 0;
			eye2tintgb = 0;
			eyepatchtintrb = 0;
			eyepatchtintbb = 0;
			eyepatchtintgb = 0;
			masktintrb = 0;
			masktintbb = 0;
			masktintgb = 0;
			tattootintrb = 0;
			tattootintbb = 0;
			tattootintgb = 0;
			capetintrb = 0;
			capetintbb = 0;
			capetintgb = 0;
			jackettintrb = 0;
			jackettintbb = 0;
			jackettintgb = 0;
			necklacetintrb = 0;
			necklacetintbb = 0;
			necklacetintgb = 0;
			pouchtintrb = 0;
			pouchtintbb = 0;
			pouchtintgb = 0;
			belttintrb = 0;
			belttintbb = 0;
			belttintgb = 0;
			gauntlettintrb = 0;
			gauntlettintbb = 0;
			gauntlettintgb = 0;
			armtintrb = 0;
			armtintbb = 0;
			armtintgb = 0;
			glove1tintrb = 0;
			glove1tintbb = 0;
			glove1tintgb = 0;
			glove2tintrb = 0;
			glove2tintbb = 0;
			glove2tintgb = 0;
			panttintrb = 0;
			panttintbb = 0;
			panttintgb = 0;
			shoetintrb = 0;
			shoetintbb = 0;
			shoetintgb = 0;
			skintintrb = 0;
			skintintbb = 0;
			skintintgb = 0;
			sheathtintrb = 0;
			sheathtintbb = 0;
			sheathtintgb = 0;
			customize.preset_MC.dotz._visible = true;
			customize.preset_MC.dotz._y = -9;
			updatez();
		};
		doPFarmer = function () {
			done_outfit = false;
			hair = 10;
			earring = 1;
			skinz = 3;
			freckles = 1;
			frecklesalpha = 50;
			nosez = 1;
			extrabelt = true;
			barechest = true;
			eyepatch = 1;
			eyeboth = false;
			eyescale1 = 100;
			eyescale2 = 100;
			eyesparkle1 = true;
			eyesparkle2 = true;
			eyetype1 = 2;
			eyetype2 = 2;
			eyewhite1 = 1;
			eyewhite2 = 1;
			eyebrows = 1;
			eyesquint = 1;
			maskz = 1;
			tattoo = 1;
			tattooalpha = 50;
			scar = 1;
			scaralpha = 50;
			capecolor = 5;
			capeon = false;
			cape_addon = 2;
			beard = 7;
			necklace = 5;
			jacket = 2;
			pouches = 2;
			belt = 1;
			gauntlet = 5;
			arms = 2;
			glove1 = 2;
			glove2 = 2;
			pants = 1;
			shoes = 1;
			hairtintrb = 35;
			hairtintbb = 20;
			hairtintgb = 35;
			eartintrb = 0;
			eartintbb = 0;
			eartintgb = 0;
			eye1tintrb = 0;
			eye1tintbb = 0;
			eye1tintgb = 30;
			eye2tintrb = eye1tintrb;
			eye2tintbb = eye1tintbb;
			eye2tintgb = eye1tintgb;
			eyepatchtintrb = 0;
			eyepatchtintbb = 0;
			eyepatchtintgb = 0;
			masktintrb = 0;
			masktintbb = 0;
			masktintgb = 0;
			tattootintrb = 0;
			tattootintbb = 0;
			tattootintgb = 0;
			capetintrb = 0;
			capetintbb = 0;
			capetintgb = 0;
			jackettintrb = 0;
			jackettintbb = 0;
			jackettintgb = 0;
			necklacetintrb = 0;
			necklacetintbb = 0;
			necklacetintgb = 0;
			pouchtintrb = 0;
			pouchtintbb = 0;
			pouchtintgb = 0;
			belttintrb = 0;
			belttintbb = 0;
			belttintgb = 0;
			gauntlettintrb = 0;
			gauntlettintbb = 0;
			gauntlettintgb = 0;
			armtintrb = 0;
			armtintbb = 0;
			armtintgb = 0;
			glove1tintrb = 0;
			glove1tintbb = 0;
			glove1tintgb = 0;
			glove2tintrb = 0;
			glove2tintbb = 0;
			glove2tintgb = 0;
			panttintrb = 0;
			panttintbb = 0;
			panttintgb = 0;
			shoetintrb = 0;
			shoetintbb = 0;
			shoetintgb = 0;
			skintintrb = 0;
			skintintbb = 0;
			skintintgb = 0;
			sheathtintrb = 0;
			sheathtintbb = 0;
			sheathtintgb = 0;
			customize.preset_MC.dotz._visible = true;
			customize.preset_MC.dotz._y = 16;
			updatez();
		};
		doPMage = function () {
			done_outfit = false;
			hair = 13;
			earring = 4;
			skinz = 2;
			freckles = 1;
			frecklesalpha = 50;
			nosez = 2;
			extrabelt = false;
			barechest = false;
			eyepatch = 1;
			eyeboth = false;
			eyescale1 = 130;
			eyescale2 = 130;
			eyesparkle1 = true;
			eyesparkle2 = true;
			eyetype1 = 5;
			eyetype2 = 5;
			eyewhite1 = 1;
			eyewhite2 = 1;
			eyebrows = 4;
			eyesquint = 2;
			maskz = 1;
			tattoo = 5;
			tattooalpha = 50;
			scar = 5;
			scaralpha = 70;
			capecolor = 3;
			capeon = true;
			cape_addon = 2;
			beard = 1;
			necklace = 4;
			jacket = 5;
			pouches = 3;
			belt = 1;
			gauntlet = 6;
			arms = 1;
			glove1 = 1;
			glove2 = 1;
			pants = 1;
			shoes = 3;
			hairtintrb = -10;
			hairtintbb = -10;
			hairtintgb = -10;
			eartintrb = 0;
			eartintbb = 0;
			eartintgb = 0;
			eye1tintrb = 0;
			eye1tintbb = 0;
			eye1tintgb = 0;
			eye2tintrb = 0;
			eye2tintbb = 0;
			eye2tintgb = 0;
			eyepatchtintrb = 0;
			eyepatchtintbb = 0;
			eyepatchtintgb = 0;
			masktintrb = 0;
			masktintbb = 0;
			masktintgb = 0;
			tattootintrb = 0;
			tattootintbb = 0;
			tattootintgb = 0;
			capetintrb = 0;
			capetintbb = 0;
			capetintgb = 0;
			jackettintrb = 0;
			jackettintbb = 0;
			jackettintgb = 0;
			necklacetintrb = 0;
			necklacetintbb = 0;
			necklacetintgb = 0;
			pouchtintrb = 0;
			pouchtintbb = 0;
			pouchtintgb = 0;
			belttintrb = 0;
			belttintbb = 0;
			belttintgb = 0;
			gauntlettintrb = 0;
			gauntlettintbb = 25;
			gauntlettintgb = 10;
			armtintrb = 0;
			armtintbb = 0;
			armtintgb = 0;
			glove1tintrb = 0;
			glove1tintbb = 0;
			glove1tintgb = 0;
			glove2tintrb = 0;
			glove2tintbb = 0;
			glove2tintgb = 0;
			panttintrb = 0;
			panttintbb = 0;
			panttintgb = 0;
			shoetintrb = 0;
			shoetintbb = 0;
			shoetintgb = 0;
			skintintrb = 0;
			skintintbb = 60;
			skintintgb = 15;
			sheathtintrb = 0;
			sheathtintbb = 0;
			sheathtintgb = 0;
			customize.preset_MC.dotz._visible = true;
			customize.preset_MC.dotz._y = 41;
			updatez();
		};
		doPDruid = function () {
			done_outfit = false;
			hair = 7;
			earring = 3;
			skinz = 2;
			freckles = 1;
			frecklesalpha = 50;
			nosez = 5;
			extrabelt = true;
			barechest = false;
			eyepatch = 1;
			eyeboth = false;
			eyescale1 = 130;
			eyescale2 = 130;
			eyesparkle1 = true;
			eyesparkle2 = true;
			eyetype1 = 4;
			eyetype2 = 4;
			eyewhite1 = 1;
			eyewhite2 = 1;
			eyebrows = 2;
			eyesquint = 1;
			maskz = 1;
			tattoo = 4;
			tattooalpha = 50;
			scar = 3;
			scaralpha = 50;
			capecolor = 1;
			capeon = false;
			cape_addon = 1;
			beard = 4;
			necklace = 1;
			jacket = 3;
			pouches = 2;
			belt = 1;
			gauntlet = 4;
			arms = 5;
			glove1 = 3;
			glove2 = 3;
			pants = 2;
			shoes = 1;
			hairtintrb = 35;
			hairtintbb = 5;
			hairtintgb = 40;
			eartintrb = 0;
			eartintbb = 0;
			eartintgb = 0;
			eye1tintrb = 100;
			eye1tintbb = 100;
			eye1tintgb = 50;
			eye2tintrb = 0;
			eye2tintbb = 100;
			eye2tintgb = 0;
			eyepatchtintrb = 0;
			eyepatchtintbb = 0;
			eyepatchtintgb = 0;
			masktintrb = 0;
			masktintbb = 0;
			masktintgb = 0;
			tattootintrb = 0;
			tattootintbb = 0;
			tattootintgb = 0;
			capetintrb = 0;
			capetintbb = 0;
			capetintgb = 0;
			jackettintrb = 0;
			jackettintbb = 0;
			jackettintgb = 0;
			necklacetintrb = 0;
			necklacetintbb = 0;
			necklacetintgb = 0;
			pouchtintrb = 0;
			pouchtintbb = 0;
			pouchtintgb = 0;
			belttintrb = 0;
			belttintbb = 0;
			belttintgb = 0;
			gauntlettintrb = 0;
			gauntlettintbb = 0;
			gauntlettintgb = 0;
			armtintrb = 0;
			armtintbb = 0;
			armtintgb = 0;
			glove1tintrb = 0;
			glove1tintbb = 0;
			glove1tintgb = 0;
			glove2tintrb = 0;
			glove2tintbb = 0;
			glove2tintgb = 0;
			panttintrb = 0;
			panttintbb = 0;
			panttintgb = 0;
			shoetintrb = 0;
			shoetintbb = 0;
			shoetintgb = 0;
			skintintrb = 30;
			skintintbb = 0;
			skintintgb = 30;
			sheathtintrb = 0;
			sheathtintbb = 0;
			sheathtintgb = 0;
			customize.preset_MC.dotz._visible = true;
			customize.preset_MC.dotz._y = 66;
			updatez();
		};
		doPThief = function () {
			done_outfit = false;
			hair = 5;
			earring = 1;
			skinz = 1;
			freckles = 2;
			frecklesalpha = 70;
			nosez = 3;
			extrabelt = true;
			barechest = false;
			eyepatch = 1;
			eyeboth = false;
			eyescale1 = 100;
			eyescale2 = 100;
			eyesparkle1 = true;
			eyesparkle2 = true;
			eyetype1 = 4;
			eyetype2 = 4;
			eyewhite1 = 1;
			eyewhite2 = 1;
			eyebrows = 1;
			eyesquint = 2;
			maskz = 1;
			tattoo = 1;
			tattooalpha = 50;
			scar = 4;
			scaralpha = 50;
			capecolor = 2;
			capeon = true;
			cape_addon = 2;
			beard = 6;
			necklace = 3;
			jacket = 5;
			pouches = 2;
			belt = 4;
			gauntlet = 6;
			arms = 3;
			glove1 = 2;
			glove2 = 2;
			pants = 1;
			shoes = 2;
			hairtintrb = 55;
			hairtintbb = 12;
			hairtintgb = 22;
			eartintrb = 0;
			eartintbb = 0;
			eartintgb = 0;
			eye1tintrb = 150;
			eye1tintbb = 0;
			eye1tintgb = 0;
			eye2tintrb = eye1tintrb;
			eye2tintbb = eye1tintbb;
			eye2tintgb = eye1tintgb;
			eyepatchtintrb = 0;
			eyepatchtintbb = 0;
			eyepatchtintgb = 0;
			masktintrb = 0;
			masktintbb = 0;
			masktintgb = 0;
			tattootintrb = 0;
			tattootintbb = 0;
			tattootintgb = 0;
			capetintrb = 0;
			capetintbb = 0;
			capetintgb = 0;
			jackettintrb = 0;
			jackettintbb = 0;
			jackettintgb = 0;
			necklacetintrb = 0;
			necklacetintbb = 0;
			necklacetintgb = 0;
			pouchtintrb = 0;
			pouchtintbb = 0;
			pouchtintgb = 0;
			belttintrb = 0;
			belttintbb = 0;
			belttintgb = 0;
			gauntlettintrb = 0;
			gauntlettintbb = 5;
			gauntlettintgb = 15;
			armtintrb = 0;
			armtintbb = 0;
			armtintgb = 0;
			glove1tintrb = 0;
			glove1tintbb = 0;
			glove1tintgb = 0;
			glove2tintrb = 0;
			glove2tintbb = 0;
			glove2tintgb = 0;
			panttintrb = 0;
			panttintbb = 0;
			panttintgb = 0;
			shoetintrb = 0;
			shoetintbb = 0;
			shoetintgb = 0;
			skintintrb = 0;
			skintintbb = 0;
			skintintgb = 0;
			sheathtintrb = 0;
			sheathtintbb = 0;
			sheathtintgb = 0;
			customize.preset_MC.dotz._visible = true;
			customize.preset_MC.dotz._y = 91;
			updatez();
		};
		doPDefault = function () {
			done_outfit = false;
			hair = 1;
			earring = 1;
			skinz = 2;
			freckles = 1;
			frecklesalpha = 50;
			nosez = 2;
			extrabelt = true;
			barechest = false;
			eyepatch = 1;
			eyeboth = false;
			eyescale1 = 100;
			eyescale2 = 100;
			eyesparkle1 = true;
			eyesparkle2 = true;
			eyetype1 = 1;
			eyetype2 = 1;
			eyewhite1 = 1;
			eyewhite2 = 1;
			eyebrows = 1;
			eyesquint = 1;
			maskz = 1;
			tattoo = 1;
			tattooalpha = 50;
			scar = 1;
			scaralpha = 50;
			capecolor = 1;
			capeon = true;
			cape_addon = 1;
			beard = 1;
			necklace = 1;
			jacket = 1;
			pouches = 1;
			belt = 1;
			gauntlet = 1;
			arms = 1;
			glove1 = 1;
			glove2 = 1;
			pants = 1;
			shoes = 1;
			hairtintrb = 0;
			hairtintbb = 0;
			hairtintgb = 0;
			eartintrb = 0;
			eartintbb = 0;
			eartintgb = 0;
			eye1tintrb = 0;
			eye1tintbb = 50;
			eye1tintgb = 0;
			eye2tintrb = 0;
			eye2tintbb = 50;
			eye2tintgb = 0;
			eyepatchtintrb = 0;
			eyepatchtintbb = 0;
			eyepatchtintgb = 0;
			masktintrb = 0;
			masktintbb = 0;
			masktintgb = 0;
			tattootintrb = 0;
			tattootintbb = 0;
			tattootintgb = 0;
			capetintrb = 0;
			capetintbb = 0;
			capetintgb = 0;
			jackettintrb = 0;
			jackettintbb = 0;
			jackettintgb = 0;
			necklacetintrb = 0;
			necklacetintbb = 0;
			necklacetintgb = 0;
			pouchtintrb = 0;
			pouchtintbb = 0;
			pouchtintgb = 0;
			belttintrb = 0;
			belttintbb = 0;
			belttintgb = 0;
			gauntlettintrb = 0;
			gauntlettintbb = 0;
			gauntlettintgb = 0;
			armtintrb = 0;
			armtintbb = 0;
			armtintgb = 0;
			glove1tintrb = 0;
			glove1tintbb = 0;
			glove1tintgb = 0;
			glove2tintrb = 0;
			glove2tintbb = 0;
			glove2tintgb = 0;
			panttintrb = 0;
			panttintbb = 0;
			panttintgb = 0;
			shoetintrb = 0;
			shoetintbb = 0;
			shoetintgb = 0;
			skintintrb = 0;
			skintintbb = 0;
			skintintgb = 0;
			sheathtintrb = 0;
			sheathtintbb = 0;
			sheathtintgb = 0;
			customize.preset_MC.dotz._visible = true;
			customize.preset_MC.dotz._y = 115;
			updatez();
		};
	}
	movieClip 2427	{
	}
	movieClip 2430	{
		frame 1 {
			stop();
		}
	}
	movieClip 2432	{
	}
	movieClip 2434	{
	}
	movieClip 2437	{
	}
	movieClip 2439	{
	}
	movieClip 2441	{
	}
	movieClip 2443	{
	}
	movieClip 2445	{
	}
	movieClip 2446	{
		frame 1 {
			gotoAndStop(_root.sword);
			onEnterFrame = function () {
				gotoAndStop(_root.sword);
			};
		}
	}
	movieClip 2454	{
	}
	movieClip 2461	{
		frame 1 {
			if (_root.capeon == false) {
				gotoAndStop(7);
			} else {
				gotoAndStop(_root.capecolor);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
			}
		}
	}
	movieClip 2462	{
	}
	movieClip 2473	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 2476	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 2478	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 2480	{
		frame 1 {
			if (_root.shoes > 2) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 2481	{
	}
	movieClip 2492	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 2495	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 2497	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 2499	{
		frame 1 {
			if (_root.shoes > 2) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 2500	{
	}
	movieClip 2504	{
		frame 1 {
			gotoAndStop(_root.shoes);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 2510	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 2511	{
		frame 1 {
			gotoAndStop(_root.shoes);
		}
	}
	movieClip 2515	{
		frame 1 {
			gotoAndStop(_root.shoes);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 2521	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 2522	{
		frame 1 {
			gotoAndStop(_root.shoes);
		}
	}
	movieClip 2528	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 2531	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
		}
	}
	movieClip 2537	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 2541	{
		frame 1 {
			gotoAndStop(_root.glove1);
			if (_root.glove1 != 1 && _root.glove1 != 2) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
			}
		}
	}
	movieClip 2543	{
	}
	movieClip 2549	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 2551	{
	}
	movieClip 2557	{
		frame 1 {
			gotoAndStop(_root.pants);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 2559	{
	}
	movieClip 2570	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 2572	{
		frame 1 {
			if (_root.barechest == true) {
				gotoAndStop(6);
			} else {
				gotoAndStop(_root.arms);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
			}
		}
	}
	movieClip 2578	{
		frame 1 {
			gotoAndStop(_root.jacket);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.jackettintrb, 'gb': _root.jackettintgb, 'bb': _root.jackettintbb});
		}
	}
	movieClip 2582	{
		frame 1 {
			if (_root.barechest == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 2587	{
		frame 1 {
			if (_root.extrabelt == true) {
				gotoAndStop(_root.jacket);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
			} else {
				gotoAndStop(6);
			}
		}
	}
	movieClip 2592	{
		frame 1 {
			gotoAndStop(_root.necklace);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.necklacetintrb, 'gb': _root.necklacetintgb, 'bb': _root.necklacetintbb});
		}
	}
	movieClip 2594	{
		frame 1 {
			gotoAndStop(_root.jacket);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
		}
	}
	movieClip 2595	{
		frame 1 {
			gotoAndStop(_root.jacket);
		}
	}
	movieClip 2600	{
		frame 1 {
			gotoAndStop(_root.belt);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.belttintrb, 'gb': _root.belttintgb, 'bb': _root.belttintbb});
		}
	}
	movieClip 2604	{
		frame 1 {
			gotoAndStop(_root.pouches);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.pouchtintrb, 'gb': _root.pouchtintgb, 'bb': _root.pouchtintbb});
		}
	}
	movieClip 2605	{
	}
	movieClip 2606	{
	}
	movieClip 2612	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 2614	{
	}
	movieClip 2620	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 2623	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
		}
	}
	movieClip 2629	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 2633	{
		frame 1 {
			gotoAndStop(_root.glove2);
			if (_root.glove2 != 1 && _root.glove2 != 2) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
			}
		}
	}
	movieClip 2634	{
	}
	movieClip 2641	{
		frame 1 {
			if (_root.cape_addon == 1 && _root.capeon == false) {
				_parent.gotoAndStop(2);
			} else {
				gotoAndStop(_root.capecolor);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
		}
	}
	movieClip 2643	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 2653	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 2654	{
		frame 1 {
			gotoAndStop(_root.gauntlet);
			if (_root.gauntlet != 5) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.gauntlettintrb, 'gb': _root.gauntlettintgb, 'bb': _root.gauntlettintbb});
			}
		}
	}
	movieClip 2655	{
	}
	movieClip 2665	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 2671	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 2672	{
		frame 1 {
			gotoAndStop(_root.gauntlet);
			if (_root.gauntlet != 5) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.gauntlettintrb, 'gb': _root.gauntlettintgb, 'bb': _root.gauntlettintbb});
			}
		}
	}
	movieClip 2673	{
	}
	movieClip 2675	{
		frame 1 {
			if (_root.hair > 1) {
				gotoAndStop(2);
			} else {
				stop();
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
			}
		}
	}
	movieClip 2686	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
			if (_root.hair != 13) {
				gotoAndStop(_root.skinz);
			} else {
				gotoAndStop(_root.skinz + 5);
			}
		}
	}
	movieClip 2693	{
		frame 1 {
			gotoAndStop(_root.scar);
			this._alpha = _root.scaralpha;
		}
	}
	movieClip 2695	{
		frame 1 {
			gotoAndStop(_root.freckles);
			this._alpha = _root.frecklesalpha;
		}
	}
	movieClip 2707	{
		frame 1 {
			gotoAndStop(_root.tattoo);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.tattootintrb, 'gb': _root.tattootintgb, 'bb': _root.tattootintbb});
			this._alpha = _root.tattooalpha;
		}
	}
	movieClip 2711	{
		frame 1 {
			gotoAndStop(_root.eyebrows);
		}
	}
	movieClip 2712	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 2714	{
		frame 1 {
			gotoAndStop(_root.eyesquint);
		}
	}
	movieClip 2718	{
		frame 1 {
			gotoAndStop(_root.eyesquint);
		}
	}
	movieClip 2722	{
		frame 1 {
			gotoAndStop(_root.eyewhite2);
		}
	}
	movieClip 2726	{
		frame 1 {
			gotoAndStop(_root.eyewhite1);
		}
	}
	movieClip 2727	{
		frame 1 {
			eye1._xscale = _root.eyescale1 / 1.7;
			eye1._yscale = _root.eyescale1;
			eye2._xscale = _root.eyescale2;
			eye2._yscale = _root.eyescale2;
		}
	}
	movieClip 2728	{
	}
	movieClip 2731	{
		frame 1 {
			if (_root.coreberserk == true) {
				gotoAndStop(95);
			} else {
				gotoAndPlay(random(40));
			}
			pupils.gotoAndPlay(savedp);
			if (_root.corepoison == true) {
				tired._visible = true;
			} else {
				tired._visible = false;
			}
		}
		frame 85 {
			savedp = pupils._currentframe;
		}
		frame 94 {
			gotoAndPlay(1);
		}
	}
	movieClip 2733	{
	}
	movieClip 2740	{
		frame 1 {
			gotoAndStop(_root.capecolor);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
		}
	}
	movieClip 2742	{
		frame 1 {
			if (_root.cape_addon == 1) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 2749	{
		frame 1 {
			gotoAndStop(_root.nosez);
		}
	}
	movieClip 2752	{
		frame 1 {
			gotoAndStop(_root.eyepatch);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.patchtintrb, 'gb': _root.patchtintgb, 'bb': _root.patchtintbb});
		}
	}
	movieClip 2759	{
		frame 1 {
			gotoAndStop(_root.beard);
		}
	}
	movieClip 2760	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 2767	{
		frame 1 {
			gotoAndStop(_root.capecolor);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
		}
	}
	movieClip 2769	{
		frame 1 {
			if (_root.cape_addon != 3 or _root.maskoff == true) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 2774	{
		frame 1 {
			if (_root.guarduniform == false && _root.maskoff == false) {
				gotoAndStop(_root.maskz);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.masktintrb, 'gb': _root.masktintgb, 'bb': _root.masktintbb});
			} else {
				stop();
			}
		}
	}
	movieClip 2780	{
		frame 1 {
			gotoAndStop(_root.eyebrows);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 2782	{
	}
	movieClip 2783	{
		frame 1 {
			if (_root.coreberserk == true) {
				if (_root.corehealth < _root.coremaxhealth / 5) {
					gotoAndStop(4);
				} else {
					gotoAndStop(3);
				}
			} else {
				if (_root.corehealth < _root.coremaxhealth / 5) {
					gotoAndStop(2);
				} else {
					stop();
				}
			}
		}
		frame 2 {
			stop();
		}
	}
	movieClip 2785	{
		frame 1 {
			stop();
			if (_root.haircut == true) {
				head.capemore._visible = false;
				head.maskz._visible = false;
			}
		}
	}
	movieClip 2787	{
	}
	button 2791 {
		on (release) {
			_root.oldOutfit();
			_root.outfit = 1;
			_root.nodone = true;
			_root.newOutfit();
		}
	}
	button 2795 {
		on (release) {
			_root.oldOutfit();
			_root.outfit = 2;
			_root.nodone = true;
			_root.newOutfit();
		}
	}
	button 2799 {
		on (release) {
			_root.oldOutfit();
			_root.outfit = 3;
			_root.nodone = true;
			_root.newOutfit();
		}
	}
	button 2803 {
		on (release) {
			if (_root.story == 0) {
				_root.skipz = false;
				_root.customz = 3;
				_root.gotoAndStop('name');
			} else {
				_root.music.setVolume(_root.volumez);
				_root.doGotoGame();
			}
		}
	}
	button 2808 {
		on (release) {
			doll.head.capemore._visible = false;
			doll.head.maskz._visible = false;
			doll.head.hair.horns._visible = false;
			m2._visible = true;
			m1._visible = false;
		}
	}
	button 2812 {
		on (release) {
			doll.head.capemore._visible = true;
			doll.head.maskz._visible = true;
			doll.head.hair.horns._visible = true;
			m1._visible = true;
			m2._visible = false;
		}
	}
	button 2816 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 2820 {
		on (release) {
			gotoAndStop(8);
		}
	}
	button 2824 {
		on (release) {
			gotoAndStop(3);
		}
	}
	button 2828 {
		on (release) {
			gotoAndStop(6);
		}
	}
	button 2832 {
		on (release) {
			gotoAndStop(5);
		}
	}
	button 2836 {
		on (release) {
			gotoAndStop(7);
		}
	}
	button 2840 {
		on (release) {
			gotoAndStop(4);
		}
	}
	movieClip 2842	{
	}
	movieClip 2843	{
	}
	movieClip 2844	{
		frame 1 {
			if (this._name == 'n1' && (_root.gotbandana == 2 or _root.gotfedorahat == 2 or _root.gottophat == 2)) {
				gotoAndStop(2);
			} else {
				if (this._name == 'n2' && (_root.gotbloodshoteyes == 2 or _root.gotundeadeyes == 2 or _root.gotdemoneyes == 2 or _root.goteyepatches == 2 or _root.gotthunder == 2 or _root.gotblackpearl == 2)) {
					gotoAndStop(2);
				} else {
					if (this._name == 'n3' && (_root.gotgrayskin == 2 or _root.gotredskin == 2 or _root.gotserpentnose == 2)) {
						gotoAndStop(2);
					} else {
						if (this._name == 'n4' && _root.gotmaskcape == 2) {
							gotoAndStop(2);
						} else {
							if (this._name == 'n5' && (_root.gotwarpaint == 2 or _root.goteyebleed == 2 or _root.goteyeshadow == 2 or _root.gotmask1 == 2 or _root.gotmask2 == 2 or _root.gotmask3 == 2 or _root.gotmask4 == 2)) {
								gotoAndStop(2);
							} else {
								if (this._name == 'bandana' && _root.gotbandana == 2) {
									gotoAndStop(2);
								} else {
									if (this._name == 'fedora' && _root.gotfedorahat == 2) {
										gotoAndStop(2);
									} else {
										if (this._name == 'tophat' && _root.gottophat == 2) {
											gotoAndStop(2);
										} else {
											if ((this._name == 'bloodshot' or this._name == 'bloodshot2') && _root.gotbloodshoteyes == 2) {
												gotoAndStop(2);
											} else {
												if ((this._name == 'undead' or this._name == 'undead2') && _root.gotundeadeyes == 2) {
													gotoAndStop(2);
												} else {
													if ((this._name == 'demon' or this._name == 'demon2') && _root.gotdemoneyes == 2) {
														gotoAndStop(2);
													} else {
														if (this._name == 'thunder' && _root.gotthunder == 2) {
															gotoAndStop(2);
														} else {
															if (this._name == 'blackpearl' && _root.gotblackpearl == 2) {
																gotoAndStop(2);
															} else {
																if (this._name == 'eyepatch1' && _root.goteyepatches == 2) {
																	gotoAndStop(2);
																} else {
																	if (this._name == 'eyepatch2' && _root.goteyepatches == 2) {
																		gotoAndStop(2);
																	} else {
																		if (this._name == 'maskcape' && _root.gotmaskcape == 2) {
																			gotoAndStop(2);
																		} else {
																			if (this._name == 'warpaint' && _root.gotwarpaint == 2) {
																				gotoAndStop(2);
																			} else {
																				if (this._name == 'eyebleed' && _root.goteyebleed == 2) {
																					gotoAndStop(2);
																				} else {
																					if (this._name == 'eyeshadow' && _root.goteyeshadow == 2) {
																						gotoAndStop(2);
																					} else {
																						if (this._name == 'mask1' && _root.gotmask1 == 2) {
																							gotoAndStop(2);
																						} else {
																							if (this._name == 'mask2' && _root.gotmask2 == 2) {
																								gotoAndStop(2);
																							} else {
																								if (this._name == 'mask3' && _root.gotmask3 == 2) {
																									gotoAndStop(2);
																								} else {
																									if (this._name == 'mask4' && _root.gotmask4 == 2) {
																										gotoAndStop(2);
																									} else {
																										if (this._name == 'grayskin' && _root.gotgrayskin == 2) {
																											gotoAndStop(2);
																										} else {
																											if (this._name == 'redskin' && _root.gotredskin == 2) {
																												gotoAndStop(2);
																											} else {
																												if (this._name == 'serpentnose' && _root.gotserpentnose == 2) {
																													gotoAndStop(2);
																												} else {
																													stop();
																												}
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
	button 2849 {
		on (release) {
			if (_root.done_outfit_MC._currentframe == 1) {
				if (_root.done_outfit == true) {
					_root.done_outfit_MC.gotoAndStop(2);
				} else {
					_root.randomizeOutfit();
					_root.updatez();
				}
				_root.done_outfit = false;
				_root.nodone = true;
			}
		}
	}
	button 2853 {
		on (release) {
			if (_root.done_outfit_MC._currentframe == 1) {
				if (preset_MC._currentframe == 1) {
					preset_MC.gotoAndPlay(2);
				} else {
					preset_MC.gotoAndStop(1);
				}
			}
		}
	}
	button 2858 {
		on (release) {
			if (_root.done_outfit_MC._currentframe == 1) {
				if (_root.done_outfit == true) {
					_root.presetz = 1;
					_root.done_outfit_MC.gotoAndStop(2);
				} else {
					_root.doPKnight();
				}
				_root.done_outfit = false;
				_root.nodone = true;
			}
		}
	}
	button 2862 {
		on (release) {
			if (_root.done_outfit_MC._currentframe == 1) {
				if (_root.done_outfit == true) {
					_root.presetz = 2;
					_root.done_outfit_MC.gotoAndStop(2);
				} else {
					_root.doPMercenary();
				}
				_root.done_outfit = false;
				_root.nodone = true;
			}
		}
	}
	button 2866 {
		on (release) {
			if (_root.done_outfit_MC._currentframe == 1) {
				if (_root.done_outfit == true) {
					_root.presetz = 3;
					_root.done_outfit_MC.gotoAndStop(2);
				} else {
					_root.doPWarrior();
				}
				_root.done_outfit = false;
				_root.nodone = true;
			}
		}
	}
	button 2870 {
		on (release) {
			if (_root.done_outfit_MC._currentframe == 1) {
				if (_root.done_outfit == true) {
					_root.presetz = 6;
					_root.done_outfit_MC.gotoAndStop(2);
				} else {
					_root.doPDruid();
				}
				_root.done_outfit = false;
				_root.nodone = true;
			}
		}
	}
	button 2874 {
		on (release) {
			if (_root.done_outfit_MC._currentframe == 1) {
				if (_root.done_outfit == true) {
					_root.presetz = 7;
					_root.done_outfit_MC.gotoAndStop(2);
				} else {
					_root.doPThief();
				}
				_root.done_outfit = false;
				_root.nodone = true;
			}
		}
	}
	button 2878 {
		on (release) {
			if (_root.done_outfit_MC._currentframe == 1) {
				if (_root.done_outfit == true) {
					_root.presetz = 8;
					_root.done_outfit_MC.gotoAndStop(2);
				} else {
					_root.doPDefault();
				}
				_root.done_outfit = false;
				_root.nodone = true;
			}
		}
	}
	button 2882 {
		on (release) {
			if (_root.done_outfit_MC._currentframe == 1) {
				if (_root.done_outfit == true) {
					_root.presetz = 5;
					_root.done_outfit_MC.gotoAndStop(2);
				} else {
					_root.doPMage();
				}
				_root.done_outfit = false;
				_root.nodone = true;
			}
		}
	}
	movieClip 2884	{
	}
	button 2888 {
		on (release) {
			if (_root.done_outfit_MC._currentframe == 1) {
				if (_root.done_outfit == true) {
					_root.presetz = 4;
					_root.done_outfit_MC.gotoAndStop(2);
				} else {
					_root.doPFarmer();
				}
				_root.done_outfit = false;
				_root.nodone = true;
			}
		}
	}
	movieClip 2889	{
		frame 1 {
			stop();
		}
		frame 5 {
			dotz._visible = false;
		}
		frame 9 {
			stop();
		}
	}
	button 2893 {
		on (release) {
			_parent.gotoAndStop(1);
		}
	}
	button 2894 {
		on (release) {
			_parent.gotoAndStop(6);
		}
	}
	button 2895 {
		on (release) {
			_parent.gotoAndStop(7);
		}
	}
	button 2896 {
		on (release) {
			_parent.gotoAndStop(2);
		}
	}
	button 2897 {
		on (release) {
			_parent.gotoAndStop(8);
		}
	}
	button 2898 {
		on (release) {
			_parent.gotoAndStop(5);
		}
	}
	button 2899 {
		on (release) {
			_parent.gotoAndStop(3);
		}
	}
	button 2900 {
		on (release) {
			_parent.gotoAndStop(4);
		}
	}
	button 2904 {
		on (release) {
			_parent.gotoAndStop(9);
		}
	}
	button 2908 {
		on (release) {
			_root.haircut = false;
			_root.music.setVolume(_root.volumez);
			_root.doGotoGame();
		}
	}
	movieClip 2909	{
		frame 1 {
			if (_root.haircut == true) {
				gotoAndStop(2);
			} else {
				stop();
				adv._visible = false;
			}
		}
	}
	button 2917 {
		on (release) {
			_root.hair = 1;
			_root.updatez();
		}
	}
	button 2921 {
		on (release) {
			_root.hair = 3;
			_root.updatez();
		}
	}
	button 2925 {
		on (release) {
			_root.hair = 12;
			_root.updatez();
		}
	}
	button 2929 {
		on (release) {
			_root.hair = 4;
			_root.updatez();
		}
	}
	button 2933 {
		on (release) {
			_root.hair = 6;
			_root.updatez();
		}
	}
	button 2937 {
		on (release) {
			_root.hair = 7;
			_root.updatez();
		}
	}
	button 2941 {
		on (release) {
			_root.hair = 8;
			_root.updatez();
		}
	}
	button 2945 {
		on (release) {
			_root.hair = 10;
			_root.updatez();
		}
	}
	button 2949 {
		on (release) {
			_root.hair = 9;
			_root.updatez();
		}
	}
	movieClip 2951	{
	}
	button 2955 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 2957	{
		frame 1 {
			stop();
		}
	}
	button 2958 {
		on (release) {
			_root.hair = 14;
			_root.updatez();
			_root.customize.bandana.gotoAndStop(1);
			_root.gotbandana = 3;
		}
	}
	movieClip 2959	{
		frame 1 {
			if (_root.gotbandana > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 2963 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 2965	{
		frame 1 {
			stop();
		}
	}
	button 2966 {
		on (release) {
			_root.hair = 15;
			_root.updatez();
			_root.customize.fedora.gotoAndStop(1);
			_root.gotfedorahat = 3;
		}
	}
	movieClip 2967	{
		frame 1 {
			if (_root.gotfedorahat > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 2971 {
		on (release) {
			_root.hair = 2;
			_root.updatez();
		}
	}
	button 2975 {
		on (release) {
			_root.hair = 5;
			_root.updatez();
		}
	}
	button 2979 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 2981	{
		frame 1 {
			stop();
		}
	}
	button 2982 {
		on (release) {
			_root.hair = 16;
			_root.updatez();
			_root.customize.tophat.gotoAndStop(1);
			_root.gottophat = 3;
		}
	}
	movieClip 2983	{
		frame 1 {
			if (_root.gotfedorahat > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 2987 {
		on (release) {
			_root.hair = 11;
			_root.updatez();
		}
	}
	button 2991 {
		on (release) {
			_root.hair = 13;
			_root.updatez();
		}
	}
	movieClip 2992	{
	}
	button 2996 {
		on (release) {
			_root.beard = 1;
			_root.updatez();
		}
	}
	button 3000 {
		on (release) {
			_root.beard = 2;
			_root.updatez();
		}
	}
	button 3004 {
		on (release) {
			_root.beard = 3;
			_root.updatez();
		}
	}
	button 3008 {
		on (release) {
			_root.beard = 5;
			_root.updatez();
		}
	}
	button 3012 {
		on (release) {
			_root.beard = 9;
			_root.updatez();
		}
	}
	button 3016 {
		on (release) {
			_root.beard = 6;
			_root.updatez();
		}
	}
	button 3020 {
		on (release) {
			_root.beard = 7;
			_root.updatez();
		}
	}
	button 3024 {
		on (release) {
			_root.beard = 8;
			_root.updatez();
		}
	}
	button 3028 {
		on (release) {
			_root.beard = 4;
			_root.updatez();
		}
	}
	movieClip 3029	{
	}
	movieClip 3033	{
	}
	movieClip 3036	{
		frame 1 {
			stop();
		}
	}
	movieClip 3037	{
		frame 1 {
			red = false;
			alfa = false;
			if (_name == 'hair_rb') {
				ratio = _root.hairtintrb;
				red = true;
			} else {
				if (_name == 'hair_bb') {
					ratio = _root.hairtintbb;
				} else {
					if (_name == 'hair_gb') {
						ratio = _root.hairtintgb;
					} else {
						if (_name == 'ear_rb') {
							ratio = _root.eartintrb;
							red = true;
						} else {
							if (_name == 'ear_bb') {
								ratio = _root.eartintbb;
							} else {
								if (_name == 'ear_gb') {
									ratio = _root.eartintgb;
								} else {
									if (_name == 'eyepatch_rb') {
										ratio = _root.patchtintrb;
										red = true;
									} else {
										if (_name == 'eyepatch_bb') {
											ratio = _root.patchtintbb;
										} else {
											if (_name == 'eyepatch_gb') {
												ratio = _root.patchtintgb;
											} else {
												if (_name == 'tattoo_rb') {
													ratio = _root.tattootintrb;
													red = true;
												} else {
													if (_name == 'tattoo_bb') {
														ratio = _root.tattootintbb;
													} else {
														if (_name == 'tattoo_gb') {
															ratio = _root.tattootintgb;
														} else {
															if (_name == 'mask_rb') {
																ratio = _root.masktintrb;
																red = true;
															} else {
																if (_name == 'mask_bb') {
																	ratio = _root.masktintbb;
																} else {
																	if (_name == 'mask_gb') {
																		ratio = _root.masktintgb;
																	} else {
																		if (_name == 'cape_rb') {
																			ratio = _root.capetintrb;
																			red = true;
																		} else {
																			if (_name == 'cape_bb') {
																				ratio = _root.capetintbb;
																			} else {
																				if (_name == 'cape_gb') {
																					ratio = _root.capetintgb;
																				} else {
																					if (_name == 'necklace_rb') {
																						ratio = _root.necklacetintrb;
																						red = true;
																					} else {
																						if (_name == 'necklace_bb') {
																							ratio = _root.necklacetintbb;
																						} else {
																							if (_name == 'necklace_gb') {
																								ratio = _root.necklacetintgb;
																							} else {
																								if (_name == 'arms_rb') {
																									ratio = _root.armtintrb;
																									red = true;
																								} else {
																									if (_name == 'arms_bb') {
																										ratio = _root.armtintbb;
																									} else {
																										if (_name == 'arms_gb') {
																											ratio = _root.armtintgb;
																										} else {
																											if (_name == 'glove1_rb') {
																												ratio = _root.glove1tintrb;
																												red = true;
																											} else {
																												if (_name == 'glove1_bb') {
																													ratio = _root.glove1tintbb;
																												} else {
																													if (_name == 'glove1_gb') {
																														ratio = _root.glove1tintgb;
																													} else {
																														if (_name == 'glove2_rb') {
																															ratio = _root.glove2tintrb;
																															red = true;
																														} else {
																															if (_name == 'glove2_bb') {
																																ratio = _root.glove2tintbb;
																															} else {
																																if (_name == 'glove2_gb') {
																																	ratio = _root.glove2tintgb;
																																} else {
																																	if (_name == 'gauntlet_rb') {
																																		ratio = _root.gauntlettintrb;
																																		red = true;
																																	} else {
																																		if (_name == 'gauntlet_bb') {
																																			ratio = _root.gauntlettintbb;
																																		} else {
																																			if (_name == 'gauntlet_gb') {
																																				ratio = _root.gauntlettintgb;
																																			} else {
																																				if (_name == 'jacket_rb') {
																																					ratio = _root.jackettintrb;
																																					red = true;
																																				} else {
																																					if (_name == 'jacket_bb') {
																																						ratio = _root.jackettintbb;
																																					} else {
																																						if (_name == 'jacket_gb') {
																																							ratio = _root.jackettintgb;
																																						} else {
																																							if (_name == 'pouch_rb') {
																																								ratio = _root.pouchtintrb;
																																								red = true;
																																							} else {
																																								if (_name == 'pouch_bb') {
																																									ratio = _root.pouchtintbb;
																																								} else {
																																									if (_name == 'pouch_gb') {
																																										ratio = _root.pouchtintgb;
																																									} else {
																																										if (_name == 'belt_rb') {
																																											ratio = _root.belttintrb;
																																											red = true;
																																										} else {
																																											if (_name == 'belt_bb') {
																																												ratio = _root.belttintbb;
																																											} else {
																																												if (_name == 'belt_gb') {
																																													ratio = _root.belttintgb;
																																												} else {
																																													if (_name == 'pants_rb') {
																																														ratio = _root.panttintrb;
																																														red = true;
																																													} else {
																																														if (_name == 'pants_bb') {
																																															ratio = _root.panttintbb;
																																														} else {
																																															if (_name == 'pants_gb') {
																																																ratio = _root.panttintgb;
																																															} else {
																																																if (_name == 'shoes_rb') {
																																																	ratio = _root.shoetintrb;
																																																	red = true;
																																																} else {
																																																	if (_name == 'shoes_bb') {
																																																		ratio = _root.shoetintbb;
																																																	} else {
																																																		if (_name == 'shoes_gb') {
																																																			ratio = _root.shoetintgb;
																																																		} else {
																																																			if (_name == 'eye1_rb') {
																																																				ratio = _root.eye1tintrb;
																																																				red = true;
																																																			} else {
																																																				if (_name == 'eye1_bb') {
																																																					ratio = _root.eye1tintbb;
																																																				} else {
																																																					if (_name == 'eye1_gb') {
																																																						ratio = _root.eye1tintgb;
																																																					} else {
																																																						if (_name == 'eye2_rb' or _name == 'eyeboth_rb') {
																																																							ratio = _root.eye2tintrb;
																																																							red = true;
																																																						} else {
																																																							if (_name == 'eye2_bb' or _name == 'eyeboth_bb') {
																																																								ratio = _root.eye2tintbb;
																																																							} else {
																																																								if (_name == 'eye2_gb' or _name == 'eyeboth_gb') {
																																																									ratio = _root.eye2tintgb;
																																																								} else {
																																																									if (_name == 'skin_rb') {
																																																										ratio = _root.skintintrb;
																																																										red = true;
																																																									} else {
																																																										if (_name == 'skin_bb') {
																																																											ratio = _root.skintintbb;
																																																										} else {
																																																											if (_name == 'skin_gb') {
																																																												ratio = _root.skintintgb;
																																																											} else {
																																																												if (_name == 'tattoo_alpha') {
																																																													ratio = _root.tattooalpha;
																																																													alfa = true;
																																																												} else {
																																																													if (_name == 'scar_alpha') {
																																																														ratio = _root.scaralpha;
																																																														alfa = true;
																																																													} else {
																																																														if (_name == 'freckles_alpha') {
																																																															ratio = _root.frecklesalpha;
																																																															alfa = true;
																																																														} else {
																																																															if (_name == 'eyescale1') {
																																																																ratio = _root.eyescale1;
																																																															} else {
																																																																if (_name == 'eyescale2') {
																																																																	ratio = _root.eyescale2;
																																																																}
																																																															}
																																																														}
																																																													}
																																																												}
																																																											}
																																																										}
																																																									}
																																																								}
																																																							}
																																																						}
																																																					}
																																																				}
																																																			}
																																																		}
																																																	}
																																																}
																																															}
																																														}
																																													}
																																												}
																																											}
																																										}
																																									}
																																								}
																																							}
																																						}
																																					}
																																				}
																																			}
																																		}
																																	}
																																}
																															}
																														}
																													}
																												}
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
			checkz = _name.split('_');
			if (_name == 'eyescale1' or _name == 'eyescale2') {
				dragger._x = (ratio / 130) * 100;
			} else {
				if (alfa == false && (checkz[0] == 'eye1' or checkz[0] == 'eye2' or checkz[0] == 'eyeboth' or checkz[0] == 'tattoo' or checkz[0] == 'scar')) {
					if (red == true) {
						if (checkz[0] == 'hair') {
							dragger._x = (ratio / 260) * 100 + 8;
						} else {
							dragger._x = (ratio / 260) * 100;
						}
					} else {
						if (checkz[0] == 'hair') {
							dragger._x = (ratio / 260) * 100 + 8;
						} else {
							dragger._x = (ratio / 130) * 100;
						}
					}
				} else {
					if (alfa == true) {
						dragger._x = (ratio / 70) * 100;
					} else {
						if (red == true) {
							if (checkz[0] == 'hair') {
								dragger._x = (ratio / 130) * 100 + 8;
							} else {
								dragger._x = (ratio / 130) * 100;
							}
						} else {
							if (checkz[0] == 'hair') {
								dragger._x = (ratio / 130) * 100 + 8;
							} else {
								dragger._x = (ratio / 78) * 100 * 2;
							}
						}
					}
				}
			}
			dragger.onPress = function () {
				dragger.gotoAndStop(2);
				this.startDrag(false, 0, 0, line._width, 0);
				this.onEnterFrame = function () {
					ratio = Math.round(this._x * 100 / line._width);
					if (_name == 'hair_rb') {
						_root.hairtintrb = (ratio / 100) * 200 - 10;
					} else {
						if (_name == 'hair_bb') {
							_root.hairtintbb = (ratio / 100) * 200 - 10;
						} else {
							if (_name == 'hair_gb') {
								_root.hairtintgb = (ratio / 100) * 200 - 10;
							} else {
								if (_name == 'ear_rb') {
									_root.eartintrb = (ratio / 100) * 200;
								} else {
									if (_name == 'ear_bb') {
										_root.eartintbb = (ratio / 100) * 60;
									} else {
										if (_name == 'ear_gb') {
											_root.eartintgb = (ratio / 100) * 60;
										} else {
											if (_name == 'eyepatch_rb') {
												_root.patchtintrb = (ratio / 100) * 200;
											} else {
												if (_name == 'eyepatch_bb') {
													_root.patchtintbb = (ratio / 100) * 60;
												} else {
													if (_name == 'eyepatch_gb') {
														_root.patchtintgb = (ratio / 100) * 60;
													} else {
														if (_name == 'tattoo_rb') {
															_root.tattootintrb = (ratio / 100) * 400;
														} else {
															if (_name == 'tattoo_bb') {
																_root.tattootintbb = (ratio / 100) * 200;
															} else {
																if (_name == 'tattoo_gb') {
																	_root.tattootintgb = (ratio / 100) * 200;
																} else {
																	if (_name == 'mask_rb') {
																		_root.masktintrb = (ratio / 100) * 200;
																	} else {
																		if (_name == 'mask_bb') {
																			_root.masktintbb = (ratio / 100) * 60;
																		} else {
																			if (_name == 'mask_gb') {
																				_root.masktintgb = (ratio / 100) * 60;
																			} else {
																				if (_name == 'cape_rb') {
																					_root.capetintrb = (ratio / 100) * 200;
																				} else {
																					if (_name == 'cape_bb') {
																						_root.capetintbb = (ratio / 100) * 60;
																					} else {
																						if (_name == 'cape_gb') {
																							_root.capetintgb = (ratio / 100) * 60;
																						} else {
																							if (_name == 'necklace_rb') {
																								_root.necklacetintrb = (ratio / 100) * 200;
																							} else {
																								if (_name == 'necklace_bb') {
																									_root.necklacetintbb = (ratio / 100) * 60;
																								} else {
																									if (_name == 'necklace_gb') {
																										_root.necklacetintgb = (ratio / 100) * 60;
																									} else {
																										if (_name == 'pouch_rb') {
																											_root.pouchtintrb = (ratio / 100) * 200;
																										} else {
																											if (_name == 'pouch_bb') {
																												_root.pouchtintbb = (ratio / 100) * 60;
																											} else {
																												if (_name == 'pouch_gb') {
																													_root.pouchtintgb = (ratio / 100) * 60;
																												} else {
																													if (_name == 'arms_rb') {
																														_root.armtintrb = (ratio / 100) * 200;
																													} else {
																														if (_name == 'arms_bb') {
																															_root.armtintbb = (ratio / 100) * 60;
																														} else {
																															if (_name == 'arms_gb') {
																																_root.armtintgb = (ratio / 100) * 60;
																															} else {
																																if (_name == 'glove1_rb') {
																																	_root.glove1tintrb = (ratio / 100) * 200;
																																} else {
																																	if (_name == 'glove1_bb') {
																																		_root.glove1tintbb = (ratio / 100) * 60;
																																	} else {
																																		if (_name == 'glove1_gb') {
																																			_root.glove1tintgb = (ratio / 100) * 60;
																																		} else {
																																			if (_name == 'glove2_rb') {
																																				_root.glove2tintrb = (ratio / 100) * 200;
																																			} else {
																																				if (_name == 'glove2_bb') {
																																					_root.glove2tintbb = (ratio / 100) * 60;
																																				} else {
																																					if (_name == 'glove2_gb') {
																																						_root.glove2tintgb = (ratio / 100) * 60;
																																					} else {
																																						if (_name == 'gauntlet_rb') {
																																							_root.gauntlettintrb = (ratio / 100) * 200;
																																						} else {
																																							if (_name == 'gauntlet_bb') {
																																								_root.gauntlettintbb = (ratio / 100) * 60;
																																							} else {
																																								if (_name == 'gauntlet_gb') {
																																									_root.gauntlettintgb = (ratio / 100) * 60;
																																								} else {
																																									if (_name == 'jacket_rb') {
																																										_root.jackettintrb = (ratio / 100) * 200;
																																									} else {
																																										if (_name == 'jacket_bb') {
																																											_root.jackettintbb = (ratio / 100) * 60;
																																										} else {
																																											if (_name == 'jacket_gb') {
																																												_root.jackettintgb = (ratio / 100) * 60;
																																											} else {
																																												if (_name == 'belt_rb') {
																																													_root.belttintrb = (ratio / 100) * 200;
																																												} else {
																																													if (_name == 'belt_bb') {
																																														_root.belttintbb = (ratio / 100) * 60;
																																													} else {
																																														if (_name == 'belt_gb') {
																																															_root.belttintgb = (ratio / 100) * 60;
																																														} else {
																																															if (_name == 'pants_rb') {
																																																_root.panttintrb = (ratio / 100) * 200;
																																															} else {
																																																if (_name == 'pants_bb') {
																																																	_root.panttintbb = (ratio / 100) * 60;
																																																} else {
																																																	if (_name == 'pants_gb') {
																																																		_root.panttintgb = (ratio / 100) * 60;
																																																	} else {
																																																		if (_name == 'shoes_rb') {
																																																			_root.shoetintrb = (ratio / 100) * 200;
																																																		} else {
																																																			if (_name == 'shoes_bb') {
																																																				_root.shoetintbb = (ratio / 100) * 60;
																																																			} else {
																																																				if (_name == 'shoes_gb') {
																																																					_root.shoetintgb = (ratio / 100) * 60;
																																																				} else {
																																																					if (_name == 'eye1_rb') {
																																																						_root.eye1tintrb = (ratio / 100) * 400;
																																																						if (_root.eyesboth == true) {
																																																							_root.eye2tintrb = (ratio / 100) * 400;
																																																						}
																																																					} else {
																																																						if (_name == 'eye1_bb') {
																																																							_root.eye1tintbb = (ratio / 100) * 200;
																																																							if (_root.eyesboth == true) {
																																																								_root.eye2tintbb = (ratio / 100) * 200;
																																																							}
																																																						} else {
																																																							if (_name == 'eye1_gb') {
																																																								_root.eye1tintgb = (ratio / 100) * 200;
																																																								if (_root.eyesboth == true) {
																																																									_root.eye2tintgb = (ratio / 100) * 200;
																																																								}
																																																							} else {
																																																								if (_name == 'eye2_rb' or _name == 'eyeboth_rb') {
																																																									_root.eye2tintrb = (ratio / 100) * 400;
																																																									if (_name == 'eyeboth_rb' or _root.eyesboth == true) {
																																																										_root.eye1tintrb = (ratio / 100) * 400;
																																																									}
																																																								} else {
																																																									if (_name == 'eye2_bb' or _name == 'eyeboth_bb') {
																																																										_root.eye2tintbb = (ratio / 100) * 200;
																																																										if (_name == 'eyeboth_bb' or _root.eyesboth == true) {
																																																											_root.eye1tintbb = (ratio / 100) * 200;
																																																										}
																																																									} else {
																																																										if (_name == 'eye2_gb' or _name == 'eyeboth_gb') {
																																																											_root.eye2tintgb = (ratio / 100) * 200;
																																																											if (_name == 'eyeboth_gb' or _root.eyesboth == true) {
																																																												_root.eye1tintgb = (ratio / 100) * 200;
																																																											}
																																																										} else {
																																																											if (_name == 'skin_rb') {
																																																												_root.skintintrb = (ratio / 100) * 200;
																																																											} else {
																																																												if (_name == 'skin_bb') {
																																																													_root.skintintbb = (ratio / 100) * 60;
																																																												} else {
																																																													if (_name == 'skin_gb') {
																																																														_root.skintintgb = (ratio / 100) * 60;
																																																													} else {
																																																														if (_name == 'tattoo_alpha') {
																																																															_root.tattooalpha = (dragger._x / line._width) * 100;
																																																														} else {
																																																															if (_name == 'scar_alpha') {
																																																																_root.scaralpha = (dragger._x / line._width) * 100;
																																																															} else {
																																																																if (_name == 'freckles_alpha') {
																																																																	_root.frecklesalpha = (dragger._x / line._width) * 100;
																																																																} else {
																																																																	if (_name == 'eyescale1') {
																																																																		_root.eyescale1 = (dragger._x / line._width) * 100 + 50;
																																																																		_root.customize.doll.head.eyes.pupils.eyetwitch.eye1._xscale = _root.eyescale1 / 1.7;
																																																																		_root.customize.doll.head.eyes.pupils.eyetwitch.eye1._yscale = _root.eyescale1;
																																																																		if (_root.eyesboth == true) {
																																																																			_root.eyescale2 = (dragger._x / line._width) * 100 + 50;
																																																																			_root.customize.doll.head.eyes.pupils.eyetwitch.eye2._xscale = _root.eyescale2;
																																																																			_root.customize.doll.head.eyes.pupils.eyetwitch.eye2._yscale = _root.eyescale2;
																																																																		}
																																																																	} else {
																																																																		if (_name == 'eyescale2') {
																																																																			_root.eyescale2 = (dragger._x / line._width) * 100 + 50;
																																																																			_root.customize.doll.head.eyes.pupils.eyetwitch.eye2._xscale = _root.eyescale2;
																																																																			_root.customize.doll.head.eyes.pupils.eyetwitch.eye2._yscale = _root.eyescale2;
																																																																			if (_root.eyesboth == true) {
																																																																				_root.eyescale1 = (dragger._x / line._width) * 100 + 50;
																																																																				_root.customize.doll.head.eyes.pupils.eyetwitch.eye1._xscale = _root.eyescale1 / 1.7;
																																																																				_root.customize.doll.head.eyes.pupils.eyetwitch.eye1._yscale = _root.eyescale1;
																																																																			}
																																																																		}
																																																																	}
																																																																}
																																																															}
																																																														}
																																																													}
																																																												}
																																																											}
																																																										}
																																																									}
																																																								}
																																																							}
																																																						}
																																																					}
																																																				}
																																																			}
																																																		}
																																																	}
																																																}
																																															}
																																														}
																																													}
																																												}
																																											}
																																										}
																																									}
																																								}
																																							}
																																						}
																																					}
																																				}
																																			}
																																		}
																																	}
																																}
																															}
																														}
																													}
																												}
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
					coloring = new Array(_root.customize.doll.head.hair.colorbase, _root.customize.doll.head.ponytail, _root.customize.doll.head.eyebrow, _root.customize.doll.head.beard);
					var v3 = 0;
					while (v3 < coloring.length) {
						myColor = new Color(coloring[v3]);
						myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
						++v3;
					}
					myColor = new Color(_root.customize.doll.head.earring);
					myColor.setTransform({'rb': _root.eartintrb, 'gb': _root.eartintgb, 'bb': _root.eartintbb});
					myColor = new Color(_root.customize.doll.head.eyepatch);
					myColor.setTransform({'rb': _root.patchtintrb, 'gb': _root.patchtintgb, 'bb': _root.patchtintbb});
					myColor = new Color(_root.customize.doll.head.tattoo);
					myColor.setTransform({'rb': _root.tattootintrb, 'gb': _root.tattootintgb, 'bb': _root.tattootintbb});
					myColor = new Color(_root.customize.doll.head.maskz);
					myColor.setTransform({'rb': _root.masktintrb, 'gb': _root.masktintgb, 'bb': _root.masktintbb});
					coloring = new Array(_root.customize.doll.cape.capeX, _root.customize.doll.capeneck.capeneckX, _root.customize.doll.head.thickcape.thickcapeX, _root.customize.doll.head.capemore.capemoreX);
					v3 = 0;
					while (v3 < coloring.length) {
						myColor = new Color(coloring[v3]);
						myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
						++v3;
					}
					coloring = new Array(_root.customize.doll.torso.torsocopy.necklace);
					v3 = 0;
					while (v3 < coloring.length) {
						myColor = new Color(coloring[v3]);
						myColor.setTransform({'rb': _root.necklacetintrb, 'gb': _root.necklacetintgb, 'bb': _root.necklacetintbb});
						++v3;
					}
					myColor = new Color(_root.customize.doll.torso.pouch.pouchX);
					myColor.setTransform({'rb': _root.pouchtintrb, 'gb': _root.pouchtintgb, 'bb': _root.pouchtintbb});
					if (_root.gauntlet != 5) {
						if (_root.barechest == false) {
							coloring = new Array(_root.customize.doll.arm1.arm1X, _root.customize.doll.arm2.arm2X, _root.customize.doll.gauntlet1.gauntlet1X.sl, _root.customize.doll.gauntlet2.gauntlet2X.sl, _root.customize.doll.torso.torsocopy.shirt);
						} else {
							coloring = new Array(_root.customize.doll.arm1.arm1X, _root.customize.doll.arm2.arm2X, _root.customize.doll.gauntlet1.gauntlet1X.sl, _root.customize.doll.gauntlet2.gauntlet2X.sl);
						}
					} else {
						if (_root.barechest == false) {
							coloring = new Array(_root.customize.doll.arm1.arm1X, _root.customize.doll.arm2.arm2X, _root.customize.doll.gauntlet1.gauntlet1X.sl.arm2X, _root.customize.doll.gauntlet2.gauntlet2X.sl.arm2X, _root.customize.doll.torso.torsocopy.shirt);
						} else {
							coloring = new Array(_root.customize.doll.arm1.arm1X, _root.customize.doll.arm2.arm2X, _root.customize.doll.gauntlet1.gauntlet1X.sl.arm2X, _root.customize.doll.gauntlet2.gauntlet2X.sl.arm2X);
						}
					}
					v3 = 0;
					while (v3 < coloring.length) {
						myColor = new Color(coloring[v3]);
						myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
						++v3;
					}
					if (_root.glove1 > 2) {
						myColor = new Color(_root.customize.doll.glove1.gloveX);
						myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
					}
					if (_root.glove1 == 2) {
						myColor = new Color(_root.customize.doll.glove1.gloveX.glove);
						myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
					}
					if (_root.glove2 > 2) {
						myColor = new Color(_root.customize.doll.glove2);
						myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
					}
					if (_root.glove2 == 2) {
						myColor = new Color(_root.customize.doll.glove2.skin_C.glove);
						myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
					}
					if (_root.gauntlet != 5) {
						coloring = new Array(_root.customize.doll.gauntlet1.gauntlet1X, _root.customize.doll.gauntlet2.gauntlet2X);
						v3 = 0;
						while (v3 < coloring.length) {
							myColor = new Color(coloring[v3]);
							myColor.setTransform({'rb': _root.gauntlettintrb, 'gb': _root.gauntlettintgb, 'bb': _root.gauntlettintbb});
							++v3;
						}
					}
					myColor = new Color(_root.customize.doll.torso.torsocopy.jacket);
					myColor.setTransform({'rb': _root.jackettintrb, 'gb': _root.jackettintgb, 'bb': _root.jackettintbb});
					myColor = new Color(_root.customize.doll.torso.belt);
					myColor.setTransform({'rb': _root.belttintrb, 'gb': _root.belttintgb, 'bb': _root.belttintbb});
					coloring = new Array(_root.customize.doll.torso.tpants.tpantsX, _root.customize.doll.pant1.pant1X, _root.customize.doll.pant2.pant2X);
					v3 = 0;
					while (v3 < coloring.length) {
						myColor = new Color(coloring[v3]);
						myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
						++v3;
					}
					if (_root.shoes < 3) {
						coloring = new Array(_root.customize.doll.shoe1.ss, _root.customize.doll.shoe2.ss);
						v3 = 0;
						while (v3 < coloring.length) {
							myColor = new Color(coloring[v3]);
							myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
							++v3;
						}
					} else {
						if (_root.shoes == 3) {
							coloring = new Array(_root.customize.doll.shoe1.ss, _root.customize.doll.shoe2.ss, _root.customize.doll.pant1.boot.boot_C, _root.customize.doll.pant2.boot.boot_C);
							v3 = 0;
							while (v3 < coloring.length) {
								myColor = new Color(coloring[v3]);
								myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
								++v3;
							}
						}
					}
					myColor = new Color(_root.customize.doll.head.eyes.pupils.eyetwitch.eye1);
					myColor.setTransform({'rb': _root.eye1tintrb, 'gb': _root.eye1tintgb, 'bb': _root.eye1tintbb});
					myColor = new Color(_root.customize.doll.head.eyes.pupils.eyetwitch.eye2);
					myColor.setTransform({'rb': _root.eye2tintrb, 'gb': _root.eye2tintgb, 'bb': _root.eye2tintbb});
					coloring = new Array(_root.customize.doll.head.head, _root.customize.doll.gauntlet1.gauntlet1X.arm, _root.customize.doll.gauntlet2.gauntlet2X.arm, _root.customize.doll.shoe1.toes, _root.customize.doll.shoe2.toes, _root.customize.doll.torso.torsocopy.shirt.barechest);
					if (_root.glove1 == 1 or _root.glove1 == 2) {
						coloring.push(_root.customize.doll.glove1.gloveX.skin);
					}
					if (_root.glove2 == 1 or _root.glove2 == 2) {
						coloring.push(_root.customize.doll.glove2.skin_C.skin);
					}
					v3 = 0;
					while (v3 < coloring.length) {
						myColor = new Color(coloring[v3]);
						myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
						++v3;
					}
					_root.customize.doll.head.tattoo._alpha = _root.tattooalpha;
					_root.customize.doll.head.scar._alpha = _root.scaralpha;
					_root.customize.doll.head.freckles._alpha = _root.frecklesalpha;
					if (_root.eyesboth == true) {
						if (_name == 'eyescale1') {
							_root.customize.b3.eyescale2.dragger._x = dragger._x;
						} else {
							if (_name == 'eyescale2') {
								_root.customize.b1.eyescale1.dragger._x = dragger._x;
							}
						}
					}
				};
			};
			dragger.onReleaseOutside = function () {
				dragger.gotoAndStop(1);
				dragger.stopDrag();
			};
			dragger.onRelease = dragger.onReleaseOutside;
		}
	}
	button 3044 {
		on (release) {
			_root.customize.hairReset();
		}
	}
	movieClip 3045	{
	}
	movieClip 3046	{
	}
	button 3053 {
		on (release) {
			_root.eyesparkle1 = true;
			_root.eyesparkle2 = true;
			_root.eyetype1 = 1;
			_root.eyetype2 = 1;
			_root.eyewhite1 = 1;
			_root.eyewhite2 = 1;
			_root.customize.eyeReset();
		}
	}
	button 3057 {
		on (release) {
			_root.eyesparkle1 = true;
			_root.eyesparkle2 = true;
			_root.eyetype1 = 3;
			_root.eyetype2 = 3;
			_root.eyewhite1 = 1;
			_root.eyewhite2 = 1;
			_root.customize.eyeReset();
		}
	}
	button 3061 {
		on (release) {
			_root.eyesparkle1 = true;
			_root.eyesparkle2 = true;
			_root.eyetype1 = 2;
			_root.eyetype2 = 2;
			_root.eyewhite1 = 1;
			_root.eyewhite2 = 1;
			_root.customize.eyeReset();
		}
	}
	button 3065 {
		on (release) {
			_root.eyesparkle1 = true;
			_root.eyesparkle2 = true;
			_root.eyetype1 = 4;
			_root.eyetype2 = 4;
			_root.eyewhite1 = 1;
			_root.eyewhite2 = 1;
			_root.customize.eyeReset();
		}
	}
	button 3069 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 3070 {
		on (release) {
			_root.eyesparkle1 = false;
			_root.eyesparkle2 = false;
			_root.eyetype1 = 5;
			_root.eyetype2 = 5;
			_root.eyewhite1 = 3;
			_root.eyewhite2 = 3;
			_root.customize.eyeReset();
			_root.customize.demon.gotoAndStop(1);
			_root.gotdemoneyes = 3;
		}
	}
	movieClip 3071	{
		frame 1 {
			if (_root.gotdemoneyes > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3075 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 3076 {
		on (release) {
			_root.eyesparkle1 = false;
			_root.eyesparkle2 = false;
			_root.eyetype1 = 7;
			_root.eyetype2 = 7;
			_root.eyewhite1 = 3;
			_root.eyewhite2 = 3;
			_root.customize.eyeReset();
			_root.customize.undead.gotoAndStop(1);
			_root.gotundeadeyes = 3;
		}
	}
	movieClip 3077	{
		frame 1 {
			if (_root.gotundeadeyes > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3081 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3085 {
		on (release) {
			_root.eyesquint = 1;
			_root.updatez();
		}
	}
	button 3089 {
		on (release) {
			_root.eyesquint = 2;
			_root.updatez();
		}
	}
	button 3093 {
		on (release) {
			_root.eyesquint = 3;
			_root.updatez();
		}
	}
	button 3097 {
		on (release) {
			_root.eyesparkle1 = false;
			_root.eyesparkle2 = false;
			_root.eyetype1 = 5;
			_root.eyetype2 = 5;
			_root.eyewhite1 = 2;
			_root.eyewhite2 = 2;
			_root.customize.eyeReset();
		}
	}
	button 3098 {
		on (release) {
			_root.customize.eyeResetColor();
		}
	}
	button 3102 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3103	{
		frame 1 {
			stop();
		}
	}
	button 3107 {
		on (release) {
			_root.earring = 2;
			_root.customize.earReset();
		}
	}
	button 3111 {
		on (release) {
			_root.earring = 3;
			_root.customize.earReset();
		}
	}
	button 3115 {
		on (release) {
			_root.earring = 4;
			_root.customize.earReset();
		}
	}
	button 3116 {
		on (release) {
			_root.earring = 1;
			_root.customize.earReset();
		}
	}
	button 3120 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 3122	{
		frame 1 {
			stop();
		}
	}
	button 3123 {
		on (release) {
			_root.earring = 6;
			_root.customize.earReset();
			_root.customize.blackpearl.gotoAndStop(1);
			_root.gotblackpearl = 3;
		}
	}
	movieClip 3124	{
		frame 1 {
			if (_root.gotblackpearl > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3128 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 3129 {
		on (release) {
			_root.earring = 5;
			_root.customize.earReset();
			_root.customize.thunder.gotoAndStop(1);
			_root.gotthunder = 3;
		}
	}
	movieClip 3130	{
		frame 1 {
			if (_root.gotthunder > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3131 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3132 {
		on (release) {
			_root.customize.earReset();
		}
	}
	button 3133 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3134	{
		frame 1 {
			stop();
		}
	}
	button 3139 {
		on (release) {
			_root.eyebrows = 1;
			_root.updatez();
		}
	}
	button 3143 {
		on (release) {
			_root.eyebrows = 2;
			_root.updatez();
		}
	}
	button 3147 {
		on (release) {
			_root.eyebrows = 3;
			_root.updatez();
		}
	}
	button 3148 {
		on (release) {
			_root.eyebrows = 4;
			_root.updatez();
		}
	}
	movieClip 3149	{
	}
	button 3151 {
		on (release) {
			_root.eyepatch = 1;
			_root.customize.eyepatchReset();
		}
	}
	button 3152 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3156 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 3158	{
		frame 1 {
			stop();
		}
	}
	button 3159 {
		on (release) {
			_root.eyepatch = 3;
			_root.customize.eyepatchReset();
			_root.customize.eyepatch2.gotoAndStop(1);
			_root.goteyepatches = 3;
		}
	}
	movieClip 3160	{
		frame 1 {
			if (_root.goteyepatches > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3164 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 3165 {
		on (release) {
			_root.eyepatch = 2;
			_root.customize.eyepatchReset();
			_root.customize.eyepatch1.gotoAndStop(1);
			_root.goteyepatches = 3;
		}
	}
	movieClip 3166	{
		frame 1 {
			if (_root.goteyepatches > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3167 {
		on (release) {
			_root.customize.eyepatchReset();
		}
	}
	button 3168 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3169	{
		frame 1 {
			stop();
		}
	}
	button 3173 {
		on (release) {
			gotoAndStop(9);
		}
	}
	button 3181 {
		on (release) {
			_root.skinz = 1;
			_root.customize.skinReset();
		}
	}
	button 3185 {
		on (release) {
			_root.skinz = 2;
			_root.customize.skinReset();
		}
	}
	button 3189 {
		on (release) {
			_root.skinz = 3;
			_root.customize.skinReset();
		}
	}
	button 3193 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 3195	{
		frame 1 {
			stop();
		}
	}
	button 3196 {
		on (release) {
			_root.skinz = 5;
			_root.customize.skinReset();
			_root.customize.redskin.gotoAndStop(1);
			_root.gotredskin = 3;
		}
	}
	movieClip 3197	{
		frame 1 {
			if (_root.gotredskin > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3201 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 3203	{
		frame 1 {
			stop();
		}
	}
	button 3204 {
		on (release) {
			_root.skinz = 4;
			_root.customize.skinReset();
			_root.customize.grayskin.gotoAndStop(1);
			_root.gotgrayskin = 3;
		}
	}
	movieClip 3205	{
		frame 1 {
			if (_root.gotgrayskin > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3206 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3207 {
		on (release) {
			_root.skinz = 1;
			_root.updatez();
		}
	}
	button 3208 {
		on (release) {
			gotoAndStop(1);
		}
	}
	button 3209 {
		on (release) {
			_root.customize.skinReset();
		}
	}
	movieClip 3210	{
		frame 1 {
			stop();
		}
	}
	button 3211 {
		on (release) {
			_root.scar = 1;
			_root.updatez();
		}
	}
	button 3215 {
		on (release) {
			_root.scar = 2;
			_root.updatez();
		}
	}
	button 3219 {
		on (release) {
			_root.scar = 3;
			_root.updatez();
		}
	}
	button 3223 {
		on (release) {
			_root.scar = 4;
			_root.updatez();
		}
	}
	button 3227 {
		on (release) {
			_root.scar = 5;
			_root.updatez();
		}
	}
	button 3231 {
		on (release) {
			_root.scar = 6;
			_root.updatez();
		}
	}
	button 3236 {
		on (release) {
			_root.scar = 7;
			_root.updatez();
		}
	}
	movieClip 3237	{
	}
	button 3241 {
		on (release) {
			_root.nosez = 1;
			_root.updatez();
		}
	}
	button 3245 {
		on (release) {
			_root.nosez = 2;
			_root.updatez();
		}
	}
	button 3249 {
		on (release) {
			_root.nosez = 3;
			_root.updatez();
		}
	}
	button 3253 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 3255	{
		frame 1 {
			stop();
		}
	}
	button 3256 {
		on (release) {
			_root.nosez = 6;
			_root.updatez();
			_root.customize.serpentnose.gotoAndStop(1);
			_root.gotserpentnose = 3;
		}
	}
	movieClip 3257	{
		frame 1 {
			if (_root.gotserpentnose > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3261 {
		on (release) {
			_root.nosez = 5;
			_root.updatez();
		}
	}
	button 3265 {
		on (release) {
			_root.nosez = 4;
			_root.updatez();
		}
	}
	movieClip 3266	{
	}
	movieClip 3270	{
	}
	button 3274 {
		on (release) {
			if (_root.freckles == 1) {
				_root.freckles = 2;
			} else {
				_root.freckles = 1;
			}
			_root.updatez();
		}
	}
	movieClip 3275	{
	}
	button 3284 {
		on (release) {
			_root.jacket = 1;
			_root.customize.jacketReset();
		}
	}
	button 3288 {
		on (release) {
			_root.jacket = 2;
			_root.customize.jacketReset();
		}
	}
	button 3292 {
		on (release) {
			_root.jacket = 3;
			_root.customize.jacketReset();
		}
	}
	button 3296 {
		on (release) {
			_root.jacket = 4;
			_root.customize.jacketReset();
		}
	}
	button 3300 {
		on (release) {
			_root.jacket = 5;
			_root.customize.jacketReset();
		}
	}
	button 3304 {
		on (release) {
			if (_root.extrabelt == true) {
				_root.extrabelt = false;
			} else {
				_root.extrabelt = true;
			}
			_root.updatez();
		}
	}
	button 3305 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3309 {
		on (release) {
			if (_root.barechest == true) {
				_root.barechest = false;
			} else {
				_root.barechest = true;
			}
			_root.updatez();
		}
	}
	button 3310 {
		on (release) {
			_root.customize.jacketReset();
		}
	}
	button 3311 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3312	{
		frame 1 {
			stop();
		}
	}
	button 3316 {
		on (release) {
			_root.necklace = 1;
			_root.updatez();
		}
	}
	button 3320 {
		on (release) {
			_root.necklace = 2;
			_root.updatez();
		}
	}
	button 3324 {
		on (release) {
			_root.necklace = 4;
			_root.updatez();
		}
	}
	button 3325 {
		on (release) {
			_root.necklace = 5;
			_root.updatez();
		}
	}
	button 3329 {
		on (release) {
			_root.necklace = 3;
			_root.updatez();
		}
	}
	button 3330 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3331 {
		on (release) {
			_root.customize.necklaceReset();
		}
	}
	button 3332 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3333	{
		frame 1 {
			stop();
		}
	}
	button 3337 {
		on (release) {
			if (_root.cape_addon == 1) {
				_root.capeon = true;
			}
			_root.capecolor = 1;
			_root.customize.capeReset();
		}
	}
	button 3341 {
		on (release) {
			if (_root.cape_addon == 1) {
				_root.capeon = true;
			}
			_root.capecolor = 3;
			_root.customize.capeReset();
		}
	}
	button 3345 {
		on (release) {
			if (_root.cape_addon == 1) {
				_root.capeon = true;
			}
			_root.capecolor = 2;
			_root.customize.capeReset();
		}
	}
	button 3349 {
		on (release) {
			if (_root.cape_addon == 1) {
				_root.capeon = true;
			}
			_root.capecolor = 4;
			_root.customize.capeReset();
		}
	}
	button 3353 {
		on (release) {
			if (_root.cape_addon == 1) {
				_root.capeon = true;
			}
			_root.capecolor = 5;
			_root.customize.capeReset();
		}
	}
	button 3357 {
		on (release) {
			if (_root.cape_addon == 1) {
				_root.capeon = true;
			}
			_root.capecolor = 6;
			_root.customize.capeReset();
		}
	}
	button 3358 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3362 {
		on (release) {
			if (_root.capeon == true) {
				_root.capeon = false;
			} else {
				_root.capeon = true;
			}
			_root.updatez();
			_root.customize.nocape.gotoAndStop(1);
		}
	}
	button 3363 {
		on (release) {
			_root.capecolor = 1;
			_root.customize.capeReset();
		}
	}
	button 3364 {
		on (release) {
			_root.capecolor = 2;
			_root.customize.capeReset();
		}
	}
	button 3365 {
		on (release) {
			_root.customize.capeReset();
		}
	}
	button 3366 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3367	{
		frame 1 {
			stop();
		}
	}
	button 3368 {
		on (release) {
			_root.cape_addon = 1;
			_root.maskoff = false;
			_root.updatez();
		}
	}
	button 3372 {
		on (release) {
			_root.cape_addon = 2;
			_root.maskoff = false;
			_root.updatez();
		}
	}
	button 3376 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 3378	{
		frame 1 {
			stop();
		}
	}
	button 3379 {
		on (release) {
			_root.cape_addon = 3;
			_root.maskoff = false;
			_root.updatez();
			_root.customize.maskcape.gotoAndStop(1);
			_root.gotmaskcape = 3;
		}
	}
	movieClip 3380	{
		frame 1 {
			if (_root.gotmaskcape > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 3381	{
	}
	button 3388 {
		on (release) {
			_root.arms = 1;
			_root.armtintrb = 0;
			_root.armtintgb = 0;
			_root.armtintbb = 0;
			_root.customize.shirtReset();
		}
	}
	button 3392 {
		on (release) {
			_root.arms = 2;
			_root.armtintrb = 0;
			_root.armtintgb = 0;
			_root.armtintbb = 0;
			_root.customize.shirtReset();
		}
	}
	button 3396 {
		on (release) {
			_root.arms = 3;
			_root.armtintrb = 0;
			_root.armtintgb = 0;
			_root.armtintbb = 0;
			_root.customize.shirtReset();
		}
	}
	button 3400 {
		on (release) {
			_root.arms = 4;
			_root.armtintrb = 0;
			_root.armtintgb = 0;
			_root.armtintbb = 0;
			_root.customize.shirtReset();
		}
	}
	button 3404 {
		on (release) {
			_root.arms = 5;
			_root.armtintrb = 0;
			_root.armtintgb = 0;
			_root.armtintbb = 0;
			_root.customize.shirtReset();
		}
	}
	button 3405 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3406 {
		on (release) {
			_root.customize.shirtReset();
		}
	}
	button 3407 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3408	{
		frame 1 {
			stop();
		}
	}
	button 3412 {
		on (release) {
			_root.gauntlet = 1;
			_root.customize.gauntletReset();
		}
	}
	button 3416 {
		on (release) {
			_root.gauntlet = 2;
			_root.customize.gauntletReset();
		}
	}
	button 3420 {
		on (release) {
			_root.gauntlet = 3;
			_root.customize.gauntletReset();
		}
	}
	button 3424 {
		on (release) {
			_root.gauntlet = 4;
			_root.customize.gauntletReset();
		}
	}
	button 3428 {
		on (release) {
			_root.gauntlet = 5;
			_root.customize.gauntletReset();
		}
	}
	button 3432 {
		on (release) {
			_root.gauntlet = 6;
			_root.customize.gauntletReset();
		}
	}
	button 3433 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3434 {
		on (release) {
			_root.customize.gauntletReset();
		}
	}
	button 3435 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3436	{
		frame 1 {
			stop();
		}
	}
	button 3442 {
		on (release) {
			_root.glove1 = 3;
			_root.customize.glove1Reset();
		}
	}
	button 3446 {
		on (release) {
			_root.glove1 = 4;
			_root.customize.glove1Reset();
		}
	}
	button 3447 {
		on (release) {
			_root.glove1 = 1;
			_root.customize.glove1Reset();
		}
	}
	button 3448 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3452 {
		on (release) {
			_root.glove1 = 2;
			_root.customize.glove1Reset();
		}
	}
	button 3453 {
		on (release) {
			_root.customize.glove1Reset();
		}
	}
	button 3454 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3455	{
		frame 1 {
			stop();
		}
	}
	button 3456 {
		on (release) {
			_root.glove2 = 3;
			_root.customize.glove1Reset();
		}
	}
	button 3457 {
		on (release) {
			_root.glove2 = 4;
			_root.customize.glove1Reset();
		}
	}
	button 3458 {
		on (release) {
			_root.glove2 = 1;
			_root.customize.glove1Reset();
		}
	}
	button 3459 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3460 {
		on (release) {
			_root.glove2 = 2;
			_root.customize.glove1Reset();
		}
	}
	button 3461 {
		on (release) {
			_root.customize.glove2Reset();
		}
	}
	button 3462 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3463	{
		frame 1 {
			stop();
		}
	}
	button 3472 {
		on (release) {
			_root.pants = 1;
			_root.customize.pantsReset();
		}
	}
	button 3476 {
		on (release) {
			_root.pants = 2;
			_root.customize.pantsReset();
		}
	}
	button 3480 {
		on (release) {
			_root.pants = 3;
			_root.customize.pantsReset();
		}
	}
	button 3484 {
		on (release) {
			_root.pants = 5;
			_root.customize.pantsReset();
		}
	}
	button 3488 {
		on (release) {
			_root.pants = 4;
			_root.customize.pantsReset();
		}
	}
	button 3489 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3490 {
		on (release) {
			_root.pants = 1;
			_root.customize.pantReset();
		}
	}
	button 3491 {
		on (release) {
			_root.customize.pantsReset();
		}
	}
	button 3492 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3493	{
		frame 1 {
			stop();
		}
	}
	button 3497 {
		on (release) {
			_root.pouches = 1;
			_root.updatez();
		}
	}
	button 3501 {
		on (release) {
			_root.pouches = 2;
			_root.updatez();
		}
	}
	button 3505 {
		on (release) {
			_root.pouches = 3;
			_root.updatez();
		}
	}
	button 3506 {
		on (release) {
			_root.pouches = 4;
			_root.updatez();
		}
	}
	button 3507 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3508 {
		on (release) {
			_root.customize.pouchReset();
		}
	}
	button 3509 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3510	{
		frame 1 {
			stop();
		}
	}
	button 3514 {
		on (release) {
			_root.belt = 1;
			_root.customize.beltReset();
		}
	}
	button 3518 {
		on (release) {
			_root.belt = 2;
			_root.customize.beltReset();
		}
	}
	button 3522 {
		on (release) {
			_root.belt = 3;
			_root.customize.beltReset();
		}
	}
	button 3526 {
		on (release) {
			_root.belt = 4;
			_root.customize.beltReset();
		}
	}
	button 3527 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3528 {
		on (release) {
			_root.customize.beltReset();
		}
	}
	button 3529 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3530	{
		frame 1 {
			stop();
		}
	}
	button 3534 {
		on (release) {
			_root.shoes = 3;
			_root.customize.shoesReset();
		}
	}
	button 3538 {
		on (release) {
			_root.shoes = 1;
			_root.customize.shoesReset();
		}
	}
	button 3542 {
		on (release) {
			_root.shoes = 2;
			_root.customize.shoesReset();
		}
	}
	button 3543 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3544 {
		on (release) {
			_root.customize.shoesReset();
		}
	}
	button 3545 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3546	{
		frame 1 {
			stop();
		}
	}
	button 3553 {
		on (release) {
			_root.tattoo = 2;
			_root.customize.tattooReset();
		}
	}
	button 3557 {
		on (release) {
			_root.tattoo = 3;
			_root.customize.tattooReset();
		}
	}
	button 3561 {
		on (release) {
			_root.tattoo = 5;
			_root.customize.tattooReset();
		}
	}
	button 3565 {
		on (release) {
			_root.tattoo = 6;
			_root.customize.tattooReset();
		}
	}
	button 3566 {
		on (release) {
			_root.tattoo = 1;
			_root.customize.tattooReset();
		}
	}
	button 3570 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 3572	{
		frame 1 {
			stop();
		}
	}
	button 3573 {
		on (release) {
			_root.tattoo = 11;
			_root.customize.tattooReset();
			_root.customize.eyeshadow.gotoAndStop(1);
			_root.goteyeshadow = 3;
		}
	}
	movieClip 3574	{
		frame 1 {
			if (_root.goteyeshadow > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3578 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 3579 {
		on (release) {
			_root.tattoo = 10;
			_root.customize.tattooReset();
			_root.customize.eyebleed.gotoAndStop(1);
			_root.goteyebleed = 3;
		}
	}
	movieClip 3580	{
		frame 1 {
			if (_root.goteyebleed > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3584 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 3586	{
		frame 1 {
			stop();
		}
	}
	button 3587 {
		on (release) {
			_root.tattoo = 9;
			_root.customize.tattooReset();
			_root.customize.warpaint.gotoAndStop(1);
			_root.gotwarpaint = 3;
		}
	}
	movieClip 3588	{
		frame 1 {
			if (_root.gotwarpaint > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3592 {
		on (release) {
			_root.tattoo = 7;
			_root.customize.tattooReset();
		}
	}
	button 3596 {
		on (release) {
			_root.tattoo = 4;
			_root.customize.tattooReset();
		}
	}
	button 3600 {
		on (release) {
			_root.tattoo = 8;
			_root.customize.tattooReset();
		}
	}
	button 3601 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3602 {
		on (release) {
			_root.customize.tattooReset();
		}
	}
	button 3603 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3604	{
		frame 1 {
			stop();
		}
	}
	button 3605 {
		on (release) {
			_root.maskz = 1;
			_root.maskoff = false;
			_root.customize.maskReset();
		}
	}
	button 3609 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 3611	{
		frame 1 {
			stop();
		}
	}
	button 3612 {
		on (release) {
			_root.maskz = 3;
			_root.maskoff = false;
			_root.customize.maskReset();
			_root.customize.mask2.gotoAndStop(1);
			_root.gotmask2 = 3;
		}
	}
	movieClip 3613	{
		frame 1 {
			if (_root.gotmask2 > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3617 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 3619	{
		frame 1 {
			stop();
		}
	}
	button 3620 {
		on (release) {
			_root.maskz = 2;
			_root.maskoff = false;
			_root.customize.maskReset();
			_root.customize.mask1.gotoAndStop(1);
			_root.gotmask1 = 3;
		}
	}
	movieClip 3621	{
		frame 1 {
			if (_root.gotmask1 > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3625 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 3627	{
		frame 1 {
			stop();
		}
	}
	button 3628 {
		on (release) {
			_root.maskz = 4;
			_root.maskoff = false;
			_root.customize.maskReset();
			_root.customize.mask3.gotoAndStop(1);
			_root.gotmask3 = 3;
		}
	}
	movieClip 3629	{
		frame 1 {
			if (_root.gotmask3 > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3633 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	movieClip 3635	{
		frame 1 {
			stop();
		}
	}
	button 3636 {
		on (release) {
			_root.maskz = 5;
			_root.maskoff = false;
			_root.customize.maskReset();
			_root.customize.mask4.gotoAndStop(1);
			_root.gotmask4 = 3;
		}
	}
	movieClip 3637	{
		frame 1 {
			if (_root.gotmask4 > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3638 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3639 {
		on (release) {
			_root.customize.maskReset();
		}
	}
	button 3640 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3641	{
		frame 1 {
			stop();
		}
	}
	button 3647 {
		on (release) {
			_root.eyetype1 = 1;
			_root.eyesparkle1 = true;
			_root.customize.eye1Reset();
			if (_root.eyesboth == true) {
				_root.eyetype2 = 1;
				_root.eyesparkle2 = true;
				_root.customize.eye2Reset();
			}
		}
	}
	button 3651 {
		on (release) {
			_root.eyetype1 = 3;
			_root.eyesparkle1 = true;
			_root.customize.eye1Reset();
			if (_root.eyesboth == true) {
				_root.eyetype2 = 3;
				_root.eyesparkle2 = true;
				_root.customize.eye2Reset();
			}
		}
	}
	button 3655 {
		on (release) {
			_root.eyetype1 = 2;
			_root.eyesparkle1 = true;
			_root.customize.eye1Reset();
			if (_root.eyesboth == true) {
				_root.eyetype2 = 2;
				_root.eyesparkle2 = true;
				_root.customize.eye2Reset();
			}
		}
	}
	button 3659 {
		on (release) {
			_root.eyetype1 = 4;
			_root.eyesparkle1 = true;
			_root.customize.eye1Reset();
			if (_root.eyesboth == true) {
				_root.eyetype2 = 4;
				_root.eyesparkle2 = true;
				_root.customize.eye2Reset();
			}
		}
	}
	button 3663 {
		on (release) {
			_root.eyetype1 = 5;
			_root.eyesparkle1 = false;
			_root.customize.eye1Reset();
			if (_root.eyesboth == true) {
				_root.eyetype2 = 5;
				_root.eyesparkle2 = true;
				_root.customize.eye2Reset();
			}
		}
	}
	button 3667 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 3668 {
		on (release) {
			_root.eyetype1 = 6;
			_root.eyesparkle1 = false;
			_root.customize.eye1Reset();
			_root.customize.bloodshot.gotoAndStop(1);
			_root.gotbloodshoteyes = 3;
			if (_root.eyesboth == true) {
				_root.eyetype2 = 6;
				_root.eyesparkle2 = false;
				_root.customize.eye2Reset();
			}
		}
	}
	movieClip 3669	{
		frame 1 {
			if (_root.gotbloodshoteyes > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3673 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 3674 {
		on (release) {
			_root.eyetype1 = 7;
			_root.eyesparkle1 = false;
			_root.customize.eye1Reset();
			_root.customize.undead.gotoAndStop(1);
			_root.gotundeadeyes = 3;
			if (_root.eyesboth == true) {
				_root.eyetype2 = 7;
				_root.eyesparkle2 = false;
				_root.customize.eye2Reset();
			}
		}
	}
	movieClip 3675	{
		frame 1 {
			if (_root.gotundeadeyes > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3676 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3678 {
		on (release) {
			_root.customize.eye1ResetColor();
			if (_root.eyesboth == true) {
				_root.customize.eye2ResetColor();
			}
		}
	}
	button 3679 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3680	{
		frame 1 {
			stop();
		}
	}
	button 3685 {
		on (release) {
			_root.eyewhite1 = 1;
			if (_root.eyesboth == true) {
				_root.eyewhite2 = 1;
			}
			_root.updatez();
		}
	}
	button 3689 {
		on (release) {
			_root.eyewhite1 = 2;
			if (_root.eyesboth == true) {
				_root.eyewhite2 = 2;
			}
			_root.updatez();
		}
	}
	button 3693 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 3694 {
		on (release) {
			_root.eyewhite1 = 3;
			if (_root.eyesboth == true) {
				_root.eyewhite2 = 3;
			}
			_root.updatez();
			_root.customize.demon.gotoAndStop(1);
			_root.gotdemoneyes = 3;
		}
	}
	movieClip 3695	{
		frame 1 {
			if (_root.gotdemoneyes > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 3696	{
	}
	button 3698 {
		on (release) {
			_root.eyetype2 = 1;
			_root.eyesparkle2 = true;
			_root.customize.eye2Reset();
			if (_root.eyesboth == true) {
				_root.eyetype1 = 1;
				_root.eyesparkle1 = true;
				_root.customize.eye1Reset();
			}
		}
	}
	button 3699 {
		on (release) {
			_root.eyetype2 = 3;
			_root.eyesparkle2 = true;
			_root.customize.eye2Reset();
			if (_root.eyesboth == true) {
				_root.eyetype1 = 3;
				_root.eyesparkle1 = true;
				_root.customize.eye1Reset();
			}
		}
	}
	button 3700 {
		on (release) {
			_root.eyetype2 = 2;
			_root.eyesparkle2 = true;
			_root.customize.eye2Reset();
			if (_root.eyesboth == true) {
				_root.eyetype1 = 2;
				_root.eyesparkle1 = true;
				_root.customize.eye1Reset();
			}
		}
	}
	button 3701 {
		on (release) {
			_root.eyetype2 = 4;
			_root.eyesparkle2 = true;
			_root.customize.eye2Reset();
			if (_root.eyesboth == true) {
				_root.eyetype1 = 4;
				_root.eyesparkle1 = true;
				_root.customize.eye1Reset();
			}
		}
	}
	button 3702 {
		on (release) {
			_root.eyetype2 = 5;
			_root.eyesparkle2 = false;
			_root.customize.eye2Reset();
			if (_root.eyesboth == true) {
				_root.eyetype1 = 5;
				_root.eyesparkle1 = true;
				_root.customize.eye1Reset();
			}
		}
	}
	button 3703 {
		on (release) {
			_root.eyetype2 = 6;
			_root.eyesparkle2 = false;
			_root.customize.eye2Reset();
			_root.customize.bloodshot2.gotoAndStop(1);
			_root.gotbloodshoteyes = 3;
			if (_root.eyesboth == true) {
				_root.eyetype1 = 6;
				_root.eyesparkle1 = false;
				_root.customize.eye1Reset();
			}
		}
	}
	movieClip 3704	{
		frame 1 {
			if (_root.gotbloodshoteyes > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3705 {
		on (release) {
			_root.eyetype2 = 7;
			_root.eyesparkle2 = false;
			_root.customize.eye2Reset();
			_root.customize.undead2.gotoAndStop(1);
			_root.gotundeadeyes = 3;
			if (_root.eyesboth == true) {
				_root.eyetype1 = 7;
				_root.eyesparkle1 = false;
				_root.customize.eye1Reset();
			}
		}
	}
	movieClip 3706	{
		frame 1 {
			if (_root.gotundeadeyes > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 3707 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 3708 {
		on (release) {
			_root.customize.eye2ResetColor();
			if (_root.eyesboth == true) {
				_root.customize.eye1ResetColor();
			}
		}
	}
	button 3709 {
		on (release) {
			gotoAndStop(1);
		}
	}
	movieClip 3710	{
		frame 1 {
			stop();
		}
	}
	button 3711 {
		on (release) {
			_root.eyewhite2 = 1;
			if (_root.eyesboth == true) {
				_root.eyewhite1 = 1;
			}
			_root.updatez();
		}
	}
	button 3712 {
		on (release) {
			_root.eyewhite2 = 2;
			if (_root.eyesboth == true) {
				_root.eyewhite1 = 2;
			}
			_root.updatez();
		}
	}
	button 3713 {
		on (release) {
			_root.eyewhite2 = 3;
			if (_root.eyesboth == true) {
				_root.eyewhite1 = 3;
			}
			_root.updatez();
			_root.customize.demon2.gotoAndStop(1);
			_root.gotdemoneyes = 3;
		}
	}
	movieClip 3714	{
		frame 1 {
			if (_root.gotdemoneyes > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 3715	{
	}
	button 3720 {
		on (release) {
			_root.eyesboth = true;
			_root.eyetype1 = _root.eyetype2;
			_root.eyewhite1 = _root.eyewhite2;
			_root.eyescale1 = _root.eyescale2;
			_root.eyesparkle1 = _root.eyesparkle2;
			_root.eye1tintrb = _root.eye2tintrb;
			_root.eye1tintbb = _root.eye2tintbb;
			_root.eye1tintgb = _root.eye2tintgb;
			_root.customize.b1.eyescale1.dragger._x = _root.customize.b3.eyescale2.dragger._x;
			_root.updatez();
			gotoAndStop(2);
		}
	}
	button 3722 {
		on (release) {
			_root.eyesboth = false;
			gotoAndStop(1);
		}
	}
	movieClip 3723	{
		frame 1 {
			if (_root.eyesboth == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 3724	{
		frame 1 {
			stop();
			xx = 180;
			yy = 180;
			x_x = 400;
			y_y = 100;
			if (_root.startcustomize == false) {
				_root.startcustomize = true;
				outfitpoint._visible = false;
				o1._visible = false;
				o2._visible = false;
				o3._visible = false;
			}
			if (_root.maskz > 1 or _root.cape_addon == 3 && _root.capecolor < 7) {
				m1._visible = true;
				m2._visible = false;
			} else {
				m1._visible = false;
				m2._visible = false;
			}
			onEnterFrame = function () {
				outfitpoint._y = (_root.outfit - 1) * 30 - 124;
				destx = xx;
				desty = yy;
				diffx = destx - doll._xscale;
				diffy = desty - doll._yscale;
				doll._xscale += diffx * 0.12;
				doll._yscale += diffy * 0.12;
				dest_x = x_x;
				dest_y = y_y;
				diff_x = dest_x - doll._x;
				diff_y = dest_y - doll._y;
				doll._x += diff_x * 0.12;
				doll._y += diff_y * 0.12;
			};
		}
		frame 2 {
			dollsize = 500;
			x_x = 600;
			y_y = 650;
			if (_root.haircut == true) {
				dotz._visible = false;
			}
			onEnterFrame = function () {
				hairpoint._y = (_root.hair - 1) * 25 - 165;
				facepoint._y = (_root.beard - 1) * 25 - 165;
				destx = dollsize;
				desty = dollsize;
				diffx = destx - doll._xscale;
				diffy = desty - doll._yscale;
				doll._xscale += diffx * 0.12;
				doll._yscale += diffy * 0.12;
				dest_x = x_x;
				dest_y = y_y;
				diff_x = dest_x - doll._x;
				diff_y = dest_y - doll._y;
				doll._x += diff_x * 0.12;
				doll._y += diff_y * 0.12;
			};
			hairReset = function () {
				_root.hairtintrb = -10;
				_root.hairtintgb = -10;
				_root.hairtintbb = -10;
				b3.hair_rb.dragger._x = 0;
				b3.hair_gb.dragger._x = 0;
				b3.hair_bb.dragger._x = 0;
				_root.updatez();
			};
		}
		frame 3 {
			dollsize = 500;
			x_x = 600;
			y_y = 650;
			onEnterFrame = function () {
				if (_root.eyetype1 == 1 && _root.eyetype2 == 1 && _root.eyewhite1 == 1 && _root.eyewhite2 == 1) {
					eyetypeX = 1;
				} else {
					if (_root.eyetype1 == 2 && _root.eyetype2 == 2 && _root.eyewhite1 == 1 && _root.eyewhite2 == 1) {
						eyetypeX = 2;
					} else {
						if (_root.eyetype1 == 3 && _root.eyetype2 == 3 && _root.eyewhite1 == 1 && _root.eyewhite2 == 1) {
							eyetypeX = 3;
						} else {
							if (_root.eyetype1 == 4 && _root.eyetype2 == 4 && _root.eyewhite1 == 1 && _root.eyewhite2 == 1) {
								eyetypeX = 4;
							} else {
								if (_root.eyetype1 == 5 && _root.eyetype2 == 5 && _root.eyewhite1 == 2 && _root.eyewhite2 == 2) {
									eyetypeX = 5;
								} else {
									if (_root.eyetype1 == 7 && _root.eyetype2 == 7 && _root.eyewhite1 == 3 && _root.eyewhite2 == 3) {
										eyetypeX = 6;
									} else {
										if (_root.eyetype1 == 5 && _root.eyetype2 == 5 && _root.eyewhite1 == 3 && _root.eyewhite2 == 3) {
											eyetypeX = 7;
										} else {
											eyetypeX = 0;
										}
									}
								}
							}
						}
					}
				}
				if (eyetypeX == 0) {
					eyepoint._x = 43;
					eyepoint._y = -197;
				} else {
					eyepoint._x = -60;
					eyepoint._y = (eyetypeX - 1) * 25 - 165;
				}
				squintpoint._y = (_root.eyesquint - 1) * 18 + 18;
				eyebrowpoint._y = (_root.eyebrows - 1) * 25 + 160;
				patchpoint._y = (_root.eyepatch - 1) * 25 - 165;
				earpoint._y = (_root.earring - 1) * 25 - 5;
				destx = dollsize;
				desty = dollsize;
				diffx = destx - doll._xscale;
				diffy = desty - doll._yscale;
				doll._xscale += diffx * 0.12;
				doll._yscale += diffy * 0.12;
				dest_x = x_x;
				dest_y = y_y;
				diff_x = dest_x - doll._x;
				diff_y = dest_y - doll._y;
				doll._x += diff_x * 0.12;
				doll._y += diff_y * 0.12;
				if (_root.eyepatch == 2) {
					b4.onoff.gotoAndStop(1);
				} else {
					b4.onoff.gotoAndStop(2);
				}
			};
			eyeReset = function () {
				_root.updatez();
			};
			eyeResetColor = function () {
				_root.eye1tintrb = 0;
				_root.eye1tintgb = 0;
				_root.eye1tintbb = 0;
				_root.eye2tintrb = 0;
				_root.eye2tintgb = 0;
				_root.eye2tintbb = 0;
				b1.eyeboth_rb.dragger._x = 0;
				b1.eyeboth_gb.dragger._x = 0;
				b1.eyeboth_bb.dragger._x = 0;
				_root.updatez();
			};
			earReset = function () {
				_root.eartintrb = 0;
				_root.eartintgb = 0;
				_root.eartintbb = 0;
				b4.ear_rb.dragger._x = 0;
				b4.ear_gb.dragger._x = 0;
				b4.ear_bb.dragger._x = 0;
				_root.updatez();
			};
			eyepatchReset = function () {
				_root.patchtintrb = 0;
				_root.patchtintgb = 0;
				_root.patchtintbb = 0;
				b3.eyepatch_rb.dragger._x = 0;
				b3.eyepatch_gb.dragger._x = 0;
				b3.eyepatch_bb.dragger._x = 0;
				_root.updatez();
			};
		}
		frame 4 {
			dollsize = 500;
			x_x = 600;
			y_y = 650;
			onEnterFrame = function () {
				skinpoint._y = (_root.skinz - 1) * 25 - 165;
				scarpoint._y = (_root.scar - 1) * 25 - 165;
				nosepoint._y = (_root.nosez - 1) * 25 + 40;
				if (_root.freckles == 1) {
					b4.onoff1.gotoAndStop(2);
				} else {
					b4.onoff1.gotoAndStop(1);
				}
				destx = dollsize;
				desty = dollsize;
				diffx = destx - doll._xscale;
				diffy = desty - doll._yscale;
				doll._xscale += diffx * 0.12;
				doll._yscale += diffy * 0.12;
				dest_x = x_x;
				dest_y = y_y;
				diff_x = dest_x - doll._x;
				diff_y = dest_y - doll._y;
				doll._x += diff_x * 0.12;
				doll._y += diff_y * 0.12;
			};
			skinReset = function () {
				_root.skintintrb = 0;
				_root.skintintgb = 0;
				_root.skintintbb = 0;
				b1.skin_rb.dragger._x = 0;
				b1.skin_gb.dragger._x = 0;
				b1.skin_bb.dragger._x = 0;
				_root.updatez();
			};
		}
		frame 5 {
			dollsize = 250;
			x_x = 450;
			y_y = 200;
			onEnterFrame = function () {
				jacketpoint._y = (_root.jacket - 1) * 25 - 165;
				necklacepoint._y = (_root.necklace - 1) * 25 + 95;
				if (_root.capeon == true or _root.cape_addon > 1) {
					capepoint._y = (_root.capecolor - 1) * 25 - 165;
				} else {
					capepoint._y = -290;
				}
				capezpoint._y = (_root.cape_addon - 1) * 25 + 105;
				if (_root.extrabelt == true) {
					b1.onoff1.gotoAndStop(1);
				} else {
					b1.onoff1.gotoAndStop(2);
				}
				if (_root.barechest == true) {
					b1.onoff2.gotoAndStop(1);
				} else {
					b1.onoff2.gotoAndStop(2);
				}
				if (_root.capeon == true) {
					b3.onoff2.gotoAndStop(1);
				} else {
					b3.onoff2.gotoAndStop(2);
				}
				destx = dollsize;
				desty = dollsize;
				diffx = destx - doll._xscale;
				diffy = desty - doll._yscale;
				doll._xscale += diffx * 0.12;
				doll._yscale += diffy * 0.12;
				dest_x = x_x;
				dest_y = y_y;
				diff_x = dest_x - doll._x;
				diff_y = dest_y - doll._y;
				doll._x += diff_x * 0.12;
				doll._y += diff_y * 0.12;
			};
			jacketReset = function () {
				_root.jackettintrb = 0;
				_root.jackettintgb = 0;
				_root.jackettintbb = 0;
				b1.jacket_rb.dragger._x = 0;
				b1.jacket_gb.dragger._x = 0;
				b1.jacket_bb.dragger._x = 0;
				_root.updatez();
			};
			capeReset = function () {
				_root.capetintrb = 0;
				_root.capetintgb = 0;
				_root.capetintbb = 0;
				b3.cape_rb.dragger._x = 0;
				b3.cape_gb.dragger._x = 0;
				b3.cape_bb.dragger._x = 0;
				_root.updatez();
			};
			necklaceReset = function () {
				_root.necklacetintrb = 0;
				_root.necklacetintgb = 0;
				_root.necklacetintbb = 0;
				b2.necklace_rb.dragger._x = 0;
				b2.necklace_gb.dragger._x = 0;
				b2.necklace_bb.dragger._x = 0;
				_root.updatez();
			};
		}
		frame 6 {
			dollsize = 250;
			x_x = 450;
			y_y = 200;
			onEnterFrame = function () {
				if (_root.barechest == true) {
					b1.onoff1.gotoAndStop(1);
				} else {
					b1.onoff1.gotoAndStop(2);
				}
				shirtpoint._y = (_root.arms - 1) * 25 - 165;
				gauntletpoint._y = (_root.gauntlet - 1) * 25 + 75;
				glove1point._y = (_root.glove1 - 1) * 25 - 165;
				glove2point._y = (_root.glove2 - 1) * 25 + 25;
				destx = dollsize;
				desty = dollsize;
				diffx = destx - doll._xscale;
				diffy = desty - doll._yscale;
				doll._xscale += diffx * 0.12;
				doll._yscale += diffy * 0.12;
				dest_x = x_x;
				dest_y = y_y;
				diff_x = dest_x - doll._x;
				diff_y = dest_y - doll._y;
				doll._x += diff_x * 0.12;
				doll._y += diff_y * 0.12;
			};
			shirtReset = function () {
				_root.armtintrb = 0;
				_root.armtintgb = 0;
				_root.armtintbb = 0;
				b1.arms_rb.dragger._x = 0;
				b1.arms_gb.dragger._x = 0;
				b1.arms_bb.dragger._x = 0;
				_root.updatez();
			};
			gauntletReset = function () {
				_root.gauntlettintrb = 0;
				_root.gauntlettintgb = 0;
				_root.gauntlettintbb = 0;
				b2.gauntlet_rb.dragger._x = 0;
				b2.gauntlet_gb.dragger._x = 0;
				b2.gauntlet_bb.dragger._x = 0;
				_root.updatez();
			};
			glove1Reset = function () {
				_root.glove1tintrb = 0;
				_root.glove1tintgb = 0;
				_root.glove1tintbb = 0;
				b3.glove1_rb.dragger._x = 0;
				b3.glove1_gb.dragger._x = 0;
				b3.glove1_bb.dragger._x = 0;
				_root.updatez();
			};
			glove2Reset = function () {
				_root.glove2tintrb = 0;
				_root.glove2tintgb = 0;
				_root.glove2tintbb = 0;
				b4.glove2_rb.dragger._x = 0;
				b4.glove2_gb.dragger._x = 0;
				b4.glove2_bb.dragger._x = 0;
				_root.updatez();
			};
		}
		frame 7 {
			dollsize = 250;
			x_x = 470;
			y_y = 0;
			onEnterFrame = function () {
				pantpoint._y = (_root.pants - 1) * 25 - 165;
				pouchpoint._y = (_root.pouches - 1) * 25 + 45;
				beltpoint._y = (_root.belt - 1) * 25 - 165;
				shoepoint._y = (_root.shoes - 1) * 25 + 15;
				destx = dollsize;
				desty = dollsize;
				diffx = destx - doll._xscale;
				diffy = desty - doll._yscale;
				doll._xscale += diffx * 0.12;
				doll._yscale += diffy * 0.12;
				dest_x = x_x;
				dest_y = y_y;
				diff_x = dest_x - doll._x;
				diff_y = dest_y - doll._y;
				doll._x += diff_x * 0.12;
				doll._y += diff_y * 0.12;
			};
			pantsReset = function () {
				_root.panttintrb = 0;
				_root.panttintgb = 0;
				_root.panttintbb = 0;
				b1.pants_rb.dragger._x = 0;
				b1.pants_gb.dragger._x = 0;
				b1.pants_bb.dragger._x = 0;
				_root.updatez();
			};
			pouchReset = function () {
				_root.pouchtintrb = 0;
				_root.pouchtintgb = 0;
				_root.pouchtintbb = 0;
				b2.pouch_rb.dragger._x = 0;
				b2.pouch_gb.dragger._x = 0;
				b2.pouch_bb.dragger._x = 0;
				_root.updatez();
			};
			beltReset = function () {
				_root.belttintrb = 0;
				_root.belttintgb = 0;
				_root.belttintbb = 0;
				b3.belt_rb.dragger._x = 0;
				b3.belt_gb.dragger._x = 0;
				b3.belt_bb.dragger._x = 0;
				_root.updatez();
			};
			shoesReset = function () {
				_root.shoetintrb = 0;
				_root.shoetintgb = 0;
				_root.shoetintbb = 0;
				b4.shoes_rb.dragger._x = 0;
				b4.shoes_gb.dragger._x = 0;
				b4.shoes_bb.dragger._x = 0;
				_root.updatez();
			};
		}
		frame 8 {
			dollsize = 500;
			x_x = 600;
			y_y = 650;
			onEnterFrame = function () {
				tattoopoint._y = (_root.tattoo - 1) * 25 - 165;
				maskpoint._y = (_root.maskz - 1) * 25 - 165;
				destx = dollsize;
				desty = dollsize;
				diffx = destx - doll._xscale;
				diffy = desty - doll._yscale;
				doll._xscale += diffx * 0.12;
				doll._yscale += diffy * 0.12;
				dest_x = x_x;
				dest_y = y_y;
				diff_x = dest_x - doll._x;
				diff_y = dest_y - doll._y;
				doll._x += diff_x * 0.12;
				doll._y += diff_y * 0.12;
			};
			tattooReset = function () {
				_root.tattootintrb = 0;
				_root.tattootintgb = 0;
				_root.tattootintbb = 0;
				b1.tattoo_rb.dragger._x = 0;
				b1.tattoo_gb.dragger._x = 0;
				b1.tattoo_bb.dragger._x = 0;
				_root.updatez();
			};
			maskReset = function () {
				_root.masktintrb = 0;
				_root.masktintgb = 0;
				_root.masktintbb = 0;
				b2.mask_rb.dragger._x = 0;
				b2.mask_gb.dragger._x = 0;
				b2.mask_bb.dragger._x = 0;
				_root.updatez();
			};
		}
		frame 9 {
			dollsize = 800;
			x_x = 780;
			y_y = 1050;
			menu.adv._visible = true;
			onEnterFrame = function () {
				eye1point._y = (_root.eyetype1 - 1) * 25 - 165;
				eye2point._y = (_root.eyetype2 - 1) * 25 - 165;
				eyewhite1point._y = (_root.eyewhite1 - 1) * 25 + 150;
				eyewhite2point._y = (_root.eyewhite2 - 1) * 25 + 150;
				destx = dollsize;
				desty = dollsize;
				diffx = destx - doll._xscale;
				diffy = desty - doll._yscale;
				doll._xscale += diffx * 0.12;
				doll._yscale += diffy * 0.12;
				dest_x = x_x;
				dest_y = y_y;
				diff_x = dest_x - doll._x;
				diff_y = dest_y - doll._y;
				doll._x += diff_x * 0.12;
				doll._y += diff_y * 0.12;
				if (_root.eyepatch == 2) {
					b4.onoff.gotoAndStop(1);
				} else {
					b4.onoff.gotoAndStop(2);
				}
			};
			eye1Reset = function () {
				b1.eye1_rb.dragger._x = 0;
				b1.eye1_gb.dragger._x = 0;
				b1.eye1_bb.dragger._x = 0;
				_root.updatez();
			};
			eye1ResetColor = function () {
				_root.eye1tintrb = 0;
				_root.eye1tintgb = 0;
				_root.eye1tintbb = 0;
				b1.eye1_rb.dragger._x = 0;
				b1.eye1_gb.dragger._x = 0;
				b1.eye1_bb.dragger._x = 0;
				_root.updatez();
			};
			eye2Reset = function () {
				b3.eye2_rb.dragger._x = 0;
				b3.eye2_gb.dragger._x = 0;
				b3.eye2_bb.dragger._x = 0;
				_root.updatez();
			};
			eye2ResetColor = function () {
				_root.eye2tintrb = 0;
				_root.eye2tintgb = 0;
				_root.eye2tintbb = 0;
				b3.eye2_rb.dragger._x = 0;
				b3.eye2_gb.dragger._x = 0;
				b3.eye2_bb.dragger._x = 0;
				_root.updatez();
			};
		}
	}
	movieClip 3726	{
		frame 30 {
			stop();
		}
	}
	button 3729 {
		on (release) {
			_root.presetz = 0;
			gotoAndStop(1);
		}
	}
	button 3730 {
		on (release) {
			if (_root.presetz == 0) {
				_root.randomizeOutfit();
				_root.updatez();
			} else {
				if (_root.presetz == 1) {
					_root.doPKnight();
				} else {
					if (_root.presetz == 2) {
						_root.doPBarbarian();
					} else {
						if (_root.presetz == 3) {
							_root.doPWarrior();
						} else {
							if (_root.presetz == 4) {
								_root.doPFarmer();
							} else {
								if (_root.presetz == 5) {
									_root.doPMage();
								} else {
									if (_root.presetz == 6) {
										_root.doPDruid();
									} else {
										if (_root.presetz == 7) {
											_root.doPThief();
										} else {
											if (_root.presetz == 8) {
												_root.doPDefault();
											}
										}
									}
								}
							}
						}
					}
				}
			}
			_root.presetz = 0;
			gotoAndStop(1);
		}
	}
	movieClip 3731	{
		frame 1 {
			stop();
		}
	}
	frame 147 {
		if (story >= 210 && story <= 221) {
			gotoAndPlay('GameScene');
		} else {
			if (story == 260) {
				gotoAndPlay('GameSceneX');
			} else {
				stop();
			}
		}
		shop_MC.gotoAndStop(shopframe);
		if (areaname == 'Bavelock City') {
			BavelockFunction();
		} else {
			if (areaname == 'Savina City') {
				SavinaFunction();
			}
		}
		Goto = function () {
			if (black._currentframe < 17) {
				black.gotoAndPlay(2);
			}
			Mouse.show();
			Scenez.caleb._visible = false;
			Scenez.caleb2._visible = false;
			Scenez.darcon._visible = false;
			Scenez.playerP1._x = playerX;
			Scenez.playerP1._y = playerY;
			Scenez.playerP2._x = playerX;
			Scenez.playerP2._y = playerY;
			if (playerZ == 1) {
				player = Scenez.playerP1;
				Scenez.playerP1._visible = true;
				Scenez.playerP2._visible = false;
			} else {
				if (playerZ == 2) {
					player = Scenez.playerP2;
					Scenez.playerP1._visible = false;
					Scenez.playerP2._visible = true;
				}
			}
			directions1 = 1;
			directions2 = 1;
			directions3 = 1;
			walking1X = false;
			walking2X = false;
			walking3X = false;
			walking1chars = undefined;
			walking2chars = undefined;
			walking3chars = undefined;
			doStopWalking();
			_quality = gamequality;
			cangoright = true;
			cangoleft = true;
			cangoup = true;
			cangodown = true;
			cinematic = false;
			training = false;
			schoice = 1;
			numr = 0;
			inventoryplay = false;
			forward = false;
			notstopwalking = false;
			itempickup = false;
			loopz = false;
			shopX = false;
			endz = false;
			walkingX = false;
			dialog = 1;
			countertext = 0;
			foundgold = 0;
			cam._x = playerX + 8;
			cam._y = playerY + 30;
			cam._width = 390;
			cam._height = 229;
			pause_MC._x = playerX - 35;
			pause_MC._y = playerY + 20;
			medal_MC._x = playerX - 220;
			medal_MC._y = playerY - 40;
			inventory_MC._x = playerX - 110;
			inventory_MC._y = playerY + 95;
			options_MC._x = playerX - 90;
			options_MC._y = playerY - 35;
			shop_MC._y = playerX - 120;
			shop_MC._y = playerY - 50;
			text_MC._x = playerX - 56;
			text_MC._y = playerY - 65;
			setTimeout(doMusic, 100);
			if (delay > 0) {
				musicvol.gotoAndPlay(2);
			} else {
				globalvolume.setVolume(volumez);
			}
			coremagic1mana = Math.round(1 + coremagicdamage / 3) * 4;
		};
		afterBlack = function () {
			if (unlockCharm == true) {
				if (medalcharm == false) {
					medalcharm = true;
					medaltext = 'Lucky Charm';
					gotwarpaint = 2;
					customitem = 'War Paint tattoo';
					doAddmedal();
					API.unlockMedal('Lucky Charm');
				}
				unlockCharm = false;
			}
			if (unlockCharms == true) {
				if (medalcharms == false) {
					medalcharms = true;
					medaltext = 'Lucky Charms';
					gotgrayskin = 2;
					customitem = 'Gray skin';
					doAddmedal();
					API.unlockMedal('Lucky Charms');
				}
				unlockCharms = false;
			}
			if (unlockRookie == true) {
				if (medalrookie == false) {
					medalrookie = true;
					medaltext = 'Rookie';
					gotbandana = 2;
					gotbloodshoteyes = 2;
					customitem = 'Bandana and the Bloodshot eyes';
					doAddmedal();
					API.unlockMedal('Rookie');
				}
				unlockRookie = false;
			}
			if (unlockVeteran == true) {
				if (medalveteran == false) {
					medalveteran = true;
					medaltext = 'Veteran';
					gotfedorahat = 2;
					gotundeadeyes = 2;
					customitem = 'Fedora Hat and the Undead eyes';
					doAddmedal();
					API.unlockMedal('Veteran');
				}
				unlockVeteran = false;
			}
			if (unlockLegend == true) {
				if (medallegend == false) {
					medallegend = true;
					medaltext = 'Legend';
					gottophat = 2;
					gotdemoneyes = 2;
					customitem = 'Top Hat and the Demon eyes';
					doAddmedal();
					API.unlockMedal('Legend');
				}
				unlockLegend = false;
			}
			if (unlockFlawless == true) {
				if (medalflawless == false) {
					medalflawless = true;
					medaltext = 'Flawlessly';
					gotmask3 = 2;
					customitem = 'Devil mask';
					doAddmedal();
					API.unlockMedal('Flawlessly');
				}
				unlockFlawless = false;
			}
			if (challenge_finished == true) {
				challenge_finished = false;
				if (win_challenge == true) {
					win_challenge = false;
					dialog = 3;
					page1 = 'Luvannon: Bravo! I never thought I would meet anyone who could win the challenge, most impressive! I have a great reward for such a champion like you!';
					page2 = 'Luvannon: Behold, the Twin Serpent Blade! It is now yours, use it well.';
					doStartText();
					num = 4;
					addingSword();
					corehealth = coremaxhealth;
					coremana = coremaxmana;
					calebhealth = calebmaxhealth;
					calebmana = calebmaxmana;
					if (medaljuggernaught == false) {
						medaljuggernaught = true;
						medaltext = 'Juggernaught';
						goteyebleed = 2;
						goteyeshadow = 2;
						customitem = 'Eye Shadow';
						doAddmedal();
						API.unlockMedal('Juggernaught');
					}
				} else {
					dialog = 3;
					page1 = 'Luvannon: You gave up?';
					page2 = 'Luvannon: This is not what I expected.';
					doStartText();
					corehealth = coremaxhealth;
					coremana = coremaxmana;
					calebhealth = calebmaxhealth;
					calebmana = calebmaxmana;
				}
			} else {
				if (summon_finished == true) {
					summon_finished = false;
					if (story != 90) {
						chance = random(5) + 1;
						if (chance == 1) {
							page1 = 'Luvannon: Impressive. Your wounds are now healed.';
						} else {
							if (chance == 2) {
								page1 = 'Luvannon: Watching you fight is quite entertaining. Your wounds are now healed.';
							} else {
								if (chance == 3) {
									page1 = 'Luvannon: You killed it! I remain impressed. Your wounds are now healed.';
								} else {
									if (chance == 4) {
										page1 = 'Luvannon: A fight worthy of a song! Come again if you want another fight. Your wounds are now healed.';
									} else {
										if (chance == 5) {
											page1 = 'Luvannon: It is dead! Come back again if you want another fight. Your wounds are now healed.';
										}
									}
								}
							}
						}
						if (luvannonchat == 1) {
							page2 = 'Luvannon: By the way, if you are interested in making a little bit of money, I am searching for rarer creatures to summon. If you find a rare creature, please bring back a small sample of it and I will pay you a small fee.';
							luvannonchat = 2;
							Scenez.playerP1.gotoAndStop(10);
							Scenez.playerP2.gotoAndStop(10);
						} else {
							if (luvannonchat == 2) {
								page2 = 'Luvannon: Are you still interested in making a little bit of money? I am still searching for rare creatures to summon. If you find a rare creature, bring back a small sample of it and I will pay you a small fee.';
								Scenez.playerP1.gotoAndStop(10);
								Scenez.playerP2.gotoAndStop(10);
								luvannonchat = 3;
							}
						}
						doStartText();
						dialog = 3;
					}
					corehealth = coremaxhealth;
					coremana = coremaxmana;
					calebhealth = calebmaxhealth;
					calebmana = calebmaxmana;
				}
			}
			if (story == 90) {
				page1 = 'Argas: I will admit that you\'re a natural born fighter. There is a lot use for someone like you in Bavelock.';
				page2 = 'Argas: Come back any time to practice and improve your stats!';
				doStartText();
				story = 91;
				mainquest = 'I have met Argas and learned some combat tricks. I will explore Bavelock and see if I can help some of the people in the city.';
			}
			if (questdeadman == 4) {
				page1 = 'Roy: I hope that... thing will never harm anyone again.';
				doStartText();
				questdeadman = 5;
				delquest = questdeadmanX;
				delJournal();
				questdeadmanX = -1;
			}
			if (questwolf == 3) {
				page1 = 'Roy: I now have a wolf skin! I should give it to Arl in Bavelock.';
				doStartText();
				questwolf = 4;
				this['obj' + questwolfX] = 'I have a wolf skin! I should give it to Arl in Bavelock.';
			}
			if (questbag == 3) {
				page1 = 'Roy: I now have Mithrel\'s stolen bag of supplies, I should give it back to him in Bavelock.';
				doStartText();
				questbag = 4;
				this['obj' + questbagX] = 'I have Mithrel\'s stolen bag of supplies, I should give it back to him in Bavelock.';
			}
			if (questspitter == 3) {
				page1 = 'Roy: I now have the Spitter poison for Vemus in Savina, I should go bring it to him!';
				doStartText();
				questspitter = 4;
				this['obj' + questspitterX] = 'I now have the Spitter poison for Ive in Savina.';
			}
			if (questgornak == 3) {
				page1 = 'Roy: I have the Gornak head for Laus in the underground passage, I should go bring it to him!';
				doStartText();
				questgornak = 4;
				this['obj' + questsgornakX] = 'I now have the Gornak head for Laus in the underground passage.';
			}
			if (questboar == 3) {
				page1 = 'Roy: I now have boar meat for Halvarth in Bavelock, I should go bring it to him.';
				doStartText();
				questboar = 4;
				this['obj' + questbagX] = 'I now have boar meat for Halvarth in Bavelock.';
			}
			if (questthanator == 3) {
				page1 = 'Roy: I now have the Thanator tooth for Morgan in Savina!';
				doStartText();
				questthanator = 4;
				this['obj' + questthanatorX] = 'I now have the Thanator tooth for Morgan in Savina!';
			}
			if (questbrock == 6) {
				questbrock = 7;
				this['obj' + questbrockX] = 'Argas wants me to talk to the summoner.';
				page1 = 'Argas: I want to see the sword in true battle. Talk to the summoner and see if he can oblige you with a real challenge.';
				doStartText();
			}
			if (questbrock == 8) {
				questbrock = 9;
				this['obj' + questbrockX] = 'I can tell Brock that his sword has Argas\'s approval.';
				page1 = 'Argas: Impressive! You can tell Brock that his sword has my approval.';
				doStartText();
				summon = false;
				challenge = false;
			}
			if (questkidnap == 4) {
				questkidnap = 5;
				this['obj' + questkidnapX] = 'I have found Amalgus, Penelope\'s boy who was kidnapped.';
				page1 = 'Roy: Come, Amalgus. It\'s time to bring you home.';
				page2 = 'Amalgus: I want to see my mother!';
				doStartText();
			}
			if (areaname == 'World Map') {
				if (story == 62) {
					page1 = 'Roy: What business do you have in Bavelock, Caleb?';
					page2 = 'Caleb: I am traveling merchant, I have some potions I want to sell to a regular customer in the city. I occasionally teach the art of magic to the people who has the desire and the coin to pay for it.';
					story = 63;
					doStartText();
				}
				if (story == 60) {
					page1 = 'Caleb: Head southwest, follow the road to get to Bavelock.';
					page2 = 'Roy: Is it far?';
					page3 = 'Caleb: It should not take long to get there.';
					story = 61;
					doStartText();
				}
				if (story == 221) {
					page1 = 'Roy: I hated every minute of that...';
					page2 = 'Caleb: Calm down. We have to find out what these crystals are.';
					page3 = 'Roy: Are you certain we should even keep these? Every time we get one we get close to dying!';
					page4 = 'Caleb: Yes they are too valuable. But I am not sure what they are, we must know.\rBavelock has the biggest library in Andora. We should head back there and see if the library have any answers about these, and Dion and the Golden Demon.';
					story = 230;
					doStartText();
				}
				if (story == 350) {
					page1 = 'Roy: Finally out! Now we must head west to the Mogwai mountains.';
					story = 360;
					doStartText();
				}
				if (story == 351) {
					page1 = 'Caleb: This is the wrong way to Mogwai Mountain! Go back, there was another ladder out the other way.';
					story = 360;
					doStartText();
				}
			}
		};
		doSpeed = function () {
			if (areaname != 'World Map') {
				speed = normalspeed;
			} else {
				speed = mapspeed;
			}
		};
		windrate = 0;
		winddirectionX = 0;
		winddirectionY = 0;
		onEnterFrame = function () {
			if (black._currentframe > 1) {
				black.play();
			}
			if (areaname == 'Bavelock City') {
				BavelockFunction();
			} else {
				if (areaname == 'Savina City') {
					SavinaFunction();
				}
			}
			++windrate;
			if (windrate == 40) {
				winddirectionX = random(4);
				winddirectionY = random(5) - 5;
				windrate = 0;
			}
			if (Key.isDown(27)) {
				if (options_MC._currentframe == 1 && optionsX == false) {
					options_MC.gotoAndStop(2);
					shop_MC._visible = false;
					pause_MC._y -= 70;
				} else {
					if (options_MC._currentframe == 2 && optionsX == false) {
						options_MC.gotoAndStop(1);
						shop_MC._visible = true;
						pause_MC._y += 70;
					}
				}
				optionsX = true;
			} else {
				optionsX = false;
			}
			if (Key.isDown(49)) {
				if (oneX == false) {
					oneX = true;
					if (concoct_MC._currentframe == 40) {
						if (shroom1 > 0 && numing < 3) {
							if (ing1 == 0) {
								ing1 = 1;
							} else {
								if (ing2 == 0) {
									ing2 = 1;
								} else {
									if (ing3 == 0) {
										ing3 = 1;
									}
								}
							}
							++numing;
							--shroom1;
							if (sfxmute == false) {
								sound1.attachSound('grasspick');
								sound1.start();
							}
						}
					}
					if (shop_MC._currentframe == 2) {
						if (gold >= 20) {
							num = 1;
							addPotion();
							goldnum = 20;
							removingGold();
							if (sfxmute == false) {
								item.start();
							}
						} else {
							if (sfxmute == false) {
								error.start();
							}
						}
					} else {
						if (shop_MC._currentframe == 3) {
							if (gold >= 12 && housewardrobe == false) {
								housewardrobe = true;
								goldnum = 12;
								removingGold();
								shop_MC.shelfz.gotoAndStop(2);
								Scenez.b1.shelf._y = 511;
								if (sfxmute == false) {
									item.start();
								}
								housegrade3();
							} else {
								if (sfxmute == false) {
									error.start();
								}
							}
						} else {
							if (shop_MC._currentframe == 4) {
								if (menucolor != 1) {
									menucolor = 1;
								} else {
									if (sfxmute == false) {
										error.start();
									}
								}
							} else {
								if (shop_MC._currentframe == 5) {
									if (potion >= 1) {
										--potion;
										goldnum = 10;
										addingGold();
										if (sfxmute == false) {
											item.start();
										}
									} else {
										if (sfxmute == false) {
											error.start();
										}
									}
								} else {
									if (shop_MC._currentframe == 6) {
										if (potion >= 1) {
											--potion;
											goldnum = 15;
											addingGold();
											if (sfxmute == false) {
												item.start();
											}
										} else {
											if (sfxmute == false) {
												error.start();
											}
										}
									} else {
										if (shop_MC._currentframe == 7) {
											if (gold >= 20 && corestrength < 99) {
												goldnum = 20;
												removingGold();
												num = 2;
												addingStrengthCore();
												if (sfxmute == false) {
													item.start();
												}
											} else {
												if (sfxmute == false) {
													error.start();
												}
											}
										} else {
											if (shop_MC._currentframe == 8) {
												if (gold >= 1) {
													goldnum = 1;
													removingGold();
													schoice = 1;
													summon = true;
													doEnterBattle();
												} else {
													if (sfxmute == false) {
														error.start();
													}
												}
											} else {
												if (shop_MC._currentframe == 9) {
													if (gold >= 5 && firstghoul == true) {
														goldnum = 5;
														removingGold();
														schoice = 10;
														summon = true;
														doEnterBattle();
													} else {
														if (sfxmute == false) {
															error.start();
														}
													}
												} else {
													if (shop_MC._currentframe == 10) {
														newmusic = 'awX';
														doMusic();
														shop_MC.m2.gotoAndStop(1);
														shop_MC.m3.gotoAndStop(1);
														shop_MC.m4.gotoAndStop(1);
														shop_MC.m5.gotoAndStop(1);
														shop_MC.m6.gotoAndStop(1);
														if (shop_MC.m1._currentframe == 1) {
															shop_MC.m1.gotoAndPlay(2);
														}
													} else {
														if (shop_MC._currentframe == 11) {
															if (shroom1 >= 1) {
																--shroom1;
																goldnum = 2;
																addingGold();
																if (sfxmute == false) {
																	item.start();
																}
															} else {
																if (sfxmute == false) {
																	error.start();
																}
															}
														} else {
															if (shop_MC._currentframe == 12) {
																if (gold >= 25) {
																	++shroom1;
																	goldnum = 10;
																	removingGold();
																	if (sfxmute == false) {
																		item.start();
																	}
																} else {
																	if (sfxmute == false) {
																		error.start();
																	}
																}
															} else {
																if (shop_MC._currentframe == 13) {
																	if (shroom1 >= 1) {
																		--shroom1;
																		goldnum = 5;
																		addingGold();
																		if (sfxmute == false) {
																			item.start();
																		}
																	} else {
																		if (sfxmute == false) {
																			error.start();
																		}
																	}
																} else {
																	if (shop_MC._currentframe == 14) {
																		if (gold >= 20 && calebstrength < 99) {
																			goldnum = 20;
																			removingGold();
																			num = 2;
																			addingStrengthCaleb();
																			if (sfxmute == false) {
																				item.start();
																			}
																		} else {
																			if (sfxmute == false) {
																				error.start();
																			}
																		}
																	} else {
																		if (shop_MC._currentframe == 16) {
																			if (questbrock != 9) {
																				if (gold >= 25 && eval('sword' + sword + 'f') != 1) {
																					goldnum = 25;
																					removingGold();
																					this['sword' + sword + 'f'] = 1;
																					if (sfxmute == false) {
																						sound1.attachSound('anvil');
																						sound1.start();
																					}
																				} else {
																					if (sfxmute == false) {
																						error.start();
																					}
																				}
																			} else {
																				questbrock = 10;
																				this['sword' + sword + 'f'] = 3;
																				notwalk = false;
																				shop_MC.gotoAndStop(1);
																				if (sfxmute == false) {
																					sound1.attachSound('anvil');
																					sound1.start();
																				}
																			}
																		} else {
																			if (shop_MC._currentframe == 17) {
																				if (directions != 1) {
																					directions = 1;
																				} else {
																					directions = 0;
																				}
																				notwalk = false;
																				shop_MC.gotoAndStop(1);
																			} else {
																				if (shop_MC._currentframe == 18) {
																					if (directions != 7) {
																						directions = 7;
																					} else {
																						directions = 0;
																					}
																					notwalk = false;
																					shop_MC.gotoAndStop(1);
																				} else {
																					if (shop_MC._currentframe == 19) {
																						namecolor = 15925120;
																						doChangenamecolor();
																					} else {
																						if (shop_MC._currentframe == 20) {
																							rewardcolor = 8978418;
																							doChangerewardcolor();
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
					if (gambling_MC._currentframe > 1 && gambling_MC.moves == gambling_MC.totalmoves) {
						gambling_MC.moves = gambling_MC.totalmoves + 1;
						gambling_MC.cup1.gotoAndPlay(2);
					}
				}
			} else {
				oneX = false;
			}
			if (Key.isDown(50)) {
				if (twoX == false) {
					twoX = true;
					if (concoct_MC._currentframe == 40) {
						if (shroom2 > 0 && numing < 3) {
							if (ing1 == 0) {
								ing1 = 2;
							} else {
								if (ing2 == 0) {
									ing2 = 2;
								} else {
									if (ing3 == 0) {
										ing3 = 2;
									}
								}
							}
							++numing;
							--shroom2;
							if (sfxmute == false) {
								sound1.attachSound('grasspick');
								sound1.start();
							}
						}
					}
					if (shop_MC._currentframe == 2) {
						if (gold >= 20) {
							num = 1;
							addElixir();
							goldnum = 20;
							removingGold();
							if (sfxmute == false) {
								item.start();
							}
						} else {
							if (sfxmute == false) {
								error.start();
							}
						}
					} else {
						if (shop_MC._currentframe == 3) {
							if (gold >= 10 && housepainting == false) {
								housepainting = true;
								goldnum = 10;
								removingGold();
								shop_MC.paintingz.gotoAndStop(2);
								if (sfxmute == false) {
									item.start();
								}
								housegrade3();
							} else {
								if (sfxmute == false) {
									error.start();
								}
							}
						} else {
							if (shop_MC._currentframe == 4) {
								if (menucolor != 2) {
									menucolor = 2;
								} else {
									if (sfxmute == false) {
										error.start();
									}
								}
							} else {
								if (shop_MC._currentframe == 5) {
									if (elixir >= 1) {
										--elixir;
										goldnum = 15;
										addingGold();
										if (sfxmute == false) {
											item.start();
										}
									} else {
										if (sfxmute == false) {
											error.start();
										}
									}
								} else {
									if (shop_MC._currentframe == 6) {
										if (elixir >= 1) {
											--elixir;
											goldnum = 20;
											addingGold();
											if (sfxmute == false) {
												item.start();
											}
										} else {
											if (sfxmute == false) {
												error.start();
											}
										}
									} else {
										if (shop_MC._currentframe == 7) {
											if (gold >= 20 && coredefense < 99) {
												goldnum = 20;
												removingGold();
												num = 2;
												addingDefenseCore();
												if (sfxmute == false) {
													item.start();
												}
											} else {
												if (sfxmute == false) {
													error.start();
												}
											}
										} else {
											if (shop_MC._currentframe == 8) {
												if (gold >= 1) {
													goldnum = 1;
													removingGold();
													schoice = 2;
													summon = true;
													doEnterBattle();
												} else {
													if (sfxmute == false) {
														error.start();
													}
												}
											} else {
												if (shop_MC._currentframe == 9) {
													if (gold >= 5 && firstthanator == true) {
														goldnum = 5;
														removingGold();
														schoice = 7;
														summon = true;
														doEnterBattle();
													} else {
														if (sfxmute == false) {
															error.start();
														}
													}
												} else {
													if (shop_MC._currentframe == 10) {
														newmusic = 'imperial';
														doMusic();
														shop_MC.m1.gotoAndStop(1);
														shop_MC.m3.gotoAndStop(1);
														shop_MC.m4.gotoAndStop(1);
														shop_MC.m5.gotoAndStop(1);
														shop_MC.m6.gotoAndStop(1);
														if (shop_MC.m2._currentframe == 1) {
															shop_MC.m2.gotoAndPlay(2);
														}
													} else {
														if (shop_MC._currentframe == 11) {
															if (shroom2 >= 1) {
																--shroom2;
																goldnum = 2;
																addingGold();
																if (sfxmute == false) {
																	item.start();
																}
															} else {
																if (sfxmute == false) {
																	error.start();
																}
															}
														} else {
															if (shop_MC._currentframe == 12) {
																if (gold >= 25) {
																	++shroom2;
																	goldnum = 10;
																	removingGold();
																	if (sfxmute == false) {
																		item.start();
																	}
																} else {
																	if (sfxmute == false) {
																		error.start();
																	}
																}
															} else {
																if (shop_MC._currentframe == 13) {
																	if (shroom2 >= 1) {
																		--shroom2;
																		goldnum = 5;
																		addingGold();
																		if (sfxmute == false) {
																			item.start();
																		}
																	} else {
																		if (sfxmute == false) {
																			error.start();
																		}
																	}
																} else {
																	if (shop_MC._currentframe == 14) {
																		if (gold >= 20 && calebdefense < 99) {
																			goldnum = 20;
																			removingGold();
																			num = 2;
																			addingDefenseCaleb();
																			if (sfxmute == false) {
																				item.start();
																			}
																		} else {
																			if (sfxmute == false) {
																				error.start();
																			}
																		}
																	} else {
																		if (shop_MC._currentframe == 16) {
																			if (questbrock != 9) {
																				if (gold >= 25 && eval('sword' + sword + 'f') != 2) {
																					goldnum = 25;
																					removingGold();
																					this['sword' + sword + 'f'] = 2;
																					if (sfxmute == false) {
																						sound1.attachSound('anvil');
																						sound1.start();
																					}
																				} else {
																					if (sfxmute == false) {
																						error.start();
																					}
																				}
																			} else {
																				questbrock = 10;
																				this['sword' + sword + 'f'] = 3;
																				notwalk = false;
																				shop_MC.gotoAndStop(1);
																				if (sfxmute == false) {
																					sound1.attachSound('anvil');
																					sound1.start();
																				}
																			}
																		} else {
																			if (shop_MC._currentframe == 17) {
																				if (directions != 2) {
																					directions = 2;
																				} else {
																					directions = 0;
																				}
																				notwalk = false;
																				shop_MC.gotoAndStop(1);
																			} else {
																				if (shop_MC._currentframe == 18) {
																					if (directions != 8) {
																						directions = 8;
																					} else {
																						directions = 0;
																					}
																					notwalk = false;
																					shop_MC.gotoAndStop(1);
																				} else {
																					if (shop_MC._currentframe == 19) {
																						namecolor = 16692404;
																						doChangenamecolor();
																					} else {
																						if (shop_MC._currentframe == 20) {
																							rewardcolor = 16252834;
																							doChangerewardcolor();
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
					if (gambling_MC._currentframe > 1 && gambling_MC.moves == gambling_MC.totalmoves) {
						gambling_MC.moves = gambling_MC.totalmoves + 1;
						gambling_MC.cup2.gotoAndPlay(2);
					}
				}
			} else {
				twoX = false;
			}
			if (Key.isDown(51)) {
				if (threeX == false) {
					threeX = true;
					if (concoct_MC._currentframe == 40) {
						if (shroom3 > 0 && numing < 3) {
							if (ing1 == 0) {
								ing1 = 3;
							} else {
								if (ing2 == 0) {
									ing2 = 3;
								} else {
									if (ing3 == 0) {
										ing3 = 3;
									}
								}
							}
							++numing;
							--shroom3;
							if (sfxmute == false) {
								sound1.attachSound('grasspick');
								sound1.start();
							}
						}
					}
					if (shop_MC._currentframe == 2) {
						if (gold >= 45) {
							num = 1;
							addEther();
							goldnum = 45;
							removingGold();
							if (sfxmute == false) {
								item.start();
							}
						} else {
							if (sfxmute == false) {
								error.start();
							}
						}
					} else {
						if (shop_MC._currentframe == 3) {
							if (gold >= 10 && housecarpet == false) {
								housecarpet = true;
								goldnum = 10;
								removingGold();
								shop_MC.carpetz.gotoAndStop(2);
								if (sfxmute == false) {
									item.start();
								}
								housegrade3();
							} else {
								if (sfxmute == false) {
									error.start();
								}
							}
						} else {
							if (shop_MC._currentframe == 4) {
								if (menucolor != 3) {
									menucolor = 3;
								} else {
									if (sfxmute == false) {
										error.start();
									}
								}
							} else {
								if (shop_MC._currentframe == 5) {
									if (ether >= 1) {
										--ether;
										goldnum = 30;
										addingGold();
										if (sfxmute == false) {
											item.start();
										}
									} else {
										if (sfxmute == false) {
											error.start();
										}
									}
								} else {
									if (shop_MC._currentframe == 6) {
										if (ether >= 1) {
											--ether;
											goldnum = 35;
											addingGold();
											if (sfxmute == false) {
												item.start();
											}
										} else {
											if (sfxmute == false) {
												error.start();
											}
										}
									} else {
										if (shop_MC._currentframe == 7) {
											if (gold >= 20 && coremagicdamage < 99) {
												goldnum = 20;
												removingGold();
												num = 2;
												addingMagicCore();
												if (sfxmute == false) {
													item.start();
												}
											} else {
												if (sfxmute == false) {
													error.start();
												}
											}
										} else {
											if (shop_MC._currentframe == 8) {
												if (gold >= 1) {
													goldnum = 1;
													removingGold();
													schoice = 3;
													summon = true;
													doEnterBattle();
												} else {
													if (sfxmute == false) {
														error.start();
													}
												}
											} else {
												if (shop_MC._currentframe == 9) {
													if (gold >= 5 && firststalker == true) {
														goldnum = 5;
														removingGold();
														schoice = 8;
														summon = true;
														doEnterBattle();
													} else {
														if (sfxmute == false) {
															error.start();
														}
													}
												} else {
													if (shop_MC._currentframe == 10) {
														newmusic = 'woods';
														doMusic();
														shop_MC.m1.gotoAndStop(1);
														shop_MC.m2.gotoAndStop(1);
														shop_MC.m4.gotoAndStop(1);
														shop_MC.m5.gotoAndStop(1);
														shop_MC.m6.gotoAndStop(1);
														if (shop_MC.m3._currentframe == 1) {
															shop_MC.m3.gotoAndPlay(2);
														}
													} else {
														if (shop_MC._currentframe == 11) {
															if (shroom3 >= 1) {
																--shroom3;
																goldnum = 2;
																addingGold();
																if (sfxmute == false) {
																	item.start();
																}
															} else {
																if (sfxmute == false) {
																	error.start();
																}
															}
														} else {
															if (shop_MC._currentframe == 12) {
																if (gold >= 25) {
																	++shroom3;
																	goldnum = 10;
																	removingGold();
																	if (sfxmute == false) {
																		item.start();
																	}
																} else {
																	if (sfxmute == false) {
																		error.start();
																	}
																}
															} else {
																if (shop_MC._currentframe == 13) {
																	if (shroom3 >= 1) {
																		--shroom3;
																		goldnum = 5;
																		addingGold();
																		if (sfxmute == false) {
																			item.start();
																		}
																	} else {
																		if (sfxmute == false) {
																			error.start();
																		}
																	}
																} else {
																	if (shop_MC._currentframe == 14) {
																		if (gold >= 20 && calebmagicdamage < 99) {
																			goldnum = 20;
																			removingGold();
																			num = 2;
																			addingMagicCaleb();
																			if (sfxmute == false) {
																				item.start();
																			}
																		} else {
																			if (sfxmute == false) {
																				error.start();
																			}
																		}
																	} else {
																		if (shop_MC._currentframe == 16) {
																			if (questbrock != 9) {
																				if (gold >= 25 && eval('sword' + sword + 'f') != 3) {
																					goldnum = 25;
																					removingGold();
																					this['sword' + sword + 'f'] = 3;
																					if (sfxmute == false) {
																						sound1.attachSound('anvil');
																						sound1.start();
																					}
																				} else {
																					if (sfxmute == false) {
																						error.start();
																					}
																				}
																			} else {
																				questbrock = 10;
																				this['sword' + sword + 'f'] = 3;
																				notwalk = false;
																				shop_MC.gotoAndStop(1);
																				if (sfxmute == false) {
																					sound1.attachSound('anvil');
																					sound1.start();
																				}
																			}
																		} else {
																			if (shop_MC._currentframe == 17) {
																				if (directions != 3) {
																					directions = 3;
																				} else {
																					directions = 0;
																				}
																				notwalk = false;
																				shop_MC.gotoAndStop(1);
																			} else {
																				if (shop_MC._currentframe == 18) {
																					if (directions != 9) {
																						directions = 9;
																					} else {
																						directions = 0;
																					}
																					notwalk = false;
																					shop_MC.gotoAndStop(1);
																				} else {
																					if (shop_MC._currentframe == 19) {
																						namecolor = 12975532;
																						doChangenamecolor();
																					} else {
																						if (shop_MC._currentframe == 20) {
																							rewardcolor = 16762052;
																							doChangerewardcolor();
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
					if (gambling_MC._currentframe > 1 && gambling_MC.moves == gambling_MC.totalmoves) {
						gambling_MC.moves = gambling_MC.totalmoves + 1;
						gambling_MC.cup3.gotoAndPlay(2);
					}
				}
			} else {
				threeX = false;
			}
			if (Key.isDown(52)) {
				if (fourX == false) {
					fourX = true;
					if (concoct_MC._currentframe == 40) {
						if (shroom4 > 0 && numing < 3) {
							if (ing1 == 0) {
								ing1 = 4;
							} else {
								if (ing2 == 0) {
									ing2 = 4;
								} else {
									if (ing3 == 0) {
										ing3 = 4;
									}
								}
							}
							++numing;
							--shroom4;
							if (sfxmute == false) {
								sound1.attachSound('grasspick');
								sound1.start();
							}
						}
					}
					if (shop_MC._currentframe == 2) {
						if (gold >= 25) {
							num = 1;
							addRemedy();
							goldnum = 25;
							removingGold();
							if (sfxmute == false) {
								item.start();
							}
						} else {
							if (sfxmute == false) {
								error.start();
							}
						}
					} else {
						if (shop_MC._currentframe == 3) {
							if (gold >= 9 && housecandelebra == false) {
								housecandelebra = true;
								goldnum = 9;
								removingGold();
								shop_MC.candelebraz.gotoAndStop(2);
								if (sfxmute == false) {
									item.start();
								}
								housegrade3();
							} else {
								if (sfxmute == false) {
									error.start();
								}
							}
						} else {
							if (shop_MC._currentframe == 4) {
								if (menucolor != 4) {
									menucolor = 4;
								} else {
									if (sfxmute == false) {
										error.start();
									}
								}
							} else {
								if (shop_MC._currentframe == 5) {
									if (remedy >= 1) {
										--remedy;
										goldnum = 20;
										addingGold();
										if (sfxmute == false) {
											item.start();
										}
									} else {
										if (sfxmute == false) {
											error.start();
										}
									}
								} else {
									if (shop_MC._currentframe == 6) {
										if (remedy >= 1) {
											--remedy;
											goldnum = 25;
											addingGold();
											if (sfxmute == false) {
												item.start();
											}
										} else {
											if (sfxmute == false) {
												error.start();
											}
										}
									} else {
										if (shop_MC._currentframe == 7) {
											if (gold >= 20 && coremagicdefense < 99) {
												goldnum = 20;
												removingGold();
												num = 2;
												addingMagicdefenseCore();
												if (sfxmute == false) {
													item.start();
												}
											} else {
												if (sfxmute == false) {
													error.start();
												}
											}
										} else {
											if (shop_MC._currentframe == 8) {
												if (gold >= 1) {
													goldnum = 1;
													removingGold();
													schoice = 4;
													summon = true;
													doEnterBattle();
												} else {
													if (sfxmute == false) {
														error.start();
													}
												}
											} else {
												if (shop_MC._currentframe == 9) {
													if (gold >= 5 && firstcarrion == true) {
														goldnum = 5;
														removingGold();
														schoice = 9;
														summon = true;
														doEnterBattle();
													} else {
														if (sfxmute == false) {
															error.start();
														}
													}
												} else {
													if (shop_MC._currentframe == 10) {
														newmusic = 'savinacity';
														doMusic();
														shop_MC.m1.gotoAndStop(1);
														shop_MC.m2.gotoAndStop(1);
														shop_MC.m3.gotoAndStop(1);
														shop_MC.m5.gotoAndStop(1);
														shop_MC.m6.gotoAndStop(1);
														if (shop_MC.m4._currentframe == 1) {
															shop_MC.m4.gotoAndPlay(2);
														}
													} else {
														if (shop_MC._currentframe == 11) {
															if (shroom4 >= 1) {
																--shroom4;
																goldnum = 4;
																addingGold();
																if (sfxmute == false) {
																	item.start();
																}
															} else {
																if (sfxmute == false) {
																	error.start();
																}
															}
														} else {
															if (shop_MC._currentframe == 12) {
																if (gold >= 10) {
																	++shroom4;
																	goldnum = 10;
																	removingGold();
																	if (sfxmute == false) {
																		item.start();
																	}
																} else {
																	if (sfxmute == false) {
																		error.start();
																	}
																}
															} else {
																if (shop_MC._currentframe == 13) {
																	if (shroom4 >= 1) {
																		--shroom4;
																		goldnum = 7;
																		addingGold();
																		if (sfxmute == false) {
																			item.start();
																		}
																	} else {
																		if (sfxmute == false) {
																			error.start();
																		}
																	}
																} else {
																	if (shop_MC._currentframe == 14) {
																		if (gold >= 20 && calebmagicdefense < 99) {
																			goldnum = 20;
																			removingGold();
																			num = 2;
																			addingMagicdefenseCaleb();
																			if (sfxmute == false) {
																				item.start();
																			}
																		} else {
																			if (sfxmute == false) {
																				error.start();
																			}
																		}
																	} else {
																		if (shop_MC._currentframe == 16) {
																			if (questbrock != 9) {
																				if (gold >= 25 && eval('sword' + sword + 'f') != 4) {
																					goldnum = 25;
																					removingGold();
																					this['sword' + sword + 'f'] = 4;
																					if (sfxmute == false) {
																						sound1.attachSound('anvil');
																						sound1.start();
																					}
																				} else {
																					if (sfxmute == false) {
																						error.start();
																					}
																				}
																			} else {
																				questbrock = 10;
																				this['sword' + sword + 'f'] = 4;
																				notwalk = false;
																				shop_MC.gotoAndStop(1);
																				if (sfxmute == false) {
																					sound1.attachSound('anvil');
																					sound1.start();
																				}
																			}
																		} else {
																			if (shop_MC._currentframe == 17) {
																				if (directions != 4) {
																					directions = 4;
																				} else {
																					directions = 0;
																				}
																				notwalk = false;
																				shop_MC.gotoAndStop(1);
																			} else {
																				if (shop_MC._currentframe == 18) {
																					if (directions != 10) {
																						directions = 10;
																					} else {
																						directions = 0;
																					}
																					notwalk = false;
																					shop_MC.gotoAndStop(1);
																				} else {
																					if (shop_MC._currentframe == 19) {
																						namecolor = 12306943;
																						doChangenamecolor();
																					} else {
																						if (shop_MC._currentframe == 20) {
																							rewardcolor = 12907182;
																							doChangerewardcolor();
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			} else {
				fourX = false;
			}
			if (Key.isDown(53)) {
				if (fiveX == false) {
					fiveX = true;
					if (concoct_MC._currentframe == 40) {
						if (butterfly1 > 0 && numing < 3) {
							if (ing1 == 0) {
								ing1 = 5;
							} else {
								if (ing2 == 0) {
									ing2 = 5;
								} else {
									if (ing3 == 0) {
										ing3 = 5;
									}
								}
							}
							++numing;
							--butterfly1;
							if (sfxmute == false) {
								sound1.attachSound('grasspick');
								sound1.start();
							}
						}
					}
					if (shop_MC._currentframe == 2) {
						if (gold >= 50) {
							num = 1;
							addLimit();
							goldnum = 50;
							removingGold();
							if (sfxmute == false) {
								item.start();
							}
						} else {
							if (sfxmute == false) {
								error.start();
							}
						}
					} else {
						if (shop_MC._currentframe == 3) {
							if (gold >= 3 && housechair == false) {
								housechair = true;
								goldnum = 3;
								removingGold();
								shop_MC.chairz.gotoAndStop(2);
								if (sfxmute == false) {
									item.start();
								}
								housegrade3();
							} else {
								if (sfxmute == false) {
									error.start();
								}
							}
						} else {
							if (shop_MC._currentframe == 4) {
								if (menucolor != 5) {
									menucolor = 5;
								} else {
									if (sfxmute == false) {
										error.start();
									}
								}
							} else {
								if (shop_MC._currentframe == 5) {
									if (limit >= 1) {
										--limit;
										goldnum = 30;
										addingGold();
										if (sfxmute == false) {
											item.start();
										}
									} else {
										if (sfxmute == false) {
											error.start();
										}
									}
								} else {
									if (shop_MC._currentframe == 6) {
										if (limit >= 1) {
											--limit;
											goldnum = 35;
											addingGold();
											if (sfxmute == false) {
												item.start();
											}
										} else {
											if (sfxmute == false) {
												error.start();
											}
										}
									} else {
										if (shop_MC._currentframe == 7) {
											if (gold >= 20 && coreagility < 99) {
												goldnum = 20;
												removingGold();
												num = 2;
												addingAgilityCore();
												if (sfxmute == false) {
													item.start();
												}
											} else {
												if (sfxmute == false) {
													error.start();
												}
											}
										} else {
											if (shop_MC._currentframe == 8) {
												if (gold >= 1) {
													goldnum = 1;
													removingGold();
													schoice = 5;
													summon = true;
													doEnterBattle();
												} else {
													if (sfxmute == false) {
														error.start();
													}
												}
											} else {
												if (shop_MC._currentframe == 10) {
													newmusic = 'plains';
													doMusic();
													shop_MC.m1.gotoAndStop(1);
													shop_MC.m2.gotoAndStop(1);
													shop_MC.m3.gotoAndStop(1);
													shop_MC.m4.gotoAndStop(1);
													shop_MC.m6.gotoAndStop(1);
													if (shop_MC.m5._currentframe == 1) {
														shop_MC.m5.gotoAndPlay(2);
													}
												} else {
													if (shop_MC._currentframe == 11) {
														if (butterfly1 >= 1) {
															--butterfly1;
															goldnum = 10;
															addingGold();
															if (sfxmute == false) {
																item.start();
															}
														} else {
															if (sfxmute == false) {
																error.start();
															}
														}
													} else {
														if (shop_MC._currentframe == 12) {
															if (gold >= 20) {
																++butterfly1;
																goldnum = 20;
																removingGold();
																if (sfxmute == false) {
																	item.start();
																}
															} else {
																if (sfxmute == false) {
																	error.start();
																}
															}
														} else {
															if (shop_MC._currentframe == 13) {
																if (butterfly1 >= 1) {
																	--butterfly1;
																	goldnum = 15;
																	addingGold();
																	if (sfxmute == false) {
																		item.start();
																	}
																} else {
																	if (sfxmute == false) {
																		error.start();
																	}
																}
															} else {
																if (shop_MC._currentframe == 14) {
																	if (gold >= 20 && calebagility < 99) {
																		goldnum = 20;
																		removingGold();
																		num = 2;
																		addingAgilityCaleb();
																		if (sfxmute == false) {
																			item.start();
																		}
																	} else {
																		if (sfxmute == false) {
																			error.start();
																		}
																	}
																} else {
																	if (shop_MC._currentframe == 16) {
																		if (questbrock != 9) {
																			if (gold >= 25 && eval('sword' + sword + 'f') != 5) {
																				goldnum = 25;
																				removingGold();
																				this['sword' + sword + 'f'] = 5;
																				if (sfxmute == false) {
																					sound1.attachSound('anvil');
																					sound1.start();
																				}
																			} else {
																				if (sfxmute == false) {
																					error.start();
																				}
																			}
																		} else {
																			questbrock = 10;
																			this['sword' + sword + 'f'] = 5;
																			notwalk = false;
																			shop_MC.gotoAndStop(1);
																			if (sfxmute == false) {
																				sound1.attachSound('anvil');
																				sound1.start();
																			}
																		}
																	} else {
																		if (shop_MC._currentframe == 17) {
																			if (directions != 5) {
																				directions = 5;
																			} else {
																				directions = 0;
																			}
																			notwalk = false;
																			shop_MC.gotoAndStop(1);
																		} else {
																			if (shop_MC._currentframe == 18 && housegrade2 > 1) {
																				if (directions != 11) {
																					directions = 11;
																				} else {
																					directions = 0;
																				}
																				notwalk = false;
																				shop_MC.gotoAndStop(1);
																			} else {
																				if (shop_MC._currentframe == 19) {
																					namecolor = 12897476;
																					doChangenamecolor();
																				} else {
																					if (shop_MC._currentframe == 20) {
																						rewardcolor = 14013909;
																						doChangerewardcolor();
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			} else {
				fiveX = false;
			}
			if (Key.isDown(54)) {
				if (sixX == false) {
					sixX = true;
					if (concoct_MC._currentframe == 40) {
						if (butterfly2 > 0 && numing < 3) {
							if (ing1 == 0) {
								ing1 = 6;
							} else {
								if (ing2 == 0) {
									ing2 = 6;
								} else {
									if (ing3 == 0) {
										ing3 = 6;
									}
								}
							}
							++numing;
							--butterfly2;
							if (sfxmute == false) {
								sound1.attachSound('grasspick');
								sound1.start();
							}
						}
					}
					if (shop_MC._currentframe == 2) {
						if (gold >= 3) {
							num = 1;
							addBottle();
							goldnum = 3;
							removingGold();
							if (sfxmute == false) {
								item.start();
							}
						} else {
							if (sfxmute == false) {
								error.start();
							}
						}
					} else {
						if (shop_MC._currentframe == 5) {
							if (bottle >= 1) {
								--bottle;
								goldnum = 1;
								addingGold();
								if (sfxmute == false) {
									item.start();
								}
							} else {
								if (sfxmute == false) {
									error.start();
								}
							}
						} else {
							if (shop_MC._currentframe == 8) {
								if (gold >= 1) {
									goldnum = 1;
									removingGold();
									schoice = 6;
									summon = true;
									doEnterBattle();
								} else {
									if (sfxmute == false) {
										error.start();
									}
								}
							} else {
								if (shop_MC._currentframe == 10) {
									newmusic = 'icycaves';
									doMusic();
									shop_MC.m1.gotoAndStop(1);
									shop_MC.m2.gotoAndStop(1);
									shop_MC.m3.gotoAndStop(1);
									shop_MC.m4.gotoAndStop(1);
									shop_MC.m5.gotoAndStop(1);
									if (shop_MC.m6._currentframe == 1) {
										shop_MC.m6.gotoAndPlay(2);
									}
								} else {
									if (shop_MC._currentframe == 11) {
										if (butterfly2 >= 1) {
											--butterfly2;
											goldnum = 15;
											addingGold();
											if (sfxmute == false) {
												item.start();
											}
										} else {
											if (sfxmute == false) {
												error.start();
											}
										}
									} else {
										if (shop_MC._currentframe == 12) {
											if (gold >= 25) {
												++butterfly2;
												goldnum = 25;
												removingGold();
												if (sfxmute == false) {
													item.start();
												}
											} else {
												if (sfxmute == false) {
													error.start();
												}
											}
										} else {
											if (shop_MC._currentframe == 13) {
												if (butterfly2 >= 1) {
													--butterfly2;
													goldnum = 20;
													addingGold();
													if (sfxmute == false) {
														item.start();
													}
												} else {
													if (sfxmute == false) {
														error.start();
													}
												}
											} else {
												if (shop_MC._currentframe == 17 && housegrade > 1) {
													if (directions != 6) {
														directions = 6;
													} else {
														directions = 0;
													}
													notwalk = false;
													shop_MC.gotoAndStop(1);
												}
											}
										}
									}
								}
							}
						}
					}
				}
			} else {
				sixX = false;
			}
			if (walkthrough == false) {
				if (Scenez.b1.hitTest(Scenez.playerblock._x - Scenez.playerblock._width / 2, Scenez.playerblock._y, true)) {
					cangoleft = false;
				} else {
					cangoleft = true;
				}
				if (Scenez.b1.hitTest(Scenez.playerblock._x + Scenez.playerblock._width / 2, Scenez.playerblock._y, true)) {
					cangoright = false;
				} else {
					cangoright = true;
				}
				if (Scenez.b1.hitTest(Scenez.playerblock._x, Scenez.playerblock._y - Scenez.playerblock._height / 2, true)) {
					cangoup = false;
				} else {
					cangoup = true;
				}
				if (Scenez.b1.hitTest(Scenez.playerblock._x, Scenez.playerblock._y + Scenez.playerblock._height / 2, true)) {
					cangodown = false;
				} else {
					cangodown = true;
				}
			}
			if (walkload == false) {
				if (cangoleft == false && cangoright == false && cangoup == false && cangodown == false) {
					if (stand == 1) {
						Scenez.playerP1._x += 2;
						Scenez.playerP2._x += 2;
					} else {
						if (stand == 2) {
							Scenez.playerP1._x -= 2;
							Scenez.playerP2._x -= 2;
						} else {
							if (stand == 3) {
								Scenez.playerP1._y += 2;
								Scenez.playerP2._y += 2;
							} else {
								if (stand == 4) {
									Scenez.playerP1._y -= 2;
									Scenez.playerP2._y -= 2;
								} else {
									if (stand == 5) {
										Scenez.playerP1._y -= 1;
										Scenez.playerP1._x += 1;
										Scenez.playerP2._y -= 1;
										Scenez.playerP2._x += 1;
									} else {
										if (stand == 6) {
											Scenez.playerP1._y -= 1;
											Scenez.playerP1._x -= 1;
											Scenez.playerP2._y -= 1;
											Scenez.playerP2._x -= 1;
										} else {
											if (stand == 7) {
												Scenez.playerP1._y += 1;
												Scenez.playerP1._x += 1;
												Scenez.playerP2._y += 1;
												Scenez.playerP2._x += 1;
											} else {
												if (stand == 8) {
													Scenez.playerP1._y += 1;
													Scenez.playerP1._x -= 1;
													Scenez.playerP2._y += 1;
													Scenez.playerP2._x -= 1;
												}
											}
										}
									}
								}
							}
						}
					}
					totalstuck = true;
				} else {
					totalstuck = false;
				}
			}
			if (cheat == false) {
				if (Key.isDown(80) && pauseX == false && shop_MC._currentframe != 15) {
					if (pause_MC._currentframe == 1) {
						pause_MC.gotoAndPlay(2);
						pauseX = true;
					}
					if (pause_MC._currentframe > 20 && pause_MC._currentframe < 26) {
						pause_MC.gotoAndPlay(26);
						pauseX = true;
					}
				} else {
					pauseX = false;
				}
				if (gamepause == 0) {
					if (walking1X == true) {
						walking1(walking1chars);
					}
					if (walking2X == true) {
						walking2(walking2chars);
					}
					if (walking3X == true) {
						walking3(walking3chars);
					}
					if (cinematic == false) {
						if (totalstuck == false) {
							if (story >= 161 && story <= 171 && areascreen == 37) {
								if (!Scenez.down_MC.patrick.patX.hitTest(Scenez.actionblock)) {
									black.gotoAndPlay(2);
									Scenez.playerP1._x = 140;
									Scenez.playerP2._x = 140;
									Scenez.playerP1._y = -15;
									Scenez.playerP2._y = -15;
									Scenez.playerP1.gotoAndStop(12);
									Scenez.playerP2.gotoAndStop(12);
									story = 161;
									areascreen = 37;
									directions1 = 2;
									walking1X = true;
									walkingspeed1 = 3.8;
									walking1chars = new Array(Scenez.down_MC.patrick);
									Scenez.down_MC.patrick._x = 150;
									Scenez.down_MC.patrick._y = 635;
									Scenez.down_MC.patrick._visible = true;
								}
							}
							walking = false;
							if (notwalk == false && gambling_MC._currentframe == 1) {
								if (diagonal == true) {
									speedX = 0;
								} else {
									if (areaname == 'World Map') {
										speedX = mapspeed / 5;
									} else {
										speedX = normalspeed / 5;
									}
								}
								if ((Key.isDown(37) or Key.isDown(65)) && !Key.isDown(39) && !Key.isDown(68)) {
									if (cangoleft == true) {
										if (!Key.isDown(38) && !Key.isDown(40) && (!Key.isDown(83) && !Key.isDown(87))) {
											Scenez.playerP1.gotoAndStop(1);
											Scenez.playerP2.gotoAndStop(1);
											stand = 1;
										}
										Scenez.playerP1._x -= speed + speedX;
										Scenez.playerP2._x -= speed + speedX;
										Scenez.playerblock._x -= speed + speedX;
										Scenez.playershadow._x -= speed + speedX;
										Scenez.actionblock._x -= speed + speedX;
										Scenez.soundblock._x -= speed + speedX;
										walking = true;
										if (!Key.isDown(38) && !Key.isDown(40) && (!Key.isDown(83) && !Key.isDown(87))) {
											if (farsight == false) {
												Scenez.viewblock.gotoAndStop(1);
											}
											doSpeed();
										}
									} else {
										if (!Key.isDown(38) && !Key.isDown(40) && (!Key.isDown(83) && !Key.isDown(87))) {
											Scenez.playerP1.gotoAndStop(9);
											Scenez.playerP2.gotoAndStop(9);
											stand = 1;
										}
									}
								}
								if ((Key.isDown(39) or Key.isDown(68)) && !Key.isDown(37) && !Key.isDown(65)) {
									if (cangoright == true) {
										if (!Key.isDown(38) && !Key.isDown(40) && (!Key.isDown(83) && !Key.isDown(87))) {
											Scenez.playerP1.gotoAndStop(2);
											Scenez.playerP2.gotoAndStop(2);
											stand = 2;
										}
										Scenez.playerP1._x += speed + speedX;
										Scenez.playerP2._x += speed + speedX;
										Scenez.playerblock._x += speed + speedX;
										Scenez.playershadow._x += speed + speedX;
										Scenez.actionblock._x += speed + speedX;
										Scenez.soundblock._x += speed + speedX;
										walking = true;
										if (!Key.isDown(38) && !Key.isDown(40) && (!Key.isDown(83) && !Key.isDown(87))) {
											if (farsight == false) {
												Scenez.viewblock.gotoAndStop(2);
											}
											doSpeed();
										}
									} else {
										if (!Key.isDown(38) && !Key.isDown(40) && (!Key.isDown(83) && !Key.isDown(87))) {
											Scenez.playerP1.gotoAndStop(10);
											Scenez.playerP2.gotoAndStop(10);
											stand = 2;
										}
									}
								}
								if ((Key.isDown(38) or Key.isDown(87)) && !Key.isDown(40) && !Key.isDown(83)) {
									if (cangoup == true) {
										if (!Key.isDown(39) && !Key.isDown(37) && (!Key.isDown(65) && !Key.isDown(68))) {
											Scenez.playerP1.gotoAndStop(3);
											Scenez.playerP2.gotoAndStop(3);
											stand = 3;
										}
										Scenez.playerP1._y -= speed + speedX;
										Scenez.playerP2._y -= speed + speedX;
										Scenez.playerblock._y -= speed + speedX;
										Scenez.playershadow._y -= speed + speedX;
										Scenez.actionblock._y -= speed + speedX;
										Scenez.soundblock._y -= speed + speedX;
										walking = true;
										if (!Key.isDown(39) && !Key.isDown(37) && (!Key.isDown(65) && !Key.isDown(68))) {
											Scenez.playerP1.gotoAndStop(3);
											Scenez.playerP2.gotoAndStop(3);
											if (farsight == false) {
												Scenez.viewblock.gotoAndStop(3);
											}
											doSpeed();
										}
									} else {
										if (!Key.isDown(39) && !Key.isDown(37) && (!Key.isDown(65) && !Key.isDown(68))) {
											Scenez.playerP1.gotoAndStop(11);
											Scenez.playerP2.gotoAndStop(11);
											stand = 3;
										}
									}
								}
								if ((Key.isDown(40) or Key.isDown(83)) && !Key.isDown(38) && !Key.isDown(87)) {
									if (cangodown == true) {
										if (!Key.isDown(39) && !Key.isDown(37) && (!Key.isDown(65) && !Key.isDown(68))) {
											Scenez.playerP1.gotoAndStop(4);
											Scenez.playerP2.gotoAndStop(4);
											stand = 4;
										}
										Scenez.playerP1._y += speed + speedX;
										Scenez.playerP2._y += speed + speedX;
										Scenez.playerblock._y += speed + speedX;
										Scenez.playershadow._y += speed + speedX;
										Scenez.actionblock._y += speed + speedX;
										Scenez.soundblock._y += speed + speedX;
										walking = true;
										if (!Key.isDown(39) && !Key.isDown(37) && (!Key.isDown(65) && !Key.isDown(68))) {
											if (farsight == false) {
												Scenez.viewblock.gotoAndStop(4);
											}
											doSpeed();
										}
									} else {
										if (!Key.isDown(39) && !Key.isDown(37) && (!Key.isDown(65) && !Key.isDown(68))) {
											Scenez.playerP1.gotoAndStop(12);
											Scenez.playerP2.gotoAndStop(12);
											stand = 4;
										}
									}
								}
								if ((cangodown == true or cangoleft == true) && (Key.isDown(40) && Key.isDown(37) or Key.isDown(83) && Key.isDown(65))) {
									Scenez.playerP1.gotoAndStop(5);
									Scenez.playerP2.gotoAndStop(5);
									diagonal = true;
									if (farsight == false) {
										Scenez.viewblock.gotoAndStop(5);
									}
									stand = 5;
									doSpeed();
								} else {
									if (walking == false && walkingX == true) {
										walkingX = false;
										doStopWalking();
									}
								}
								if ((cangodown == true or cangoright == true) && (Key.isDown(40) && Key.isDown(39) or Key.isDown(83) && Key.isDown(68))) {
									Scenez.playerP1.gotoAndStop(6);
									Scenez.playerP2.gotoAndStop(6);
									diagonal = true;
									if (farsight == false) {
										Scenez.viewblock.gotoAndStop(6);
									}
									stand = 6;
									doSpeed();
								} else {
									if (walking == false && walkingX == true) {
										walkingX = false;
										doStopWalking();
									}
								}
								if ((cangoup == true or cangoleft == true) && (Key.isDown(38) && Key.isDown(37) or Key.isDown(87) && Key.isDown(65))) {
									Scenez.playerP1.gotoAndStop(7);
									Scenez.playerP2.gotoAndStop(7);
									diagonal = true;
									if (farsight == false) {
										Scenez.viewblock.gotoAndStop(7);
									}
									stand = 7;
									doSpeed();
								} else {
									if (walking == false && walkingX == true) {
										walkingX = false;
										doStopWalking();
									}
								}
								if ((cangoup == true or cangoright == true) && (Key.isDown(38) && Key.isDown(39) or Key.isDown(87) && Key.isDown(68))) {
									Scenez.playerP1.gotoAndStop(8);
									Scenez.playerP2.gotoAndStop(8);
									diagonal = true;
									if (farsight == false) {
										Scenez.viewblock.gotoAndStop(8);
									}
									stand = 8;
									doSpeed();
								} else {
									if (walking == false && walkingX == true) {
										walkingX = false;
										doStopWalking();
									}
								}
							}
						}
						if ((cangoright == false && cangodown == false or cangoright == false && cangoup == false or cangoleft == false && cangodown == false or cangoleft == false && cangoup == false) && cinematic == false) {
							stuck = true;
							doStopWalking();
						} else {
							stuck = false;
						}
						if (Key.isDown(32)) {
							if (inventoryX == false) {
								if (canvas_MC._currentframe == 2) {
									canvas_MC.mask_MC.drawing_mc.clear();
									canvas_MC.white.gotoAndPlay(2);
									inventoryX = true;
								} else {
									if (inventory_MC._currentframe > 5 && inventory_MC._currentframe < 14) {
										inventory_MC.gotoAndPlay(15);
									}
									if (story == 156 && inventory_MC.contentz._currentframe == 2) {
										doTextpage();
										doActivatedText();
										story = 157;
									}
									inventory_MC.play();
									inventoryX = true;
								}
							}
						} else {
							inventoryX = false;
						}
					} else {
						if (cinematic == true) {
							if (walking == false && walkingX == true) {
								walkingX = false;
								doStopWalking();
							}
						}
					}
					if (Key.isDown(13) or Key.isDown(69) && shop_MC._currentframe != 15) {
						if (enterX == false && gonext == true) {
							enterX = true;
							if (shop_MC._currentframe > 1 && shop_MC._currentframe != 15) {
								shopX = true;
								notwalk = false;
								if (shop_MC._currentframe == 10) {
									if (areascreen == 4) {
										newmusic = 'imperial';
									}
									if (areascreen == 37) {
										newmusic = 'savinacity';
									}
									doMusic();
								}
								if (questbrock != 9 or shop_MC._currentframe != 16) {
									shop_MC.gotoAndStop(1);
								}
							}
							if (yesno == true or corecaleb == true or sleepchat == true or fishchat == true) {
								choice = 1;
							}
							if (chathelpX == true) {
								chat = true;
							}
							if (practice == true) {
								dialog = 1;
								shop_MC.gotoAndStop(7);
								if (shopX == true) {
									shopX = false;
								}
							}
							yesno = false;
							chathelp = false;
							sleepchat = false;
							corecaleb = false;
							fishchat = false;
							if (canvas_MC._currentframe == 2) {
								canvas_MC.gotoAndStop(1);
								notwalk = false;
								Mouse.show();
							} else {
								if (questbrock != 9 or shop_MC._currentframe != 16) {
									doRiddle();
								}
							}
						}
					} else {
						enterX = false;
					}
					if (Key.isDown(16) or Key.isDown(81) && shop_MC._currentframe != 15) {
						if (altX == false) {
							altX = true;
							if (shop_MC._currentframe == 15) {
								shop_MC.gotoAndStop(1);
								notwalk = false;
								this['page' + (turnsX + 1)] = riddlez2;
								doTextpage();
								doActivatedText();
							} else {
								if (yesnoX == true or chathelpX == true or corecalebX == true or sleepchatX == true or sleepchat == true or dirchatX == true or dirchat == true or fishchatX == true or fishchat == true or practice == true or corecaleb == true) {
									if (yesno == true or corecaleb == true or sleepchat == true or fishchat == true) {
										choice = 2;
									}
									if (chathelpX == true) {
										help = true;
									}
									if (practice == true) {
										dialog = 2;
									}
									yesno = false;
									chathelp = false;
									sleepchat = false;
									corecaleb = false;
									if ((shop_MC._currentframe == 1 or currentpage > 1) && concoct_MC._currentframe == 1) {
										doTextpage();
										doActivatedText();
									}
								}
								if (concoct_MC._currentframe == 40) {
									if (ing1 == 1) {
										++shroom1;
									} else {
										if (ing1 == 2) {
											++shroom2;
										} else {
											if (ing1 == 3) {
												++shroom3;
											} else {
												if (ing1 == 4) {
													++shroom4;
												} else {
													if (ing1 == 5) {
														++butterfly1;
													} else {
														if (ing1 == 6) {
															++butterfly2;
														}
													}
												}
											}
										}
									}
									if (ing2 == 1) {
										++shroom1;
									} else {
										if (ing2 == 2) {
											++shroom2;
										} else {
											if (ing2 == 3) {
												++shroom3;
											} else {
												if (ing2 == 4) {
													++shroom4;
												} else {
													if (ing2 == 5) {
														++butterfly1;
													} else {
														if (ing2 == 6) {
															++butterfly2;
														}
													}
												}
											}
										}
									}
									concoct_MC.gotoAndPlay(130);
								}
								if (shop_MC._currentframe == 2) {
									shop_MC.gotoAndStop(5);
								} else {
									if (shop_MC._currentframe == 4) {
										shop_MC.gotoAndStop(19);
									} else {
										if (shop_MC._currentframe == 5) {
											shop_MC.gotoAndStop(2);
										} else {
											if (shop_MC._currentframe == 6) {
												shop_MC.gotoAndStop(13);
											} else {
												if (shop_MC._currentframe == 7) {
													shop_MC.gotoAndStop(14);
												} else {
													if (shop_MC._currentframe == 8) {
														shop_MC.gotoAndStop(9);
													} else {
														if (shop_MC._currentframe == 9) {
															shop_MC.gotoAndStop(8);
														} else {
															if (shop_MC._currentframe == 11) {
																shop_MC.gotoAndStop(12);
															} else {
																if (shop_MC._currentframe == 12) {
																	shop_MC.gotoAndStop(11);
																} else {
																	if (shop_MC._currentframe == 13) {
																		shop_MC.gotoAndStop(6);
																	} else {
																		if (shop_MC._currentframe == 14) {
																			shop_MC.gotoAndStop(7);
																		} else {
																			if (shop_MC._currentframe == 19) {
																				shop_MC.gotoAndStop(4);
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					} else {
						altX = false;
					}
					if (Key.isDown(70)) {
						if (VX == false && gotshovel == true && cinematic == false && text_MC.textz._currentframe == 1 && sword_MC.shovel_MC._currentframe == 1) {
							VX = true;
							doShovel();
						}
					} else {
						VX = false;
					}
				}
				if (Key.isDown(77) && shop_MC._currentframe != 15) {
					if (muteX == false) {
						if (volumez != 0) {
							soundoff();
							muteX = true;
						} else {
							soundon();
							muteX = true;
						}
					}
				} else {
					muteX = false;
				}
			}
			if (Key.isDown(13) && cheat == true) {
				if (enterXX == false) {
					enterXX = true;
					doCheat();
				}
			} else {
				enterXX = false;
			}
			if (walking == true && (Scenez.b2.hitTest(Scenez.playerblock._x - Scenez.playerblock._width / 2, Scenez.playerblock._y, true) or Scenez.b2.hitTest(Scenez.playerblock._x + Scenez.playerblock._width / 2, Scenez.playerblock._y, true) or Scenez.b2.hitTest(Scenez.playerblock._x, Scenez.playerblock._y - Scenez.playerblock._height / 2, true) or Scenez.b2.hitTest(Scenez.playerblock._x, Scenez.playerblock._y + Scenez.playerblock._height / 2, true))) {
				++walkfpz;
				if (walkfpz >= 30) {
					++counterWalk;
					++counterWalk2;
					walkfpz = 0;
				}
				if (counterWalk >= 5 && counterWalk2 >= 15 && stuck == false && cinematic == false && champion == false && text_MC.textz._currentframe == 1 && story >= 10 && story != 220 && story != 221) {
					if (runningz == false) {
						chance = random(350);
					} else {
						if (runningz == true) {
							chance = random(250);
						}
					}
					if (chance == 1 or counterWalk >= 150) {
						doEnterBattle();
					}
				}
			}
			if (Key.isDown(112)) {
				quallow2();
			}
			if (Key.isDown(113)) {
				qualmedium2();
			}
			if (Key.isDown(114)) {
				qualhigh2();
			}
			if (Key.isDown(115)) {
				qualauto2();
			}
			if (Key.isDown(90)) {
				if (gamepause == 0 && cheat == false && cinematic == false && quickX == false) {
					quickX = true;
					doQuicksave();
				}
			} else {
				quickX = false;
			}
			margin_w = 165;
			margin_h = 95;
			aa = 0;
			while (aa <= 101) {
				if (aa <= 30 or aa >= 90) {
					if (eval('point' + aa) != undefined) {
						Scenez['arrowz' + aa]._x = (eval('point' + aa))._x;
						Scenez['arrowz' + aa]._y = (eval('point' + aa))._y;
						if ((eval('point' + aa))._x > cam._x + margin_w) {
							Scenez['arrowz' + aa]._x = cam._x + margin_w;
						} else {
							if ((eval('point' + aa))._x < cam._x - margin_w) {
								Scenez['arrowz' + aa]._x = cam._x - margin_w;
							}
						}
						if ((eval('point' + aa))._y > cam._y + margin_h) {
							Scenez['arrowz' + aa]._y = cam._y + margin_h;
						} else {
							if ((eval('point' + aa))._y < cam._y - margin_h) {
								Scenez['arrowz' + aa]._y = cam._y - margin_h;
							}
						}
						this['dragx' + aa] = (eval('point' + aa))._x;
						this['dragy' + aa] = (eval('point' + aa))._y;
						this['diffx' + aa] = eval('dragx' + aa) - (eval('Scenez.arrowz' + aa))._x;
						this['diffy' + aa] = eval('dragy' + aa) - (eval('Scenez.arrowz' + aa))._y;
						this['turnangle' + aa] = Math.atan(eval('diffy' + aa) / eval('diffx' + aa));
						this['angle' + aa] = eval('turnangle' + aa) / 0.0174532925199433;
						if (eval('diffx' + aa) >= 0) {
							Scenez['arrowz' + aa].arrow_graph._rotation = eval('angle' + aa);
						} else {
							if (eval('diffx' + aa) < 0) {
								Scenez['arrowz' + aa].arrow_graph._rotation = 180 + eval('angle' + aa);
							}
						}
						if ((eval('point' + aa)).hitTest(Scenez['arrowz' + aa].arrow_graph)) {
							Scenez['arrowz' + aa].arrow_graph.gotoAndStop(2);
							Scenez['arrowz' + aa].q_txt._y = 1;
							Scenez['arrowz' + aa].qbg._y = 7;
						} else {
							Scenez['arrowz' + aa].arrow_graph.gotoAndStop(1);
							if (Scenez['arrowz' + aa].arrow_graph._rotation > 0 && Scenez['arrowz' + aa].arrow_graph._rotation < 180) {
								Scenez['arrowz' + aa].q_txt._y = 8;
								Scenez['arrowz' + aa].qbg._y = 14;
							} else {
								Scenez['arrowz' + aa].q_txt._y = 1;
								Scenez['arrowz' + aa].qbg._y = 7;
							}
						}
						if (eval('point' + aa) == undefined or (eval('point' + aa))._x == undefined) {
							Scenez['arrowz' + aa]._visible = false;
						} else {
							Scenez['arrowz' + aa]._visible = true;
						}
						if (aa != 100) {
							Scenez['arrowz' + aa].arrow_graph.circle._visible = false;
						}
						Scenez['arrowz' + aa].qbg._width = 10 + Scenez['arrowz' + aa].q_txt.text.length * 3.3;
						Scenez['arrowz' + aa].nrhits = 0;
						aaa = 0;
						while (aaa <= 101) {
							if (aa <= 30 or aa >= 90) {
								if (Scenez['arrowz' + aaa] != undefined && aa != aaa) {
									Scenez['arrowz' + aa].distanceX = Scenez['arrowz' + aaa]._x - Scenez['arrowz' + aa]._x;
									Scenez['arrowz' + aa].distanceY = Scenez['arrowz' + aaa]._y - Scenez['arrowz' + aa]._y;
									Scenez['arrowz' + aa].distanceTotal = Math.sqrt(Scenez['arrowz' + aa].distanceX * Scenez['arrowz' + aa].distanceX + Scenez['arrowz' + aa].distanceY * Scenez['arrowz' + aa].distanceY);
									if (Scenez['arrowz' + aa].distanceTotal <= Scenez['arrowz' + aa].qbg._width && Scenez['arrowz' + aaa]._visible == true && Scenez['arrowz' + aaa]._currentframe == 1) {
										if (aa > aaa) {
											++Scenez['arrowz' + aa].nrhits;
										}
									}
								}
							}
							++aaa;
						}
						if (Scenez['arrowz' + aa].nrhits > 0) {
							if (Scenez['arrowz' + aa]._y - Scenez._y < cam._y) {
								Scenez['arrowz' + aa].q_txt._y = 1;
								Scenez['arrowz' + aa].qbg._y = 7;
								Scenez['arrowz' + aa].q_txt._y += Scenez['arrowz' + aa].nrhits * 10;
								Scenez['arrowz' + aa].qbg._y += Scenez['arrowz' + aa].nrhits * 10;
							} else {
								Scenez['arrowz' + aa].q_txt._y = -6;
								Scenez['arrowz' + aa].qbg._y = 0;
								Scenez['arrowz' + aa].q_txt._y -= Scenez['arrowz' + aa].nrhits * 10;
								Scenez['arrowz' + aa].qbg._y -= Scenez['arrowz' + aa].nrhits * 10;
							}
						}
					}
				}
				++aa;
			}
			a = 1;
			while (a <= questnames.length) {
				qn = questnames[a];
				cq = eval('quest' + qn + 'X');
				if (eval('quest' + qn + 'X') >= 0 && eval('quest' + qn) > 1) {
					b = 1;
					while (b < 20) {
						if (eval('quest' + qn) == b) {
							if (eval('Scenez.' + qn + (eval('quest' + qn) - 1)) != undefined) {
								this['point' + cq] = eval('Scenez.' + qn + (eval('quest' + qn) - 1));
								Scenez['arrowz' + cq]._visible = true;
							} else {
								Scenez['arrowz' + cq]._visible = false;
							}
						}
						++b;
					}
					if (Scenez['arrowz' + cq] == undefined) {
						questname = eval('objname' + cq);
						arrnumber = cq;
						putarrowz();
					}
				}
				++a;
			}
			arrowback = function () {
				if (Scenez.arrowz100 == undefined && point100 != undefined or Scenez.arrowz100._currentframe == 2) {
					arrnumber = 100;
					putarrowz();
					Scenez.arrowz100.gotoAndStop(1);
				}
				if (Scenez.arrowz99 == undefined && point99 != undefined or Scenez.arrowz99._currentframe == 2) {
					arrnumber = 99;
					putarrowz();
					Scenez.arrowz99.gotoAndStop(1);
				}
				if (Scenez.arrowz98 == undefined && point98 != undefined or Scenez.arrowz98._currentframe == 2) {
					arrnumber = 98;
					putarrowz();
					Scenez.arrowz98.gotoAndStop(1);
				}
				if (Scenez.arrowz97 == undefined && point97 != undefined or Scenez.arrowz97._currentframe == 2) {
					arrnumber = 97;
					putarrowz();
					Scenez.arrowz97.gotoAndStop(1);
				}
				if (Scenez.arrowz96 == undefined && point96 != undefined or Scenez.arrowz96._currentframe == 2) {
					arrnumber = 96;
					putarrowz();
					Scenez.arrowz96.gotoAndStop(1);
				}
			};
			if (darconstory == 1 or darconstory == 20) {
				Scenez.arrowz100.q_txt.text = 'Bavelock Prison';
				this.point100 = Scenez.p_prison;
				arrowback();
			} else {
				if (darconstory == 2) {
					Scenez.arrowz100.q_txt.text = 'Exit';
					this.point100 = Scenez.p_outprison;
					arrowback();
				} else {
					if (darconstory == 10) {
						Scenez.arrowz100.q_txt.text = 'Gym';
						this.point100 = Scenez.p_gym;
						arrowback();
					} else {
						if (story <= 60) {
							Scenez.arrowz100.q_txt.text = 'Forest Exit';
							this.point100 = Scenez.forestexit;
							arrowback();
						} else {
							if (story >= 72 && story <= 80) {
								Scenez.arrowz100.q_txt.text = 'Press ENTER or E';
								this.point100 = Scenez.p_argas;
								arrowback();
							} else {
								if (story == 92 && questbrock == 1) {
									Scenez.arrowz100.q_txt.text = 'Jaden';
									this.point100 = Scenez.p_jaden;
									arrowback();
								} else {
									if (story == 100) {
										Scenez.arrowz100.q_txt.text = 'Golden Apple Inn';
										this.point100 = Scenez.p_goldeninn;
										arrowback();
									} else {
										if (story == 120) {
											Scenez.arrowz100.q_txt.text = 'Savina City';
											this.point100 = Scenez.p_south;
											arrowback();
										} else {
											if (story == 141) {
												Scenez.arrowz100.q_txt.text = 'Slumbering Dragon inn';
												this.point100 = Scenez.p_dragoninn;
												arrowback();
											} else {
												if (story == 144) {
													p_dragoninn;
													Scenez.arrowz100.q_txt.text = 'Talk';
													this.point100 = Scenez.p_vincent;
													arrowback();
												} else {
													if (story == 150) {
														Scenez.arrowz100.q_txt.text = 'Market';
														this.point100 = Scenez.p_market;
														arrowback();
													} else {
														if (story == 190) {
															Scenez.arrowz100.q_txt.text = 'Blackwhisper Cave';
															this.point100 = Scenez.p_whisper;
															arrowback();
														} else {
															if (story == 230) {
																Scenez.arrowz100.q_txt.text = 'Bavelock';
																this.point100 = Scenez.p_bavelock;
																arrowback();
															} else {
																if (story == 290 or story == 291) {
																	Scenez.arrowz100.q_txt.text = 'Library';
																	this.point100 = Scenez.p_library;
																	arrowback();
																} else {
																	if (story == 300 or questbeer == 1 && (story == 300 or story == 310)) {
																		if (story == 300) {
																			Scenez.arrowz100.q_txt.text = 'Talk';
																			this.point100 = Scenez.p_innguard;
																			arrowback();
																		} else {
																			if (questbeer == 1) {
																				Scenez.arrowz100.q_txt.text = 'Talk';
																				this.point100 = Scenez.p_innfarimir;
																				arrowback();
																			}
																		}
																	} else {
																		if (story == 310 && questbeer == 5) {
																			Scenez.arrowz100.q_txt.text = 'Talk';
																			this.point100 = Scenez.p_inncaleb2;
																			arrowback();
																		} else {
																			if (darconstory == 60) {
																				Scenez.arrowz100.q_txt.text = 'Underground Passage';
																				this.point100 = Scenez.p_passage;
																				arrowback();
																			} else {
																				if (story == 360 or story == 361) {
																					Scenez.arrowz100.q_txt.text = 'Mogwai Mountains';
																					this.point100 = Scenez.p_mountain;
																					arrowback();
																				} else {
																					if (Scenez.arrowz100 != undefined && Scenez.arrowz100._visible == true) {
																						Scenez.arrowz100.gotoAndStop(2);
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
			if (housegrade > 1 && enterhouse1 == false) {
				Scenez.arrowz99.q_txt.text = 'New House';
				this.point99 = Scenez.p_house1;
				arrowback();
			} else {
				if (housegrade2 > 1 && enterhouse2 == false) {
					Scenez.arrowz99.q_txt.text = 'New House';
					this.point99 = Scenez.p_house2;
					arrowback();
				} else {
					if (Scenez.arrowz99 != undefined && Scenez.arrowz99._visible == true) {
						Scenez.arrowz99.gotoAndStop(2);
					}
				}
			}
			if (directions == 1) {
				Scenez.arrowz98.q_txt.text = 'Golden Apple Inn';
				this.point98 = Scenez.p_goldeninn;
				arrowback();
			} else {
				if (directions == 2) {
					Scenez.arrowz98.q_txt.text = 'Blacksmith';
					this.point98 = Scenez.brock1;
					arrowback();
				} else {
					if (directions == 3) {
						Scenez.arrowz98.q_txt.text = 'Library';
						this.point98 = Scenez.p_library;
						arrowback();
					} else {
						if (directions == 4) {
							Scenez.arrowz98.q_txt.text = 'Gym';
							this.point98 = Scenez.p_gym;
							arrowback();
						} else {
							if (directions == 5) {
								Scenez.arrowz98.q_txt.text = 'Item Shop';
								this.point98 = Scenez.p_itemshop;
								arrowback();
							} else {
								if (directions == 6) {
									Scenez.arrowz98.q_txt.text = 'House';
									this.point98 = Scenez.p_house1;
									arrowback();
								} else {
									if (directions == 7) {
										Scenez.arrowz98.q_txt.text = 'Slumbering Dragon Inn';
										this.point98 = Scenez.p_dragoninn;
										arrowback();
									} else {
										if (directions == 8) {
											Scenez.arrowz98.q_txt.text = 'Blacksmith';
											this.point98 = Scenez.p_blacksmith;
											arrowback();
										} else {
											if (directions == 9) {
												Scenez.arrowz98.q_txt.text = 'Marketplace';
												this.point98 = Scenez.p_market;
												arrowback();
											} else {
												if (directions == 10) {
													Scenez.arrowz98.q_txt.text = 'Exit';
													this.point98 = Scenez.p_exit;
													arrowback();
												} else {
													if (directions == 11) {
														Scenez.arrowz98.q_txt.text = 'House';
														this.point98 = Scenez.p_house2;
														arrowback();
													} else {
														if (Scenez.arrowz98 != undefined && Scenez.arrowz98._visible == true) {
															Scenez.arrowz98.gotoAndStop(2);
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
			if (item26 == 2 or item27 == 2 or item28 == 2) {
				Scenez.arrowz97.q_txt.text = 'Rare artifact';
				this.point97 = Scenez.p_artifact;
				arrowback();
			} else {
				if (Scenez.arrowz97 != undefined && Scenez.arrowz97._visible == true) {
					Scenez.arrowz97.gotoAndStop(2);
				}
			}
			if (firstthanator == true && firstthanatorX == false or firststalker == true && firststalkerX == false or firstcarrion == true && firstcarrionX == false or firstghoul == true && firstghoulX == false) {
				Scenez.arrowz96.q_txt.text = 'Rare creatures';
				this.point96 = Scenez.p_summoner;
				arrowback();
			} else {
				if (Scenez.arrowz96 != undefined && Scenez.arrowz96._visible == true) {
					Scenez.arrowz96.gotoAndStop(2);
				}
			}
			if (story == 260 && currentpage == 13 && black2._currentframe == 779) {
				playerX = 70;
				playerY = 45;
				stand = 4;
				Scenez.playerP1.gotoAndStop(12);
				Scenez.playerP2.gotoAndStop(12);
				areascreen = 24;
				cinematic = false;
				cinemacam = false;
				footstepsound = 3;
				doGotoGame();
				doNotrun2();
				black2.gotoAndStop(1);
				doSleep();
			}
		};
	}
	movieClip 3732	{
	}
	movieClip 3733	{
		frame 2 {
			if (_root.runningz == true && _root.forcenotrun == false) {
				gotoAndPlay(1);
			} else {
				gotoAndPlay(3);
			}
		}
		frame 4 {
			if (_root.runningz == true && _root.forcenotrun == false) {
				gotoAndPlay(1);
			} else {
				gotoAndPlay(3);
			}
		}
	}
	movieClip 3734	{
		frame 1 {
			stop();
		}
	}
	movieClip 3736	{
	}
	movieClip 3738	{
	}
	movieClip 3740	{
	}
	movieClip 3742	{
	}
	movieClip 3744	{
	}
	movieClip 3750	{
		frame 1 {
			gotoAndPlay(random(40));
		}
	}
	movieClip 3752	{
	}
	movieClip 3754	{
	}
	movieClip 3755	{
	}
	movieClip 3757	{
	}
	movieClip 3760	{
	}
	movieClip 3762	{
	}
	movieClip 3764	{
	}
	movieClip 3765	{
	}
	movieClip 3767	{
	}
	movieClip 3769	{
	}
	movieClip 3775	{
		frame 1 {
			gotoAndPlay(random(40));
		}
	}
	movieClip 3777	{
	}
	movieClip 3778	{
	}
	movieClip 3780	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 6 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 7 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 8 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
	}
	movieClip 3782	{
	}
	movieClip 3784	{
	}
	movieClip 3786	{
	}
	movieClip 3788	{
	}
	movieClip 3790	{
	}
	movieClip 3792	{
	}
	movieClip 3793	{
	}
	movieClip 3794	{
	}
	movieClip 3796	{
	}
	movieClip 3798	{
	}
	movieClip 3800	{
	}
	movieClip 3801	{
	}
	movieClip 3803	{
	}
	movieClip 3805	{
	}
	movieClip 3806	{
	}
	movieClip 3811	{
		frame 75 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('deathpactX');
				_root.sound1.start();
			}
		}
		frame 146 {
			stop();
		}
	}
	movieClip 3815	{
		frame 25 {
			_root.sound4.attachSound('DeathPactTargetBirth1');
			_root.sound4.start();
		}
		frame 49 {
			stop();
		}
		frame 50 {
			_root.Scenez.bars.bar._visible = false;
		}
		frame 64 {
			stop();
			_root.Scenez.playerP1.gotoAndStop(8);
			_root.Scenez.playerP2.gotoAndStop(8);
			_root.directions1 = 4;
			_root.walking1X = true;
			_root.walkingspeed1 = 1.7;
			_root.walking1chars = new Array(_root.Scenez.caleb);
			_root.calebwalking = true;
			_root.Scenez.caleb._visible = true;
			_root.doCinematic();
		}
	}
	movieClip 3818	{
		frame 13 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('deathpactX');
				_root.sound1.start();
			}
		}
		frame 49 {
			stop();
		}
		frame 75 {
			stop();
		}
	}
	movieClip 3819	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 6 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 7 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 8 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
	}
	movieClip 3820	{
		frame 1 {
			stop();
			panm = 2;
			onEnterFrame = function () {
				if (_root.runningz == true && _root.forcenotrun == false && _root.cinematic == false && _root.areaname != 'World Map') {
					core_anm.gotoAndStop(2);
				} else {
					core_anm.gotoAndStop(1);
				}
			};
		}
		frame 1 {
			_root.walkingX = true;
			if (_root.farsight == false) {
				_root.Scenez.viewblock.gotoAndStop(1);
			}
		}
		frame 2 {
			_root.walkingX = true;
			if (_root.farsight == false) {
				_root.Scenez.viewblock.gotoAndStop(2);
			}
		}
		frame 3 {
			_root.walkingX = true;
			if (_root.farsight == false) {
				_root.Scenez.viewblock.gotoAndStop(3);
			}
		}
		frame 4 {
			_root.walkingX = true;
			if (_root.farsight == false) {
				_root.Scenez.viewblock.gotoAndStop(4);
			}
		}
		frame 5 {
			_root.walkingX = true;
			if (_root.farsight == false) {
				_root.Scenez.viewblock.gotoAndStop(5);
			}
		}
		frame 6 {
			_root.walkingX = true;
			if (_root.farsight == false) {
				_root.Scenez.viewblock.gotoAndStop(6);
			}
		}
		frame 7 {
			_root.walkingX = true;
			if (_root.farsight == false) {
				_root.Scenez.viewblock.gotoAndStop(7);
			}
		}
		frame 8 {
			_root.walkingX = true;
			if (_root.farsight == false) {
				_root.Scenez.viewblock.gotoAndStop(8);
			}
		}
	}
	movieClip 3825	{
		frame 1 {
			gotoAndPlay(random(8));
		}
	}
	movieClip 3827	{
	}
	movieClip 3830	{
	}
	movieClip 3831	{
		instance of movieClip 3830	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
	}
	movieClip 3834	{
	}
	movieClip 3835	{
		instance of movieClip 3834	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
	}
	movieClip 3838	{
	}
	movieClip 3839	{
		instance of movieClip 3838	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
	}
	movieClip 3842	{
	}
	movieClip 3843	{
		instance of movieClip 3842	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
	}
	movieClip 3846	{
	}
	movieClip 3847	{
		instance of movieClip 3846	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
	}
	movieClip 3850	{
	}
	movieClip 3851	{
		instance of movieClip 3850	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
	}
	movieClip 3854	{
	}
	movieClip 3855	{
		instance of movieClip 3854	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
	}
	movieClip 3858	{
	}
	movieClip 3859	{
		instance of movieClip 3858	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
	}
	movieClip 3877	{
	}
	movieClip 3880	{
		frame 1 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			} else {
				stop();
			}
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 3881	{
		frame 1 {
			stop();
		}
		instance of movieClip 3880	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 3885	{
		frame 1 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			} else {
				stop();
			}
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 3886	{
		frame 1 {
			stop();
			stop();
		}
		instance of movieClip 3885	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 3891	{
	}
	movieClip 3896	{
		frame 1 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			} else {
				stop();
			}
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 3897	{
		frame 1 {
			stop();
		}
		instance of movieClip 3896	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 3901	{
		frame 1 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			} else {
				stop();
			}
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 3902	{
		frame 1 {
			stop();
		}
		instance of movieClip 3901	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 3906	{
		frame 1 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			} else {
				stop();
			}
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 3907	{
		frame 1 {
			stop();
		}
		instance of movieClip 3906	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 3913	{
		frame 1 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			} else {
				stop();
			}
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 3914	{
		frame 1 {
			stop();
		}
		instance of movieClip 3913	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 3918	{
		frame 1 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			} else {
				stop();
			}
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 3919	{
		frame 1 {
			stop();
		}
		instance of movieClip 3918	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 3924	{
		frame 1 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			} else {
				stop();
			}
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 3925	{
		frame 1 {
			stop();
		}
		instance of movieClip 3924	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 3927	{
	}
	movieClip 3928	{
	}
	movieClip 3929	{
	}
	movieClip 3930	{
	}
	movieClip 3931	{
	}
	movieClip 3932	{
	}
	movieClip 3933	{
	}
	movieClip 3934	{
	}
	movieClip 3935	{
	}
	movieClip 3938	{
	}
	movieClip 3939	{
	}
	movieClip 3941	{
	}
	movieClip 3943	{
	}
	movieClip 3948	{
	}
	movieClip 3949	{
	}
	movieClip 3951	{
	}
	movieClip 3953	{
	}
	movieClip 3956	{
	}
	movieClip 3960	{
	}
	movieClip 3962	{
	}
	movieClip 3968	{
	}
	movieClip 3969	{
		frame 1 {
			stop();
		}
		frame 64 {
			stop();
		}
		frame 94 {
			_root.cinematic = false;
			_root.cinemacam = false;
			_root.notwalk = false;
			_root.areabg = 5;
			_root.playerX = -40;
			_root.playerY = 250;
			_root.Scenez.playerP1._x = _root.playerX;
			_root.Scenez.playerP1._y = _root.playerY;
			_root.Scenez.playerP2._x = _root.playerX;
			_root.Scenez.playerP2._y = _root.playerY;
			_root.stand = 3;
			_root.areascreen = 50;
			_root.doEnterBattle();
			stop();
		}
	}
	movieClip 3970	{
		frame 1 {
			stop();
		}
	}
	movieClip 3971	{
		frame 1 {
			gotoAndStop(_root.currentstage);
		}
		instance of movieClip 3827	{
			onClipEvent (enterFrame) {
				if (_root.item2 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item2 = true;
					_root.foundgold = 15;
					_root.doFoundGold();
				}
			}
		}
		instance of movieClip 3838	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
		instance of movieClip 3846	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
		instance of movieClip 3838	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
		instance of movieClip 3846	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
	}
	movieClip 3974	{
		frame 1 {
			stop();
		}
		frame 9 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(8);
			}
		}
	}
	movieClip 3975	{
		instance of movieClip 3974	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe > 9) {
						gotoAndPlay(1);
					}
				}
			}
		}
	}
	movieClip 3977	{
		frame 1 {
			stop();
		}
		frame 9 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(8);
			}
		}
	}
	movieClip 3978	{
		instance of movieClip 3977	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe > 9) {
						gotoAndPlay(1);
					}
				}
			}
		}
	}
	movieClip 3979	{
		frame 1 {
			stop();
		}
		frame 9 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(8);
			}
		}
	}
	movieClip 3980	{
		instance of movieClip 3979	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe > 9) {
						gotoAndPlay(1);
					}
				}
			}
		}
	}
	movieClip 3987	{
		frame 1 {
			gotoAndPlay(random(10) + 1);
		}
	}
	movieClip 3990	{
		frame 1 {
			gotoAndPlay(Math.round(Math.random() * 7 + 1));
		}
	}
	movieClip 3997	{
		frame 1 {
			gotoAndPlay(random(4));
		}
		frame 9 {
			gotoAndPlay(random(4) + 10);
		}
	}
	movieClip 3998	{
	}
	movieClip 3999	{
		frame 1 {
			gotoAndStop(_root.currentstage);
		}
		instance of movieClip 3838	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
		instance of movieClip 3838	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
	}
	movieClip 4003	{
	}
	movieClip 4004	{
		frame 5 {
			chance = random(600);
			if (chance == 1) {
				gotoAndPlay(1);
				if (_root.areascreen != 29 && _root.areascreen != 30 && _root.areascreen != 49) {
					if (_root.sfxmute == false) {
						_root.sound1.attachSound('bird1');
						_root.sound1.start();
					}
				}
			} else {
				if (chance == 2) {
					gotoAndPlay(1);
					if (_root.areascreen != 29 && _root.areascreen != 30 && _root.areascreen != 49) {
						if (_root.sfxmute == false) {
							_root.sound1.attachSound('bird2');
							_root.sound1.start();
						}
					}
				} else {
					if (chance == 3 && _root.gamepause == 0 && _root.cinematic == false) {
						this._x = _root.player._x + random(190);
						this._y = _root.player._y - 100;
						gotoAndPlay(6);
					} else {
						gotoAndPlay(1);
					}
				}
			}
		}
		frame 7 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('birdfly');
				_root.sound1.start();
			}
		}
	}
	movieClip 4007	{
		frame 1 {
			gotoAndPlay(random(3));
		}
	}
	movieClip 4008	{
		frame 1 {
			onEnterFrame = function () {
				if (this.hitTest(_root.Scenez.playerP1) && _root.text_MC.textz._currentframe == 1 && (Key.isDown(13) or Key.isDown(69))) {
					_root.num = this._name.slice(2, 3);
					_root.doFoundSun();
				}
			};
		}
	}
	movieClip 4011	{
		frame 70 {
			stop();
		}
	}
	movieClip 4012	{
		frame 1 {
			onEnterFrame = function () {
				flame._x += _root.winddirectionX;
				flame._y += _root.winddirectionY;
				flame._x += random(4);
				flame._rotation += random(4);
			};
		}
	}
	movieClip 4013	{
		frame 1 {
			gotoAndPlay(random(100));
		}
	}
	movieClip 4015	{
	}
	movieClip 4017	{
	}
	movieClip 4019	{
	}
	movieClip 4020	{
	}
	movieClip 4022	{
	}
	movieClip 4023	{
	}
	movieClip 4027	{
	}
	movieClip 4029	{
	}
	movieClip 4031	{
	}
	movieClip 4033	{
	}
	movieClip 4035	{
	}
	movieClip 4037	{
	}
	movieClip 4040	{
	}
	movieClip 4041	{
		frame 100 {
			stop();
		}
	}
	movieClip 4042	{
		frame 1 {
			stop();
		}
		frame 90 {
			stop();
		}
	}
	movieClip 4045	{
	}
	movieClip 4047	{
	}
	movieClip 4048	{
		frame 1 {
			if (_root.story <= 50) {
				gotoAndPlay(2);
			} else {
				stop();
			}
		}
		frame 173 {
			gotoAndPlay(2);
		}
		frame 194 {
			stop();
		}
	}
	movieClip 4049	{
		instance of movieClip 3838	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
		instance of movieClip 4027	{
			onClipEvent (enterFrame) {
				if (_root.item1 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item1 = true;
					_root.doFoundPotion();
				}
			}
		}
		instance of movieClip 3838	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
	}
	movieClip 4050	{
		instance of movieClip 3838	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
		instance of movieClip 3838	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
		instance of movieClip 3838	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
			}
		}
	}
	movieClip 4052	{
		frame 1 {
			gotoAndPlay(random(3));
		}
	}
	movieClip 4053	{
		frame 1 {
			onEnterFrame = function () {
				if (this.hitTest(_root.Scenez.playerP1) && _root.text_MC.textz._currentframe == 1 && (Key.isDown(13) or Key.isDown(69))) {
					_root.num = this._name.slice(2, 3);
					_root.doFoundRed();
				}
			};
		}
	}
	movieClip 4055	{
	}
	movieClip 4056	{
	}
	movieClip 4066	{
		frame 1 {
			gotoAndStop(random(7) + 1);
		}
	}
	movieClip 4067	{
		frame 1 {
			gotoAndPlay(random(10));
		}
	}
	movieClip 4074	{
	}
	movieClip 4076	{
	}
	movieClip 4078	{
	}
	movieClip 4079	{
	}
	movieClip 4084	{
	}
	movieClip 4086	{
	}
	movieClip 4088	{
	}
	movieClip 4090	{
	}
	movieClip 4092	{
	}
	movieClip 4094	{
	}
	movieClip 4095	{
	}
	movieClip 4097	{
	}
	movieClip 4099	{
	}
	movieClip 4100	{
		frame 1 {
			if (_root.story < 300) {
				storyblock1._y = 105;
			} else {
				storyblock1._y = -900;
			}
		}
	}
	movieClip 4102	{
	}
	movieClip 4103	{
	}
	movieClip 4107	{
	}
	movieClip 4109	{
	}
	movieClip 4111	{
	}
	movieClip 4114	{
	}
	movieClip 4115	{
	}
	movieClip 4117	{
	}
	movieClip 4119	{
	}
	movieClip 4123	{
	}
	movieClip 4125	{
	}
	movieClip 4126	{
	}
	movieClip 4128	{
	}
	movieClip 4130	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock) && (_parent._y + this._height - 210 > _root.player._y or _root.farsight == true)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 4131	{
		instance of movieClip 4130	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock) && (_parent._y + this._height - 210 > _root.player._y or _root.farsight == true)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 4133	{
	}
	movieClip 4135	{
	}
	movieClip 4137	{
	}
	movieClip 4143	{
		frame 1 {
			gotoAndPlay(random(40));
		}
	}
	movieClip 4145	{
	}
	movieClip 4146	{
	}
	movieClip 4147	{
	}
	movieClip 4150	{
	}
	movieClip 4151	{
	}
	movieClip 4152	{
		frame 1 {
			if (_root.story >= 280 && _root.story < 350) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 4154	{
	}
	movieClip 4156	{
	}
	movieClip 4159	{
	}
	movieClip 4162	{
	}
	movieClip 4163	{
	}
	movieClip 4164	{
		frame 1 {
			stop();
		}
	}
	movieClip 4180	{
	}
	movieClip 4182	{
	}
	movieClip 4184	{
	}
	movieClip 4190	{
		frame 1 {
			gotoAndPlay(random(40));
		}
	}
	movieClip 4192	{
	}
	movieClip 4193	{
	}
	movieClip 4195	{
	}
	movieClip 4196	{
	}
	movieClip 4198	{
	}
	movieClip 4202	{
		frame 1 {
			gotoAndPlay(random(5));
		}
	}
	movieClip 4216	{
	}
	movieClip 4218	{
	}
	movieClip 4220	{
	}
	movieClip 4222	{
	}
	movieClip 4224	{
	}
	movieClip 4227	{
	}
	movieClip 4228	{
	}
	movieClip 4232	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 4233	{
		instance of movieClip 4232	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
				if (this.hitTest(_root.Scenez.viewblock) && _parent._y + this._height - 55 > _root.player._y) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 4234	{
	}
	movieClip 4235	{
	}
	movieClip 4236	{
	}
	movieClip 4241	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 4242	{
		instance of movieClip 4241	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 4246	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 4247	{
		instance of movieClip 4246	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 4251	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 4252	{
		instance of movieClip 4251	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 4253	{
	}
	movieClip 4254	{
	}
	movieClip 4255	{
	}
	movieClip 4256	{
	}
	movieClip 4258	{
	}
	movieClip 4259	{
	}
	movieClip 4261	{
	}
	movieClip 4262	{
	}
	movieClip 4263	{
	}
	movieClip 4265	{
	}
	movieClip 4266	{
		instance of movieClip 4265	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe > 9) {
						gotoAndPlay(1);
					}
				}
			}
		}
	}
	movieClip 4267	{
	}
	movieClip 4268	{
	}
	movieClip 4269	{
	}
	movieClip 4275	{
	}
	movieClip 4277	{
	}
	movieClip 4279	{
	}
	movieClip 4281	{
	}
	movieClip 4284	{
	}
	movieClip 4286	{
	}
	movieClip 4290	{
	}
	movieClip 4291	{
	}
	movieClip 4293	{
	}
	movieClip 4296	{
	}
	movieClip 4298	{
	}
	movieClip 4300	{
	}
	movieClip 4303	{
	}
	movieClip 4304	{
	}
	movieClip 4306	{
	}
	movieClip 4309	{
	}
	movieClip 4311	{
	}
	movieClip 4312	{
	}
	movieClip 4315	{
	}
	movieClip 4316	{
	}
	movieClip 4319	{
	}
	movieClip 4321	{
	}
	movieClip 4323	{
	}
	movieClip 4325	{
	}
	movieClip 4328	{
	}
	movieClip 4329	{
		frame 1 {
			stop();
		}
	}
	movieClip 4331	{
	}
	movieClip 4333	{
	}
	movieClip 4335	{
	}
	movieClip 4337	{
	}
	movieClip 4340	{
	}
	movieClip 4341	{
	}
	movieClip 4343	{
	}
	movieClip 4345	{
	}
	movieClip 4347	{
	}
	movieClip 4349	{
	}
	movieClip 4352	{
	}
	movieClip 4353	{
	}
	movieClip 4356	{
	}
	movieClip 4359	{
	}
	movieClip 4361	{
	}
	movieClip 4363	{
	}
	movieClip 4366	{
	}
	movieClip 4368	{
	}
	movieClip 4369	{
	}
	movieClip 4371	{
	}
	movieClip 4374	{
	}
	movieClip 4375	{
		frame 1 {
			stop();
		}
	}
	movieClip 4377	{
	}
	movieClip 4379	{
	}
	movieClip 4381	{
	}
	movieClip 4383	{
	}
	movieClip 4386	{
	}
	movieClip 4387	{
	}
	movieClip 4389	{
	}
	movieClip 4391	{
	}
	movieClip 4393	{
	}
	movieClip 4395	{
	}
	movieClip 4398	{
	}
	movieClip 4399	{
	}
	movieClip 4400	{
	}
	movieClip 4401	{
	}
	movieClip 4403	{
	}
	movieClip 4405	{
	}
	movieClip 4408	{
	}
	movieClip 4409	{
	}
	movieClip 4411	{
	}
	movieClip 4413	{
	}
	movieClip 4414	{
	}
	movieClip 4416	{
	}
	movieClip 4418	{
	}
	movieClip 4421	{
	}
	movieClip 4422	{
		frame 1 {
			stop();
		}
	}
	movieClip 4424	{
	}
	movieClip 4426	{
	}
	movieClip 4428	{
	}
	movieClip 4431	{
	}
	movieClip 4432	{
	}
	movieClip 4434	{
	}
	movieClip 4436	{
	}
	movieClip 4438	{
	}
	movieClip 4440	{
	}
	movieClip 4442	{
	}
	movieClip 4443	{
	}
	movieClip 4445	{
	}
	movieClip 4447	{
	}
	movieClip 4449	{
	}
	movieClip 4451	{
	}
	movieClip 4452	{
	}
	movieClip 4454	{
	}
	movieClip 4456	{
	}
	movieClip 4458	{
	}
	movieClip 4464	{
		frame 1 {
			gotoAndPlay(random(40));
		}
	}
	movieClip 4466	{
	}
	movieClip 4467	{
	}
	movieClip 4470	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 4471	{
		instance of movieClip 4470	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 4474	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock) && _parent._y + this._height - 75 > _root.player._y) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 4475	{
		instance of movieClip 4474	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock) && _parent._y + this._height - 75 > _root.player._y) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 4477	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 4478	{
		instance of movieClip 4477	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 4480	{
		frame 1 {
			if (_root.questlove == 5) {
				ryan._x = 72;
				ryan._y = 250;
				ryan._xscale *= -1;
				_parent.talk14._x = -354;
				_parent.talk14._y = 120;
				_parent.b1.ryanblock._x = 65;
				_parent.b1.ryanblock._y = 370;
			}
			if (_root.questnewintown >= 4) {
				_parent.talk18._y = -900;
				arnir._y = -900;
				_parent.b1.arnirblock._y = -900;
			}
			if (_root.housegrade >= 2) {
				_parent.b1.houselock1._y = -900;
			}
			stop();
		}
	}
	movieClip 4483	{
	}
	movieClip 4485	{
	}
	movieClip 4487	{
	}
	movieClip 4490	{
	}
	movieClip 4492	{
	}
	movieClip 4494	{
	}
	movieClip 4495	{
	}
	movieClip 4498	{
	}
	movieClip 4501	{
	}
	movieClip 4502	{
	}
	movieClip 4503	{
	}
	movieClip 4504	{
	}
	movieClip 4505	{
	}
	movieClip 4506	{
	}
	movieClip 4507	{
	}
	movieClip 4508	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (_root.areascreen == 4) {
				if (this.hitTest(_root.Scenez.viewblock) && (_parent._y + this._height - 290 > _root.player._y or _root.farsight == true)) {
					gotoAndPlay(4);
				}
			} else {
				if (this.hitTest(_root.Scenez.viewblock) && (_parent._y + this._height - 640 > _root.player._y or _root.farsight == true)) {
					gotoAndPlay(4);
				}
			}
		}
	}
	movieClip 4509	{
		instance of movieClip 4508	{
			onClipEvent (enterFrame) {
				if (_root.areascreen == 4) {
					if (this.hitTest(_root.Scenez.viewblock) && (_parent._y + this._height - 290 > _root.player._y or _root.farsight == true)) {
						this.play();
						if (this._currentframe > 6) {
							gotoAndPlay(1);
						}
					}
				} else {
					if (this.hitTest(_root.Scenez.viewblock) && (_parent._y + this._height - 640 > _root.player._y or _root.farsight == true)) {
						this.play();
						if (this._currentframe > 6) {
							gotoAndPlay(1);
						}
					}
				}
			}
		}
	}
	movieClip 4510	{
		frame 1 {
			if (_root.story >= 280 && _root.story < 350) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 4513	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 4514	{
		instance of movieClip 4513	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 4520	{
	}
	movieClip 4522	{
	}
	movieClip 4523	{
		frame 1 {
			stop();
			if (_root.story == 80 or _root.questbrock >= 2 && _root.questbrock <= 9) {
				storyblock1._y = 780;
			} else {
				storyblock1._y = -900;
			}
			if (_root.story >= 90 && _root.questbrock == 1) {
				storyblock8._y = 780;
			} else {
				storyblock8._y = -900;
			}
			if (_root.story == 100 or _root.story == 101 or _root.story == 102 or _root.story == 110) {
				storyblock2._y = 295;
			} else {
				storyblock2._y = -900;
			}
			if (_root.story < 111) {
				storyblock3._y = 955;
			} else {
				storyblock3._y = -900;
			}
			if (_root.story == 110 or _root.story == 271 or _root.story == 280) {
				storyblock4._y = 420;
			} else {
				storyblock4._y = -900;
			}
			if (_root.story >= 120 && _root.story < 130 or _root.story == 300) {
				storyblock5._y = 110;
			} else {
				storyblock5._y = -900;
			}
			if (_root.story >= 260 && _root.story < 370) {
				storyblock6._y = 895;
				storyblock7._y = 125;
			} else {
				storyblock6._y = -900;
				storyblock7._y = -900;
			}
			if (_root.story >= 323 && _root.story <= 325) {
				storyblock9._y = 190;
			} else {
				storyblock9._y = -900;
			}
			if (_root.darconstory <= 50) {
				dblock._y = 665;
			} else {
				dblock._y = -900;
			}
			if (_root.darconstory >= 40 && _root.darconstory <= 50) {
				dstoryblock1._y = 705;
				dstoryblock2._y = 615;
			} else {
				dstoryblock1._y = -900;
				dstoryblock2._y = -900;
			}
			if (_root.housewardrobe == true) {
				shelf._y = 511;
			} else {
				shelf._y = -900;
			}
			if (_root.housegrade == 1) {
				houselock1._y = 500;
			} else {
				houselock1._y = -900;
			}
			if (_root.darconstory >= 60 or _root.story > 321) {
				houselock2._y = -900;
			} else {
				houselock2._y = 290;
			}
			if (_root.darconstory > 20) {
				houselock4._y = -900;
			} else {
				houselock4._y = 666;
			}
		}
	}
	movieClip 4527	{
	}
	movieClip 4529	{
	}
	movieClip 4534	{
	}
	movieClip 4536	{
	}
	movieClip 4538	{
	}
	movieClip 4541	{
	}
	movieClip 4544	{
	}
	movieClip 4546	{
	}
	movieClip 4549	{
	}
	movieClip 4551	{
	}
	movieClip 4553	{
		frame 1 {
			if (_root.questbeer >= 5) {
				if (_root.story >= 370) {
					gotoAndStop(206);
				} else {
					gotoAndStop(205);
				}
			}
		}
		frame 189 {
			gotoAndPlay(1);
		}
		frame 202 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('bump');
				_root.sound1.start();
			}
		}
		frame 205 {
			stop();
		}
		frame 206 {
			stop();
		}
	}
	movieClip 4560	{
		frame 1 {
			gotoAndPlay(random(5));
		}
	}
	movieClip 4561	{
		frame 1 {
			if (_root.darkscene == false) {
				light._visible = false;
			}
		}
	}
	movieClip 4563	{
		frame 1 {
			if (_root.story == 100 or _root.story == 101 or _root.story == 110) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 4566	{
	}
	movieClip 4568	{
	}
	movieClip 4570	{
	}
	movieClip 4572	{
	}
	movieClip 4575	{
	}
	movieClip 4576	{
		frame 1 {
			stop();
		}
	}
	movieClip 4580	{
	}
	movieClip 4581	{
	}
	movieClip 4583	{
	}
	movieClip 4586	{
	}
	movieClip 4587	{
		frame 1 {
			stop();
		}
		frame 36 {
			stop();
		}
	}
	movieClip 4588	{
	}
	movieClip 4589	{
	}
	movieClip 4591	{
	}
	movieClip 4593	{
	}
	movieClip 4595	{
	}
	movieClip 4597	{
	}
	movieClip 4600	{
	}
	movieClip 4601	{
	}
	movieClip 4603	{
	}
	movieClip 4605	{
	}
	movieClip 4607	{
	}
	movieClip 4608	{
	}
	movieClip 4610	{
	}
	movieClip 4612	{
	}
	movieClip 4614	{
	}
	movieClip 4616	{
	}
	movieClip 4619	{
	}
	movieClip 4620	{
	}
	movieClip 4621	{
	}
	movieClip 4622	{
		frame 1 {
			if (_root.story < 102) {
				gotoAndStop(3);
			} else {
				if (_root.story == 280 or _root.story == 290 or _root.story == 291 or _root.story >= 300 && _root.story < 320) {
					gotoAndStop(5);
				} else {
					if (_root.story == 292) {
						gotoAndStop(6);
					} else {
						if (_root.story == 102 or _root.story == 281) {
							gotoAndStop(2);
						} else {
							if (_root.story >= 330 && _root.questdrunk < 3) {
								gotoAndStop(4);
							} else {
								stop();
							}
						}
					}
				}
			}
		}
	}
	movieClip 4623	{
	}
	movieClip 4624	{
	}
	movieClip 4625	{
	}
	movieClip 4626	{
	}
	movieClip 4627	{
	}
	movieClip 4628	{
	}
	movieClip 4629	{
	}
	movieClip 4631	{
	}
	movieClip 4632	{
	}
	movieClip 4635	{
	}
	movieClip 4636	{
		frame 1 {
			stop();
		}
	}
	movieClip 4637	{
	}
	movieClip 4639	{
	}
	movieClip 4640	{
	}
	movieClip 4642	{
	}
	movieClip 4644	{
	}
	movieClip 4646	{
	}
	movieClip 4649	{
	}
	movieClip 4651	{
	}
	movieClip 4653	{
	}
	movieClip 4656	{
	}
	movieClip 4657	{
	}
	movieClip 4660	{
	}
	movieClip 4662	{
	}
	movieClip 4664	{
	}
	movieClip 4666	{
	}
	movieClip 4668	{
	}
	movieClip 4671	{
	}
	movieClip 4672	{
		frame 1 {
			if (_root.questkidnap >= 6) {
				gotoAndStop(50);
			}
		}
		frame 48 {
			gotoAndPlay(1);
		}
		frame 49 {
			stop();
		}
		frame 50 {
			stop();
		}
	}
	movieClip 4674	{
	}
	movieClip 4676	{
	}
	movieClip 4678	{
	}
	movieClip 4680	{
	}
	movieClip 4683	{
	}
	movieClip 4684	{
	}
	movieClip 4685	{
	}
	movieClip 4690	{
	}
	movieClip 4691	{
	}
	movieClip 4693	{
	}
	movieClip 4698	{
	}
	movieClip 4700	{
	}
	movieClip 4702	{
	}
	movieClip 4704	{
	}
	movieClip 4705	{
	}
	movieClip 4706	{
		frame 1 {
			if (_root.story >= 323 && _root.story <= 325) {
				gotoAndStop(49);
			}
			stop();
		}
		frame 49 {
			stop();
		}
	}
	movieClip 4707	{
	}
	movieClip 4709	{
	}
	movieClip 4711	{
	}
	movieClip 4712	{
	}
	movieClip 4715	{
	}
	movieClip 4717	{
	}
	movieClip 4719	{
	}
	movieClip 4720	{
	}
	movieClip 4722	{
	}
	movieClip 4724	{
	}
	movieClip 4725	{
	}
	movieClip 4727	{
	}
	movieClip 4729	{
	}
	movieClip 4732	{
	}
	movieClip 4733	{
	}
	movieClip 4735	{
	}
	movieClip 4737	{
	}
	movieClip 4739	{
	}
	movieClip 4741	{
	}
	movieClip 4744	{
	}
	movieClip 4745	{
	}
	movieClip 4747	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock) && _parent._y + this._height - 205 > _root.player._y) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 4748	{
		instance of movieClip 4747	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
				if (this.hitTest(_root.Scenez.viewblock) && _parent._y + this._height - 205 > _root.player._y) {
					this.play();
					if (this._currentframe > 6) {
						gotoAndPlay(1);
					}
				}
			}
		}
	}
	movieClip 4749	{
	}
	movieClip 4751	{
	}
	movieClip 4752	{
	}
	movieClip 4754	{
	}
	movieClip 4756	{
	}
	movieClip 4758	{
	}
	movieClip 4759	{
	}
	movieClip 4761	{
	}
	movieClip 4762	{
	}
	movieClip 4764	{
	}
	movieClip 4768	{
	}
	movieClip 4770	{
	}
	movieClip 4772	{
	}
	movieClip 4774	{
	}
	movieClip 4777	{
	}
	movieClip 4778	{
	}
	movieClip 4780	{
	}
	movieClip 4782	{
	}
	movieClip 4784	{
	}
	movieClip 4786	{
	}
	movieClip 4789	{
	}
	movieClip 4790	{
	}
	movieClip 4791	{
	}
	movieClip 4793	{
	}
	movieClip 4795	{
	}
	movieClip 4797	{
	}
	movieClip 4799	{
	}
	movieClip 4802	{
	}
	movieClip 4803	{
	}
	movieClip 4804	{
	}
	movieClip 4806	{
	}
	movieClip 4811	{
	}
	movieClip 4813	{
	}
	movieClip 4814	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock) && _parent._y + this._height - 205 > _root.player._y) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 4815	{
		instance of movieClip 4814	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.cam)) {
					this._visible = true;
				} else {
					this._visible = false;
				}
				if (this.hitTest(_root.Scenez.viewblock) && _parent._y + this._height - 205 > _root.player._y) {
					this.play();
					if (this._currentframe > 6) {
						gotoAndPlay(1);
					}
				}
			}
		}
	}
	movieClip 4816	{
		instance of movieClip 3827	{
			onClipEvent (enterFrame) {
				if (_root.item12 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item12 = true;
					_root.foundgold = 15;
					_root.doFoundGold();
				}
			}
		}
	}
	movieClip 4817	{
	}
	movieClip 4819	{
	}
	movieClip 4821	{
	}
	movieClip 4824	{
	}
	movieClip 4825	{
	}
	movieClip 4827	{
	}
	movieClip 4829	{
	}
	movieClip 4831	{
	}
	movieClip 4833	{
	}
	movieClip 4836	{
	}
	movieClip 4837	{
		frame 1 {
			stop();
		}
	}
	movieClip 4839	{
	}
	movieClip 4840	{
	}
	movieClip 4842	{
	}
	movieClip 4843	{
	}
	movieClip 4846	{
	}
	movieClip 4847	{
		frame 1 {
			stop();
		}
	}
	movieClip 4848	{
	}
	movieClip 4851	{
	}
	movieClip 4853	{
	}
	movieClip 4855	{
	}
	movieClip 4858	{
	}
	movieClip 4859	{
	}
	movieClip 4861	{
	}
	movieClip 4863	{
	}
	movieClip 4865	{
	}
	movieClip 4867	{
	}
	movieClip 4870	{
	}
	movieClip 4871	{
	}
	movieClip 4872	{
	}
	movieClip 4873	{
	}
	movieClip 4874	{
		frame 1 {
			if (_root.housecarpet == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 4876	{
	}
	movieClip 4877	{
		frame 1 {
			if (_root.housepainting == false) {
				gotoAndStop(1);
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 4878	{
		frame 1 {
			if (_root.housewardrobe == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 4879	{
		frame 1 {
			if (_root.housepainting == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 4880	{
	}
	movieClip 4881	{
		frame 1 {
			if (_root.housechair == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 4882	{
		frame 1 {
			if (_root.housecandelebra == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 4883	{
	}
	movieClip 4885	{
	}
	movieClip 4886	{
	}
	movieClip 4888	{
	}
	movieClip 4892	{
	}
	movieClip 4893	{
	}
	movieClip 4894	{
	}
	movieClip 4895	{
		frame 1 {
			gotoAndStop(_root.housegrade);
		}
	}
	movieClip 4896	{
	}
	movieClip 4898	{
	}
	movieClip 4900	{
	}
	movieClip 4902	{
	}
	movieClip 4904	{
	}
	movieClip 4907	{
	}
	movieClip 4908	{
	}
	movieClip 4909	{
		frame 1 {
			if (_root.questfindsword < 7) {
				edna._visible = false;
			}
		}
	}
	movieClip 4910	{
	}
	movieClip 4912	{
	}
	movieClip 4913	{
	}
	movieClip 4916	{
	}
	movieClip 4917	{
	}
	movieClip 4919	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 4920	{
		instance of movieClip 4919	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 4921	{
	}
	movieClip 4922	{
	}
	movieClip 4924	{
	}
	movieClip 4926	{
	}
	movieClip 4928	{
	}
	movieClip 4930	{
	}
	movieClip 4933	{
	}
	movieClip 4934	{
	}
	movieClip 4935	{
	}
	movieClip 4936	{
	}
	movieClip 4937	{
	}
	movieClip 4939	{
	}
	movieClip 4941	{
	}
	movieClip 4944	{
	}
	movieClip 4945	{
	}
	movieClip 4946	{
	}
	movieClip 4948	{
	}
	movieClip 4950	{
	}
	movieClip 4953	{
	}
	movieClip 4954	{
	}
	movieClip 4955	{
	}
	movieClip 4956	{
	}
	movieClip 4957	{
	}
	movieClip 4959	{
	}
	movieClip 4962	{
	}
	movieClip 4964	{
	}
	movieClip 4965	{
		frame 1 {
			stop();
		}
	}
	movieClip 4966	{
	}
	movieClip 4970	{
	}
	movieClip 4971	{
	}
	movieClip 4973	{
	}
	movieClip 4975	{
	}
	movieClip 4977	{
	}
	movieClip 4979	{
	}
	movieClip 4982	{
	}
	movieClip 4984	{
	}
	movieClip 4986	{
	}
	movieClip 4988	{
	}
	movieClip 4991	{
	}
	movieClip 4992	{
		frame 1 {
			if (_root.questbrock >= 3) {
				gotoAndStop(51);
			}
		}
		frame 20 {
			if (_root.anvilloop == true && _root.sfxmute == false) {
				_root.sound3.attachSound('anvil');
				_root.sound3.start();
			}
		}
		frame 50 {
			gotoAndPlay(1);
		}
		frame 51 {
			stop();
		}
		frame 52 {
			_root.cinematic = true;
		}
		frame 71 {
			if (_root.anvilloop == true && _root.sfxmute == false) {
				_root.sound3.attachSound('anvil');
				_root.sound3.start();
			}
		}
		frame 91 {
			if (_root.anvilloop == true && _root.sfxmute == false) {
				_root.sound3.attachSound('anvil');
				_root.sound3.start();
			}
		}
		frame 97 {
			if (_root.currentpage == 2) {
				_root.doTextpage();
			}
		}
		frame 106 {
			chance = random(5) + 1;
			if (chance == 1) {
				_root.page1 = 'Brock: There! It looks new and shiny!';
			} else {
				if (chance == 2) {
					_root.page1 = 'Brock: Finished!';
				} else {
					if (chance == 3) {
						_root.page1 = 'Brock: There we go!';
					} else {
						if (chance == 4) {
							_root.page1 = 'Brock: I think I\'m done with it!';
						} else {
							if (chance == 5) {
								_root.page1 = 'Brock: The sword is sharpened!';
							}
						}
					}
				}
			}
			_root.doStartText();
			_root.doSmith();
			gotoAndStop(51);
		}
	}
	movieClip 4994	{
	}
	movieClip 4995	{
	}
	movieClip 4997	{
	}
	movieClip 4999	{
	}
	movieClip 5001	{
	}
	movieClip 5003	{
	}
	movieClip 5006	{
	}
	movieClip 5007	{
		frame 1 {
			stop();
		}
	}
	movieClip 5008	{
	}
	movieClip 5009	{
	}
	movieClip 5010	{
	}
	movieClip 5012	{
	}
	movieClip 5014	{
	}
	movieClip 5016	{
	}
	movieClip 5019	{
	}
	movieClip 5020	{
	}
	movieClip 5021	{
	}
	movieClip 5023	{
	}
	movieClip 5026	{
	}
	movieClip 5028	{
	}
	movieClip 5030	{
	}
	movieClip 5033	{
	}
	movieClip 5034	{
	}
	movieClip 5035	{
	}
	movieClip 5036	{
	}
	movieClip 5037	{
		frame 1 {
			if (_root.questreturnbook >= 5) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 5038	{
	}
	movieClip 5040	{
	}
	movieClip 5042	{
	}
	movieClip 5044	{
	}
	movieClip 5046	{
	}
	movieClip 5047	{
	}
	movieClip 5048	{
	}
	movieClip 5050	{
	}
	movieClip 5052	{
	}
	movieClip 5054	{
	}
	movieClip 5057	{
	}
	movieClip 5058	{
	}
	movieClip 5059	{
	}
	movieClip 5060	{
		frame 1 {
			if (_root.questnewintown == 5) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 5062	{
	}
	movieClip 5064	{
	}
	movieClip 5066	{
	}
	movieClip 5068	{
	}
	movieClip 5071	{
	}
	movieClip 5072	{
		frame 1 {
			stop();
		}
	}
	movieClip 5073	{
	}
	movieClip 5075	{
	}
	movieClip 5076	{
	}
	movieClip 5077	{
	}
	movieClip 5078	{
		frame 1 {
			stop();
			if (_root.story == 280) {
				houselock8._y = -900;
			} else {
				houselock8._y = 335;
			}
		}
	}
	movieClip 5080	{
	}
	movieClip 5081	{
	}
	movieClip 5083	{
	}
	movieClip 5084	{
	}
	movieClip 5087	{
	}
	movieClip 5088	{
	}
	movieClip 5089	{
	}
	movieClip 5091	{
	}
	movieClip 5092	{
	}
	movieClip 5093	{
	}
	movieClip 5094	{
	}
	movieClip 5096	{
	}
	movieClip 5098	{
	}
	movieClip 5101	{
	}
	movieClip 5102	{
	}
	movieClip 5103	{
	}
	movieClip 5105	{
	}
	movieClip 5106	{
	}
	movieClip 5107	{
	}
	movieClip 5109	{
	}
	movieClip 5111	{
	}
	movieClip 5113	{
	}
	movieClip 5115	{
	}
	movieClip 5118	{
	}
	movieClip 5119	{
	}
	movieClip 5120	{
	}
	movieClip 5125	{
	}
	movieClip 5126	{
	}
	movieClip 5127	{
	}
	movieClip 5129	{
	}
	movieClip 5131	{
	}
	movieClip 5133	{
	}
	movieClip 5134	{
	}
	movieClip 5137	{
	}
	movieClip 5138	{
	}
	movieClip 5139	{
		instance of movieClip 4265	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe > 9) {
						gotoAndPlay(1);
					}
				}
			}
		}
		instance of movieClip 4265	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe > 9) {
						gotoAndPlay(1);
					}
				}
			}
		}
	}
	movieClip 5142	{
	}
	movieClip 5145	{
	}
	movieClip 5147	{
	}
	movieClip 5149	{
	}
	movieClip 5152	{
	}
	movieClip 5153	{
	}
	movieClip 5157	{
		frame 1 {
			onEnterFrame = function () {
				namez = this._name.split('t', 2);
				if (_root['switchzn' + namez[1]] == true) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	movieClip 5158	{
	}
	movieClip 5159	{
	}
	movieClip 5161	{
	}
	movieClip 5163	{
	}
	movieClip 5166	{
	}
	movieClip 5167	{
	}
	movieClip 5168	{
	}
	movieClip 5169	{
	}
	movieClip 5171	{
	}
	movieClip 5174	{
	}
	movieClip 5175	{
	}
	movieClip 5176	{
	}
	movieClip 5181	{
		frame 1 {
			gotoAndPlay(random(4));
		}
		frame 9 {
			gotoAndPlay(random(4) + 10);
		}
	}
	movieClip 5189	{
	}
	movieClip 5191	{
		frame 1 {
			onEnterFrame = function () {
				if (_root['switchz' + this._name] == true) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	movieClip 5193	{
	}
	movieClip 5198	{
	}
	movieClip 5199	{
	}
	movieClip 5201	{
	}
	movieClip 5203	{
	}
	movieClip 5205	{
	}
	movieClip 5207	{
	}
	movieClip 5210	{
	}
	movieClip 5211	{
	}
	movieClip 5212	{
	}
	movieClip 5214	{
		frame 1 {
			onEnterFrame = function () {
				if (this._name == 'n2X' && _root.switchzn2 == true) {
					gotoAndStop(1);
				} else {
					if (this._name == 'n2X' && _root.switchzn2 == false) {
						gotoAndStop(2);
					} else {
						if (_root['switchz' + this._name] == true) {
							gotoAndStop(2);
						} else {
							gotoAndStop(1);
						}
					}
				}
			};
		}
	}
	movieClip 5215	{
	}
	movieClip 5216	{
	}
	movieClip 5218	{
	}
	movieClip 5220	{
	}
	movieClip 5223	{
	}
	movieClip 5224	{
	}
	movieClip 5225	{
	}
	movieClip 5226	{
		frame 1 {
			if (_root.story < 350) {
				storyblock4._y = 745;
			} else {
				storyblock4._y = -900;
			}
			onEnterFrame = function () {
				if (_root.switchzn1 == false) {
					block1._y = 1165;
				} else {
					block1._y = -900;
				}
				if (_root.switchzn2 == false) {
					block2._y = 525;
					block2X._y = -900;
				} else {
					block2._y = -900;
					block2X._y = 585;
				}
				if (_root.switchzn3 == false) {
					block3._y = 585;
				} else {
					block3._y = -900;
				}
				if (_root.switchzn4 == false) {
					block4._y = 340;
				} else {
					block4._y = -900;
				}
				if (_root.switchzn5 == false) {
					block5._y = 222;
				} else {
					block5._y = -900;
				}
				if (_root.switchzn6 == false) {
					block6._y = 635;
					block7._y = 635;
					block8._y = 995;
				} else {
					block6._y = -900;
					block7._y = -900;
					block8._y = -900;
				}
			};
		}
	}
	movieClip 5227	{
	}
	movieClip 5232	{
	}
	movieClip 5235	{
	}
	movieClip 5240	{
	}
	movieClip 5243	{
		frame 1 {
			stop();
		}
		frame 466 {
			stop();
		}
	}
	movieClip 5252	{
		frame 1 {
			stop();
		}
		frame 276 {
			_root.sound4.attachSound('ominous');
			_root.sound4.start();
		}
		frame 430 {
			_root.doStartText();
		}
		frame 560 {
			stop();
		}
	}
	movieClip 5253	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 5254	{
	}
	movieClip 5259	{
		frame 29 {
			chance = random(10);
			if (chance != 1) {
				gotoAndPlay(1);
			}
		}
		frame 99 {
			chance = random(10);
			if (chance != 1) {
				gotoAndPlay(50);
			}
		}
	}
	movieClip 5261	{
	}
	movieClip 5265	{
	}
	movieClip 5266	{
	}
	movieClip 5268	{
	}
	movieClip 5270	{
	}
	movieClip 5273	{
	}
	movieClip 5274	{
	}
	movieClip 5275	{
		frame 1 {
			if (_root.story <= 220 or _root.questgnome >= 4) {
				gnome._visible = false;
			}
		}
	}
	movieClip 5276	{
	}
	movieClip 5278	{
	}
	movieClip 5279	{
	}
	movieClip 5282	{
	}
	movieClip 5285	{
		frame 1 {
			gotoAndStop(2);
		}
	}
	movieClip 5290	{
	}
	movieClip 5295	{
	}
	movieClip 5299	{
		frame 1 {
			gotoAndStop(random(5) + 1);
		}
	}
	movieClip 5300	{
		frame 1 {
			gotoAndPlay(random(100));
		}
	}
	movieClip 5301	{
		frame 1 {
			if (_root.story == 220 or _root.story == 221) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 5305	{
		frame 1 {
			stop();
		}
		frame 24 {
			stop();
		}
	}
	movieClip 5307	{
	}
	movieClip 5308	{
	}
	movieClip 5311	{
		frame 1 {
			if (_root.story >= 230) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 5313	{
	}
	movieClip 5315	{
	}
	movieClip 5316	{
	}
	movieClip 5318	{
	}
	movieClip 5320	{
	}
	movieClip 5323	{
	}
	movieClip 5324	{
	}
	movieClip 5325	{
		frame 1 {
			stop();
		}
	}
	movieClip 5326	{
	}
	movieClip 5328	{
	}
	movieClip 5329	{
	}
	movieClip 5331	{
		frame 1 {
			if (_root.story >= 230) {
				storyblock1._y = 710;
			} else {
				storyblock1._y = -900;
			}
		}
	}
	movieClip 5332	{
	}
	movieClip 5336	{
		frame 1 {
			if (_root.story > 200) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 5337	{
	}
	movieClip 5342	{
	}
	movieClip 5343	{
	}
	movieClip 5347	{
	}
	movieClip 5353	{
		frame 1 {
			gotoAndPlay(random(250));
		}
		frame 300 {
			stop();
		}
	}
	movieClip 5354	{
		frame 1 {
			gotoAndPlay(random(200));
		}
	}
	movieClip 5355	{
	}
	movieClip 5357	{
	}
	movieClip 5358	{
	}
	movieClip 5363	{
	}
	movieClip 5368	{
	}
	movieClip 5369	{
		frame 1 {
			gotoAndPlay(random(60));
		}
	}
	movieClip 5372	{
	}
	movieClip 5373	{
		frame 1 {
			random(20);
		}
	}
	movieClip 5375	{
	}
	movieClip 5377	{
	}
	movieClip 5379	{
	}
	movieClip 5381	{
	}
	movieClip 5383	{
	}
	movieClip 5385	{
	}
	movieClip 5387	{
	}
	movieClip 5390	{
	}
	movieClip 5391	{
		frame 4 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 12 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
	}
	movieClip 5393	{
	}
	movieClip 5395	{
	}
	movieClip 5397	{
	}
	movieClip 5399	{
	}
	movieClip 5401	{
	}
	movieClip 5403	{
	}
	movieClip 5404	{
	}
	movieClip 5405	{
		frame 5 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 12 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 14 {
			gotoAndPlay(1);
		}
	}
	movieClip 5407	{
	}
	movieClip 5408	{
	}
	movieClip 5409	{
	}
	movieClip 5410	{
	}
	movieClip 5413	{
	}
	movieClip 5414	{
	}
	movieClip 5415	{
		frame 5 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 12 {
			if (_root.sfxmute == false && _parent._parent.panm == 1) {
				_root.doFootstep();
			}
		}
		frame 14 {
			gotoAndPlay(1);
		}
	}
	movieClip 5417	{
	}
	movieClip 5419	{
	}
	movieClip 5420	{
	}
	movieClip 5422	{
	}
	movieClip 5423	{
	}
	movieClip 5424	{
		frame 1 {
			if (_root.story < 160) {
				gotoAndStop(5);
			}
		}
	}
	movieClip 5426	{
	}
	movieClip 5428	{
	}
	movieClip 5430	{
	}
	movieClip 5432	{
	}
	movieClip 5434	{
	}
	movieClip 5436	{
	}
	movieClip 5438	{
	}
	movieClip 5440	{
	}
	movieClip 5443	{
	}
	movieClip 5444	{
	}
	movieClip 5445	{
		frame 4 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 13 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
	}
	movieClip 5446	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 8 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal2');
				_root.sound1.start();
			}
		}
		frame 16 {
			gotoAndStop(4);
		}
	}
	movieClip 5447	{
		frame 1 {
			if (_root.story < 173 or _root.story > 181) {
				dion._visible = false;
			} else {
				dion._visible = true;
				dion.gotoAndStop(2);
			}
			if (_root.story < 173 or _root.story > 174) {
				patrick._visible = false;
			} else {
				patrick._visible = true;
			}
		}
	}
	movieClip 5448	{
	}
	movieClip 5450	{
		frame 1 {
			random(40);
		}
	}
	movieClip 5451	{
	}
	movieClip 5454	{
	}
	movieClip 5456	{
	}
	movieClip 5458	{
	}
	movieClip 5460	{
	}
	movieClip 5463	{
	}
	movieClip 5464	{
	}
	movieClip 5466	{
	}
	movieClip 5468	{
	}
	movieClip 5470	{
	}
	movieClip 5472	{
	}
	movieClip 5473	{
	}
	movieClip 5474	{
		frame 1 {
			if (_root.questhorse == 3) {
				gotoAndStop(3);
			} else {
				if (_root.questhorse == 4) {
					stop();
				} else {
					gotoAndStop(2);
				}
			}
		}
	}
	movieClip 5475	{
	}
	movieClip 5477	{
		frame 1 {
			if (_root.story < 163 or _root.story > 164) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 5478	{
		frame 1 {
			if (_root.story < 163 or _root.story > 164) {
				dionblock._y = -900;
			} else {
				dionblock._y = 330;
			}
			if (_root.questhorse < 4) {
				horseblock1._y = 210;
				horseblock2._y = 230;
			} else {
				horseblock1._y = -900;
				horseblock2._y = -900;
			}
		}
	}
	movieClip 5483	{
	}
	movieClip 5484	{
	}
	movieClip 5486	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 5487	{
		instance of movieClip 5486	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 5488	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 5489	{
		instance of movieClip 5488	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 5490	{
	}
	movieClip 5491	{
	}
	movieClip 5492	{
	}
	movieClip 5493	{
	}
	movieClip 5495	{
	}
	movieClip 5502	{
	}
	movieClip 5504	{
	}
	movieClip 5506	{
	}
	movieClip 5508	{
	}
	movieClip 5511	{
	}
	movieClip 5512	{
	}
	movieClip 5514	{
	}
	movieClip 5516	{
	}
	movieClip 5518	{
	}
	movieClip 5521	{
	}
	movieClip 5529	{
	}
	movieClip 5530	{
	}
	movieClip 5532	{
	}
	movieClip 5534	{
	}
	movieClip 5536	{
	}
	movieClip 5539	{
	}
	movieClip 5540	{
		frame 1 {
			stop();
		}
	}
	movieClip 5542	{
	}
	movieClip 5544	{
	}
	movieClip 5546	{
	}
	movieClip 5548	{
	}
	movieClip 5550	{
	}
	movieClip 5552	{
	}
	movieClip 5554	{
	}
	movieClip 5557	{
	}
	movieClip 5558	{
	}
	movieClip 5560	{
	}
	movieClip 5562	{
	}
	movieClip 5564	{
	}
	movieClip 5566	{
	}
	movieClip 5569	{
	}
	movieClip 5570	{
	}
	movieClip 5572	{
	}
	movieClip 5574	{
	}
	movieClip 5576	{
	}
	movieClip 5578	{
	}
	movieClip 5581	{
	}
	movieClip 5582	{
		frame 1 {
			stop();
		}
	}
	movieClip 5583	{
		frame 1 {
			if (_root.housegrade2 > 1) {
				note._visible = false;
			}
		}
	}
	movieClip 5585	{
	}
	movieClip 5587	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 5588	{
		instance of movieClip 5587	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 5589	{
	}
	movieClip 5590	{
	}
	movieClip 5591	{
	}
	movieClip 5592	{
	}
	movieClip 5594	{
	}
	movieClip 5596	{
	}
	movieClip 5599	{
	}
	movieClip 5600	{
	}
	movieClip 5601	{
	}
	movieClip 5602	{
		frame 1 {
			if (_root.questhorse >= 3) {
				clive._visible = false;
			}
		}
	}
	movieClip 5604	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 5605	{
		instance of movieClip 5604	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 5607	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (this.hitTest(_root.Scenez.viewblock)) {
				gotoAndPlay(4);
			}
		}
	}
	movieClip 5608	{
		instance of movieClip 5607	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.viewblock)) {
					this.play();
					if (this._currentframe >= 16) {
						gotoAndPlay(1);
					} else {
						if (this._currentframe > 5 && this._currentframe < 16) {
							gotoAndPlay(4);
						}
					}
				}
			}
		}
	}
	movieClip 5609	{
	}
	movieClip 5610	{
		frame 1 {
			stop();
			if (_root.housegrade2 == 1) {
				houselock1._y = 445;
			} else {
				houselock1._y = -900;
			}
			if (_root.housegrade2 < 3) {
				housegradeblock1._y = -900;
				housegradeblock2._y = -900;
			} else {
				housegradeblock1._y = 305;
				housegradeblock2._y = 420;
			}
			if (_root.story >= 155) {
				guardzblock._y = -900;
			} else {
				guardzblock._y = 440;
			}
			storyblock1._y = -900;
			if (_root.story >= 160 && _root.story <= 171) {
				storyblock2._y = 485;
			} else {
				storyblock2._y = -900;
			}
			if (_root.story < 155) {
				guardblock._y = 433;
			} else {
				guardblock._y = -900;
			}
			if (_root.story >= 143 && _root.story < 146) {
				storyblock3._y = 478;
			} else {
				storyblock3._y = -900;
			}
			if (_root.story < 150) {
				storyblock7._y = 470;
			} else {
				storyblock7._y = -900;
			}
			if (_root.story >= 151 && _root.story < 160) {
				storyblock4._y = 365;
				storyblock5._y = 480;
			} else {
				storyblock4._y = -900;
				storyblock5._y = -900;
			}
			if (_root.story < 160) {
				storyblock6._y = 299;
			} else {
				storyblock6._y = -900;
			}
			if (_root.questfriend < 4 or _root.questfriend >= 10) {
				millblock._y = 650;
			} else {
				millblock._y = -900;
			}
			if (_root.questfriend <= 4 or _root.questfriend >= 10) {
				millblockX._y = 690;
			} else {
				millblockX._y = -900;
			}
			if (_root.questfriend <= 5 or _root.questfriend >= 10) {
				millblock2._y = 610;
			} else {
				millblock2._y = -900;
			}
			if (_root.questhorse < 3) {
				cliveblock._y = 567;
			} else {
				cliveblock._y = -900;
			}
		}
	}
	movieClip 5611	{
	}
	movieClip 5613	{
	}
	movieClip 5615	{
	}
	movieClip 5617	{
	}
	movieClip 5620	{
	}
	movieClip 5621	{
	}
	movieClip 5623	{
	}
	movieClip 5625	{
	}
	movieClip 5627	{
	}
	movieClip 5630	{
	}
	movieClip 5631	{
	}
	movieClip 5632	{
	}
	movieClip 5634	{
	}
	movieClip 5636	{
	}
	movieClip 5638	{
	}
	movieClip 5640	{
	}
	movieClip 5643	{
	}
	movieClip 5644	{
	}
	movieClip 5646	{
	}
	movieClip 5648	{
	}
	movieClip 5650	{
	}
	movieClip 5651	{
	}
	movieClip 5652	{
	}
	movieClip 5653	{
	}
	movieClip 5654	{
	}
	movieClip 5655	{
	}
	movieClip 5657	{
	}
	movieClip 5659	{
	}
	movieClip 5662	{
	}
	movieClip 5663	{
	}
	movieClip 5664	{
	}
	movieClip 5666	{
	}
	movieClip 5668	{
	}
	movieClip 5670	{
	}
	movieClip 5672	{
	}
	movieClip 5675	{
	}
	movieClip 5676	{
	}
	movieClip 5677	{
	}
	movieClip 5678	{
	}
	movieClip 5680	{
	}
	movieClip 5682	{
	}
	movieClip 5684	{
	}
	movieClip 5686	{
	}
	movieClip 5689	{
	}
	movieClip 5690	{
	}
	movieClip 5691	{
	}
	movieClip 5693	{
	}
	movieClip 5695	{
	}
	movieClip 5697	{
	}
	movieClip 5700	{
	}
	movieClip 5701	{
	}
	movieClip 5702	{
	}
	movieClip 5704	{
	}
	movieClip 5706	{
	}
	movieClip 5708	{
	}
	movieClip 5710	{
	}
	movieClip 5713	{
	}
	movieClip 5714	{
	}
	movieClip 5715	{
	}
	movieClip 5717	{
	}
	movieClip 5719	{
	}
	movieClip 5720	{
	}
	movieClip 5721	{
	}
	movieClip 5723	{
	}
	movieClip 5725	{
	}
	movieClip 5727	{
	}
	movieClip 5730	{
	}
	movieClip 5731	{
	}
	movieClip 5733	{
	}
	movieClip 5734	{
	}
	movieClip 5735	{
	}
	movieClip 5737	{
	}
	movieClip 5739	{
	}
	movieClip 5741	{
	}
	movieClip 5743	{
	}
	movieClip 5746	{
	}
	movieClip 5747	{
	}
	movieClip 5748	{
	}
	movieClip 5749	{
	}
	movieClip 5751	{
	}
	movieClip 5753	{
	}
	movieClip 5756	{
	}
	movieClip 5757	{
	}
	movieClip 5759	{
	}
	movieClip 5761	{
	}
	movieClip 5764	{
	}
	movieClip 5765	{
	}
	movieClip 5767	{
	}
	movieClip 5769	{
	}
	movieClip 5771	{
	}
	movieClip 5774	{
	}
	movieClip 5775	{
	}
	movieClip 5776	{
	}
	movieClip 5778	{
	}
	movieClip 5780	{
	}
	movieClip 5782	{
	}
	movieClip 5783	{
	}
	movieClip 5784	{
		frame 1 {
			if (_root.story >= 155) {
				guard._visible = false;
			}
		}
	}
	movieClip 5785	{
		frame 1 {
			if (_root.housegrade2 < 3) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 5786	{
	}
	movieClip 5788	{
	}
	movieClip 5790	{
	}
	movieClip 5792	{
	}
	movieClip 5795	{
	}
	movieClip 5796	{
	}
	movieClip 5797	{
	}
	movieClip 5798	{
		frame 1 {
			if (_root.housegrade2 < 3) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 5799	{
	}
	movieClip 5800	{
	}
	movieClip 5802	{
	}
	movieClip 5804	{
	}
	movieClip 5806	{
	}
	movieClip 5809	{
	}
	movieClip 5810	{
		frame 20 {
			if (_root.anvilloop == true && _root.sfxmute == false) {
				_root.sound3.attachSound('anvil');
				_root.sound3.start();
			}
		}
		frame 49 {
			gotoAndPlay(1);
		}
		frame 50 {
			_root.cinematic = true;
		}
		frame 69 {
			if (_root.anvilloop == true && _root.sfxmute == false) {
				_root.sound3.attachSound('anvil');
				_root.sound3.start();
			}
		}
		frame 89 {
			if (_root.anvilloop == true && _root.sfxmute == false) {
				_root.sound3.attachSound('anvil');
				_root.sound3.start();
			}
		}
		frame 93 {
			if (_root.currentpage == 2) {
				_root.doTextpage();
			}
		}
		frame 100 {
			chance = random(5) + 1;
			if (chance == 1) {
				_root.page1 = 'Argamir: Now that\'s what I call sharp!';
			} else {
				if (chance == 2) {
					_root.page1 = 'Argamir: Finished.';
				} else {
					if (chance == 3) {
						_root.page1 = 'Argamir: There we go.';
					} else {
						if (chance == 4) {
							_root.page1 = 'Argamir: Done! There you go.';
						} else {
							if (chance == 5) {
								_root.page1 = 'Argamir: I think I\'m done with it.';
							}
						}
					}
				}
			}
			_root.doStartText();
			_root.doSmith();
			gotoAndPlay(1);
		}
	}
	movieClip 5811	{
	}
	movieClip 5813	{
	}
	movieClip 5814	{
	}
	movieClip 5816	{
	}
	movieClip 5819	{
	}
	movieClip 5820	{
	}
	movieClip 5821	{
	}
	movieClip 5823	{
	}
	movieClip 5825	{
	}
	movieClip 5826	{
	}
	movieClip 5829	{
	}
	movieClip 5830	{
	}
	movieClip 5832	{
	}
	movieClip 5834	{
	}
	movieClip 5836	{
	}
	movieClip 5838	{
	}
	movieClip 5839	{
	}
	movieClip 5840	{
	}
	movieClip 5842	{
	}
	movieClip 5844	{
	}
	movieClip 5846	{
	}
	movieClip 5848	{
	}
	movieClip 5851	{
	}
	movieClip 5852	{
	}
	movieClip 5853	{
	}
	movieClip 5854	{
	}
	movieClip 5856	{
	}
	movieClip 5858	{
	}
	movieClip 5860	{
	}
	movieClip 5863	{
	}
	movieClip 5864	{
	}
	movieClip 5866	{
	}
	movieClip 5868	{
	}
	movieClip 5870	{
	}
	movieClip 5873	{
	}
	movieClip 5874	{
	}
	movieClip 5875	{
	}
	movieClip 5876	{
	}
	movieClip 5877	{
	}
	movieClip 5878	{
		frame 1 {
			stop();
		}
	}
	movieClip 5880	{
	}
	movieClip 5881	{
	}
	movieClip 5884	{
	}
	movieClip 5885	{
	}
	movieClip 5886	{
	}
	movieClip 5887	{
	}
	movieClip 5889	{
	}
	movieClip 5891	{
	}
	movieClip 5894	{
	}
	movieClip 5895	{
	}
	movieClip 5896	{
	}
	movieClip 5897	{
	}
	movieClip 5899	{
	}
	movieClip 5901	{
	}
	movieClip 5904	{
	}
	movieClip 5905	{
		frame 1 {
			stop();
		}
		frame 49 {
			stop();
		}
		frame 74 {
			stop();
		}
		frame 86 {
			stop();
		}
	}
	movieClip 5907	{
	}
	movieClip 5909	{
	}
	movieClip 5911	{
	}
	movieClip 5913	{
	}
	movieClip 5916	{
	}
	movieClip 5917	{
		frame 1 {
			stop();
		}
	}
	movieClip 5918	{
	}
	movieClip 5920	{
	}
	movieClip 5922	{
	}
	movieClip 5924	{
	}
	movieClip 5927	{
	}
	movieClip 5928	{
	}
	movieClip 5929	{
	}
	movieClip 5931	{
	}
	movieClip 5933	{
	}
	movieClip 5935	{
	}
	movieClip 5936	{
	}
	movieClip 5937	{
	}
	movieClip 5939	{
	}
	movieClip 5943	{
	}
	movieClip 5950	{
	}
	movieClip 5952	{
	}
	movieClip 5953	{
	}
	movieClip 5954	{
	}
	movieClip 5956	{
	}
	movieClip 5958	{
	}
	movieClip 5961	{
	}
	movieClip 5963	{
	}
	movieClip 5966	{
	}
	movieClip 5967	{
		frame 1 {
			gotoAndPlay(random(10));
		}
	}
	movieClip 5969	{
	}
	movieClip 5971	{
	}
	movieClip 5973	{
	}
	movieClip 5975	{
	}
	movieClip 5978	{
	}
	movieClip 5979	{
		frame 1 {
			gotoAndPlay(random(10));
		}
	}
	movieClip 5980	{
		frame 1 {
			stop();
		}
	}
	movieClip 5983	{
	}
	movieClip 5984	{
	}
	movieClip 5985	{
	}
	movieClip 5987	{
	}
	movieClip 5989	{
	}
	movieClip 5992	{
	}
	movieClip 5993	{
	}
	movieClip 5994	{
	}
	movieClip 5996	{
	}
	movieClip 5998	{
	}
	movieClip 6001	{
	}
	movieClip 6002	{
	}
	movieClip 6004	{
	}
	movieClip 6005	{
		frame 1 {
			stop();
		}
	}
	movieClip 6006	{
		frame 1 {
			stop();
		}
	}
	movieClip 6008	{
	}
	movieClip 6010	{
	}
	movieClip 6012	{
	}
	movieClip 6013	{
	}
	movieClip 6014	{
	}
	movieClip 6016	{
	}
	movieClip 6019	{
		frame 1 {
			stop();
		}
	}
	movieClip 6020	{
	}
	movieClip 6021	{
	}
	movieClip 6022	{
	}
	movieClip 6024	{
		frame 1 {
			if (_root.story < 300) {
				storyblock1._y = 245;
			} else {
				storyblock1._y = -900;
			}
		}
	}
	movieClip 6027	{
	}
	movieClip 6029	{
	}
	movieClip 6031	{
	}
	movieClip 6033	{
	}
	movieClip 6035	{
	}
	movieClip 6038	{
		frame 1 {
			stop();
		}
	}
	movieClip 6040	{
	}
	movieClip 6042	{
	}
	movieClip 6043	{
	}
	movieClip 6044	{
		frame 109 {
			gotoAndPlay(1);
		}
		frame 110 {
			head.gotoAndStop(2);
			stop();
		}
		frame 115 {
			head.gotoAndStop(1);
		}
	}
	movieClip 6045	{
	}
	movieClip 6046	{
	}
	movieClip 6047	{
	}
	movieClip 6049	{
	}
	movieClip 6050	{
	}
	movieClip 6052	{
	}
	movieClip 6054	{
	}
	movieClip 6057	{
	}
	movieClip 6059	{
	}
	movieClip 6061	{
	}
	movieClip 6063	{
	}
	movieClip 6064	{
	}
	movieClip 6066	{
	}
	movieClip 6067	{
	}
	movieClip 6069	{
	}
	movieClip 6071	{
	}
	movieClip 6073	{
	}
	movieClip 6076	{
	}
	movieClip 6077	{
	}
	movieClip 6078	{
	}
	movieClip 6080	{
	}
	movieClip 6081	{
		frame 1 {
			if (_root.loading_game == true) {
				_root.dosave = false;
			}
			_root.loading_game = false;
			_root.doGotoGame();
		}
		instance playerblock of movieClip 3733	{
			onClipEvent (enterFrame) {
				this._x = _root.player._x + 8.300000000000001;
				this._y = _root.player._y + 38;
			}
		}
		instance viewblock of movieClip 3734	{
			onClipEvent (enterFrame) {
				this._x = _root.player._x + 7.5;
				this._y = _root.player._y + 22;
			}
		}
		instance soundblock of movieClip 3733	{
			onClipEvent (enterFrame) {
				this._x = _root.player._x + 8.5;
				this._y = _root.player._y + 37;
			}
		}
		instance actionblock of movieClip 3732	{
			onClipEvent (enterFrame) {
				this._x = _root.player._x - 2;
				this._y = _root.player._y + 30;
			}
		}
		instance playershadow of movieClip 3736	{
			onClipEvent (enterFrame) {
				this._x = _root.player._x - 12;
				this._y = _root.player._y + 27;
			}
		}
		frame 3 {
			_root.newmusic = 'woods';
			_root.Goto();
			onEnterFrame = function () {
				if (firez.hitTest(actionblock) && _root.story < 70 && _root.sfxmute == false) {
					_root.sound4.attachSound('fireloop');
					if (_root.loopz == false) {
						_root.loopz = true;
						_root.sound4.start(0, 999);
					}
				} else {
					_root.sound4.stop('fireloop');
					_root.loopz = false;
				}
				if (_root.story >= 80) {
					down_MC.fire_MC._visible = false;
				}
				if (A1.hitTest(actionblock) && _root.story == 0) {
					playerP1.gotoAndStop(21);
					playerP2.gotoAndStop(21);
					_root.story = 1;
				}
				if (A2.hitTest(actionblock) && _root.story == 1) {
					_root.playerX = player._x;
					_root.playerY = player._y;
					_root.story = 10;
					_root.doEnterBattle();
				}
				_root.Begingame = function () {
					_root.page1 = 'Roy: Uggh... My head... Why is it pounding like this...';
					_root.page2 = 'Walk by pressing the arrow keys or A, S, D, W.';
					_root.page3 = 'Open your inventory by pressing SPACE.';
					_root.doStartText();
				};
				if (_root.story == 20) {
					_root.page1 = 'If the game lags you can adjust the graphic quality in the Options menu.\rOpen Options menu with ESC or in your inventory.';
					_root.page2 = 'Unfortunately the game might lag when you hover the mouse over the screen of the game. If it does, use the keyboard hotkeys (shown in pink) instead and use the mouse only when necessary.';
					_root.page3 = 'If it lags and you are playing on Google Chrome, try a different browser.';
					_root.story = 30;
					_root.doStartText();
				}
				if (A3.hitTest(actionblock) && _root.story <= 30) {
					_root.stand = 2;
					_root.page1 = 'Roy: What is this...';
					_root.doStartText();
					_root.story = 40;
				}
				if (B1.hitTest(actionblock)) {
					_root.areascreen = 2;
					_root.stand = 4;
					_root.playerX = 25;
					_root.playerY = -345;
					_root.doGotoGame();
				}
				_root.doActivatedText = function () {
					if (shroom1.hitTest(playerP1.coreblock)) {
						_root.num = 1;
						_root.doFoundBlood();
					}
					if (shroom2.hitTest(playerP1.coreblock)) {
						_root.num = 2;
						_root.doFoundFinger();
					}
					if (shroom3.hitTest(playerP1.coreblock)) {
						_root.num = 3;
						_root.doFoundFinger();
					}
					if (shroom4.hitTest(playerP1.coreblock)) {
						_root.num = 4;
						_root.doFoundBlood();
					}
					if (shroom5.hitTest(playerP1.coreblock)) {
						_root.num = 5;
						_root.doFoundBlood();
					}
					if (shroom6.hitTest(playerP1.coreblock)) {
						_root.num = 6;
						_root.doFoundBlood();
					}
					if (shroom7.hitTest(playerP1.coreblock)) {
						_root.num = 7;
						_root.doFoundCap();
					}
					if (shroom8.hitTest(playerP1.coreblock)) {
						_root.num = 8;
						_root.doFoundBlood();
					}
					if (shroom9.hitTest(playerP1.coreblock)) {
						_root.num = 54;
						_root.doFoundFinger();
					}
					if (shroom10.hitTest(playerP1.coreblock)) {
						_root.num = 55;
						_root.doFoundBlood();
					}
					if (shroom11.hitTest(playerP1.coreblock)) {
						_root.num = 56;
						_root.doFoundCap();
					}
				};
			};
		}
		instance of movieClip 4017	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4022	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.currentstage = 2;
					_root.Scenez.up_MC.gotoAndStop(_root.currentstage);
					_root.Scenez.down_MC.gotoAndStop(_root.currentstage);
				}
			}
		}
		instance of movieClip 4022	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.currentstage = 1;
					_root.Scenez.up_MC.gotoAndStop(_root.currentstage);
					_root.Scenez.down_MC.gotoAndStop(_root.currentstage);
				}
			}
		}
		instance of movieClip 4022	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.currentstage = 3;
					_root.Scenez.up_MC.gotoAndStop(_root.currentstage);
					_root.Scenez.down_MC.gotoAndStop(_root.currentstage);
				}
			}
		}
		instance of movieClip 4022	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.currentstage = 2;
					_root.Scenez.up_MC.gotoAndStop(_root.currentstage);
					_root.Scenez.down_MC.gotoAndStop(_root.currentstage);
				}
			}
		}
		instance of movieClip 4022	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.currentstage = 3;
					_root.Scenez.up_MC.gotoAndStop(_root.currentstage);
					_root.Scenez.down_MC.gotoAndStop(_root.currentstage);
				}
			}
		}
		instance of movieClip 4022	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.currentstage = 2;
					_root.Scenez.up_MC.gotoAndStop(_root.currentstage);
					_root.Scenez.down_MC.gotoAndStop(_root.currentstage);
				}
			}
		}
		frame 4 {
			_root.newmusic = 'woods';
			_root.Goto();
			if (_root.story >= 51 && _root.story <= 53) {
				down_MC.caleb_graph.gotoAndStop(194);
				doStory = function () {
					_root.page1 = 'Roy: That was incredible! That thing you did was... amazing!';
					_root.page2 = 'Caleb: You are good with the sword. We make a decent team, friend.\rI am not blind, I can still see. Bandits think I am easy prey.\rIt is not often I see someone risking his life for a stranger. I am in your debt.';
					_root.page3 = 'Caleb: My name is Caleb, I am heading towards the city Bavelock. Where are you heading to... what is your name?';
					_root.page4 = 'Roy: My name is ' + _root.corename + '. I have been wandering aimlessly in this forest. I woke up here, with no memory of how I got here.';
					_root.page5 = 'Caleb: You woke up in the forest with no memory... Are you a drunkard?\rAre you lost, ' + _root.corename + '?';
					_root.page6 = 'Roy: I\'m not a drunkard!\rBut I just... I have no recollection of how I got here. Where am I?';
					_root.page7 = 'Caleb: You are in Everthorn Forest, in the lands of Andora. Why don\'t you come along with me, I think we both could use each other\'s help in case we encounter more bandits. There are many outlaws in these lands.';
					_root.page8 = 'Roy: As long as you are heading towards any kind of civilized place, I think I will follow. I have to know what happened to me, perhaps someone in Bavelock City will know.';
					_root.page9 = 'Caleb: I understand. I must say though, I am glad you are here. I could use some company.';
					_root.doStartText();
				};
				playerP1._x = 110;
				playerP2._x = 110;
				_root.doCinematic();
				_root.camXpoint = 120;
				_root.camYpoint = 200;
				_root.cinemacam = true;
				setTimeout(doStory, 1500);
			}
			if (_root.story <= 40) {
				_root.page1 = 'Roy: This part of the forest seems brighter, I have a feeling I\'m soon out of here.';
				_root.doStartText();
				_root.story = 41;
			}
			onEnterFrame = function () {
				if (B1.hitTest(actionblock)) {
					_root.areascreen = 1;
					_root.stand = 3;
					_root.playerX = 695;
					_root.playerY = 240;
					_root.doGotoGame();
				}
				if (B2.hitTest(actionblock)) {
					_root.areascreen = 3;
					_root.stand = 4;
					_root.playerX = -120;
					_root.playerY = -270;
					_root.doGotoGame();
				}
				if (A1.hitTest(actionblock) && _root.tutz <= 3) {
					_root.tutz = 3;
					_root.doEnterBattle();
				}
				if (A2.hitTest(actionblock) && (_root.story == 41 or _root.story == 50)) {
					_root.stand = 4;
					_root.doCinematic();
					_root.camXpoint = 120;
					_root.camYpoint = 200;
					_root.cinemacam = true;
					_root.story = 51;
					down_MC.bandit_MC.gotoAndPlay(2);
					playerP1.gotoAndStop(12);
					playerP2.gotoAndStop(12);
					_root.page1 = 'Roy: Hey, you over there! Watch out!';
					_root.doStartText();
				}
				if (_root.story == 51 && _root.currentpage == 2) {
					_root.fame += 5;
					_root.doEnterBattle();
				}
				if (_root.story == 53 && _root.currentpage == 10) {
					_root.story = 60;
					_root.fame += 5;
					_root.cinemacam = false;
					_root.mainquest = 'I met Caleb in the forest. He told me I was in the lands of Andora in Everthorn Forest. He and I are heading towards the city Bavelock.';
					_root.directions1 = 3;
					_root.walking1X = true;
					_root.walkingspeed1 = 1.3;
					_root.walking1chars = new Array(caleb);
					_root.calebwalking = true;
					down_MC.caleb_graph.gotoAndStop(1);
					caleb._visible = true;
					caleb._x = playerP1._x;
					caleb._y = 247;
				}
				if (caleb._y < playerP1._y + 10 && _root.calebwalking == true) {
					_root.walking1X = false;
					_root.calebwalking = false;
					_root.cinematic = false;
					caleb._visible = false;
					caleb._y = -900;
					_root.page1 = 'Caleb has now joined your party and will be available to use in battles.';
					_root.doStartText();
				}
				_root.doActivatedText = function () {
					if (shroom1.hitTest(playerP1.coreblock)) {
						_root.num = 9;
						_root.doFoundCap();
					}
					if (shroom2.hitTest(playerP1.coreblock)) {
						_root.num = 10;
						_root.doFoundBlood();
					}
				};
			};
		}
		frame 5 {
			_root.newmusic = 'plains';
			_root.Goto();
			_root.doPlayer2();
			_root.entercave = false;
			_root.directions = 0;
			if (_root.questdeadman == 3) {
				_root.questdeadman = 4;
			}
			onEnterFrame = function () {
				if (A1.hitTest(soundblock) && _root.story == 61) {
					_root.doEnterBattle();
				}
				if (A2.hitTest(soundblock) && _root.story == 130) {
					_root.doEnterBattle();
				}
				if (A3.hitTest(soundblock) && _root.story == 230) {
					_root.stand = 3;
					_root.playerX = -80;
					_root.playerY = 150;
					gotoAndStop('firstboss');
				}
				if (b1.storyblock1.hitTest(playerblock)) {
					if (_root.story >= 60 && _root.story <= 63) {
						_root.page1 = 'Caleb: Head southwest!';
					} else {
						_root.page1 = 'Roy: I should stay close to Bavelock.';
					}
					_root.doStartText();
					_root.notstopwalking = true;
				}
				if (B1.hitTest(soundblock)) {
					_root.areascreen = 2;
					_root.stand = 3;
					_root.playerX = -85;
					_root.playerY = 300;
					_root.doGotoGame();
				}
				if (B2.hitTest(soundblock) && (_root.story < 270 or _root.story >= 370)) {
					_root.areascreen = 4;
					_root.stand = 4;
					_root.playerX = -310;
					_root.playerY = -170;
					_root.doGotoGame();
				}
				if (B3.hitTest(soundblock) && (_root.story < 270 or _root.story >= 370)) {
					_root.areascreen = 4;
					_root.stand = 3;
					_root.playerX = -395;
					_root.playerY = 620;
					_root.doGotoGame();
				}
				if (B4.hitTest(soundblock)) {
					_root.areascreen = 28;
					_root.stand = 4;
					_root.playerX = -140;
					_root.playerY = -430;
					_root.doGotoGame();
				}
				if (B5.hitTest(soundblock)) {
					_root.areascreen = 28;
					_root.stand = 3;
					_root.playerX = -95;
					_root.playerY = 485;
					_root.doGotoGame();
				}
				if (B6.hitTest(soundblock)) {
					_root.areascreen = 29;
					_root.stand = 4;
					_root.playerX = -140;
					_root.playerY = -430;
					_root.doGotoGame();
				}
				if (B7.hitTest(soundblock)) {
					_root.areascreen = 31;
					_root.stand = 3;
					_root.playerX = -140;
					_root.playerY = 240;
					_root.doGotoGame();
				}
				if (B8.hitTest(soundblock)) {
					_root.areascreen = 32;
					_root.stand = 1;
					_root.playerX = 220;
					_root.playerY = -174;
					_root.doGotoGame();
				}
				if (B9.hitTest(soundblock)) {
					_root.areascreen = 34;
					_root.stand = 3;
					_root.playerX = -100;
					_root.playerY = 220;
					_root.doGotoGame();
				}
				if (B10.hitTest(soundblock)) {
					_root.areascreen = 34;
					_root.stand = 4;
					_root.playerX = -110;
					_root.playerY = -180;
					_root.doGotoGame();
				}
				if (B11.hitTest(soundblock)) {
					_root.areascreen = 35;
					_root.stand = 2;
					_root.playerX = -440;
					_root.playerY = 335;
					_root.doGotoGame();
				}
				if (B12.hitTest(soundblock) && _root.story >= 340) {
					_root.areascreen = 36;
					_root.stand = 1;
					_root.playerX = 1205;
					_root.playerY = 190;
					_root.doGotoGame();
				}
				if (B13.hitTest(soundblock) && _root.story >= 340) {
					_root.areascreen = 36;
					_root.stand = 2;
					_root.playerX = 440;
					_root.playerY = 550;
					_root.doGotoGame();
				}
				if (B14.hitTest(soundblock)) {
					_root.areascreen = 51;
					_root.stand = 4;
					_root.playerX = -40;
					_root.playerY = -405;
					_root.doGotoGame();
				}
				if (B15.hitTest(soundblock)) {
					_root.areascreen = 51;
					_root.stand = 3;
					_root.playerX = -280;
					_root.playerY = 10;
					_root.doGotoGame();
				}
				_root.doActivatedText = function () {
					if (shroom1.hitTest(playerP1.coreblock)) {
						_root.num = 11;
						_root.doFoundBlood();
					}
					if (shroom2.hitTest(playerP1.coreblock)) {
						_root.num = 12;
						_root.doFoundBlood();
					}
					if (shroom3.hitTest(playerP1.coreblock)) {
						_root.num = 13;
						_root.doFoundCap();
					}
					if (shroom4.hitTest(playerP1.coreblock)) {
						_root.num = 14;
						_root.doFoundCap();
					}
					if (shroom5.hitTest(playerP1.coreblock)) {
						_root.num = 15;
						_root.doFoundBlood();
					}
					if (shroom6.hitTest(playerP1.coreblock)) {
						_root.num = 16;
						_root.doFoundCap();
					}
				};
			};
		}
		instance of movieClip 4084	{
			onClipEvent (enterFrame) {
				if (_root.item4 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item4 = true;
					_root.num = 3;
					_root.doFoundStrength();
				}
			}
		}
		instance of movieClip 4027	{
			onClipEvent (enterFrame) {
				if (_root.item3 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item3 = true;
					_root.doFoundPotion();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 6 {
			_root.Goto();
			_root.cityy = 250;
			if (_root.questlove >= 5) {
				b1.ryanblock._x = 65;
				b1.ryanblock._y = 370;
			}
			if (_root.questboar >= 5) {
				up_MC.halvarth._visible = false;
				b1.halvarthblock._y = -900;
			} else {
				b1.halvarthblock._y = 415;
			}
			if (_root.questfindsword >= 6) {
				down_MC.edna._visible = false;
				b1.ednablock._y = -900;
			} else {
				b1.ednablock._y = 250;
			}
			if (_root.questshow < 3) {
				up_MC.flyer1_MC._visible = false;
			}
			if (_root.questshow < 4) {
				down_MC.flyer2_MC._visible = false;
			}
			if (_root.questshow < 5) {
				up_MC.flyer3_MC._visible = false;
			}
			if (_root.questshow < 6) {
				up_MC.flyer4_MC._visible = false;
			}
			if (_root.questshow < 7) {
				up_MC.flyer5_MC._visible = false;
				up_MC.audience1._visible = false;
				up_MC.audience2._visible = false;
				b1.audienceblock1._y = -900;
				b1.audienceblock2._y = -900;
			} else {
				up_MC.audience1._visible = true;
				up_MC.audience2._visible = true;
				b1.audienceblock1._y = 797;
				b1.audienceblock2._y = 788;
			}
			if (_root.questdrugs >= 5) {
				up_MC.rififi._visible = false;
				b1.rififiblock._y = -900;
			} else {
				b1.rififiblock._y = 722;
			}
			if (_root.questink == 4) {
				_root.page1 = 'Roy: Wait... I think the answer is \'Fire\'.';
				_root.doStartText();
				_root.questink = 5;
			}
			if (_root.darconstory == 2) {
				_root.page1 = 'Roy: Do you have any ideas Caleb? Short of killing the guard.';
				_root.page2 = 'Caleb: He said no unauthorized personel were allowed in. What if you made yourself authorized? Argas train guards and have the royal guard outfit somewhere in the gym.';
				_root.page3 = 'Roy: Are you suggesting we should walk in and steal one outfit?';
				_root.page4 = 'Caleb: It is not stealing. It is... borrowing from a friend.';
				_root.mainquest = 'I need to go to the gym and see if there is a suit of the royal guard armor there.';
				_root.doStartText();
				_root.darconstory = 10;
			}
			if (_root.story == 92) {
				_root.page1 = 'In your inventory you can read your journal that keeps track of your current objective and sidequests.';
				_root.doStartText();
				_root.story = 93;
			}
			if (_root.story == 111) {
				_root.page1 = 'Caleb: We should stock up on potions, there is an item shop just up the street. Buy some empty bottles, you can make your own potions with collected mushrooms and butterflies as ingredients.';
				_root.page2 = 'Caleb: Remember to head south afterwards for Savina City.';
				_root.doStartText();
				_root.story = 120;
				_root.directions = 5;
			}
			if (_root.story == 324) {
				_root.page1 = 'Caleb: Wait... I think I figured it out ' + _root.corename + '. I figured out the riddle, I think the answer to the riddle is \'Light\'.';
				_root.text_MC.textz.gotoAndPlay(2);
				_root.story = 325;
			}
			if (_root.story >= 60 && _root.story <= 63) {
				_root.story = 70;
				caleb2._x = playerP1._x;
				caleb2._y = playerP1._y + 10;
				caleb._visible = false;
				caleb2._visible = false;
				_root.calebwalking = false;
				_root.stand = 4;
				_root.page1 = 'Caleb: We have arrived!';
				_root.page2 = 'Roy: What was the name of this city again?';
				_root.page3 = 'Caleb: Welcome to Bavelock, ' + _root.corename + '.';
				_root.page4 = 'Roy: Where are you heading to?';
				_root.page5 = 'Caleb: I want you to meet a friend of mine. I think you two will get along...';
				_root.doStartText();
				_root.mainquest = 'Caleb and I arrived to Bavelock! He is busy selling his goods, and had to leave for a while. I will visit Argas that Caleb talked to me about.';
			}
			if (_root.story == 320) {
				_root.page1 = 'Roy: We have to go to the Bavelock prison.';
				_root.doStartText();
				_root.story = 321;
				_root.darconstory = 1;
			}
			onEnterFrame = function () {
				if (Aa1.hitTest(actionblock) && _root.story == 290) {
					_root.page1 = 'Guard: It is you! I saw you yesterday when you were passed out, I helped your companion get you to the tavern. I heard the story about you fighting the demon! I have huge respect for a man who survived the Golden Demon!';
					_root.page2 = 'Roy: I lack the words to properly describe it. It was... a pure evil force. Being near it drained all life from me...';
					_root.page3 = 'Guard: A large patrol was sent to see if the demon was still in the vicinity of Bavelock. All roads leading out are closed and the city is in a state of lockdown.';
					_root.page4 = 'Roy: So no one is allowed out of the city?';
					_root.page5 = 'Guard: That is right, for your own safety. It is the general\'s orders. You should understand this, if anyone. You know how dangerous the Golden Demon is!\rI pray it does not enter the city.';
					_root.doStartText();
					_root.stand = 2;
					playerP1.gotoAndStop(10);
					playerP2.gotoAndStop(10);
					down_MC.guardz.gotoAndStop(2);
					if (_root.currentpage == 6) {
						down_MC.guardz.gotoAndStop(1);
						_root.story = 291;
					}
				}
				if (Aa2.hitTest(actionblock) && (_root.story == 321 or _root.darconstory > 50 && _root.darconstory < 70)) {
					_root.mainquest = 'Caleb and I found the passage!';
					b1.houselock2._y = -900;
					if (_root.darconstory > 50 && _root.darconstory < 70) {
						_root.page1 = 'Darcon: Inside here is a trapdoor leading to the passage.';
						_root.page2 = 'Roy: It\'s locked! Do you have a key or something, Darcon?';
						_root.page3 = 'Darcon: Of course I don\'t have a key, I just got out of prison! I was only going to show you where it is. There is a trapdoor inside this building that leads down to the subterranean exit. But getting inside the building is your problem.';
						_root.page4 = 'Roy: After all we did to get you out...\rI really dislike that guy.';
						_root.page5 = 'Roy: How are we going to get inside?';
						_root.page6 = 'Caleb: Forget about Darcon. I think I can open the door.';
						_root.page7 = 'Roy: You are a really handy friend to have sometimes.';
						_root.page8 = 'Caleb: There, it is opened.';
						_root.doStartText();
						if (_root.currentpage == 2 && _root.darconstory == 60) {
							playerP1._y = 0;
							playerP2._y = 0;
							playerP1.gotoAndStop(10);
							playerP2.gotoAndStop(10);
							_root.doCinematic();
							_root.black.gotoAndPlay(2);
							_root.darconstory = 61;
						}
						if (_root.currentpage == 4 && _root.darconstory == 61) {
							playerP1.gotoAndStop(9);
							playerP2.gotoAndStop(9);
							darcon._x = playerP1._x;
							darcon._y = playerP1._y;
							darcon._visible = true;
							_root.directions1 = 1;
							_root.walking1X = true;
							_root.walkingspeed1 = 1.3;
							_root.walking1chars = new Array(darcon);
							_root.darconstory = 62;
						}
						if (darcon._x < 400) {
							darcon._visible = false;
							_root.walking1X = false;
						}
						if (_root.currentpage == 5) {
							playerP1.gotoAndStop(10);
							playerP2.gotoAndStop(10);
						}
						if (_root.currentpage == 6 && caleb2._visible == false) {
							caleb2._visible = true;
							caleb2._x = 675;
							caleb2._y = 0;
							caleb2.gotoAndStop(9);
						}
						if (_root.currentpage == 9) {
							caleb2._visible = false;
							_root.story = 322;
							darcon._visible = false;
							_root.walking1X = false;
							_root.cinematic = false;
							_root.darconstory = 70;
							_root.black.gotoAndPlay(2);
						}
					}
				}
				if (B1.hitTest(actionblock)) {
					_root.areascreen = 3;
					_root.stand = 3;
					_root.playerX = -350;
					_root.playerY = 110;
					_root.doGotoGame();
				}
				if (B2.hitTest(actionblock)) {
					_root.areascreen = 3;
					_root.stand = 4;
					_root.playerX = -415;
					_root.playerY = 190;
					_root.doGotoGame();
				}
				if (_root.story >= 70 && _root.story <= 73) {
					if (_root.story >= 70 && _root.story <= 72) {
						if (_root.story == 70) {
							if (_root.currentpage == 2 && _root.calebwalking == false) {
								playerP1._x = -310;
								playerP1._y = -170;
								playerP2._x = -310;
								playerP2._y = -170;
								_root.directions1 = 4;
								_root.walking1X = true;
								_root.walkingspeed1 = 2.1;
								_root.walking1chars = new Array(caleb2);
								_root.calebwalking = true;
								caleb2._visible = true;
								_root.doCinematic();
							}
							if (caleb2._y >= -130 && caleb2._y <= -125) {
								_root.directions1 = 1;
								_root.directions2 = 4;
								_root.walking2X = true;
								_root.walkingspeed2 = 2.1;
								_root.walking2chars = new Array(playerP1, playerP2, playershadow);
								_root.walking = true;
							}
							if (_root.player._y >= -125 && _root.player._y <= -120) {
								_root.directions2 = 1;
							}
							if (caleb2._x >= -405 && caleb2._x <= -400) {
								_root.directions1 = 4;
							}
							if (_root.player._x >= -405 && _root.player._x <= -400) {
								_root.directions2 = 4;
							}
							if (caleb2._y >= 185 && caleb2._y <= 190) {
								_root.directions1 = 1;
							}
							if (_root.player._y >= 185 && _root.player._y <= 190) {
								_root.directions2 = 1;
								if (_root.currentpage == 2) {
									_root.doTextpage();
								}
							}
							if (caleb2._x >= -440 && caleb2._x <= -435) {
								_root.directions1 = 4;
							}
							if (_root.player._x >= -440 && _root.player._x <= -435) {
								_root.directions2 = 4;
							}
							if (caleb2._y >= 425 && caleb2._y <= 430) {
								_root.directions1 = 1;
								if (_root.currentpage == 3) {
									_root.doTextpage();
								}
							}
							if (_root.player._y >= 425 && _root.player._y <= 430) {
								_root.directions2 = 1;
							}
							if (caleb2._x >= -520 && caleb2._x <= -515) {
								_root.directions1 = 4;
							}
							if (_root.player._x >= -520 && _root.player._x <= -515) {
								_root.directions2 = 4;
								_root.story = 71;
							}
						}
						if (_root.story == 71) {
							if (caleb2._y >= 510 && caleb2._y <= 515) {
								_root.directions1 = 1;
							}
							if (_root.player._y >= 510 && _root.player._y <= 515) {
								_root.directions2 = 1;
								if (_root.currentpage == 4) {
									_root.doTextpage();
								}
							}
							if (_root.player._x >= -745 && _root.player._x <= -740) {
								_root.walking1X = false;
								caleb2.gotoAndStop(6);
								_root.walking2X = false;
								_root.walking = false;
								_root.calebwalking = false;
								_root.calebX = false;
								_root.character = 1;
								b1.storyblock1._y = 780;
								_root.stand = 1;
								playerP1.gotoAndStop(9);
								playerP2.gotoAndStop(9);
								_root.page1 = 'Caleb: I have to meet someone. This meeting might take some time, so why don\'t you look around the city.\rTalk to people by pressing Enter or E when standing next to them, and turned towards them.';
								_root.page2 = 'Caleb: But first see if you can learn anything from Argas in the gym just above us here. He is a master in the art of swordfighting. Just show him a proper fight, see what he says. Tell him that I sent you.';
								_root.page3 = 'Caleb: Meet me later in the Golden Apple inn at the center of the city.';
								_root.doStartText();
								if (_root.currentpage == 4) {
									_root.walking1X = true;
									_root.calebwalking = true;
									_root.directions1 = 4;
									_root.story = 72;
								}
								if (_root.currentpage == 5) {
									_root.doTextpage();
								}
							}
						}
						if (caleb2._y >= 530 && caleb2._y <= 535 && _root.story == 72) {
							_root.directions1 = 2;
							_root.story = 73;
						}
					}
					if (_root.story == 73) {
						if (caleb2._x >= -735 && caleb2._x <= -730) {
							_root.stand = 2;
							playerP1.gotoAndStop(10);
							playerP2.gotoAndStop(10);
						}
						if (caleb2._x >= -530 && caleb2._x <= -525) {
							_root.walking1X = false;
							caleb2._visible = false;
							_root.calebwalking = false;
							--_root.numofchars;
							_root.story = 80;
							_root.cinematic = false;
						}
					}
				}
			};
		}
		instance of movieClip 4198	{
			onClipEvent (enterFrame) {
				if (_root.questfindsword != 2) {
					this._y = -900;
				} else {
					this._y = -112;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.questfindsword = 3;
					_root['obj' + _root.questfindswordX] = 'I found Barl\'s sword, I should it back to him at the gym.';
					_root.itemname = 'Sword';
					_root.page1 = 'Found ' + _root.itemname + '! I should give this back to Barl at the gym.';
					_root.itempickup = true;
					_root.text_MC.textz.gotoAndPlay(2);
					if (_root.sfxmute == false) {
						_root.item.start();
					}
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.areascreen = 5;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.areascreen = 6;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.areascreen = 11;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.areascreen = 7;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.areascreen = 8;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 12;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 16;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.areascreen = 18;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.areascreen = 14;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock) && _root.housegrade > 1) {
					_root.doPlayer2();
					_root.areascreen = 14;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 15;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 23;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 22;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 21;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 20;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 19;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock) && _root.floorz == 1) {
					_root.floorz = 2;
					_root.doFloorlevel();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.areascreen = 9;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 9;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.areascreen = 6;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.areascreen = 10;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.areascreen = 10;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		frame 7 {
			if (_root.story >= 240 && _root.story <= 271) {
				_root.story = 280;
				_root.newmusic = 'imperial';
				_root.doNotrun2();
			}
			if (_root.questtreasure > 1 or _root.gotshovel == false) {
				down_MC.floornote._visible = false;
			}
			if (_root.directions == 1) {
				_root.directions = 0;
			}
			if (_root.story >= 90 && _root.story <= 94 && _root.completedquests < 2) {
				_root.page1 = 'Complete atleast one more sidequest before meeting Caleb.';
				_root.doStartText();
			}
			_root.Goto();
			if (_root.story >= 292 && _root.story <= 330) {
				down_MC.guardsit._visible = true;
			} else {
				down_MC.guardsit._visible = false;
			}
			onEnterFrame = function () {
				if (Q1.hitTest(soundblock) && down_MC.floornote._visible == true) {
					down_MC.floornote._visible = false;
					_root.questtreasure = 2;
					_root.questtreasureX = _root.numquests;
					_root.newquest = 'I found a note on the floor talking about buried money near the tree at Nightshade Cemetary.';
					_root.questname = 'X marks the spot';
					_root.addJournal();
					_root.page1 = 'There is a note on the floor...';
					_root.page2 = 'To Mr X...\rI buried the money at the foot of the tree in Nightshade cemetary. 20 Pix just like we agreed. All you need to do is dig it up. Next time do not be so impatient about your payment!';
					_root.doStartText();
					if (_root.sfxmute == false) {
						_root.pageturn.start();
					}
				}
			};
		}
		instance of movieClip 4583	{
			onClipEvent (enterFrame) {
				if (_root.questbbag != 2) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.questbbag = 3;
					_root.page1 = 'Roy: This must be Durgol\'s bag! I should return to Savina and give it back to him.';
					_root.doStartText();
					_root.questbbag = 3;
					_root['obj' + _root.questbbagX] = 'I found Durgol\'s bag. I should return to the tavern in Savina and give it back to him.';
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.doBavelockHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 2;
					_root.areascreen = 24;
					_root.Scenez.gotoAndStop('bhouse2up');
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 8 {
			_root.Goto();
		}
		instance of movieClip 4639	{
			onClipEvent (enterFrame) {
				if (_root.item8 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item8 = true;
					_root.doFoundEther();
				}
			}
		}
		frame 9 {
			if (_root.story >= 190) {
				if (_root.questkidnap >= 6) {
					b1.amagusblock._y = 155;
				} else {
					down_MC.amagus._visible = false;
					b1.amagusblock._y = -900;
				}
			} else {
				down_MC.amagus._visible = false;
				b1.amagusblock._y = -900;
				down_MC.penelope._visible = false;
				b1.penelopeblock._y = -900;
			}
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.doBavelockHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.doBavelockHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		frame 10 {
			_root.Goto();
			onEnterFrame = function () {
				if (_root.ghosttalk == 2) {
					_root.page1 = 'Roy: I hope we don\'t see that ghost again.';
					_root.page2 = 'Agga: I heard that...';
					if (_root.currentpage == 2) {
						_root.sound1.attachSound('Ethereal2');
						_root.sound1.start();
						_root.ghosttalk = 3;
					}
					_root.doStartText();
				}
				if (A1.hitTest(actionblock) && _root.story == 322) {
					if (down_MC.ghost_MC._currentframe == 1) {
						down_MC.ghost_MC.gotoAndPlay(2);
						b1.storyblock9._y = 190;
						_root.story = 323;
						if (_root.sfxmute == false) {
							_root.sound1.attachSound('breathfrost');
							_root.sound1.start();
						}
					}
					_root.page1 = 'Roy: Woah!\rWhat is... going on?';
					_root.page2 = 'Agga: Who are you who enters my domain?';
					_root.page3 = 'Roy: I... I am ' + _root.corename + ', I need to enter the underground passage. Who are you?';
					_root.page4 = 'Agga: I am Agga, the guardian of the Thieves\' Passage. You are an intruder and no unworthy intruder may enter. You will not get past me unless you pass my test.';
					_root.text_MC.textz.gotoAndPlay(2);
					_root.dialog = 3;
					if (_root.darconstory == 70) {
						_root.darconstory = 71;
						_root.doCinematic();
						_root.guarduniform = false;
						playerP1.gotoAndStop(22);
						playerP2.gotoAndStop(22);
						if (_root.sfxmute == false) {
							_root.item.start();
						}
					}
				}
				if (_root.darconstory == 71 && _root.currentpage == 5) {
					_root.cinematic = false;
					_root.darconstory = 80;
				}
				if (B1.hitTest(actionblock)) {
					_root.areascreen = 36;
					_root.stand = 2;
					_root.playerX = -210;
					_root.playerY = 655;
					_root.doGotoGame();
				}
			};
		}
		instance of movieClip 4709	{
			onClipEvent (enterFrame) {
				if (_root.item6 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item6 = true;
					_root.questdrugsX = _root.numquests;
					if (_root.questdrugs == 1) {
						_root.questdrugs = 3;
						_root.newquest = 'I found a package of drugs. I\'m not sure who would want it.';
					} else {
						if (_root.questdrugs == 2) {
							_root.questdrugs = 4;
							_root.newquest = 'I found a package of drugs. I met someone once who I think would want this.';
							_root.page2 = 'Roy: I think I know who wants this...';
						}
					}
					_root.questname = 'Drugs are bad m\'kay';
					_root.addJournal();
					_root.itemname = 'Package of drugs';
					_root.page1 = 'Found ' + _root.itemname + '! There is someone in Bavelock who will pay good money for this.';
					_root.itempickup = true;
					_root.text_MC.textz.gotoAndPlay(2);
					if (_root.sfxmute == false) {
						_root.item.start();
					}
				}
			}
		}
		instance of movieClip 4711	{
			onClipEvent (enterFrame) {
				if (_root.item7 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item7 = true;
					_root.doFoundElixir();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.doBavelockHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		frame 11 {
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.doBavelockHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 12 {
			if (_root.directions == 5) {
				_root.directions = 0;
			}
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 2;
					_root.areascreen = 25;
					_root.Scenez.gotoAndStop('bhouse7up');
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 2;
					_root.areascreen = 25;
					_root.Scenez.gotoAndStop('bhouse7up');
				}
			}
		}
		frame 13 {
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.doBavelockHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 2;
					_root.areascreen = 26;
					_root.Scenez.gotoAndStop('bhouse8up');
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 14 {
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.doBavelockHouse();
				}
			}
		}
		frame 15 {
			if (_root.directions == 6) {
				_root.directions = 0;
			}
			if (_root.enterhouse1 == false) {
				_root.enterhouse1 = true;
			}
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.doBavelockHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.doBavelockHouse();
				}
			}
		}
		frame 16 {
			_root.Goto();
			if (_root.darconstory > 30 && _root.darconstory <= 50) {
				caleb._x = 765;
				caleb._y = 365;
				caleb._visible = true;
				caleb.gotoAndStop(10);
				caleb.anm.gotoAndStop(49);
			}
			if (_root.darconstory >= 50) {
				houseup.guard._visible = false;
				b1.dguard._y = -900;
			} else {
				b1.dguard._y = 705;
			}
			if (_root.darconstory > 50) {
				bars.darcon._visible = false;
				bars.bar._visible = false;
			}
			onEnterFrame = function () {
				if (PA2.hitTest(soundblock) && _root.darconstory == 50) {
					caleb.anm.gotoAndPlay(50);
					_root.page1 = 'Roy: The bars are actually gone... Is there anything you can\'t do, Caleb?';
					_root.page2 = 'Caleb: A lot, I imagine.';
					_root.page3 = 'Darcon: Just who are you people?';
					_root.page4 = 'Roy: I am ' + _root.corename + ', this is Caleb. We need your help finding the halls under Bavelock. You have had ours, now are you going to return the favor?';
					_root.page5 = 'Darcon: You are right about one thing, I do know where to find it. I know everything there is to know about Bavelock.';
					_root.page6 = 'Darcon: I will help you, but I work alone. After I have showed you the passage I will leave you, and you will never see me again.';
					_root.page7 = 'Roy: That works for us.';
					_root.mainquest = 'Caleb and I broke Darcon out of prison, he knows where the underground passage out of the city is.';
					_root.doStartText();
					_root.darconstory = 51;
					b1.dstoryblock1._y = -900;
					b1.dstoryblock2._y = -900;
					b1.dblock._y = -900;
				}
				if (_root.darconstory > 40 && _root.darconstory < 60) {
					if (_root.darconstory == 51) {
						if (caleb._y > playerP1._y && _root.directions1 == 4) {
							_root.directions1 = 1;
							bars.darcon._visible = false;
							darcon._visible = true;
							darcon._x = 765;
							darcon._y = 340;
							_root.directions2 = 4;
							_root.walking2X = true;
							_root.walkingspeed2 = 0.5;
							_root.walking2chars = new Array(darcon);
						}
						if (caleb._x < playerP1._x) {
							_root.walking1X = false;
							_root.calebwalking = false;
							caleb._visible = false;
							_root.darconstory = 52;
						}
					}
					if (_root.darconstory == 51 or _root.darconstory == 52) {
						if (darcon._y > playerP1._y) {
							_root.walking2X = false;
							darcon.gotoAndStop(5);
						}
						if (_root.currentpage == 7) {
							_root.directions2 = 1;
							_root.walking2X = true;
							_root.walkingspeed2 = 1.5;
							_root.darconstory = 53;
						}
					}
					if (_root.darconstory == 53 && darcon._x < playerP1._x) {
						_root.darconstory = 60;
						_root.cinematic = false;
						_root.walking2X = false;
						darcon._visible = false;
					}
				}
				if (_root.darconstory == 31 && playerP1._x < 715) {
					_root.walking1X = false;
					_root.walking = false;
					_root.cinematic = false;
					_root.darconstory = 40;
					_root.stand = 2;
					playerP1.gotoAndStop(10);
					playerP2.gotoAndStop(10);
				}
			};
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.doBavelockHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 17 {
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.doBavelockHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 18 {
			_root.Goto();
			if (_root.darconstory == 10) {
				_root.page1 = 'Roy: There is a suit of the royal guard armor somewhere in here.';
				_root.doStartText();
				_root.darconstory = 11;
			}
			onEnterFrame = function () {
				if (A1.hitTest(actionblock) && _root.story == 91) {
					_root.page1 = 'Before meeting Caleb you should talk to people. See if you can help them, helping people is a good way to earn money and items.';
					if (_root.questbrock == 1) {
						_root.page2 = 'Talk to Jaden who stands next to Argas. While talking to him, press Q or SHIFT to quickly select the Help option.';
					}
					_root.doStartText();
					_root.story = 92;
				}
			};
		}
		instance of movieClip 4027	{
			onClipEvent (enterFrame) {
				if (_root.item25 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item25 = true;
					_root.doFoundPotion();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.battlearea = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.doBavelockHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 2;
					_root.areascreen = 27;
					_root.Scenez.gotoAndStop('bhouse15up');
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 19 {
			if (_root.directions == 2) {
				_root.directions = 0;
			}
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.doBavelockHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 20 {
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.doBavelockHouse();
				}
			}
		}
		frame 21 {
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock) && _root.floorz == 1) {
					_root.floorz = 2;
					_root.doFloorlevel();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock) && _root.floorz == 2) {
					_root.floorz = 1;
					_root.doFloorlevel();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		frame 22 {
			_root.Goto();
		}
		instance of movieClip 4639	{
			onClipEvent (enterFrame) {
				if (_root.item5 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item5 = true;
					_root.doFoundEther();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 23 {
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		frame 24 {
			if (_root.story >= 240 && _root.story <= 270) {
				_root.doNotrun();
				_root.newmusic = 'empty';
				_root.black2.gotoAndStop(1);
			}
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 1;
					_root.areascreen = 5;
					_root.doGotoGame();
				}
			}
		}
		frame 25 {
			_root.Goto();
		}
		instance of movieClip 4027	{
			onClipEvent (enterFrame) {
				if (_root.item22 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item22 = true;
					_root.doFoundPotion();
				}
			}
		}
		instance of movieClip 5091	{
			onClipEvent (enterFrame) {
				if (_root.item27 > 1) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item27 = 2;
					_root.itemname = 'Strange device';
					_root.doFoundArtifact();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 1;
					_root.areascreen = 10;
					_root.doGotoGame();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 1;
					_root.areascreen = 10;
					_root.doGotoGame();
				}
			}
		}
		frame 26 {
			if (_root.directions == 3) {
				_root.directions = 0;
			}
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 1;
					_root.areascreen = 11;
					_root.doGotoGame();
				}
			}
		}
		frame 27 {
			if (_root.directions == 4) {
				_root.directions = 0;
			}
			_root.Goto();
		}
		instance of movieClip 5125	{
			onClipEvent (enterFrame) {
				if (_root.item23 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item23 = true;
					_root.num = 3;
					_root.doFoundMagicdefense();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 1;
					_root.areascreen = 18;
					_root.doGotoGame();
				}
			}
		}
		frame 28 {
			_root.newmusic = 'icycaves';
			_root.Goto();
			if (_root.story == 330) {
				_root.mainquest = 'Me and Caleb found the underground passage that leads out of Bavelock.';
				_root.ghosttalk = 2;
			}
			if (_root.story >= 350) {
				down_MC.bandit1._visible = false;
				down_MC.bandit2._visible = false;
			}
			onEnterFrame = function () {
				if (B1.hitTest(actionblock)) {
					_root.areascreen = 8;
					_root.stand = 4;
					_root.playerX = 755;
					_root.playerY = -115;
					_root.doGotoGame();
				}
				if (B2.hitTest(actionblock)) {
					_root.areascreen = 3;
					_root.stand = 2;
					_root.playerX = -325;
					_root.playerY = 140;
					_root.doGotoGame();
				}
				if (B3.hitTest(actionblock)) {
					if (_root.story == 350) {
						_root.story = 351;
					}
					_root.areascreen = 3;
					_root.stand = 1;
					_root.playerX = -390;
					_root.playerY = 210;
					_root.doGotoGame();
				}
				_root.doActivatedText = function () {
					if (talk1.hitTest(playerP1.coreblock) && _root.stand == 1) {
						if (_root.questgornak == 1 or _root.questgornak == 5) {
							_root.page1 = 'Laus: People claim my personal belongings were once theirs. But you see, it\'s not theirs anymore. I simply take what I want and it becomes mine.';
							_root.page2 = 'ALT';
							if (_root.currentpage == 1) {
								_root.chathelp = true;
							}
							if (_root.chat == true && _root.currentpage == 2) {
								_root.page2 = 'Laus: I originally come from Savina. I work alone, my shadow as my sole companion suits me well.';
							} else {
								if (_root.help == true) {
									if (_root.currentpage == 2) {
										if (_root.questgornak == 5) {
											_root.page2 = 'Laus: You have done enough! Thank you again for getting me the Gornak head!';
										} else {
											_root.page2 = 'Laus: Yes, there is something that I been looking for! A Gornak head. This is a very valuable item on the black market. Can you get one for me?';
											_root.page3 = 'ALT';
											_root.yesno = true;
										}
									}
									if (_root.currentpage == 3 && _root.questgornak == 1) {
										if (_root.choice == 1) {
											_root.page3 = 'Laus: Good! Really good! Gornaks are found in rocky areas like caves and mountains, but be cautious! They are slow but strong and powerful.';
											_root.questgornak = 2;
											_root.questgornakX = _root.numquests;
											_root.newquest = 'Laus in the underground passage wants me to get him a Gornak head. Gornaks are common in caves and mountains.';
											_root.questname = 'Rocky';
											_root.addJournal();
										} else {
											_root.page3 = 'Laus: Fine. I will get a Gornak head myself, one day.';
										}
									}
								}
							}
						} else {
							if (_root.questgornak == 2) {
								_root.page1 = 'Laus: Well met again, friend! Have you found a Gornak head yet?';
							} else {
								if (_root.questgornak == 4) {
									_root.num = 2;
									if (_root.numofchars > 1) {
										if (_root.currentpage == 1) {
											_root.corecaleb = true;
										}
										_root.page1 = 'Laus: Yes, this is exactly what I wanted! Thank you for getting me this Gornak head! I didn\'t know a fellow thief could be so kind! Take this.\r*You are given ' + _root.num + ' Strength auras! Give ' + _root.corename + ' or Caleb?';
										_root.page2 = 'ALT';
										if (_root.currentpage == 2) {
											if (_root.choice == 1) {
												_root.addingStrengthCore();
												_root.page2 = '*You got ' + _root.num + ' Strength auras! ' + _root.corename + '\'s Strength improved.';
											} else {
												if (_root.choice == 2) {
													_root.addingStrengthCaleb();
													_root.page2 = '*You got ' + _root.num + ' Strength auras! Caleb\'s Strength improved.';
												}
											}
											_root.questgornak = 5;
											_root.delquest = _root.questgornakX;
											_root.delJournal();
											_root.questgornakX = -1;
										}
									} else {
										_root.page1 = 'Laus: Yes, this is exactly what I wanted! Thank you for getting me this Gornak head! I didn\'t know a fellow theif could be so kind. Take this.\r*You got ' + _root.num + ' Strength auras! ' + _root.corename + '\'s Strength improved.';
										_root.addingStrengthCore();
										_root.questgornak = 5;
										_root.delquest = _root.questgornakX;
										_root.delJournal();
										_root.questgornakX = -1;
									}
								}
							}
						}
						_root.doStartText();
					}
					if (talk2.hitTest(playerP1.coreblock) && _root.stand == 3) {
						if (_root.shop_MC._currentframe == 1 && _root.shopX == false) {
							_root.page1 = 'Jade: If you have items you want sold on the black market, I am the one you should talk to.';
							_root.doStartText();
						}
						if (_root.currentpage == 2) {
							_root.shop_MC.gotoAndStop(6);
						}
						if (_root.shopX == true) {
							_root.shopX = false;
						}
					}
					if (talk3.hitTest(playerP1.coreblock) && _root.stand == 3) {
						_root.page1 = 'Breo: Andora is just a big theatre full of politics and drama. And I am here to pickpocket the audience.';
						_root.page2 = 'ALT';
						if (_root.currentpage == 1) {
							_root.chathelp = true;
						}
						if (_root.chat == true && _root.currentpage == 2) {
							_root.page2 = 'Breo: I tend to stash some of my loot in this dungeon. Good luck finding it though! Hah!';
						} else {
							if (_root.help == true && _root.currentpage == 2) {
								if (_root.questdrugs == 3 or _root.questdrugs == 4) {
									_root.page2 = 'Breo: Hey what do you have there? I smell skooma, drugs! That is some rare stuff, I will pay you 20 Pix for that, right now!';
									_root.page3 = 'ALT';
									_root.dialog = 2;
									_root.yesno = true;
								} else {
									_root.page2 = 'Breo: I can handle myself.';
								}
							}
						}
						if (_root.currentpage == 3 && _root.dialog == 2) {
							if (_root.choice == 1) {
								_root.goldnum = 20;
								_root.page3 = 'Breo: Thanks, mate! I will take good care of these for sure.\r*' + _root.goldnum + ' Pix added';
								_root.questdrugs = 5;
								_root.addingGold();
								_root.delquest = _root.questdrugsX;
								_root.delJournal();
								_root.questdrugsX = -1;
							} else {
								_root.page3 = 'Breo: So you\'re a druggie and want it all for yourself? Whatever.\rOr do you simply know it\'s worth 3 timess as much? I think Rififi in town is looking for this very drug.';
								_root.questdrugs = 4;
							}
						}
						_root.doStartText();
					}
					if (talk4.hitTest(playerP1.coreblock) && _root.stand == 2 && _root.story <= 332) {
						if (_root.story < 330) {
							_root.page1 = 'Levus: Hey, you! What are you doing here?';
							_root.page2 = 'Roy: I don\'t think I should be here...';
						} else {
							if (_root.talkedtobandits == false) {
								_root.page1 = 'Levus: Halt! Who are you? I have not seen you here before.';
								_root.page2 = 'Roy: I need to pass through this tunnel.';
								if (_root.currentpage == 2) {
									_root.talkedtobandits = true;
								}
							} else {
								_root.page1 = 'Levus: You again? Stop bothering us!';
								_root.page2 = 'Roy: I told you, I need to pass through this tunnel.';
							}
							_root.page3 = 'Levus: If you are a thief like us, you should know the password that grants you passage here. Do you?';
							_root.page4 = 'ALT';
							if (_root.currentpage == 1) {
								down_MC.bandit1._xscale *= -1;
							}
							if (_root.currentpage == 3) {
								_root.yesno = true;
							}
							if (_root.choice == 1 && _root.currentpage == 4) {
								if (_root.story == 330) {
									_root.page4 = 'Roy: The password? Of course I know the password... is it \'Chuck Norris\'?';
									_root.page5 = 'Levus: Chuck... what? Don\'t lie to me if you wish to keep your heart beating, boy.';
									_root.page6 = 'Caleb: Roy we should find another way through. Or do you want to engage in battle with these brutes?';
									_root.page7 = 'Roy: We\'re leaving.';
									_root.dialog = 2;
								} else {
									if (_root.story == 331) {
										_root.page4 = 'Roy: The password is \'Keyhole\'. Now let me through.';
										_root.page5 = 'Levus: So it is. I did not know you were a thief from around these parts. I have never seen you before, but I will let you through.';
										_root.dialog = 3;
									}
								}
							} else {
								if (_root.choice == 2 && _root.currentpage == 4) {
									_root.page4 = 'Levus: Then leave.';
									_root.page5 = 'Caleb: Roy we should find another way through. Or do you want to engage in battle with these brutes?';
									_root.page6 = 'Roy: We\'re leaving.';
									_root.dialog = 4;
								}
							}
							if (_root.currentpage == 5 && (_root.dialog == 1 or _root.dialog == 4)) {
								_root.yesno = true;
								down_MC.bandit1._xscale *= -1;
							} else {
								if (_root.currentpage == 6 && _root.dialog == 2) {
									_root.yesno = true;
									down_MC.bandit1._xscale *= -1;
								} else {
									if (_root.currentpage == 6 && _root.story == 331 && _root.dialog == 3) {
										down_MC.bandit1._visible = false;
										down_MC.bandit2._visible = false;
										b1.storyblock4._y = -900;
										_root.black.gotoAndPlay(2);
										_root.story = 350;
									}
								}
							}
							if (_root.choice == 1 && _root.currentpage == 6 && _root.dialog == 4) {
								_root.story = 340;
								_root.boss = true;
								_root.doEnterBattle();
							}
							if (_root.choice == 1 && _root.currentpage == 7 && _root.dialog == 2) {
								_root.story = 340;
								_root.boss = true;
								_root.doEnterBattle();
							}
						}
						_root.doStartText();
					}
					if (booktalk1.hitTest(actionblock) && _root.stand == 3) {
						_root.page1 = '-Official book of the larcenist crafts-\r...The Bevelon Lords of theives gathered together and discussed the master password for use amongst theives and thievery...';
						_root.page2 = '...and the sacred, secret password among thieves that the great Lords created, was \'Keyhole\'.';
						_root.doStartText();
						if (_root.story == 330) {
							_root.story = 331;
						}
					}
					dolever1 = function () {
						_root['switchzn' + num] = true;
						if (_root.sfxmute == false) {
							_root.sound1.attachSound('ex3');
							_root.sound1.start();
						}
					};
					dolever1X = function () {
						_root['switchzn' + num] = true;
						num = 8;
						if (_root.sfxmute == false) {
							_root.sound1.attachSound('ex3');
							_root.sound1.start();
						}
					};
					dolever1XX = function () {
						_root.camXpoint = 455;
						_root.camYpoint = 560;
					};
					dolever2 = function () {
						_root['switchzn' + num] = false;
						if (_root.sfxmute == false) {
							_root.sound1.attachSound('ex3');
							_root.sound1.start();
						}
					};
					dolever2X = function () {
						_root['switchzn' + num] = false;
						num = 8;
						if (_root.sfxmute == false) {
							_root.sound1.attachSound('ex3');
							_root.sound1.start();
						}
					};
					dolever2XX = function () {
						_root.camXpoint = 455;
						_root.camYpoint = 560;
					};
					endlever = function () {
						_root.cinematic = false;
						_root.cinemacam = false;
					};
					if (_root.cinematic == false) {
						if (down_MC.swit1.hitTest(playerP1.coreblock)) {
							_root.page1 = 'Pull the lever?';
							if (_root.currentpage == 1) {
								_root.yesno = true;
							}
							if (_root.currentpage == 2 && _root.choice == 1) {
								if (_root.switchzn1 == false) {
									_root.doCinematic();
									_root.camXpoint = -165;
									_root.camYpoint = 665;
									_root.cinemacam = true;
									num = 1;
									setTimeout(dolever1, 1000);
									setTimeout(endlever, 1700);
								} else {
									_root.doCinematic();
									_root.camXpoint = -165;
									_root.camYpoint = 665;
									_root.cinemacam = true;
									num = 1;
									setTimeout(dolever2, 1000);
									setTimeout(endlever, 1700);
								}
							}
							_root.doStartText();
						}
						if (down_MC.swit2.hitTest(playerP1.coreblock)) {
							_root.page1 = 'Pull the lever?';
							if (_root.currentpage == 1) {
								_root.yesno = true;
							}
							if (_root.currentpage == 2 && _root.choice == 1) {
								if (_root.switchzn2 == false) {
									_root.doCinematic();
									_root.camXpoint = -190;
									_root.camYpoint = 75;
									_root.cinemacam = true;
									num = 2;
									setTimeout(dolever1, 1000);
									setTimeout(endlever, 1700);
								} else {
									_root.doCinematic();
									_root.camXpoint = -190;
									_root.camYpoint = 75;
									_root.cinemacam = true;
									num = 2;
									setTimeout(dolever2, 1000);
									setTimeout(endlever, 1700);
								}
							}
							_root.doStartText();
						}
						if (down_MC.swit3.hitTest(playerP1.coreblock)) {
							_root.page1 = 'Pull the lever?';
							if (_root.currentpage == 1) {
								_root.yesno = true;
							}
							if (_root.currentpage == 2 && _root.choice == 1) {
								if (_root.switchzn3 == false) {
									_root.doCinematic();
									_root.camXpoint = -370;
									_root.camYpoint = 85;
									_root.cinemacam = true;
									num = 3;
									setTimeout(dolever1, 1000);
									setTimeout(endlever, 1700);
								} else {
									_root.doCinematic();
									_root.camXpoint = -370;
									_root.camYpoint = 85;
									_root.cinemacam = true;
									num = 3;
									setTimeout(dolever2, 1000);
									setTimeout(endlever, 1700);
								}
							}
							_root.doStartText();
						}
						if (down_MC.swit4.hitTest(playerP1.coreblock)) {
							_root.page1 = 'Pull the lever?';
							if (_root.currentpage == 1) {
								_root.yesno = true;
							}
							if (_root.currentpage == 2 && _root.choice == 1) {
								if (_root.switchzn4 == false) {
									_root.doCinematic();
									_root.camXpoint = -65;
									_root.camYpoint = -175;
									_root.cinemacam = true;
									num = 4;
									setTimeout(dolever1, 1000);
									setTimeout(endlever, 1700);
								} else {
									_root.doCinematic();
									_root.camXpoint = -65;
									_root.camYpoint = -175;
									_root.cinemacam = true;
									num = 4;
									setTimeout(dolever2, 1000);
									setTimeout(endlever, 1700);
								}
							}
							_root.doStartText();
						}
						if (down_MC.swit5.hitTest(playerP1.coreblock)) {
							_root.page1 = 'Pull the lever?';
							if (_root.currentpage == 1) {
								_root.yesno = true;
							}
							if (_root.currentpage == 2 && _root.choice == 1) {
								if (_root.switchzn5 == false) {
									_root.doCinematic();
									_root.camXpoint = 235;
									_root.camYpoint = -250;
									_root.cinemacam = true;
									num = 5;
									setTimeout(dolever1, 1000);
									setTimeout(endlever, 1700);
								} else {
									_root.doCinematic();
									_root.camXpoint = 235;
									_root.camYpoint = -250;
									_root.cinemacam = true;
									num = 5;
									setTimeout(dolever2, 1000);
									setTimeout(endlever, 1700);
								}
							}
							_root.doStartText();
						}
						if (down_MC.swit6.hitTest(playerP1.coreblock)) {
							_root.page1 = 'Pull the lever?';
							if (_root.currentpage == 1) {
								_root.yesno = true;
							}
							if (_root.currentpage == 2 && _root.choice == 1) {
								if (_root.switchzn6 == false) {
									_root.doCinematic();
									_root.camXpoint = 1010;
									_root.camYpoint = 200;
									_root.cinemacam = true;
									num = 7;
									dolever1();
									num = 6;
									setTimeout(dolever1X, 1000);
									setTimeout(dolever1XX, 1300);
									setTimeout(dolever1, 2200);
									setTimeout(endlever, 2700);
								} else {
									_root.doCinematic();
									_root.camXpoint = 1010;
									_root.camYpoint = 200;
									_root.cinemacam = true;
									num = 7;
									dolever2();
									num = 6;
									setTimeout(dolever2X, 1000);
									setTimeout(dolever2XX, 1300);
									setTimeout(dolever2, 2200);
									setTimeout(endlever, 2700);
								}
							}
							_root.doStartText();
						}
					}
				};
			};
		}
		instance of movieClip 3827	{
			onClipEvent (enterFrame) {
				if (_root.item14 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item14 = true;
					_root.foundgold = 23;
					_root.doFoundGold();
				}
			}
		}
		instance of movieClip 3827	{
			onClipEvent (enterFrame) {
				if (_root.item13 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item13 = true;
					_root.foundgold = 10;
					_root.doFoundGold();
				}
			}
		}
		instance of movieClip 3827	{
			onClipEvent (enterFrame) {
				if (_root.item19 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item19 = true;
					_root.foundgold = 5;
					_root.doFoundGold();
				}
			}
		}
		instance of movieClip 5193	{
			onClipEvent (enterFrame) {
				if (_root.item20 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item20 = true;
					_root.doFoundRemedy();
				}
			}
		}
		instance of movieClip 5198	{
			onClipEvent (enterFrame) {
				if (_root.item21 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item21 = true;
					_root.num = 3;
					_root.doFoundDefense();
				}
			}
		}
		instance of movieClip 5199	{
			onClipEvent (enterFrame) {
				if (_root.gotsword3 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.num = 3;
					_root.doFoundSword();
				}
			}
		}
		instance of movieClip 5201	{
			onClipEvent (enterFrame) {
				if (_root.item28 > 1) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item28 = 2;
					_root.itemname = 'Broken shield';
					_root.doFoundArtifact();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 29 {
			_root.newmusic = 'empty';
			_root.doMusic();
			_root.areaname = 'Dream';
			_root.Goto();
			_root.camXpoint = -63;
			_root.camYpoint = 0;
			_root.doCinematic();
			_root.cinemacam = true;
			_root.cam._x = _root.camXpoint;
			_root.cam._y = _root.camYpoint;
			caleb._visible = true;
			caleb._x = playerP1._x + 40;
			caleb._y = playerP1._y;
			_root.directions1 = 3;
			_root.walking1X = true;
			_root.walkingspeed1 = 1.1;
			_root.walking1chars = new Array(playerP1, playerP2, playershadow, caleb);
			_root.calebwalking = true;
			_root.walking = true;
			_root.notwalk = true;
			_root.page1 = 'Roy: We\'re almost there, I can see Bavelock!';
			_root.doStartText();
			stop();
			onEnterFrame = function () {
				if (caleb._y <= -5) {
					_root.walking1X = false;
					_root.calebwalking = false;
					caleb.gotoAndStop(7);
					playerP1.gotoAndStop(11);
					playerP2.gotoAndStop(11);
					_root.walking = false;
				}
				if (_root.cam._y <= -250 && _root.story == 230) {
					_root.page1 = 'Roy: A golden mask...';
					_root.page2 = 'Golden Demon: It is you...\rHow are you still alive?';
					_root.page3 = 'Roy: Me? ... What...\rWhat are you talking about?';
					_root.page4 = 'Golden Demon: I seek the shards of the Tear of Neriah. I know you have two parts of the artifact!';
					_root.doStartText();
					_root.story = 240;
					_root.newmusic = 'razors';
					_root.doMusic();
				}
				_root.doActivatedText = function () {
					if (_root.story == 230 && _root.currentpage == 2) {
						_root.camXpoint = -48;
						_root.camYpoint = -330;
					}
					if (_root.story == 240) {
						if (_root.currentpage == 5) {
							_root.sound1.attachSound('woosh2');
							_root.sound1.start();
							down_MC.maskz.gotoAndPlay(65);
						}
					}
				};
			};
		}
		frame 30 {
			_root.newmusic = 'tonal';
			_root.Goto();
			_root.doNotrun();
			_root.footstepsound = 0;
			_root.gotoAndPlay('GameSceneX');
			_root.black.gotoAndPlay(17);
			onEnterFrame = function () {
				if (A1.hitTest(actionblock) && _root.story == 260) {
					if (down_MC.maskz._currentframe == 1) {
						down_MC.maskz.gotoAndPlay(2);
						_root.doCinematic();
						_root.page1 = 'Golden Demon: You...\rI killed you before, I watched you die before my feet. You are a familiar presence to me...';
						_root.page2 = 'Roy: What are you talking about?\rWho are you, really?';
						_root.page3 = 'Golden Demon: I was in darkness. So darkness I became.\rI am Death given form. Pain given life. I have many names. Sinmorath, Golden Demon, Pilgrim of Shadow. A name means nothing to me.';
						_root.page4 = 'Golden Demon: You hunted me, and you found me. I destroyed you. Do you even remember?';
						_root.page5 = 'Roy: I do not remember anything. Are you saying...\rAre you saying you killed me? Why was I hunting for you?';
						_root.page6 = 'Golden Demon: Is it true you do not know? You sought vengeance against me. When we met I felt a presence I hadn\'t felt for many years. I had forgotten who you were. But I know who you are now, ' + _root.corename + ' and I have use for you.';
						_root.page7 = 'Golden Demon: You have a strong force inside you that survived my powers. I have killed armies worth of soldiers and seen their life force fly past like dying embers in the wind. But you survived.';
						_root.page8 = 'Roy: Answer me! Why was I hunting for you? Who am I?';
						_root.page9 = 'Golden Demon: There is peace in chaos, don\'t you see? There is tranquility in death. It is the final puzzle piece to life, the passageway to the stars.';
						_root.page10 = 'Golden Demon: When I hunt for you again, the world will not be big enough for you to hide in.';
						_root.page11 = 'Golden Demon: I will show this world the justice it deserves and the true meaning of pain.\rPain is inevitable. Suffering is choice. Embrace the pain and embrace the eternal darkness, ' + _root.corename + '.';
						_root.page12 = 'Caleb: ' + _root.corename + ', come on! Wake up ' + _root.corename + '!';
					}
					if (_root.currentpage == 1) {
						playerP1.gotoAndStop(11);
						playerP2.gotoAndStop(11);
						_root.camXpoint = -150;
						_root.camYpoint = -200;
						_root.cinemacam = true;
					}
					if (_root.currentpage == 9 && down_MC.darkness_MC._currentframe == 1) {
						down_MC.darkness_MC.gotoAndPlay(2);
					}
					if (_root.currentpage == 11 && _root.black2._currentframe == 1) {
						_root.black2.gotoAndPlay(2);
					}
					if (_root.currentpage == 12) {
						down_MC.gotoAndStop(2);
						if (_root.black2._currentframe < 700) {
							_root.black2.gotoAndPlay(700);
						}
					}
					if (_root.currentpage == 13) {
						_root.cinemacam = false;
						_root.areascreen = 24;
						_root.playerX = 70;
						_root.playerY = 45;
						playerP1.gotoAndStop(12);
						playerP2.gotoAndStop(12);
						_root.stand = 4;
						_root.doSleep();
						_root.cinematic = true;
						_root.doGotoGame();
					}
				}
			};
		}
		frame 31 {
			_root.newmusic = 'woods';
			_root.Goto();
			if (_root.story < 220 && _root.questgnome < 4) {
				down_MC.gnome._visible = false;
			}
			onEnterFrame = function () {
				if (A1.hitTest(actionblock) && _root.story == 120) {
					_root.directions1 = 4;
					_root.walking1X = true;
					_root.walkingspeed1 = 1.8;
					_root.walking1chars = new Array(caleb);
					_root.calebwalking = true;
					caleb._visible = true;
					caleb._x = playerP1._x;
					caleb._y = playerP1._y;
					_root.notwalk = true;
					_root.story = 121;
					_root.stand = 4;
					playerP1.gotoAndStop(12);
					playerP2.gotoAndStop(12);
				}
				if (caleb._y > playerP1._y + 50 && _root.calebwalking == true) {
					_root.page1 = 'Caleb: ' + _root.corename + ', before we continue on I must ask you if you are familiar with any spells?';
					_root.page2 = 'Roy: No, my sword is all I use.';
					_root.page3 = 'Caleb: I feared as much. You need to be prepared for the worst, my friend. Release your inner spirit. Next time we face an enemy I need you to practice a healing spell. It is the least you can do. I will help you along.';
					_root.page4 = _root.corename + ' now has the spell \'Heal\'. Caleb now have the spells \'Chaos\' and \'Dementia\'.';
					_root.page5 = 'Caleb: Perhaps you should save the game before we enter a battle. Press Z for a quicksave.';
					_root.doStartText();
					_root.walking1X = false;
					_root.calebwalking = false;
					_root.num = 1;
					_root.addingCoremagic();
					_root.num = 1;
					_root.addingCalebmagic();
					_root.num = 2;
					_root.addingCalebmagic();
					_root.corenumofmagics = 1;
					_root.calebnumofmagics = 1;
					caleb.gotoAndStop(7);
				}
				if (_root.story == 121 && _root.currentpage == 4) {
					_root.directions1 = 3;
					_root.walking1X = true;
					_root.walkingspeed1 = 1.8;
					_root.walking1chars = new Array(caleb);
					_root.calebwalking = true;
					caleb._visible = true;
					_root.story = 122;
				}
				if (_root.story == 122 && caleb._y < playerP1._y + 10) {
					caleb._visible = false;
					_root.walking1X = false;
					_root.calebwalking = false;
					caleb._y = -900;
					_root.character = 1;
					_root.story = 130;
				}
				if (B1.hitTest(actionblock)) {
					_root.areascreen = 3;
					_root.stand = 3;
					_root.playerX = -455;
					_root.playerY = 350;
					_root.doGotoGame();
				}
				if (B2.hitTest(actionblock)) {
					_root.areascreen = 3;
					_root.stand = 4;
					_root.playerX = -430;
					_root.playerY = 460;
					_root.doGotoGame();
				}
				_root.doActivatedText = function () {
					if (talk1.hitTest(playerP1.coreblock) && _root.stand == 3 && _root.story >= 220 && _root.questgnome < 4) {
						if (_root.questgnome == 1) {
							_root.page1 = 'Memble: Greetings! I am Memble, the protector of the Gwydion forest!';
							_root.page2 = 'ALT';
							_root.dialog = 2;
							if (_root.currentpage == 1) {
								_root.chathelp = true;
							}
							if (_root.chat == true && _root.currentpage == 2) {
								_root.page2 = 'Memble: We gnomes have lived in this forest for eons! You just don\'t always see us, lad.';
							} else {
								if (_root.help == true) {
									if (_root.gotshovel == true) {
										if (_root.currentpage == 2) {
											_root.page2 = 'Memble: I am glad you asked! I am out looking for the Wisp necklace! See, the Wisp necklace is a family heirloom that is said to contain magic powers. My wife is sick and nothing is curing her.';
											_root.page3 = 'Memble: I am hoping the necklace might cure her. The necklace has to be dug for, will you help me?';
											_root.page4 = 'ALT';
										}
										if (_root.currentpage == 3) {
											_root.yesno = true;
										}
										if (_root.currentpage == 4 && _root.questgnome == 1) {
											if (_root.choice == 1) {
												_root.page4 = 'Memble: Thank you, thank you sir! Please hurry, my wife is very sick. You should be digging around in the forest, the necklace should be close-by.';
												_root.questgnome = 2;
												_root.questgnomeX = _root.numquests;
												_root.newquest = 'Memble the gnome in Gwydion forest is looking for the Wisp necklace. I will help him find it, the necklace has to be dug up.';
												_root.questname = 'Gnome trouble';
												_root.addJournal();
											} else {
												_root.page4 = 'Memble: I see...';
											}
										}
									} else {
										_root.page2 = 'Memble: I am glad you asked! I am out looking for the Wisp necklace! See, the Wisp necklace is a family heirloom that is said to contain magic powers. My wife is sick and nothing is curing her.';
										_root.page3 = 'Memble: I am hoping the necklace might cure her. The necklace has to be dug for, will you help me?';
										_root.page4 = 'Roy: I\'m sorry but I have no shovel to dig with.';
										_root.page5 = 'Memble: Will you please go look for one? I know that the fisher north of here has a shovel.';
									}
								}
							}
						} else {
							if (_root.questgnome == 2) {
								_root.page1 = 'Memble: Have you found it yet?';
							} else {
								if (_root.questgnome == 3 && _root.dialog == 1) {
									_root.num = 2;
									if (_root.numofchars > 1) {
										if (_root.currentpage == 1) {
											_root.corecaleb = true;
										}
										_root.page1 = 'Memble: Yes, this is exactly what I wanted! Thank you, thank you! Here is a little something for the trouble you have been through.\r*You are given ' + _root.num + ' Magic auras! Give ' + _root.corename + ' or Caleb?';
										_root.page2 = 'ALT';
										_root.page3 = 'Memble: Now I have to go and give this to my wife! May our paths cross once more!';
										if (_root.currentpage == 2) {
											if (_root.choice == 1) {
												_root.addingMagicCore();
												_root.page2 = '*You got ' + _root.num + ' Magic auras! ' + _root.corename + '\'s Magic improved.';
											} else {
												if (_root.choice == 2) {
													_root.addingMagicCaleb();
													_root.page2 = '*You got ' + _root.num + ' Magic auras! Caleb\'s Magic improved.';
												}
											}
										}
										if (_root.currentpage == 3) {
											_root.questgnome = 4;
											down_MC.gnome._visible = false;
											_root.black.gotoAndPlay(2);
											_root.delquest = _root.questgnomeX;
											_root.delJournal();
											_root.questgnomeX = -1;
										}
									} else {
										_root.page1 = 'Memble: Yes, this is exactly what I wanted! Thank you, thank you! Here is a little something for the trouble you have been through.\r*You got ' + _root.num + ' Magic auras! ' + _root.corename + '\'s Magic improved.';
										_root.page2 = 'Memble: Now I\'m off to give this to my wife! May out paths cross once more!';
										_root.addingMagicCore();
										if (_root.currentpage == 2) {
											_root.questgnome = 4;
											down_MC.gnome._visible = false;
											_root.black.gotoAndPlay(2);
											_root.delquest = _root.questgnomeX;
											_root.delJournal();
											_root.questgnomeX = -1;
										}
									}
								}
							}
						}
						_root.doStartText();
					}
					if (shroom1.hitTest(playerP1.coreblock)) {
						_root.num = 57;
						_root.doFoundFinger();
					}
					if (shroom2.hitTest(playerP1.coreblock)) {
						_root.num = 58;
						_root.doFoundBlood();
					}
					if (shroom3.hitTest(playerP1.coreblock)) {
						_root.num = 59;
						_root.doFoundBlood();
					}
					if (shroom4.hitTest(playerP1.coreblock)) {
						_root.num = 65;
						_root.doFoundBlood();
					}
					if (shroom5.hitTest(playerP1.coreblock)) {
						_root.num = 66;
						_root.doFoundFinger();
					}
				};
			};
		}
		frame 32 {
			if (_root.story == 220 or _root.story == 221) {
				_root.newmusic = 'earthquake';
			} else {
				_root.newmusic = 'darkness';
			}
			_root.Goto();
			if (_root.nomorncave1 == false && _root.story < 190) {
				_root.page1 = 'Caleb: Savina is not this way.';
				_root.nomorncave1 = true;
				_root.doStartText();
			} else {
				if (_root.story == 190) {
					_root.page1 = 'Caleb: This is Blackwhisper Cave. Now let\'s see if there are more of those crystals here.';
					_root.story = 200;
					_root.doStartText();
					_root.mainquest = 'Caleb and I arrived to Blackwhisper Cave in search for the crystal.';
				}
			}
			onEnterFrame = function () {
				if (B1.hitTest(actionblock)) {
					_root.areascreen = 3;
					_root.stand = 3;
					_root.playerX = -180;
					_root.playerY = 620;
					_root.doGotoGame();
				}
				if (B2.hitTest(actionblock)) {
					if (_root.story < 190) {
						_root.stand = 4;
						_root.playerX = -140;
						_root.playerY = -420;
						playerP1._x = -140;
						playerP2._x = -140;
						playerP1._y = -420;
						playerP2._y = -420;
						_root.black.gotoAndPlay(2);
					} else {
						_root.areascreen = 30;
						_root.stand = 4;
						_root.playerX = 15;
						_root.playerY = -310;
						_root.doGotoGame();
					}
				}
				if (B3.hitTest(actionblock) && _root.entercave == true) {
					_root.areascreen = 30;
					_root.stand = 1;
					_root.playerX = 333;
					_root.playerY = 205;
					_root.doGotoGame();
				}
				_root.doActivatedText = function () {
					if (shroom1.hitTest(playerP1.coreblock)) {
						_root.num = 23;
						_root.doFoundMoon();
					}
					if (shroom2.hitTest(playerP1.coreblock)) {
						_root.num = 24;
						_root.doFoundMoon();
					}
					if (shroom3.hitTest(playerP1.coreblock)) {
						_root.num = 25;
						_root.doFoundMoon();
					}
					if (shroom4.hitTest(playerP1.coreblock)) {
						_root.num = 26;
						_root.doFoundMoon();
					}
					if (shroom5.hitTest(playerP1.coreblock)) {
						_root.num = 27;
						_root.doFoundMoon();
					}
					if (shroom6.hitTest(playerP1.coreblock)) {
						_root.num = 28;
						_root.doFoundMoon();
					}
				};
			};
		}
		instance of movieClip 4711	{
			onClipEvent (enterFrame) {
				if (_root.item9 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item9 = true;
					_root.doFoundElixir();
				}
			}
		}
		instance of movieClip 3827	{
			onClipEvent (enterFrame) {
				if (_root.item10 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item10 = true;
					_root.foundgold = 15;
					_root.doFoundGold();
				}
			}
		}
		instance cavedark of movieClip 5305	{
			onClipEvent (enterFrame) {
				this._x = _parent.playerP1._x + 20;
				this._y = _parent.playerP1._y + 20;
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 33 {
			if (_root.story == 220 or _root.story == 221) {
				_root.newmusic = 'earthquake';
				_root.entercave = false;
			} else {
				_root.newmusic = 'darkness';
				_root.entercave = true;
			}
			if (_root.questkidnap == 2) {
				b1.Q1._y = 420;
			} else {
				b1.Q1._y = -900;
				down_MC.amagus._visible = false;
				down_MC.bandit._visible = false;
			}
			_root.Goto();
			onEnterFrame = function () {
				if (B1.hitTest(actionblock)) {
					_root.areascreen = 29;
					_root.stand = 3;
					_root.playerX = -160;
					_root.playerY = 605;
					_root.doGotoGame();
				}
				if (_root.story >= 190 && _root.story < 230) {
					if (B2.hitTest(actionblock)) {
						_root.areascreen = 49;
						_root.stand = 1;
						_root.playerX = 570;
						_root.playerY = 215;
						_root.doGotoGame();
					}
				}
				if (b1.Q1.hitTest(actionblock) && _root.questkidnap == 2) {
					if (_root.lock1X == false) {
						_root.lock1X = true;
						_root.doStartText();
					}
					_root.page1 = 'Bandit: Who are you? Are you here to pay the ransom? You are not what I expected.';
					_root.page2 = 'Roy: I am not paying you anything. You are the one who will pay for this and face justice for what you have done, you scum.';
					_root.page3 = 'Bandit: Watch your tongue before I cut it off.';
					if (_root.currentpage == 4) {
						_root.questkidnap = 3;
						_root.doEnterBattle();
					}
				} else {
					_root.lock1X = false;
				}
				_root.doActivatedText = function () {
					if (shroom1.hitTest(playerP1.coreblock)) {
						_root.num = 29;
						_root.doFoundMoon();
					}
					if (shroom2.hitTest(playerP1.coreblock)) {
						_root.num = 30;
						_root.doFoundMoon();
					}
					if (shroom3.hitTest(playerP1.coreblock)) {
						_root.num = 31;
						_root.doFoundMoon();
					}
					if (shroom4.hitTest(playerP1.coreblock)) {
						_root.num = 32;
						_root.doFoundMoon();
					}
					if (shroom5.hitTest(playerP1.coreblock)) {
						_root.num = 33;
						_root.doFoundMoon();
					}
					if (shroom6.hitTest(playerP1.coreblock)) {
						_root.num = 34;
						_root.doFoundMoon();
					}
					if (shroom7.hitTest(playerP1.coreblock)) {
						_root.num = 35;
						_root.doFoundMoon();
					}
					if (shroom8.hitTest(playerP1.coreblock)) {
						_root.num = 36;
						_root.doFoundMoon();
					}
					if (shroom9.hitTest(playerP1.coreblock)) {
						_root.num = 61;
						_root.doFoundMoon();
					}
					if (shroom10.hitTest(playerP1.coreblock)) {
						_root.num = 62;
						_root.doFoundMoon();
					}
					if (shroom11.hitTest(playerP1.coreblock)) {
						_root.num = 63;
						_root.doFoundMoon();
					}
				};
			};
		}
		instance of movieClip 5326	{
			onClipEvent (enterFrame) {
				if (_root.gotsword5 == true or _root.story < 300) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.num = 5;
					_root.doFoundSword();
				}
			}
		}
		instance of movieClip 5328	{
			onClipEvent (enterFrame) {
				if (_root.item26 > 1) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item26 = 2;
					_root.itemname = 'Strange orb';
					_root.doFoundArtifact();
				}
			}
		}
		frame 34 {
			if (_root.story == 220 or _root.story == 221) {
				_root.newmusic = 'earthquake';
			} else {
				_root.newmusic = 'darkness';
			}
			_root.Goto();
			onEnterFrame = function () {
				if (playerP1._x >= -245 && playerP1._x <= -240) {
					_root.directions1 = 4;
				}
				if (caleb._x >= -210 && caleb._x <= -205) {
					_root.walking2X = false;
					caleb.gotoAndStop(8);
				}
				if (playerP1._y >= -115 && playerP1._y <= -110 && _root.story == 201) {
					_root.story = 202;
					_root.walking1X = false;
					_root.walking = false;
					_root.stand = 4;
					_root.page1 = 'Roy: Look at that!';
					_root.page2 = 'Caleb: It looks like the previous crystal you found.';
					_root.page3 = 'Roy: How did this thing even get here?';
					_root.doStartText();
					_root.mainquest = 'Caleb and I found another crystal in Blackwhisper cave!';
					_root.walking2chars = new Array(caleb);
					_root.directions2 = 2;
					_root.walking2X = true;
					_root.walkingspeed2 = 1.7;
					caleb._x = playerP1._x;
					caleb._y = playerP1._y;
					caleb._visible = true;
					_root.corehealth = _root.coremaxhealth;
					_root.coremana = _root.coremaxmana;
					_root.calebhealth = _root.calebmaxhealth;
					_root.calebmana = _root.calebmaxmana;
				}
				if (_root.story == 202) {
					if (_root.currentpage == 4) {
						_root.newmusic = 'empty';
						_root.doMusic();
						_root.walking1X = true;
						_root.walking = true;
						_root.walkingspeed1 = 1.5;
					}
					if (playerP1._y >= -70 && playerP1._y <= -65) {
						_root.walking1X = false;
						_root.walking = false;
						_root.stand = 2;
						playerP1.gotoAndStop(20);
						playerP2.gotoAndStop(20);
						_root.story = 210;
					}
				}
				if (_root.story == 210) {
					if (_root.currentpage == 2) {
						playerP1.anm.gotoAndPlay(92);
						playerP2.anm.gotoAndPlay(92);
						_root.play();
						if (_root.sfxmute == false) {
							_root.sound1.attachSound('ominous');
							_root.sound1.start();
						}
					}
					if (_root.currentpage == 3) {
						_root.story = 211;
						cavedark.quake.gotoAndStop(2);
						_root.newmusic = 'earthquake';
						_root.doMusic();
					}
				}
				if (_root.story == 211) {
					if (_root.currentpage == 4) {
						_root.stand = 3;
						playerP1.gotoAndStop(11);
						playerP2.gotoAndStop(11);
					}
					if (_root.currentpage == 5) {
						caleb._visible = false;
						_root.black.gotoAndPlay(2);
						_root.cinematic = false;
						_root.story = 220;
						_root.doAutosave();
					}
				}
				if (A1.hitTest(actionblock) && cavedark._currentframe > 1 && cavedark._currentframe < 25) {
					cavedark.gotoAndPlay(25);
					coloring = new Array(playerP1, playerP2);
					var v2 = 0;
					while (v2 < coloring.length) {
						myColor = new Color(coloring[v2]);
						myColorTransform = new Object();
						myColorTransform = {'rb': _root.darkcolor, 'gb': _root.darkcolor, 'bb': _root.darkcolor};
						myColor.setTransform(myColorTransform);
						++v2;
					}
				}
				if (A2.hitTest(actionblock)) {
					if (cavedark._currentframe == 1) {
						cavedark.gotoAndPlay(2);
						coloring = new Array(playerP1, playerP2);
						v2 = 0;
						while (v2 < coloring.length) {
							myColor = new Color(coloring[v2]);
							myColorTransform = new Object();
							myColorTransform = {'rb': 0, 'gb': 0, 'bb': 0};
							myColor.setTransform(myColorTransform);
							++v2;
						}
					}
					if (_root.story == 200) {
						_root.story = 201;
						_root.directions1 = 1;
						_root.walking1X = true;
						_root.walking = true;
						_root.walkingspeed1 = 2;
						_root.walking1chars = new Array(playerP1, playerP2, playershadow);
						_root.doCinematic();
					}
				}
				if (A3.hitTest(actionblock) && _root.story == 220) {
					_root.doEnterBattle();
				}
				if (B1.hitTest(actionblock)) {
					_root.areascreen = 30;
					_root.stand = 2;
					_root.playerX = -520;
					_root.playerY = 260;
					_root.doGotoGame();
				}
				_root.doActivatedText = function () {
					if (shroom1.hitTest(playerP1.coreblock)) {
						_root.num = 37;
						_root.doFoundMoon();
					}
					if (shroom2.hitTest(playerP1.coreblock)) {
						_root.num = 38;
						_root.doFoundMoon();
					}
					if (shroom3.hitTest(playerP1.coreblock)) {
						_root.num = 39;
						_root.doFoundMoon();
					}
					if (shroom4.hitTest(playerP1.coreblock)) {
						_root.num = 40;
						_root.doFoundMoon();
					}
					if (shroom5.hitTest(playerP1.coreblock)) {
						_root.num = 41;
						_root.doFoundMoon();
					}
					if (shroom6.hitTest(playerP1.coreblock)) {
						_root.num = 42;
						_root.doFoundMoon();
					}
					if (shroom7.hitTest(playerP1.coreblock)) {
						_root.num = 43;
						_root.doFoundMoon();
					}
					if (shroom8.hitTest(playerP1.coreblock)) {
						_root.num = 64;
						_root.doFoundMoon();
					}
				};
			};
		}
		instance of movieClip 5342	{
			onClipEvent (enterFrame) {
				if (_root.item18 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item18 = true;
					_root.num = 4;
					_root.doFoundAgility();
				}
			}
		}
		instance of movieClip 3827	{
			onClipEvent (enterFrame) {
				if (_root.item17 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item17 = true;
					_root.foundgold = 20;
					_root.doFoundGold();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		frame 35 {
			if (_root.directions == 10) {
				_root.directions = 0;
			}
			_root.Goto();
			if (_root.story == 173) {
				_root.stand = 4;
				playerP1._x = -135;
				playerP2._x = -135;
				playerP1._y = -190;
				playerP2._y = -190;
				_root.directions1 = 4;
				_root.walking1X = true;
				_root.walkingspeed1 = 5.5;
				_root.walking1chars = new Array(down_MC.patrick);
				down_MC.patrick._x = 145;
				down_MC.patrick._y = 40;
				down_MC.patrick._visible = true;
			} else {
				if (_root.story == 174) {
					down_MC.patrick._y = 170;
					down_MC.patrick._x = -130;
					down_MC.patrick.gotoAndStop(6);
				}
			}
			if (_root.story == 181) {
				caleb._visible = true;
				caleb._x = playerP1._x;
				caleb._y = playerP1._y + 30;
				caleb.gotoAndStop(5);
			}
			onEnterFrame = function () {
				if (down_MC.patrick.pat.hitTest(actionblock)) {
					_root.walkingspeed1 = 5.5;
				} else {
					_root.walkingspeed1 = 4;
				}
				if (caleb._y >= playerP1._y + 15 && caleb._y <= playerP1._y + 20 && _root.story == 174) {
					_root.walking2X = false;
					caleb.gotoAndStop(5);
				}
				if (caleb._y >= -15 && caleb._y <= -10 && _root.story == 183) {
					_root.walking2X = false;
					caleb._visible = false;
				}
				if (_root.story == 173) {
					if (down_MC.patrick._y >= 170 && down_MC.patrick._y <= 180) {
						_root.directions1 = 1;
					}
					if (down_MC.patrick._x >= -140 && down_MC.patrick._x <= -130) {
						_root.walking1X = false;
						down_MC.patrick.gotoAndStop(6);
						_root.story = 174;
					}
				}
				if (down_MC.patrick._y >= 315 && down_MC.patrick._y <= 325) {
					_root.walking1X = false;
				}
				if (A1.hitTest(actionblock) && _root.story <= 133) {
					if (_root.collectibles < 3) {
						_root.page1 = 'Caleb: Look! Some believe a mushroom from a mushroom ring might bring luck for a year.';
						_root.page2 = 'You can collect mushrooms by standing next to them and pressing Enter or E. They can be used to concoct potions, or you can just sell them for extra money.';
						_root.doStartText();
						playerP1.gotoAndStop(9);
						playerP2.gotoAndStop(9);
						_root.camXpoint = -333;
						_root.camYpoint = 80;
						_root.doCinematic();
						_root.cinemacam = true;
						if (_root.currentpage == 3) {
							_root.story = 140;
							_root.cinematic = false;
							_root.cinemacam = false;
						}
					} else {
						_root.story = 140;
					}
				}
				if (A2.hitTest(actionblock) && _root.story == 174) {
					if (caleb._visible == false) {
						caleb._visible = true;
						caleb._x = playerP1._x;
						caleb._y = playerP1._y;
						down_MC.patrick.gotoAndStop(7);
						_root.directions2 = 4;
						_root.walking2X = true;
						_root.walkingspeed2 = 2;
						_root.walking2chars = new Array(caleb);
						_root.doPlayer1();
					}
					playerP1.gotoAndStop(9);
					playerP2.gotoAndStop(9);
					_root.stand = 2;
					_root.page1 = 'Dion: Here is your money, child. Now leave.\rI am not surprised to see you two again.';
					_root.page2 = 'Roy: I see you\'re using children to do your stealing for you. Give the crystal back, you puppet of the Demon.';
					_root.page3 = 'Dion: I am no puppet. I have no business with you anymore, now go before I cut off your tongue and feed it to the dogs.';
					_root.page4 = 'Roy: I will remove that mask and cut off yours, if you do not give me that crystal back.';
					_root.page5 = 'Dion: Come on then. This will be fun.';
					_root.doStartText();
					_root.newmusic = 'juno';
					_root.doMusic();
					if (_root.currentpage == 2) {
						_root.directions1 = 4;
						_root.walking1X = true;
					}
					if (_root.currentpage == 6) {
						_root.story = 180;
						_root.character = 1;
						_root.stand = 1;
						_root.areabg = 7;
						_root.doEnterBattle();
					}
				}
				if (_root.story == 181 or _root.story == 182) {
					_root.page1 = 'Dion: I don\'t have time for this.';
					_root.page2 = 'Roy: Finally that scum got tired!';
					_root.page3 = 'Caleb: He will be back. Do not underestimate him.';
					_root.page4 = 'Roy: He left the crystal there, let\'s take it.';
					_root.doStartText();
					if (_root.currentpage == 2 && down_MC.dion._currentframe == 2) {
						down_MC.dion.gotoAndPlay(5);
						_root.story = 182;
						stone._visible = true;
						stone._y = 13;
					}
					if (_root.currentpage == 3) {
						playerP1.gotoAndStop(12);
						playerP2.gotoAndStop(12);
						caleb.gotoAndStop(7);
					}
					if (_root.currentpage == 4) {
						playerP1.gotoAndStop(9);
						playerP2.gotoAndStop(9);
						_root.stand = 2;
					}
					if (_root.currentpage == 5) {
						_root.directions2 = 3;
						_root.walking2X = true;
						_root.walkingspeed2 = 2;
						_root.walking2chars = new Array(caleb);
						_root.story = 183;
						_root.newmusic = 'savinacity';
						_root.doMusic();
					}
				}
				if (_root.story < 173 or _root.story > 174) {
					if (B1.hitTest(actionblock) or B2.hitTest(actionblock) or B3.hitTest(actionblock)) {
						_root.areascreen = 3;
						_root.stand = 4;
						_root.playerX = 290;
						_root.playerY = 210;
						_root.doGotoGame();
					}
					if (B4.hitTest(actionblock)) {
						_root.areascreen = 37;
						_root.stand = 3;
						_root.playerX = -44;
						_root.playerY = 220;
						_root.doGotoGame();
					}
				}
			};
		}
		instance stone of movieClip 5448	{
			onClipEvent (enterFrame) {
				if (_root.story == 182 or _root.story == 183) {
					this._visible = true;
					this._y = 13;
				} else {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.story = 190;
					_root.page1 = 'Roy: Alright. Is it worth pursuing the other crystal in the cave? We are not even certain it is there.';
					_root.page2 = 'Caleb: I have heard of artifacts inside that cave before, I believe there might be something of value there. Head south, follow the road.';
					_root.page3 = 'Roy: I hope you are right. But maybe it would be best to stock up on potions before we leave.';
					_root.text_MC.textz.gotoAndPlay(2);
					if (_root.sfxmute == false) {
						_root.item.start();
					}
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 4;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		frame 36 {
			_root.Goto();
			_root.cityy = 600;
			_root.areascreen = 37;
			if (_root.story >= 160 && _root.story < 173) {
				_root.story = 161;
				_root.directions1 = 2;
				_root.walking1X = true;
				_root.walkingspeed1 = 3.8;
				_root.walking1chars = new Array(down_MC.patrick);
				down_MC.patrick._x = 150;
				down_MC.patrick._y = 635;
				down_MC.patrick._visible = true;
			} else {
				down_MC.patrick._visible = false;
			}
			if (_root.questfriend == 5) {
				_root.page1 = 'Mill: Now where is Mike? Can you take me to him?';
				_root.doStartText();
			}
			if (_root.questfriend == 10) {
				_root.page1 = 'Roy: I failed! I wonder what Mike will think...';
				_root.doStartText();
				_root.questfriend = 11;
			}
			if (_root.questfriend >= 6 && _root.questfriend < 10) {
				down_MC.mike._visible = false;
			}
			onEnterFrame = function () {
				if (_root.story >= 161 && _root.story <= 171) {
					if (down_MC.patrick.pat.hitTest(actionblock)) {
						_root.walkingspeed1 = 7;
					} else {
						_root.walkingspeed1 = 3.8;
					}
					if (_root.story < 170) {
						if (down_MC.patrick._x >= 240 && down_MC.patrick._x <= 250) {
							_root.directions1 = 3;
						}
						if (down_MC.patrick._y >= 590 && down_MC.patrick._y <= 600) {
							_root.directions1 = 2;
						}
						if (down_MC.patrick._x >= 510 && down_MC.patrick._x <= 520) {
							_root.directions1 = 4;
						}
						if (down_MC.patrick._y >= 790 && down_MC.patrick._y <= 800) {
							_root.directions1 = 1;
							_root.story = 170;
						}
					}
					if (_root.story >= 170) {
						if (down_MC.patrick._x >= 240 && down_MC.patrick._x <= 250) {
							_root.directions1 = 3;
							_root.story = 171;
							b1.storyblock2._y = -900;
						}
						if (_root.story == 171) {
							if (down_MC.patrick._y >= 640 && down_MC.patrick._y <= 650) {
								_root.directions1 = 1;
							}
							if (down_MC.patrick._x >= -80 && down_MC.patrick._x <= -70) {
								_root.directions1 = 4;
							}
							if (down_MC.patrick._y >= 950 && down_MC.patrick._y <= 960) {
								_root.walking1X = false;
								down_MC.patrick._visible = false;
								_root.story = 173;
							}
						}
					}
				}
				if (A1.hitTest(actionblock)) {
					if (_root.story <= 140) {
						_root.page1 = 'Caleb: Finally here. Let\'s visit the tavern.';
						_root.doStartText();
						_root.mainquest = 'Caleb and I arrived to Savina.';
						_root.story = 141;
					}
				}
				if (B1.hitTest(actionblock)) {
					if (_root.story == 171) {
						_root.story = 173;
					}
					_root.areascreen = 31;
					_root.stand = 4;
					_root.playerX = -135;
					_root.playerY = -190;
					_root.doGotoGame();
				}
				if (B2.hitTest(actionblock)) {
					if (_root.questpotion == 2) {
						_root.questpotion = 3;
					}
					_root.stand = 1;
					_root.areascreen = 46;
					_root.footstepsound = 3;
					if (_root.sfxmute == false) {
						_root.sound2.attachSound('doorclose');
						_root.sound2.start();
					}
					_root.doPlayer1();
					_root.playerX = 25;
					_root.playerY = -380;
					_root.doGotoGame();
				}
			};
		}
		instance of movieClip 5585	{
			onClipEvent (enterFrame) {
				if (_root.item29 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item29 = true;
					_root.doFoundBottle();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.areascreen = 42;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.areascreen = 38;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.areascreen = 43;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock) && _root.housegrade2 > 1) {
					_root.areascreen = 43;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.areascreen = 46;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.areascreen = 45;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 41;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 44;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 39;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.areascreen = 40;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 2;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		frame 37 {
			if (_root.directions == 7) {
				_root.directions = 0;
			}
			_root.Goto();
			if (_root.story >= 144) {
				dion.gotoAndStop(4);
			}
			if (_root.story == 141) {
				playerP1._x = -365;
				playerP2._x = -365;
			}
			onEnterFrame = function () {
				if (_root.story >= 141 && _root.story <= 143) {
					if (_root.story == 141) {
						_root.story = 142;
						_root.directions1 = 3;
						_root.walking1X = true;
						_root.walkingspeed1 = 2.1;
						_root.walking1chars = new Array(playerP1, playerP2, playershadow);
						_root.walking = true;
						_root.doCinematic();
						_root.walkingspeed1 = 1.7;
						_root.walkingspeed3 = 1.2;
					}
					if (_root.player._y >= -95 && _root.player._y <= -90 && _root.walking1X == true) {
						caleb._x = _root.player._x;
						caleb._y = _root.player._y;
						_root.walking2chars = new Array(caleb);
						_root.directions2 = 1;
						_root.walking = false;
						_root.walking1X = false;
						_root.calebwalking = true;
						_root.walking2X = true;
						caleb._visible = true;
						_root.stand = 3;
					}
					if (caleb._x >= -400 && caleb._x <= -395 && _root.walking2X == true) {
						_root.walking2X = false;
						_root.calebwalking = false;
						caleb.gotoAndStop(7);
						_root.page1 = 'Caleb: Hello! Are there any rooms available for the night in the Slumbering Dragon inn?';
						_root.page2 = 'Vincent: Welcome travelers, there are indeed a few rooms available for the night. Do you want two rooms?';
						_root.page3 = 'Roy: Yes, two! We do not want to share a room...';
						if (_root.nocape == false) {
							_root.page4 = 'Dion: You there, with the cape!';
						} else {
							_root.page4 = 'Dion: You over there!';
						}
						_root.page5 = 'Roy: What do you want, stranger?';
						_root.page6 = 'Dion: You are no stranger to me, ' + _root.corename + '. I have sensed your arrival, for you have been marked by Sinmorath himself.';
						_root.page7 = 'Roy: What are you talking about? Marked by who?';
						_root.page8 = 'Caleb: You said Sinmorath. Do you mean... the Golden Demon?';
						_root.page9 = 'Dion: I do, and my Master is close. If my master knew you even still had life in you ' + _root.corename + ', I could not say for certain what he would do. I am surprised to see you alive in the flesh. But my master is not searching for you, he is searching for something else.';
						_root.page10 = 'Caleb: Stand back, heretic! What do you want?';
						_root.page11 = 'Dion: I had to know for certain that ' + _root.corename + ' was still alive.' + '\n' + 'We will see each other again.';
						_root.page12 = 'Roy: Woah! Where did he go? Is he still here, Caleb?';
						_root.page13 = 'Caleb: No, I do not sense his presence, he is gone. This is bad, really bad. I cannot believe out of all people I bring with me to Savina, I bring someone marked by the Golden Demon!';
						_root.page14 = 'Roy: What does that even mean? Why would I be marked?';
						_root.page15 = 'Caleb: I... I do not know.\rI think it means you were touched by his magic somehow, a dark enchantment of some kind... causing your amnesia.\rIs that even possible? Was it the Demon who caused your amnesia?';
						_root.page16 = 'Roy: I swear I do not know any of this. I do not understand any of it!';
						_root.page17 = 'Caleb: Hm... This is too much to think about at the moment. I need to sleep on this...';
						_root.doStartText();
					}
					if (_root.currentpage == 4) {
						_root.walking3chars = new Array(dion);
						_root.directions3 = 3;
						_root.walking3X = true;
						dion.gotoAndStop(3);
						caleb.gotoAndStop(5);
						playerP1.gotoAndStop(9);
						playerP2.gotoAndStop(9);
						_root.stand = 1;
						_root.camXpoint = -410;
						_root.camYpoint = -90;
						_root.cinemacam = true;
						_root.newmusic = 'juno';
						_root.doMusic();
					}
					if (dion._y >= -90 && dion._y <= -85 && _root.walking3X == true) {
						_root.walking3X = false;
						dion.gotoAndStop(2);
					}
					if (_root.currentpage == 10) {
						caleb.gotoAndStop(11);
					}
					if (_root.currentpage == 11) {
						dion.gotoAndPlay(5);
					}
					if (_root.currentpage == 12) {
						if (caleb.anm._currentframe == 49) {
							caleb.anm.gotoAndPlay(50);
						}
					}
					if (_root.currentpage == 13) {
						_root.cinemacam = false;
						caleb.gotoAndStop(6);
					}
					if (_root.currentpage == 17 && _root.story == 142) {
						_root.directions2 = 2;
						_root.calebwalking = true;
						_root.walking2X = true;
						_root.story = 143;
						_root.fame += 5;
					}
					if (caleb._x >= _root.player._x && caleb._x <= _root.player._x + 5 && _root.story == 143) {
						_root.calebwalking = false;
						_root.walking2X = false;
						caleb._visible = false;
						_root.cinematic = false;
						_root.story = 144;
						b1.storyblock3._y = 478;
						_root.newmusic = 'savinacity';
						_root.doMusic();
					}
				}
			};
		}
		instance of movieClip 3827	{
			onClipEvent (enterFrame) {
				if (_root.item16 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item16 = true;
					_root.foundgold = 10;
					_root.doFoundGold();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.doSavinaHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 2;
					_root.areascreen = 47;
					_root.doGotoGame();
				}
			}
		}
		frame 38 {
			_root.Goto();
			if (_root.questfriend >= 5 && _root.questfriend < 10) {
				up_MC.mill._visible = false;
			}
			onEnterFrame = function () {
				if (millstory.hitTest(actionblock) && _root.questfriend == 5) {
					_root.page1 = 'Vorlan: Hey! What are you doing!? Mill, you stay in your room!';
					_root.page2 = 'Vorlan: You should be ashamed of yourself! He was told to stay in his room.';
					_root.doStartText();
					if (_root.currentpage == 2) {
						_root.questfriend = 10;
						b1.millblock._y = 650;
						b1.millblockX._y = 690;
						up_MC.mill._visible = true;
						_root.black.gotoAndPlay(2);
						_root.delquest = _root.questfriendX;
						_root.delJournal();
						_root.questfriendX = -1;
					}
				}
			};
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
					_root.doSavinaHouse();
				}
			}
		}
		frame 39 {
			_root.Goto();
		}
		frame 40 {
			_root.Goto();
			if (_root.item26 < 3) {
				up_MC.item1._visible = false;
			}
			if (_root.item27 < 3) {
				up_MC.item2._visible = false;
			}
			if (_root.item28 < 3) {
				up_MC.item3._visible = false;
			}
		}
		frame 41 {
			if (_root.directions == 9) {
				_root.directions = 0;
			}
			patrick2._visible = false;
			_root.Goto();
			if (_root.story >= 151 && _root.story < 160) {
				caleb._visible = true;
				caleb._x = 145;
				caleb._y = -133;
				caleb.gotoAndStop(6);
			}
			if (_root.story >= 160) {
				patrick1._visible = false;
				b1.storyblock6._y = -900;
			}
			onEnterFrame = function () {
				if (_root.story >= 150 && _root.story <= 151) {
					if (_root.story == 150) {
						_root.story = 151;
						playerP1._x = 138;
						playerP2._x = 138;
						_root.directions1 = 3;
						_root.walking1X = true;
						_root.walkingspeed1 = 2.1;
						_root.walking1chars = new Array(playerP1, playerP2, playershadow);
						_root.walking = true;
						_root.doCinematic();
						_root.walkingspeed1 = 1.5;
						_root.walkingspeed2 = 1.7;
					}
					if (_root.player._y >= -105 && _root.player._y <= -100 && _root.walking1X == true) {
						caleb._x = _root.player._x + 5;
						caleb._y = _root.player._y;
						_root.walking2chars = new Array(caleb);
						_root.directions2 = 3;
						_root.walking = false;
						_root.walking1X = false;
						_root.calebwalking = true;
						_root.walking2X = true;
						caleb._visible = true;
						_root.stand = 3;
						_root.doPlayer2();
					}
					if (caleb._y >= -135 && caleb._y <= -130 && _root.walking2X == true) {
						_root.walking2X = false;
						_root.calebwalking = false;
						caleb.gotoAndStop(6);
						_root.page1 = 'Caleb: I will stay here and have a look.';
						_root.doStartText();
						b1.storyblock4._y = 365;
						b1.storyblock5._y = 480;
					}
					if (_root.currentpage == 2) {
						_root.cinematic = false;
						_root.story = 152;
					}
				}
			};
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.doSavinaHouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 2;
					_root.areascreen = 48;
					_root.doGotoGame();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 42 {
			if (_root.directions == 11) {
				_root.directions = 0;
			}
			if (_root.enterhouse2 == false) {
				_root.enterhouse2 = true;
			}
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
					_root.doSavinaHouse();
				}
			}
		}
		frame 43 {
			if (_root.directions == 8) {
				_root.directions = 0;
			}
			_root.Goto();
		}
		instance of movieClip 4027	{
			onClipEvent (enterFrame) {
				if (_root.item15 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item15 = true;
					_root.doFoundPotion();
				}
			}
		}
		frame 44 {
			_root.Goto();
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		frame 45 {
			_root.Goto();
			onEnterFrame = function () {
				if (B3.hitTest(actionblock)) {
					if (_root.questpotion == 3) {
						_root.questpotion = 2;
					}
					_root.areascreen = 37;
					_root.stand = 4;
					_root.playerX = 80;
					_root.playerY = -310;
					_root.doGotoGame();
				}
			};
		}
		instance of movieClip 5193	{
			onClipEvent (enterFrame) {
				if (_root.questpotion != 2 && _root.questpotion != 3) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.questpotion = 4;
					_root.page1 = 'Roy: This must be Dilos\' potion! He must want it back.';
					_root.text_MC.textz.gotoAndPlay(2);
					_root['obj' + _root.questpotionX] = 'I found Dilos\' potion, I should return it to him.';
				}
			}
		}
		instance of movieClip 3827	{
			onClipEvent (enterFrame) {
				if (_root.item24 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item24 = true;
					_root.foundgold = 9;
					_root.doFoundGold();
				}
			}
		}
		instance of movieClip 5585	{
			onClipEvent (enterFrame) {
				if (_root.item30 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item30 = true;
					_root.doFoundBottle();
				}
			}
		}
		frame 46 {
			_root.Goto();
			onEnterFrame = function () {
				if (_root.story == 145) {
					if (_root.currentpage == 2) {
						playerP1.gotoAndStop(10);
						playerP2.gotoAndStop(10);
					}
					if (_root.currentpage == 3) {
						_root.walking1chars = new Array(caleb);
						_root.directions1 = 1;
						_root.walking1X = true;
						_root.walkingspeed1 = 2;
					}
					if (caleb._x >= -240 && caleb._x <= -235) {
						caleb._visible = false;
						_root.walking1X = false;
						_root.cinematic = false;
						if (_root.completedquests < 3) {
							_root.story = 146;
						} else {
							_root.story = 150;
						}
					}
				}
			};
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 1;
					_root.areascreen = 38;
					_root.doGotoGame();
				}
			}
		}
		frame 47 {
			_root.Goto();
			if (_root.gotsword2 == true or _root.questbrock < 9) {
				up_MC.swordz._visible = false;
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.floorz = 1;
					_root.areascreen = 42;
					_root.doGotoGame();
				}
			}
		}
		frame 48 {
			_root.newmusic = 'river';
			_root.Goto();
			if (_root.questdrunk == 4) {
				bandits_MC.gotoAndStop(2);
			} else {
				if (_root.questdrunk == 5) {
					bandits_MC.gotoAndStop(3);
					_root.page1 = 'Podler: Thank you, ' + _root.corename + '! I have done some bad mistakes in my life but peeing on a bandit sure takes the cake!';
					_root.page2 = 'Podler: I have some gold in my pants, I just want you to have it. You did bring my pants with you, right?\r*20 Pix added';
					_root.page3 = 'Podler: I am going back home. I need a good sleep after this...';
					_root.doStartText();
					_root.questdrunk = 6;
				}
			}
			if (_root.endfishing == true) {
				_root.goldnum = Math.round(_root.fishscore / 500) * 5 + 1;
				_root.page1 = 'Bart: Good work, ' + _root.corename + '! You caught ' + _root.caughtfish + ' fish and got ' + _root.fishscore + ' points! For those I will pay you ' + _root.goldnum + ' Pix.' + '\n' + '*' + _root.goldnum + ' Pix added';
				_root.addingGold();
				_root.doStartText();
				_root.doAutosave();
				_root.endfishing = false;
				if (_root.fishscore >= 3000 && _root.medalaquaman == false) {
					_root.medalaquaman = true;
					_root.medaltext = 'Aqua Man';
					_root.gotredskin = 2;
					_root.customitem = 'Red skin';
					_root.doAddmedal();
					_root.API.unlockMedal('Aqua Man');
				}
				_root.createEmptyMovieClip('audiocontainer', 1);
				_root.music = new Sound(_root.audiocontainer);
			}
			onEnterFrame = function () {
				if (_root.questdrunk == 6 && _root.currentpage == 4) {
					_root.questdrunk = 10;
					_root.delquest = _root.questdrunkX;
					_root.delJournal();
					_root.questdrunkX = -1;
					_root.goldnum = 20;
					_root.addingGold();
					_root.black.gotoAndPlay(2);
					bandits_MC.gotoAndStop(1);
				}
				if (B1.hitTest(soundblock)) {
					_root.areascreen = 3;
					_root.stand = 2;
					_root.playerX = -585;
					_root.playerY = 260;
					_root.doGotoGame();
				}
				if (B2.hitTest(soundblock)) {
					_root.areascreen = 32;
					_root.stand = 3;
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.doGotoGame();
				}
				if (drunkblock.hitTest(playerP1.coreblock) && _root.questdrunk == 4) {
					_root.page1 = 'Podler: ' + _root.corename + ', thank god you are here!';
					_root.page2 = 'Bandit: What are you doing here? This guy was messing with us, do you know who he is?';
					_root.page3 = 'Roy: I know him. What was he doing?';
					_root.page4 = 'Bandit: Aside from peeing on my partner, he was calling us names and was asking for a fight! So that is what he got.';
					_root.page5 = 'Podler: I was drunk! I can\'t be responsible for what I was doing when I was drunk! Right?\rWill you help me, ' + _root.corename + '?';
					_root.page6 = 'ALT';
					playerP1.gotoAndStop(9);
					playerP2.gotoAndStop(9);
					_root.stand = 1;
					_root.doStartText();
					_root.questdrunk = 11;
				}
				_root.doActivatedText = function () {
					if (_root.questdrunk == 11) {
						if (_root.currentpage == 5) {
							_root.yesno = true;
						}
						if (_root.currentpage == 6) {
							if (_root.choice == 1) {
								_root.page6 = 'Roy: Let him go, or you will have to deal with me.';
								_root.page7 = 'Bandit: Big mistake...';
							} else {
								_root.page6 = 'Roy: This is all your doing, Podler. I will have no part in this.';
								_root.dialog = 2;
							}
						}
						if (_root.currentpage == 7 && _root.dialog == 2) {
							_root.questdrunk = 10;
							_root.delquest = _root.questdrunkX;
							_root.delJournal();
							_root.questdrunkX = -1;
							_root.areascreen = 3;
							_root.stand = 2;
							playerP1.gotoAndStop(10);
							playerP2.gotoAndStop(10);
							_root.playerX = -585;
							_root.playerY = 260;
							_root.doGotoGame();
						}
						if (_root.currentpage == 8) {
							_root.questdrunk = 5;
							_root.playerX = 190;
							_root.playerY = -165;
							_root.doEnterBattle();
						}
					}
					if (talk1.hitTest(playerP1.coreblock) && (_root.stand == 1 or _root.stand == 3)) {
						_root.page1 = 'Bart: Hello there! Are you a fellow fisher looking for a good fishing spot? Then you have found the best spot in Andora, my friend!';
						_root.page2 = 'ALT';
						if (_root.currentpage == 1) {
							_root.fishchat = true;
						}
						if (_root.currentpage == 2) {
							if (_root.choice == 1) {
								_root.page2 = 'Bart: Yes I live here all alone. But I atleast have my fish buddies!';
							} else {
								if (_root.choice == 2) {
									_root.page2 = 'Bart: You want to fish with me? Alright, I have a spare fishing net for you here. Try to catch as many fish as you can.\rI will buy any fish you catch. Okay?';
									_root.page3 = 'ALT';
									_root.yesno = true;
									_root.dialog = 2;
								}
							}
						}
						if (_root.currentpage == 3 && _root.dialog == 2) {
							if (_root.choice == 1) {
								_root.playerX = _root.player._x;
								_root.playerY = _root.player._y;
								_root.fishername = 'Bart';
								_root.doEnterFishing();
							} else {
								if (_root.choice == 2) {
									_root.page3 = 'Bart: Alright. Maybe later?';
								}
							}
						}
						_root.doStartText();
					}
					if (shroom1.hitTest(playerP1.coreblock)) {
						_root.num = 49;
						_root.doFoundBlood();
					}
					if (shroom2.hitTest(playerP1.coreblock)) {
						_root.num = 50;
						_root.doFoundBlood();
					}
					if (shroom3.hitTest(playerP1.coreblock)) {
						_root.num = 51;
						_root.doFoundBlood();
					}
					if (shroom4.hitTest(playerP1.coreblock)) {
						_root.num = 52;
						_root.doFoundBlood();
					}
				};
			};
		}
		instance of movieClip 6008	{
			onClipEvent (enterFrame) {
				if (_root.gotshovel == true) {
					this._y = -900;
				} else {
					this._y = -205;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.gotshovel = true;
					_root.itemname = 'Shovel';
					_root.page1 = 'Found ' + _root.itemname + '! Press F to use the shovel to dig up items from the ground.' + '\n' + 'Keep an eye out for possible locations on the ground for hidden items.';
					_root.itempickup = true;
					_root.text_MC.textz.gotoAndPlay(2);
					if (_root.sfxmute == false) {
						_root.item.start();
					}
				}
			}
		}
		instance B2 of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.areascreen = 33;
					_root.doGoinhouse();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 3;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 3;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 3;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 3;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		frame 49 {
			_root.Goto();
			onEnterFrame = function () {
				if (B1.hitTest(soundblock)) {
					_root.areascreen = 31;
					_root.stand = 4;
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.doGotoGame();
				}
				_root.doActivatedText = function () {
					if (booktalk1.hitTest(playerP1.coreblock) && _root.stand == 3) {
						_root.page1 = '-Fish and stuff-\r...Where the Lemonkisser fish got its name has long been a debated topic. One theory is that it was usually served with its mouth against a lemon for flavor which made it look like it was kissing the lemon...';
						_root.doStartText();
					}
				};
			};
		}
		instance of movieClip 4027	{
			onClipEvent (enterFrame) {
				if (_root.item11 == true) {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.item11 = true;
					_root.doFoundPotion();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
					_root.playerX = _root.player._x;
					_root.playerY = _root.player._y;
					_root.areascreen = 32;
					_root.doGotoGame();
				}
			}
		}
		frame 50 {
			_root.newmusic = 'river';
			_root.Goto();
			if (_root.story < 300) {
				down_MC.guard.gotoAndStop(2);
			} else {
				down_MC.guard.gotoAndStop(1);
			}
			if (_root.endfishing == true) {
				_root.goldnum = Math.round(_root.fishscore / 500) * 5 + 1;
				_root.page1 = 'Theodore: Good work, ' + _root.corename + '! You caught ' + _root.caughtfish + ' fish and got ' + _root.fishscore + ' points! For those I will pay you ' + _root.goldnum + ' Pix.' + '\n' + 'Come back if you ever want to help me catch more fish!' + '\n' + '*' + _root.goldnum + ' Pix added';
				_root.addingGold();
				_root.doStartText();
				_root.doAutosave();
				_root.endfishing = false;
				if (_root.fishscore >= 3000 && _root.medalaquaman == false) {
					_root.medalaquaman = true;
					_root.medaltext = 'Aqua Man';
					_root.gotredskin = 2;
					_root.customitem = 'Red skin';
					_root.doAddmedal();
					_root.API.unlockMedal('Aqua Man');
				}
				_root.createEmptyMovieClip('audiocontainer', 1);
				_root.music = new Sound(_root.audiocontainer);
			}
			onEnterFrame = function () {
				if (b1.storyblock1.hitTest(actionblock)) {
					if (lock1X == false) {
						_root.page1 = 'Guard: You cannot pass here, it is dangerous. Return later when we have secured the area.';
						_root.notstopwalking = true;
						lock1X = true;
						_root.doStartText();
					}
				} else {
					lock1X = false;
				}
				if (B1.hitTest(soundblock) or B2.hitTest(soundblock)) {
					_root.areascreen = 3;
					_root.stand = 4;
					_root.playerX = 355;
					_root.playerY = 185;
					_root.doGotoGame();
				}
				if (B3.hitTest(soundblock)) {
					_root.areascreen = 3;
					_root.stand = 3;
					_root.playerX = 375;
					_root.playerY = 130;
					_root.doGotoGame();
				}
				_root.doActivatedText = function () {
					if (talk1.hitTest(playerP1.coreblock)) {
						_root.page1 = 'Theodore: If you don\'t have anything to say, please leave me alone.';
						_root.page2 = 'ALT';
						if (_root.currentpage == 1) {
							_root.fishchat = true;
						}
						if (_root.currentpage == 2) {
							if (_root.choice == 1) {
								_root.page2 = 'Theodore: The name\'s Theodore Trinidad III. Yes it is weird, isn\'t it? My mother was very imaginative.';
							} else {
								if (_root.choice == 2) {
									_root.page2 = 'Theodore: You want to fish with me, boy? Sure, I have a spare fishing net for you to borrow. Oh, any fish you catch I will pay you for. Okay?';
									_root.page3 = 'ALT';
									_root.yesno = true;
									_root.dialog = 2;
								}
							}
						}
						if (_root.currentpage == 3 && _root.dialog == 2) {
							if (_root.choice == 1) {
								_root.playerX = _root.player._x;
								_root.playerY = _root.player._y;
								_root.fishername = 'Theodore';
								_root.doEnterFishing();
							} else {
								if (_root.choice == 2) {
									_root.page3 = 'Theodore: You scared of competition?';
								}
							}
						}
						_root.doStartText();
					}
				};
			};
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 3;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 1;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 4;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 4;
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		frame 51 {
			_root.newmusic = 'woods';
			_root.Goto();
			onEnterFrame = function () {
				if (A1.hitTest(actionblock) && _root.story == 360 or _root.story == 361) {
					if (_root.story == 360) {
						_root.story = 361;
					}
					_root.mainquest = 'Completed the main quest! I am free to explore and complete sidequests.';
					_root.page1 = 'Douglas: I am sorry, but this is the end.\rI am Douglas, I created this game. And this is far as I will let you go, there have been a lot of problems and setbacks under the development of this game. I can\'t continue the game.';
					_root.page2 = 'Douglas: I don\'t think I will ever continue with it. But if you like this game and want to support it then make a comment, share the game or send me a message online. My online name is RockLou on Newgrounds and deviantart.com.';
					_root.page3 = 'Douglas: You can still continue playing though, and do sidequests and explore more. There is a medal list in your inventory where you can see medals you have earned. Earn medals for example by completing sidequests or doing certain amounts of battles.';
					_root.page4 = 'Douglas: Oh and as a gift to you for playing, all your spells and Limit Breaks are now available. If the game was completed you would have earned these as the story progressed, but... here they are. Try them out.';
					_root.page5 = 'Douglas: Thank you for playing and completing The Awakening! If you want to learn cheats for this game, visit rocklou.com! See you around...';
					if (_root.currentpage == 4) {
						_root.num = 1;
						_root.addingCorelimit();
						_root.addingCaleblimit();
						_root.addingCoremagic();
						_root.addingCalebmagic();
						_root.num = 2;
						_root.addingCorelimit();
						_root.addingCaleblimit();
						_root.addingCoremagic();
						_root.addingCalebmagic();
						_root.num = 3;
						_root.addingCorelimit();
						_root.addingCaleblimit();
						_root.addingCoremagic();
						_root.addingCalebmagic();
						_root.num = 4;
						_root.addingCorelimit();
						_root.addingCaleblimit();
						_root.addingCoremagic();
						_root.addingCalebmagic();
						_root.num = 5;
						_root.addingCoremagic();
						_root.addingCalebmagic();
						_root.num = 6;
						_root.addingCoremagic();
						_root.addingCalebmagic();
					}
					if (_root.currentpage == 6) {
						_root.story = 370;
						_root.medaltext = 'Awakened';
						_root.medalawakened = true;
						_root.goteyepatches = 2;
						_root.customitem = 'Eyepatches';
						_root.doAddmedal();
					}
					_root.doStartText();
				}
				if (B1.hitTest(actionblock)) {
					_root.areascreen = 3;
					_root.stand = 1;
					_root.playerX = 420;
					_root.playerY = -250;
					_root.doGotoGame();
				}
				_root.doActivatedText = function () {
					if (_root.Scenez.talk1.hitTest(playerP1.coreblock) && _root.stand == 1) {
						gpage = new Array();
						gpage[0] = 'Gibdo: Gibdo tired... go away...';
						gpage[1] = 'Gibdo: Who... are you? Must... sleep.';
						gpage[2] = 'Gibdo: Tired... so tired...';
						gpage[3] = 'Gibdo: Sleep... I want to sleep...';
						_root.page1 = gpage[random(gpage.length)];
						if (_root.currentpage == 1) {
							down_MC.gibdo.gotoAndStop(110);
						} else {
							if (_root.currentpage == 2) {
								down_MC.gibdo.gotoAndPlay(111);
							}
						}
						_root.doStartText();
					}
					if (shroom1.hitTest(playerP1.coreblock)) {
						_root.num = 53;
						_root.doFoundFinger();
					}
				};
			};
		}
		instance of movieClip 6046	{
			onClipEvent (enterFrame) {
				if (_root.difficulty == 3 && _root.changediff == false && _root.story > 360 && _root.gotsword6 == false) {
					this._visible = true;
					this._y = 220;
				} else {
					this._visible = false;
					this._y = -900;
				}
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.num = 6;
					_root.doFoundSword();
					_root.page2 = 'Douglas: This is a little gift from me to you, for playing the entire game on the hardest difficulty.\rAnd for being the handsome, sexy, talented adventurer that you are!';
					_root.doStartText();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.footstepsound = 4;
				}
			}
		}
		frame 52 {
			_root.Goto();
			if (_root.questdeadman > 2 or _root.story < 100) {
				deadman._visible = false;
				deadmanblood._visible = false;
			}
			if (_root.questdeadman < 5) {
				talk1._y = -900;
				b1.gblock._y = -900;
				gideon._visible = false;
			}
			onEnterFrame = function () {
				if (B1.hitTest(actionblock)) {
					_root.areascreen = 3;
					_root.stand = 3;
					_root.playerX = -325;
					_root.playerY = 75;
					_root.doGotoGame();
				}
				if (B2.hitTest(actionblock)) {
					_root.areascreen = 3;
					_root.stand = 4;
					_root.playerX = -330;
					_root.playerY = 110;
					_root.doGotoGame();
				}
				if (Q1.hitTest(actionblock) && _root.questdeadman == 1 && _root.story >= 100) {
					_root.questdeadman = 2;
					_root.questdeadmanX = _root.numquests;
					_root.newquest = 'There was a dead body outside Bavelock, and a trail of blood leading somewhere...';
					_root.questname = 'Nightshade murder';
					_root.addJournal();
					_root.page1 = 'Roy: A murder... this trail of blood must lead somewhere.';
					_root.doStartText();
				}
				_root.doActivatedText = function () {
					if (_root.stand == 3) {
						if (talk1.hitTest(playerP1.coreblock)) {
							_root.page1 = 'Gideon: We are all dying... Our bodies are slowly decaying, one minute, one hour, one day at a time.';
							_root.page2 = 'ALT';
							if (_root.currentpage == 1) {
								_root.chathelp = true;
							}
							if (_root.currentpage == 2) {
								if (_root.chat == true) {
									_root.page2 = 'Gideon: Our bodies are temporary vessels of flesh. If you keep fighting, you will lose parts of your body and eventually your soul. Is it worth it, young man?';
								} else {
									if (_root.help == true) {
										_root.page2 = 'Gideon: You can\'t help me. No one can help me. We are all born to die...';
									}
								}
							}
							_root.doStartText();
						}
						if (grave1.hitTest(playerP1.coreblock)) {
							_root.page1 = 'R.I.P:\rMaeth Sondoris.';
							_root.doStartText();
						}
						if (grave2.hitTest(playerP1.coreblock)) {
							_root.page1 = 'Rest in peace:\rAnomiel Mayflower, whose memory shall live on in the hearts of many. Rest in peace, our beloved.';
							_root.doStartText();
						}
						if (grave3.hitTest(playerP1.coreblock)) {
							_root.page1 = 'Rest In Peace:\rAaron Carnas, our beloved. We miss you.';
							_root.doStartText();
						}
						if (grave4.hitTest(playerP1.coreblock)) {
							_root.page1 = 'R.I.P:\rVixito Vamrel, son of Beren Vamrel and Dunava Vamrel.';
							_root.doStartText();
						}
						if (grave5.hitTest(playerP1.coreblock)) {
							_root.page1 = 'R.I.P:\rNumrais and Bolovan. May their love be undying even in death.';
							_root.doStartText();
						}
						if (grave6.hitTest(playerP1.coreblock)) {
							_root.page1 = 'Here lies:\rMuldi Warhammer, son of Haraldin.';
							_root.doStartText();
						}
						if (grave7.hitTest(playerP1.coreblock)) {
							_root.page1 = 'In loving memory of:\rLaeras Dawn. Life is swift, Love is forever.';
							_root.doStartText();
						}
						if (grave8.hitTest(playerP1.coreblock)) {
							_root.page1 = 'R.I.P:\rRiago and Rin Westfeld. The twins whose passing was too soon. They shall remain in our hearts for all time.';
							_root.doStartText();
						}
						if (grave9.hitTest(playerP1.coreblock)) {
							_root.page1 = 'Le tura ath tara:\rErgonfell, le emro eran ethra gimna eth me bathva.';
							_root.doStartText();
						}
						if (grave10.hitTest(playerP1.coreblock)) {
							_root.page1 = 'R.I.P:\rUlamris Melbeth. Your memory shall never fade.';
							_root.doStartText();
						}
						if (grave11.hitTest(playerP1.coreblock)) {
							_root.page1 = 'In loving memory of:\rMolith Nemuras. Who left a loving husband, and a beautiful daughter.';
							_root.doStartText();
						}
						if (grave12.hitTest(playerP1.coreblock)) {
							_root.page1 = 'R.I.P:\rAragorn, son of Arathorn. May you enter the Grey shores and beyond.';
							_root.doStartText();
						}
						if (grave13.hitTest(playerP1.coreblock)) {
							_root.page1 = 'Rest in peace:\rEltavo, the greatest father a son could ever wish for.';
							_root.doStartText();
						}
						if (grave14.hitTest(playerP1.coreblock)) {
							if (_root.questdeadman < 3 && _root.story >= 100) {
								_root.page1 = 'There are only scratch marks. Whatever once was written is unrecognizable...';
								_root.page2 = 'Ghoul: WHO DISTURBS MY SLUMBER!';
								if (_root.currentpage == 2) {
									_root.black.gotoAndPlay(2);
									down_MC._visible = false;
									deadman._visible = false;
									_root.music.stop();
									if (_root.sfxmute == false) {
										_root.sound1.attachSound('ominous');
										_root.sound1.start();
									}
								}
								if (_root.currentpage == 3) {
									_root.questdeadman = 3;
									_root.doEnterBattle();
								}
							} else {
								_root.page1 = 'There are only scratch marks. Whatever once was written is unrecognizable.';
							}
							_root.doStartText();
						}
					}
					if (shroom1.hitTest(playerP1.coreblock)) {
						_root.num = 22;
						_root.doFoundFinger();
					}
				};
			};
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.soundblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer2();
				}
			}
		}
		instance of movieClip 4102	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.Scenez.actionblock)) {
					_root.doPlayer1();
				}
			}
		}
	}
	movieClip 6084	{
		frame 1 {
			stop();
		}
		frame 779 {
			stop();
		}
	}
	movieClip 6089	{
	}
	movieClip 6093	{
	}
	movieClip 6095	{
		frame 1 {
			if (_root.hotinfo == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	button 6097 {
		on (release) {
			if (_parent.moves == _parent.totalmoves) {
				_parent.moves = _parent.totalmoves + 1;
				gotoAndPlay(2);
			}
		}
	}
	movieClip 6098	{
		frame 1 {
			stop();
		}
		frame 60 {
			if (this._name == 'cup' + _root.coinpos) {
				_root.doGambleResult();
			}
		}
		frame 109 {
			if (this._name != 'cup' + _root.coinpos) {
				_root.doGambleEnd();
			}
			if (_root.story == 153) {
				stop();
			} else {
				_parent.gotoAndPlay('endX');
			}
		}
	}
	movieClip 6100	{
		frame 30 {
			stop();
		}
	}
	movieClip 6102	{
		frame 1 {
			if (_root.hotinfo == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	button 6103 {
		on (release) {
			if (_parent.moves == _parent.totalmoves) {
				_parent.moves = _parent.totalmoves + 1;
				gotoAndPlay(2);
			}
		}
	}
	movieClip 6104	{
		frame 1 {
			stop();
		}
		frame 60 {
			if (this._name == 'cup' + _root.coinpos) {
				_root.doGambleResult();
			}
		}
		frame 109 {
			if (this._name != 'cup' + _root.coinpos) {
				_root.doGambleEnd();
			}
			if (_root.story == 153) {
				stop();
			} else {
				_parent.gotoAndPlay('endX');
			}
		}
	}
	movieClip 6106	{
		frame 1 {
			if (_root.hotinfo == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	button 6107 {
		on (release) {
			if (_parent.moves == _parent.totalmoves) {
				_parent.moves = _parent.totalmoves + 1;
				gotoAndPlay(2);
			}
		}
	}
	movieClip 6108	{
		frame 1 {
			stop();
		}
		frame 60 {
			if (this._name == 'cup' + _root.coinpos) {
				_root.doGambleResult();
			}
		}
		frame 109 {
			if (this._name != 'cup' + _root.coinpos) {
				_root.doGambleEnd();
			}
			if (_root.story == 153) {
				stop();
			} else {
				_parent.gotoAndPlay('endX');
			}
		}
	}
	movieClip 6110	{
		frame 1 {
			_root.three = 1;
			rsound = 1;
			totalmoves = random(5) + 20;
			gamble = function () {
				++moves;
				if (moves >= totalmoves) {
					gotoAndStop('end');
				} else {
					goto = new Array('g1', 'g2', 'g3', 'g4');
					gotoAndPlay(goto[random(goto.length)]);
					if (_root.sfxmute == false && rsound == 1) {
						gsound = new Array('drag1', 'drag2', 'drag3', 'drag4', 'drag5');
						_root.sound2.attachSound(gsound[random(gsound.length)]);
						_root.sound2.start();
					}
					++rsound;
					if (rsound == 2) {
						rsound = 1;
					}
				}
			};
			stop();
		}
		frame 27 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('coin');
				_root.sound1.start();
			}
		}
		frame 67 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('coindrag');
				_root.sound1.start();
			}
		}
		frame 129 {
			_root.coinpos = 2;
			Mouse.hide();
			moves = 0;
			gamble();
		}
		frame 142 {
			if (_root.coinpos == 2) {
				_root.coinpos = 3;
			} else {
				if (_root.coinpos == 3) {
					_root.coinpos = 1;
				} else {
					if (_root.coinpos == 1) {
						_root.coinpos = 2;
					}
				}
			}
			gamble();
		}
		frame 155 {
			if (_root.coinpos == 2) {
				_root.coinpos = 1;
			} else {
				if (_root.coinpos == 3) {
					_root.coinpos = 2;
				} else {
					if (_root.coinpos == 1) {
						_root.coinpos = 3;
					}
				}
			}
			gamble();
		}
		frame 165 {
			if (_root.coinpos == 2) {
				_root.coinpos = 1;
			} else {
				if (_root.coinpos == 1) {
					_root.coinpos = 2;
				}
			}
			gamble();
		}
		frame 175 {
			if (_root.coinpos == 2) {
				_root.coinpos = 3;
			} else {
				if (_root.coinpos == 3) {
					_root.coinpos = 2;
				}
			}
			gamble();
		}
		frame 177 {
			if (_root.coinpos == 1) {
				coin_MC._x = 82;
				coin_MC._y = 10;
			} else {
				if (_root.coinpos == 2) {
					coin_MC._x = 136;
					coin_MC._y = 17;
				} else {
					if (_root.coinpos == 3) {
						coin_MC._x = 187;
						coin_MC._y = 10;
					}
				}
			}
			Mouse.show();
			stop();
		}
		frame 181 {
			if (_root.text_MC.textz._currentframe >= 7) {
				_root.notwalk = false;
			}
		}
	}
	instance gambling_MC of movieClip 6110	{
		onClipEvent (enterFrame) {
			this._x = _root.cam._x - 140;
			this._y = _root.cam._y - 20;
		}
	}
	movieClip 6112	{
	}
	movieClip 6115	{
		frame 1 {
			var fmt = txt.getTextFormat();
			txt.setNewTextFormat(fmt);
			if (_root.cansave == true) {
				if (_root.slot != 10) {
					txt.text = 'Saving\rslot ' + _root.slot;
				} else {
					txt.text = 'All slots\rare full!';
				}
			} else {
				txt.text = 'Cannot save!\rAllow cookies.';
			}
		}
	}
	movieClip 6116	{
		frame 1 {
			stop();
		}
	}
	movieClip 6119	{
	}
	movieClip 6122	{
	}
	movieClip 6189	{
	}
	movieClip 6190	{
		frame 1 {
			stop();
		}
		frame 2 {
			if (_root.sfxmute == false) {
				_root.cheatsound.start();
			}
		}
	}
	movieClip 6208	{
		frame 1 {
			if (_root.insword == true) {
				if (_root.sword == 6) {
					gotoAndStop(8);
				} else {
					gotoAndStop(eval('_root.sword' + _root.sword + 'f') + 1);
				}
			}
		}
	}
	movieClip 6215	{
		frame 8 {
			stop();
		}
	}
	movieClip 6297	{
		frame 1 {
			stop();
		}
		frame 9 {
			dmg_txt.text = 'Damage: ' + _root.weapon1;
		}
		frame 10 {
			dmg_txt.text = 'Damage: ' + _root.weapon2;
		}
		frame 11 {
			dmg_txt.text = 'Damage: ' + _root.weapon3;
		}
		frame 12 {
			dmg_txt.text = 'Damage: ' + _root.weapon4;
		}
		frame 13 {
			dmg_txt.text = 'Damage: ' + _root.weapon5;
		}
		frame 14 {
			dmg_txt.text = 'Damage: ' + _root.weapon6;
		}
		frame 15 {
			var fmt = cheat_txt.getTextFormat();
			cheat_txt.setNewTextFormat(fmt);
			cheat_txt.text = '';
		}
		frame 16 {
			stop();
		}
		frame 30 {
			txt.text = _root.numofluckyhits + ' / 10';
		}
		frame 31 {
			txt.text = _root.founddouglas + ' / 2';
		}
		frame 32 {
			txt.text = _root.numofbattles + ' / 10';
		}
		frame 33 {
			txt.text = _root.numofbattles + ' / 25';
		}
		frame 34 {
			txt.text = _root.numofbattles + ' / 50';
		}
		frame 35 {
			txt.text = _root.numpoet + ' / 3';
		}
		frame 37 {
			txt.text = _root.completedquests + ' / ' + 10;
		}
		frame 38 {
			txt.text = _root.medalflawlessX + ' / 20';
		}
		frame 39 {
			txt.text = _root.numofswords + ' / 3';
		}
		frame 42 {
			txt.text = _root.numofdigs + ' / 3';
		}
		frame 43 {
			txt.text = _root.collectibles + ' / 50';
		}
		frame 44 {
			var fmt = info_txt.getTextFormat();
			info_txt.setNewTextFormat(fmt);
			info_txt.text = 'Heal ' + _root.corename + ' with mana.';
		}
	}
	button 6301 {
		on (release) {
			entercheat._visible = true;
			info_MC.gotoAndStop(15);
			info_MC.infoX.gotoAndPlay(2);
			info_MC.infoX.infoXX.gotoAndStop(53);
			Selection.setFocus('info_MC.cheat_txt');
			cheat_BT._visible = false;
			cancel_BT._visible = true;
			_root.cheat = true;
		}
	}
	button 6305 {
		on (release) {
			_root.doCheat();
		}
	}
	button 6309 {
		on (release) {
			info_MC.gotoAndStop(1);
			_root.doEndCheat();
		}
	}
	
	// unknown tag 88 length 212
	button 6316 {
		on (release) {
			if (stats_MC._currentframe == 1) {
				stats_MC.bg_MC.gotoAndPlay(2);
				stats_MC.gotoAndStop(2);
				stat_BT._visible = true;
				_root.doEndCheat();
			} else {
				stats_MC.bg_MC.gotoAndPlay(7);
				stats_MC.gotoAndStop(1);
				stats_ability_MC.gotoAndStop(1);
				stats_ability_MC.bg_MC.gotoAndPlay(7);
				stat_BT._visible = false;
			}
		}
	}
	button 6319 {
		on (release) {
			if (diff_MC._currentframe == 1) {
				diff_MC.bg_MC.gotoAndPlay(2);
				diff_MC.gotoAndStop(2);
				diff_BT._visible = true;
				_root.doEndCheat();
				if (_root.difficulty == 1) {
					info_MC.gotoAndStop(16);
				} else {
					if (_root.difficulty == 2) {
						info_MC.gotoAndStop(17);
					} else {
						if (_root.difficulty == 3) {
							info_MC.gotoAndStop(18);
						} else {
							if (_root.difficulty == 4) {
								info_MC.gotoAndStop(22);
							} else {
								if (_root.difficulty == 5) {
									info_MC.gotoAndStop(91);
								}
							}
						}
					}
				}
			} else {
				diff_MC.bg_MC.gotoAndPlay(7);
				diff_MC.gotoAndStop(1);
				info_MC.gotoAndStop(1);
				diff_BT._visible = false;
			}
		}
	}
	button 6321 {
		on (rollOver) {
			_root.doEndCheat();
			info_MC.gotoAndStop(8);
		}
		on (rollOut) {
			info_MC.gotoAndStop(1);
		}
		on (release) {
			if (collectibles_MC._currentframe > 1) {
				collectibles_MC.gotoAndStop(1);
				collectibles_MC.bg_MC.gotoAndPlay(7);
			}
			if (medal_MC._currentframe == 1) {
				medal_MC.gotoAndStop(2);
				medal_MC.bg_MC.gotoAndPlay(2);
			} else {
				medal_MC.gotoAndStop(1);
				medal_MC.bg_MC.gotoAndPlay(7);
			}
		}
	}
	button 6324 {
		on (rollOver) {
			_root.doEndCheat();
			info_MC.gotoAndStop(51);
		}
		on (rollOut) {
			info_MC.gotoAndStop(1);
		}
		on (release) {
			if (journal_MC._currentframe == 1) {
				journal_MC.gotoAndPlay(2);
			} else {
				journal_MC.gotoAndPlay(10);
			}
			if (_root.sfxmute == false) {
				_root.pageturn.start();
			}
		}
	}
	button 6325 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(2);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_parent.health_MC._currentframe == 1) {
				_parent.health_MC.bg_MC.gotoAndPlay(2);
				_parent.health_MC.gotoAndStop(2);
			} else {
				_parent.health_MC.bg_MC.gotoAndPlay(7);
				_parent.health_MC.gotoAndStop(1);
			}
		}
	}
	button 6330 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(44);
			_parent.entercheat._visible = false;
			_root.cheat = false;
			_parent.cancel_BT._visible = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_parent.heal_MC._currentframe == 1) {
				_parent.heal_MC.bg_MC.gotoAndPlay(2);
				_parent.heal_MC.gotoAndStop(2);
				_parent.info_MC.gotoAndStop(72);
			} else {
				if (_root.corehealth < _root.coremaxhealth) {
					if (_root.coremagic1mana < _root.coremana) {
						if (_root.sfxmute == false) {
							_root.sound4.attachSound('Spirit');
							_root.sound4.start();
						}
						_root.coremana -= _root.coremagic1mana;
						_root.corehealth += Math.round(1 + _root.coremagicdamage / 3) * 5;
					} else {
						if (_root.sfxmute == false) {
							_root.error.start();
						}
					}
				} else {
					if (_root.sfxmute == false) {
						_root.error.start();
					}
				}
			}
		}
	}
	movieClip 6331	{
		frame 1 {
			stop();
		}
	}
	button 6333 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(3);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_parent.mana_MC._currentframe == 1) {
				_parent.mana_MC.bg_MC.gotoAndPlay(2);
				_parent.mana_MC.gotoAndStop(2);
			} else {
				_parent.mana_MC.bg_MC.gotoAndPlay(7);
				_parent.mana_MC.gotoAndStop(1);
			}
		}
	}
	movieClip 6334	{
		frame 1 {
			stop();
		}
	}
	button 6335 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(5);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6337	{
		frame 1 {
			stop();
		}
	}
	button 6339 {
		on (rollOver) {
			_root.doEndCheat();
			info_MC.gotoAndStop(7);
		}
		on (rollOut) {
			info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_root.story == 156 && _root.currentpage == 1) {
				_root.doTextpage();
				_root.doActivatedText();
			}
			this.gotoAndStop(2);
			if (_root.sfxmute == false) {
				_root.pageturn.start();
			}
		}
	}
	button 6340 {
		on (press) {
			gotoAndPlay(2);
		}
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(67);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6341	{
		frame 1 {
			stop();
		}
		frame 2 {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6343 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(73);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_parent.collectibles_MC._currentframe == 1) {
				_parent.collectibles_MC.gotoAndStop(2);
				_parent.collectibles_MC.bg_MC.gotoAndPlay(2);
			} else {
				_parent.collectibles_MC.gotoAndStop(1);
				_parent.collectibles_MC.bg_MC.gotoAndPlay(7);
			}
		}
	}
	movieClip 6344	{
		frame 1 {
			stop();
		}
	}
	button 6346 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(80);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_parent.ether_MC._currentframe == 2) {
				_parent.ether_MC.bg_MC.gotoAndPlay(7);
				_parent.ether_MC.gotoAndStop(1);
			}
			if (_parent.limit_MC._currentframe == 1) {
				_parent.limit_MC.bg_MC.gotoAndPlay(2);
				_parent.limit_MC.gotoAndStop(2);
			} else {
				_parent.limit_MC.bg_MC.gotoAndPlay(7);
				_parent.limit_MC.gotoAndStop(1);
			}
		}
	}
	movieClip 6347	{
		frame 1 {
			stop();
		}
	}
	button 6349 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(4);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_parent.limit_MC._currentframe == 2) {
				_parent.limit_MC.bg_MC.gotoAndPlay(7);
				_parent.limit_MC.gotoAndStop(1);
			}
			if (_parent.ether_MC._currentframe == 1) {
				_parent.ether_MC.bg_MC.gotoAndPlay(2);
				_parent.ether_MC.gotoAndStop(2);
			} else {
				_parent.ether_MC.bg_MC.gotoAndPlay(7);
				_parent.ether_MC.gotoAndStop(1);
			}
		}
	}
	movieClip 6350	{
		frame 1 {
			stop();
		}
	}
	button 6353 {
		on (release) {
			if (_root.text_MC.textz._currentframe == 1) {
				_root.doEndCheat();
				_root.playerX = _root.player._x;
				_root.playerY = _root.player._y;
				_root.shopframe = _root.shop_MC._currentframe;
				_root.music.setVolume(_root.volumez / 3);
				_root.sound4.stop('fireloop');
				_root.gotoAndStop('Title_back');
			} else {
				info_MC.gotoAndStop(66);
			}
		}
		on (rollOut) {
			info_MC.gotoAndStop(1);
		}
	}
	button 6356 {
		on (release) {
			if (_root.text_MC.textz._currentframe == 1) {
				_root.doEndCheat();
				_root.playerX = _root.player._x;
				_root.playerY = _root.player._y;
				_root.shopframe = _root.shop_MC._currentframe;
				_root.music.setVolume(_root.volumez / 3);
				_root.sound4.stop('fireloop');
				_root.gotoAndStop('Save');
			} else {
				info_MC.gotoAndStop(66);
			}
		}
		on (rollOut) {
			info_MC.gotoAndStop(1);
		}
	}
	button 6358 {
		on (rollOver) {
			if (_parent.sword_BT._currentframe == 1) {
				_root.doEndCheat();
				_parent.info_MC.gotoAndStop(81);
			}
		}
		on (rollOut) {
			if (_parent.sword_BT._currentframe == 1) {
				_parent.info_MC.gotoAndStop(1);
			}
		}
		on (release) {
			if (_parent.sword_BT._currentframe == 1 && _root.text_MC.textz._currentframe == 1 && _root.sword_MC.shovel_MC._currentframe == 1) {
				_root.doShovel();
			}
		}
	}
	movieClip 6359	{
		frame 1 {
			stop();
		}
	}
	button 6361 {
		on (rollOver) {
			if (_parent.stats_MC._currentframe == 1 && this._currentframe == 1) {
				if (_root.numofswords > 1) {
					gotoAndStop(2);
					bg.gotoAndPlay(2);
				}
				_root.doEndCheat();
				_root.insword = true;
				_parent.info_MC.gotoAndStop(8 + _root.sword);
			}
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
			_root.insword = false;
		}
	}
	movieClip 6363	{
	}
	movieClip 6364	{
		frame 1 {
			stop();
		}
		frame 6 {
			stop();
		}
	}
	button 6366 {
		on (rollOver) {
			gotoAndStop(1);
			bg.gotoAndPlay(7);
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6367 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.doSwordSwap();
				_parent.Sword1_BT._visible = true;
				if (_root.gotsword3 == true) {
					_parent.Sword3_BT._visible = true;
				}
				if (_root.gotsword4 == true) {
					_parent.Sword4_BT._visible = true;
				}
				if (_root.gotsword5 == true) {
					_parent.Sword5_BT._visible = true;
				}
				if (_root.gotsword6 == true) {
					_parent.Sword6_BT._visible = true;
				}
				_parent.Sword2_BT._visible = false;
				if (_root.sfxmute == false) {
					_root.item.start();
				}
				if (_root.sword != 2) {
					_root.changeSword2();
					_parent.swordz.gotoAndStop(_root.sword);
					i = 1;
					while (i <= 6) {
						if (_root.sword != i) {
							_parent['s' + i]._visible = false;
						} else {
							_parent['s' + i]._visible = true;
						}
						++i;
					}
				}
			}
		}
		on (rollOver) {
			_root.insword = false;
			_parent._parent.info_MC.gotoAndStop(10);
			_parent._parent.info_MC.swordinfo.gotoAndStop(_root.sword2f + 1);
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6368	{
	}
	button 6369 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.doSwordSwap();
				_parent.Sword1_BT._visible = true;
				if (_root.gotsword2 == true) {
					_parent.Sword2_BT._visible = true;
				}
				if (_root.gotsword4 == true) {
					_parent.Sword4_BT._visible = true;
				}
				if (_root.gotsword5 == true) {
					_parent.Sword5_BT._visible = true;
				}
				if (_root.gotsword6 == true) {
					_parent.Sword6_BT._visible = true;
				}
				_parent.Sword3_BT._visible = false;
				if (_root.sfxmute == false) {
					_root.item.start();
				}
				if (_root.sword != 3) {
					_root.changeSword3();
					_parent.swordz.gotoAndStop(_root.sword);
					i = 1;
					while (i <= 6) {
						if (_root.sword != i) {
							_parent['s' + i]._visible = false;
						} else {
							_parent['s' + i]._visible = true;
						}
						++i;
					}
				}
			}
		}
		on (rollOver) {
			_root.insword = false;
			_parent._parent.info_MC.gotoAndStop(11);
			_parent._parent.info_MC.swordinfo.gotoAndStop(_root.sword3f + 1);
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6370	{
	}
	button 6371 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.doSwordSwap();
				_parent.Sword1_BT._visible = true;
				if (_root.gotsword2 == true) {
					_parent.Sword2_BT._visible = true;
				}
				if (_root.gotsword3 == true) {
					_parent.Sword3_BT._visible = true;
				}
				if (_root.gotsword5 == true) {
					_parent.Sword5_BT._visible = true;
				}
				if (_root.gotsword6 == true) {
					_parent.Sword6_BT._visible = true;
				}
				_parent.Sword4_BT._visible = false;
				if (_root.sfxmute == false) {
					_root.item.start();
				}
				if (_root.sword != 4) {
					_root.changeSword4();
					_parent.swordz.gotoAndStop(_root.sword);
					i = 1;
					while (i <= 6) {
						if (_root.sword != i) {
							_parent['s' + i]._visible = false;
						} else {
							_parent['s' + i]._visible = true;
						}
						++i;
					}
				}
			}
		}
		on (rollOver) {
			_root.insword = false;
			_parent._parent.info_MC.gotoAndStop(12);
			_parent._parent.info_MC.swordinfo.gotoAndStop(_root.sword4f + 1);
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6372	{
	}
	button 6373 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.doSwordSwap();
				_parent.Sword1_BT._visible = true;
				if (_root.gotsword2 == true) {
					_parent.Sword2_BT._visible = true;
				}
				if (_root.gotsword3 == true) {
					_parent.Sword3_BT._visible = true;
				}
				if (_root.gotsword4 == true) {
					_parent.Sword4_BT._visible = true;
				}
				if (_root.gotsword6 == true) {
					_parent.Sword6_BT._visible = true;
				}
				_parent.Sword5_BT._visible = false;
				if (_root.sfxmute == false) {
					_root.item.start();
				}
				if (_root.sword != 5) {
					_root.changeSword5();
					_parent.swordz.gotoAndStop(_root.sword);
					i = 1;
					while (i <= 6) {
						if (_root.sword != i) {
							_parent['s' + i]._visible = false;
						} else {
							_parent['s' + i]._visible = true;
						}
						++i;
					}
				}
			}
		}
		on (rollOver) {
			_root.insword = false;
			_parent._parent.info_MC.gotoAndStop(13);
			_parent._parent.info_MC.swordinfo.gotoAndStop(_root.sword5f + 1);
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6374	{
	}
	button 6375 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.doSwordSwap();
				_parent.Sword1_BT._visible = true;
				if (_root.gotsword2 == true) {
					_parent.Sword2_BT._visible = true;
				}
				if (_root.gotsword3 == true) {
					_parent.Sword3_BT._visible = true;
				}
				if (_root.gotsword4 == true) {
					_parent.Sword4_BT._visible = true;
				}
				if (_root.gotsword5 == true) {
					_parent.Sword5_BT._visible = true;
				}
				_parent.Sword6_BT._visible = false;
				if (_root.sfxmute == false) {
					_root.item.start();
				}
				if (_root.sword != 6) {
					_root.changeSword6();
					_parent.swordz.gotoAndStop(_root.sword);
					i = 1;
					while (i <= 6) {
						if (_root.sword != i) {
							_parent['s' + i]._visible = false;
						} else {
							_parent['s' + i]._visible = true;
						}
						++i;
					}
				}
			}
		}
		on (rollOver) {
			_root.insword = false;
			_parent._parent.info_MC.gotoAndStop(14);
			_parent._parent.info_MC.swordinfo.gotoAndStop(8);
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6376	{
	}
	button 6377 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.doSwordSwap();
				_parent.Sword1_BT._visible = false;
				if (_root.gotsword2 == true) {
					_parent.Sword2_BT._visible = true;
				}
				if (_root.gotsword3 == true) {
					_parent.Sword3_BT._visible = true;
				}
				if (_root.gotsword4 == true) {
					_parent.Sword4_BT._visible = true;
				}
				if (_root.gotsword5 == true) {
					_parent.Sword5_BT._visible = true;
				}
				if (_root.gotsword6 == true) {
					_parent.Sword6_BT._visible = true;
				}
				if (_root.sfxmute == false) {
					_root.item.start();
				}
				if (_root.sword != 1) {
					_root.changeSword1();
					_parent.swordz.gotoAndStop(_root.sword);
					i = 1;
					while (i <= 6) {
						if (_root.sword != i) {
							_parent['s' + i]._visible = false;
						} else {
							_parent['s' + i]._visible = true;
						}
						++i;
					}
				}
			}
		}
		on (rollOver) {
			_root.insword = false;
			_parent._parent.info_MC.gotoAndStop(9);
			_parent._parent.info_MC.swordinfo.gotoAndStop(_root.sword1f + 1);
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6378	{
	}
	movieClip 6379	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
			if (_root.sword == 1) {
				Sword1_BT._visible = false;
			}
			i = 1;
			while (i <= 6) {
				if (_root['gotsword' + i] == false or _root.sword == i) {
					this['Sword' + i + '_BT']._visible = false;
				}
				if (_root.sword != i) {
					this['s' + i]._visible = false;
				}
				++i;
			}
		}
	}
	movieClip 6383	{
	}
	button 6384 {
		on (rollOver) {
			info_MC.gotoAndStop(88);
		}
		on (rollOut) {
			info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_root.text_MC.textz._currentframe == 1) {
				_root.inventoryon = true;
				_root.doEndCheat();
				_root.playerX = _root.player._x;
				_root.playerY = _root.player._y;
				_root.gotoAndStop('custom');
			} else {
				info_MC.gotoAndStop(66);
			}
		}
	}
	button 6387 {
		on (release) {
			if (_root.options_MC._currentframe == 1) {
				_root.options_MC.gotoAndStop(2);
			} else {
				_root.options_MC.gotoAndStop(1);
			}
		}
	}
	button 6389 {
		on (rollOver) {
			this.gotoAndPlay(10);
		}
	}
	button 6398 {
		on (release) {
			if (_root.qpage == 1 && _root.numquests > nrquestperpage) {
				++_root.qpage;
				questpage();
				BTback._visible = true;
				if (_root.sfxmute == false) {
					_root.pageturn.start();
				}
			} else {
				if (_root.qpage == 2 && _root.numquests > nrquestperpage * 2) {
					++_root.qpage;
					questpage();
					if (_root.sfxmute == false) {
						_root.pageturn.start();
					}
				} else {
					if (_root.qpage == 3 && _root.numquests > nrquestperpage * 3) {
						++_root.qpage;
						questpage();
						if (_root.sfxmute == false) {
							_root.pageturn.start();
						}
					} else {
						if (_root.qpage == 4 && _root.numquests > nrquestperpage * 4) {
							++_root.qpage;
							questpage();
							if (_root.sfxmute == false) {
								_root.pageturn.start();
							}
						} else {
							if (_root.qpage == 5 && _root.numquests > nrquestperpage * 5) {
								++_root.qpage;
								questpage();
								if (_root.sfxmute == false) {
									_root.pageturn.start();
								}
							} else {
								if (_root.qpage == 6 && _root.numquests > nrquestperpage * 6) {
									++_root.qpage;
									questpage();
									if (_root.sfxmute == false) {
										_root.pageturn.start();
									}
									BTnext._visible = false;
								}
							}
						}
					}
				}
			}
		}
	}
	button 6399 {
		on (release) {
			if (_root.qpage > 0) {
				--_root.qpage;
				questpage();
				BTnext._visible = true;
				if (_root.sfxmute == false) {
					_root.pageturn.start();
				}
			}
		}
	}
	movieClip 6401	{
		frame 1 {
			mtxt.text = '';
			txt.text = '';
			BTback._visible = false;
			nrquestperpage = 3;
			var fmt = mtxt.getTextFormat();
			mtxt.setNewTextFormat(fmt);
			mtxt.text = _root.mainquest;
			if (_root.numquests > 0 or _root.completedquests > 0) {
				comp.text = 'Active sidequests: ' + _root.activequests + ' | Completed: ' + _root.completedquests;
			}
			questpage = function () {
				if (_root.numquests > 0) {
					if (_root.numquests < _root.qpage * nrquestperpage + nrquestperpage - (nrquestperpage - 1)) {
						BTnext._visible = false;
					} else {
						BTnext._visible = true;
					}
					txt.text = '';
					if (_root.qpage == 1) {
						BTback._visible = false;
					} else {
						BTback._visible = true;
					}
					i = _root.qpage * nrquestperpage - nrquestperpage;
					while (i < _root.qpage * nrquestperpage) {
						if (i < _root.activequests) {
							txt.text += _root['objname' + i] + ' : ' + _root['obj' + i] + '\n' + '\n';
						}
						++i;
					}
				} else {
					txt.text = 'No sidequests';
					BTnext._visible = false;
				}
			};
			questpage();
			onEnterFrame = function () {
				if (_root.numquests > nrquestperpage) {
					pagez.text = 'Page ' + _root.qpage + ' of ' + Math.ceil(_root.activequests / nrquestperpage);
				}
			};
		}
	}
	movieClip 6402	{
		frame 1 {
			stop();
		}
		frame 3 {
			_parent.col._visible = false;
			_parent.lim._visible = false;
			_parent.rem._visible = false;
			_parent.et._visible = false;
			_parent.el._visible = false;
			_parent.po._visible = false;
			_parent.gold_MC._visible = false;
			_parent.sword_BT._visible = false;
			_parent.shovel_MC._visible = false;
		}
		frame 9 {
			stop();
		}
		frame 11 {
			_parent.col._visible = true;
			_parent.lim._visible = true;
			_parent.rem._visible = true;
			_parent.et._visible = true;
			_parent.el._visible = true;
			_parent.po._visible = true;
			_parent.gold_MC._visible = true;
			_parent.sword_BT._visible = true;
			_parent.shovel_MC._visible = true;
		}
	}
	movieClip 6406	{
		frame 1 {
			stop();
		}
		frame 6 {
			stop();
		}
	}
	button 6408 {
		on (rollOver) {
			gotoAndStop(1);
			bg_MC.gotoAndPlay(7);
		}
	}
	button 6415 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(69);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_root.potion > 0 && _root.calebhealth < _root.calebmaxhealth) {
				--_root.potion;
				_root.calebhealth += 90;
				if (_root.calebhealth > _root.calebmaxhealth) {
					_root.calebhealth = _root.calebmaxhealth;
				}
				if (_root.sfxmute == false) {
					_root.drink.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 6417	{
		frame 1 {
			var fmt = name_txt.getTextFormat();
			name_txt.setNewTextFormat(fmt);
			name_txt.text = _root.corename;
		}
	}
	button 6418 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(68);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_root.potion > 0 && _root.corehealth < _root.coremaxhealth) {
				--_root.potion;
				_root.corehealth += 90;
				if (_root.corehealth > _root.coremaxhealth) {
					_root.corehealth = _root.coremaxhealth;
				}
				if (_root.sfxmute == false) {
					_root.drink.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 6419	{
		frame 1 {
			stop();
		}
		frame 2 {
			if (_root.calebX == false) {
				cal._visible = false;
				calbar._visible = false;
			} else {
				cal._visible = true;
				calbar._visible = true;
			}
			onEnterFrame = function () {
				corehealth_txt.text = _root.corehealth + ' / ' + _root.coremaxhealth;
				if (_root.calebX == true) {
					calebhealth_txt.text = _root.calebhealth + ' / ' + _root.calebmaxhealth;
				} else {
					calebhealth_txt.text = '';
				}
			};
		}
	}
	button 6420 {
		on (rollOver) {
			gotoAndStop(1);
			bg_MC.gotoAndPlay(7);
		}
	}
	button 6424 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(71);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_root.elixir > 0 && _root.calebmana < _root.calebmaxmana) {
				--_root.elixir;
				_root.calebmana += 90;
				if (_root.calebmana > _root.calebmaxmana) {
					_root.calebmana = _root.calebmaxmana;
				}
				if (_root.sfxmute == false) {
					_root.drink.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 6425 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(70);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_root.elixir > 0 && _root.coremana < _root.coremaxmana) {
				--_root.elixir;
				_root.coremana += 60;
				if (_root.coremana > _root.coremaxmana) {
					_root.coremana = _root.coremaxmana;
				}
				if (_root.sfxmute == false) {
					_root.drink.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 6426	{
		frame 1 {
			stop();
		}
		frame 2 {
			if (_root.calebX == false) {
				cal._visible = false;
				calbar._visible = false;
			} else {
				cal._visible = true;
				calbar._visible = true;
			}
			onEnterFrame = function () {
				coremana_txt.text = _root.coremana + ' / ' + _root.coremaxmana;
				if (_root.calebX == true) {
					calebmana_txt.text = _root.calebmana + ' / ' + _root.calebmaxmana;
				} else {
					calebmana_txt.text = '';
				}
			};
		}
	}
	button 6428 {
		on (rollOver) {
			if (this._currentframe == 2) {
				bg_MC.gotoAndPlay(7);
				gotoAndStop(1);
				_parent.stats_ability_MC.gotoAndStop(1);
				_parent.stats_ability_MC.bg_MC.gotoAndStop(1);
				_parent.info_MC.gotoAndStop(1);
				_parent.stat_BT._visible = false;
			}
		}
	}
	button 6430 {
		on (rollOver) {
			if (this._currentframe == 2) {
				bg_MC.gotoAndPlay(7);
				gotoAndStop(1);
				_parent.stats_ability_MC.gotoAndStop(1);
				_parent.stats_ability_MC.bg_MC.gotoAndStop(1);
				_parent.info_MC.gotoAndStop(1);
				_parent.stat_BT2._visible = false;
			}
		}
	}
	button 6434 {
		on (rollOver) {
			if (_parent._parent.stats_ability_MC._currentframe == 1) {
				_parent._parent.info_MC.gotoAndStop(25);
			}
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	button 6436 {
		on (rollOver) {
			if (_parent._parent.stats_ability_MC._currentframe == 1) {
				_parent._parent.info_MC.gotoAndStop(26);
			}
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	button 6438 {
		on (rollOver) {
			if (_parent._parent.stats_ability_MC._currentframe == 1) {
				_parent._parent.info_MC.gotoAndStop(27);
			}
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	button 6440 {
		on (rollOver) {
			if (_parent._parent.stats_ability_MC._currentframe == 1) {
				_parent._parent.info_MC.gotoAndStop(28);
			}
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	button 6442 {
		on (rollOver) {
			if (_parent._parent.stats_ability_MC._currentframe == 1) {
				_parent._parent.info_MC.gotoAndStop(23);
			}
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	button 6444 {
		on (rollOver) {
			if (_parent._parent.stats_ability_MC._currentframe == 1) {
				_parent._parent.info_MC.gotoAndStop(24);
			}
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	button 6447 {
		on (release) {
			_parent._parent.stats_ability_MC._x = 205;
			if (_parent._parent.stats_ability_MC._currentframe == 1 or _parent._parent.stats_ability_MC._currentframe == 2) {
				_parent._parent.stats_ability_MC.gotoAndStop(3);
				_parent._parent.stats_ability_MC.bg_MC.gotoAndPlay(2);
			} else {
				_parent._parent.stats_ability_MC.gotoAndStop(1);
				_parent._parent.stats_ability_MC.bg_MC.gotoAndPlay(7);
			}
		}
		on (rollOver) {
			_parent._parent.info_MC.gotoAndStop(65);
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6451	{
	}
	movieClip 6452	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebmana > _root.calebmaxmana) {
					_root.calebmana = _root.calebmaxmana;
				}
				if (_root.calebmana < 0) {
					_root.calebmana = 0;
				}
				manabar._height = (_root.calebmana / _root.calebmaxmana) * 17;
			};
		}
	}
	button 6453 {
		on (rollOver) {
			_parent._parent.info_MC.gotoAndStop(49);
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6457	{
		frame 1 {
			stop();
		}
	}
	movieClip 6461	{
		frame 1 {
			stop();
		}
	}
	movieClip 6463	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebhealth > _root.calebmaxhealth) {
					_root.calebhealth = _root.calebmaxhealth;
				}
				if (_root.calebhealth < 0) {
					_root.calebhealth = 0;
				}
				healthbar._height = (_root.calebhealth / _root.calebmaxhealth) * 17;
			};
		}
	}
	button 6464 {
		on (rollOver) {
			_parent._parent.info_MC.gotoAndStop(48);
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6478	{
		frame 1 {
			stop();
		}
	}
	movieClip 6480	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.caleblimit > _root.calebmaxlimit) {
					_root.caleblimit = _root.calebmaxlimit;
				}
				limitbar._width = (_root.caleblimit / _root.calebmaxlimit) * 50;
			};
		}
	}
	button 6481 {
		on (rollOver) {
			if (_parent._parent.stats_ability_MC._currentframe == 1) {
				_parent._parent.info_MC.gotoAndStop(50);
			}
		}
		on (rollOut) {
			_parent._parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6482	{
		frame 1 {
			if (_root.calebnumofmagics == 0) {
				spell._visible = false;
			}
			if (_root.calebnumoflimits == 0) {
				limit_BT._visible = false;
			}
		}
	}
	button 6483 {
		on (rollOver) {
			if (_parent.stats_ability_MC._currentframe == 1) {
				_parent.info_MC.gotoAndStop(25);
			}
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6484 {
		on (rollOver) {
			if (_parent.stats_ability_MC._currentframe == 1) {
				_parent.info_MC.gotoAndStop(26);
			}
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6485 {
		on (rollOver) {
			if (_parent.stats_ability_MC._currentframe == 1) {
				_parent.info_MC.gotoAndStop(27);
			}
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6486 {
		on (rollOver) {
			if (_parent.stats_ability_MC._currentframe == 1) {
				_parent.info_MC.gotoAndStop(28);
			}
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6487 {
		on (rollOver) {
			if (_parent.stats_ability_MC._currentframe == 1) {
				_parent.info_MC.gotoAndStop(23);
			}
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6488 {
		on (rollOver) {
			if (_parent.stats_ability_MC._currentframe == 1) {
				_parent.info_MC.gotoAndStop(24);
			}
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6490	{
	}
	movieClip 6491	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.coremana > _root.coremaxmana) {
					_root.coremana = _root.coremaxmana;
				}
				if (_root.coremana < 0) {
					_root.coremana = 0;
				}
				manabar._height = (_root.coremana / _root.coremaxmana) * 17;
			};
		}
	}
	button 6492 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(46);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6494	{
	}
	button 6495 {
		on (release) {
			_parent.stats_ability_MC._x = 90;
			if (_parent.stats_ability_MC._currentframe == 1 or _parent.stats_ability_MC._currentframe == 3) {
				_parent.stats_ability_MC.gotoAndStop(2);
				_parent.stats_ability_MC.bg_MC.gotoAndPlay(2);
			} else {
				_parent.stats_ability_MC.gotoAndStop(1);
				_parent.stats_ability_MC.bg_MC.gotoAndPlay(7);
			}
		}
		on (rollOver) {
			_parent.info_MC.gotoAndStop(64);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6497	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.corelimit > _root.coremaxlimit) {
					_root.corelimit = _root.coremaxlimit;
				}
				limitbar._width = (_root.corelimit / _root.coremaxlimit) * 50;
			};
		}
	}
	button 6498 {
		on (rollOver) {
			if (_parent.stats_ability_MC._currentframe == 1) {
				_parent.info_MC.gotoAndStop(47);
			}
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6499	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.corehealth > _root.coremaxhealth) {
					_root.corehealth = _root.coremaxhealth;
				}
				if (_root.corehealth < 0) {
					_root.corehealth = 0;
				}
				healthbar._height = (_root.corehealth / _root.coremaxhealth) * 17;
			};
		}
	}
	button 6500 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(45);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6509	{
		frame 1 {
			stop();
		}
		frame 2 {
			if (_root.calebX == false) {
				calebstat._visible = false;
				caleb_graph._visible = false;
				bg_MC._width = 115;
				stat_BT._visible = false;
				line._visible = false;
			} else {
				calebstat._visible = true;
				bg_MC._width = 224;
				stat_BT2._visible = false;
				line._visible = true;
			}
			if (_root.corenumofmagics == 0) {
				spell._visible = false;
			}
			if (_root.corenumoflimits == 0) {
				limit_BT._visible = false;
			}
			var fmt = name_txt.getTextFormat();
			name_txt.setNewTextFormat(fmt);
			name_txt.text = _root.corename;
			defense.text = _root.coredefense;
			strength.text = _root.corestrength;
			luck.text = _root.coreluck;
			agility.text = _root.coreagility;
			magic.text = _root.coremagicdamage;
			mdefense.text = _root.coremagicdefense;
			calebstat.defense.text = _root.calebdefense;
			calebstat.strength.text = _root.calebstrength;
			calebstat.luck.text = _root.calebluck;
			calebstat.agility.text = _root.calebagility;
			calebstat.magic.text = _root.calebmagicdamage;
			calebstat.mdefense.text = _root.calebmagicdefense;
			var fmt = health.getTextFormat();
			health.setNewTextFormat(fmt);
			var fmt = mana.getTextFormat();
			mana.setNewTextFormat(fmt);
			var fmt = lim.getTextFormat();
			lim.setNewTextFormat(fmt);
			var fmt = calebstat.health.getTextFormat();
			calebstat.health.setNewTextFormat(fmt);
			var fmt = calebstat.mana.getTextFormat();
			calebstat.mana.setNewTextFormat(fmt);
			var fmt = calebstat.lim.getTextFormat();
			calebstat.lim.setNewTextFormat(fmt);
			onEnterFrame = function () {
				health.text = _root.corehealth + '/' + _root.coremaxhealth;
				mana.text = _root.coremana + '/' + _root.coremaxmana;
				lim.text = Math.round((_root.corelimit / _root.coremaxlimit) * 100) + '%';
				calebstat.health.text = _root.calebhealth + '/' + _root.calebmaxhealth;
				calebstat.mana.text = _root.calebmana + '/' + _root.calebmaxmana;
				calebstat.lim.text = Math.round((_root.caleblimit / _root.calebmaxlimit) * 100) + '%';
			};
		}
	}
	button 6511 {
		on (rollOver) {
			gotoAndStop(1);
			bg_MC.gotoAndPlay(7);
		}
	}
	movieClip 6513	{
	}
	movieClip 6516	{
		frame 1 {
			if (_root.medalcharms == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6517 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(30);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6520	{
		frame 1 {
			if (_root.medalmeeting == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6521 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(31);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6523	{
		frame 1 {
			if (_root.medalrookie == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6524 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(32);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6525	{
		frame 1 {
			if (_root.medalveteran == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6526 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(33);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6527	{
		frame 1 {
			if (_root.medallegend == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6528 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(34);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6531	{
		frame 1 {
			if (_root.medalhelper == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6532 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(37);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6535	{
		frame 1 {
			if (_root.medalpoet == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6536 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(35);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6539	{
		frame 1 {
			if (_root.medalswordfish == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6540 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(39);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6541	{
		frame 1 {
			if (_root.medalflawless == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6542 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(38);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6545	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.farsight == false) {
					farsight_on._visible = false;
				} else {
					farsight_on._visible = true;
				}
			};
		}
	}
	movieClip 6546	{
		frame 1 {
			if (_root.medalawakened == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6547 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(40);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6550	{
		frame 1 {
			if (_root.medalaquaman == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6551 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(41);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6554	{
		frame 1 {
			if (_root.medalcharm == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6555 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(29);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6558	{
		frame 1 {
			if (_root.medaljuggernaught == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6559 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(36);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6560	{
		frame 1 {
			if (_root.medalherbivore == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6561 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(43);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6562	{
		frame 1 {
			if (_root.medaldiglet == true) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 6563 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(42);
			_parent.entercheat._visible = false;
			_root.cheat = false;
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6564	{
		frame 1 {
			stop();
		}
	}
	button 6566 {
		on (rollOver) {
			if (this._currentframe == 2) {
				bg_MC.gotoAndPlay(7);
				gotoAndStop(1);
				_parent.info_MC.gotoAndStop(1);
				_parent.diff_BT._visible = false;
			}
		}
	}
	button 6570 {
		on (rollOver) {
			_root.doEndCheat();
			if (_root.difficulty != 1) {
				_parent.info_MC.gotoAndStop(19);
			} else {
				_parent.info_MC.gotoAndStop(84);
			}
		}
		on (release) {
			_root.difficulty = 1;
			if (_root.difficulty != 1) {
				_root.changediff = true;
			}
		}
		on (rollOut) {
			if (_root.difficulty == 1) {
				_parent.info_MC.gotoAndStop(16);
			} else {
				if (_root.difficulty == 2) {
					_parent.info_MC.gotoAndStop(17);
				} else {
					if (_root.difficulty == 3) {
						_parent.info_MC.gotoAndStop(18);
					} else {
						if (_root.difficulty == 4) {
							_parent.info_MC.gotoAndStop(22);
						}
					}
				}
			}
		}
	}
	button 6574 {
		on (rollOver) {
			_root.doEndCheat();
			if (_root.difficulty != 2) {
				_parent.info_MC.gotoAndStop(20);
			} else {
				_parent.info_MC.gotoAndStop(85);
			}
		}
		on (release) {
			_root.difficulty = 2;
			if (_root.difficulty != 2) {
				_root.changediff = true;
			}
		}
		on (rollOut) {
			if (_root.difficulty == 1) {
				_parent.info_MC.gotoAndStop(16);
			} else {
				if (_root.difficulty == 2) {
					_parent.info_MC.gotoAndStop(17);
				} else {
					if (_root.difficulty == 3) {
						_parent.info_MC.gotoAndStop(18);
					} else {
						if (_root.difficulty == 4) {
							_parent.info_MC.gotoAndStop(22);
						}
					}
				}
			}
		}
	}
	button 6578 {
		on (rollOver) {
			_root.doEndCheat();
			if (_root.difficulty != 3) {
				_parent.info_MC.gotoAndStop(21);
			} else {
				_parent.info_MC.gotoAndStop(86);
			}
		}
		on (release) {
			_root.difficulty = 3;
			if (_root.difficulty < 3) {
				_root.changediff = true;
			}
		}
		on (rollOut) {
			if (_root.difficulty == 1) {
				_parent.info_MC.gotoAndStop(16);
			} else {
				if (_root.difficulty == 2) {
					_parent.info_MC.gotoAndStop(17);
				} else {
					if (_root.difficulty == 3) {
						_parent.info_MC.gotoAndStop(18);
					} else {
						if (_root.difficulty == 4) {
							_parent.info_MC.gotoAndStop(22);
						}
					}
				}
			}
		}
	}
	movieClip 6579	{
		frame 1 {
			stop();
		}
	}
	button 6581 {
		on (rollOver) {
			gotoAndStop(1);
			bg_MC.gotoAndPlay(7);
		}
	}
	movieClip 6583	{
		frame 1 {
			stop();
		}
		frame 2 {
			onEnterFrame = function () {
				if (_root.corehealth < _root.coremaxhealth) {
					txt.text = 'Click to heal ' + _root.corename + ' ' + Math.round(1 + _root.coremagicdamage / 3) * 5 + ' hp, for ' + _root.coremagic1mana + ' mana';
				} else {
					txt.text = _root.corename + ' has full health.';
				}
			};
		}
	}
	button 6585 {
		on (rollOver) {
			_root.infos = _root.coremagic1stam;
			_root.infom = _root.coremagic1mana;
			_parent.info_MC.gotoAndStop(52);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6587 {
		on (rollOver) {
			_root.infos = _root.coremagic2stam;
			_root.infom = _root.coremagic2mana;
			_parent.info_MC.gotoAndStop(53);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6589 {
		on (rollOver) {
			_root.infos = _root.coremagic3stam;
			_root.infom = _root.coremagic3mana;
			_parent.info_MC.gotoAndStop(54);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6591 {
		on (rollOver) {
			_root.infos = _root.coremagic4stam;
			_root.infom = _root.coremagic4mana;
			_parent.info_MC.gotoAndStop(55);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6593 {
		on (rollOver) {
			_root.infos = _root.coremagic5stam;
			_root.infom = _root.coremagic5mana;
			_parent.info_MC.gotoAndStop(56);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6595 {
		on (rollOver) {
			_root.infos = _root.coremagic6stam;
			_root.infom = _root.coremagic6mana;
			_parent.info_MC.gotoAndStop(57);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6600	{
		frame 1 {
			stop();
		}
		frame 2 {
			mana_txt.text = 'Mana: ' + _root.infom;
			stamina_txt.text = 'Stamina: ' + _root.infos;
		}
		frame 3 {
			mana_txt.text = 'Mana: ' + _root.infom;
			stamina_txt.text = 'Stamina: ' + _root.infos;
		}
	}
	button 6603 {
		on (rollOver) {
			_root.infos = _root.calebmagic1stam;
			_root.infom = _root.calebmagic1mana;
			_parent.info_MC.gotoAndStop(58);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6605 {
		on (rollOver) {
			_root.infos = _root.calebmagic2stam;
			_root.infom = _root.calebmagic2mana;
			_parent.info_MC.gotoAndStop(59);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6607 {
		on (rollOver) {
			_root.infos = _root.calebmagic3stam;
			_root.infom = _root.calebmagic3mana;
			_parent.info_MC.gotoAndStop(60);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6609 {
		on (rollOver) {
			_root.infos = _root.calebmagic4stam;
			_root.infom = _root.calebmagic4mana;
			_parent.info_MC.gotoAndStop(61);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6611 {
		on (rollOver) {
			_root.infos = _root.calebmagic5stam;
			_root.infom = _root.calebmagic5mana * 2;
			_parent.info_MC.gotoAndStop(62);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6613 {
		on (rollOver) {
			_root.infos = _root.calebmagic6stam;
			_root.infom = _root.calebmagic6mana;
			_parent.info_MC.gotoAndStop(63);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6614	{
		frame 1 {
			stop();
		}
		frame 2 {
			i = 1;
			while (i <= 6) {
				if (_root['coremagic' + i] == false) {
					this['spell' + i]._visible = false;
				}
				++i;
			}
		}
		frame 3 {
			i = 1;
			while (i <= 6) {
				if (_root['calebmagic' + i] == false) {
					this['spell' + i]._visible = false;
				}
				++i;
			}
		}
	}
	button 6615 {
		on (rollOver) {
			gotoAndStop(1);
			bg_MC.gotoAndPlay(7);
		}
	}
	button 6623 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(74);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6624 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(75);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6625 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(76);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6626 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(77);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6627 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(78);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6628 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(79);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	button 6635 {
		on (release) {
			_root.concoct_MC.gotoAndPlay(2);
			_root.inventory_MC.gotoAndPlay(15);
			_root.notwalk = true;
			gotoAndStop(1);
			bg_MC.gotoAndPlay(7);
		}
	}
	button 6636 {
		on (rollOver) {
			_root.doEndCheat();
			_parent.info_MC.gotoAndStop(87);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
	}
	movieClip 6637	{
		frame 1 {
			stop();
		}
		frame 2 {
			if (_root.shroom1 + _root.shroom2 + _root.shroom3 + _root.shroom4 + _root.butterfly1 + _root.butterfly2 + _root.bottle < 2) {
				con._visible = false;
			}
		}
	}
	button 6638 {
		on (rollOver) {
			gotoAndStop(1);
			bg_MC.gotoAndPlay(7);
		}
	}
	button 6642 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(71);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_root.ether > 0 && (_root.calebhealth < _root.calebmaxhealth or _root.calebmana < _root.calebmaxmana)) {
				--_root.ether;
				_root.calebhealth = _root.calebmaxhealth;
				_root.calebmana = _root.calebmaxmana;
				if (_root.sfxmute == false) {
					_root.drink.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 6643 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(70);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_root.ether > 0 && (_root.corehealth < _root.coremaxhealth or _root.coremana < _root.coremaxmana)) {
				--_root.ether;
				_root.corehealth = _root.coremaxhealth;
				_root.coremana = _root.coremaxmana;
				if (_root.sfxmute == false) {
					_root.drink.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 6644	{
		frame 1 {
			stop();
		}
		frame 2 {
			if (_root.calebX == false) {
				cal._visible = false;
				calbar._visible = false;
			} else {
				cal._visible = true;
				calbar._visible = true;
			}
			onEnterFrame = function () {
				corehealth_txt.text = _root.corehealth + ' / ' + _root.coremaxhealth;
				if (_root.calebX == true) {
					calebhealth_txt.text = _root.calebhealth + ' / ' + _root.calebmaxhealth;
				} else {
					calebhealth_txt.text = '';
				}
			};
		}
	}
	button 6645 {
		on (rollOver) {
			gotoAndStop(1);
			bg_MC.gotoAndPlay(7);
		}
	}
	button 6649 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(90);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_root.limit > 0 && _root.caleblimit < _root.calebmaxlimit) {
				--_root.limit;
				_root.caleblimit = _root.calebmaxlimit;
				if (_root.sfxmute == false) {
					_root.drink.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 6650 {
		on (rollOver) {
			_parent.info_MC.gotoAndStop(89);
		}
		on (rollOut) {
			_parent.info_MC.gotoAndStop(1);
		}
		on (release) {
			if (_root.limit > 0 && _root.corelimit < _root.coremaxlimit) {
				--_root.limit;
				_root.corelimit = _root.coremaxlimit;
				if (_root.sfxmute == false) {
					_root.drink.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 6651	{
		frame 1 {
			stop();
		}
		frame 2 {
			if (_root.calebX == false) {
				cal._visible = false;
				calbar._visible = false;
			} else {
				cal._visible = true;
				calbar._visible = true;
			}
			onEnterFrame = function () {
				corelimit_txt.text = _root.corelimit + ' / ' + _root.coremaxlimit;
				if (_root.calebX == true) {
					caleblimit_txt.text = _root.caleblimit + ' / ' + _root.calebmaxlimit;
				} else {
					caleblimit_txt.text = '';
				}
			};
		}
	}
	button 6655 {
		on (rollOver) {
			C3.gotoAndStop(2);
		}
		on (rollOut) {
			C3.gotoAndStop(1);
		}
	}
	button 6656 {
		on (rollOver) {
			C6.gotoAndStop(2);
		}
		on (rollOut) {
			C6.gotoAndStop(1);
		}
	}
	button 6657 {
		on (rollOver) {
			C9.gotoAndStop(2);
		}
		on (rollOut) {
			C9.gotoAndStop(1);
		}
	}
	button 6658 {
		on (rollOver) {
			C10.gotoAndStop(2);
		}
		on (rollOut) {
			C10.gotoAndStop(1);
		}
	}
	button 6659 {
		on (rollOver) {
			C8.gotoAndStop(2);
		}
		on (rollOut) {
			C8.gotoAndStop(1);
		}
	}
	button 6660 {
		on (rollOver) {
			C4.gotoAndStop(2);
		}
		on (rollOut) {
			C4.gotoAndStop(1);
		}
	}
	button 6661 {
		on (rollOver) {
			C5.gotoAndStop(2);
		}
		on (rollOut) {
			C5.gotoAndStop(1);
		}
	}
	button 6662 {
		on (rollOver) {
			C7.gotoAndStop(2);
		}
		on (rollOut) {
			C7.gotoAndStop(1);
		}
	}
	button 6663 {
		on (rollOver) {
			C2.gotoAndStop(2);
		}
		on (rollOut) {
			C2.gotoAndStop(1);
		}
	}
	button 6664 {
		on (rollOver) {
			C1.gotoAndStop(2);
		}
		on (rollOut) {
			C1.gotoAndStop(1);
		}
	}
	button 6665 {
		on (rollOver) {
			C11.gotoAndStop(2);
		}
		on (rollOut) {
			C11.gotoAndStop(1);
		}
	}
	movieClip 6669	{
		frame 70 {
			gotoAndPlay(2);
		}
	}
	
	// unknown tag 88 length 141
	movieClip 6672	{
		frame 1 {
			stop();
		}
	}
	movieClip 6674	{
		frame 1 {
			stop();
		}
	}
	movieClip 6676	{
		frame 1 {
			stop();
		}
	}
	movieClip 6678	{
		frame 1 {
			stop();
		}
	}
	movieClip 6680	{
		frame 1 {
			stop();
		}
	}
	movieClip 6682	{
		frame 1 {
			stop();
		}
	}
	movieClip 6684	{
		frame 1 {
			stop();
		}
	}
	movieClip 6686	{
		frame 1 {
			stop();
		}
	}
	movieClip 6688	{
		frame 1 {
			stop();
		}
	}
	movieClip 6690	{
		frame 1 {
			stop();
		}
	}
	movieClip 6692	{
		frame 1 {
			stop();
		}
	}
	movieClip 6693	{
		frame 1 {
			if (_root.areaname == 'Everthorn Forest') {
				here._x = 200;
				here._y = 78;
			} else {
				if (_root.areaname == 'Bavelock City' or _root.areaname == 'Thieves\' Passage') {
					here._x = 185;
					here._y = 105;
				} else {
					if (_root.areaname == 'Nightshade Cemetary') {
						here._x = 188;
						here._y = 101;
					} else {
						if (_root.areaname == 'Gwydion Woods') {
							here._x = 180;
							here._y = 120;
						} else {
							if (_root.areaname == 'Savina City') {
								here._x = 236;
								here._y = 108;
							} else {
								if (_root.areaname == 'Blackwhisper Cave') {
									here._x = 192;
									here._y = 132;
								} else {
									if (_root.areaname == 'Fisherhouse') {
										here._x = 169;
										here._y = 110;
									} else {
										if (_root.areaname == 'Goldbrim Bridge') {
											here._x = 241;
											here._y = 108;
										} else {
											if (_root.areaname == 'Mogwai Mountains') {
												here._x = 243;
												here._y = 81;
											} else {
												here._visible = false;
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
	movieClip 6694	{
		frame 9 {
			stop();
		}
		frame 12 {
			_parent.gotoAndStop(1);
		}
	}
	button 6695 {
		on (release) {
			if (_root.story == 156 && _root.currentpage == 2) {
				_root.doTextpage();
				_root.doActivatedText();
				_root.story = 157;
			}
			map_MC.gotoAndPlay(10);
		}
	}
	movieClip 6696	{
		frame 1 {
			stop();
			entercheat._visible = false;
			cancel_BT._visible = false;
			diff_BT._visible = false;
			stat_BT._visible = false;
			var fmt = sword_txt.getTextFormat();
			sword_txt.setNewTextFormat(fmt);
			var fmt = damage_txt.getTextFormat();
			damage_txt.setNewTextFormat(fmt);
			var fmt = info_txt.getTextFormat();
			info_txt.setNewTextFormat(fmt);
			onEnterFrame = function () {
				damage_txt.text = 'Damage: ' + _root.currentweapon;
				if (eval('_root.sword' + _root.sword + 'f') == 1) {
					info_txt.text = 'Slow effect';
				} else {
					if (eval('_root.sword' + _root.sword + 'f') == 2) {
						info_txt.text = 'Paralyze effect';
					} else {
						if (eval('_root.sword' + _root.sword + 'f') == 3) {
							info_txt.text = 'Imbalance effect';
						} else {
							if (eval('_root.sword' + _root.sword + 'f') == 4) {
								info_txt.text = 'Weakening effect';
							} else {
								if (eval('_root.sword' + _root.sword + 'f') == 5) {
									info_txt.text = 'Haste effect';
								} else {
									info_txt.text = '';
								}
							}
						}
					}
				}
				po.potion.text = _root.potion;
				el.elixir.text = _root.elixir;
				et.ether.text = _root.ether;
				rem.remedy.text = _root.remedy;
				lim.limit.text = _root.limit;
				gold.text = _root.gold;
				sword_txt.text = _root.swordname;
				if (_root.gotfirstpotion == true) {
					po.gotoAndStop(2);
					if (_root.coremagic1 == false) {
						po.heal_BT._visible = false;
					} else {
						po.heal_BT._visible = true;
					}
				}
				if (_root.gotshovel == false) {
					shovel_MC.gotoAndStop(1);
				} else {
					shovel_MC.gotoAndStop(2);
				}
				if (_root.gotfirstelixir == true) {
					el.gotoAndStop(2);
				}
				if (_root.gotfirstether == true) {
					et.gotoAndStop(2);
				}
				if (_root.gotfirstremedy == true) {
					rem.gotoAndStop(2);
				}
				if (_root.gotfirstlimit == true) {
					lim.gotoAndStop(2);
				}
				if (_root.gotfirstc == true or _root.gotfirstbottle == true) {
					col.gotoAndStop(2);
				}
				if (_root.numofmedals == 0 && _root.story < 80) {
					medal_BT._visible = false;
				} else {
					medal_BT._visible = true;
				}
				if (_root.story < 20) {
					wardrobe_BT._visible = false;
				} else {
					wardrobe_BT._visible = true;
				}
				if (_root.story < 156) {
					map_BT._visible = false;
				} else {
					map_BT._visible = true;
				}
			};
		}
		frame 2 {
			stop();
		}
	}
	movieClip 6697	{
		frame 1 {
			stop();
			if (_root.inventoryon == true) {
				gotoAndStop(14);
			}
		}
		frame 2 {
			if (_root.sfxmute == false) {
				_root.pageturn.start();
			}
		}
		frame 9 {
			_root.item._visible = true;
			_root.item._x = this._x + 55;
			_root.item._y = this._y - 15;
		}
		frame 14 {
			stop();
			_root.inventoryon = true;
		}
		frame 15 {
			_root.inventoryon = false;
			_root.options_MC.gotoAndStop(1);
		}
		frame 19 {
			_root.itemn._visible = false;
			_root.cheat = false;
		}
	}
	instance inventory_MC of movieClip 6697	{
		onClipEvent (enterFrame) {
			if (_root.cinemacam == false) {
				this.destx = _root.player._x - 110;
				this.desty = _root.player._y + 95;
				var diffx = this.destx - this._x + 0;
				var diffy = this.desty - this._y + 0;
				if (_root.runningz == true && _root.forcenotrun == false && _root.areaname != 'World Map') {
					this._x += diffx * 0.2;
					this._y += diffy * 0.2;
				} else {
					this._x += diffx * 0.1;
					this._y += diffy * 0.1;
				}
			} else {
				this._x = _root.cam._x - 117;
				this._y = _root.cam._y + 62;
			}
		}
	}
	movieClip 6699	{
	}
	movieClip 6713	{
	}
	movieClip 6722	{
	}
	movieClip 6728	{
		frame 1 {
			stop();
		}
		frame 175 {
			stop();
		}
	}
	movieClip 6730	{
	}
	movieClip 6732	{
	}
	movieClip 6734	{
	}
	movieClip 6736	{
	}
	movieClip 6745	{
		frame 1 {
			stop();
		}
		frame 2 {
			_root.playtear = true;
			++_root.gamepause;
		}
		frame 209 {
			_root.doendPause();
		}
		frame 321 {
			stop();
		}
		frame 322 {
			_root.playtear = true;
		}
		frame 390 {
			stop();
		}
		frame 391 {
			_root.playtear = true;
		}
		frame 409 {
			tow.gotoAndPlay(2);
		}
		frame 671 {
			stop();
		}
		frame 672 {
			_root.playtear = true;
		}
		frame 770 {
			stop();
		}
		frame 771 {
			_root.playtear = true;
		}
		frame 993 {
			stop();
		}
		frame 994 {
			_root.playtear = true;
		}
		frame 1093 {
			stop();
		}
	}
	instance tear_MC of movieClip 6745	{
		onClipEvent (enterFrame) {
			this._x = _root.cam._x + 10;
			this._y = _root.cam._y - 130;
		}
	}
	movieClip 6746	{
		frame 1 {
			stop();
		}
	}
	movieClip 6747	{
		frame 1 {
			stop();
		}
		frame 3 {
			sw.gotoAndStop(_root.num);
		}
	}
	instance sword_MC of movieClip 6747	{
		onClipEvent (enterFrame) {
			this._x = _root.cam._x + 10;
			this._y = _root.cam._y - 130;
		}
	}
	button 6749 {
		on (release) {
			if (_root.shroom1 > 0 && _root.numing < 3) {
				if (_root.ing1 == 0) {
					_root.ing1 = 1;
				} else {
					if (_root.ing2 == 0) {
						_root.ing2 = 1;
					} else {
						if (_root.ing3 == 0) {
							_root.ing3 = 1;
						}
					}
				}
				++_root.numing;
				--_root.shroom1;
				if (_root.sfxmute == false) {
					_root.sound1.attachSound('grasspick');
					_root.sound1.start();
				}
			}
		}
	}
	button 6750 {
		on (release) {
			if (_root.shroom2 > 0 && _root.numing < 3) {
				if (_root.ing1 == 0) {
					_root.ing1 = 2;
				} else {
					if (_root.ing2 == 0) {
						_root.ing2 = 2;
					} else {
						if (_root.ing3 == 0) {
							_root.ing3 = 2;
						}
					}
				}
				++_root.numing;
				--_root.shroom2;
				if (_root.sfxmute == false) {
					_root.sound1.attachSound('grasspick');
					_root.sound1.start();
				}
			}
		}
	}
	button 6751 {
		on (release) {
			if (_root.shroom3 > 0 && _root.numing < 3) {
				if (_root.ing1 == 0) {
					_root.ing1 = 3;
				} else {
					if (_root.ing2 == 0) {
						_root.ing2 = 3;
					} else {
						if (_root.ing3 == 0) {
							_root.ing3 = 3;
						}
					}
				}
				++_root.numing;
				--_root.shroom3;
				if (_root.sfxmute == false) {
					_root.sound1.attachSound('grasspick');
					_root.sound1.start();
				}
			}
		}
	}
	button 6752 {
		on (release) {
			if (_root.shroom4 > 0 && _root.numing < 3) {
				if (_root.ing1 == 0) {
					_root.ing1 = 4;
				} else {
					if (_root.ing2 == 0) {
						_root.ing2 = 4;
					} else {
						if (_root.ing3 == 0) {
							_root.ing3 = 4;
						}
					}
				}
				++_root.numing;
				--_root.shroom4;
				if (_root.sfxmute == false) {
					_root.sound1.attachSound('grasspick');
					_root.sound1.start();
				}
			}
		}
	}
	button 6753 {
		on (release) {
			if (_root.butterfly2 > 0 && _root.numing < 3) {
				if (_root.ing1 == 0) {
					_root.ing1 = 6;
				} else {
					if (_root.ing2 == 0) {
						_root.ing2 = 6;
					} else {
						if (_root.ing3 == 0) {
							_root.ing3 = 6;
						}
					}
				}
				++_root.numing;
				--_root.butterfly2;
				if (_root.sfxmute == false) {
					_root.sound1.attachSound('grasspick');
					_root.sound1.start();
				}
			}
		}
	}
	button 6754 {
		on (release) {
			if (_root.butterfly1 > 0 && _root.numing < 3) {
				if (_root.ing1 == 0) {
					_root.ing1 = 5;
				} else {
					if (_root.ing2 == 0) {
						_root.ing2 = 5;
					} else {
						if (_root.ing3 == 0) {
							_root.ing3 = 5;
						}
					}
				}
				++_root.numing;
				--_root.butterfly1;
				if (_root.sfxmute == false) {
					_root.sound1.attachSound('grasspick');
					_root.sound1.start();
				}
			}
		}
	}
	button 6761 {
		on (release) {
			--_root.numing;
			++_root.shroom1;
			_root.ing2 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6762 {
		on (release) {
			--_root.numing;
			++_root.shroom2;
			_root.ing2 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6763 {
		on (release) {
			--_root.numing;
			++_root.shroom3;
			_root.ing2 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6764 {
		on (release) {
			--_root.numing;
			++_root.shroom4;
			_root.ing2 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6765 {
		on (release) {
			--_root.numing;
			++_root.butterfly1;
			_root.ing2 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6766 {
		on (release) {
			--_root.numing;
			++_root.butterfly2;
			_root.ing2 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	movieClip 6767	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.numing == 0) {
					gotoAndStop(1);
				} else {
					gotoAndStop(_root.ing2 + 1);
				}
			};
		}
	}
	movieClip 6769	{
		frame 1 {
			stop();
		}
	}
	button 6770 {
		on (release) {
			--_root.numing;
			++_root.shroom1;
			_root.ing1 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6771 {
		on (release) {
			--_root.numing;
			++_root.shroom2;
			_root.ing1 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6772 {
		on (release) {
			--_root.numing;
			++_root.shroom3;
			_root.ing1 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6773 {
		on (release) {
			--_root.numing;
			++_root.shroom4;
			_root.ing1 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6774 {
		on (release) {
			--_root.numing;
			++_root.butterfly1;
			_root.ing1 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6775 {
		on (release) {
			--_root.numing;
			++_root.butterfly2;
			_root.ing1 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	movieClip 6776	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.numing == 0) {
					gotoAndStop(1);
				} else {
					gotoAndStop(_root.ing1 + 1);
				}
			};
		}
	}
	movieClip 6778	{
		frame 1 {
			stop();
		}
	}
	button 6779 {
		on (release) {
			--_root.numing;
			++_root.shroom1;
			_root.ing3 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6780 {
		on (release) {
			--_root.numing;
			++_root.shroom2;
			_root.ing3 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6781 {
		on (release) {
			--_root.numing;
			++_root.shroom3;
			_root.ing3 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6782 {
		on (release) {
			--_root.numing;
			++_root.shroom4;
			_root.ing3 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6783 {
		on (release) {
			--_root.numing;
			++_root.butterfly1;
			_root.ing3 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	button 6784 {
		on (release) {
			--_root.numing;
			++_root.butterfly2;
			_root.ing3 = 0;
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('grasspick');
				_root.sound1.start();
			}
		}
	}
	movieClip 6785	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.numing == 0) {
					gotoAndStop(1);
				} else {
					gotoAndStop(_root.ing3 + 1);
				}
			};
		}
	}
	movieClip 6787	{
		frame 1 {
			stop();
		}
	}
	movieClip 6794	{
	}
	movieClip 6796	{
		frame 1 {
			if (_root.hotinfo == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 6802	{
		frame 1 {
			if (_root.hotinfo == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	button 6804 {
		on (release) {
			gotoAndPlay(45);
		}
	}
	button 6805 {
		on (release) {
			if (_root.ing1 == 1) {
				++_root.shroom1;
			} else {
				if (_root.ing1 == 2) {
					++_root.shroom2;
				} else {
					if (_root.ing1 == 3) {
						++_root.shroom3;
					} else {
						if (_root.ing1 == 4) {
							++_root.shroom4;
						} else {
							if (_root.ing1 == 5) {
								++_root.butterfly1;
							} else {
								if (_root.ing1 == 6) {
									++_root.butterfly2;
								}
							}
						}
					}
				}
			}
			if (_root.ing2 == 1) {
				++_root.shroom1;
			} else {
				if (_root.ing2 == 2) {
					++_root.shroom2;
				} else {
					if (_root.ing2 == 3) {
						++_root.shroom3;
					} else {
						if (_root.ing2 == 4) {
							++_root.shroom4;
						} else {
							if (_root.ing2 == 5) {
								++_root.butterfly1;
							} else {
								if (_root.ing2 == 6) {
									++_root.butterfly2;
								}
							}
						}
					}
				}
			}
			gotoAndPlay(130);
		}
	}
	movieClip 6808	{
		frame 1 {
			stop();
		}
	}
	movieClip 6810	{
		frame 1 {
			_root.numing = 0;
			_root.ing1 = 0;
			_root.ing2 = 0;
			_root.ing3 = 0;
			stop();
		}
		frame 40 {
			done_BT._visible = false;
			onEnterFrame = function () {
				bottle_txt.text = _root.bottle + ' empty bottles available';
				num_txt.text = _root.numing + ' ingredients selected of 3';
				if (_root.ing1 == 0) {
					ingredients.n1.gotoAndStop(1);
				} else {
					ingredients.n1.gotoAndStop(2);
				}
				if (_root.ing2 == 0) {
					ingredients.n2.gotoAndStop(1);
				} else {
					ingredients.n2.gotoAndStop(2);
				}
				if (_root.ing3 == 0) {
					ingredients.n3.gotoAndStop(1);
				} else {
					ingredients.n3.gotoAndStop(2);
				}
				if (_root.numing == 3 && _root.bottle > 0) {
					done_BT._visible = true;
					if ((Key.isDown(13) or Key.isDown(69)) && this._currentframe == 40) {
						if (enterX == false) {
							enterX = true;
							gotoAndPlay(45);
						}
					} else {
						enterX = false;
					}
				} else {
					done_BT._visible = false;
				}
			};
			stop();
		}
		frame 45 {
			potionX = 0;
			elixirX = 0;
			etherX = 0;
			remedyX = 0;
			limitX = 0;
			--_root.bottle;
			doMix = function () {
				if (_root['ing' + num] == 1) {
					potionX += 2;
					elixirX += 1;
					etherX += 1;
				} else {
					if (_root['ing' + num] == 2) {
						potionX += 2;
						etherX += 1;
					} else {
						if (_root['ing' + num] == 3) {
							potionX += 1;
							etherX += 3;
						} else {
							if (_root['ing' + num] == 4) {
								elixirX += 2;
								remedyX += 1;
								limitX += 1;
							} else {
								if (_root['ing' + num] == 5) {
									elixirX += 1;
									remedyX += 2;
									limitX += 2;
								} else {
									if (_root['ing' + num] == 6) {
										elixirX += 1;
										remedyX += 1;
										limitX += 3;
									}
								}
							}
						}
					}
				}
			};
			num = 1;
			doMix();
			num = 2;
			doMix();
			num = 3;
			doMix();
			arr = new Array(etherX, remedyX, elixirX, potionX, limitX);
			if ((arr[4] > arr[0] or arr[4] == arr[0]) && (arr[4] > arr[1] or arr[4] == arr[1]) && (arr[4] > arr[2] or arr[4] == arr[2]) && (arr[4] > arr[3] or arr[4] == arr[3])) {
				addpotion = 5;
			} else {
				if ((arr[3] > arr[0] or arr[3] == arr[0]) && (arr[3] > arr[1] or arr[3] == arr[1]) && (arr[3] > arr[2] or arr[3] == arr[2]) && (arr[3] > arr[4] or arr[3] == arr[4])) {
					addpotion = 1;
				} else {
					if ((arr[2] > arr[0] or arr[2] == arr[0]) && (arr[2] > arr[1] or arr[2] == arr[1]) && (arr[2] > arr[3] or arr[2] == arr[3]) && (arr[2] > arr[4] or arr[2] == arr[4])) {
						addpotion = 2;
					} else {
						if ((arr[1] > arr[0] or arr[1] == arr[0]) && (arr[1] > arr[2] or arr[1] == arr[2]) && (arr[1] > arr[3] or arr[1] == arr[3]) && (arr[1] > arr[4] or arr[1] == arr[4])) {
							addpotion = 4;
						} else {
							if ((arr[0] > arr[1] or arr[0] == arr[1]) && (arr[0] > arr[2] or arr[0] == arr[2]) && (arr[0] > arr[3] or arr[0] == arr[3]) && (arr[0] > arr[4] or arr[0] == arr[4])) {
								addpotion = 3;
							}
						}
					}
				}
			}
			luckchance = 60 + _root.coreluck;
			chance = random(luckchance - _root.coreluck + 60);
			if (chance <= luckchance) {
				if (addpotion == 1) {
					_root.concoct = true;
					_root.doFoundPotion();
					potions_MC.gotoAndStop(2);
				} else {
					if (addpotion == 2) {
						_root.concoct = true;
						_root.doFoundElixir();
						potions_MC.gotoAndStop(3);
					} else {
						if (addpotion == 3) {
							_root.concoct = true;
							_root.doFoundEther();
							potions_MC.gotoAndStop(4);
						} else {
							if (addpotion == 4) {
								_root.concoct = true;
								_root.doFoundRemedy();
								potions_MC.gotoAndStop(5);
							} else {
								if (addpotion == 5) {
									_root.concoct = true;
									_root.doFoundLimit();
									potions_MC.gotoAndStop(6);
								}
							}
						}
					}
				}
			} else {
				potions_MC.gotoAndStop(1);
				_root.texttimer = true;
				if (addpotion == 1) {
					_root.page1 = 'You try to make a Potion but it was ruined!';
				} else {
					if (addpotion == 2) {
						_root.page1 = 'You try to make an Elixir but it was ruined!';
					} else {
						if (addpotion == 3) {
							_root.page1 = 'You try to make an Ether but it was ruined!';
						} else {
							if (addpotion == 4) {
								_root.page1 = 'You try to make a Remedy but it was ruined!';
							} else {
								if (addpotion == 5) {
									_root.page1 = 'You try to make a Limit Boost but it was ruined!';
								}
							}
						}
					}
				}
				_root.page1 += ' Try again!';
				_root.doStartText();
			}
		}
		frame 45 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('blinkbirth');
				_root.sound1.start();
			}
		}
		frame 50 {
			_root.numing = 0;
			_root.ing1 = 0;
			_root.ing2 = 0;
			_root.ing3 = 0;
		}
		frame 129 {
			gotoAndStop(40);
		}
		frame 130 {
			_root.notwalk = false;
		}
	}
	instance concoct_MC of movieClip 6810	{
		onClipEvent (enterFrame) {
			this._x = _root.cam._x - 140;
			this._y = _root.cam._y - 20;
		}
	}
	movieClip 6813	{
	}
	movieClip 6814	{
	}
	movieClip 6818	{
	}
	button 6820 {
		on (release) {
			paintcolor = 0;
			colorz = 1;
			selectedcolor._y = black._y - 3;
			selectedcolor._x = black._x - 3;
			dochangeColor();
		}
	}
	button 6821 {
		on (release) {
			paintcolor = 16777215;
			colorz = 2;
			selectedcolor._y = white._y - 3;
			selectedcolor._x = white._x - 3;
			dochangeColor();
		}
	}
	button 6822 {
		on (release) {
			paintcolor = 26265;
			colorz = 7;
			selectedcolor._y = blue._y - 3;
			selectedcolor._x = blue._x - 3;
			dochangeColor();
		}
	}
	button 6823 {
		on (release) {
			paintcolor = 4554284;
			colorz = 4;
			selectedcolor._y = green._y - 3;
			selectedcolor._x = green._x - 3;
			dochangeColor();
		}
	}
	button 6824 {
		on (release) {
			paintcolor = 9050895;
			colorz = 5;
			selectedcolor._y = red._y - 3;
			selectedcolor._x = red._x - 3;
			dochangeColor();
		}
	}
	button 6825 {
		on (release) {
			paintcolor = 11768935;
			colorz = 6;
			selectedcolor._y = orange._y - 3;
			selectedcolor._x = orange._x - 3;
			dochangeColor();
		}
	}
	button 6826 {
		on (release) {
			paintcolor = 5850927;
			colorz = 3;
			selectedcolor._y = grey._y - 3;
			selectedcolor._x = grey._x - 3;
			dochangeColor();
		}
	}
	button 6827 {
		on (release) {
			paintcolor = 13369088;
			colorz = 8;
			selectedcolor._y = yellow._y - 3;
			selectedcolor._x = yellow._x - 3;
			dochangeColor();
		}
	}
	button 6828 {
		on (release) {
			alphabrush = 25;
			paintbrush.brush.colortip._alpha = alphabrush + 20;
			selectedsize();
		}
	}
	button 6829 {
		on (release) {
			alphabrush = 50;
			paintbrush.brush.colortip._alpha = alphabrush + 20;
			selectedsize();
		}
	}
	button 6830 {
		on (release) {
			alphabrush = 100;
			paintbrush.brush.colortip._alpha = alphabrush;
			selectedsize();
		}
	}
	button 6832 {
		on (release) {
			paintsize = 10;
			sizes = 2;
			selectedsize();
		}
		on (rollOver) {
			_root.previewz = true;
			previewsize = 10;
		}
		on (rollOut) {
			_root.previewz = false;
		}
	}
	button 6833 {
		on (release) {
			paintsize = 20;
			sizes = 3;
			selectedsize();
		}
		on (rollOver) {
			_root.previewz = true;
			previewsize = 20;
		}
		on (rollOut) {
			_root.previewz = false;
		}
	}
	button 6834 {
		on (release) {
			paintsize = 30;
			sizes = 4;
			selectedsize();
		}
		on (rollOver) {
			_root.previewz = true;
			previewsize = 30;
		}
		on (rollOut) {
			_root.previewz = false;
		}
	}
	button 6835 {
		on (release) {
			paintsize = 50;
			sizes = 5;
			selectedsize();
		}
		on (rollOver) {
			_root.previewz = true;
			previewsize = 50;
		}
		on (rollOut) {
			_root.previewz = false;
		}
	}
	button 6836 {
		on (release) {
			paintsize = 3;
			sizes = 1;
			selectedsize();
		}
		on (rollOver) {
			_root.previewz = true;
			previewsize = 5;
		}
		on (rollOut) {
			_root.previewz = false;
		}
	}
	movieClip 6837	{
	}
	movieClip 6841	{
		frame 1 {
			if (_root.hotinfo == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	button 6843 {
		on (release) {
			mask_MC.drawing_mc.clear();
		}
	}
	button 6846 {
		on (release) {
			Mouse.show();
			_root.notwalk = false;
			gotoAndStop(1);
		}
	}
	movieClip 6848	{
	}
	movieClip 6850	{
	}
	movieClip 6854	{
		frame 1 {
			stop();
		}
		frame 9 {
			gotoAndStop(1);
		}
	}
	movieClip 6857	{
	}
	movieClip 6859	{
	}
	movieClip 6861	{
	}
	movieClip 6862	{
	}
	movieClip 6863	{
		frame 1 {
			stop();
		}
		frame 2 {
			Mouse.hide();
			_root.previewz = false;
			paintcolor = 0;
			paintsize = 20;
			paintbrushon = true;
			alphabrush = 100;
			sizes = 3;
			paintbrush.cross._visible = false;
			var changeColor = new Color(paintbrush.brush.colortip);
			dochangeColor = function () {
				changeColor.setRGB(paintcolor);
			};
			selectedsize = function () {
				i = 1;
				while (i <= 5) {
					this['sel' + i]._visible = false;
					++i;
				}
				i = 1;
				while (i <= 3) {
					this['a' + i]._visible = false;
					++i;
				}
				this['sel' + sizes]._visible = true;
				if (alphabrush == 100) {
					a1._visible = true;
				} else {
					if (alphabrush == 50) {
						a2._visible = true;
					} else {
						if (alphabrush == 25) {
							a3._visible = true;
						}
					}
				}
			};
			selectedsize();
			mask_MC.createEmptyMovieClip('drawing_mc', this.getNextHighestDepth());
			this.onMouseDown = function () {
				mask_MC.drawing_mc.lineStyle(paintsize, paintcolor, alphabrush);
				mask_MC.drawing_mc.moveTo(_xmouse, _ymouse);
				onMouseMove = function () {
					mask_MC.drawing_mc.lineTo(_xmouse, _ymouse);
				};
			};
			this.onMouseUp = function () {
				onMouseMove = noLine;
			};
			onEnterFrame = function () {
				if (previewz == false) {
					paintbrush.brush._width = paintsize + 50;
					paintbrush.brush._height = paintsize + 50;
					paintbrush.shadowz._width = paintsize + 20;
					paintbrush.shadowz._height = paintsize + 20;
				} else {
					paintbrush.brush._width = previewsize + 50;
					paintbrush.brush._height = previewsize + 50;
					paintbrush.shadowz._width = previewsize + 20;
					paintbrush.shadowz._height = previewsize + 20;
				}
				mark._x = _xmouse;
				mark._y = _ymouse;
				mark._width = paintsize;
				mark._height = paintsize;
				if (paintbrushon == true) {
					paintbrush._rotation = paintbrush._y / 5 - 30;
				}
				paintbrush.colortip.tint();
				paintbrush._x = _xmouse;
				paintbrush._y = _ymouse;
			};
		}
	}
	instance canvas_MC of movieClip 6863	{
		onClipEvent (enterFrame) {
			this._x = _root.cam._x - 130;
			this._y = _root.cam._y - 100;
		}
	}
	movieClip 6872	{
		frame 1 {
			stop();
		}
	}
	button 6877 {
		on (release) {
			if (_root.gold >= 20) {
				_root.num = 1;
				_root.addPotion();
				_root.goldnum = 20;
				_root.removingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 6878 {
		on (release) {
			if (_root.gold >= 20) {
				_root.num = 1;
				_root.addElixir();
				_root.goldnum = 20;
				_root.removingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			info.gotoAndStop(3);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 6879 {
		on (release) {
			if (_root.gold >= 45) {
				_root.num = 1;
				_root.addEther();
				_root.goldnum = 45;
				_root.removingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			info.gotoAndStop(4);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 6880 {
		on (release) {
			if (_root.gold >= 25) {
				_root.num = 1;
				_root.addRemedy();
				_root.goldnum = 25;
				_root.removingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			info.gotoAndStop(5);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 6891 {
		on (release) {
			_root.notwalk = false;
			gotoAndStop(1);
		}
	}
	button 6896 {
		on (release) {
			gotoAndStop(5);
		}
	}
	movieClip 6907	{
		frame 1 {
			stop();
		}
	}
	button 6913 {
		on (release) {
			if (_root.gold >= 50) {
				_root.num = 1;
				_root.addLimit();
				_root.goldnum = 50;
				_root.removingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			info.gotoAndStop(6);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 6919 {
		on (release) {
			if (_root.gold >= 3) {
				_root.num = 1;
				_root.addBottle();
				_root.goldnum = 3;
				_root.removingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			info.gotoAndStop(7);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 6926 {
		on (release) {
			if (_root.gold >= 10 && _root.housepainting == false) {
				_root.housepainting = true;
				_root.goldnum = 10;
				_root.removingGold();
				_parent.paintingz.gotoAndStop(2);
				if (_root.sfxmute == false) {
					_root.item.start();
				}
				_root.housegrade3();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 6929	{
	}
	button 6930 {
		on (release) {
			if (_root.gold >= 3 && _root.housechair == false) {
				_root.housechair = true;
				_root.goldnum = 3;
				_root.removingGold();
				_parent.chairz.gotoAndStop(2);
				if (_root.sfxmute == false) {
					_root.item.start();
				}
				_root.housegrade3();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 6933	{
	}
	button 6935 {
		on (release) {
			if (_root.gold >= 9 && _root.housecandelebra == false) {
				_root.housecandelebra = true;
				_root.goldnum = 9;
				_root.removingGold();
				_parent.candelebraz.gotoAndStop(2);
				if (_root.sfxmute == false) {
					_root.item.start();
				}
				_root.housegrade3();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 6938	{
	}
	button 6939 {
		on (release) {
			if (_root.gold >= 10 && _root.housecarpet == false) {
				_root.housecarpet = true;
				_root.goldnum = 10;
				_root.removingGold();
				_parent.carpetz.gotoAndStop(2);
				if (_root.sfxmute == false) {
					_root.item.start();
				}
				_root.housegrade3();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 6942	{
	}
	button 6944 {
		on (release) {
			if (_root.gold >= 12 && _root.housewardrobe == false) {
				_root.housewardrobe = true;
				_root.goldnum = 12;
				_root.removingGold();
				_parent.shelfz.gotoAndStop(2);
				_root.Scenez.b1.shelf._y = 511;
				if (_root.sfxmute == false) {
					_root.item.start();
				}
				_root.housegrade3();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 6947	{
	}
	button 6955 {
		on (release) {
			if (_root.menucolor != 1) {
				_root.menucolor = 1;
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 6956 {
		on (release) {
			if (_root.menucolor != 2) {
				_root.menucolor = 2;
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 6957 {
		on (release) {
			if (_root.menucolor != 3) {
				_root.menucolor = 3;
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 6958 {
		on (release) {
			if (_root.menucolor != 4) {
				_root.menucolor = 4;
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 6959 {
		on (release) {
			if (_root.menucolor != 5) {
				_root.menucolor = 5;
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 6967 {
		on (release) {
			gotoAndStop(19);
		}
	}
	button 6972 {
		on (release) {
			if (_root.potion >= 1) {
				--_root.potion;
				_root.goldnum = 10;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 6973 {
		on (release) {
			if (_root.elixir >= 1) {
				--_root.elixir;
				_root.goldnum = 15;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			info.gotoAndStop(3);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 6974 {
		on (release) {
			if (_root.ether >= 1) {
				--_root.ether;
				_root.goldnum = 35;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			info.gotoAndStop(4);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 6975 {
		on (release) {
			if (_root.remedy >= 1) {
				--_root.remedy;
				_root.goldnum = 20;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			info.gotoAndStop(5);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 6981 {
		on (release) {
			gotoAndStop(2);
		}
	}
	button 6982 {
		on (release) {
			if (_root.limit >= 1) {
				--_root.limit;
				_root.goldnum = 30;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			info.gotoAndStop(6);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 6985 {
		on (release) {
			if (_root.bottle >= 1) {
				--_root.bottle;
				_root.goldnum = 1;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			info.gotoAndStop(7);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
	}
	button 6996 {
		on (release) {
			if (_root.potion >= 1) {
				--_root.potion;
				_root.goldnum = 15;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			i1.gotoAndStop(2);
		}
		on (rollOut) {
			i1.gotoAndStop(1);
		}
	}
	button 6997 {
		on (release) {
			if (_root.elixir >= 1) {
				--_root.elixir;
				_root.goldnum = 20;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			i2.gotoAndStop(2);
		}
		on (rollOut) {
			i2.gotoAndStop(1);
		}
	}
	button 6998 {
		on (release) {
			if (_root.ether >= 1) {
				--_root.ether;
				_root.goldnum = 40;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			i3.gotoAndStop(2);
		}
		on (rollOut) {
			i3.gotoAndStop(1);
		}
	}
	button 6999 {
		on (release) {
			if (_root.remedy >= 1) {
				--_root.remedy;
				_root.goldnum = 25;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			i4.gotoAndStop(2);
		}
		on (rollOut) {
			i4.gotoAndStop(1);
		}
	}
	button 7003 {
		on (release) {
			gotoAndStop(13);
		}
	}
	button 7004 {
		on (release) {
			if (_root.limit >= 1) {
				--_root.limit;
				_root.goldnum = 35;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
		on (rollOver) {
			i5.gotoAndStop(2);
		}
		on (rollOut) {
			i5.gotoAndStop(1);
		}
	}
	button 7013 {
		on (release) {
			if (_root.gold >= 20 && _root.coreluck < 99) {
				_root.goldnum = 20;
				_root.removingGold();
				_root.num = 1;
				_root.addingAgilityCore();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7014 {
		on (release) {
			if (_root.gold >= 20 && _root.coremagicdefense < 99) {
				_root.goldnum = 20;
				_root.removingGold();
				_root.num = 1;
				_root.addingMagicdefenseCore();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7015 {
		on (release) {
			if (_root.gold >= 20 && _root.coremagicdamage < 99) {
				_root.goldnum = 20;
				_root.removingGold();
				_root.num = 1;
				_root.addingMagicCore();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7016 {
		on (release) {
			if (_root.gold >= 20 && _root.coredefense < 99) {
				_root.goldnum = 20;
				_root.removingGold();
				_root.num = 1;
				_root.addingDefenseCore();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7017 {
		on (release) {
			if (_root.gold >= 20 && _root.corestrength < 99) {
				_root.goldnum = 20;
				_root.removingGold();
				_root.num = 1;
				_root.addingStrengthCore();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7026 {
		on (release) {
			gotoAndStop(14);
		}
	}
	movieClip 7031	{
	}
	button 7034 {
		on (release) {
			gotoAndStop(1);
			_root.page1 = 'Luvannon: You want a challenge, do you? I will summon 7 creatures, each one stronger than the other. If you are still alive by the end, you win a prize. Be aware that summoned creatures can, and often will kill you. No items will be allowed.\rDo you still want to take the challenge?';
			_root.page2 = 'ALT';
			_root.doStartText();
			_root.dialog = 2;
			_root.yesno = true;
		}
	}
	button 7041 {
		on (release) {
			if (_root.gold >= 1) {
				_root.goldnum = 1;
				_root.removingGold();
				_root.schoice = 5;
				_root.summon = true;
				_root.doEnterBattle();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7042 {
		on (release) {
			if (_root.gold >= 1) {
				_root.goldnum = 1;
				_root.removingGold();
				_root.schoice = 4;
				_root.summon = true;
				_root.doEnterBattle();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7043 {
		on (release) {
			if (_root.gold >= 1) {
				_root.goldnum = 1;
				_root.removingGold();
				_root.schoice = 2;
				_root.summon = true;
				_root.doEnterBattle();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7044 {
		on (release) {
			if (_root.gold >= 1) {
				_root.goldnum = 1;
				_root.removingGold();
				_root.schoice = 1;
				_root.summon = true;
				_root.doEnterBattle();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7052 {
		on (release) {
			gotoAndStop(9);
		}
	}
	button 7053 {
		on (release) {
			if (_root.gold >= 1) {
				_root.goldnum = 1;
				_root.removingGold();
				_root.schoice = 6;
				_root.summon = true;
				_root.doEnterBattle();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7055 {
		on (release) {
			if (_root.gold >= 1) {
				_root.goldnum = 1;
				_root.removingGold();
				_root.schoice = 3;
				_root.summon = true;
				_root.doEnterBattle();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7061 {
		on (release) {
			if (_root.gold >= 5) {
				_root.goldnum = 5;
				_root.removingGold();
				_root.schoice = 9;
				_root.summon = true;
				_root.doEnterBattle();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 7064	{
		frame 1 {
			stop();
		}
	}
	button 7065 {
		on (release) {
			if (_root.gold >= 5) {
				_root.goldnum = 5;
				_root.removingGold();
				_root.schoice = 8;
				_root.summon = true;
				_root.doEnterBattle();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 7067	{
		frame 1 {
			stop();
		}
	}
	button 7068 {
		on (release) {
			if (_root.gold >= 5) {
				_root.goldnum = 5;
				_root.removingGold();
				_root.schoice = 7;
				_root.summon = true;
				_root.doEnterBattle();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 7070	{
		frame 1 {
			stop();
		}
	}
	button 7074 {
		on (release) {
			gotoAndStop(8);
		}
	}
	button 7075 {
		on (release) {
			if (_root.gold >= 5) {
				_root.goldnum = 5;
				_root.removingGold();
				_root.schoice = 10;
				_root.summon = true;
				_root.doEnterBattle();
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 7077	{
		frame 1 {
			stop();
		}
	}
	button 7085 {
		on (release) {
			_root.newmusic = 'savinacity';
			_root.doMusic();
			m1.gotoAndStop(1);
			m2.gotoAndStop(1);
			m3.gotoAndStop(1);
			m5.gotoAndStop(1);
			m6.gotoAndStop(1);
			if (m4._currentframe == 1) {
				m4.gotoAndPlay(2);
			}
		}
	}
	button 7086 {
		on (release) {
			_root.newmusic = 'woods';
			_root.doMusic();
			m1.gotoAndStop(1);
			m2.gotoAndStop(1);
			m4.gotoAndStop(1);
			m5.gotoAndStop(1);
			m6.gotoAndStop(1);
			if (m3._currentframe == 1) {
				m3.gotoAndPlay(2);
			}
		}
	}
	button 7087 {
		on (release) {
			_root.newmusic = 'imperial';
			_root.doMusic();
			m1.gotoAndStop(1);
			m3.gotoAndStop(1);
			m4.gotoAndStop(1);
			m5.gotoAndStop(1);
			m6.gotoAndStop(1);
			if (m2._currentframe == 1) {
				m2.gotoAndPlay(2);
			}
		}
	}
	button 7088 {
		on (release) {
			_root.newmusic = 'awX';
			_root.doMusic();
			m2.gotoAndStop(1);
			m3.gotoAndStop(1);
			m4.gotoAndStop(1);
			m5.gotoAndStop(1);
			m6.gotoAndStop(1);
			if (m1._currentframe == 1) {
				m1.gotoAndPlay(2);
			}
		}
	}
	button 7089 {
		on (release) {
			_root.newmusic = 'plains';
			_root.doMusic();
			m1.gotoAndStop(1);
			m2.gotoAndStop(1);
			m3.gotoAndStop(1);
			m4.gotoAndStop(1);
			m6.gotoAndStop(1);
			if (m5._currentframe == 1) {
				m5.gotoAndPlay(2);
			}
		}
	}
	button 7090 {
		on (release) {
			_root.newmusic = 'icycaves';
			_root.doMusic();
			m1.gotoAndStop(1);
			m2.gotoAndStop(1);
			m3.gotoAndStop(1);
			m4.gotoAndStop(1);
			m5.gotoAndStop(1);
			if (m6._currentframe == 1) {
				m6.gotoAndPlay(2);
			}
		}
	}
	button 7091 {
		on (release) {
			if (_root.areascreen == 4) {
				_root.newmusic = 'imperial';
			}
			if (_root.areascreen == 37) {
				_root.newmusic = 'savinacity';
			}
			_root.doMusic();
			_root.notwalk = false;
			gotoAndStop(1);
		}
	}
	button 7101 {
		on (release) {
			getURL('http://koori-kun.newgrounds.com/', '_blank');
		}
	}
	movieClip 7103	{
	}
	movieClip 7105	{
	}
	movieClip 7107	{
	}
	movieClip 7108	{
		frame 1 {
			gotoAndPlay(random(10));
		}
	}
	movieClip 7109	{
		frame 1 {
			stop();
		}
		frame 41 {
			gotoAndPlay(20);
		}
	}
	button 7111 {
		on (release) {
			if (_root.shroom1 >= 1) {
				--_root.shroom1;
				_root.goldnum = 2;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7112 {
		on (release) {
			if (_root.shroom2 >= 1) {
				--_root.shroom2;
				_root.goldnum = 2;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7113 {
		on (release) {
			if (_root.shroom3 >= 1) {
				--_root.shroom3;
				_root.goldnum = 2;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7114 {
		on (release) {
			if (_root.shroom4 >= 1) {
				--_root.shroom4;
				_root.goldnum = 4;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7121 {
		on (release) {
			gotoAndPlay(12);
		}
	}
	button 7127 {
		on (release) {
			if (_root.butterfly1 >= 1) {
				--_root.butterfly1;
				_root.goldnum = 10;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7130 {
		on (release) {
			if (_root.butterfly2 >= 1) {
				--_root.butterfly2;
				_root.goldnum = 15;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7133 {
		on (release) {
			if (_root.gold >= 7) {
				++_root.shroom1;
				_root.goldnum = 7;
				_root.removingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7134 {
		on (release) {
			if (_root.gold >= 7) {
				++_root.shroom2;
				_root.goldnum = 7;
				_root.removingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7135 {
		on (release) {
			if (_root.gold >= 7) {
				++_root.shroom3;
				_root.goldnum = 7;
				_root.removingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7136 {
		on (release) {
			if (_root.gold >= 10) {
				++_root.shroom4;
				_root.goldnum = 10;
				_root.removingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7138 {
		on (release) {
			gotoAndStop(11);
		}
	}
	button 7144 {
		on (release) {
			if (_root.gold >= 20) {
				++_root.butterfly1;
				_root.goldnum = 20;
				_root.removingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7146 {
		on (release) {
			if (_root.gold >= 25) {
				++_root.butterfly2;
				_root.goldnum = 25;
				_root.removingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7148 {
		on (release) {
			if (_root.shroom1 >= 1) {
				--_root.shroom1;
				_root.goldnum = 5;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7149 {
		on (release) {
			if (_root.shroom2 >= 1) {
				--_root.shroom2;
				_root.goldnum = 5;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7150 {
		on (release) {
			if (_root.shroom3 >= 1) {
				--_root.shroom3;
				_root.goldnum = 5;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7151 {
		on (release) {
			if (_root.shroom4 >= 1) {
				--_root.shroom4;
				_root.goldnum = 7;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7154 {
		on (release) {
			gotoAndStop(6);
		}
	}
	button 7160 {
		on (release) {
			if (_root.butterfly1 >= 1) {
				--_root.butterfly1;
				_root.goldnum = 15;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7163 {
		on (release) {
			if (_root.butterfly2 >= 1) {
				--_root.butterfly2;
				_root.goldnum = 20;
				_root.addingGold();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7165 {
		on (release) {
			if (_root.gold >= 20 && _root.calebluck < 99) {
				_root.goldnum = 20;
				_root.removingGold();
				_root.num = 1;
				_root.addingAgilityCaleb();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7166 {
		on (release) {
			if (_root.gold >= 20 && _root.calebmagicdefense < 99) {
				_root.goldnum = 20;
				_root.removingGold();
				_root.num = 1;
				_root.addingMagicdefenseCaleb();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7167 {
		on (release) {
			if (_root.gold >= 20 && _root.calebmagicdamage < 99) {
				_root.goldnum = 20;
				_root.removingGold();
				_root.num = 1;
				_root.addingMagicCaleb();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7168 {
		on (release) {
			if (_root.gold >= 20 && _root.calebdefense < 99) {
				_root.goldnum = 20;
				_root.removingGold();
				_root.num = 1;
				_root.addingDefenseCaleb();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7169 {
		on (release) {
			if (_root.gold >= 20 && _root.calebstrength < 99) {
				_root.goldnum = 20;
				_root.removingGold();
				_root.num = 1;
				_root.addingStrengthCaleb();
				if (_root.sfxmute == false) {
					_root.item.start();
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 7171	{
		frame 1 {
			name_txt.text = _root.corename;
		}
	}
	button 7172 {
		on (release) {
			gotoAndStop(7);
		}
	}
	movieClip 7179	{
		frame 1 {
			if (_root.hotinfo == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	button 7180 {
		on (release) {
			gotoAndStop(1);
			_root.notwalk = false;
			_root['page' + (_root.turnsX + 1)] = _root.riddlez2;
			_root.doTextpage();
			_root.doActivatedText();
		}
	}
	movieClip 7184	{
		frame 1 {
			if (_root.hotinfo == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	button 7186 {
		on (release) {
			_root.doRiddle();
		}
	}
	movieClip 7189	{
	}
	movieClip 7190	{
		frame 1 {
			stop();
		}
	}
	button 7194 {
		on (rollOver) {
			info.gotoAndStop(4);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
		on (release) {
			if (eval('_root.sword' + _root.sword + 'f') != 3) {
				if (_root.questbrock != 9) {
					if (_root.gold >= 25 && eval('_root.sword' + _root.sword + 'f') != 3) {
						_root.goldnum = 25;
						_root.removingGold();
						_root['sword' + _root.sword + 'f'] = 3;
						if (_root.sfxmute == false) {
							_root.sound1.attachSound('anvil');
							_root.sound1.start();
						}
					} else {
						if (_root.sfxmute == false) {
							_root.error.start();
						}
					}
				} else {
					_root.questbrock = 10;
					_root['sword' + _root.sword + 'f'] = 3;
					_root.notwalk = false;
					gotoAndStop(1);
					if (_root.sfxmute == false) {
						_root.sound1.attachSound('anvil');
						_root.sound1.start();
					}
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7195 {
		on (rollOver) {
			info.gotoAndStop(3);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
		on (release) {
			if (eval('_root.sword' + _root.sword + 'f') != 2) {
				if (_root.questbrock != 9) {
					if (_root.gold >= 25 && eval('_root.sword' + _root.sword + 'f') != 2) {
						_root.goldnum = 25;
						_root.removingGold();
						_root['sword' + _root.sword + 'f'] = 2;
						if (_root.sfxmute == false) {
							_root.sound1.attachSound('anvil');
							_root.sound1.start();
						}
					} else {
						if (_root.sfxmute == false) {
							_root.error.start();
						}
					}
				} else {
					_root.questbrock = 10;
					_root['sword' + _root.sword + 'f'] = 2;
					_root.notwalk = false;
					gotoAndStop(1);
					if (_root.sfxmute == false) {
						_root.sound1.attachSound('anvil');
						_root.sound1.start();
					}
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7196 {
		on (rollOver) {
			info.gotoAndStop(2);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
		on (release) {
			if (eval('_root.sword' + _root.sword + 'f') != 1) {
				if (_root.questbrock != 9) {
					if (_root.gold >= 25 && eval('_root.sword' + _root.sword + 'f') != 1) {
						_root.goldnum = 25;
						_root.removingGold();
						_root['sword' + _root.sword + 'f'] = 1;
						if (_root.sfxmute == false) {
							_root.sound1.attachSound('anvil');
							_root.sound1.start();
						}
					} else {
						if (_root.sfxmute == false) {
							_root.error.start();
						}
					}
				} else {
					_root.questbrock = 10;
					_root['sword' + _root.sword + 'f'] = 1;
					_root.notwalk = false;
					gotoAndStop(1);
					if (_root.sfxmute == false) {
						_root.sound1.attachSound('anvil');
						_root.sound1.start();
					}
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7197 {
		on (release) {
			if (_root.questbrock != 9) {
				_root.notwalk = false;
				gotoAndStop(1);
			}
		}
	}
	movieClip 7203	{
		frame 1 {
			stop();
		}
	}
	movieClip 7207	{
		frame 1 {
			stop();
		}
	}
	movieClip 7210	{
		frame 1 {
			stop();
		}
	}
	movieClip 7213	{
		frame 1 {
			stop();
		}
	}
	movieClip 7214	{
	}
	button 7215 {
		on (rollOver) {
			info.gotoAndStop(5);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
		on (release) {
			if (eval('_root.sword' + _root.sword + 'f') != 4) {
				if (_root.questbrock != 9) {
					if (_root.gold >= 25 && eval('_root.sword' + _root.sword + 'f') != 4) {
						_root.goldnum = 25;
						_root.removingGold();
						_root['sword' + _root.sword + 'f'] = 4;
						if (_root.sfxmute == false) {
							_root.sound1.attachSound('anvil');
							_root.sound1.start();
						}
					} else {
						if (_root.sfxmute == false) {
							_root.error.start();
						}
					}
				} else {
					_root.questbrock = 10;
					_root['sword' + _root.sword + 'f'] = 4;
					_root.notwalk = false;
					gotoAndStop(1);
					if (_root.sfxmute == false) {
						_root.sound1.attachSound('anvil');
						_root.sound1.start();
					}
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	movieClip 7218	{
		frame 1 {
			stop();
		}
	}
	movieClip 7221	{
		frame 1 {
			stop();
		}
	}
	button 7222 {
		on (rollOver) {
			info.gotoAndStop(6);
		}
		on (rollOut) {
			info.gotoAndStop(1);
		}
		on (release) {
			if (eval('_root.sword' + _root.sword + 'f') != 5) {
				if (_root.questbrock != 9) {
					if (_root.gold >= 25 && eval('_root.sword' + _root.sword + 'f') != 5) {
						_root.goldnum = 25;
						_root.removingGold();
						_root['sword' + _root.sword + 'f'] = 5;
						if (_root.sfxmute == false) {
							_root.sound1.attachSound('anvil');
							_root.sound1.start();
						}
					} else {
						if (_root.sfxmute == false) {
							_root.error.start();
						}
					}
				} else {
					_root.questbrock = 10;
					_root['sword' + _root.sword + 'f'] = 5;
					_root.notwalk = false;
					gotoAndStop(1);
					if (_root.sfxmute == false) {
						_root.sound1.attachSound('anvil');
						_root.sound1.start();
					}
				}
			} else {
				if (_root.sfxmute == false) {
					_root.error.start();
				}
			}
		}
	}
	button 7233 {
		on (release) {
			if (_root.directions != 1) {
				_root.directions = 1;
			} else {
				_root.directions = 0;
			}
			_root.notwalk = false;
			gotoAndStop(1);
		}
	}
	button 7234 {
		on (release) {
			if (_root.directions != 2) {
				_root.directions = 2;
			} else {
				_root.directions = 0;
			}
			_root.notwalk = false;
			gotoAndStop(1);
		}
	}
	button 7235 {
		on (release) {
			if (_root.directions != 3) {
				_root.directions = 3;
			} else {
				_root.directions = 0;
			}
			_root.notwalk = false;
			gotoAndStop(1);
		}
	}
	button 7236 {
		on (release) {
			if (_root.directions != 4) {
				_root.directions = 4;
			} else {
				_root.directions = 0;
			}
			_root.notwalk = false;
			gotoAndStop(1);
		}
	}
	button 7237 {
		on (release) {
			if (_root.directions != 5) {
				_root.directions = 5;
			} else {
				_root.directions = 0;
			}
			_root.notwalk = false;
			gotoAndStop(1);
		}
	}
	button 7240 {
		on (release) {
			if (_root.directions != 12) {
				_root.directions = 12;
			} else {
				_root.directions = 0;
			}
			_root.notwalk = false;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7241	{
		frame 1 {
			if (_root.housegrade > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 7246 {
		on (release) {
			if (_root.directions != 7) {
				_root.directions = 7;
			} else {
				_root.directions = 0;
			}
			_root.notwalk = false;
			gotoAndStop(1);
		}
	}
	button 7247 {
		on (release) {
			if (_root.directions != 8) {
				_root.directions = 8;
			} else {
				_root.directions = 0;
			}
			_root.notwalk = false;
			gotoAndStop(1);
		}
	}
	button 7248 {
		on (release) {
			if (_root.directions != 9) {
				_root.directions = 9;
			} else {
				_root.directions = 0;
			}
			_root.notwalk = false;
			gotoAndStop(1);
		}
	}
	button 7249 {
		on (release) {
			if (_root.directions != 10) {
				_root.directions = 10;
			} else {
				_root.directions = 0;
			}
			_root.notwalk = false;
			gotoAndStop(1);
		}
	}
	button 7250 {
		on (release) {
			if (_root.directions != 11) {
				_root.directions = 11;
			} else {
				_root.directions = 0;
			}
			_root.notwalk = false;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7251	{
		frame 1 {
			if (_root.housegrade2 > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	button 7254 {
		on (release) {
			_root.namecolor = 15925120;
			_root.doChangenamecolor();
		}
	}
	button 7255 {
		on (release) {
			_root.namecolor = 16692404;
			_root.doChangenamecolor();
		}
	}
	button 7256 {
		on (release) {
			_root.namecolor = 12975532;
			_root.doChangenamecolor();
		}
	}
	button 7257 {
		on (release) {
			_root.namecolor = 12306943;
			_root.doChangenamecolor();
		}
	}
	button 7258 {
		on (release) {
			_root.namecolor = 12897476;
			_root.doChangenamecolor();
		}
	}
	button 7262 {
		on (release) {
			gotoAndStop(4);
		}
	}
	button 7264 {
		on (release) {
			_root.rewardcolor = 8978418;
			_root.doChangerewardcolor();
		}
	}
	button 7265 {
		on (release) {
			_root.rewardcolor = 16252834;
			_root.doChangerewardcolor();
		}
	}
	button 7266 {
		on (release) {
			_root.rewardcolor = 16762052;
			_root.doChangerewardcolor();
		}
	}
	button 7267 {
		on (release) {
			_root.rewardcolor = 12907182;
			_root.doChangerewardcolor();
		}
	}
	button 7268 {
		on (release) {
			_root.rewardcolor = 14013909;
			_root.doChangerewardcolor();
		}
	}
	movieClip 7270	{
		frame 1 {
			if (_root.text_MC._currentframe == 1) {
				_root.notwalk = false;
			}
			_root.shopframe = 1;
			_root.shopX = false;
			_root.riddleanswer1 = undefined;
			_root.riddleanswer2 = undefined;
			stop();
		}
		frame 2 {
			_root.notwalk = true;
			onEnterFrame = function () {
				potion_txt.text = _root.potion;
				elixir_txt.text = _root.elixir;
				ether_txt.text = _root.ether;
				remedy_txt.text = _root.remedy;
				limit_txt.text = _root.limit;
				bottle_txt.text = _root.bottle;
				gold_txt.text = 'Pix: ' + _root.gold;
			};
			stop();
		}
		frame 3 {
			_root.notwalk = true;
			if (_root.housewardrobe == true) {
				shelfz.gotoAndStop(2);
			} else {
				shelfz.gotoAndStop(1);
			}
			if (_root.housecarpet == true) {
				carpetz.gotoAndStop(2);
			} else {
				carpetz.gotoAndStop(1);
			}
			if (_root.housecandelebra == true) {
				candelebraz.gotoAndStop(2);
			} else {
				candelebraz.gotoAndStop(1);
			}
			if (_root.housechair == true) {
				chairz.gotoAndStop(2);
			} else {
				chairz.gotoAndStop(1);
			}
			if (_root.housepainting == true) {
				paintingz.gotoAndStop(2);
			} else {
				paintingz.gotoAndStop(1);
			}
			onEnterFrame = function () {
				gold_txt.text = 'Pix: ' + _root.gold;
			};
			stop();
		}
		frame 4 {
			_root.notwalk = true;
			stop();
		}
		frame 5 {
			_root.notwalk = true;
			onEnterFrame = function () {
				potion_txt.text = _root.potion;
				elixir_txt.text = _root.elixir;
				ether_txt.text = _root.ether;
				remedy_txt.text = _root.remedy;
				limit_txt.text = _root.limit;
				gold_txt.text = 'Pix: ' + _root.gold;
			};
			stop();
		}
		frame 6 {
			_root.notwalk = true;
			onEnterFrame = function () {
				potion_txt.text = _root.potion;
				elixir_txt.text = _root.elixir;
				ether_txt.text = _root.ether;
				remedy_txt.text = _root.remedy;
				limit_txt.text = _root.limit;
				gold_txt.text = 'Pix: ' + _root.gold;
			};
			stop();
		}
		frame 7 {
			_root.notwalk = true;
			name_txt.text = '+ ' + _root.corename;
			onEnterFrame = function () {
				gold_txt.text = 'Pix: ' + _root.gold;
			};
			stop();
		}
		frame 8 {
			_root.notwalk = true;
			if (_root.firstghoul == true) {
				ghoul_MC.gotoAndStop(2);
			}
			if (_root.firstthanator == false) {
				chal._visible = false;
			}
			onEnterFrame = function () {
				gold_txt.text = 'Pix: ' + _root.gold;
			};
			stop();
		}
		frame 9 {
			_root.notwalk = true;
			if (_root.firstghoulX == true) {
				ghoul_MC.gotoAndStop(2);
			}
			if (_root.firstthanatorX == true) {
				thanator_MC.gotoAndStop(2);
			}
			if (_root.firststalkerX == true) {
				stalker_MC.gotoAndStop(2);
			}
			if (_root.firstcarrionX == true) {
				carrion_MC.gotoAndStop(2);
			}
			if (_root.firstthanator == false) {
				chal._visible = false;
			}
			onEnterFrame = function () {
				gold_txt.text = 'Pix: ' + _root.gold;
			};
			stop();
		}
		frame 10 {
			_root.notwalk = true;
			if (_root.areascreen == 4) {
				mus = function () {
					m2.gotoAndPlay(2);
				};
			}
			if (_root.areascreen == 37) {
				mus = function () {
					m4.gotoAndPlay(2);
				};
			}
			setTimeout(mus, 100);
			stop();
		}
		frame 11 {
			_root.notwalk = true;
			onEnterFrame = function () {
				s1_txt.text = _root.shroom1;
				s2_txt.text = _root.shroom2;
				s3_txt.text = _root.shroom3;
				s4_txt.text = _root.shroom4;
				b1_txt.text = _root.butterfly1;
				b2_txt.text = _root.butterfly2;
				gold_txt.text = 'Pix: ' + _root.gold;
			};
			stop();
		}
		frame 12 {
			_root.notwalk = true;
			onEnterFrame = function () {
				s1_txt.text = _root.shroom1;
				s2_txt.text = _root.shroom2;
				s3_txt.text = _root.shroom3;
				s4_txt.text = _root.shroom4;
				b1_txt.text = _root.butterfly1;
				b2_txt.text = _root.butterfly2;
				gold_txt.text = 'Pix: ' + _root.gold;
			};
			stop();
		}
		frame 13 {
			_root.notwalk = true;
			onEnterFrame = function () {
				s1_txt.text = _root.shroom1;
				s2_txt.text = _root.shroom2;
				s3_txt.text = _root.shroom3;
				s4_txt.text = _root.shroom4;
				b1_txt.text = _root.butterfly1;
				b2_txt.text = _root.butterfly2;
				gold_txt.text = 'Pix: ' + _root.gold;
			};
			stop();
		}
		frame 14 {
			_root.notwalk = true;
			onEnterFrame = function () {
				gold_txt.text = 'Pix: ' + _root.gold;
			};
			stop();
		}
		frame 15 {
			Selection.setFocus('r_txt');
			stop();
		}
		frame 16 {
			_root.notwalk = true;
			sword_txt.text = _root.swordname;
			if (_root.questbrock == 9) {
				prices._visible = false;
				leave_BT._visible = false;
			}
			onEnterFrame = function () {
				gold_txt.text = 'Pix: ' + _root.gold;
				i = 1;
				while (i <= 5) {
					if (eval('_root.sword' + _root.sword + 'f') == i) {
						this['ef' + i].gotoAndStop(2);
					} else {
						this['ef' + i].gotoAndStop(1);
					}
					++i;
				}
			};
			stop();
		}
		frame 17 {
			_root.notwalk = true;
			stop();
		}
		frame 18 {
			_root.notwalk = true;
			stop();
		}
		frame 19 {
			_root.notwalk = true;
			stop();
		}
		frame 20 {
			_root.notwalk = true;
			stop();
		}
	}
	instance shop_MC of movieClip 7270	{
		onClipEvent (enterFrame) {
			if (_root.cinemacam == false) {
				this.destx = _root.player._x - 120;
				this.desty = _root.player._y - 50;
				var diffx = this.destx - this._x + 0;
				var diffy = this.desty - this._y + 0;
				if (_root.runningz == true && _root.forcenotrun == false && _root.areaname != 'World Map') {
					this._x += diffx * 0.2;
					this._y += diffy * 0.2;
				} else {
					this._x += diffx * 0.1;
					this._y += diffy * 0.1;
				}
			} else {
				this._x = _root.cam._x - 130;
				this._y = _root.cam._y - 62;
			}
		}
	}
	movieClip 7275	{
		frame 7 {
			if (_root.story != 260) {
				_root.gonext = true;
			}
		}
		frame 28 {
			_root.gonext = true;
		}
		frame 56 {
			stop();
		}
	}
	movieClip 7277	{
	}
	movieClip 7285	{
		frame 1 {
			stop();
		}
	}
	movieClip 7286	{
		frame 12 {
			stop();
		}
	}
	button 7289 {
		on (release) {
			if ((_root.story != 156 && (_root.shop_MC._currentframe == 1 or _root.shop_MC._currentframe == 19) or _root.currentpage != 1) && _root.gamepause == 0 && _root.gonext == true && _root.concoct_MC._currentframe == 1) {
				_root.doTextpage();
				_root.doActivatedText();
			}
		}
	}
	button 7291 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.choice = 2;
				_root.yesno = false;
				_root.doTextpage();
				_root.doActivatedText();
			}
		}
	}
	button 7293 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.choice = 1;
				_root.yesno = false;
				if (_root.story == 20) {
					_root.story = 21;
				}
				_root.doTextpage();
				_root.doActivatedText();
			}
		}
	}
	button 7295 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.help = true;
				_root.chathelp = false;
				_root.doTextpage();
				_root.doActivatedText();
			}
		}
	}
	button 7297 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.chat = true;
				_root.chathelp = false;
				_root.doTextpage();
				_root.doActivatedText();
			}
		}
	}
	button 7300 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.dialog = 2;
				_root.doTextpage();
				_root.doActivatedText();
			}
		}
	}
	button 7303 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.dialog = 1;
				_root.shop_MC.gotoAndStop(7);
				_root.doTextpage();
				_root.doActivatedText();
				if (_root.shopX == true) {
					_root.shopX = false;
				}
			}
		}
	}
	button 7305 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.choice = 2;
				_root.corecaleb = false;
				_root.doTextpage();
				_root.doActivatedText();
			}
		}
	}
	movieClip 7306	{
		frame 1 {
			this._width = _root.corename.length * 4.4 + 17;
		}
	}
	movieClip 7308	{
		frame 1 {
			this._width = _root.corename.length * 3.5 + 14;
		}
	}
	movieClip 7310	{
		frame 1 {
			namez.text = _root.corename;
		}
	}
	button 7311 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.choice = 1;
				_root.corecaleb = false;
				_root.doTextpage();
				_root.doActivatedText();
			}
		}
	}
	button 7313 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.choice = 2;
				_root.sleepchat = false;
				_root.doTextpage();
				_root.doActivatedText();
			}
		}
	}
	button 7314 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.choice = 1;
				_root.sleepchat = false;
				_root.doTextpage();
				_root.doActivatedText();
			}
		}
	}
	button 7316 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.choice = 2;
				_root.fishchat = false;
				_root.doTextpage();
				_root.doActivatedText();
			}
		}
	}
	button 7317 {
		on (release) {
			if (_root.gamepause == 0) {
				_root.choice = 1;
				_root.fishchat = false;
				_root.doTextpage();
				_root.doActivatedText();
			}
		}
	}
	movieClip 7318	{
	}
	movieClip 7322	{
	}
	movieClip 7324	{
	}
	movieClip 7326	{
	}
	movieClip 7328	{
	}
	movieClip 7332	{
	}
	movieClip 7333	{
	}
	movieClip 7336	{
	}
	movieClip 7338	{
	}
	movieClip 7340	{
	}
	movieClip 7342	{
	}
	movieClip 7343	{
		frame 1 {
			stop();
		}
	}
	movieClip 7344	{
		frame 1 {
			i = 1;
			while (i <= 50) {
				_root['page' + i] = '';
				++i;
			}
			_root.turns = 0;
			_root.turnsX = 0;
			_root.dialog = 1;
			_root.yesno = false;
			_root.yesnoX = false;
			_root.chathelp = false;
			_root.chathelpX = false;
			_root.practice = false;
			_root.corecaleb = false;
			_root.corecalebX = false;
			_root.sleepchat = false;
			_root.sleepchatX = false;
			_root.dirchat = false;
			_root.dirchatX = false;
			_root.fishchat = false;
			_root.fishchatX = false;
			_root.colorstill = false;
			_root.nobuttons = false;
			_root.choice = 0;
			_root.chat = false;
			_root.help = false;
			_root.currentpage = 1;
			_root.notstopwalking = false;
			_root.gonext = true;
			_root.texttimer = false;
			_root.itemname = '';
			_root.itempickup = false;
			_root.itempickup2 = false;
			_root.itempickup3 = false;
			_root.itemname = undefined;
			_root.concoct = false;
			stop();
		}
		frame 2 {
			stopfor = false;
			i = 1;
			while (i <= 50) {
				if (_root['page' + (i + 1)] == '' && stopfor == false) {
					_root.turns = i;
					stopfor = true;
				}
				++i;
			}
			clearInterval(_root.counttextID);
			_root.countertext = 0;
			_root.currentpage = 1;
			_root.turnsX = 0;
			embedSize = 12;
			txt.txtz.multiline = true;
			txt.txtz.wordWrap = true;
			txt.txtz.autoSize = true;
			txt.txtz._height = embedSize;
			txt.txtz.text = _root.page1;
			bg.bgX.gotoAndStop(txt.txtz.maxscroll);
			txt.txtz.text = '';
			if ((_root.page1 == '' or _root.page1 == undefined) && _root.currentpage == 1) {
				gotoAndPlay(11);
			}
			clearInterval(_root.counttextID);
			if ((_root.itempickup == false or _root.itemname == 'Shovel') && _root.notstopwalking == false && _root.cinematic == false && _root.shovelitem == false or (_root.itempickup2 == true or _root.itempickup3 == true)) {
				if (_root.story != 1) {
					_root.notwalk = true;
					_root.doStopWalking();
				}
				_root.shovelitem = false;
			} else {
				_root.notwalk = false;
				clearInterval(_root.counttextID);
				_root.countertext = 0;
			}
		}
		frame 5 {
			txt.Mask_MC.gotoAndPlay(1);
			embedSize = 12;
			txt.txtz.multiline = true;
			txt.txtz.wordWrap = true;
			txt.txtz.autoSize = true;
			txt.txtz._height = embedSize;
			_root.gonext = false;
			if (_root.story == 156 && (_root.currentpage == 1 or _root.currentpage == 2) or _root.nobuttons == true) {
				Buttons._visible = false;
			} else {
				Buttons._visible = true;
			}
			clearInterval(_root.counttextID);
			if ((_root.itempickup == false or _root.itemname == 'Shovel') && _root.notstopwalking == false && _root.cinematic == false && _root.shovelitem == false or (_root.itempickup2 == true or _root.itempickup3 == true)) {
				if (_root.story != 1) {
					_root.notwalk = true;
					_root.doStopWalking();
				}
				_root.shovelitem = false;
			} else {
				_root.notwalk = false;
				clearInterval(_root.counttextID);
				_root.countertext = 0;
			}
			++_root.turnsX;
			if (_root.currentpage == _root.turnsX) {
				txt.txtz.text = eval('_root.page' + _root.turnsX);
				_root.portraitX = (eval('_root.page' + _root.turnsX)).split(':', 2);
				if (txt.txtz.maxscroll >= 5) {
					txt.txtz.text = 'ERROR! Page ' + _root.turnsX + ' text is too long!' + '\n' + 'Please report to Douglas, the creator of this game. Email gavelin989@hotmail.com';
				} else {
					if (txt.txtz.text == 'ALT') {
						txt.txtz.text = 'ERROR! Page ' + _root.turnsX + ' is empty!' + '\n' + 'Please report to Douglas, the creator of this game. Email gavelin989@hotmail.com';
					}
				}
			}
			if (_root.currentpage == 1) {
				if (_root.concoct == true) {
					txt.txtz.setTextFormat(11, _root.itemname.length + 12, _root.namecolorobject);
				} else {
					if (_root.itempickup2 == false && (_root.itempickup == true or _root.colorstill == true)) {
						txt.txtz.setTextFormat(6, _root.itemname.length + 7, _root.namecolorobject);
					} else {
						if (_root.itempickup2 == true) {
							txt.txtz.setTextFormat(10, _root.itemname.length + 11, _root.namecolorobject);
						} else {
							if (_root.itempickup3 == true) {
								txt.txtz.setTextFormat(9, _root.itemname.length + 10, _root.namecolorobject);
							}
						}
					}
				}
			}
			if (_root.portraitX[0] == 'Roy') {
				portrait_MC.gotoAndStop(2);
				txt.txtz.text = _root.corename + ':' + _root.portraitX[1];
			} else {
				if (_root.portraitX[0] == 'Caleb') {
					portrait_MC.gotoAndStop(3);
				} else {
					if (_root.portraitX[0] == 'Argas') {
						portrait_MC.gotoAndStop(4);
					} else {
						if (_root.portraitX[0] == 'Douglas') {
							portrait_MC.gotoAndStop(5);
						} else {
							if (_root.portraitX[0] == 'Brock') {
								portrait_MC.gotoAndStop(6);
							} else {
								if (_root.portraitX[0] == 'Dion') {
									portrait_MC.gotoAndStop(7);
								} else {
									if (_root.portraitX[0] == 'Golden Demon' or _root.portraitX[0] == 'Sorathis' or _root.portraitX[0] == 'Sinmorath') {
										portrait_MC.gotoAndStop(8);
									} else {
										if (_root.portraitX[0] == 'Agga') {
											portrait_MC.gotoAndStop(9);
										} else {
											if (_root.portraitX[0] == 'Luvannon') {
												portrait_MC.gotoAndStop(10);
											} else {
												if (_root.portraitX[0] == 'Darcon') {
													portrait_MC.gotoAndStop(11);
												} else {
													portrait_MC.gotoAndStop(1);
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
			if (portrait_MC._currentframe == 1) {
				_root.text_MC.textz._x = -10;
				Buttons._x = 75;
			} else {
				_root.text_MC.textz._x = 5;
				Buttons._x = 60;
			}
			txt.txtz.setTextFormat(0, txt.txtz.text.indexOf(':'), _root.namecolorobject);
			rewardcolorobjectval = txt.txtz.text.indexOf('*');
			if (rewardcolorobjectval != -1) {
				txt.txtz.setTextFormat(rewardcolorobjectval, txt.txtz.length, _root.rewardcolorobject);
			}
			bookyel1 = txt.txtz.text.indexOf('-');
			bookyel2 = txt.txtz.text.indexOf('-', 2);
			if (bookyel1 == 0 && bookyel2 != -1 && (_root.currentpage == 1 or _root.currentpage == 3)) {
				txt.txtz.setTextFormat(1, bookyel2, _root.namecolorobject);
			}
			bg.bgX.gotoAndStop(txt.txtz.maxscroll);
			Buttons._y = (txt.txtz.maxscroll - 1) * 10 + 8.5;
			if (_root.yesno == false && _root.chathelp == false && _root.practice == false && _root.corecaleb == false && _root.sleepchat == false && _root.dirchat == false && _root.fishchat == false) {
				Buttons.next_BT._visible = true;
			} else {
				Buttons.next_BT._visible = false;
			}
			if (_root.chathelp == true) {
				Buttons.chat_BT._visible = true;
				Buttons.help_BT._visible = true;
				_root.chathelpX = true;
			} else {
				Buttons.chat_BT._visible = false;
				Buttons.help_BT._visible = false;
				_root.chathelpX = false;
			}
			if (_root.yesno == true) {
				Buttons.no_BT._visible = true;
				Buttons.yes_BT._visible = true;
				_root.yesnoX = true;
			} else {
				Buttons.no_BT._visible = false;
				Buttons.yes_BT._visible = false;
				_root.yesnoX = false;
			}
			if (_root.practice == true) {
				Buttons.practice_BT._visible = true;
				Buttons.qpractice_BT._visible = true;
			} else {
				Buttons.practice_BT._visible = false;
				Buttons.qpractice_BT._visible = false;
			}
			if (_root.corecaleb == true) {
				Buttons.caleb_BT._visible = true;
				Buttons.core_BT._visible = true;
				_root.corecalebX = true;
			} else {
				Buttons.caleb_BT._visible = false;
				Buttons.core_BT._visible = false;
				_root.corecalebX = true;
			}
			if (_root.sleepchat == true) {
				Buttons.chat3_BT._visible = true;
				Buttons.sleep_BT._visible = true;
				_root.sleepchatX = true;
			} else {
				Buttons.chat3_BT._visible = false;
				Buttons.sleep_BT._visible = false;
				_root.sleepchatX = false;
			}
			if (_root.dirchat == true) {
				Buttons.directions_BT._visible = true;
				Buttons.chat2_BT._visible = true;
				_root.dirchatX = true;
			} else {
				Buttons.directions_BT._visible = false;
				Buttons.chat2_BT._visible = false;
				_root.dirchatX = false;
			}
			if (_root.fishchatX == true) {
				_root.fishchat = false;
				_root.fishchatX = false;
			}
			if (_root.fishchat == true) {
				Buttons.fish_BT._visible = true;
				Buttons.chat4_BT._visible = true;
				_root.fishchatX = true;
			} else {
				Buttons.fish_BT._visible = false;
				Buttons.chat4_BT._visible = false;
				_root.fishchatX = false;
			}
		}
		frame 6 {
			if (_root.texttimer == true or _root.notstopwalking == true or _root.shovelitem == true or _root.itempickup == true && _root.itemname != 'Shovel') {
				clearInterval(_root.counttextID);
				_root.countertext = 0;
				_root.counttextID = setInterval(_root.doCountertext, 1000);
			}
			_root.playtear = false;
			_root.itempickup = false;
			_root.itempickup2 = false;
			_root.itempickup3 = false;
			_root.shovelitem = false;
			_root.concoct = false;
			_root.nobuttons = false;
			stop();
		}
		frame 7 {
			clearInterval(_root.counttextID);
			_root.countertext = 0;
			_root.endz = false;
			if (_root.shop_MC._currentframe == 1) {
				_root.notwalk = false;
			}
		}
		frame 13 {
			clearInterval(_root.counttextID);
			_root.countertext = 0;
			txt.txtz.text = '';
		}
	}
	movieClip 7345	{
	}
	instance text_MC of movieClip 7345	{
		onClipEvent (enterFrame) {
			if (_root.cinemacam == false) {
				this.destx = _root.player._x - 56;
				this.desty = _root.player._y - 65;
				var diffx = this.destx - this._x + 0;
				var diffy = this.desty - this._y + 0;
				if (_root.runningz == true && _root.forcenotrun == false && _root.areaname != 'World Map') {
					this._x += diffx * 0.2;
					this._y += diffy * 0.2;
				} else {
					this._x += diffx * 0.1;
					this._y += diffy * 0.1;
				}
			} else {
				this._x = _root.cam._x - 66;
				this._y = _root.cam._y - 95;
			}
		}
	}
	movieClip 7350	{
		frame 1 {
			stop();
		}
		frame 5 {
			_root.walkload = false;
		}
		frame 16 {
			_root.afterBlack();
			gotoAndStop(1);
		}
		frame 18 {
			_root.globalvolume.setVolume(0);
			if (_root.story == 144) {
				_root.Scenez.caleb._visible = true;
				_root.Scenez.caleb._x = -150;
				_root.Scenez.caleb._y = -190;
				_root.Scenez.caleb.gotoAndStop(5);
				_root.doCinematic();
			}
		}
		frame 62 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 4);
		}
		frame 67 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 3);
		}
		frame 72 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 2);
			_root.walkload = false;
		}
		frame 77 {
			_root.globalvolume.setVolume(_root.volumez - _root.volumez / 5);
		}
		frame 85 {
			_root.globalvolume.setVolume(_root.volumez);
		}
		frame 91 {
			if (_root.story == 144) {
				_root.mainquest = 'I am trying to get to know people in Savina by asking if they need help with anything.';
				_root.page1 = 'Roy: I couldn\'t sleep tonight, at all. Are you any wiser about what happened yesterday?';
				if (_root.completedquests < 5) {
					_root.page2 = 'Caleb: There are too many questions that I have no answers for. This is above my knowledge.\rFor the time being we should talk to the people of Savina, maybe earn some money by helping people.';
					_root.page3 = 'Talk to people, earn money by helping those who need help.';
				} else {
					_root.page2 = 'Caleb: There are too many questions that I have no answers for. This is above my knowledge. We should visit the market today and think about this at another time.';
				}
				_root.doStartText();
				_root.story = 145;
			}
			_root.afterBlack();
			gotoAndStop(1);
		}
		frame 93 {
			_root.globalvolume.setVolume(0);
		}
		frame 193 {
			if (_root.questdrunk == 3) {
				_root.Scenez.playerP1.gotoAndStop(21);
				_root.Scenez.playerP2.gotoAndStop(21);
			}
			_root.walkload = false;
		}
		frame 212 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 4);
		}
		frame 217 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 3);
		}
		frame 222 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 2);
		}
		frame 227 {
			_root.globalvolume.setVolume(_root.volumez - _root.volumez / 5);
		}
		frame 233 {
			_root.globalvolume.setVolume(_root.volumez);
		}
		frame 239 {
			if (_root.story == 270) {
				_root.page1 = 'Roy: Where am I now? In Bavelock?';
				_root.page2 = 'Roy: How did I even get here? What is this...\rAm I losing my mind?';
				_root.page3 = 'ALT';
				_root.doStartText();
				_root.fame += 5;
			}
			_root.afterBlack();
			gotoAndStop(1);
		}
		frame 245 {
			_root.walkload = false;
		}
		frame 312 {
			gotoAndStop(1);
		}
	}
	instance cam of movieClip 2278	{
		onClipEvent (enterFrame) {
			if (_root.cinemacam == false) {
				this.destx = _root.player._x + 10;
				this.desty = _root.player._y + 30;
			} else {
				this.destx = _root.camXpoint + 10;
				this.desty = _root.camYpoint + 30;
			}
			var diffx = this.destx - this._x + 0;
			var diffy = this.desty - this._y + 0;
			if (_root.runningz == true && _root.forcenotrun == false && _root.cinemacam == false && _root.areaname != 'World Map') {
				this._x += diffx * 0.2;
				this._y += diffy * 0.2;
			} else {
				this._x += diffx * 0.1;
				this._y += diffy * 0.1;
			}
		}
	}
	movieClip 7351	{
		frame 1 {
			stop();
		}
		frame 11 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 4);
		}
		frame 20 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 3);
		}
		frame 30 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 2);
		}
		frame 44 {
			_root.globalvolume.setVolume(_root.volumez - _root.volumez / 5);
		}
		frame 65 {
			_root.globalvolume.setVolume(_root.volumez);
		}
	}
	movieClip 7354	{
		frame 1 {
			var fmt = med.getTextFormat();
			med.setNewTextFormat(fmt);
			it = 'item!';
			if (_root.customitem.indexOf('and') > 0) {
				it = 'items!';
			}
			if (_root.othermedal == true) {
				med.text = _root.medaltext;
			} else {
				med.text = 'You got the ' + _root.medaltext1 + _root.medaltext2 + _root.medaltext3 + ' medal!' + '\n' + 'You earn the ' + _root.customitem + ' ' + it;
			}
		}
	}
	movieClip 7357	{
		frame 1 {
			_root.medaltext1 = '';
			_root.medaltext2 = '';
			_root.medaltext3 = '';
			_root.newmedals = 0;
			_root.othermedal = false;
			stop();
		}
		frame 4 {
			if (_root.sfxmute == false) {
				_root.enmsound4.attachSound('defendcaster');
				_root.enmsound4.start();
			}
		}
		frame 33 {
			_root.newmedals = 0;
		}
	}
	instance medal_MC of movieClip 7357	{
		onClipEvent (enterFrame) {
			if (_root.cinemacam == false) {
				this.destx = _root.player._x - 230;
				this.desty = _root.player._y + 50;
				var diffx = this.destx - this._x + 0;
				var diffy = this.desty - this._y + 0;
				if (_root.runningz == true && _root.areaname != 'World Map') {
					this._x += diffx * 0.2;
					this._y += diffy * 0.2;
				} else {
					this._x += diffx * 0.1;
					this._y += diffy * 0.1;
				}
			} else {
				this._x = _root.cam._x - 226;
				this._y = _root.cam._y - 19;
			}
		}
	}
	instance pause_MC of movieClip 355	{
		onClipEvent (enterFrame) {
			if (_root.cinemacam == false) {
				if (_root.options_MC._currentframe == 1) {
					this.destx = _root.player._x - 35;
					this.desty = _root.player._y + 20;
				} else {
					this.destx = _root.player._x - 35;
					this.desty = _root.player._y - 55;
				}
				var diffx = this.destx - this._x + 0;
				var diffy = this.desty - this._y + 0;
				if (_root.runningz == true && _root.forcenotrun == false && _root.areaname != 'World Map') {
					this._x += diffx * 0.2;
					this._y += diffy * 0.2;
				} else {
					this._x += diffx * 0.1;
					this._y += diffy * 0.1;
				}
			} else {
				if (_root.options_MC._currentframe == 1) {
					this._x = _root.cam._x - 43;
					this._y = _root.cam._y;
				} else {
					this._x = _root.cam._x - 43;
					this._y = _root.cam._y - 85;
				}
			}
		}
	}
	instance options_MC of movieClip 435	{
		onClipEvent (enterFrame) {
			if (_root.cinemacam == false) {
				this.destx = _root.player._x - 85;
				this.desty = _root.player._y - 35;
				var diffx = this.destx - this._x + 0;
				var diffy = this.desty - this._y + 0;
				if (_root.runningz == true && _root.forcenotrun == false && _root.areaname != 'World Map') {
					this._x += diffx * 0.2;
					this._y += diffy * 0.2;
				} else {
					this._x += diffx * 0.1;
					this._y += diffy * 0.1;
				}
			} else {
				this._x = _root.cam._x - 96;
				this._y = _root.cam._y - 64;
			}
		}
	}
	frame 164 {
		gotoAndPlay('GameScene');
	}
	frame 165 {
		if (story < 260 or story >= 270) {
			gotoAndStop('GameScene');
		}
	}
	frame 192 {
		gotoAndPlay('GameSceneX');
	}
	frame 193 {
		doCounterHeal = function () {
			++counterHeal;
			if (character == 1 && counterHeal >= 1 && corehealth < coremaxhealth) {
				healX += Math.round(coremagicdamage / 3);
				if (healX > coremaxhealth - corehealth) {
					healX = 0;
				}
				corehealth += healX;
				doRedBG();
				healXX += healX;
				healZ.hl.heal_txt.text = healXX;
				coremana -= Math.round(1 + coremagicdamage / 3);
				counterHeal = 0;
			}
			if (character == 2 && counterHeal >= 1 && calebhealth < calebmaxhealth) {
				healX += Math.round(calebmagicdamage / 3);
				if (healX > calebmaxhealth - calebhealth) {
					healX = 0;
				}
				calebhealth += healX;
				doRedBG();
				healXX += healX;
				healZ.hl.heal_txt.text = healXX;
				calebmana -= Math.round(1 + calebmagicdamage / 3);
				counterHeal = 0;
			}
		};
		doEndHeal = function () {
			clearInterval(countHealID);
			heal = false;
			healX = 0;
			healXX = 0;
		};
		docoreCounterSlow = function () {
			if (gamepause == 0) {
				++coreslowcount;
				if (coreslowcount >= coreslowcountX) {
					coreslow = false;
					coreregstamina += coreregstaminaslowX;
					coreslowcount = 0;
					clearInterval(corecountSlowID);
				} else {
					if (enemyhealth <= 0) {
						coreslow = false;
						coreregstamina += coreregstaminaslowX;
						coreslowcount = 0;
						clearInterval(corecountSlowID);
					}
				}
			}
		};
		docalebCounterSlow = function () {
			if (gamepause == 0) {
				++calebslowcount;
				if (calebslowcount >= calebslowcountX) {
					calebslow = false;
					calebregstamina += calebregstaminaslowX;
					calebslowcount = 0;
					clearInterval(calebcountSlowID);
				} else {
					if (enemyhealth <= 0) {
						calebslow = false;
						calebregstamina += calebregstaminaslowX;
						calebslowcount = 0;
						clearInterval(calebcountSlowID);
					}
				}
			}
		};
		doCounterCorePoison = function () {
			if (gamepause == 0 && corehealth > 0) {
				++poisoncorecount;
				if (corehealth > 1 && godmode == false) {
					--corehealth;
					doRedBG();
				}
				if (poisoncorecount >= poisoncorecountX or enemyhealth <= 0) {
					corepoison = false;
					poisoncorecount = 0;
					clearInterval(countCorePoisonID);
				}
			}
		};
		doCounterCalebPoison = function () {
			if (gamepause == 0 && calebhealth > 0) {
				++poisoncalebcount;
				if (calebhealth > 1 && godmode == false) {
					--calebhealth;
					doRedBG();
				}
				if (poisoncalebcount >= poisoncalebcountX or enemyhealth <= 0) {
					calebpoison = false;
					poisoncalebcount = 0;
					clearInterval(countCalebPoisonID);
				}
			}
		};
		doCounterEye = function () {
			if (gamepause == 0) {
				++counter11;
				if (counter11 >= 20) {
					eye_light.play();
					thirdeye = false;
					counter11 = 0;
					clearInterval(countEyeID);
				} else {
					if (enemyhealth <= 0) {
						eye_light.play();
						thirdeye = false;
						counter11 = 0;
						clearInterval(countEyeID);
					} else {
						if (character != 2) {
							eye_light.play();
							thirdeye = false;
							counter11 = 0;
							clearInterval(countEyeID);
						}
					}
				}
			}
		};
		doCounterMeta = function () {
			if (gamepause == 0) {
				++counter10;
				if (counter10 >= 40 && char_MC.charX.Caleb._currentframe == 1) {
					char_MC.charX.Caleb.gotoAndPlay('chaosend');
					counter10 = 0;
					sound4.attachSound('empty');
					sound4.start();
					clearInterval(countMetaID);
				}
			}
		};
		doCounterChaos = function () {
			if (gamepause == 0) {
				++counterChaos;
				if (counterChaos >= calebmagicdamage * 2 + 10 && char_MC.charX.Caleb._currentframe == 1) {
					counterChaos = 0;
					calebchaos = false;
					if (chaos == false) {
						char_MC.charX.Caleb.gotoAndPlay('chaozend');
					}
					action = 'Caleb\'s\rChaos spell ended';
					actiontext();
					clearInterval(countChaosID);
				}
			}
		};
		doCounterDem = function () {
			if (gamepause == 0) {
				++counterDem;
				if (counterDem >= calebmagicdamage + 10) {
					counterDem = 0;
					dementia = false;
					clearInterval(countDemID);
				}
			}
		};
		doCounterBerserk = function () {
			if (gamepause == 0) {
				++counterBerserk;
				if (counterBerserk >= 20) {
					counterBerserk = 0;
					coreberserk = false;
					action = corename + '\'s' + '\n' + 'Berserk mode ended';
					actiontext();
					clearInterval(countBerserkID);
				}
			}
		};
		doCounterCoreConfusion = function () {
			if (gamepause == 0) {
				++counterCoreConfusion;
				if (counterCoreConfusion >= 25) {
					counterCoreConfusion = 0;
					coreconfuse = false;
					corecon = false;
					action = corename + '\'s ' + '\n' + 'Confusion ended';
					actiontext();
					clearInterval(countCoreConfusionID);
				}
			}
		};
		doCounterCalebConfusion = function () {
			if (gamepause == 0) {
				++counterCalebConfusion;
				if (counterCalebConfusion >= 25) {
					counterCalebConfusion = 0;
					calebconfuse = false;
					calebcon = false;
					action = 'Caleb\'s\rConfusion ended';
					actiontext();
					clearInterval(countCalebConfusionID);
				}
			}
		};
		doCounterStun = function () {
			if (gamepause == 0) {
				if (stun == true && stuncountX > 0) {
					++stuncount;
					if (stuncount >= stuncountX && battleend == false && stopz == false) {
						clearInterval(countStunID);
						stun = false;
						enemy_MC.enemiez.enemy.mc.gotoAndPlay(1);
						stuncountX = 0;
						stuncount = 0;
					}
				}
			}
		};
		doCounterSlow = function () {
			if (gamepause == 0) {
				++slowcount;
				if (slowcount >= slowcountX) {
					slow = false;
					regstamina += regstaminaslowX;
					slowcount = 0;
					clearInterval(countSlowID);
				} else {
					if (enemyhealth <= 0) {
						slow = false;
						regstamina += regstaminaslowX;
						slowcount = 0;
						clearInterval(countSlowID);
					}
				}
			}
		};
		doCounterWeakness = function () {
			if (gamepause == 0) {
				if (weakness == true && weaknesscountX > 0) {
					++weaknesscount;
					if (weaknesscount >= weaknesscountX && battleend == false) {
						clearInterval(countWeaknessID);
						weakness = false;
						enemy_MC.enemiez.enemy.mc.gotoAndPlay(1);
						weaknesscountX = 0;
						weaknesscount = 0;
					}
				}
			}
		};
		music.stop();
		count4ID = setInterval(doCounter4, 100);
		count5ID = setInterval(doCounter5, 100);
		doEnmstyle = function () {
			enmstyle1 = random(3) + 1;
			enmstyle2 = random(3) + 1;
			enmstyle3 = random(3) + 1;
			enmstyle4 = random(3) + 1;
			enmstyle5 = random(3) + 1;
			enmstyle6 = random(3) + 1;
			enemyname = 'Bandit';
			if ('Bandit') {
				enmstyle1 = random(5) + 1;
				enmstyle2 = random(5) + 1;
				enmstyle3 = random(5) + 1;
				enmstyle4 = random(5) + 1;
				enmstyle5 = random(5) + 1;
				enmstyle6 = random(5) + 1;
			}
			enm1tintrb = random(30) - 15;
			enm1tintgb = random(30) - 15;
			enm1tintbb = random(30) - 15;
			enm2tintrb = random(30) - 15;
			enm2tintgb = random(30) - 15;
			enm2tintbb = random(30) - 15;
			enm3tintrb = random(30) - 15;
			enm3tintgb = random(30) - 15;
			enm3tintbb = random(30) - 15;
			enm4tintrb = random(30) - 15;
			enm4tintgb = random(30) - 15;
			enm4tintbb = random(30) - 15;
			enm5tintrb = random(30) - 15;
			enm5tintgb = random(30) - 15;
			enm5tintbb = random(30) - 15;
			chance = random(3);
			if (chance == 1) {
				enm1tintrb = random(40) - 20;
				enm1tintgb = random(40) - 20;
				enm1tintbb = random(40) - 20;
				enm2tintrb = random(40) - 20;
				enm2tintgb = random(40) - 20;
				enm2tintbb = random(40) - 20;
				enm3tintrb = random(40) - 20;
				enm3tintgb = random(40) - 20;
				enm3tintbb = random(40) - 20;
				enm4tintrb = random(40) - 20;
				enm4tintgb = random(40) - 20;
				enm4tintbb = random(40) - 20;
				enm5tintrb = random(40) - 20;
				enm5tintgb = random(40) - 20;
				enm5tintbb = random(40) - 20;
			}
		};
		doEnmstyletint = function () {
			enm1tintrb = 0;
			enm1tintgb = 0;
			enm1tintbb = 0;
			enm2tintrb = 0;
			enm2tintgb = 0;
			enm2tintbb = 0;
			enm3tintrb = 0;
			enm3tintgb = 0;
			enm3tintbb = 0;
			enm4tintrb = 0;
			enm4tintgb = 0;
			enm4tintbb = 0;
			enm5tintrb = 0;
			enm5tintgb = 0;
			enm5tintbb = 0;
		};
		if (story == 51) {
			enmstyle1 = 3;
			enmstyle2 = 3;
			enmstyle3 = 3;
			enmstyle4 = 3;
			enmstyle5 = 3;
			enmstyle6 = 3;
			doEnmstyletint();
		} else {
			if (story == 340) {
				enmstyle1 = 3;
				enmstyle2 = 3;
				enmstyle3 = 3;
				enmstyle4 = 3;
				enmstyle5 = 3;
				enmstyle6 = 3;
				doEnmstyletint();
			} else {
				if (questdrunk == 5) {
					enmstyle1 = 4;
					enmstyle2 = 4;
					enmstyle3 = 4;
					enmstyle4 = 4;
					enmstyle5 = 4;
					enmstyle6 = 4;
					doEnmstyletint();
				} else {
					if (questkidnap == 3) {
						enmstyle1 = 2;
						enmstyle2 = 2;
						enmstyle3 = 2;
						enmstyle4 = 2;
						enmstyle5 = 2;
						enmstyle6 = 2;
						doEnmstyletint();
					} else {
						doEnmstyle();
					}
				}
			}
		}
		if (asleep == undefined) {
			asleep = false;
		}
		if (hudvisible == false) {
			bhud.limitbar_MC.txtlimit._visible = false;
			bhud.enemybarz.enemylimitbarz.txtlimit._visible = false;
			bhud.enemybarz.txtstamina._visible = false;
			bhud.enmmanatxt.txtmana._visible = false;
			bhud.manatxt.txtmana._visible = false;
			bhud.txtvisible._visible = false;
		}
		if (challenge == true) {
			summon = true;
			twomonsters = 1;
			schoice = 1;
		}
		if (areabg != 5) {
			bhud.battlelight._visible = false;
		}
		_quality = battlequality;
		BTone = false;
		BToneX = false;
		BTtwo = false;
		BTtwoX = false;
		BTthree = false;
		BTthreeX = false;
		BToneMenu = false;
		BTtwoMenu = false;
		BTthreeMenu = false;
		BT1 = false;
		BT2 = false;
		BT3 = false;
		BT4 = false;
		BT5 = false;
		BT6 = false;
		if (character == 1) {
			currenteffect = this['sword' + sword + 'f'];
		}
		coremagic1info = 'Heals ' + corename + ' under a short period of time.';
		coremagic1mana = Math.round(1 + coremagicdamage / 3) * 4;
		gotoBattlescreen = function () {
			if (giant == true) {
				gotoAndStop('giant');
			} else {
				if (chaos == false) {
					gotoAndStop('battle');
				} else {
					gotoAndStop('chaosB');
				}
			}
		};
		summon_finished = false;
		challenge_finished = false;
		battlestart = true;
		battleend = false;
		willpause = false;
		stopz = false;
		goto2 = false;
		goto3 = false;
		coregotstat = false;
		calebgotstat = false;
		enmdodgeX = false;
		dodgeattack = false;
		permcolor = false;
		enmpermcolor = false;
		armorpierce = false;
		enmarmorpierce = false;
		suddendeath = false;
		magic = false;
		blind = false;
		fullstamina = false;
		powerattack = false;
		realtimeevent = false;
		luckyhit = false;
		canheal = false;
		quakez = 0;
		quakecount = 120;
		goldX = 0;
		goldZ = 0;
		stolengold = 0;
		spikeson = 3;
		stolen = false;
		lightdamage = false;
		magicchance = 0;
		counterCoreConfusion = 0;
		counterCalebConfusion = 0;
		poisoncorecount = 0;
		poisoncalebcount = 0;
		hits = 0;
		damage = 0;
		coredamage = 0;
		calebdamage = 0;
		addamage = 0;
		onemore = false;
		coredamagetaken = 0;
		calebdamagetaken = 0;
		pulse = false;
		slow = false;
		stun = false;
		imbalance = false;
		weakness = false;
		dementia = false;
		coreberserk = false;
		corestun = false;
		coreslow = false;
		corepoison = false;
		coreconfuse = false;
		coreblind = false;
		calebstun = false;
		calebslow = false;
		calebpoison = false;
		calebchaos = false;
		calebconfuse = false;
		calebblind = false;
		multiattack = false;
		currenthits = 0;
		chaos = false;
		thirdeye = false;
		corecon = false;
		calebcon = false;
		enmlimit = 0;
		enmmagic = false;
		battlecounterZ = false;
		countertext2 = 0;
		coremagicdamageXX = 0;
		coremagicdefenseXX = 0;
		coredefenseXX = 0;
		corestrengthXX = 0;
		coreagilityXX = 0;
		coreluckXX = 0;
		calebmagicdamageXX = 0;
		calebmagicdefenseXX = 0;
		calebdefenseXX = 0;
		calebstrengthXX = 0;
		calebagilityXX = 0;
		calebluckXX = 0;
		healX = 0;
		healXX = 0;
		attacking = false;
		enmattacking = false;
		enmlimitbreak = false;
		firstcameraX = false;
		tryparalyze = false;
		tryslow = false;
		tryimbalance = false;
		tryweakness = false;
		gamepause = 0;
		candodge = false;
		firemark = false;
		dodge = false;
		dodgeattack = false;
		battlecounter = false;
		battlecounterX = false;
		menuXZ = false;
		if (summon == false) {
			thanatordark = 3;
		} else {
			thanatordark = 1;
		}
		hurt = false;
		heal = false;
		sight = false;
		blind_MC._visible = true;
		bhud.shieldbar_MC._visible = false;
		bhud.enemybarz._visible = false;
		enmshieldon = false;
		if (corenumoflimits == 0) {
			bhud.limitbar_MC._visible = false;
			bhud.menuz.limit_BT._visible = false;
		}
		if (gotfirstpotion == false && gotfirstelixir == false && gotfirstether == false && gotfirstremedy == false && gotfirstlimit == false or summon == true or challenge == true) {
			bhud.menuz.item_BT._visible = false;
			bhud.menuz.item_BT._y = 500;
		}
		if (corenumofmagics == 0) {
			bhud.menuz.magic_BT._visible = false;
			bhud.menuz.magic_BT._y = 500;
			bhud.manabarz._visible = false;
			bhud.manatxt._visible = false;
		}
		if (currenteffect == 5) {
			coreattackstamina = 80;
		} else {
			coreattackstamina = 85;
		}
		calebattackstamina = 80;
		chance = 0;
		maxenmstamina = 200;
		if (tutz == 1) {
			corestamina = 90;
		} else {
			if (character == 1) {
				corestamina = 20;
			} else {
				corestamina = 0;
			}
		}
		coremaxstamina = 200;
		if (character == 2) {
			calebstamina = 20;
		} else {
			calebstamina = 0;
		}
		calebmaxstamina = 200;
		counter4 = 0;
		counter5 = 0;
		counter10 = 0;
		counter11 = 0;
		counterChaos = 0;
		counterHeal = 0;
		counterBerserk = 0;
		actiontext = function () {
			bhud.text_MC.txt.txtX.a_txt.text = action;
			bhud.text_MC.txt.gotoAndPlay(1);
		};
		doClearID = function () {
			clearInterval(count4ID);
			clearInterval(count5ID);
			clearInterval(count6ID);
		};
		doClearXX = function () {
			coremagicdamageXX = 0;
			coredefenseXX = 0;
			coremagicdefenseXX = 0;
			corestrengthXX = 0;
			coreagilityXX = 0;
			coreluckXX = 0;
			calebmagicdamageXX = 0;
			calebdefenseXX = 0;
			calebmagicdefenseXX = 0;
			calebstrengthXX = 0;
			calebagilityXX = 0;
			calebluckXX = 0;
			coregotstat = false;
			calebgotstat = false;
		};
		doparalyze = function () {
			chance = Math.round(Math.random() * magicchance);
			if (thunderdefense > 0) {
				if (chance == magicchance && enemyhealth > 0 && enmattacking == false && stun == false) {
					countStunID = setInterval(doCounterStun, 1000);
					stun = true;
					stuncount = 0;
					enmstat.stat.stattxt.text = 'Paralyzed';
					enmstat.gotoAndPlay(2);
				}
			} else {
				if (magic == true) {
					enmstat.stat.stattxt.text = 'Immune';
					enmstat.gotoAndPlay(2);
				}
			}
		};
		doPoison = function () {
			if (character == 1 && corehealth > 0) {
				docorepoison();
			} else {
				if (character == 2 && calebhealth > 0) {
					docalebpoison();
				}
			}
		};
		doslow = function () {
			chance = random(100);
			if (chance <= magicchance && enemyhealth > 0 && slow == false && stun == false) {
				countSlowID = setInterval(doCounterSlow, 1000);
				slow = true;
				slowcount = 0;
				regstaminaslowX = regstamina / 3;
				regstamina -= regstaminaslowX;
				enmstat.stat.stattxt.text = 'Slowed';
				enmstat.gotoAndPlay(2);
			}
		};
		doimbalance = function () {
			chance = random(100);
			if (chance <= magicchance && enemyhealth > 0 && imbalance == false) {
				imbalance = true;
				enmstat.stat.stattxt.text = 'Imbalanced';
				enmstat.gotoAndPlay(2);
			}
		};
		doweakness = function () {
			chance = Math.round(Math.random() * 100);
			if (chance <= magicchance && enemyhealth > 0 && weakness == false) {
				countWeaknessID = setInterval(doCounterWeakness, 1000);
				weakness = true;
				weaknesscount = 0;
				enmstat.stat.stattxt.text = 'Weakness';
				enmstat.gotoAndPlay(2);
			}
		};
		docorepoison = function () {
			chance = Math.round(Math.random() * magicchance);
			if (chance == magicchance && corehealth > 0) {
				poisoncorecount = 0;
				if (corepoison == false) {
					poison_MC.gotoAndPlay(2);
					poisoncorecountX = poisoncountX;
					corepoison = true;
					countCorePoisonID = setInterval(doCounterCorePoison, 500);
					stat1.stat.stattxt.text = 'Poisoned';
					stat1.gotoAndPlay(2);
				}
			}
		};
		docalebpoison = function () {
			chance = Math.round(Math.random() * magicchance);
			if (chance == magicchance && calebhealth > 0) {
				poisoncalebcount = 0;
				if (calebpoison == false) {
					poison_MC.gotoAndPlay(2);
					poisoncalebcountX = poisoncountX;
					calebpoison = true;
					countCalebPoisonID = setInterval(doCounterCalebPoison, 500);
					stat1.stat.stattxt.text = 'Poisoned';
					stat1.gotoAndPlay(2);
				}
			}
		};
		docoreslow = function () {
			chance = Math.round(Math.random() * magicchance);
			if (chance == magicchance && corehealth > 0 && coreslow == false) {
				corecountSlowID = setInterval(docoreCounterSlow, 1000);
				coreslow = true;
				coreslowcount = 0;
				coreslowcountX = countX;
				coreregstaminaslowX = coreregstamina / 2;
				coreregstamina -= coreregstaminaslowX;
				stat1.stat.stattxt.text = 'Slowed';
				stat1.gotoAndPlay(2);
			}
		};
		docalebslow = function () {
			chance = Math.round(Math.random() * magicchance);
			if (chance == magicchance && calebhealth > 0 && calebslow == false) {
				calebcountSlowID = setInterval(docalebCounterSlow, 1000);
				calebslow = true;
				calebslowcount = 0;
				calebslowcountX = countX;
				calebregstaminaslowX = calebregstamina / 2;
				calebregstamina -= calebregstaminaslowX;
				stat1.stat.stattxt.text = 'Slowed';
				stat1.gotoAndPlay(2);
			}
		};
		doenemystats = function () {
			if (difficulty == 1) {
				regstamina -= 0.1;
			} else {
				if (difficulty == 3) {
					regstamina += 0.1;
				} else {
					if (difficulty == 4) {
						regstamina -= 0.2;
					} else {
						if (difficulty == 5) {
							regstamina += 0.2;
						}
					}
				}
			}
			if (difficulty == 2) {
				enemyattack += Math.ceil(enemyattack / 6);
			} else {
				if (difficulty == 3) {
					enemyattack += Math.ceil(enemyattack / 4);
				} else {
					if (difficulty == 5) {
						enemyattack += Math.ceil(enemyattack / 2);
					}
				}
			}
			enemyhealth = enemymaxhealth;
			enemymana = enemymaxmana;
			enmlimit = 0;
			ranged = false;
			flying = false;
			magicimmunity = false;
			giant = false;
			limitname = 'Limit Break';
			if (enmmaxlimit == 0) {
				bhud.enemybarz.enemylimitbarz._visible = false;
			}
			if (enemymaxmana == 0) {
				bhud.enemymanabarz._visible = false;
				bhud.enmmanatxt._visible = false;
			} else {
				bhud.enemymanabarz._visible = true;
				bhud.enmmanatxt._visible = true;
			}
			if (twomonsters == 2 && (challenge == false or schoice >= 7)) {
				twomonsters = 0;
				battlestart = false;
			} else {
				if (twomonsters == 2 && challenge == true) {
					twomonsters = 1;
					battlestart = false;
				}
			}
			if (story >= 370) {
				enemyhealth += 50;
				enemymaxhealth += 50;
				enemyattack += 5;
			}
			if (difficulty == 5) {
				enemyhealth += 150;
				enemymaxhealth += 150;
				enemyattack += 10;
			}
			bhud.enmname_txt.text = enemyname;
		};
		doSecond = function () {
			enmstamina = 10;
			battlestart = true;
			slow = false;
			stun = false;
			imbalance = false;
			weakness = false;
			dementia = false;
			if (story == 340) {
				enmstyle1 = 1;
				enmstyle2 = 1;
				enmstyle3 = 1;
				enmstyle4 = 1;
				enmstyle5 = 1;
				enmstyle6 = 1;
				doEnmstyletint();
				story = 341;
			} else {
				if (questdrunk == 5) {
					enmstyle1 = 5;
					enmstyle2 = 5;
					enmstyle3 = 5;
					enmstyle4 = 5;
					enmstyle5 = 5;
					enmstyle6 = 5;
					doEnmstyletint();
				} else {
					doEnmstyle();
				}
			}
			if (challenge == true && schoice <= 7) {
				twomonsters = 2;
				++schoice;
				++gamepause;
				enemy_MC.enemiez.gotoAndStop(1);
				enemy_MC._visible = false;
			} else {
				twomonsters = 2;
				enemy_MC.enemiez.enemy.gotoAndStop(1);
				enemy_MC.gotoAndPlay('twoz');
				if (sfxmute == false) {
					enmsound1.attachSound('swing32');
					enmsound1.start();
				}
			}
		};
		doStand = function () {
			selfhurt = false;
			limitbreak = false;
			dodge = false;
			standz = true;
			battlecounter = false;
			battlecounterX = false;
			extracounter = false;
			fullstamina = false;
			powerattack = false;
			Rattack = 0;
			attack = 0;
			magicAttack = 0;
			addamage = 0;
			currenthits = 0;
			lightdamage = false;
			statmagic = false;
			suddendeath = false;
			dodgeattack = false;
			candodge = false;
			pulse = false;
			tryparalyze = false;
			tryslow = false;
			tryimbalance = false;
			tryweakness = false;
			magic = false;
			fire = false;
			fireX = false;
			ice = false;
			iceX = false;
			thunder = false;
			thunderX = false;
			dark = false;
			darkX = false;
			flycritical = false;
			armorpierce = false;
			if (battlestart == false) {
				menuon = false;
			}
		};
		doEnmAttackz = function () {
			if (enemy_MC.enemiez.enemy._currentframe == 1) {
				chance = random(nrattacks) + 1;
				if (chance == 1) {
					if (enmshieldon == false) {
						doEnmattack1();
					} else {
						doEnmattack2();
					}
				} else {
					if (chance == 2) {
						doEnmattack2();
					} else {
						if (chance == 3) {
							doEnmattack3();
						} else {
							if (chance == 4) {
								doEnmattack4();
							}
						}
					}
				}
			}
		};
		doEnmStand = function () {
			if (battleend == false) {
				enmlimitbreak = false;
				enmattacking = false;
				damage = 0;
				enmmagic = false;
				enmstatmagic = false;
				enmarmorpierce = false;
				tryenmslow = false;
				tryenmpoison = false;
				staminablow = false;
				dodrain = false;
				doEnmAttackz();
			}
		};
		doAttackelse = function () {
			if (dementia == false) {
				enemy_MC.enemiez.enemy.gotoAndPlay('attack1');
			} else {
				chance = random(2) + 1;
				if (chance == 1) {
					enemy_MC.enemiez.enemy.gotoAndPlay('attack1');
				} else {
					doDementiadamage();
				}
			}
		};
		doAttackSword = function () {
			if (sword == 6) {
				armorpierce = true;
			}
		};
		doStealGold = function () {
			if (enemyname == 'Bandit' && story > 90 && stolen == false && summon == false) {
				chance = random(3);
				if (chance == 1) {
					goldnum = 2 + Math.round(Math.random() * 3) * 5;
					if (gold > goldnum) {
						stolen = true;
						stolengold = goldnum;
						removingGold();
						action = enemyname + ' stole' + '\n' + goldnum + ' Pix!';
						actiontext();
					} else {
						if (gold > 0) {
							stolen = true;
							goldnum = gold;
							stolengold = goldnum;
							removingGold();
							action = enemyname + ' stole' + '\n' + goldnum + ' Pix!';
							actiontext();
						}
					}
				} else {
					if (chance == 2) {
						if (potion > 0) {
							stolen = true;
							stolenpotion = true;
							--potion;
							action = enemyname + ' stole' + '\n' + 'a Potion!';
							actiontext();
						} else {
							if (elixir > 0) {
								stolen = true;
								stolenelixir = true;
								--elixir;
								action = enemyname + ' stole' + '\n' + 'an Elixir!';
								actiontext();
							} else {
								if (ether > 0) {
									stolen = true;
									stolenether = true;
									--ether;
									action = enemyname + ' stole' + '\n' + 'an Ether!';
									actiontext();
								} else {
									if (remedy > 0) {
										stolen = true;
										stolenremedy = true;
										--remedy;
										action = enemyname + ' stole' + '\n' + 'a Remedy!';
										actiontext();
									}
								}
							}
						}
					}
				}
			}
		};
		doDraining = function () {
			dodrain = false;
			drainpoints = Math.round((coredamage + calebdamage) / 3);
			enemyhealth += drainpoints;
			healZ2.hl.heal_txt.text = '+' + drainpoints;
			healZ2.gotoAndPlay(2);
			if (character == 1) {
				++corelimit;
			}
			if (character == 2) {
				++caleblimit;
			}
			if (enemyhealth > enemymaxhealth) {
				enemyhealth = enemymaxhealth;
			}
		};
		doLuckchance = function () {
			if (character == 1) {
				luckchance = 90;
				chance = random(100 + coreluck);
			}
			if (character == 2) {
				luckchance = 90;
				chance = random(100 + calebluck);
			}
		};
		doRedBG = function () {
			if (character == 1) {
				if (corehealth < coremaxhealth / 10) {
					myColor = new Color(bg_MC);
					myColor.setTransform({'rb': 80, 'gb': -60, 'bb': -60});
					myColor = new Color(char_MC);
					myColor.setTransform({'rb': 50, 'gb': -40, 'bb': -40});
					myColor = new Color(enemy_MC);
					myColor.setTransform({'rb': 50, 'gb': -40, 'bb': -40});
				} else {
					if (corehealth < coremaxhealth / 5) {
						myColor = new Color(bg_MC);
						myColor.setTransform({'rb': 60, 'gb': -40, 'bb': -40});
						myColor = new Color(char_MC);
						myColor.setTransform({'rb': 30, 'gb': -20, 'bb': -20});
						myColor = new Color(enemy_MC);
						myColor.setTransform({'rb': 30, 'gb': -20, 'bb': -20});
					} else {
						myColor = new Color(bg_MC);
						myColor.setTransform({'rb': 0, 'gb': 0, 'bb': 0});
						myColor = new Color(char_MC);
						myColor.setTransform({'rb': 0, 'gb': 0, 'bb': 0});
						myColor = new Color(enemy_MC);
						myColor.setTransform({'rb': 0, 'gb': 0, 'bb': 0});
					}
				}
			} else {
				if (character == 2) {
					if (calebhealth < calebmaxhealth / 10) {
						myColor = new Color(bg_MC);
						myColor.setTransform({'rb': 80, 'gb': -60, 'bb': -60});
						myColor = new Color(char_MC);
						myColor.setTransform({'rb': 50, 'gb': -40, 'bb': -40});
						myColor = new Color(enemy_MC);
						myColor.setTransform({'rb': 50, 'gb': -40, 'bb': -40});
					} else {
						if (calebhealth < calebmaxhealth / 5) {
							myColor = new Color(bg_MC);
							myColor.setTransform({'rb': 60, 'gb': -40, 'bb': -40});
							myColor = new Color(char_MC);
							myColor.setTransform({'rb': 30, 'gb': -20, 'bb': -20});
							myColor = new Color(enemy_MC);
							myColor.setTransform({'rb': 30, 'gb': -20, 'bb': -20});
						} else {
							myColor = new Color(bg_MC);
							myColor.setTransform({'rb': 0, 'gb': 0, 'bb': 0});
							myColor = new Color(char_MC);
							myColor.setTransform({'rb': 0, 'gb': 0, 'bb': 0});
							myColor = new Color(enemy_MC);
							myColor.setTransform({'rb': 0, 'gb': 0, 'bb': 0});
						}
					}
				}
			}
		};
		doCoreHurt = function () {
			bhud.white.gotoAndPlay(5);
			++numofhits;
			stat1.stat.stattxt.text = '';
			if (godmode == false) {
				if (selfhurt == false) {
					coredamageX = enemyattack + Math.round(random(enemyattack / 2) - Math.random() * coreluck / 2);
				} else {
					coredamageX = damage;
				}
				if (enmarmorpierce == false or selfhurt == true) {
					if (enmmagic == false or selfhurt == true) {
						coredamage = Math.round(coredamageX - coredamageX * coredefense / 100);
					} else {
						if (enmmagic == true) {
							coredamage = Math.round(coredamageX - coredamageX * coremagicdefense / 100);
						}
					}
				} else {
					if (enmarmorpierce == true) {
						coredamage = coredamageX;
					}
				}
				if (coredamage <= 0) {
					coredamage = 1;
				}
				if (weakness == true or selfhurt == true) {
					coredamage = Math.round(coredamage / 3);
				}
				if (training == false && enmstatmagic == false && selfhurt == false) {
					blood1.gotoAndPlay(2);
					chance = random(100 + coreluck);
					if (chance >= coreluck + 95) {
						stat1.stat.stattxt.text = 'Lucky Hit';
						stat1.gotoAndPlay(2);
						white.gotoAndPlay(10);
					}
				}
			} else {
				coredamage = 0;
				stat1.stat.stattxt.text = 'Godmode';
				stat1.gotoAndPlay(2);
			}
			if (enmarmorpierce == true && selfhurt == false) {
				enmarmorpiercing_MC.gotoAndPlay(2);
			}
			if (enmstatmagic == false) {
				if (training == false) {
					if (story == 242 && godmode == false) {
						coredamage = 5;
					}
					if (coredamage >= corehealth && calebhealth > coredamage && selfhurt == false && calebX == true && enmlimitbreak == false) {
						calebhealth -= coredamage;
						if (calebhealth < 0) {
							calebhealth = 0;
						}
						calebcoredamagetaken += coredamage;
						caleblimit += 3 + Math.round(coredamage / 20);
						corestamina -= 50 + Math.round(coredamage / 5);
						if (staminablow == true) {
							corestamina = 0;
						}
						if (char_MC.charX.Core2.getDepth() > char_MC.charX.Caleb.getDepth()) {
							char_MC.charX.Caleb.swapDepths(char_MC.charX.Core2.getDepth());
						}
						char_MC.charX.Caleb.gotoAndPlay('protect');
						choice = random(6);
						if (choice >= 1 && choice <= 5) {
							if (choice == 1) {
								page1 = 'Caleb: You almost died!';
							} else {
								if (choice == 2) {
									page1 = 'Caleb: I got this!';
								} else {
									if (choice == 3) {
										page1 = 'Caleb: Be careful! Stay focused!';
									} else {
										if (choice == 4) {
											page1 = 'Caleb: Be more vigilant!';
										} else {
											if (choice == 5) {
												page1 = 'Caleb: Stay alive!';
											}
										}
									}
								}
							}
							notpause = true;
							doStartTextX();
						}
					} else {
						corehealth -= coredamage;
						if (corehealth < 0) {
							corehealth = 0;
						}
						corecoredamagetaken += coredamage;
						corelimit += 3 + Math.round(coredamage / 20);
						if (staminablow == true) {
							corestamina = 0;
						}
					}
					damage1.damage2.damagetxt.text = coredamage;
					bhud.healthbarz.healthbar.gotoAndPlay(2);
					if (coreconfuse == true) {
						chance = random(2);
						if (chance == 1) {
							damage1.damage2.damagetxt.text = 1;
						}
					}
				} else {
					damage1.damage2.damagetxt.text = '!';
				}
				damage1.gotoAndPlay(2);
				stat1.gotoAndPlay(2);
				bloodoverlay.gotoAndPlay(2);
			}
			if (selfhurt == false or dodgeattack == true) {
				damage1._x = 610;
				stat1._x = 585;
				if (selfhurt == false) {
					damage1._alpha = 100;
					stat1._alpha = 100;
				} else {
					damage1._alpha = 50;
					stat1._alpha = 50;
				}
				battlecounter = false;
				battlecounterX = false;
				tryparalyze = false;
				tryslow = false;
				tryimbalance = false;
				tryweakness = false;
				dodge = false;
				gotoBattlescreen();
				clearInterval(countHealID);
				doStealGold();
				docoredefense();
				if (tryenmslow == true) {
					docoreslow();
				}
				if (tryenmpoison == true) {
					docorepoison();
				}
				if (dodrain == true) {
					doDraining();
				}
			} else {
				damage1._x = 250;
				damage1._alpha = 50;
				stat1._x = 225;
				stat1._alpha = 50;
			}
			corestamina -= 50 + Math.round(coredamage / 5);
			if (corehealth < 1 && story == 254) {
				corehealth = 1;
			}
			if (corehealth < 0) {
				corehealth = 0;
			}
			if (corehealth <= 0 && selfhurt == false) {
				bhud.playerhealth_txt.text = corehealth + ' / ' + coremaxhealth;
				char_MC.charX.Core2.gotoAndPlay('Dead');
				char_MC.charX.Core.gotoAndStop(1);
				doEndBattle();
			} else {
				doRedBG();
			}
			if (playblack == true && black._currentframe == 1) {
				black.gotoAndPlay(11);
			}
			coredamage = 0;
		};
		doCalebHurt = function () {
			bhud.white.gotoAndPlay(5);
			++numofhits;
			stat1.stat.stattxt.text = '';
			if (godmode == false) {
				calebdamageX = enemyattack + Math.round(random(enemyattack / 2) - Math.random() * calebluck / 2);
				if (enmarmorpierce == false or selfhurt == true) {
					if (enmmagic == false or selfhurt == true) {
						calebdamage = Math.round(calebdamageX - calebdamageX * calebdefense / 100);
					} else {
						if (enmmagic == true) {
							calebdamage = Math.round(calebdamageX - calebdamageX * calebmagicdefense / 100);
						}
					}
				} else {
					if (enmarmorpierce == true) {
						calebdamage = calebdamageX;
					}
				}
				if (calebdamage <= 0) {
					calebdamage = 1;
				}
				if (weakness == true) {
					calebdamage = Math.round(calebdamage / 3);
				}
				if (training == false && enmstatmagic == false && selfhurt == false) {
					blood1.gotoAndPlay(2);
					chance = random(100 + calebluck);
					if (chance >= calebluck + 95) {
						stat1.stat.stattxt.text = 'Lucky Hit';
						stat1.gotoAndPlay(2);
						white.gotoAndPlay(10);
					}
				}
			} else {
				calebdamage = 0;
				stat1.stat.stattxt.text = 'Godmode';
				stat1.gotoAndPlay(2);
			}
			if (enmarmorpierce == true && selfhurt == false) {
				enmarmorpiercing_MC.gotoAndPlay(2);
			}
			if (enmstatmagic == false) {
				if (training == false) {
					if (story == 242 && godmode == false) {
						calebdamage = 5;
					}
					if (calebdamage >= calebhealth && corehealth > calebdamage && selfhurt == false && coreX == true && enmlimitbreak == false) {
						corehealth -= calebdamage;
						if (corehealth < 0) {
							corehealth = 0;
						}
						corecalebdamagetaken += calebdamage;
						corelimit += 3 + Math.round(calebdamage / 20);
						calebstamina -= 30 + Math.round(calebdamage / 5);
						if (staminablow == true) {
							calebstamina = 0;
						}
						if (char_MC.charX.Caleb.getDepth() > char_MC.charX.Core2.getDepth()) {
							char_MC.charX.Core2.swapDepths(char_MC.charX.Caleb.getDepth());
						}
						char_MC.charX.Core2.gotoAndPlay('protect');
						choice = random(6);
						if (choice >= 1 && choice <= 5) {
							if (choice == 1) {
								page1 = 'Roy: You owe me one!';
							} else {
								if (choice == 2) {
									page1 = 'Roy: Ouch! Come on, stay focused!';
								} else {
									if (choice == 3) {
										page1 = 'Roy: I\'ll take this one!';
									} else {
										if (choice == 4) {
											page1 = 'Roy: Don\'t die on me!';
										} else {
											if (choice == 5) {
												page1 = 'Roy: Be careful!';
											}
										}
									}
								}
							}
							notpause = true;
							doStartTextX();
						}
					} else {
						calebhealth -= calebdamage;
						if (calebhealth < 0) {
							calebhealth = 0;
						}
						calebcalebdamagetaken += calebdamage;
						caleblimit += 3 + Math.round(calebdamage / 20);
						if (staminablow == true) {
							calebstamina = 0;
						}
					}
					damage1.damage2.damagetxt.text = calebdamage;
					bhud.healthbarz.healthbar.gotoAndPlay(2);
					if (calebconfuse == true) {
						chance = random(2);
						if (chance == 1) {
							damage1.damage2.damagetxt.text = 1;
						}
					}
				} else {
					damage1.damage2.damagetxt.text = '!';
				}
				damage1.gotoAndPlay(2);
				stat1.gotoAndPlay(2);
				bloodoverlay.gotoAndPlay(2);
			}
			if (selfhurt == false) {
				damage1._x = 610;
				damage1._alpha = 100;
				stat1._alpha = 100;
				battlecounter = false;
				battlecounterX = false;
				magic = false;
				dodge = false;
				candodge = false;
				tryparalyze = false;
				tryslow = false;
				tryimbalance = false;
				tryweakness = false;
				gotoBattlescreen();
				clearInterval(countHealID);
				doStealGold();
				docalebdefense();
				if (tryenmslow == true) {
					docalebslow();
				}
				if (tryenmpoison == true) {
					docalebpoison();
				}
				if (dodrain == true) {
					doDraining();
				}
			} else {
				damage1._x = 250;
				damage1._alpha = 50;
				stat1._x = 225;
				stat1._alpha = 50;
			}
			calebstamina -= 50 + Math.round(calebdamage / 5);
			if (calebhealth < 0) {
				calebhealth = 0;
			}
			if (calebhealth <= 0) {
				bhud.playerhealth_txt.text = calebhealth + ' / ' + calebmaxhealth;
				if (chaos == false) {
					char_MC.charX.Caleb.gotoAndPlay('Dead');
				} else {
					char_MC.charX.Caleb.gotoAndPlay('chaosdead');
				}
				doEndBattle();
			} else {
				doRedBG();
			}
			if (playblack == true && black._currentframe == 1) {
				black.gotoAndPlay(11);
			}
			calebdamage = 0;
		};
		doBirth = function () {
			enemy_MC.enemiez.enemy.gotoAndPlay('birth');
		};
		doenemyhurt = function () {
			bhud.white.gotoAndPlay(5);
			if (questbrock == 3 && sword == 2) {
				questbrock = 4;
			} else {
				if (questbrock == 3 && sword != 2) {
					page1 = 'Argas: That\'s your old sword. Show me the new one!';
					doStartTextX();
				}
			}
			if (enmmaxlimit > 0 && enmshieldon == false) {
				if (multiattack == false) {
					enmlimit += 3;
				} else {
					++enmlimit;
				}
			}
			if (sfxmute == false) {
				chance = random(5);
				if (stun == false) {
					if (chance == 1) {
						growl1.start();
					} else {
						if (chance == 2) {
							growl2.start();
						} else {
							if (chance == 3) {
								growl3.start();
							}
						}
					}
				}
				chance = random(3);
				if (magic == false && character != 2) {
					if (enemyname == 'Gornak') {
						if (chance == 0) {
							enmhurt.attachSound('metalstone1');
						} else {
							if (chance == 1) {
								enmhurt.attachSound('metalstone2');
							} else {
								if (chance == 2) {
									enmhurt.attachSound('metalstone3');
								}
							}
						}
					} else {
						if (enemyname == 'Training rig') {
							if (chance == 0) {
								enmhurt.attachSound('largewood2');
							} else {
								if (chance == 1) {
									enmhurt.attachSound('largewood3');
								} else {
									if (chance == 2) {
										enmhurt.attachSound('largewood5');
									}
								}
							}
						} else {
							if (chance == 0) {
								enmhurt.attachSound('metalchop1');
							} else {
								if (chance == 1) {
									enmhurt.attachSound('metalchop2');
								} else {
									if (chance == 2) {
										enmhurt.attachSound('metalchop3');
									}
								}
							}
						}
					}
					enmhurt.start();
				}
			}
			damage += Math.round(damage / 5);
			if (difficulty == 1) {
				damage += Math.round(damage / 10);
			} else {
				if (difficulty == 3) {
					damage -= Math.round(damage / 10);
				} else {
					if (difficulty == 4) {
						damage += Math.round(damage / 5);
					} else {
						if (difficulty == 5) {
							damage -= Math.round(damage / 5);
						}
					}
				}
			}
			if (statmagic == false) {
				if (ice == true) {
					if (iceX == false && enmattacking == false) {
						icedamage_MC.play();
					}
					if (enmpermcolor == false) {
						enemy_MC.gotoAndPlay('ice');
					}
					iceX = true;
				}
				if (fire == true) {
					if (fireX == false && enmattacking == false) {
						firedamage_MC.play();
					}
					if (enmpermcolor == false) {
						enemy_MC.gotoAndPlay('fire');
					}
					fireX = true;
				}
				if (thunder == true) {
					if (thunderX == false && enmattacking == false) {
						thunderdamage_MC.play();
					}
					if (enmpermcolor == false) {
						enemy_MC.gotoAndPlay('ice');
					}
					flycritical = true;
					thunderX = true;
				}
				if (dark == true) {
					if (darkX == false && enmattacking == false) {
						darkdamage_MC.play();
					}
					if (enmpermcolor == false) {
						enemy_MC.gotoAndPlay('dark');
					}
					darkX = true;
				}
				if (magic == false && limitbreak == false && currenteffect == 6) {
					chance = random(20);
					if (chance == 1) {
						suddendeath = true;
					}
				}
				if (suddendeath == false or boss == true) {
					if (flying == true && flycritical == true) {
						magicAttack *= 2;
						attack *= 2;
					}
					if (fire == true) {
						if (magicimmunity == true or firedefense == 0) {
							magicAttackX = 0;
							enmstat.stat.stattxt.text = 'Immune';
							enmstat.gotoAndPlay(2);
						} else {
							magicAttackX = Math.round(magicAttack * firedefense);
						}
					} else {
						if (ice == true) {
							if (magicimmunity == true or icedefense == 0) {
								magicAttackX = 0;
								enmstat.stat.stattxt.text = 'Immune';
								enmstat.gotoAndPlay(2);
							} else {
								magicAttackX = Math.round(magicAttack * icedefense);
							}
						} else {
							if (thunder == true) {
								if (magicimmunity == true or thunderdefense == 0) {
									magicAttackX = 0;
									enmstat.stat.stattxt.text = 'Immune';
									enmstat.gotoAndPlay(2);
								} else {
									magicAttackX = Math.round(magicAttack * thunderdefense);
								}
							} else {
								if (dark == true) {
									if (magicimmunity == true or darkdefense == 0) {
										magicAttackX = 0;
										enmstat.stat.stattxt.text = 'Immune';
										enmstat.gotoAndPlay(2);
									} else {
										magicAttackX = Math.round(magicAttack * darkdefense);
									}
								} else {
									magicAttackX = magicAttack;
								}
							}
						}
					}
					if (character == 1) {
						if (pulse == false) {
							damageX = Math.round(attack + magicAttackX);
							damageX += Math.round(damageX + (damageX / 5) * (corestamina / 10) + random((attack + magicAttackX) / 2));
							if (armorpierce == true) {
								damage = Math.round(damageX / 2);
								enmstamina -= 10;
								if (ranged == true or enmattacking == false) {
									armorpiercing_MC.gotoAndPlay(2);
								} else {
									armorpiercing2_MC.gotoAndPlay(2);
								}
							} else {
								damage = Math.round((damageX - damageX * enemydefense / 100) / 2);
							}
						} else {
							if (pulse == true) {
								if (magicimmunity == false) {
									damage = magicAttack;
								} else {
									enmstat.stat.stattxt.text = 'Immune';
									damage = 0;
								}
							}
						}
						if (limitbreak == false) {
							if (coreberserk == true) {
								damage += Math.round(damage / 2);
							}
						}
						if (coreconfuse == true) {
							damage = Math.round(damage / 2);
						}
						if (magic == false && limitbreak == false) {
							if (currenteffect == 1 && slow == false) {
								tryslow = true;
								magicchance = 7;
								slowcountX = 10;
							} else {
								if (currenteffect == 2 && stun == false) {
									tryparalyze = true;
									magicchance = 5;
									stuncountX = 5;
								} else {
									if (currenteffect == 3 && imbalance == false) {
										tryimbalance = true;
										magicchance = 5;
									} else {
										if (currenteffect == 4 && weakness == false) {
											tryweakness = true;
											magicchance = 7;
											weaknesscountX = 10;
										}
									}
								}
							}
							if (character == 1 && spikeson == 1 && enemyname == 'Razor Boar') {
								selfhurt = true;
								doCoreHurt();
							}
						}
					} else {
						if (character == 2) {
							damageX = Math.round(attack + magicAttackX);
							damageX += Math.round(damageX + (damageX / 5) * (calebstamina / 10) + random((attack + magicAttackX) / 2));
							if (armorpierce == true or calebchaos == true) {
								damage = Math.round(damageX / 2);
								enmstamina -= 10;
								armorpiercing_MC.gotoAndPlay(2);
								if (calebchaos == true && enmpermcolor == false) {
									enemy_MC.gotoAndPlay('chaos');
								}
							} else {
								damage = Math.round((damageX - damageX * enemydefense / 100) / 2);
							}
							if (calebconfuse == true) {
								damage = Math.round(damage / 2);
							}
							if (spikeson == 1 && enemyname == 'Razor Boar' && battlecounterX == true) {
								selfhurt = true;
								doCalebHurt();
							}
						}
					}
					if (lightdamage == true && enmpermcolor == false) {
						enemy_MC.gotoAndPlay('chaos');
					}
					if (damage <= 0) {
						damage = 1;
					}
				} else {
					damage = 9999;
					if (magic == false) {
						flashXX.play();
						groundlight2.gotoAndPlay(2);
						flashexplosion.start(0, 1);
					}
					if (enmattacking == false or ranged == true) {
						enmstat.stat.stattxt.text = 'Sudden Death';
						enmstat.gotoAndPlay(2);
					} else {
						enmstat2.stat.stattxt.text = 'Sudden Death';
						enmstat2.gotoAndPlay(2);
					}
				}
			}
			if (enemyname == 'Gornak' && enmshieldon == false) {
				if (enemy_MC.enemiez.enemy._currentframe > 1) {
					damage *= 2;
				}
			}
			if (magic == false && character == 1) {
				if ((coreberserk == true or sword == 6) && limitbreak == false && (enmattacking == false or ranged == true)) {
					flashXX.play();
					groundlight2.gotoAndPlay(2);
					flashexplosion.start(0, 1);
				} else {
					if ((coreberserk == true or sword == 6) && limitbreak == false && enmattacking == true) {
						flashXX2.play();
					}
				}
			}
			doLuckchance();
			if (powerattack == true) {
				chance += 20;
				powerattack = false;
			}
			if (statmagic == false && tutz > 5 && training == false && enemyhealth > 0) {
				if (chance >= luckchance && magic == false && story > 80 && enemyname != 'Training rig') {
					if (enmshieldon == false) {
						enemyhealth -= damage;
						if (enemyhealth < 0) {
							enemyhealth = 0;
						}
						bhud.enemybarz.countbar.countbar.gotoAndPlay(2);
						bhud.enemybarz.healthbarz.healthbar.gotoAndPlay(2);
					} else {
						enmshield -= damage;
					}
					damage += damage;
					enmstamina -= 30;
					luckyhit = true;
					if (enmattacking == false or ranged == true) {
						enmstat.stat.stattxt.text = 'Lucky Hit';
						enmstat.gotoAndPlay(2);
						white.gotoAndPlay(10);
					} else {
						enmstat2.stat.stattxt.text = 'Lucky Hit';
						enmstat2.gotoAndPlay(2);
						white.gotoAndPlay(10);
					}
					if (character == 1) {
						corestamina += 10;
						docoreluck();
						if (limitbreak == false) {
							corelimit += 2;
						}
					} else {
						if (character == 2) {
							calebstamina += 10;
							docalebluck();
							if (limitbreak == false) {
								caleblimit += 2;
							}
						}
					}
					if (medalcharms == false) {
						++numofluckyhits;
						if (numofluckyhits == 1) {
							unlockCharm = true;
						}
						if (numofluckyhits == 10) {
							unlockCharms = true;
						}
					}
				}
			}
			if (multiattack == false) {
				enmstamina -= 20 + Math.round(damage / 10) + random(calebluck / 2);
			} else {
				enmstamina -= 5 + Math.round(damage / 20);
			}
			if (enmstamina < 0) {
				enmstamina = 0;
			}
			if (story == 10) {
				story = 20;
				if (damage >= enemyhealth) {
					damage = enemyhealth - 1;
				}
			}
			if (enmshieldon == false && training == false) {
				enemyhealth -= damage;
				if (enemyhealth < 0) {
					enemyhealth = 0;
				}
				bhud.enemybarz.countbar.countbar.gotoAndPlay(2);
				bhud.enemybarz.healthbarz.healthbar.gotoAndPlay(2);
			} else {
				if (enmshieldon == true) {
					enmshield -= damage;
					bhud.shieldbar_MC.shieldbar.shieldbar.gotoAndPlay(2);
					if (enmshield <= 0) {
						enmshield = 0;
					}
				}
			}
			if ((enemyhealth <= 0 or story == 171 or suddendeath == true && boss == false) && twomonsters == 0 && story != 340) {
				if (story >= 240 && story <= 253) {
					enemyhealth = 1;
					enmlimit = enmmaxlimit;
				} else {
					battleend = true;
					++gamepause;
					clearInterval(count4ID);
					clearInterval(count5ID);
					if (challenge == true) {
						win_challenge = true;
					}
				}
			} else {
				if (enemyhealth > 0) {
					if (imbalance == true) {
						imbalance = false;
						damage += damage;
						enmstat.stat.stattxt.text = 'Imbalance Bonus';
						enmstat.gotoAndPlay(2);
						enmstamina -= 30;
					}
					if (tryparalyze == true) {
						if (magicimmunity == false) {
							doparalyze();
						}
					}
					if (tryslow == true) {
						if (magicimmunity == false) {
							doslow();
						} else {
							if (magic == true) {
								enmstat.stat.stattxt.text = 'Immune';
								enmstat.gotoAndPlay(2);
							}
						}
					}
					if (tryimbalance == true) {
						if (magicimmunity == false) {
							doimbalance();
						} else {
							if (magic == true) {
								enmstat.stat.stattxt.text = 'Immune';
								enmstat.gotoAndPlay(2);
							}
						}
					}
					if (tryweakness == true) {
						if (magicimmunity == false) {
							doweakness();
						} else {
							if (magic == true) {
								enmstat.stat.stattxt.text = 'Immune';
								enmstat.gotoAndPlay(2);
							}
						}
					}
				} else {
					imbalance = false;
					dementia = false;
					stun = false;
				}
			}
			if (enemyname == 'Gornak' && enmshieldon == false) {
				if (enemy_MC.enemiez.enemy._currentframe == 1 && firstgornak2 == 1 && enemyhealth > 0) {
					page1 = 'A Gornak is very sturdy and hard to damage. Damage is halved if you attack it while it is standing still. Strike it while it is attacking you to inflict real damage.';
					doStartTextX();
					firstgornak2 = 2;
				}
			}
			if (enmattacking == true && ranged == false) {
				if (statmagic == false) {
					enmdamage2.damage2.damagetxt.text = damage;
					enmdamage2.gotoAndPlay(2);
					blood2._x = 530;
				}
				if (enemyhealth <= 0) {
					enemy_MC.enemiez.enemy.gotoAndPlay('dodgeDead');
				} else {
					if (enemyhealth > 0) {
						enemy_MC.enemiez.enemy.gotoAndPlay('dodgeHurt');
					}
				}
				if (enemy_MC.getDepth() > char_MC.getDepth()) {
					char_MC.swapDepths(enemy_MC.getDepth());
				}
			} else {
				if (statmagic == false) {
					enmdamage.damage2.damagetxt.text = damage;
					enmdamage.gotoAndPlay(2);
					if (multiattack == true) {
						addamage += damage;
						onemore = true;
						if (currenthits > 0) {
							enmdamageX.damage2.damagetxt.text = addamage;
							enmdamageX.gotoAndPlay(2);
						}
					} else {
						if (onemore == true) {
							addamage += damage;
							enmdamageX.damage2.damagetxt.text = addamage;
							enmdamageX.gotoAndPlay(2);
							onemore = false;
						}
					}
					blood2._x = 200;
				}
				if (enemyhealth <= 0 or story == 181) {
					if (multiattack == false && story != 253) {
						enemy_MC.enemiez.enemy.gotoAndPlay('dead');
					} else {
						enemy_MC.enemiez.enemy.gotoAndPlay('hurt');
					}
				} else {
					if (enmshieldon == true && enmshield <= 0 && multiattack == false) {
						enemy_MC.enemiez.enemy.gotoAndPlay('attack3X');
						enmshieldon = false;
					} else {
						if (enmshieldon == false) {
							enemy_MC.enemiez.enemy.gotoAndPlay('hurt');
						} else {
							if (enmshieldon == true) {
								enemy_MC.enemiez.enemy.gotoAndStop(1);
							}
						}
					}
				}
			}
			if (enemyhealth <= 0 or story == 181) {
				if (story >= 240 && story <= 253) {
					enemyhealth = 1;
					enmlimit = enmmaxlimit;
					battleend = false;
				} else {
					if (story != 181) {
						enemyhealth = 0;
					}
					if (multiattack == false) {
						if (twomonsters == 1) {
							if (summon == true) {
								summonlight.gotoAndPlay(2);
							}
							setTimeout(doSecond, 2000);
						} else {
							doEndBattle();
						}
					}
				}
			}
			if (training == false && enemyname != 'Gornak' && enemyname != 'Training rig') {
				blood2.gotoAndPlay(2);
			}
			if (limitbreak == false && character == 1) {
				corelimit += 2;
			}
			if (limitbreak == false && character == 2) {
				caleblimit += 2;
			}
			if (enemyhealth > 0) {
				++hits;
			}
			bhud.enmhealth_txt.text = enemyhealth;
			enmattacking = false;
			enmattacking = false;
			fullstamina = false;
			luckyhit = false;
			++currenthits;
			if (story == 180 && enemyhealth <= 100 && multiattack == false) {
				bhud.tut7.gotoAndPlay(2);
			}
		};
		doDementiadamage = function () {
			if (enemyname != 'Argas') {
				if (sfxmute == false) {
					hurtsfx.start();
					chance = random(3) + 1;
					if (chance == 3 && stun == false) {
						growl1.start();
					}
				}
				action = enemyname + ' hit' + '\n' + 'himself';
				actiontext();
				enmstat.stat.stattxt.text = 'Dementia';
				enmstat.gotoAndPlay(2);
				damage = Math.round(enemyattack / 2);
				if (damage < 0) {
					damage = 1;
				}
				if (enmmaxlimit > 0 && enmlimit < enmmaxlimit && enmshieldon == false) {
					enmlimit += Math.round(damage / 15);
					if (enmlimit > enmmaxlimit) {
						enmlimit = enmmaxlimit;
					}
				}
				enemyhealth -= damage;
				if (enemyhealth < 0) {
					enemyhealth = 0;
				}
			}
			enmstamina -= 40 + Math.round(damage / 5);
			if (enmstamina < 0) {
				enmstamina = 0;
			}
			blood2.gotoAndPlay(2);
			bhud.enemybarz.countbar.countbar.play();
			if (enemyname != 'Argas') {
				enmdamage.damage2.damagetxt.text = damage;
			} else {
				enmdamage.damage2.damagetxt.text = '!';
			}
			enmdamage.gotoAndPlay(2);
			if (enemyhealth <= 0 && story >= 240 && story <= 253) {
				enemyhealth = 1;
				enmlimit = enmmaxlimit;
			} else {
				if (enemyhealth <= 0) {
					enemy_MC.enemiez.enemy.gotoAndPlay('dead');
					enemyhealth = 0;
					if (twomonsters == 1) {
						if (summon == true) {
							summonlight.gotoAndPlay(2);
						}
						setTimeout(doSecond, 2000);
					} else {
						clearInterval(count4ID);
						clearInterval(count5ID);
						gotoAndPlay('win');
						doEndBattle();
					}
				} else {
					if (enmattacking == false) {
						enemy_MC.enemiez.enemy.gotoAndPlay('hurt');
					} else {
						enemy_MC.enemiez.enemy.gotoAndPlay('dodgeHurt');
					}
				}
			}
			bhud.enmhealth_txt.text = enemyhealth;
			enmattacking = false;
			if (story == 180 && enemyhealth <= 100 && multiattack == false) {
				bhud.tut7.gotoAndPlay(2);
			}
		};
		domagic = function () {
			magic = true;
			black.gotoAndPlay(2);
			enemy_MC.enemiez.enemy.gotoAndStop(1);
			if (enemy_MC.getDepth() > char_MC.getDepth()) {
				char_MC.swapDepths(enemy_MC.getDepth());
			}
			++gamepause;
			hurt = false;
			stopz = true;
			menuon = true;
		};
		domagicend = function () {
			magic = false;
			if (character == 1) {
				char_MC.charX.Core.gotoAndStop(1);
			}
			if (character == 2) {
				char_MC.charX.Caleb.gotoAndStop(1);
			}
			doendPause();
			hurt = false;
			stopz = false;
		};
		doBattleExit = function () {
			stopAllSounds();
			music.stop();
			globalvolume.setVolume(0);
			gamepause = 0;
		};
		doEndBattle = function () {
			if (bhud.pause_MC._currentframe > 1) {
				bhud.pause_MC.gotoAndStop(1);
				doendPause();
			}
			battleend = true;
			++gamepause;
			doClearID();
			counterWalk = 0;
			counterWalk2 = 0;
			clearInterval(corecountSlowID);
			clearInterval(corecountSlowID);
			clearInterval(calebcountSlowID);
			clearInterval(calebcountSlowID);
			clearInterval(countCorePoisonID);
			clearInterval(countCalebPoisonID);
			clearInterval(countMetaID);
			clearInterval(countChaosID);
			clearInterval(countDemID);
			clearInterval(countBerserkID);
			clearInterval(countCoreConfusionID);
			clearInterval(countCalebConfusionID);
			clearInterval(countStunID);
			clearInterval(countSlowID);
			clearInterval(countWeaknessID);
			coreslowcount = 0;
			calebslowcount = 0;
			if (coreslow == true) {
				coreslow = false;
				coreregstamina += coreregstaminaslowX;
			}
			if (calebslow == true) {
				calebslow = false;
				calebregstamina += calebregstaminaslowX;
			}
			ename = undefined;
			twomonsters = 0;
			hurt = false;
			frozen = false;
			stun = false;
			slow = false;
			weakness = false;
			dementia = false;
			imbalance = false;
			coreberserk = false;
			corepoison = false;
			coreconfuse = false;
			coreblind = false;
			corestun = false;
			coreslow = false;
			calebchaos = false;
			calebpoison = false;
			calebconfuse = false;
			calebblind = false;
			calebstun = false;
			calebslow = false;
			if (eye_light._currentframe > 1 && eye_light._currentframe < 107) {
				eye_light.gotoAndPlay(107);
			}
			menuon = true;
			bhud.menuz.magic_BT.gotoAndStop(1);
			bhud.menuz.limit_BT.gotoAndStop(1);
			bhud.menuz.item_BT.gotoAndStop(1);
			blind_MC._visible = false;
			battleback = false;
			bhud.pause_MC.gotoAndStop(1);
			if (bhud.options_MC._currentframe == 2) {
				bhud.options_MC.gotoAndStop(1);
				bhud.pause_MC.gotoAndPlay(26);
				bhud.pause_MC._y = 230;
				optionsX = true;
			}
		};
		doenmlimitbreak = function () {
			action = enemyname + ' casts' + '\n' + limitname;
			actiontext();
			enemy_MC.gotoAndPlay('chaos');
			groundlight2.gotoAndPlay(2);
			bhud.white.gotoAndPlay(5);
			bhud.battlelight.gotoAndPlay(2);
			enmlimit = 0;
			++gamepause;
			hurt = false;
			enmlimitbreak = true;
			BTone = false;
			BToneX = false;
			BTtwo = false;
			BTtwoX = false;
			BTthree = false;
			BTthreeX = false;
			black.gotoAndPlay(2);
			enmstamina = 0;
			if (sfxmute == false) {
				enmsound4.attachSound('feral');
				enmsound4.start();
			}
			if (character == 1) {
				if (attacking == true) {
					char_MC.charX.Core.gotoAndStop(1);
				}
			} else {
				if (character == 2) {
					char_MC.charX.Caleb.gotoAndStop(1);
				}
			}
			doEndHeal();
			if (bhud.menuz.magic_BT._currentframe > 1) {
				domenuon1();
			}
			if (bhud.menuz.limit_BT._currentframe > 1) {
				domenuon2();
			}
			if (char_MC.getDepth() > enemy_MC.getDepth()) {
				enemy_MC.swapDepths(char_MC.getDepth());
			}
		};
		doenmmagic = function () {
			enmmagic = true;
			hurt = false;
			++gamepause;
			black.gotoAndPlay(2);
			bhud.battlelight.gotoAndPlay(15);
			if (character == 1) {
				char_MC.charX.Core.gotoAndStop(1);
			} else {
				if (character == 2) {
					char_MC.charX.Caleb.gotoAndStop(1);
				}
			}
			if (bhud.menuz.magic_BT._currentframe > 1) {
				domenuon1();
			}
			if (bhud.menuz.limit_BT._currentframe > 1) {
				domenuon2();
			}
			if (char_MC.getDepth() > enemy_MC.getDepth()) {
				enemy_MC.swapDepths(char_MC.getDepth());
			}
		};
		doenmmagicend = function () {
			enmmagic = false;
			doendPause();
			enemy_MC.enemiez.enemy.gotoAndStop(1);
		};
		dolimitbreak = function () {
			limitbreak = true;
			++gamepause;
			hurt = false;
			bhud.white.gotoAndPlay(5);
			bhud.battlelight.gotoAndPlay(2);
			char_MC.gotoAndPlay('light');
			groundlight1.gotoAndPlay(2);
			if (sfxmute == false) {
				sound4.attachSound('feral');
				sound4.start();
			}
			if (character == 1) {
				corelimit = 0;
				corestamina = 0;
				coregotlimit = false;
				char_MC.charX.Core2.gotoAndStop(1);
			}
			if (character == 2) {
				caleblimit = 0;
				calebstamina = 0;
				calebgotlimit = false;
			}
			stopz = true;
			if (battleend == false) {
				enemy_MC.enemiez.enemy.gotoAndStop(1);
			}
			if (enemy_MC.getDepth() > char_MC.getDepth()) {
				char_MC.swapDepths(enemy_MC.getDepth());
			}
			domenuon2();
		};
		doendlimitbreak = function () {
			if (character == 1) {
				char_MC.charX.Core.gotoAndStop(1);
			} else {
				if (character == 2) {
					char_MC.charX.Caleb.gotoAndStop(1);
				}
			}
			hurt = false;
			stopz = false;
			doendPause();
			bhud.battlelight.gotoAndPlay(15);
		};
		doflash = function () {
			bhud.white.gotoAndPlay(2);
		};
		domenuon1 = function () {
			BToneMenu = false;
			if (bhud.menuz.magic_BT._currentframe > 1) {
				bhud.menuz.magic_BT.bg.gotoAndStop(1);
				bhud.menuz.magic_BT.gotoAndStop(1);
				bhud.menuinfo.gotoAndPlay(3);
			}
			bhud.menuz.menublack.gotoAndStop(1);
			menuon = true;
		};
		domenuon2 = function () {
			BTthreeMenu = false;
			if (bhud.menuz.limit_BT._currentframe > 1) {
				bhud.menuz.limit_BT.bg.gotoAndStop(1);
				bhud.menuz.limit_BT.gotoAndStop(1);
				bhud.menuinfo.gotoAndPlay(3);
			}
			bhud.menuz.menublack.gotoAndStop(1);
			menuon = true;
		};
		docoremagicdamage = function () {
			if (enemyname != 'Training rig') {
				++coremagicdamageX;
				if (coremagicdamageX >= coremagicdamage && coremagicdamageXX < 9) {
					coremagicdamageX = 0;
					++coremagicdamageXX;
					docoreluck();
					coregotstat = true;
				}
			}
		};
		docoredefense = function () {
			if (enemyname != 'Training rig') {
				++coredefenseX;
				if (char_MC.charX.Core.damage > coremaxhealth / 2) {
					++coredefenseX;
				}
				if (char_MC.charX.Core.damage > coremaxhealth / 3) {
					++coredefenseX;
				}
				if (coredefenseX >= 5 + coredefense && coredefenseXX < 9) {
					coredefenseX = 0;
					if (enmmagic == true) {
						++coremagicdefenseXX;
					} else {
						++coredefenseXX;
					}
					docoreluck();
					coregotstat = true;
				}
			}
		};
		docorestrength = function () {
			if (enemyname != 'Training rig') {
				++corestrengthX;
				if (corestrengthX >= 7 + corestrength && corestrengthXX < 9) {
					corestrengthX = 0;
					++corestrengthXX;
					docoreluck();
					coregotstat = true;
				}
			}
		};
		docoreluck = function () {
			if (enemyname != 'Training rig') {
				++coreluckX;
				if (coreluckX >= coreluck && coreluckXX < 9) {
					coreluckX = 0;
					++coreluckXX;
					coregotstat = true;
				}
			}
		};
		docoreagility = function () {
			if (enemyname != 'Training rig') {
				++coreagilityX;
				if (coreagilityX >= 2 + coreagility && coreagilityXX < 9) {
					coreagilityX = 0;
					++coreagilityXX;
					docoreluck();
					coregotstat = true;
				}
			}
		};
		docalebmagicdamage = function () {
			if (enemyname != 'Training rig') {
				++calebmagicdamageX;
				if (calebmagicdamageX >= calebmagicdamage && calebmagicdamageXX < 9) {
					calebmagicdamageX = 0;
					++calebmagicdamageXX;
					docalebluck();
					calebgotstat = true;
				}
			}
		};
		docalebdefense = function () {
			if (enemyname != 'Training rig') {
				++calebdefenseX;
				if (char_MC.charX.Caleb.damage > calebmaxhealth / 2) {
					++calebdefenseX;
				}
				if (char_MC.charX.Caleb.damage > calebmaxhealth / 3) {
					++calebdefenseX;
				}
				if (calebdefenseX >= 5 + calebdefense && calebdefenseXX < 9) {
					calebdefenseX = 0;
					if (enmmagic == true) {
						++calebmagicdefenseXX;
					} else {
						++calebdefenseXX;
					}
					docalebluck();
					calebgotstat = true;
				}
			}
		};
		docalebstrength = function () {
			if (enemyname != 'Training rig') {
				++calebstrengthX;
				if (calebstrengthX >= 7 + calebstrength && calebstrengthXX < 9) {
					calebstrengthX = 0;
					++calebstrengthXX;
					docalebluck();
					calebgotstat = true;
				}
			}
		};
		docalebluck = function () {
			if (enemyname != 'Training rig') {
				++calebluckX;
				if (calebluckX >= calebluck && calebluckXX < 9) {
					calebluckX = 0;
					++calebluckXX;
					calebgotstat = true;
				}
			}
		};
		docalebagility = function () {
			if (enemyname != 'Training rig') {
				++calebagilityX;
				if (calebagilityX >= 2 + calebagility && calebagilityXX < 9) {
					calebagilityX = 0;
					++calebagilityXX;
					docalebluck();
					calebgotstat = true;
				}
			}
		};
		doEnemyDodge = function () {
			if ((enemy_MC.enemiez.enemy._currentframe == 1 or enemy_MC.enemiez.enemy._currentframe > 1 && enmattacking == false && enmdodgeX == false) && imbalance == false && stun == false && enmstamina >= 50 && thirdeye == false) {
				chance = Math.round(Math.random() * enmdodge + 1);
				if (enemyname == 'Argas' && questbrock >= 3 && questbrock <= 6) {
				} else {
					if (chance == 1 && enmdodgeX == false && enmshieldon == false && asleep == false) {
						enemy_MC.enemiez.enemy.gotoAndPlay('dodge');
						enmstamina -= 50;
						enmdodgeX = true;
						if (enmmaxlimit > 0) {
							++enmlimit;
						}
					}
				}
			}
		};
		doTextpageX = function () {
			if (notpause == true) {
				bhud.text_MCX.textz.Buttons._visible = false;
			} else {
				bhud.text_MCX.textz.Buttons._visible = true;
			}
			if (story == 52 && currentpage == 1 && story == 52) {
				bhud.tut4.gotoAndPlay(2);
				story = 53;
			}
			if (story == 131) {
				enemy_MC.enemiez.enemy.gotoAndPlay('attack1');
				enmstamina = 0;
			}
			if (story == 241 && currentpage == 1) {
				enemy_MC.enemiez.enemy.gotoAndPlay('attack1');
				enmstamina = 0;
				story = 242;
			}
			if (questbrock == 5 && currentpage == 1) {
				gamepause = 0;
				notflee = false;
				doBattleFlee();
			}
			if (story == 251 && currentpage == 1) {
				enemy_MC.enemiez.enemy.gotoAndPlay('dodge');
			}
			if (story == 252 && currentpage == 1) {
				battlestart = true;
				enemy_MC._visible = true;
				enemy_MC.enemiez.gotoAndStop('carrionhound');
				enemy_MC.enemiez.enemy.gotoAndPlay('birth');
				if (sfxmute == false) {
					enmsound4.attachSound('asay31');
					enmsound4.start();
				}
			}
			if (story == 255 && currentpage == 2) {
				doEndBattle();
				gotoAndPlay('win');
			}
			if (questbrock == 5) {
				questbrock = 6;
				doBattleFlee();
			}
			if (story == 81 && currentpage == 3) {
				bhud.counterlight.gotoAndStop(2);
			} else {
				if (story == 81 && (currentpage == 5 or currentpage == 6)) {
					if (currentpage == 5) {
						corestamina += 20;
						doendPause();
					}
					bhud.text_MCX.textz.Buttons._visible = false;
				} else {
					if (story == 81 && (currentpage == 8 or currentpage == 9)) {
						if (currentpage == 8) {
							doendPause();
						}
						bhud.text_MCX.textz.Buttons._visible = false;
					} else {
						if (story == 83 && currentpage == 11) {
							doendPause();
							bhud.menuz.menuzZ.fleeX._visible = false;
							bhud.menuz.menuzZ.flee_BT._visible = true;
							notflee = false;
							bhud.text_MCX.textz.Buttons._visible = false;
						}
					}
				}
			}
			stopfor = false;
			i = 1;
			while (i <= 50) {
				if (this['page' + (i + 1)] == '' && stopfor == false) {
					turns = i;
					stopfor = true;
				}
				++i;
			}
			if (bhud.text_MCX.textz._currentframe == 6) {
				if (story == 81 && currentpage == 6 or story == 81 && currentpage == 9 or story == 83 && currentpage == 12) {
				} else {
					if (currentpage < turns) {
						++currentpage;
						bhud.text_MCX.textz.gotoAndPlay(5);
					} else {
						++currentpage;
						bhud.text_MCX.textz.gotoAndPlay(7);
					}
				}
			}
		};
		doStartTextX = function () {
			if (bhud.text_MCX.textz._currentframe == 1) {
				dialog = 1;
				bhud.text_MCX.textz.gotoAndPlay(2);
			}
		};
		doBattleAttack = function () {
			if (story < 180) {
				corelimit = 0;
				caleblimit = 0;
			}
			if (gamepause == 0 && hurt == false && realtimeevent == false && (character == 1 or character == 2) && story != 132 && (story != 20 or tutz > 1)) {
				if (character == 1) {
					if (corestamina < coreattackstamina) {
						bhud.enough.staminamc.gotoAndStop(2);
					}
					bhud.enough.gotoAndPlay(2);
				} else {
					if (character == 2) {
						if (calebstamina < calebattackstamina) {
							bhud.enough.staminamc.gotoAndStop(2);
						}
						bhud.enough.gotoAndPlay(2);
					}
				}
				if (character == 1 && dodgeattack == false && standz == true) {
					if (dodge == false) {
						if (corestamina >= coreattackstamina) {
							standz = false;
							Rattack = random(3) + 1;
							char_MC.charX.Core.gotoAndPlay('attack' + Rattack);
							if (enemy_MC.getDepth() > char_MC.getDepth()) {
								char_MC.swapDepths(enemy_MC.getDepth());
							}
							if (fullstamina == true) {
								powerattack = true;
							}
							corestamina -= coreattackstamina;
							docorestrength();
							if (story <= 10) {
								bhud.tut1.gotoAndPlay('next1');
							}
							doAttackSword();
							if (camera == true && tutz > 1) {
								chance = Math.round(Math.random() * 8 + 1);
								if (chance == 1) {
									gotoAndPlay('cameraA1');
								}
								if (chance == 2) {
									gotoAndPlay('cameraA2');
								}
								if (chance == 3) {
									gotoAndPlay('cameraA3');
								}
							}
							doEnemyDodge();
						}
					} else {
						if (dodge == true) {
							if (corestamina >= coreattackstamina) {
								char_MC.charX.Core.gotoAndPlay('dodgeAttack');
								if (enemy_MC.getDepth() > char_MC.getDepth()) {
									char_MC.swapDepths(enemy_MC.getDepth());
								}
								doAttackSword();
								corestamina -= coreattackstamina;
								dodgeattack = true;
								if (story == 81 && currentpage == 9) {
									++gamepause;
									story = 82;
								}
								chance = Math.round(Math.random() * enmdodge + 1);
								if (chance == 1 && enmattacking == true && enemyname != 'Argas') {
									enemy_MC.enemiez.enemy.gotoAndPlay('jumpback');
									enemy_MC.enemiez.enemy.anm.gotoAndPlay('jumpback');
								}
							} else {
								if (dodgeattack == false) {
									if (corestamina < coreattackstamina) {
										bhud.enough.staminamc.gotoAndStop(2);
									}
								}
							}
						}
					}
				}
				if (character == 2 && dodgeattack == false && standz == true) {
					if (dodge == false && enmattacking == false) {
						if (chaos == true && calebstamina >= calebattackstamina) {
							standz = false;
							char_MC.charX.Caleb.gotoAndPlay('chaosattack');
							if (enemy_MC.getDepth() > char_MC.getDepth()) {
								char_MC.swapDepths(enemy_MC.getDepth());
							}
							if (fullstamina == true) {
								powerattack = true;
							}
							caleblimit += 2;
							calebstamina -= calebattackstamina;
							docalebstrength();
						} else {
							if (chaos == false && calebstamina >= calebattackstamina) {
								standz = false;
								candodge = true;
								Rattack = random(3) + 1;
								char_MC.charX.Caleb.gotoAndPlay('attack' + Rattack);
								if (enemy_MC.getDepth() > char_MC.getDepth()) {
									char_MC.swapDepths(enemy_MC.getDepth());
								}
								if (fullstamina == true) {
									powerattack = true;
								}
								calebstamina -= calebattackstamina;
								docalebstrength();
							}
						}
					} else {
						if (dodge == true) {
							if (calebstamina >= calebattackstamina) {
								if (chaos == false) {
									char_MC.charX.Caleb.gotoAndPlay('dodgeAttack');
									if (enemy_MC.getDepth() > char_MC.getDepth()) {
										char_MC.swapDepths(enemy_MC.getDepth());
									}
									calebstamina -= calebattackstamina;
								} else {
									char_MC.charX.Caleb.gotoAndPlay('chaosdodgeAttack');
									if (enemy_MC.getDepth() > char_MC.getDepth()) {
										char_MC.swapDepths(enemy_MC.getDepth());
									}
									calebstamina -= calebattackstamina;
								}
								chance = Math.round(Math.random() * enmdodge + 1);
								if (chance == 1 && enmattacking == true) {
									enemy_MC.enemiez.enemy.gotoAndPlay('jumpback');
									enemy_MC.enemiez.enemy.anm.gotoAndPlay('jumpback');
								}
								dodgeattack = true;
							} else {
								if (dodgeattack == false) {
									if (calebstamina < calebattackstamina) {
										bhud.enough.staminamc.gotoAndStop(2);
									}
								}
							}
						}
					}
				}
			}
		};
		doBattleDodge = function () {
			if (gamepause == 0 && hurt == false && realtimeevent == false && (character == 1 or character == 2)) {
				if (heal == true) {
					doEndHeal();
				}
				if (character == 1 && story != 131 && (char_MC.charX.Core._currentframe == 1 or candodge == true)) {
					if (corestamina < 50) {
						bhud.enough.staminamc.gotoAndStop(2);
					}
					bhud.enough.gotoAndPlay(2);
					if (corestamina >= 50) {
						char_MC.charX.Core.gotoAndPlay('dodge');
						corestamina -= 50;
						dodge == true;
						if (tutz == 1) {
							bhud.tut1.gotoAndPlay('next2');
						}
						if (story == 81 && enemy_MC.enemiez.enemy._currentframe == 1) {
							enemy_MC.enemiez.enemy.gotoAndPlay('attack1');
						}
						if (camera == true && bhud.tut1._currentframe == 1) {
							chance = random(3);
							if (chance == 1) {
								gotoAndPlay('cameraD1');
							}
						}
					}
				}
				if (character == 2 && (char_MC.charX.Caleb._currentframe == 1 or candodge == true)) {
					if (char_MC.charX.Caleb._currentframe > 1) {
						candodge = false;
						dodgestamina = 30;
					} else {
						dodgestamina = 50;
					}
					if (calebstamina < dodgestamina) {
						bhud.enough.staminamc.gotoAndStop(2);
					}
					bhud.enough.gotoAndPlay(2);
					if (calebstamina >= dodgestamina) {
						if (chaos == false) {
							char_MC.charX.Caleb.gotoAndPlay('dodge');
						} else {
							char_MC.charX.Caleb.gotoAndPlay('chaosdodge');
						}
						calebstamina -= dodgestamina;
						dodge == true;
					}
				}
			}
		};
		doBattleCounter = function () {
			if (gamepause == 0 && hurt == false && realtimeevent == false && story >= 80 && story != 132) {
				if (ranged == false && enemyname != 'Gornak' && enemyname != 'Spitter') {
					if (character == 1 && char_MC.charX.Core._currentframe == 1) {
						if (corestamina < 70) {
							bhud.enough.staminamc.gotoAndStop(2);
						}
						bhud.enough.gotoAndPlay(2);
						if (corestamina >= 70) {
							corestamina -= 70;
							extracounter = true;
							char_MC.charX.Core.gotoAndPlay('counter');
							doAttackSword();
						}
					}
					if (character == 2 && char_MC.charX.Caleb._currentframe == 1) {
						if (calebstamina < 70) {
							bhud.enough.staminamc.gotoAndStop(2);
						}
						bhud.enough.gotoAndPlay(2);
						if (calebstamina >= 70) {
							calebstamina -= 70;
							extracounter = true;
							char_MC.charX.Caleb.gotoAndPlay('counter');
						}
					}
				} else {
					notpause = true;
					page1 = 'You cannot counter against ' + enemyname + '.';
					doStartTextX();
				}
			}
		};
		doBattleFlee = function () {
			if (gamepause == 0 && hurt == false && realtimeevent == false && story != 132) {
				if (boss == false && tutz > 3 && notflee == false) {
					if (character == 1) {
						if (char_MC.charX.Core._currentframe == 1) {
							if (corestamina < coremaxstamina && training == false) {
								bhud.enough.staminamc.gotoAndStop(2);
							}
							bhud.enough.gotoAndPlay(2);
							if (corestamina >= coremaxstamina or training == true) {
								if (enemyname != 'Argas') {
									doClearXX();
								}
								if (story == 83) {
									++currentpage;
									bhud.text_MCX.textz.gotoAndPlay(7);
									story = 90;
								}
								if (training == false) {
									char_MC.charX.Core2.gotoAndPlay('flee');
								} else {
									gotoAndPlay('win');
									char_MC.charX.Core2.gotoAndPlay('Win');
								}
								doEndBattle();
							}
						}
					}
					if (character == 2 && chaos == false) {
						if (char_MC.charX.Caleb._currentframe == 1) {
							if (calebstamina < calebmaxstamina && training == false) {
								bhud.enough.staminamc.gotoAndStop(2);
							}
							bhud.enough.gotoAndPlay(2);
							if (thirdeye == true) {
								calebregstamina -= 0.5;
								regstamina += regstaminaXeye;
							}
							if (calebstamina >= calebmaxstamina or training == true) {
								if (enemyname != 'Argas') {
									doClearXX();
								}
								if (training == false) {
									char_MC.charX.Caleb.gotoAndPlay('flee');
								} else {
									gotoAndPlay('win');
									char_MC.charX.Caleb.gotoAndPlay('Win');
								}
								doEndBattle();
							}
						}
					}
				}
			}
		};
		doPause = function () {
			if (willpause == false) {
				++gamepause;
				blind_MC.stop();
				eye_light.stop();
				firemark1.stop();
				clearInterval(countID);
				clearInterval(countTID);
			}
		};
		doSwitchcore = function () {
			char_MC.charX.Caleb.gotoAndPlay('switch');
			char_MC.charX.Core2.gotoAndPlay('enter');
			if (coreblind == true or blind == false) {
				blind_MC._visible = true;
			} else {
				blind_MC._visible = false;
			}
			bhud.name_txt.text = corename;
			character = 1;
			currenteffect = this['sword' + sword + 'f'];
			if (coremagic1 == false) {
				bhud.menuz.magic_BT._visible = false;
			}
			if (bhud.menuz.magic_BT._currentframe > 1) {
				domenuon1();
			}
			if (bhud.menuz.limit_BT._currentframe > 1) {
				domenuon2();
			}
			doRedBG();
		};
		doSwitchcaleb = function () {
			char_MC.charX.Core2.gotoAndPlay('switch');
			char_MC.charX.Caleb.gotoAndPlay('enter');
			if (bhud.tut4X._currentframe > 1) {
				bhud.tut4X.gotoAndPlay('next1');
			}
			if (calebblind == true or blind == false) {
				blind_MC._visible = true;
			} else {
				blind_MC._visible = false;
			}
			bhud.name_txt.text = 'Caleb';
			character = 2;
			currenteffect = 0;
			if (bhud.menuz.magic_BT._currentframe > 1) {
				domenuon1();
			}
			if (bhud.menuz.limit_BT._currentframe > 1) {
				domenuon2();
			}
			doRedBG();
		};
	}
	movieClip 7372	{
		frame 1 {
			gotoAndStop(_root.areabg);
		}
	}
	movieClip 7374	{
		frame 1 {
			stop();
		}
	}
	movieClip 7383	{
		frame 1 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 19 {
			gotoAndStop(1);
		}
		frame 53 {
			stop();
		}
		frame 99 {
			gotoAndStop(1);
		}
		frame 130 {
			stop();
		}
		frame 159 {
			gotoAndStop(1);
		}
		frame 207 {
			stop();
		}
	}
	movieClip 7387	{
		frame 1 {
			stop();
		}
		frame 55 {
			_root.bhud.calebsight_MC.gotoAndStop(2);
			_root.sight = true;
		}
		frame 106 {
			stop();
			_root.black.gotoAndStop(1);
		}
		frame 110 {
			_root.enemy_MC.gotoAndPlay(96);
			_root.enmpermcolor = false;
			_root.sight = false;
			_root.goto2 = false;
			_root.calebregstamina -= 0.5;
			_root.regstamina += _root.regstaminaXeye;
		}
	}
	movieClip 7393	{
	}
	movieClip 7395	{
	}
	movieClip 7396	{
		frame 1 {
			stop();
		}
	}
	movieClip 7398	{
		frame 1 {
			stop();
		}
		frame 275 {
			_root.firemark = false;
		}
	}
	movieClip 7401	{
		frame 1 {
			stop();
		}
	}
	movieClip 7402	{
		frame 1 {
			stop();
		}
		frame 2 {
			_root.music.setVolume(0);
		}
		frame 15 {
			_root.music.setVolume(_root.volumez - (_root.volumez / 5) * 4);
		}
		frame 23 {
			_root.music.setVolume(_root.volumez - (_root.volumez / 5) * 3);
		}
		frame 30 {
			_root.music.setVolume(_root.volumez);
		}
	}
	movieClip 7406	{
	}
	movieClip 7410	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7414	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7418	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7419	{
	}
	movieClip 7423	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7427	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7428	{
	}
	movieClip 7432	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7436	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7437	{
		frame 1 {
			gotoAndPlay(random(100));
		}
	}
	movieClip 7438	{
		frame 1 {
			stop();
			if (_root.slow == true or _root.goto2 == true) {
				gotoAndStop(2);
			}
			if (_root.stun == true or _root.goto3 == true) {
				gotoAndStop(3);
			}
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 7439	{
	}
	movieClip 7440	{
	}
	movieClip 7441	{
	}
	movieClip 7445	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7446	{
	}
	movieClip 7447	{
	}
	movieClip 7448	{
		frame 30 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7449	{
		frame 1 {
			if (_root.stun == true) {
				gotoAndStop(25);
			}
			if (_root.goto2 == true or _root.goto3 == true) {
				gotoAndPlay('slow');
			}
		}
		frame 24 {
			_parent.gotoAndStop(1);
		}
		frame 76 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7453	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7454	{
		frame 1 {
			if ((_root.Rattack == 2 or _root.dodge == true) && _root.character == 1) {
				gotoAndPlay('short');
			}
		}
		frame 23 {
			stop();
		}
	}
	movieClip 7456	{
	}
	movieClip 7457	{
		frame 1 {
			if (_root.battlestart == true) {
				_root.enemyname = 'Timberwolf';
				_root.hurtsfx.attachSound('ImpaleLand');
				_root.growl1.attachSound('asay61');
				_root.growl2.attachSound('tuskarr');
				_root.growl3.attachSound('DragonPissed3');
				_root.enmmaxlimit = 0;
				_root.enmattack1stam = 70;
				_root.countmaximum = 80;
				_root.nrattacks = 1;
				if (_root.story < 80) {
					_root.enmlevel = 1;
					_root.enemyattack = 4 + random(3);
					_root.enemymaxhealth = 15 + Math.round(Math.random() * 1) * 5;
					_root.enmdodge = 20;
					_root.regstamina = 1.5;
					_root.goldX = 3;
				} else {
					_root.enmlevel = 2;
					_root.enemyattack = 5 + random(4);
					_root.enemymaxhealth = 25 + Math.round(Math.random() * 3) * 5;
					_root.enmdodge = 8;
					_root.regstamina = 1.6;
					_root.goldX = 5;
				}
				_root.enemymaxmana = 0;
				_root.enemydefense = 10;
				_root.firedefense = 1;
				_root.icedefense = 1;
				_root.thunderdefense = 1;
				_root.darkdefense = 1;
				_root.reghealth = 0;
				_root.regmana = 30;
				_root.doenemystats();
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
		}
		frame 15 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
			if (_root.sfxmute == false) {
				chance = random(5);
				if (chance == 1) {
					_root.growl1.start();
				} else {
					if (chance == 2) {
						_root.growl2.start();
					}
				}
			}
		}
		frame 19 {
			_root.enmattacking = true;
		}
		frame 27 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 40 {
			_root.enmattacking = false;
		}
		frame 44 {
			gotoAndStop(1);
		}
		frame 45 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 97 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 127 {
			gotoAndStop(1);
		}
		frame 180 {
			gotoAndStop(1);
		}
		frame 190 {
			stop();
		}
		frame 200 {
			stop();
		}
		frame 227 {
			gotoAndStop(1);
		}
	}
	movieClip 7459	{
	}
	movieClip 7461	{
	}
	movieClip 7463	{
	}
	movieClip 7464	{
		frame 1 {
			if (_root.gamepause > 0) {
				stop();
			} else {
				chance = random(2);
				if (chance == 0) {
					gotoAndPlay(35);
				}
			}
		}
	}
	movieClip 7466	{
	}
	movieClip 7468	{
	}
	movieClip 7470	{
	}
	movieClip 7472	{
	}
	movieClip 7476	{
	}
	movieClip 7477	{
	}
	movieClip 7479	{
	}
	movieClip 7481	{
	}
	movieClip 7483	{
	}
	movieClip 7485	{
		frame 1 {
			stop();
			if (_root.slow == true or _root.goto2 == true) {
				gotoAndStop(2);
			}
			if (_root.stun == true or _root.goto3 == true) {
				gotoAndStop(3);
			}
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 7488	{
		frame 1 {
			stop();
		}
	}
	movieClip 7489	{
		frame 1 {
			if (_root.story == 80) {
				_parent.mc._visible = false;
			} else {
				stop();
			}
		}
		frame 73 {
			_root.argasTalk();
			_root.story = 81;
		}
		frame 118 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('slowwoosh2');
				_root.enmsound2.start();
			}
		}
		frame 123 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('slowwoosh2');
				_root.enmsound1.start();
			}
		}
		frame 186 {
			_parent.mc._visible = true;
		}
	}
	movieClip 7490	{
		frame 53 {
			stop();
		}
	}
	movieClip 7491	{
	}
	movieClip 7492	{
	}
	movieClip 7494	{
	}
	movieClip 7495	{
	}
	movieClip 7496	{
	}
	movieClip 7497	{
	}
	movieClip 7498	{
		frame 1 {
			if (_root.battlestart == true) {
				_root.enemyname = 'Argas';
				_root.enmlevel = 10;
				_root.hurtsfx.attachSound('fall');
				_root.growl1.attachSound('empty');
				_root.growl2.attachSound('empty');
				_root.growl3.attachSound('empty');
				_root.goldX = 0;
				_root.enmmaxlimit = 0;
				_root.enmattack1stam = 70;
				_root.countmaximum = 80;
				_root.nrattacks = 1;
				_root.enemyattack = 10;
				_root.enemymaxhealth = 250;
				_root.enemymaxmana = 0;
				_root.enemydefense = 10;
				_root.enmdodge = 5;
				_root.firedefense = 1;
				_root.icedefense = 1;
				_root.thunderdefense = 1;
				_root.darkdefense = 1;
				_root.reghealth = 0;
				_root.regmana = 40;
				_root.regstamina = 1.6;
				_root.doenemystats();
			}
		}
		frame 1 {
			stop();
			if (_root.story == 82) {
				_root.bhud.text_MCX.textz.Buttons._visible = true;
				_root.doTextpageX();
				_root.story = 83;
			}
			if (_root.questbrock == 4) {
				_root.questbrock = 5;
				_root.page1 = 'Argas: I like it! It\'s a great sword.';
				_root.doStartTextX();
			}
			_root.doEnmStand();
		}
		frame 9 {
			_root.enmattacking = true;
		}
		frame 11 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('loudwoosh2');
				_root.enmsound1.start();
			}
		}
		frame 14 {
			smoke1.play();
		}
		frame 15 {
			smoke2.play();
		}
		frame 16 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('swing3');
				_root.enmsound2.start();
			}
		}
		frame 16 {
			smoke3.play();
		}
		frame 18 {
			smoke4.play();
		}
		frame 19 {
			if (_root.sfxmute == false) {
				_root.enmsound3.attachSound('swing32');
				_root.enmsound3.start();
			}
		}
		frame 19 {
			smoke5.play();
		}
		frame 30 {
			if (_root.sfxmute == false) {
				_root.enmsound4.attachSound('slowwoosh2');
				_root.enmsound4.start();
			}
		}
		frame 37 {
			_root.enmattacking = false;
		}
		frame 46 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 47 {
			smoke1.play();
		}
		frame 53 {
			gotoAndStop(1);
		}
		frame 54 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 63 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 106 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 121 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 132 {
			gotoAndStop(1);
		}
		frame 132 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 132 {
			smoke1.play();
		}
		frame 157 {
			gotoAndStop(1);
		}
		frame 177 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('loudwoosh2');
				_root.enmsound1.start();
			}
		}
		frame 184 {
			gotoAndStop(1);
		}
		frame 184 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 184 {
			smoke1.play();
		}
	}
	movieClip 7501	{
	}
	movieClip 7503	{
	}
	movieClip 7505	{
	}
	movieClip 7507	{
	}
	movieClip 7509	{
	}
	movieClip 7511	{
	}
	movieClip 7513	{
	}
	movieClip 7515	{
	}
	movieClip 7517	{
	}
	movieClip 7518	{
	}
	movieClip 7519	{
		frame 1 {
			if (_root.battlestart == true) {
				_root.enemyname = 'Training rig';
				_root.enmlevel = 1;
				_root.hurtsfx.attachSound('fall');
				_root.growl1.attachSound('empty');
				_root.growl2.attachSound('empty');
				_root.growl3.attachSound('empty');
				_root.goldX = 0;
				_root.enmmaxlimit = 0;
				_root.enmattack1stam = 100;
				_root.countmaximum = 100;
				_root.nrattacks = 0;
				_root.enemyattack = 0;
				_root.enemymaxhealth = 100;
				_root.enemymaxmana = 0;
				_root.enemydefense = 0;
				_root.enmdodge = 1;
				_root.firedefense = 1;
				_root.icedefense = 1;
				_root.thunderdefense = 1;
				_root.darkdefense = 1;
				_root.reghealth = 10;
				_root.regmana = 0;
				_root.regstamina = 0;
				_root.doenemystats();
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
		}
		frame 36 {
			gotoAndStop(1);
		}
	}
	movieClip 7525	{
		frame 1 {
			gotoAndStop(_root.enmstyle5);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm5tintrb, 'gb': _root.enm5tintgb, 'bb': _root.enm5tintbb});
		}
	}
	movieClip 7526	{
	}
	movieClip 7531	{
		frame 1 {
			gotoAndStop(_root.enmstyle5);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm5tintrb, 'gb': _root.enm5tintgb, 'bb': _root.enm5tintbb});
		}
	}
	movieClip 7532	{
	}
	movieClip 7537	{
		frame 1 {
			gotoAndStop(_root.enmstyle5);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm5tintrb, 'gb': _root.enm5tintgb, 'bb': _root.enm5tintbb});
		}
	}
	movieClip 7538	{
	}
	movieClip 7544	{
		frame 1 {
			gotoAndStop(_root.enmstyle5);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm5tintrb, 'gb': _root.enm5tintgb, 'bb': _root.enm5tintbb});
		}
	}
	movieClip 7545	{
	}
	movieClip 7550	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm1tintrb, 'gb': _root.enm1tintgb, 'bb': _root.enm1tintbb});
		}
	}
	movieClip 7551	{
	}
	movieClip 7556	{
		frame 1 {
			gotoAndStop(_root.enmstyle5);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm5tintrb, 'gb': _root.enm5tintgb, 'bb': _root.enm5tintbb});
		}
	}
	movieClip 7558	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm1tintrb, 'gb': _root.enm1tintgb, 'bb': _root.enm1tintbb});
		}
	}
	movieClip 7565	{
		frame 1 {
			gotoAndStop(_root.enmstyle3);
		}
	}
	movieClip 7568	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm1tintrb, 'gb': _root.enm1tintgb, 'bb': _root.enm1tintbb});
		}
	}
	movieClip 7572	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm4tintrb, 'gb': _root.enm4tintgb, 'bb': _root.enm4tintbb});
		}
	}
	movieClip 7574	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm1tintrb, 'gb': _root.enm1tintgb, 'bb': _root.enm1tintbb});
		}
	}
	movieClip 7577	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm4tintrb, 'gb': _root.enm4tintgb, 'bb': _root.enm4tintbb});
		}
	}
	movieClip 7582	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7590	{
		frame 1 {
			gotoAndStop(_root.enmstyle3);
		}
	}
	movieClip 7596	{
		frame 1 {
			gotoAndStop(_root.enmstyle4);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm3tintrb, 'gb': _root.enm3tintgb, 'bb': _root.enm3tintbb});
		}
	}
	movieClip 7602	{
		frame 1 {
			gotoAndStop(_root.enmstyle2);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm2tintrb, 'gb': _root.enm2tintgb, 'bb': _root.enm2tintbb});
		}
	}
	movieClip 7605	{
	}
	movieClip 7607	{
	}
	movieClip 7608	{
	}
	movieClip 7611	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm1tintrb, 'gb': _root.enm1tintgb, 'bb': _root.enm1tintbb});
		}
	}
	movieClip 7613	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm1tintrb, 'gb': _root.enm1tintgb, 'bb': _root.enm1tintbb});
		}
	}
	movieClip 7615	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm1tintrb, 'gb': _root.enm1tintgb, 'bb': _root.enm1tintbb});
		}
	}
	movieClip 7617	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7618	{
	}
	movieClip 7624	{
		frame 1 {
			gotoAndStop(_root.enmstyle6);
		}
	}
	movieClip 7626	{
	}
	movieClip 7627	{
	}
	movieClip 7630	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm1tintrb, 'gb': _root.enm1tintgb, 'bb': _root.enm1tintbb});
		}
	}
	movieClip 7632	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm1tintrb, 'gb': _root.enm1tintgb, 'bb': _root.enm1tintbb});
		}
	}
	movieClip 7634	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm1tintrb, 'gb': _root.enm1tintgb, 'bb': _root.enm1tintbb});
		}
	}
	movieClip 7635	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7636	{
	}
	movieClip 7640	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.enm1tintrb, 'gb': _root.enm1tintgb, 'bb': _root.enm1tintbb});
		}
	}
	movieClip 7641	{
	}
	movieClip 7642	{
	}
	movieClip 7643	{
	}
	movieClip 7644	{
	}
	movieClip 7645	{
	}
	movieClip 7646	{
		frame 1 {
			stop();
			if (_root.slow == true or _root.goto2 == true) {
				gotoAndStop(2);
			}
			if (_root.stun == true or _root.goto3 == true) {
				gotoAndStop(3);
			}
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 7648	{
	}
	movieClip 7649	{
		frame 40 {
			stop();
		}
	}
	movieClip 7650	{
		frame 7 {
			stop();
		}
	}
	movieClip 7652	{
	}
	movieClip 7653	{
		frame 43 {
			stop();
		}
	}
	movieClip 7658	{
		frame 1 {
			gotoAndPlay(Math.round(Math.random() * 20 + 1));
		}
	}
	movieClip 7662	{
		frame 12 {
			stop();
		}
	}
	movieClip 7663	{
		frame 1 {
			if (_root.stun == true) {
				gotoAndStop(25);
			}
			if (_root.goto2 == true or _root.goto3 == true) {
				gotoAndPlay('slow');
			}
		}
		frame 24 {
			_parent.gotoAndStop(1);
		}
		frame 81 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7664	{
		frame 24 {
			stop();
		}
	}
	movieClip 7665	{
		frame 19 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7666	{
		frame 1 {
			if (_root.battlestart == true) {
				if (_root.story == 341) {
					_root.enemyname = 'Medruo';
					_root.story = 350;
					_root.canheal = true;
				} else {
					_root.enemyname = 'Bandit';
				}
				_root.hurtsfx.attachSound('sliceflesh2');
				_root.growl1.attachSound('hurt1');
				_root.growl2.attachSound('hurt2');
				_root.growl3.attachSound('empty');
				_root.enmmaxlimit = 0;
				_root.enmattack1stam = 70;
				_root.enmattack2stam = 90;
				_root.countmaximum = 90;
				_root.nrattacks = 2;
				if (_root.questkidnap == 3) {
					_root.enmlevel = 5;
					_root.enemyattack = 13;
					_root.enemymaxhealth = 90;
					_root.regstamina = 1.6;
					_root.goldX = 5;
				} else {
					if (_root.story < 140) {
						_root.enmlevel = 2;
						_root.enemyattack = 4 + random(3);
						_root.enemymaxhealth = 30 + Math.round(Math.random() * 2) * 5;
						_root.regstamina = 1.4;
						_root.goldX = 5;
					} else {
						_root.enmlevel = 4;
						_root.enemyattack = 7 + random(5);
						_root.enemymaxhealth = 70 + Math.round(Math.random() * 4) * 5;
						_root.regstamina = 1.5;
						_root.goldX = 10;
					}
				}
				_root.enemymaxmana = 30;
				_root.enemydefense = 10;
				_root.enmdodge = 7;
				_root.firedefense = 1;
				_root.icedefense = 1;
				_root.thunderdefense = 1;
				_root.darkdefense = 1;
				_root.reghealth = 0;
				_root.regmana = 30;
				_root.doenemystats();
				chance = random(3);
				if (chance == 1 or _root.story == 51 or _root.questdrunk == 5) {
					_root.canheal = true;
				}
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
		}
		frame 10 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 13 {
			smoke1.play();
		}
		frame 14 {
			_root.enmattacking = true;
		}
		frame 14 {
			smoke2.play();
		}
		frame 15 {
			smoke3.play();
		}
		frame 16 {
			smoke4.play();
		}
		frame 17 {
			smoke5.play();
		}
		frame 20 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('swing3');
				_root.enmsound2.start();
			}
		}
		frame 38 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('woosh2');
				_root.enmsound1.start();
			}
		}
		frame 43 {
			_root.enmattacking = false;
		}
		frame 50 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 50 {
			smoke1.play();
		}
		frame 52 {
			gotoAndStop(1);
		}
		frame 54 {
			if (_root.canheal == false or _root.enemyhealth > _root.enemymaxhealth - 25 or _root.enemymana < 30) {
				_root.doAttackelse();
			}
		}
		frame 59 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('Spirit');
				_root.enmsound1.start();
			}
		}
		frame 67 {
			_root.enemymana -= 30;
			addhealth = random(15) + 10;
			if (_root.enemyhealth > _root.enemymaxhealth - _root.enemyhealth + addhealth) {
				addhealth = _root.enemymaxhealth - _root.enemyhealth;
			}
			_root.enemyhealth += addhealth;
			_root.healZ2.hl.heal_txt.text = addhealth;
			_root.healZ2.gotoAndPlay(2);
		}
		frame 100 {
			gotoAndStop(1);
		}
		frame 101 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 114 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 153 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 173 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('woosh2');
				_root.enmsound1.start();
			}
		}
		frame 181 {
			gotoAndStop(1);
		}
		frame 181 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 181 {
			smoke1.play();
		}
		frame 240 {
			gotoAndStop(1);
		}
		frame 250 {
			stop();
		}
		frame 260 {
			stop();
		}
		frame 287 {
			gotoAndStop(1);
		}
		frame 287 {
			smoke1.play();
		}
	}
	movieClip 7669	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7672	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7676	{
		frame 1 {
			gotoAndStop(_root.enmstyle2);
		}
	}
	movieClip 7677	{
	}
	movieClip 7681	{
		frame 1 {
			gotoAndStop(_root.enmstyle2);
		}
	}
	movieClip 7682	{
		frame 1 {
			if (_root.spikeson == 1) {
				stop();
			} else {
				if (_root.spikeson == 2 && _root.enemy_MC.enemiez.enemy._currentframe != 1) {
					gotoAndPlay(2);
				} else {
					if (_root.spikeson == 3) {
						gotoAndStop(20);
					} else {
						if (_root.spikeson == 4 && _root.enemy_MC.enemiez.enemy._currentframe != 1) {
							gotoAndPlay(21);
						}
					}
				}
			}
		}
		frame 10 {
			_root.spikeson = 3;
		}
		frame 20 {
			stop();
		}
		frame 30 {
			_root.spikeson = 1;
		}
	}
	movieClip 7687	{
		frame 1 {
			gotoAndStop(_root.enmstyle2);
		}
	}
	movieClip 7688	{
		frame 1 {
			if (_root.spikeson == 1) {
				stop();
			} else {
				if (_root.spikeson == 2 && _root.enemy_MC.enemiez.enemy._currentframe != 1) {
					gotoAndPlay(2);
				} else {
					if (_root.spikeson == 3) {
						gotoAndStop(20);
					} else {
						if (_root.spikeson == 4 && _root.enemy_MC.enemiez.enemy._currentframe != 1) {
							gotoAndPlay(21);
						}
					}
				}
			}
		}
		frame 20 {
			stop();
		}
	}
	movieClip 7690	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7691	{
	}
	movieClip 7694	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7699	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7700	{
	}
	movieClip 7703	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7704	{
		frame 1 {
			gotoAndPlay(random(100));
		}
	}
	movieClip 7705	{
		frame 1 {
			stop();
			if (_root.slow == true or _root.goto2 == true) {
				gotoAndStop(2);
			}
			if (_root.stun == true or _root.goto3 == true) {
				gotoAndStop(3);
			}
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 7711	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 7712	{
	}
	movieClip 7713	{
		frame 9 {
			stop();
		}
	}
	movieClip 7714	{
		frame 29 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7715	{
		frame 34 {
			stop();
		}
	}
	movieClip 7716	{
	}
	movieClip 7717	{
		frame 1 {
			if (_root.battlestart == true) {
				_root.enemyname = 'Razor Boar';
				_root.hurtsfx.attachSound('ImpaleLand');
				_root.growl1.attachSound('bris1');
				_root.growl2.attachSound('bris2');
				_root.growl3.attachSound('DragonPissed3');
				_root.enmmaxlimit = 0;
				_root.enmattack1stam = 70;
				_root.countmaximum = 80;
				_root.nrattacks = 1;
				if (_root.story < 140) {
					_root.enmlevel = 3;
					_root.enemyattack = 3;
					_root.enemymaxhealth = 30 + Math.round(Math.random() * 3) * 5;
					_root.regstamina = 1.6;
					_root.goldX = 5;
				} else {
					_root.enmlevel = 5;
					_root.enemyattack = 5 + random(5);
					_root.enemymaxhealth = 60 + Math.round(Math.random() * 4) * 5;
					_root.regstamina = 1.7;
					_root.goldX = 10;
				}
				_root.enemymaxmana = 0;
				_root.enemydefense = 10;
				_root.enmdodge = 7;
				_root.firedefense = 1;
				_root.icedefense = 1;
				_root.thunderdefense = 1;
				_root.darkdefense = 1;
				_root.reghealth = 0;
				_root.regmana = 30;
				_root.doenemystats();
				turnspike = 2;
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
			if (_root.stun == false && _root.slow == false) {
				if (turnspike == 2) {
					turnspike = 3;
				} else {
					if (turnspike == 3) {
						turnspike = 1;
					}
				}
				chance = random(5);
				if (chance == 1 && turnspike == 1) {
					if (_root.spikeson == 1) {
						_root.spikeson = 2;
						gotoAndPlay('spikes');
					} else {
						if (_root.spikeson == 3) {
							_root.spikeson = 4;
							gotoAndPlay('spikes');
						}
					}
					turnspike = 2;
				}
			}
		}
		frame 16 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 19 {
			_root.enmattacking = true;
		}
		frame 27 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 41 {
			_root.enmattacking = false;
		}
		frame 43 {
			gotoAndStop(1);
		}
		frame 44 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 93 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 123 {
			gotoAndStop(1);
		}
		frame 137 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('axe');
				_root.enmsound1.start();
			}
		}
		frame 144 {
			gotoAndStop(1);
		}
		frame 197 {
			gotoAndStop(1);
		}
		frame 207 {
			stop();
		}
		frame 217 {
			stop();
		}
		frame 244 {
			gotoAndStop(1);
		}
	}
	movieClip 7719	{
	}
	movieClip 7721	{
	}
	movieClip 7723	{
	}
	movieClip 7725	{
	}
	movieClip 7727	{
	}
	movieClip 7729	{
	}
	movieClip 7731	{
	}
	movieClip 7737	{
		frame 25 {
			stop();
		}
	}
	movieClip 7738	{
	}
	movieClip 7740	{
	}
	movieClip 7742	{
	}
	movieClip 7743	{
	}
	movieClip 7745	{
	}
	movieClip 7746	{
	}
	movieClip 7747	{
	}
	movieClip 7752	{
	}
	movieClip 7753	{
	}
	movieClip 7754	{
	}
	movieClip 7755	{
	}
	movieClip 7756	{
		frame 1 {
			if (_root.stun == true) {
				gotoAndStop(25);
			}
			if (_root.goto2 == true or _root.goto3 == true) {
				gotoAndPlay('slow');
			}
		}
		frame 20 {
			_parent.gotoAndStop(1);
		}
		frame 72 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7757	{
		frame 21 {
			stop();
		}
	}
	movieClip 7758	{
		frame 1 {
			if (_root.battlestart == true) {
				_root.enemyname = 'Spitter';
				_root.enmlevel = 3;
				_root.hurtsfx.attachSound('ImpaleLand');
				_root.growl1.attachSound('scarab1');
				_root.growl2.attachSound('scarab2');
				_root.growl3.attachSound('empty');
				_root.goldX = 5;
				_root.enmmaxlimit = 0;
				_root.enmattack1stam = 70;
				_root.enmattack2stam = 90;
				_root.countmaximum = 90;
				_root.nrattacks = 2;
				_root.enemyattack = 5 + random(5);
				_root.enemymaxhealth = 45 + Math.round(Math.random() * 4) * 5;
				_root.enemymaxmana = 0;
				_root.enemydefense = 0;
				_root.enmdodge = 5;
				_root.firedefense = 2;
				_root.icedefense = 1;
				_root.thunderdefense = 1;
				_root.darkdefense = 1;
				_root.reghealth = 0;
				_root.regmana = 40;
				_root.regstamina = 1.8;
				_root.doenemystats();
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
		}
		frame 20 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('shadowmissile');
				_root.enmsound1.start();
			}
		}
		frame 25 {
			_root.ranged = true;
			_root.enmattacking = true;
			_root.playblack = true;
			_root.tryenmslow = true;
			_root.magicchance = 2;
			_root.countX = 5;
		}
		frame 31 {
			_root.enmattacking = false;
		}
		frame 41 {
			gotoAndStop(1);
		}
		frame 45 {
			_root.ranged = false;
			_root.enmattacking = true;
		}
		frame 76 {
			_root.enmattacking = false;
		}
		frame 83 {
			gotoAndStop(1);
		}
		frame 84 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 135 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 167 {
			gotoAndStop(1);
		}
		frame 220 {
			gotoAndStop(1);
		}
		frame 230 {
			stop();
		}
		frame 240 {
			stop();
		}
		frame 267 {
			gotoAndStop(1);
		}
	}
	movieClip 7760	{
	}
	movieClip 7761	{
		frame 1 {
			gotoAndPlay(random(50));
		}
	}
	movieClip 7763	{
	}
	movieClip 7765	{
	}
	movieClip 7766	{
	}
	movieClip 7768	{
	}
	movieClip 7770	{
	}
	movieClip 7771	{
	}
	movieClip 7773	{
	}
	movieClip 7774	{
	}
	movieClip 7776	{
	}
	movieClip 7777	{
	}
	movieClip 7778	{
		frame 1 {
			stop();
			if (_root.slow == true or _root.goto2 == true) {
				gotoAndStop(2);
			}
			if (_root.stun == true or _root.goto3 == true) {
				gotoAndStop(3);
			}
			if (_root.enmshieldon == true) {
				gotoAndStop(4);
			}
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
	}
	movieClip 7779	{
	}
	movieClip 7780	{
	}
	movieClip 7783	{
	}
	movieClip 7784	{
		frame 28 {
			stop();
		}
	}
	movieClip 7785	{
		frame 1 {
			if (_root.enmshieldon == true) {
				gotoAndPlay(60);
			}
		}
		frame 13 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 17 {
			_root.crack1_MC.gotoAndPlay(2);
		}
	}
	movieClip 7786	{
	}
	movieClip 7787	{
		frame 28 {
			_root.crack1_MC.gotoAndPlay(2);
		}
	}
	movieClip 7788	{
		frame 20 {
			_parent.gotoAndStop(1);
		}
		frame 69 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7789	{
		frame 45 {
			stop();
		}
	}
	movieClip 7790	{
	}
	movieClip 7791	{
		frame 177 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 190 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('bighit');
				_root.enmsound2.start();
			}
			_root.crack1_MC.gotoAndPlay(2);
			_root.black.gotoAndPlay(11);
		}
		frame 301 {
			stop();
		}
	}
	movieClip 7792	{
		frame 1 {
			if (_root.battlestart == true) {
				_root.enemyname = 'Gornak';
				_root.enmlevel = 6;
				_root.hurtsfx.attachSound('ImpaleLand');
				_root.growl1.attachSound('golema1');
				_root.growl2.attachSound('golemwhat1');
				_root.growl3.attachSound('golemwhat2');
				_root.goldX = 10;
				_root.enmmaxlimit = 40;
				_root.enmattack1stam = 90;
				_root.enmattack2stam = 110;
				_root.enmattack3stam = 0;
				_root.countmaximum = 110;
				_root.nrattacks = 2;
				if (_root.story < 120 or _root.questbrock == 8) {
					_root.enemyattack = 10;
					_root.enemymaxhealth = 50;
				} else {
					_root.enemyattack = 20 + random(10);
					_root.enemymaxhealth = 100 + Math.round(Math.random() * 5) * 10;
				}
				_root.enemymaxmana = 40;
				_root.enemydefense = 50;
				_root.enmdodge = 15;
				_root.firedefense = 1;
				_root.icedefense = 1;
				_root.thunderdefense = 0;
				_root.darkdefense = 1;
				_root.reghealth = 0;
				_root.regmana = 50;
				_root.regstamina = 1.5;
				_root.doenemystats();
				_root.limitname = 'Recovery';
				if (_root.firstgornak == 1 && _root.challenge == false) {
					_root.firstgornak = 2;
					setTimeout(_root.doBirth, 1000);
				}
			}
		}
		frame 1 {
			stop();
			_root.ranged = false;
			_root.doEnmStand();
		}
		frame 2 {
			if (_root.enmlimit >= _root.enmmaxlimit) {
				_root.doEnmattack3();
			} else {
				if (_root.enmshieldon == true) {
					gotoAndPlay('attack2');
				}
			}
		}
		frame 7 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('golemya1');
				_root.enmsound1.start();
			}
		}
		frame 17 {
			_root.enmattacking = true;
		}
		frame 50 {
			_root.enmattacking = false;
		}
		frame 59 {
			gotoAndStop(1);
		}
		frame 60 {
			if (_root.enmlimit >= _root.enmmaxlimit) {
				_root.doEnmattack3();
			} else {
				if (_root.enmshieldon == false) {
					if (_root.enemymana >= 15) {
						_root.ranged = true;
					} else {
						gotoAndPlay('attack1');
					}
				} else {
					if (_root.enmshieldon == true) {
						_root.ranged = true;
					}
				}
			}
		}
		frame 60 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('golemwhat1');
				_root.enmsound1.start();
			}
		}
		frame 64 {
			_root.enmattacking = true;
		}
		frame 72 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('golemya1');
				_root.enmsound2.start();
			}
		}
		frame 74 {
			if (_root.sfxmute == false) {
				_root.enmsound3.attachSound('punch');
				_root.enmsound3.start();
			}
		}
		frame 77 {
			_root.rockup_MC.gotoAndPlay(2);
			_root.crack2_MC.gotoAndPlay(2);
			_root.playblack = true;
			if (_root.enmshieldon == false) {
				_root.enemymana -= 15;
			}
		}
		frame 107 {
			if (_root.sfxmute == false) {
				_root.enmsound4.attachSound('bighit');
				_root.enmsound4.start();
			}
		}
		frame 113 {
			_root.enmattacking = false;
			_root.ranged = false;
		}
		frame 118 {
			gotoAndStop(1);
		}
		frame 119 {
			_root.enmshieldon = true;
			if (_root.story < 120 or _root.questbrock == 8) {
				_root.enmshield = 15;
			} else {
				_root.enmshield = 30;
			}
			_root.enmmaxshield = _root.enmshield;
			_root.bhud.shieldbar_MC._visible = true;
			_root.reghealth = 5;
			_root.doenmlimitbreak();
		}
		frame 119 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('golemwhat1');
				_root.enmsound1.start();
			}
		}
		frame 154 {
			_root.black.play();
			_root.menuon = false;
		}
		frame 157 {
			if (_root.firstgornak == 2) {
				_root.page1 = 'The Gornak is in a recovering state where its health rapidly regenerates. Destroy the shield to disturb it.';
				_root.doStartTextX();
				_root.firstgornak = 3;
			}
			_root.doenmmagicend();
		}
		frame 158 {
			_root.bhud.shieldbar_MC._visible = false;
			_root.reghealth = 0;
			++_root.gamepause;
		}
		frame 158 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('golemya1');
				_root.enmsound1.start();
			}
		}
		frame 170 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('swing32');
				_root.enmsound2.start();
			}
		}
		frame 176 {
			if (_root.sfxmute == false) {
				_root.enmsound3.attachSound('golemwhat1');
				_root.enmsound3.start();
			}
		}
		frame 186 {
			if (_root.sfxmute == false) {
				_root.enmsound4.attachSound('bighit');
				_root.enmsound4.start();
			}
		}
		frame 214 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('golemwhat2');
				_root.enmsound1.start();
			}
		}
		frame 257 {
			_root.menuon = false;
		}
		frame 262 {
			_root.doenmmagicend();
			gotoAndStop(1);
		}
		frame 263 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 318 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 345 {
			gotoAndStop(1);
		}
		frame 346 {
			_root.ranged = false;
		}
		frame 398 {
			gotoAndStop(1);
		}
		frame 399 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('golemya1');
				_root.enmsound1.start();
			}
		}
		frame 466 {
			stop();
		}
		frame 467 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('golemya1');
				_root.enmsound1.start();
			}
		}
		frame 540 {
			stop();
		}
		frame 567 {
			gotoAndStop(1);
		}
		frame 576 {
			++_root.gamepause;
		}
		frame 711 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('golemya1');
				_root.enmsound1.start();
			}
		}
		frame 742 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('golemwhat1');
				_root.enmsound2.start();
			}
		}
		frame 795 {
			if (_root.sfxmute == false) {
				_root.enmsound3.attachSound('golemwhat2');
				_root.enmsound3.start();
			}
		}
		frame 820 {
			_root.doendPause();
		}
		frame 866 {
			gotoAndStop(1);
		}
	}
	movieClip 7795	{
	}
	movieClip 7797	{
	}
	movieClip 7799	{
	}
	movieClip 7801	{
	}
	movieClip 7804	{
	}
	movieClip 7806	{
	}
	movieClip 7808	{
	}
	movieClip 7810	{
	}
	movieClip 7813	{
	}
	movieClip 7815	{
	}
	movieClip 7816	{
	}
	movieClip 7818	{
	}
	movieClip 7819	{
	}
	movieClip 7821	{
	}
	movieClip 7822	{
		frame 1 {
			stop();
			if (_root.slow == true or _root.goto2 == true) {
				gotoAndStop(2);
			}
			if (_root.stun == true or _root.goto3 == true) {
				gotoAndStop(3);
			}
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 7823	{
	}
	movieClip 7824	{
		frame 8 {
			stop();
		}
	}
	movieClip 7825	{
	}
	movieClip 7826	{
	}
	movieClip 7828	{
	}
	movieClip 7829	{
		frame 1 {
			if (_root.stun == true) {
				gotoAndStop(25);
			}
			if (_root.goto2 == true or _root.goto3 == true) {
				gotoAndPlay('slow');
			}
		}
		frame 24 {
			_parent.gotoAndStop(1);
		}
		frame 81 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7830	{
		frame 79 {
			stop();
		}
	}
	movieClip 7831	{
		frame 19 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7832	{
		frame 1 {
			if (_root.battlestart == true) {
				_root.enemyname = 'Dion';
				_root.enmlevel = 7;
				_root.hurtsfx.attachSound('sliceflesh2');
				_root.growl1.attachSound('hurt1');
				_root.growl2.attachSound('hurt2');
				_root.growl3.attachSound('empty');
				_root.goldX = 20;
				_root.enmmaxlimit = 25;
				_root.enmattack1stam = 90;
				_root.enmattack2stam = 0;
				_root.countmaximum = 100;
				_root.nrattacks = 1;
				_root.enemyattack1 = 7;
				_root.enemyattack2 = 13;
				_root.enemymaxhealth = 260;
				_root.enemymaxmana = 0;
				_root.enemydefense = 15;
				_root.enmdodge = 4;
				_root.firedefense = 1;
				_root.icedefense = 1;
				_root.thunderdefense = 1;
				_root.darkdefense = 1;
				_root.reghealth = 0;
				_root.regmana = 30;
				_root.regstamina = 2.1;
				_root.doenemystats();
				_root.limitname = 'Shadow Strike';
				_root.boss = true;
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
		}
		frame 2 {
			if (_root.enmlimit >= _root.enmmaxlimit) {
				_root.enmlimitbreak = true;
				_root.doEnmattack2();
			} else {
				_root.enmlimit += 2;
			}
		}
		frame 6 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 8 {
			smoke1.play();
		}
		frame 9 {
			_root.enmattacking = true;
			_root.enemyattack = _root.enemyattack1;
		}
		frame 9 {
			smoke2.play();
		}
		frame 10 {
			smoke3.play();
		}
		frame 11 {
			smoke4.play();
		}
		frame 12 {
			smoke5.play();
		}
		frame 15 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('swing3');
				_root.enmsound2.start();
			}
		}
		frame 33 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('woosh2');
				_root.enmsound1.start();
			}
		}
		frame 38 {
			_root.enmattacking = false;
		}
		frame 44 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 44 {
			smoke1.play();
		}
		frame 46 {
			gotoAndStop(1);
		}
		frame 47 {
			_root.doenmlimitbreak();
			_root.enemyattack = _root.enemyattack2;
			_root.pressnumber = random(9);
			_root.realtimeevent = true;
		}
		frame 108 {
			if (_root.realtimeevent == true) {
				_root.realtimeevent = false;
			} else {
				gotoAndPlay(125);
			}
		}
		frame 109 {
			if (_root.sfxmute == false) {
				_root.enmsound.attachSound('swing3');
				_root.enmsound.start();
			}
		}
		frame 136 {
			_root.black.play();
			_root.menuon = false;
		}
		frame 140 {
			_root.doenmmagicend();
		}
		frame 141 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 154 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 193 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 213 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('woosh2');
				_root.enmsound1.start();
			}
		}
		frame 221 {
			gotoAndStop(1);
		}
		frame 221 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 280 {
			gotoAndStop(1);
		}
		frame 290 {
			stop();
		}
		frame 300 {
			stop();
		}
		frame 325 {
			gotoAndStop(1);
		}
	}
	movieClip 7834	{
	}
	movieClip 7836	{
	}
	movieClip 7840	{
	}
	movieClip 7845	{
	}
	movieClip 7846	{
		frame 1 {
			gotoAndPlay(random(10));
		}
	}
	movieClip 7849	{
	}
	movieClip 7850	{
		frame 1 {
			gotoAndPlay(random(10));
		}
	}
	movieClip 7853	{
	}
	movieClip 7856	{
	}
	movieClip 7857	{
		frame 1 {
			stop();
			if (_root.slow == true or _root.goto2 == true) {
				gotoAndStop(2);
			}
			if (_root.stun == true or _root.goto3 == true) {
				gotoAndStop(3);
			}
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 7859	{
	}
	movieClip 7861	{
	}
	movieClip 7863	{
	}
	movieClip 7865	{
	}
	movieClip 7867	{
	}
	movieClip 7869	{
		frame 1 {
			chance = random(2) + 1;
			if (chance == 1) {
				gotoAndPlay(50);
			}
		}
	}
	movieClip 7870	{
		frame 1 {
			chance = random(2) + 1;
			if (chance == 1) {
				gotoAndPlay(37);
			}
		}
	}
	movieClip 7871	{
	}
	movieClip 7872	{
	}
	movieClip 7878	{
		frame 1 {
			if (_root.story != 221) {
				stop();
			}
		}
		frame 51 {
			stop();
		}
	}
	movieClip 7881	{
		frame 1 {
			if (_root.stun == true) {
				gotoAndStop(25);
			}
			if (_root.goto2 == true or _root.goto3 == true) {
				gotoAndPlay('slow');
			}
		}
		frame 24 {
			_parent.gotoAndStop(1);
		}
		frame 81 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7882	{
		frame 1 {
			if (_root.battlestart == true) {
				_root.enemyname = 'Golden Demon';
				_root.enmlevel = 30;
				_root.hurtsfx.attachSound('empty');
				_root.growl1.attachSound('empty');
				_root.growl2.attachSound('empty');
				_root.growl3.attachSound('empty');
				_root.goldX = 25;
				_root.enmmaxlimit = 35;
				_root.enmattack1stam = 90;
				_root.enmattack2stam = 110;
				_root.enmattack3stam = 0;
				_root.countmaximum = 110;
				_root.nrattacks = 2;
				_root.enemyattack = 20;
				_root.enemymaxhealth = 2500;
				_root.enemymaxmana = 1300;
				_root.enemydefense = 10;
				_root.enmdodge = 5;
				_root.firedefense = 1;
				_root.icedefense = 1;
				_root.thunderdefense = 1;
				_root.darkdefense = 0;
				_root.reghealth = 35;
				_root.regmana = 20;
				_root.regstamina = 2.1;
				_root.doenemystats();
				_root.ranged = true;
				_root.magicimmunity = true;
				_root.boss = true;
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
		}
		frame 2 {
			if (_root.enmlimit >= _root.enmmaxlimit && (_root.enemyhealth > 2100 or _root.story != 240)) {
				_root.enmlimitbreak = true;
				_root.doEnmattack3();
			} else {
				_root.light1X.play();
				_root.light2X.play();
				_root.enmlimit += 1;
			}
		}
		frame 2 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('diss');
				_root.enmsound1.start();
			}
		}
		frame 5 {
			_root.enmattacking = true;
		}
		frame 15 {
			_root.groundlight1.gotoAndPlay(2);
		}
		frame 21 {
			_root.flashXZ.play();
		}
		frame 21 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('catapult4');
				_root.enmsound2.start();
			}
		}
		frame 25 {
			_root.enmattacking = false;
		}
		frame 49 {
			gotoAndStop(1);
		}
		frame 50 {
			if (_root.enmlimit >= _root.enmmaxlimit && (_root.enemyhealth > 2100 or _root.story != 240)) {
				_root.enmlimitbreak = true;
				_root.doEnmattack3();
			} else {
				if (_root.enemymana >= 60 && _root.enemyhealth != _root.enemymaxhealth) {
					_root.enmlimit += 2;
					_root.enmattacking = true;
				} else {
					_root.doAttackelse();
				}
			}
		}
		frame 61 {
			_root.enmstatmagic = true;
			_root.enemymana -= 60;
			_root.playblack = true;
			_root.staminablow = true;
			_root.dodrain = true;
		}
		frame 66 {
			_root.flashX.play();
			_root.groundlight1.gotoAndPlay(2);
			if (_root.attacking == false && _root.dodge == false) {
				_root.staminadrain_MC.gotoAndPlay(2);
				if (_root.permcolor == false) {
					_root.char_MC.gotoAndPlay('dark');
				}
			}
		}
		frame 66 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('defendcaster');
				_root.enmsound1.start();
			}
		}
		frame 79 {
			_root.doendPause();
		}
		frame 86 {
			gotoAndStop(1);
		}
		frame 87 {
			_root.doenmlimitbreak();
			_root.enmmagic = true;
			chance = random(2) + 1;
			if (chance == 1) {
				_root.action = _root.enemyname + ' casts' + '\n' + 'Confusion';
			} else {
				_root.action = _root.enemyname + ' casts' + '\n' + 'Blind';
			}
			_root.actiontext();
			_root.pressnumber = random(9);
			_root.realtimeevent = true;
		}
		frame 87 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('deathpactX');
				_root.enmsound1.start();
			}
		}
		frame 108 {
			if (_root.sfxmute == false && chance == 1) {
				_root.enmsound2.attachSound('breathfrost');
				_root.enmsound2.start();
			}
		}
		frame 114 {
			if (_root.sfxmute == false && chance == 1) {
				_root.enmsound3.attachSound('rhino');
				_root.enmsound3.start();
			}
		}
		frame 125 {
			_root.enemymana -= 160;
			if (_root.realtimeevent == true) {
				if (chance == 1) {
					if (_root.character == 1) {
						_root.counterCoreConfusion = 0;
						chance = random(3);
						if (chance == 0) {
							_root.corecon = true;
						}
						if (_root.coreconfuse == false) {
							_root.coreconfuse = true;
							_root.countCoreConfusionID = setInterval(_root.doCounterCoreConfusion, 1000);
						}
					} else {
						if (_root.character == 2) {
							_root.counterCalebConfusion = 0;
							chance = random(3);
							if (chance == 0) {
								_root.calebcon = true;
							}
							if (_root.calebconfuse == false) {
								_root.calebconfuse = true;
								_root.countCalebConfusionID = setInterval(_root.doCounterCalebConfusion, 1000);
							}
						}
					}
					_root.confuse_MC.gotoAndPlay(2);
					_root.stat1.stat.stattxt.text = 'Confused';
					_root.stat1.gotoAndPlay(2);
					_root.char_MC.gotoAndPlay('confuse');
				} else {
					_root.blind_MC.gotoAndPlay(2);
				}
				_root.realtimeevent = false;
			}
		}
		frame 172 {
			_root.black.play();
			_root.menuon = false;
		}
		frame 179 {
			_root.doenmmagicend();
		}
		frame 180 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('spellsteal');
				_root.enmsound1.start();
			}
		}
		frame 210 {
			if (_root.story == 251) {
				_root.enmdodgeX = false;
				if (_root.character == 1) {
					_root.page1 = 'Roy: He took the crystals!';
					_root.page2 = 'Roy: What... is... that?';
					_root.doStartTextX();
					_root.bhud.menuz.menuzZ.counter_BT._visible = true;
					_root.bhud.menuz.menuzZ.counterX._visible = false;
				} else {
					if (_root.character == 2) {
						_root.page1 = 'Caleb: He took the crystals!';
						_root.page2 = 'Caleb: What is this new devilry?';
						_root.doStartTextX();
					}
				}
				_root.story = 252;
				_root.imbalance = false;
				_root.enemy_MC._visible = false;
			}
		}
		frame 226 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('blinkbirth');
				_root.enmsound1.start();
			}
		}
		frame 232 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 291 {
			gotoAndStop(1);
		}
	}
	movieClip 7885	{
	}
	movieClip 7887	{
	}
	movieClip 7889	{
	}
	movieClip 7891	{
	}
	movieClip 7893	{
	}
	movieClip 7895	{
	}
	movieClip 7898	{
	}
	movieClip 7901	{
	}
	movieClip 7904	{
	}
	movieClip 7907	{
	}
	movieClip 7910	{
	}
	movieClip 7913	{
	}
	movieClip 7918	{
	}
	movieClip 7919	{
		frame 1 {
			stop();
			if (_root.slow == true or _root.goto2 == true) {
				gotoAndStop(2);
			}
			if (_root.stun == true or _root.goto3 == true) {
				gotoAndStop(3);
			}
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 7920	{
		frame 12 {
			stop();
		}
	}
	movieClip 7921	{
	}
	movieClip 7922	{
		frame 43 {
			stop();
		}
	}
	movieClip 7923	{
		frame 7 {
			stop();
		}
	}
	movieClip 7924	{
	}
	movieClip 7925	{
		frame 1 {
			if (_root.stun == true) {
				gotoAndStop(25);
			}
			if (_root.goto2 == true or _root.goto3 == true) {
				gotoAndPlay('slow');
			}
		}
		frame 28 {
			_parent.gotoAndStop(1);
		}
		frame 81 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7926	{
		frame 30 {
			stop();
		}
	}
	movieClip 7927	{
	}
	movieClip 7928	{
		frame 159 {
			stop();
		}
	}
	movieClip 7930	{
	}
	movieClip 7931	{
		frame 1 {
			if (_root.battlestart == true) {
				_root.firstcarrion = true;
				_root.enemyname = 'Carrionhound';
				_root.enmlevel = 7;
				_root.hurtsfx.attachSound('ImpaleLand');
				_root.growl1.attachSound('seag2');
				_root.growl2.attachSound('seag3');
				_root.growl3.attachSound('DragonSpawnYes1');
				_root.goldX = 20;
				_root.enmmaxlimit = 25;
				_root.enmattack1stam = 80;
				_root.enmattack2stam = 0;
				_root.countmaximum = 90;
				_root.nrattacks = 1;
				_root.enemyattack = 15 + random(5);
				_root.enemymaxhealth = 230 + Math.round(Math.random() * 5) * 5;
				_root.enemymaxmana = 0;
				_root.enemydefense = 5;
				_root.enmdodge = 7;
				_root.firedefense = 1;
				_root.icedefense = 1;
				_root.thunderdefense = 2;
				_root.darkdefense = 2;
				_root.reghealth = 20;
				_root.regmana = 30;
				_root.regstamina = 2;
				_root.doenemystats();
				_root.limitname = 'Hellbite';
				if (_root.summon == false) {
					_root.boss = true;
				}
				if (_root.story == 252) {
					_root.enmstamina = 0;
					_root.action = 'Carrionhound attacks!';
					_root.actiontext();
					_root.story = 253;
					_root.battlestart = false;
					_root.goldX = 50;
				}
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
		}
		frame 2 {
			if (_root.enmlimit >= _root.enmmaxlimit) {
				_root.enmlimitbreak = true;
				_root.doEnmattack2();
			} else {
				_root.enmlimit += 2;
			}
		}
		frame 8 {
			if (_root.sfxmute == false) {
				chance = random(5);
				if (chance == 1) {
					_root.growl1.start();
				} else {
					if (chance == 2) {
						_root.growl2.start();
					}
				}
			}
		}
		frame 11 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 13 {
			_root.enmattacking = true;
		}
		frame 23 {
			if (_root.attacking == false && _root.dodge == false) {
				_root.drool_MC.gotoAndPlay(2);
			}
		}
		frame 32 {
			_root.enmattacking = false;
		}
		frame 39 {
			gotoAndStop(1);
		}
		frame 40 {
			_root.doenmlimitbreak();
			if (_root.character != 1 && _root.story == 253) {
				_root.doSwitchcore();
			}
		}
		frame 80 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
			if (_root.sfxmute == false) {
				chance = random(3);
				if (chance == 1) {
					_root.growl1.start();
				} else {
					if (chance == 2) {
						_root.growl2.start();
					}
				}
			}
		}
		frame 89 {
			if (_root.story == 253) {
				_root.story = 254;
			}
			if (_root.permcolor == false) {
				_root.char_MC.gotoAndPlay('dark');
			}
			_root.drool_MC.gotoAndPlay(2);
			_root.magicchance = 1;
			_root.poisoncountX = 55;
			_root.doPoison();
		}
		frame 101 {
			_root.black.play();
			_root.menuon = false;
		}
		frame 105 {
			_root.doenmmagicend();
		}
		frame 106 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 151 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 159 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 189 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 196 {
			gotoAndStop(1);
		}
		frame 259 {
			gotoAndStop(1);
		}
		frame 270 {
			stop();
		}
		frame 283 {
			stop();
		}
		frame 290 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 303 {
			gotoAndStop(1);
		}
		frame 304 {
			_root.firemark2.gotoAndPlay(2);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 304 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('darkmagic');
				_root.enmsound1.start();
			}
		}
		frame 313 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('diss');
				_root.enmsound2.start();
			}
		}
		frame 389 {
			if (_root.sfxmute == false) {
				_root.enmsound3.attachSound('seag3');
				_root.enmsound3.start();
			}
		}
		frame 435 {
			_root.doendPause();
		}
		frame 461 {
			gotoAndStop(1);
		}
	}
	movieClip 7937	{
		frame 1 {
			if (_root.thanatordark == 1) {
				stop();
			} else {
				if (_root.thanatordark == 2) {
					gotoAndPlay(2);
				} else {
					if (_root.thanatordark == 3) {
						gotoAndStop(2);
					}
				}
			}
		}
	}
	movieClip 7941	{
		frame 1 {
			if (_root.thanatordark == 1) {
				stop();
			} else {
				if (_root.thanatordark == 2) {
					gotoAndPlay(2);
				} else {
					if (_root.thanatordark == 3) {
						gotoAndStop(2);
					}
				}
			}
		}
	}
	movieClip 7945	{
		frame 1 {
			if (_root.thanatordark == 1) {
				stop();
			} else {
				if (_root.thanatordark == 2) {
					gotoAndPlay(2);
				} else {
					if (_root.thanatordark == 3) {
						gotoAndStop(2);
					}
				}
			}
		}
	}
	movieClip 7949	{
		frame 1 {
			if (_root.thanatordark == 1) {
				stop();
			} else {
				if (_root.thanatordark == 2) {
					gotoAndPlay(2);
				} else {
					if (_root.thanatordark == 3) {
						gotoAndStop(2);
					}
				}
			}
		}
	}
	movieClip 7953	{
		frame 1 {
			if (_root.thanatordark == 1) {
				stop();
			} else {
				if (_root.thanatordark == 2) {
					gotoAndPlay(2);
				} else {
					if (_root.thanatordark == 3) {
						gotoAndStop(2);
					}
				}
			}
		}
	}
	movieClip 7957	{
		frame 1 {
			if (_root.thanatordark == 1) {
				stop();
			} else {
				if (_root.thanatordark == 2) {
					gotoAndPlay(2);
				} else {
					if (_root.thanatordark == 3) {
						gotoAndStop(2);
					}
				}
			}
		}
	}
	movieClip 7958	{
	}
	movieClip 7964	{
		frame 1 {
			if (_root.thanatordark == 1) {
				stop();
			} else {
				if (_root.thanatordark == 2) {
					gotoAndPlay(2);
				} else {
					if (_root.thanatordark == 3) {
						gotoAndStop(2);
					}
				}
			}
		}
	}
	movieClip 7970	{
		frame 1 {
			if (_root.thanatordark == 1) {
				stop();
			} else {
				if (_root.thanatordark == 2) {
					gotoAndPlay(2);
				} else {
					if (_root.thanatordark == 3) {
						gotoAndStop(2);
					}
				}
			}
		}
	}
	movieClip 7973	{
	}
	movieClip 7984	{
		frame 1 {
			if (_root.thanatordark == 1) {
				gotoAndPlay(2);
			} else {
				if (_root.thanatordark == 2) {
					gotoAndPlay(130);
				} else {
					if (_root.thanatordark == 3) {
						gotoAndStop(130);
					}
				}
			}
		}
		frame 129 {
			gotoAndPlay(1);
		}
		frame 150 {
			_root.thanatordark = 1;
		}
	}
	movieClip 7990	{
		frame 1 {
			if (_root.thanatordark == 1) {
				stop();
			} else {
				if (_root.thanatordark == 2) {
					gotoAndPlay(2);
				} else {
					if (_root.thanatordark == 3) {
						gotoAndStop(2);
					}
				}
			}
		}
	}
	movieClip 7991	{
	}
	movieClip 7996	{
		frame 1 {
			if (_root.thanatordark == 1) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 7997	{
		frame 1 {
			stop();
			if (_root.slow == true or _root.goto2 == true) {
				gotoAndStop(2);
			}
			if (_root.stun == true or _root.goto3 == true) {
				gotoAndStop(3);
			}
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 7998	{
	}
	movieClip 7999	{
	}
	movieClip 8000	{
	}
	movieClip 8004	{
		frame 1 {
			if (_root.thanatordark == 1) {
				gotoAndPlay(2);
			} else {
				gotoAndStop(31);
			}
		}
		frame 30 {
			gotoAndPlay(1);
		}
	}
	movieClip 8005	{
		frame 1 {
			if (_root.stun == true) {
				gotoAndStop(25);
			}
			if (_root.goto2 == true or _root.goto3 == true) {
				gotoAndPlay('slow');
			}
		}
		frame 24 {
			_parent.gotoAndStop(1);
		}
		frame 76 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 8006	{
		frame 20 {
			stop();
		}
	}
	movieClip 8007	{
	}
	movieClip 8008	{
	}
	movieClip 8009	{
	}
	movieClip 8010	{
	}
	movieClip 8011	{
		frame 1 {
			if (_root.battlestart == true) {
				if (_root.firstthanator == false && _root.summon == false) {
					gotoAndPlay('birth');
				}
				_root.enemyname = 'Thanator';
				_root.enmlevel = 9;
				_root.hurtsfx.attachSound('metalchop3');
				_root.growl1.attachSound('nether1');
				_root.growl2.attachSound('nether2');
				_root.growl3.attachSound('DragonYesAttack3');
				_root.goldX = 20;
				_root.enmmaxlimit = 0;
				_root.enmattack1stam = 80;
				_root.enmattack2stam = 100;
				_root.countmaximum = 100;
				_root.nrattacks = 2;
				_root.enemyattack1 = 20;
				_root.enemyattack2 = 10;
				_root.enemymaxhealth = 320;
				_root.enemymaxmana = 0;
				_root.enemydefense = 30;
				_root.enmdodge = 10;
				_root.firedefense = 2;
				_root.icedefense = 1;
				_root.thunderdefense = 0;
				_root.darkdefense = 1;
				_root.reghealth = 0;
				_root.regmana = 30;
				_root.regstamina = 1.7;
				_root.doenemystats();
				_root.giant = true;
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
			if (_root.enemyhealth < 50 && _root.thanatordark == 3) {
				_root.thanatordark = 2;
				gotoAndPlay('dark');
			}
		}
		frame 2 {
			_root.enmarmorpierce = true;
			if (_root.enemy_MC.getDepth() > _root.char_MC.getDepth()) {
				_root.char_MC.swapDepths(_root.enemy_MC.getDepth());
			}
		}
		frame 11 {
			_root.enmattacking = true;
			_root.enemyattack = _root.enemyattack1;
		}
		frame 17 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 33 {
			_root.enmattacking = false;
		}
		frame 48 {
			gotoAndStop(1);
		}
		frame 49 {
			if (_root.enemy_MC.getDepth() > _root.char_MC.getDepth()) {
				_root.char_MC.swapDepths(_root.enemy_MC.getDepth());
			}
		}
		frame 58 {
			_root.enmattacking = true;
			_root.enemyattack = _root.enemyattack2;
		}
		frame 62 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 70 {
			_root.staminablow = true;
		}
		frame 72 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('swing32');
				_root.enmsound2.start();
			}
		}
		frame 93 {
			_root.enmattacking = false;
		}
		frame 99 {
			gotoAndStop(1);
		}
		frame 102 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 152 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 180 {
			gotoAndStop(1);
		}
		frame 185 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('ominous');
				_root.enmsound1.start();
			}
		}
		frame 231 {
			gotoAndStop(1);
		}
		frame 290 {
			gotoAndStop(1);
		}
		frame 310 {
			stop();
		}
		frame 330 {
			stop();
		}
		frame 355 {
			gotoAndStop(1);
		}
		frame 356 {
			++_root.gamepause;
		}
		frame 456 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('taunt');
				_root.enmsound1.start();
			}
		}
		frame 471 {
			_root.doendPause();
			_root.doendPause();
		}
		frame 494 {
			_root.gotoBattlescreen();
			gotoAndStop(1);
		}
	}
	movieClip 8013	{
	}
	movieClip 8015	{
	}
	movieClip 8017	{
	}
	movieClip 8019	{
	}
	movieClip 8021	{
	}
	movieClip 8023	{
	}
	movieClip 8025	{
	}
	movieClip 8027	{
	}
	movieClip 8029	{
	}
	movieClip 8031	{
	}
	movieClip 8033	{
	}
	movieClip 8035	{
	}
	movieClip 8037	{
	}
	movieClip 8039	{
	}
	movieClip 8041	{
	}
	movieClip 8043	{
	}
	movieClip 8045	{
	}
	movieClip 8047	{
	}
	movieClip 8049	{
	}
	movieClip 8051	{
	}
	movieClip 8053	{
	}
	movieClip 8054	{
	}
	movieClip 8055	{
		frame 1 {
			stop();
			if (_root.slow == true or _root.goto2 == true) {
				gotoAndStop(2);
			}
			if (_root.stun == true or _root.goto3 == true) {
				gotoAndStop(3);
			}
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 8058	{
	}
	movieClip 8059	{
	}
	movieClip 8060	{
	}
	movieClip 8061	{
		frame 51 {
			stop();
		}
	}
	movieClip 8062	{
	}
	movieClip 8063	{
	}
	movieClip 8064	{
		frame 30 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 8065	{
		frame 30 {
			stop();
		}
	}
	movieClip 8066	{
		frame 135 {
			stop();
		}
	}
	movieClip 8067	{
		frame 1 {
			if (_root.battlestart == true) {
				if (_root.story == 220) {
					setTimeout(_root.doBirth, 1000);
					setTimeout(function () {
						_root.story = 221;
					}, 1000);
				}
				_root.firststalker = true;
				_root.enemyname = 'Phantom Stalker';
				_root.enmlevel = 10;
				_root.hurtsfx.attachSound('mat');
				_root.growl1.attachSound('DragonSpawnWhat1');
				_root.growl2.attachSound('DragonSpawnYes1');
				_root.growl3.attachSound('DragonPissed2');
				_root.goldX = 15;
				_root.enmmaxlimit = 0;
				_root.enmattack1stam = 80;
				_root.enmattack2stam = 90;
				_root.countmaximum = 100;
				_root.nrattacks = 2;
				_root.enemyattack1 = 15;
				_root.enemyattack2 = 20;
				_root.enemymaxhealth = 220;
				_root.enemymaxmana = 0;
				_root.enemydefense = 5;
				_root.enmdodge = 10;
				_root.firedefense = 2;
				_root.icedefense = 1;
				_root.thunderdefense = 0;
				_root.darkdefense = 1;
				_root.reghealth = 30;
				_root.regmana = 25;
				_root.regstamina = 1.9;
				_root.doenemystats();
				_root.giant = true;
				if (_root.summon == false) {
					_root.boss = true;
				}
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
		}
		frame 10 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('scarab2');
				_root.enmsound1.start();
			}
		}
		frame 17 {
			_root.enmattacking = true;
			_root.enemyattack = _root.enemyattack1;
			_root.playblack = true;
			_root.tryenmslow = true;
			_root.magicchance = 2;
			_root.countX = 5;
			_root.staminablow = true;
			_root.dodrain = true;
		}
		frame 30 {
			_root.enmattacking = false;
		}
		frame 45 {
			gotoAndStop(1);
		}
		frame 51 {
			_root.enmattacking = true;
			_root.enemyattack = _root.enemyattack2;
		}
		frame 54 {
			if (_root.sfxmute == false) {
				chance = random(4);
				if (chance == 1) {
					_root.growl1.start();
				} else {
					if (chance == 2) {
						_root.growl2.start();
					}
				}
			}
		}
		frame 77 {
			_root.enmattacking = false;
		}
		frame 97 {
			gotoAndStop(1);
		}
		frame 100 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 159 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 187 {
			gotoAndStop(1);
		}
		frame 246 {
			gotoAndStop(1);
		}
		frame 266 {
			stop();
		}
		frame 286 {
			stop();
		}
		frame 311 {
			gotoAndStop(1);
		}
		frame 312 {
			++_root.gamepause;
		}
		frame 355 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('dragonspawnyes2');
				_root.enmsound1.start();
			}
		}
		frame 422 {
			_root.doendPause();
			_root.doendPause();
		}
		frame 445 {
			_root.gotoBattlescreen();
			gotoAndStop(1);
		}
	}
	movieClip 8071	{
		frame 1 {
			gotoAndStop(_root.enmstyle3);
		}
	}
	movieClip 8072	{
	}
	movieClip 8078	{
		frame 1 {
			gotoAndStop(_root.enmstyle3);
		}
	}
	movieClip 8080	{
	}
	movieClip 8081	{
	}
	movieClip 8085	{
		frame 1 {
			gotoAndStop(_root.enmstyle3);
		}
	}
	movieClip 8086	{
	}
	movieClip 8089	{
		frame 1 {
			stop();
			onEnterFrame = function () {
				if (_root.enmattacking == true) {
					_root.enmattacking = false;
					gotoAndPlay(2);
					_root.enemy_MC.gotoAndPlay('dark');
				}
			};
		}
	}
	movieClip 8093	{
		frame 1 {
			gotoAndStop(_root.enmstyle3);
		}
	}
	movieClip 8098	{
		frame 1 {
			gotoAndStop(_root.enmstyle2);
		}
	}
	movieClip 8104	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 8105	{
		frame 1 {
			gotoAndPlay(random(100));
		}
	}
	movieClip 8106	{
	}
	movieClip 8111	{
		frame 1 {
			gotoAndStop(_root.enmstyle3);
		}
	}
	movieClip 8112	{
	}
	movieClip 8113	{
		frame 1 {
			stop();
			if (_root.slow == true or _root.goto2 == true) {
				gotoAndStop(2);
			}
			if (_root.stun == true or _root.goto3 == true) {
				gotoAndStop(3);
			}
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 8114	{
		frame 1 {
			if (_root.stun == true) {
				gotoAndStop(45);
			}
			if (_root.goto2 == true or _root.goto3 == true) {
				gotoAndPlay('slow');
			}
		}
		frame 45 {
			_parent.gotoAndStop(1);
		}
		frame 144 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 8115	{
		frame 9 {
			stop();
		}
	}
	movieClip 8116	{
		frame 1 {
			if (_root.battlestart == true) {
				_root.enemyname = 'Ghoul';
				_root.enmlevel = 7;
				_root.hurtsfx.attachSound('empty');
				_root.growl1.attachSound('hydra1');
				_root.growl2.attachSound('hydra2');
				_root.growl3.attachSound('haunt');
				_root.goldX = 18;
				_root.enmmaxlimit = 0;
				_root.enmattack1stam = 110;
				_root.countmaximum = 120;
				_root.nrattacks = 1;
				_root.enemyattack = 15 + random(10);
				_root.enemymaxhealth = 170 + Math.round(Math.random() * 4) * 10;
				_root.enemymaxmana = 0;
				_root.enemydefense = 10;
				_root.enmdodge = 6;
				_root.firedefense = 2;
				_root.icedefense = 1;
				_root.thunderdefense = 2;
				_root.darkdefense = 2;
				_root.reghealth = 0;
				_root.regmana = 30;
				_root.regstamina = 1.8;
				_root.doenemystats();
				_root.ranged = true;
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
		}
		frame 4 {
			_root.enmattacking = true;
			_root.tryenmpoison = true;
			_root.dodrain = true;
			_root.magicchance = 4;
			_root.poisoncountX = 30;
			if (_root.permcolor == false) {
				_root.char_MC.gotoAndPlay('dark');
			}
		}
		frame 4 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('sleepbirth');
				_root.enmsound1.start();
			}
		}
		frame 15 {
			_root.groundlight1.gotoAndPlay(2);
			_root.playblack = true;
		}
		frame 22 {
			_root.flashXZ.play();
		}
		frame 22 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('catapult4');
				_root.enmsound2.start();
			}
		}
		frame 25 {
			gotoAndStop(1);
		}
		frame 27 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('Ethereal3');
				_root.enmsound1.start();
			}
		}
		frame 78 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 177 {
			gotoAndStop(1);
		}
		frame 187 {
			stop();
		}
	}
	movieClip 8121	{
		frame 1 {
			gotoAndStop(_root.enmstyle3);
		}
	}
	movieClip 8122	{
	}
	movieClip 8127	{
		frame 1 {
			gotoAndStop(_root.enmstyle3);
		}
	}
	movieClip 8131	{
		frame 1 {
			gotoAndStop(_root.enmstyle3);
		}
	}
	movieClip 8132	{
	}
	movieClip 8136	{
		frame 1 {
			gotoAndStop(_root.enmstyle4);
		}
	}
	movieClip 8141	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 8142	{
		frame 1 {
			gotoAndPlay(random(100));
		}
	}
	movieClip 8143	{
	}
	movieClip 8149	{
		frame 1 {
			gotoAndStop(_root.enmstyle3);
		}
	}
	movieClip 8150	{
	}
	movieClip 8151	{
		frame 1 {
			if (_root.stun == true) {
				gotoAndStop(30);
			}
			if (_root.goto2 == true or _root.goto3 == true) {
				gotoAndPlay('slow');
			}
		}
		frame 30 {
			_parent.gotoAndStop(1);
		}
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 8152	{
		frame 20 {
			stop();
		}
	}
	movieClip 8153	{
		frame 1 {
			if (_root.battlestart == true) {
				_root.enemyname = 'Ghoul';
				_root.enmlevel = 7;
				_root.hurtsfx.attachSound('empty');
				_root.growl1.attachSound('hydra1');
				_root.growl2.attachSound('hydra2');
				_root.growl3.attachSound('haunt');
				_root.goldX = 18;
				_root.enmmaxlimit = 0;
				_root.enmattack1stam = 110;
				_root.countmaximum = 120;
				_root.nrattacks = 1;
				_root.enemyattack = 15 + random(10);
				_root.enemymaxhealth = 170 + Math.round(Math.random() * 4) * 10;
				_root.enemymaxmana = 0;
				_root.enemydefense = 5;
				_root.enmdodge = 6;
				_root.firedefense = 2;
				_root.icedefense = 1;
				_root.thunderdefense = 2;
				_root.darkdefense = 2;
				_root.reghealth = 0;
				_root.regmana = 30;
				_root.regstamina = 1.8;
				_root.doenemystats();
				_root.ranged = true;
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
		}
		frame 4 {
			_root.enmattacking = true;
			_root.tryenmpoison = true;
			_root.dodrain = true;
			_root.magicchance = 4;
			_root.poisoncountX = 30;
			if (_root.permcolor == false) {
				_root.char_MC.gotoAndPlay('dark');
			}
		}
		frame 4 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('sleepbirth');
				_root.enmsound1.start();
			}
		}
		frame 15 {
			_root.groundlight1.gotoAndPlay(2);
			_root.playblack = true;
		}
		frame 22 {
			_root.flashXZ.play();
		}
		frame 22 {
			if (_root.sfxmute == false) {
				_root.enmsound2.attachSound('catapult4');
				_root.enmsound2.start();
			}
		}
		frame 25 {
			gotoAndStop(1);
		}
		frame 27 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('Ethereal3');
				_root.enmsound1.start();
			}
		}
		frame 78 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 177 {
			gotoAndStop(1);
		}
		frame 187 {
			stop();
		}
	}
	movieClip 8156	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 8159	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 8162	{
	}
	movieClip 8173	{
	}
	movieClip 8174	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 8175	{
	}
	movieClip 8179	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 8182	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 8183	{
	}
	movieClip 8186	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 8190	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 8191	{
		frame 1 {
			gotoAndPlay(random(100));
		}
	}
	movieClip 8192	{
		frame 1 {
			stop();
			if (_root.slow == true or _root.goto2 == true) {
				gotoAndStop(2);
			}
			if (_root.stun == true or _root.goto3 == true) {
				gotoAndStop(3);
			}
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 8193	{
	}
	movieClip 8194	{
	}
	movieClip 8198	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 8199	{
	}
	movieClip 8200	{
	}
	movieClip 8201	{
		frame 30 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 8205	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 8206	{
		frame 1 {
			if (_root.stun == true) {
				gotoAndStop(25);
			}
			if (_root.goto2 == true or _root.goto3 == true) {
				gotoAndPlay('slow');
			}
		}
		frame 24 {
			_parent.gotoAndStop(1);
		}
		frame 76 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 8210	{
		frame 1 {
			gotoAndStop(_root.enmstyle1);
		}
	}
	movieClip 8211	{
		frame 1 {
			if ((_root.Rattack == 2 or _root.dodge == true) && _root.character == 1) {
				gotoAndPlay('short');
			}
		}
		frame 23 {
			stop();
		}
	}
	movieClip 8213	{
	}
	movieClip 8214	{
		frame 1 {
			if (_root.battlestart == true) {
				_root.enemyname = 'Abacor';
				_root.hurtsfx.attachSound('ImpaleLand');
				_root.growl1.attachSound('asay61');
				_root.growl2.attachSound('DragonSpawnYes1');
				_root.growl3.attachSound('DragonPissed3');
				_root.enmmaxlimit = 0;
				_root.enmattack1stam = 60;
				_root.countmaximum = 70;
				_root.nrattacks = 1;
				if (_root.story < 80) {
					_root.enmlevel = 3;
					_root.enemyattack = 5 + random(6);
					_root.enemymaxhealth = 20 + Math.round(Math.random() * 3) * 5;
					_root.enmdodge = 15;
					_root.regstamina = 1.6;
					_root.goldX = 7;
				} else {
					_root.enmlevel = 5;
					_root.enemyattack = 7 + random(8);
					_root.enemymaxhealth = 40 + Math.round(Math.random() * 4) * 5;
					_root.enmdodge = 6;
					_root.regstamina = 1.6;
					_root.goldX = 13;
				}
				_root.enemymaxmana = 0;
				_root.enemydefense = 5;
				_root.firedefense = 1;
				_root.icedefense = 1;
				_root.thunderdefense = 1;
				_root.darkdefense = 1;
				_root.reghealth = 0;
				_root.regmana = 30;
				_root.doenemystats();
			}
		}
		frame 1 {
			stop();
			_root.doEnmStand();
		}
		frame 15 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
			if (_root.sfxmute == false) {
				chance = random(5);
				if (chance == 1) {
					_root.growl1.start();
				} else {
					if (chance == 2) {
						_root.growl2.start();
					}
				}
			}
		}
		frame 19 {
			_root.enmattacking = true;
			_root.tryenmpoison = true;
			_root.magicchance = 6;
			_root.poisoncountX = 20;
		}
		frame 27 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 40 {
			_root.enmattacking = false;
		}
		frame 44 {
			gotoAndStop(1);
		}
		frame 45 {
			if (_root.sfxmute == false) {
				_root.enmsound1.attachSound('swing32');
				_root.enmsound1.start();
			}
		}
		frame 97 {
			_root.enmdodgeX = false;
			gotoAndStop(1);
		}
		frame 127 {
			gotoAndStop(1);
		}
		frame 180 {
			gotoAndStop(1);
		}
		frame 190 {
			stop();
		}
		frame 200 {
			stop();
		}
		frame 227 {
			gotoAndStop(1);
		}
	}
	movieClip 8215	{
		frame 1 {
			gotoAndStop('timberwolf');
			if (_root.ename != undefined && _root.ename != '') {
				if (_root.ename != 'ghoul') {
					gotoAndStop(_root.ename);
				} else {
					goto = random(2);
					if (goto == 0) {
						gotoAndStop('ghoul1');
					} else {
						if (goto == 1) {
							gotoAndStop('ghoul2');
						}
					}
				}
			} else {
				if (_root.summon == true) {
					if (_root.schoice == 1) {
						gotoAndStop('timberwolf');
					} else {
						if (_root.schoice == 2) {
							gotoAndStop('boar');
						} else {
							if (_root.schoice == 3) {
								gotoAndStop('abacor');
							} else {
								if (_root.schoice == 4) {
									gotoAndStop('bandit');
								} else {
									if (_root.schoice == 5) {
										gotoAndStop('spitter');
									} else {
										if (_root.schoice == 6) {
											gotoAndStop('gornak');
										} else {
											if (_root.schoice == 7) {
												gotoAndStop('thanator');
											} else {
												if (_root.schoice == 8) {
													gotoAndStop('stalker');
												} else {
													if (_root.schoice == 9) {
														gotoAndStop('carrionhound');
													} else {
														if (_root.schoice == 10) {
															goto = random(2);
															if (goto == 0) {
																gotoAndStop('ghoul1');
															} else {
																if (goto == 1) {
																	gotoAndStop('ghoul2');
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				} else {
					if (_root.training == true) {
						gotoAndStop('rig');
					} else {
						if (_root.story == 51) {
							gotoAndStop('bandit');
						} else {
							if (_root.story == 180) {
								gotoAndStop('dion');
							} else {
								if (_root.story == 220 or _root.story == 221) {
									gotoAndStop('stalker');
								} else {
									if (_root.story == 240) {
										gotoAndStop('demon');
									} else {
										if (_root.story == 340) {
											gotoAndStop('bandit');
											_root.twomonsters = 1;
										} else {
											if (_root.questdrunk == 5) {
												gotoAndStop('bandit');
												_root.twomonsters = 1;
											} else {
												if (_root.questkidnap == 3) {
													gotoAndStop('bandit');
												} else {
													if (_root.questdeadman == 3) {
														gotoAndStop('ghoul1');
													} else {
														if (_root.areabattle == 1) {
															gotoAndStop('timberwolf');
														} else {
															if (_root.areabattle == 2) {
																goto = random(3);
																if (goto == 0) {
																	gotoAndStop('bandit');
																} else {
																	if (goto == 1) {
																		gotoAndStop('boar');
																	} else {
																		if (goto == 2) {
																			gotoAndStop('abacor');
																		}
																	}
																}
															} else {
																if (_root.areabattle == 3) {
																	goto = random(4);
																	if (goto == 0) {
																		gotoAndStop('ghoul1');
																	} else {
																		if (goto == 1) {
																			gotoAndStop('ghoul2');
																		} else {
																			if (goto == 2 or goto == 3) {
																				gotoAndStop('spitter');
																			}
																		}
																	}
																} else {
																	if (_root.areabattle == 4) {
																		goto = random(10);
																		if (goto < 5) {
																			gotoAndStop('spitter');
																		} else {
																			if (goto >= 5 && goto < 9) {
																				gotoAndStop('gornak');
																			} else {
																				if (goto == 9) {
																					gotoAndStop('thanator');
																				}
																			}
																		}
																	} else {
																		if (_root.areabattle == 5) {
																			goto = random(2);
																			if (goto == 1) {
																				gotoAndStop('bandit');
																			} else {
																				gotoAndStop('boar');
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
	movieClip 8216	{
		frame 1 {
			stop();
		}
		frame 35 {
			stop();
		}
		frame 65 {
			gotoAndStop(1);
		}
		frame 95 {
			stop();
		}
		frame 120 {
			gotoAndStop(1);
		}
		frame 143 {
			gotoAndStop(1);
		}
		frame 166 {
			gotoAndStop(1);
		}
		frame 189 {
			gotoAndStop(1);
		}
		frame 301 {
			gotoAndStop(1);
		}
		frame 331 {
			gotoAndStop(1);
		}
		frame 339 {
			_root.action = _root.enemyname + ' attacks!';
			_root.actiontext();
			gotoAndStop(1);
		}
	}
	movieClip 8220	{
		frame 1 {
			if (_root.areabg == 5) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
		frame 14 {
			stop();
		}
	}
	movieClip 8224	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.character == 1) {
					if (_root.coremana > _root.coremaxmana) {
						_root.coremana = _root.coremaxmana;
					}
					if (_root.coremana < 0) {
						_root.coremana = 0;
					}
					manabar._height = (_root.coremana / _root.coremaxmana) * 17;
				}
				if (_root.character == 2) {
					if (_root.calebmana > _root.calebmaxmana) {
						_root.calebmana = _root.calebmaxmana;
					}
					if (_root.calebmana < 0) {
						_root.calebmana = 0;
					}
					manabar._height = (_root.calebmana / _root.calebmaxmana) * 17;
				}
			};
		}
	}
	movieClip 8227	{
		frame 1 {
			stop();
		}
	}
	movieClip 8229	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.character == 1) {
					if (_root.gamepause == 0 && _root.corestamina >= _root.coremaxstamina && _root.battleend == false) {
						countbar.play();
					}
					if (_root.corestamina < 0) {
						_root.corestamina = 0;
					}
					if (_root.coreconfuse == false && _root.corecon == false) {
						countbar._width = (_root.corestamina / _root.coremaxstamina) * 50;
					} else {
						countbar._width = (_root.corelimit / _root.coremaxlimit) * 50;
					}
				}
				if (_root.character == 2) {
					if (_root.gamepause == 0 && _root.calebstamina >= _root.calebmaxstamina && _root.battleend == false) {
						countbar.play();
					}
					if (_root.calebstamina < 0) {
						_root.calebstamina = 0;
					}
					if (_root.calebconfuse == false && _root.calebcon == false) {
						countbar._width = (_root.calebstamina / _root.calebmaxstamina) * 50;
					} else {
						countbar._width = (_root.caleblimit / _root.calebmaxlimit) * 50;
					}
				}
			};
		}
	}
	movieClip 8231	{
	}
	movieClip 8232	{
		frame 1 {
			nbrLines = -1;
			charPos = -1;
			str = txtX.a_txt.text;
			do {
				charPos = str.indexOf('\r', charPos + 1);
				++nbrLines;
			} while (charPos != -1);
			if (nbrLines == 1) {
				this._y = 19;
			} else {
				if (nbrLines == 0) {
					if (str.length >= 19 or nbrLines == 1) {
						this._y = 19;
					} else {
						this._y = 35;
					}
				}
			}
		}
		frame 100 {
			stop();
		}
	}
	movieClip 8233	{
	}
	movieClip 8236	{
		frame 1 {
			stop();
		}
	}
	movieClip 8238	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.character == 1) {
					if (_root.corelimit > _root.coremaxlimit) {
						_root.corelimit = _root.coremaxlimit;
					}
					if ((_root.gamepause == 0 or _root.story == 170) && _root.corelimit >= _root.coremaxlimit && _root.battleend == false) {
						limitbar.play();
					}
					if (_root.coreconfuse == false && _root.corecon == false) {
						limitbar._width = (_root.corelimit / _root.coremaxlimit) * 50;
					} else {
						limitbar._width = (_root.corestamina / _root.coremaxstamina) * 50;
					}
				}
				if (_root.character == 2) {
					if (_root.caleblimit > _root.calebmaxlimit) {
						_root.caleblimit = _root.calebmaxlimit;
					}
					if (_root.gamepause == 0 && _root.caleblimit >= _root.calebmaxlimit && _root.battleend == false) {
						limitbar.play();
					}
					if (_root.calebconfuse == false && _root.calebcon == false) {
						limitbar._width = (_root.caleblimit / _root.calebmaxlimit) * 50;
					} else {
						limitbar._width = (_root.calebstamina / _root.calebmaxstamina) * 50;
					}
				}
			};
		}
	}
	movieClip 8240	{
	}
	movieClip 8241	{
	}
	movieClip 8243	{
		frame 1 {
			stop();
		}
	}
	movieClip 8245	{
		frame 1 {
			stop();
		}
	}
	movieClip 8247	{
		frame 1 {
			stop();
		}
	}
	movieClip 8248	{
		frame 1 {
			staminamc.gotoAndStop(1);
			manamc.gotoAndStop(1);
			healthmc.gotoAndStop(1);
			stop();
		}
	}
	movieClip 8250	{
	}
	movieClip 8253	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.character == 1) {
					if (_root.corehealth > _root.coremaxhealth) {
						_root.corehealth = _root.coremaxhealth;
					}
					if (_root.corehealth < 0) {
						_root.corehealth = 0;
					}
					healthbar._height = (_root.corehealth / _root.coremaxhealth) * 17;
				}
				if (_root.character == 2) {
					if (_root.calebhealth > _root.calebmaxhealth) {
						_root.calebhealth = _root.calebmaxhealth;
					}
					if (_root.calebhealth < 0) {
						_root.calebhealth = 0;
					}
					healthbar._height = (_root.calebhealth / _root.calebmaxhealth) * 17;
				}
			};
		}
	}
	movieClip 8255	{
		frame 1 {
			onEnterFrame = function () {
				countbar._width = (_root.enmstamina / _root.maxenmstamina) * 50;
				if (_root.gamepause == 0 && _root.enmstamina >= _root.maxenmstamina && _root.battleend == false && _root.battleend == false) {
					countbar.play();
				}
			};
		}
	}
	movieClip 8257	{
	}
	movieClip 8259	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.enmlimit > _root.enmmaxlimit) {
					_root.enmlimit = _root.enmmaxlimit;
				}
				if (_root.gamepause == 0 && _root.enmlimit >= _root.enmmaxlimit && _root.battleend == false) {
					limitbar.play();
				}
				limitbar._width = (_root.enmlimit / _root.enmmaxlimit) * 50;
			};
		}
	}
	movieClip 8260	{
	}
	movieClip 8261	{
	}
	movieClip 8262	{
	}
	movieClip 8265	{
		frame 1 {
			onEnterFrame = function () {
				manabar._height = (_root.enemymana / _root.enemymaxmana) * 17;
			};
		}
	}
	movieClip 8267	{
		frame 1 {
			onEnterFrame = function () {
				healthbar._height = (_root.enemyhealth / _root.enemymaxhealth) * 17;
			};
		}
	}
	movieClip 8271	{
	}
	
	// unknown tag 88 length 425
	button 8275 {
		on (rollOver) {
			if (_root.hotinfo == true) {
				_parent.hots.gotoAndStop(5);
			}
		}
		on (rollOut) {
			_parent.hots.gotoAndStop(1);
		}
		on (release) {
			_root.doBattleFlee();
		}
	}
	button 8277 {
		on (rollOver) {
			if (_root.hotinfo == true) {
				_parent.hots.gotoAndStop(5);
			}
		}
		on (rollOut) {
			_parent.hots.gotoAndStop(1);
		}
		on (release) {
			_root.doBattleFlee();
		}
	}
	movieClip 8278	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.training == true) {
					gotoAndStop(2);
				} else {
					if (_root.character == 1) {
						if (_root.corestamina >= _root.coremaxstamina) {
							gotoAndStop(2);
						} else {
							gotoAndStop(1);
						}
					} else {
						if (_root.character == 2) {
							if (_root.calebstamina >= _root.calebmaxstamina) {
								gotoAndStop(2);
							} else {
								gotoAndStop(1);
							}
						}
					}
				}
			};
		}
	}
	movieClip 8280	{
	}
	button 8282 {
		on (rollOver) {
			if (_root.hotinfo == true) {
				_parent.hots.gotoAndStop(4);
			}
		}
		on (rollOut) {
			_parent.hots.gotoAndStop(1);
		}
		on (press) {
			if (_root.gamepause == 0) {
				if (_root.character == 1) {
					if (_root.char_MC.charX.Core._currentframe == 1) {
						_root.doBattleCounter();
						_root.battlecounterX = true;
						_root.battlecounterZ = true;
						Mouse.addListener(_root.removeCounter);
					}
				} else {
					if (_root.character == 2) {
						if (_root.char_MC.charX.Caleb._currentframe == 1) {
							_root.doBattleCounter();
							_root.battlecounterX = true;
							_root.battlecounterZ = true;
							Mouse.addListener(_root.removeCounter);
						}
					}
				}
			}
		}
	}
	button 8284 {
		on (rollOver) {
			if (_root.hotinfo == true) {
				_parent.hots.gotoAndStop(4);
			}
		}
		on (rollOut) {
			_parent.hots.gotoAndStop(1);
		}
		on (press) {
			if (_root.gamepause == 0) {
				if (_root.character == 1) {
					if (_root.char_MC.charX.Core._currentframe == 1) {
						_root.doBattleCounter();
						_root.battlecounterX = true;
						_root.battlecounterZ = true;
						Mouse.addListener(_root.removeCounter);
					}
				} else {
					if (_root.character == 2) {
						if (_root.char_MC.charX.Caleb._currentframe == 1) {
							_root.doBattleCounter();
							_root.battlecounterX = true;
							_root.battlecounterZ = true;
							Mouse.addListener(_root.removeCounter);
						}
					}
				}
			}
		}
	}
	movieClip 8285	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.character == 1) {
					if (_root.corestamina >= 70) {
						gotoAndStop(2);
					} else {
						gotoAndStop(1);
					}
				} else {
					if (_root.character == 2) {
						if (_root.calebstamina >= 70) {
							gotoAndStop(2);
						} else {
							gotoAndStop(1);
						}
					}
				}
			};
		}
	}
	movieClip 8287	{
	}
	button 8289 {
		on (rollOver) {
			if (_root.hotinfo == true) {
				_parent.hots.gotoAndStop(2);
			}
		}
		on (rollOut) {
			_parent.hots.gotoAndStop(1);
		}
		on (press) {
			if (_root.character == 1 && _root.coreconfuse == false) {
				if (_root.dodge == true or _root.char_MC.charX.Core._currentframe == 1) {
					_root.doBattleAttack();
				}
			} else {
				if (_root.coreconfuse == true) {
					_root.doBattleDodge();
				} else {
					if (_root.character == 2 && _root.calebconfuse == false) {
						if (_root.dodge == true or _root.char_MC.charX.Caleb._currentframe == 1) {
							_root.doBattleAttack();
						}
					} else {
						if (_root.calebconfuse == true) {
							_root.doBattleDodge();
						}
					}
				}
			}
		}
	}
	button 8291 {
		on (rollOver) {
			if (_root.hotinfo == true) {
				_parent.hots.gotoAndStop(2);
			}
		}
		on (rollOut) {
			_parent.hots.gotoAndStop(1);
		}
		on (press) {
			if (_root.character == 1 && _root.coreconfuse == false) {
				if (_root.dodge == true or _root.char_MC.charX.Core._currentframe == 1) {
					_root.doBattleAttack();
				}
			} else {
				if (_root.coreconfuse == true) {
					_root.doBattleDodge();
				} else {
					if (_root.character == 2 && _root.calebconfuse == false) {
						if (_root.dodge == true or _root.char_MC.charX.Caleb._currentframe == 1) {
							_root.doBattleAttack();
						}
					} else {
						if (_root.calebconfuse == true) {
							_root.doBattleDodge();
						}
					}
				}
			}
		}
	}
	movieClip 8292	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.character == 1) {
					if (_root.corestamina >= _root.coreattackstamina) {
						gotoAndStop(2);
					} else {
						gotoAndStop(1);
					}
				} else {
					if (_root.character == 2) {
						if (_root.chaos == true) {
							if (_root.calebstamina >= 80) {
								gotoAndStop(2);
							} else {
								gotoAndStop(1);
							}
						} else {
							if (_root.calebstamina >= 80) {
								gotoAndStop(2);
							} else {
								gotoAndStop(1);
							}
						}
					}
				}
			};
		}
	}
	button 8294 {
		on (rollOver) {
			if (_root.hotinfo == true) {
				_parent.hots.gotoAndStop(3);
			}
		}
		on (rollOut) {
			_parent.hots.gotoAndStop(1);
		}
		on (press) {
			if (_root.character == 1 && _root.coreconfuse == false) {
				if (_root.tutz == 1) {
					if (_root.bhud.tut1._currentframe > 100) {
						_root.doBattleDodge();
					}
				} else {
					_root.doBattleDodge();
				}
			} else {
				if (_root.character == 1 && _root.coreconfuse == true) {
					_root.doBattleAttack();
				}
			}
			if (_root.character == 2 && _root.calebconfuse == false) {
				_root.doBattleDodge();
			} else {
				if (_root.character == 2 && _root.calebconfuse == true) {
					_root.doBattleAttack();
				}
			}
		}
	}
	button 8296 {
		on (rollOver) {
			if (_root.hotinfo == true) {
				_parent.hots.gotoAndStop(3);
			}
		}
		on (rollOut) {
			_parent.hots.gotoAndStop(1);
		}
		on (press) {
			if (_root.character == 1 && _root.coreconfuse == false) {
				if (_root.tutz == 1) {
					if (_root.bhud.tut1._currentframe > 100) {
						_root.doBattleDodge();
					}
				} else {
					_root.doBattleDodge();
				}
			} else {
				if (_root.character == 1 && _root.coreconfuse == true) {
					_root.doBattleAttack();
				}
			}
			if (_root.character == 2 && _root.calebconfuse == false) {
				_root.doBattleDodge();
			} else {
				if (_root.character == 2 && _root.calebconfuse == true) {
					_root.doBattleAttack();
				}
			}
		}
	}
	movieClip 8297	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.character == 1) {
					if (_root.corestamina >= 40) {
						gotoAndStop(2);
					} else {
						gotoAndStop(1);
					}
				} else {
					if (_root.character == 2) {
						if (_root.calebstamina >= 40) {
							gotoAndStop(2);
						} else {
							gotoAndStop(1);
						}
					}
				}
			};
		}
	}
	movieClip 8302	{
		frame 1 {
			stop();
		}
	}
	movieClip 8303	{
		frame 1 {
			if (_root.menuvisible == false) {
				stop();
			}
		}
		frame 2 {
			counterX._visible = false;
			if (_root.enemyname == 'Training rig') {
				fleeX._visible = false;
			} else {
				if (_root.boss == false && _root.story != 51 && _root.story != 80) {
					fleeX._visible = false;
					if (_root.tutz < 4) {
						flee_BT._visible = false;
					}
				} else {
					flee_BT._visible = false;
					if (_root.tutz < 4) {
						fleeX._visible = false;
					}
				}
			}
			if (_root.story < 80) {
				counter_BT._visible = false;
			}
			if (_root.ranged == true) {
				counter_BT._visible = false;
				counterX._visible = true;
			}
			stop();
		}
	}
	movieClip 8306	{
	}
	movieClip 8308	{
		frame 1 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	button 8310 {
		on (rollOver) {
			gotoAndPlay(1);
			bg.gotoAndPlay(12);
			_root.BTtwoX = false;
			_root.BTtwoMenu = false;
			_root.BT1 = false;
			_root.BT2 = false;
			_root.BT3 = false;
			_root.BT4 = false;
			_root.BT5 = false;
			_root.BT6 = false;
			_root.menuXZ = false;
			_root.menuon = false;
		}
	}
	movieClip 8312	{
	}
	movieClip 8314	{
	}
	movieClip 8316	{
	}
	movieClip 8318	{
	}
	movieClip 8320	{
	}
	button 8321 {
		on (rollOver) {
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
	}
	movieClip 8328	{
	}
	button 8334 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doElixir();
		}
	}
	button 8340 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doEther();
		}
	}
	movieClip 8345	{
		frame 1 {
			if (_root.hotinfo == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	button 8348 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doPotion();
		}
	}
	button 8358 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doRemedy();
		}
	}
	movieClip 8359	{
		frame 1 {
			stop();
		}
	}
	movieClip 8360	{
		frame 1 {
			stop();
		}
	}
	movieClip 8361	{
		frame 1 {
			stop();
		}
	}
	movieClip 8362	{
		frame 1 {
			stop();
		}
	}
	movieClip 8364	{
		frame 1 {
			if (_root.hotinfo == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	button 8371 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doLimitboost();
		}
	}
	movieClip 8372	{
		frame 1 {
			stop();
		}
	}
	movieClip 8373	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
			bg.gotoAndPlay(2);
			if (_root.BTtwo == true) {
				numz._visible = true;
			} else {
				numz._visible = false;
			}
			if (_root.BTtwoX == false) {
				rolloverz._visible = true;
			}
			onEnterFrame = function () {
				if (_root.potion <= 0) {
					potion_BT._visible = false;
					potiontxt.text = '';
				} else {
					potionX._visible = false;
					potiontxt.text = _root.potion;
				}
				if (_root.ether <= 0) {
					ether_BT._visible = false;
					ethertxt.text = '';
				} else {
					etherX._visible = false;
					ethertxt.text = _root.ether;
				}
				if (_root.elixir <= 0) {
					elixir_BT._visible = false;
					elixirtxt.text = '';
				} else {
					elixirX._visible = false;
					elixirtxt.text = _root.elixir;
				}
				if (_root.remedy <= 0) {
					remedy_BT._visible = false;
					remedytxt.text = '';
				} else {
					remedyX._visible = false;
					remedytxt.text = _root.remedy;
				}
				if (_root.limit <= 0) {
					limit_BT._visible = false;
					limittxt.text = '';
				} else {
					limitX._visible = false;
					limittxt.text = _root.limit;
				}
			};
		}
	}
	movieClip 8376	{
	}
	button 8379 {
		on (rollOver) {
			if (_parent.limit_BT._currentframe == 1) {
				gotoAndStop(1);
				bg.gotoAndPlay(12);
				_root.BToneX = false;
				_root.BToneMenu = false;
				_root.BT1 = false;
				_root.BT2 = false;
				_root.BT3 = false;
				_root.BT4 = false;
				_root.BT5 = false;
				_root.BT6 = false;
				_root.menuXZ = false;
				_root.menuon = false;
				_parent.menublack.gotoAndStop(1);
			}
		}
	}
	movieClip 8380	{
	}
	movieClip 8381	{
	}
	movieClip 8382	{
	}
	movieClip 8383	{
	}
	movieClip 8384	{
	}
	movieClip 8386	{
	}
	movieClip 8387	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.character == 1) {
					if (_root.coremagic1 == false) {
						one._visible = false;
					} else {
						one._visible = true;
					}
					if (_root.coremagic2 == false) {
						two._visible = false;
					} else {
						two._visible = true;
					}
					if (_root.coremagic3 == false) {
						three._visible = false;
					} else {
						three._visible = true;
					}
					if (_root.coremagic4 == false) {
						four._visible = false;
					} else {
						four._visible = true;
					}
					if (_root.coremagic5 == false) {
						five._visible = false;
					} else {
						five._visible = true;
					}
					if (_root.coremagic6 == false) {
						six._visible = false;
					} else {
						six._visible = true;
					}
				} else {
					if (_root.character == 2) {
						if (_root.calebmagic1 == false) {
							one._visible = false;
						} else {
							one._visible = true;
						}
						if (_root.calebmagic2 == false) {
							two._visible = false;
						} else {
							two._visible = true;
						}
						if (_root.calebmagic3 == false) {
							three._visible = false;
						} else {
							three._visible = true;
						}
						if (_root.calebmagic4 == false) {
							four._visible = false;
						} else {
							four._visible = true;
						}
						if (_root.calebmagic5 == false) {
							five._visible = false;
						} else {
							five._visible = true;
						}
						if (_root.calebmagic6 == false) {
							six._visible = false;
						} else {
							six._visible = true;
						}
					}
				}
			};
		}
	}
	movieClip 8389	{
		frame 1 {
			if (_root.hotinfo == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 8391	{
	}
	movieClip 8394	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.corestamina >= _root.coremagic4stam && _root.coremana >= _root.coremagic4mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8396 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.coremagic4stam;
			_root.infomana = _root.coremagic4mana;
			_root.infoen = _root.coremagic4en;
			_root.infoinfo = _root.coremagic4info;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doLightning();
		}
	}
	movieClip 8399	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.corestamina >= _root.coremagic1stam && _root.coremana >= _root.coremagic1mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8402 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.coremagic1stam;
			_root.infomana = _root.coremagic1mana;
			_root.infoen = _root.coremagic1en;
			_root.infoinfo = _root.coremagic1info;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doHeal();
		}
	}
	movieClip 8405	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.corestamina >= _root.coremagic2stam && _root.coremana >= _root.coremagic2mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8408 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.coremagic2stam;
			_root.infomana = _root.coremagic2mana;
			_root.infoen = _root.coremagic2en;
			_root.infoinfo = _root.coremagic2info;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doBerserk();
		}
	}
	movieClip 8411	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.corestamina >= _root.coremagic5stam && _root.coremana >= _root.coremagic5mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8414 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.coremagic5stam;
			_root.infomana = _root.coremagic5mana;
			_root.infoen = _root.coremagic5en;
			_root.infoinfo = _root.coremagic5info;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doInferno();
		}
	}
	movieClip 8417	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.corestamina >= _root.coremagic3stam && _root.coremana >= _root.coremagic3mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8419 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.coremagic3stam;
			_root.infomana = _root.coremagic3mana;
			_root.infoen = _root.coremagic3en;
			_root.infoinfo = _root.coremagic3info;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doStorm();
		}
	}
	movieClip 8422	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.corestamina >= _root.coremagic6stam && _root.coremana >= _root.coremagic6mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8424 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.coremagic6stam;
			_root.infomana = _root.coremagic6mana;
			_root.infoen = _root.coremagic6en;
			_root.infoinfo = _root.coremagic6info;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doPulse();
		}
	}
	movieClip 8426	{
		frame 1 {
			stop();
		}
	}
	movieClip 8428	{
		frame 1 {
			stop();
		}
	}
	movieClip 8430	{
		frame 1 {
			stop();
		}
	}
	movieClip 8432	{
		frame 1 {
			stop();
		}
	}
	movieClip 8434	{
		frame 1 {
			stop();
		}
	}
	movieClip 8436	{
		frame 1 {
			stop();
		}
	}
	movieClip 8438	{
	}
	movieClip 8440	{
	}
	movieClip 8443	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebstamina >= _root.calebmagic5stam && _root.calebmana >= _root.calebmagic5mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8446 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.calebmagic5stam;
			_root.infomana = _root.calebmagic5mana;
			_root.infoen = _root.calebmagic5en;
			if (_root.firemark == false) {
				_root.infoinfo = _root.calebmagic5info;
			} else {
				_root.infoinfo = _root.calebmagic5infoX;
			}
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doRain();
		}
	}
	movieClip 8449	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebstamina >= _root.calebmagic3stam && _root.calebmana >= _root.calebmagic3mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8451 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.calebmagic3stam;
			_root.infomana = _root.calebmagic3mana;
			_root.infoen = _root.calebmagic3en;
			_root.infoinfo = _root.calebmagic3info;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doCrystal();
		}
	}
	movieClip 8454	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebstamina >= _root.calebmagic1stam && _root.calebmana >= _root.calebmagic1mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8456 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.calebmagic1stam;
			_root.infomana = _root.calebmagic1mana;
			_root.infoen = _root.calebmagic1en;
			_root.infoinfo = _root.calebmagic1info;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doChaos();
		}
	}
	movieClip 8459	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebstamina >= _root.calebmagic4stam && _root.calebmana >= _root.calebmagic4mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8461 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.calebmagic4stam;
			_root.infomana = _root.calebmagic4mana;
			_root.infoen = _root.calebmagic4en;
			_root.infoinfo = _root.calebmagic4info;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doThunder();
		}
	}
	movieClip 8464	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebstamina >= _root.calebmagic6stam && _root.calebmana >= _root.calebmagic6mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8466 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.calebmagic6stam;
			_root.infomana = _root.calebmagic6mana;
			_root.infoen = _root.calebmagic6en;
			_root.infoinfo = _root.calebmagic6info;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doParalyze();
		}
	}
	movieClip 8469	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebstamina >= _root.calebmagic2stam && _root.calebmana >= _root.calebmagic2mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8471 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.calebmagic2stam;
			_root.infomana = _root.calebmagic2mana;
			_root.infoen = _root.calebmagic2en;
			_root.infoinfo = _root.calebmagic2info;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doDementia();
		}
	}
	movieClip 8473	{
		frame 1 {
			stop();
		}
	}
	movieClip 8475	{
		frame 1 {
			stop();
		}
	}
	movieClip 8477	{
		frame 1 {
			stop();
		}
	}
	movieClip 8479	{
		frame 1 {
			stop();
		}
	}
	movieClip 8481	{
		frame 1 {
			stop();
		}
	}
	movieClip 8483	{
		frame 1 {
			stop();
		}
	}
	button 8484 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.calebmagic1Xstam;
			_root.infomana = _root.calebmagic1Xmana;
			_root.infoen = _root.calebmagic1Xen;
			_root.infoinfo = _root.calebmagic1Xinfo;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doCHeal();
		}
	}
	button 8485 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.calebmagic2Xstam;
			_root.infomana = _root.calebmagic2Xmana;
			_root.infoen = _root.calebmagic2Xen;
			_root.infoinfo = _root.calebmagic2Xinfo;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doCParalyze();
		}
	}
	movieClip 8488	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebstamina >= _root.calebmagic3Xstam && _root.calebmana >= _root.calebmagic3Xmana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8490 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
			_root.infostam = _root.calebmagic3Xstam;
			_root.infomana = _root.calebmagic3Xmana;
			_root.infoen = _root.calebmagic3Xen;
			_root.infoinfo = _root.calebmagic3Xinfo;
			_root.bhud.menuinfo.gotoAndStop(2);
		}
		on (rollOut) {
			_root.bhud.menuinfo.gotoAndPlay(3);
		}
		on (release) {
			_root.doCRift();
		}
	}
	movieClip 8492	{
		frame 1 {
			stop();
		}
	}
	movieClip 8493	{
		frame 1 {
			if (_root.bhud.menuinfo._currentframe == 2) {
				_root.bhud.menuinfo.gotoAndPlay(3);
			}
			stop();
			_root.infomana = '';
			_root.infoen = '';
			_root.infoinfo = '';
		}
		frame 2 {
			stop();
			bg.gotoAndPlay(2);
			if (_root.BTone == true) {
				numz._visible = true;
			} else {
				numz._visible = false;
			}
			if (_root.BToneX == false) {
				rolloverz._visible = true;
			}
			i = 1;
			while (i <= 6) {
				if (_root['coremagic' + i] == false) {
					this['magic' + i]._visible = false;
				}
				++i;
			}
			if (_root.coremagic2 == false) {
				berserkX._visible = false;
			}
			if (_root.coremagic2 == true && _root.coreberserk == true) {
				magic2._visible = false;
				berserkX._visible = true;
			} else {
				if (_root.coremagic2 == true) {
					magic2._visible = true;
					berserkX._visible = false;
				}
			}
		}
		frame 3 {
			stop();
			bg.gotoAndPlay(2);
			if (_root.BTone == true) {
				numz._visible = true;
			} else {
				numz._visible = false;
			}
			onEnterFrame = function () {
				if (_root.calebchaos == false && _root.calebmagic1 == true) {
					chaosX._visible = false;
					magic1._visible = true;
				} else {
					if (_root.calebchaos == true && _root.calebmagic1 == true) {
						chaosX._visible = true;
						magic1._visible = false;
					}
				}
				if (_root.dementia == false && _root.calebmagic2 == true) {
					dementiaX._visible = false;
					magic2._visible = true;
				} else {
					if (_root.dementia == true && _root.calebmagic2 == true) {
						dementiaX._visible = true;
						magic2._visible = false;
					}
				}
			};
			if (_root.BToneX == false) {
				rolloverz._visible = true;
			}
			i = 1;
			while (i <= 6) {
				if (_root['calebmagic' + i] == false) {
					this['magic' + i]._visible = false;
				}
				++i;
			}
			if (_root.calebmagic2 == false) {
				dementiaX._visible = false;
			}
		}
		frame 4 {
			stop();
			bg.gotoAndPlay(2);
			if (_root.BTone == true) {
				numz._visible = true;
			} else {
				numz._visible = false;
			}
			if (_root.BToneX == false) {
				rolloverz._visible = true;
			}
		}
	}
	movieClip 8497	{
		frame 3 {
			if (_root.story == 170) {
				gotoAndPlay(4);
			} else {
				if (_root.gamepause > 0 or _root.battleend == true) {
					gotoAndPlay(1);
				}
			}
		}
	}
	movieClip 8499	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.character == 1) {
					if (_root.corelimit < _root.coremaxlimit) {
						stop();
					} else {
						if (_root.corelimit >= _root.coremaxlimit) {
							gotoAndStop(2);
						}
					}
				}
				if (_root.character == 2) {
					if (_root.caleblimit < _root.calebmaxlimit) {
						stop();
					} else {
						if (_root.caleblimit >= _root.calebmaxlimit) {
							gotoAndStop(2);
						}
					}
				}
			};
		}
		frame 2 {
			onEnterFrame = function () {
				if (_root.character == 1) {
					if (_root.corelimit < _root.coremaxlimit) {
						gotoAndStop(1);
					} else {
						if (_root.corelimit >= _root.coremaxlimit) {
							stop();
						}
					}
				}
				if (_root.character == 2) {
					if (_root.caleblimit < _root.calebmaxlimit) {
						gotoAndStop(1);
					} else {
						if (_root.caleblimit >= _root.calebmaxlimit) {
							stop();
						}
					}
				}
			};
		}
	}
	movieClip 8500	{
	}
	movieClip 8501	{
	}
	button 8504 {
		on (rollOver) {
			gotoAndStop(1);
			bg.gotoAndPlay(12);
			_root.BTthreeX = false;
			_root.BTthreeMenu = false;
			_root.BT1 = false;
			_root.BT2 = false;
			_root.BT3 = false;
			_root.BT4 = false;
			_root.BT5 = false;
			_root.BT6 = false;
			_root.menuXZ = false;
			_root.menuon = false;
			_parent.menublack.gotoAndStop(1);
		}
	}
	movieClip 8505	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.character == 1) {
					if (_root.corelimit1 == false) {
						one._visible = false;
					} else {
						one._visible = true;
					}
					if (_root.corelimit2 == false) {
						two._visible = false;
					} else {
						two._visible = true;
					}
					if (_root.corelimit3 == false) {
						three._visible = false;
					} else {
						three._visible = true;
					}
					if (_root.corelimit4 == false) {
						four._visible = false;
					} else {
						four._visible = true;
					}
				} else {
					if (_root.character == 2) {
						if (_root.caleblimit1 == false) {
							one._visible = false;
						} else {
							one._visible = true;
						}
						if (_root.caleblimit2 == false) {
							two._visible = false;
						} else {
							two._visible = true;
						}
						if (_root.caleblimit3 == false) {
							three._visible = false;
						} else {
							three._visible = true;
						}
						if (_root.caleblimit4 == false) {
							four._visible = false;
						} else {
							four._visible = true;
						}
					}
				}
			};
		}
	}
	movieClip 8507	{
		frame 1 {
			if (_root.hotinfo == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 8510	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.corehealth >= _root.corelimit2health && _root.coremana >= _root.corelimit2mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8513 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doPheonix();
		}
	}
	movieClip 8516	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.coremana >= _root.corelimit4mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8519 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doOmni();
		}
	}
	movieClip 8522	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.corehealth >= _root.corelimit1health && _root.coremana >= _root.corelimit1mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8525 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doFury();
		}
	}
	movieClip 8528	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.coremana >= _root.corelimit3mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8531 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doFlash();
		}
	}
	movieClip 8533	{
		frame 1 {
			stop();
		}
	}
	movieClip 8535	{
		frame 1 {
			stop();
		}
	}
	movieClip 8537	{
		frame 1 {
			stop();
		}
	}
	movieClip 8539	{
		frame 1 {
			stop();
		}
	}
	movieClip 8541	{
	}
	movieClip 8544	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebmana >= _root.caleblimit2mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8547 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doSlash();
		}
	}
	movieClip 8550	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebmana >= _root.caleblimit1mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8553 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doThirdeye();
		}
	}
	movieClip 8556	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebhealth >= _root.caleblimit4health && _root.calebmana >= _root.caleblimit4mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8558 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doMeta();
		}
	}
	movieClip 8561	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebmana >= _root.caleblimit3mana) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8564 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doBlast();
		}
	}
	movieClip 8566	{
		frame 1 {
			stop();
		}
	}
	movieClip 8568	{
		frame 1 {
			stop();
		}
	}
	movieClip 8570	{
		frame 1 {
			stop();
		}
	}
	movieClip 8572	{
		frame 1 {
			stop();
		}
	}
	movieClip 8575	{
		frame 1 {
			onEnterFrame = function () {
				if (_root.calebhealth >= _root.caleblimit4healthX && _root.calebmana >= _root.caleblimit4manaX) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			};
		}
	}
	button 8578 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
			_root.menuXZ = true;
			rolloverz._visible = true;
		}
		on (release) {
			_root.doOblivion();
		}
	}
	movieClip 8580	{
		frame 1 {
			stop();
		}
	}
	movieClip 8581	{
		frame 1 {
			stop();
			_root.infohealth = 0;
			_root.infomana = '';
			_root.infoen = '';
			_root.infoinfo = '';
		}
		frame 2 {
			stop();
			bg.gotoAndPlay(2);
			if (_root.BTthree == true) {
				numz._visible = true;
			} else {
				numz._visible = false;
			}
			if (_root.BTthreeX == false) {
				rolloverz._visible = true;
			}
			if (_root.corelimit2 == false) {
				pheonix_BT._visible = false;
			}
			if (_root.corelimit3 == false) {
				flash_BT._visible = false;
			}
			if (_root.corelimit4 == false) {
				omni_BT._visible = false;
			}
		}
		frame 3 {
			stop();
			bg.gotoAndPlay(2);
			if (_root.BTthree == true) {
				numz._visible = true;
			} else {
				numz._visible = false;
			}
			if (_root.BTthreeX == false) {
				rolloverz._visible = true;
			}
			if (_root.eye_light._currentframe > 1) {
				eye_BT._visible = false;
			}
			if (_root.caleblimit2 == false) {
				slash_BT._visible = false;
			}
			if (_root.caleblimit3 == false) {
				blast_BT._visible = false;
			}
			if (_root.caleblimit4 == false) {
				meta_BT._visible = false;
			}
			if (_root.eye_light._currentframe > 1) {
				eye_BT._visible = false;
			} else {
				eyeX_BT._visible = false;
			}
		}
		frame 4 {
			stop();
			bg.gotoAndPlay(2);
			if (_root.BTthree == true) {
				numz._visible = true;
			} else {
				numz._visible = false;
			}
			if (_root.BTthreeX == false) {
				rolloverz._visible = true;
			}
		}
	}
	movieClip 8582	{
	}
	movieClip 8587	{
	}
	movieClip 8588	{
	}
	movieClip 8591	{
	}
	movieClip 8600	{
	}
	movieClip 8601	{
	}
	movieClip 8603	{
	}
	movieClip 8607	{
		frame 70 {
			stop();
		}
	}
	movieClip 8608	{
	}
	movieClip 8610	{
	}
	button 8613 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
		}
		on (release) {
			if (_root.bhud.pause_MC._currentframe == 1) {
				gotoAndPlay('next3');
			}
		}
	}
	movieClip 8614	{
		frame 1 {
			if (_root.tutz > 1) {
				stop();
			}
		}
		frame 2 {
			_root.domenuon1();
			_root.domenuon2();
			_root.stopz = true;
			++_root.gamepause;
		}
		frame 91 {
			_root.doendPause();
			stop();
		}
		frame 94 {
			_root.story = 20;
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 163 {
			stop();
		}
		frame 166 {
			++_root.gamepause;
		}
		frame 178 {
			stop();
			onEnterFrame = function () {
				if ((Key.isDown(13) or Key.isDown(69)) && this._currentframe == 178 && _root.bhud.pause_MC._currentframe == 1) {
					gotoAndPlay('next3');
				}
			};
		}
		frame 185 {
			_root.doendPause();
			_root.tutz = 2;
			_root.menuon = false;
			_root.stopz = false;
		}
	}
	movieClip 8616	{
	}
	button 8617 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
		}
		on (release) {
			if (_root.bhud.pause_MC._currentframe == 1) {
				gotoAndPlay('next1');
			}
		}
	}
	movieClip 8619	{
	}
	button 8620 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
		}
		on (release) {
			if (_root.bhud.pause_MC._currentframe == 1) {
				gotoAndPlay('next2');
			}
		}
	}
	movieClip 8621	{
		frame 1 {
			stop();
		}
		frame 2 {
			++_root.gamepause;
		}
		frame 3 {
			_root.domenuon1();
			_root.domenuon2();
		}
		frame 13 {
			stop();
			onEnterFrame = function () {
				if ((Key.isDown(13) or Key.isDown(69)) && this._currentframe == 13 && _root.bhud.pause_MC._currentframe == 1) {
					gotoAndPlay('next1');
				}
			};
		}
		frame 29 {
			stop();
			onEnterFrame = function () {
				if ((Key.isDown(13) or Key.isDown(69)) && this._currentframe == 29 && _root.bhud.pause_MC._currentframe == 1) {
					gotoAndPlay('next2');
				}
			};
		}
		frame 36 {
			_root.doendPause();
			_root.menuon = false;
			_root.bhud.tut4X.gotoAndPlay(2);
			stop();
		}
	}
	movieClip 8623	{
	}
	button 8624 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
		}
		on (release) {
			if (_root.bhud.pause_MC._currentframe == 1) {
				gotoAndPlay('next1');
			}
		}
	}
	movieClip 8625	{
		frame 1 {
			if (_root.tutz == 2) {
				_root.tutz = 3;
				gotoAndStop(1);
			} else {
				if (_root.tutz != 3 or _root.story == 51) {
					gotoAndStop(1);
				}
			}
		}
		frame 2 {
			++_root.gamepause;
		}
		frame 4 {
			_root.domenuon1();
			_root.domenuon2();
		}
		frame 50 {
			stop();
			_root.bhud.menuz.menuzZ.flee_BT._visible = true;
			onEnterFrame = function () {
				if ((Key.isDown(13) or Key.isDown(69)) && this._currentframe == 50 && _root.bhud.pause_MC._currentframe == 1) {
					gotoAndPlay('next1');
				}
			};
		}
		frame 58 {
			_root.doendPause();
			_root.tutz = 4;
			_root.menuon = false;
			stop();
		}
	}
	movieClip 8627	{
	}
	button 8628 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
		}
		on (release) {
			if (_root.bhud.pause_MC._currentframe == 1) {
				gotoAndPlay('next1');
			}
		}
	}
	movieClip 8629	{
		frame 2 {
			if (_root.firstrig == true or _root.enemyname != 'Training rig') {
				gotoAndStop(1);
			}
		}
		frame 3 {
			++_root.gamepause;
		}
		frame 6 {
			_root.stunz = true;
			_root.domenuon1();
			_root.domenuon2();
		}
		frame 18 {
			stop();
			onEnterFrame = function () {
				if ((Key.isDown(13) or Key.isDown(69)) && this._currentframe == 18 && _root.bhud.pause_MC._currentframe == 1) {
					gotoAndPlay('next1');
				}
			};
		}
		frame 27 {
			_root.doendPause();
			_root.firstrig = true;
			_root.stunz = false;
			_root.menuon = false;
			stop();
		}
	}
	movieClip 8631	{
	}
	button 8632 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
		}
		on (release) {
			if (_root.bhud.pause_MC._currentframe == 1) {
				gotoAndPlay('next1');
			}
		}
	}
	movieClip 8633	{
		frame 1 {
			if (_root.story < 130 or _root.story > 131) {
				stop();
			}
		}
		frame 2 {
			++_root.gamepause;
		}
		frame 3 {
			_root.domenuon1();
			_root.domenuon2();
		}
		frame 50 {
			stop();
			onEnterFrame = function () {
				if ((Key.isDown(13) or Key.isDown(69)) && this._currentframe == 50 && _root.bhud.pause_MC._currentframe == 1) {
					gotoAndPlay('next1');
				}
			};
		}
		frame 58 {
			_root.menuon = false;
			_root.story = 131;
			_root.page1 = 'Caleb: Learn to lend the life force of your surroundings, ' + _root.corename + '. Concentrate it on your wounds.';
			_root.doStartTextX();
			_root.doendPause();
			stop();
		}
	}
	movieClip 8635	{
	}
	movieClip 8636	{
		frame 1 {
			stop();
		}
		frame 2 {
			++_root.gamepause;
		}
		frame 3 {
			_root.domenuon1();
			_root.domenuon2();
			_root.corelimit = _root.coremaxlimit;
			_root.caleblimit = _root.calebmaxlimit;
			_root.num = 1;
			_root.addingCorelimit();
			_root.addingCaleblimit();
			stone.gotoAndPlay(2);
		}
		frame 50 {
			_root.bhud.limitbar_MC._visible = true;
			_root.bhud.menuz.limit_BT._visible = true;
			stop();
		}
		frame 58 {
			_root.doendPause();
			_root.menuon = false;
			_root.story = 181;
		}
	}
	movieClip 8638	{
	}
	button 8639 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
		}
		on (release) {
			if (_root.bhud.pause_MC._currentframe == 1) {
				gotoAndPlay('next1');
			}
		}
	}
	movieClip 8640	{
		frame 1 {
			stop();
		}
		frame 2 {
			++_root.gamepause;
		}
		frame 3 {
			_root.domenuon1();
			_root.domenuon2();
		}
		frame 17 {
			_root.num = 2;
			_root.addingCoremagic();
			stop();
			onEnterFrame = function () {
				if ((Key.isDown(13) or Key.isDown(69)) && this._currentframe == 17 && _root.bhud.pause_MC._currentframe == 1) {
					gotoAndPlay('next1');
				}
			};
		}
		frame 25 {
			_root.doendPause();
			_root.menuon = false;
			stop();
		}
	}
	movieClip 8642	{
	}
	button 8643 {
		on (rollOver) {
			if (_root.sfxmute == false) {
				_root.buttonover.start();
			}
		}
		on (release) {
			if (_root.bhud.pause_MC._currentframe == 1) {
				gotoAndPlay('next1');
			}
		}
	}
	movieClip 8644	{
		frame 1 {
			stop();
		}
		frame 2 {
			++_root.gamepause;
		}
		frame 3 {
			_root.domenuon1();
			_root.domenuon2();
			_root.corelimit = _root.coremaxlimit;
			_root.caleblimit = _root.calebmaxlimit;
			_root.corehealth = _root.coremaxhealth;
			_root.coremana = _root.coremaxmana;
			_root.calebhealth = _root.calebmaxhealth;
			_root.calebmana = _root.calebmaxmana;
			_root.doRedBG();
		}
		frame 50 {
			_root.bhud.limitbar_MC._visible = true;
			_root.bhud.menuz.limit_BT._visible = true;
			stop();
			onEnterFrame = function () {
				if ((Key.isDown(13) or Key.isDown(69)) && this._currentframe == 50 && _root.bhud.pause_MC._currentframe == 1) {
					gotoAndPlay('next1');
				}
			};
		}
		frame 58 {
			_root.doendPause();
			_root.menuon = false;
		}
	}
	movieClip 8648	{
		frame 1 {
			stop();
		}
	}
	movieClip 8649	{
		frame 1 {
			onEnterFrame = function () {
				shieldbar._height = (_root.enmshield / _root.enmmaxshield) * 17;
			};
		}
	}
	movieClip 8653	{
	}
	movieClip 8656	{
	}
	movieClip 8658	{
	}
	movieClip 8659	{
		frame 1 {
			stop();
		}
		frame 19 {
			stop();
		}
		frame 27 {
			stop();
		}
	}
	movieClip 8660	{
	}
	movieClip 8662	{
	}
	movieClip 8663	{
		frame 1 {
			stop();
		}
		frame 19 {
			stop();
		}
		frame 27 {
			stop();
		}
	}
	movieClip 8667	{
	}
	movieClip 8672	{
	}
	movieClip 8677	{
		frame 1 {
			if (_root.character != 2) {
				stop();
			}
		}
	}
	movieClip 8690	{
	}
	movieClip 8696	{
		frame 1 {
			if (_root.hair == 1) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 8697	{
	}
	movieClip 8698	{
		frame 1 {
			if (_root.character != 1) {
				stop();
			}
		}
		frame 2 {
			if (_root.capeon == false) {
				cape._visible = false;
			}
		}
	}
	movieClip 8699	{
		frame 75 {
			stop();
		}
	}
	movieClip 8700	{
	}
	movieClip 8702	{
		frame 1 {
			_root.menuon = true;
			++_root.gamepause;
			chance = random(2) + 1;
		}
		frame 5 {
			if (_root.camera == false) {
				intro0._visible = false;
				if (chance == 1) {
					intro1._visible = false;
				} else {
					if (chance == 2) {
						intro2._visible = false;
					}
				}
			} else {
				intro1._visible = false;
				intro2._visible = false;
			}
		}
		frame 40 {
			_root.doendPause();
		}
		frame 50 {
			_root.menuon = false;
			_root.afterIntro();
		}
		frame 77 {
			stop();
		}
	}
	movieClip 8703	{
		frame 1 {
			stop();
		}
	}
	movieClip 8705	{
		frame 1 {
			stop();
		}
	}
	movieClip 8710	{
		frame 33 {
			stop();
		}
	}
	movieClip 8711	{
		frame 1 {
			stop();
		}
	}
	button 8712 {
		on (release) {
			_root.doTextpageX();
		}
	}
	button 8713 {
		on (release) {
			_root.choice = 2;
			_root.yesno = false;
			_root.doTextpageX();
		}
	}
	button 8714 {
		on (release) {
			_root.choice = 1;
			_root.yesno = false;
			_root.doTextpageX();
		}
	}
	movieClip 8715	{
	}
	movieClip 8716	{
		frame 1 {
			i = 1;
			while (i <= 50) {
				_root['page' + i] = '';
				++i;
			}
			_root.turns = 0;
			_root.turnsX = 0;
			_root.yesno = false;
			_root.yesnoX = false;
			_root.chathelp = false;
			_root.chathelpX = false;
			_root.choice = 0;
			_root.chat = false;
			_root.help = false;
			_root.notpause = false;
			_root.gonext = true;
			_root.currentpage = 1;
			stop();
		}
		frame 2 {
			stopfor = false;
			i = 1;
			while (i <= 50) {
				if (_root['page' + (i + 1)] == '' && stopfor == false) {
					_root.turns = i;
					stopfor = true;
				}
				++i;
			}
			clearInterval(_root.counttextID2);
			_root.countertext2 = 0;
			_root.currentpage = 1;
			_root.turnsX = 0;
			if (_root.notpause == false) {
				++_root.gamepause;
			}
			txt.txtz.multiline = true;
			txt.txtz.wordWrap = true;
			txt.txtz.autoSize = true;
			txt.txtz.text = _root.page1;
			bg.bgX.gotoAndStop(txt.txtz.maxscroll);
			txt.txtz.text = '';
			if (_root.page1 == '' && _root.currentpage == 1) {
				gotoAndPlay(7);
			}
		}
		frame 5 {
			txt.Mask_MC.gotoAndPlay(1);
			embedSize = 12;
			txt.txtz.multiline = true;
			txt.txtz.wordWrap = true;
			txt.txtz.autoSize = true;
			txt.txtz._height = embedSize;
			_root.gonext = false;
			++_root.turnsX;
			if (_root.currentpage == _root.turnsX) {
				txt.txtz.text = eval('_root.page' + _root.turnsX);
				_root.portraitX = (eval('_root.page' + _root.turnsX)).split(':', 2);
				if (txt.txtz.maxscroll >= 5) {
					txt.txtz.text = 'ERROR! Page ' + _root.turnsX + ' text is too long!' + '\n' + 'Please report to Douglas, the creator of this game. Email gavelin989@hotmail.com';
				} else {
					if (txt.txtz.text == 'ALT') {
						txt.txtz.text = 'ERROR! Page ' + _root.turnsX + ' is empty!' + '\n' + 'Please report to Douglas, the creator of this game. Email gavelin989@hotmail.com';
					}
				}
			}
			if (_root.portraitX[0] == 'Roy') {
				portrait_MC.gotoAndStop(2);
				txt.txtz.text = _root.corename + ':' + _root.portraitX[1];
			} else {
				if (_root.portraitX[0] == 'Caleb') {
					portrait_MC.gotoAndStop(3);
				} else {
					if (_root.portraitX[0] == 'Argas') {
						portrait_MC.gotoAndStop(4);
					} else {
						if (_root.portraitX[0] == 'Douglas') {
							portrait_MC.gotoAndStop(5);
						} else {
							if (_root.portraitX[0] == 'Brock') {
								portrait_MC.gotoAndStop(6);
							} else {
								if (_root.portraitX[0] == 'Dion') {
									portrait_MC.gotoAndStop(7);
								} else {
									if (_root.portraitX[0] == 'Golden Demon' or _root.portraitX[0] == 'Sorathis' or _root.portraitX[0] == 'Sinmorath') {
										portrait_MC.gotoAndStop(8);
									} else {
										if (_root.portraitX[0] == 'Agga') {
											portrait_MC.gotoAndStop(9);
										} else {
											if (_root.portraitX[0] == 'Luvannon') {
												portrait_MC.gotoAndStop(10);
											} else {
												if (_root.portraitX[0] == 'Darcon') {
													portrait_MC.gotoAndStop(11);
												} else {
													portrait_MC.gotoAndStop(1);
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
			if (portrait_MC._currentframe == 1) {
				_root.bhud.text_MCX.textz._x = -20;
				Buttons._x = 85;
			} else {
				_root.bhud.text_MCX.textz._x = 0;
				Buttons._x = 65;
			}
			if (_root.notpause == true) {
				Buttons._visible = false;
			}
			txt.txtz.setTextFormat(0, txt.txtz.text.indexOf(':'), _root.namecolorobject);
			portrait_MC.gotoAndStop(_root.portrait + 1);
			bg.bgX.gotoAndStop(txt.txtz.maxscroll);
			Buttons._y = (txt.txtz.maxscroll - 1) * 9.5 + 8.5;
			if (_root.chathelp == true) {
				Buttons.next_BT._visible = false;
				Buttons.no_BT._visible = false;
				Buttons.yes_BT._visible = false;
				_root.yesnoX = false;
			} else {
				if (_root.yesno == true) {
					Buttons.next_BT._visible = false;
					Buttons.no_BT._visible = true;
					Buttons.yes_BT._visible = true;
					_root.yesnoX = true;
				} else {
					Buttons.next_BT._visible = true;
					Buttons.no_BT._visible = false;
					Buttons.yes_BT._visible = false;
					_root.yesnoX = false;
				}
			}
		}
		frame 6 {
			if (_root.notpause == true) {
				clearInterval(_root.counttextID2);
				_root.countertext2 = 0;
				_root.counttextID2 = setInterval(_root.doCountertext2, 1000);
			}
			stop();
		}
		frame 7 {
			_root.countertext = 0;
			_root.doendPause();
		}
		frame 13 {
			txt.txtz.text = '';
			if (_root.battleend == true && _root._currentframe < 2170) {
				_root.gotoAndPlay('win');
				if (_root.character == 1) {
					_root.char_MC.charX.Core2.gotoAndPlay('Win');
				} else {
					if (_root.character == 2) {
						_root.char_MC.charX.Caleb.gotoAndPlay('Win');
					}
				}
			}
		}
	}
	movieClip 8717	{
	}
	movieClip 8723	{
	}
	movieClip 8724	{
		frame 1 {
			stop();
		}
	}
	movieClip 8727	{
	}
	movieClip 8728	{
		frame 1 {
			_root.willpause = false;
			pauseX = false;
			onEnterFrame = function () {
				if (pauseX == false or _root.gamepause == 0) {
					if (_root.character == 1) {
						if (_root.char_MC.charX.Core._currentframe == 1 && _root.char_MC.charX.Core2._currentframe == 1 && _root.enemy_MC.enemiez.enemy._currentframe == 1 or _root.battleend == true) {
							if (_root.willpause == false) {
								gotoAndStop(1);
							} else {
								pauseX = true;
								_root.willpause = false;
								_root.doPause();
								gotoAndPlay(3);
							}
						} else {
							_root.willpause = true;
							gotoAndStop(2);
						}
					} else {
						if (_root.character == 2) {
							if (_root.char_MC.charX.Caleb._currentframe == 1 && _root.enemy_MC.enemiez.enemy._currentframe == 1 or _root.battleend == true) {
								if (_root.willpause == false) {
									gotoAndStop(1);
								} else {
									pauseX = true;
									_root.willpause = false;
									_root.doPause();
									gotoAndPlay(3);
								}
							} else {
								_root.willpause = true;
								gotoAndStop(2);
							}
						}
					}
				}
			};
		}
	}
	movieClip 8730	{
		frame 1 {
			stop();
		}
		instance of movieClip 343 MedalPopup {
			onClipEvent (construct) {
				alwaysOnTop = 'true';
			}
		}
		frame 2 {
			if (_root.character == 1) {
				if (_root.char_MC.charX.Core._currentframe == 1 && _root.enemy_MC.enemiez.enemy._currentframe == 1) {
					_root.doPause();
				}
			} else {
				if (_root.character == 2) {
					if (_root.char_MC.charX.Caleb._currentframe == 1 && _root.enemy_MC.enemiez.enemy._currentframe == 1) {
						_root.doPause();
					}
				}
			}
		}
		frame 5 {
			_root.globalvolume.setVolume(_root.volumez - _root.volumez / 5);
			_root.goto2 = true;
			_root.enemiez.enemy.mc.gotoAndPlay(1);
		}
		frame 10 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 2);
		}
		frame 15 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 3);
		}
		frame 20 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 4);
		}
		frame 25 {
			_root.globalvolume.setVolume(0);
			stop();
		}
		frame 30 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 4);
		}
		frame 35 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 3);
		}
		frame 40 {
			_root.globalvolume.setVolume(_root.volumez - (_root.volumez / 5) * 2);
		}
		frame 45 {
			_root.globalvolume.setVolume(_root.volumez - _root.volumez / 5);
			_root.goto2 = false;
			_root.enemiez.enemy.mc.gotoAndPlay(1);
		}
		frame 53 {
			_root.countID = setInterval(_root.doCounter, 1000);
			_root.countTID = setInterval(_root.doTCounter, 1000);
			_root.globalvolume.setVolume(_root.volumez);
			if (_root.gamepause > 1 or _root.story == 10) {
				_root.doendPause();
				gotoAndStop(1);
			}
		}
		frame 55 {
			if (_root.willpause == false) {
				_root.doendPause();
			}
			++_root.gamepause;
			_root.doendPause();
			_root.willpause = false;
		}
	}
	button 8733 {
		on (release) {
			_root.quallow3();
		}
		on (rollOver) {
			if (_root.hotinfo == true) {
				hotf.gotoAndStop(2);
			}
		}
		on (rollOut) {
			hotf.gotoAndStop(1);
		}
	}
	button 8734 {
		on (release) {
			_root.qualmedium3();
		}
		on (rollOver) {
			if (_root.hotinfo == true) {
				hotf.gotoAndStop(3);
			}
		}
		on (rollOut) {
			hotf.gotoAndStop(1);
		}
	}
	button 8735 {
		on (release) {
			_root.qualhigh3();
		}
		on (rollOver) {
			if (_root.hotinfo == true) {
				hotf.gotoAndStop(4);
			}
		}
		on (rollOut) {
			hotf.gotoAndStop(1);
		}
	}
	button 8736 {
		on (release) {
			_root.camera = true;
		}
	}
	button 8737 {
		on (release) {
			_root.camera = false;
			_root.firstcamera = true;
		}
	}
	button 8739 {
		on (release) {
			_root.hudvisible = true;
			_root.bhud.limitbar_MC.txtlimit._visible = true;
			_root.bhud.enmlimit_MC.txtlimit._visible = true;
			_root.bhud.enemybarz.txtstamina._visible = true;
			_root.bhud.enemybarz.enemylimitbarz.txtlimit._visible = true;
			_root.bhud.enmmanatxt.txtmana._visible = true;
			_root.bhud.manatxt.txtmana._visible = true;
			_root.bhud.txtvisible._visible = true;
			if (_root.item1 == false) {
				_root.bhud.menuz.item_BT._visible = false;
				_root.bhud.menuz.item_BT._y = 500;
			}
		}
	}
	button 8740 {
		on (release) {
			_root.hudvisible = false;
			_root.bhud.limitbar_MC.txtlimit._visible = false;
			_root.bhud.enmlimit_MC.txtlimit._visible = false;
			_root.bhud.enemybarz.txtstamina._visible = false;
			_root.bhud.enemybarz.enemylimitbarz.txtlimit._visible = false;
			_root.bhud.enmmanatxt.txtmana._visible = false;
			_root.bhud.manatxt.txtmana._visible = false;
			_root.bhud.txtvisible._visible = false;
		}
	}
	button 8742 {
		on (release) {
			_root.menuvisible = true;
			_root.bhud.menuz.menuzZ.gotoAndStop(2);
		}
	}
	button 8743 {
		on (release) {
			_root.menuvisible = false;
			_root.bhud.menuz.menuzZ.gotoAndStop(1);
		}
	}
	movieClip 8753	{
		frame 1 {
			clearInterval(intervalId);
			stop();
		}
	}
	movieClip 8754	{
		frame 1 {
			clearInterval(intervalId);
			stop();
		}
		frame 2 {
			fpzCounter = 0;
			fpz = 30;
			fpzReport = function () {
				fpz = fpzCounter;
				fpzCounter = 0;
			};
			intervalId = setInterval(fpzReport, 1000);
			onEnterFrame = function () {
				++fpzCounter;
				if (fpz < 30) {
					fps_txt.text = fpz + ' / 30';
				} else {
					fps_txt.text = '30 / 30';
				}
				if (_root.volumez == 0) {
					volume_0.gotoAndStop(2);
					volume_1.gotoAndStop(1);
					volume_2.gotoAndStop(1);
					volume_3.gotoAndStop(1);
					volume_4.gotoAndStop(1);
				} else {
					if (_root.volumez == 25) {
						volume_0.gotoAndStop(1);
						volume_1.gotoAndStop(2);
						volume_2.gotoAndStop(1);
						volume_3.gotoAndStop(1);
						volume_4.gotoAndStop(1);
					} else {
						if (_root.volumez == 50) {
							volume_0.gotoAndStop(1);
							volume_1.gotoAndStop(1);
							volume_2.gotoAndStop(2);
							volume_3.gotoAndStop(1);
							volume_4.gotoAndStop(1);
						} else {
							if (_root.volumez == 75) {
								volume_0.gotoAndStop(1);
								volume_1.gotoAndStop(1);
								volume_2.gotoAndStop(1);
								volume_3.gotoAndStop(2);
								volume_4.gotoAndStop(1);
							} else {
								if (_root.volumez == 100) {
									volume_0.gotoAndStop(1);
									volume_1.gotoAndStop(1);
									volume_2.gotoAndStop(1);
									volume_3.gotoAndStop(1);
									volume_4.gotoAndStop(2);
								}
							}
						}
					}
				}
				if (_root.musicmute == false) {
					music_off.gotoAndStop(1);
					music_on.gotoAndStop(2);
				} else {
					if (_root.musicmute == true) {
						music_off.gotoAndStop(2);
						music_on.gotoAndStop(1);
					}
				}
				if (_root.sfxmute == false) {
					sfx_off.gotoAndStop(1);
					sfx_on.gotoAndStop(2);
				} else {
					if (_root.sfxmute == true) {
						sfx_off.gotoAndStop(2);
						sfx_on.gotoAndStop(1);
					}
				}
				if (_root.battlequality == 'medium') {
					q_low.gotoAndStop(1);
					q_medium.gotoAndStop(2);
					q_high.gotoAndStop(1);
				} else {
					if (_root.battlequality == 'high') {
						q_low.gotoAndStop(1);
						q_medium.gotoAndStop(1);
						q_high.gotoAndStop(2);
					} else {
						if (_root.battlequality == 'low') {
							q_low.gotoAndStop(2);
							q_medium.gotoAndStop(1);
							q_high.gotoAndStop(1);
						}
					}
				}
				if (_root.camera == true) {
					cam_off.gotoAndStop(1);
					cam_on.gotoAndStop(2);
				} else {
					if (_root.camera == false) {
						cam_off.gotoAndStop(2);
						cam_on.gotoAndStop(1);
					}
				}
				if (_root.hudvisible == true) {
					hud_off.gotoAndStop(1);
					hud_on.gotoAndStop(2);
				} else {
					hud_off.gotoAndStop(2);
					hud_on.gotoAndStop(1);
				}
				if (_root.menuvisible == true) {
					menu_off.gotoAndStop(1);
					menu_on.gotoAndStop(2);
				} else {
					menu_off.gotoAndStop(2);
					menu_on.gotoAndStop(1);
				}
				if (_root.hotinfo == true) {
					hot_off.gotoAndStop(1);
					hot_on.gotoAndStop(2);
				} else {
					hot_off.gotoAndStop(2);
					hot_on.gotoAndStop(1);
				}
			};
		}
	}
	movieClip 8756	{
		frame 69 {
			_root.bhud.menuz._visible = false;
			stop();
		}
	}
	movieClip 8760	{
	}
	movieClip 8762	{
		frame 44 {
			stop();
		}
	}
	movieClip 8767	{
		frame 21 {
			stop();
		}
	}
	movieClip 8771	{
		frame 1 {
			if (_root.training == true) {
				gotoAndStop(3);
			} else {
				if (_root.numofhits == 0 && _root.story >= 62) {
					gotoAndStop(2);
				} else {
					gotoAndStop(1);
				}
			}
		}
	}
	movieClip 8772	{
		frame 80 {
			stop();
		}
	}
	button 8776 {
		on (release) {
			_root.gamepause = 0;
			_root.gotoAndPlay('back');
		}
	}
	movieClip 8779	{
	}
	movieClip 8784	{
		frame 1 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 20 {
			this._visible = false;
		}
	}
	movieClip 8785	{
		frame 1 {
			stop();
		}
	}
	movieClip 8788	{
		frame 1 {
			_root.medaltext1 = '';
			_root.medaltext2 = '';
			_root.medaltext3 = '';
			_root.newmedals = 0;
			_root.othermedal = false;
			stop();
		}
		frame 4 {
			if (_root.sfxmute == false) {
				_root.enmsound4.attachSound('defendcaster');
				_root.enmsound4.start();
			}
			++_root.gamepause;
		}
		frame 33 {
			_root.newmedals = 0;
		}
		frame 175 {
			_root.doendPause();
		}
	}
	movieClip 8792	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
			onEnterFrame = function () {
				if (_root.character == 1) {
					if (_root.bhud.menuz.limit_BT._currentframe > 1 && _root.infohealth > 0) {
						if (_root.infohealth > _root.corehealth) {
							health_txt.text = 'Health ' + Math.round((_root.corehealth / _root.infohealth) * 100) + '%';
						} else {
							health_txt.text = 'Health 100%';
						}
						bg._height = 130;
						ready_txt.text = 'Ready!';
					} else {
						health_txt.text = '';
						bg._height = 100;
						if (_root.infostam <= _root.corestamina && _root.infomana <= _root.coremana) {
							ready_txt.text = 'Ready!';
						} else {
							ready_txt.text = 'Not ready';
						}
					}
					if (_root.infomana > _root.coremana) {
						mana_txt.text = 'Mana ' + Math.round((_root.coremana / _root.infomana) * 100) + '%';
					} else {
						mana_txt.text = 'Mana 100%';
					}
				} else {
					if (_root.character == 2) {
						if (_root.bhud.menuz.limit_BT._currentframe > 1 && _root.infohealth > 0) {
							if (_root.infohealth > _root.calebhealth) {
								health_txt.text = 'Health ' + Math.round((_root.calebhealth / _root.infohealth) * 100) + '%';
							} else {
								health_txt.text = 'Health 100%';
							}
							bg._height = 130;
							ready_txt.text = 'Ready!';
						} else {
							health_txt.text = '';
							bg._height = 100;
							if (_root.infostam <= _root.calebstamina && _root.infomana <= _root.calebmana) {
								ready_txt.text = 'Ready!';
							} else {
								ready_txt.text = 'Not ready';
							}
						}
						if (_root.infomana > _root.calebmana) {
							mana_txt.text = 'Mana ' + Math.round((_root.calebmana / _root.infomana) * 100) + '%';
						} else {
							mana_txt.text = 'Mana 100%';
						}
					}
				}
			};
		}
	}
	movieClip 8793	{
	}
	movieClip 8795	{
	}
	movieClip 8796	{
		frame 1 {
			stop();
		}
		frame 75 {
			damage2.damagetxt.text = '';
		}
	}
	movieClip 8798	{
	}
	movieClip 8799	{
		frame 1 {
			stop();
		}
		frame 2 {
			if (_root.multiattack == true) {
				gotoAndPlay(63);
			}
		}
		frame 84 {
			stat.stattxt.text = '';
			gotoAndStop(1);
		}
		frame 100 {
			stat.stattxt.text = '';
			gotoAndStop(1);
		}
	}
	movieClip 8800	{
		frame 1 {
			stop();
		}
		frame 87 {
			stat.stattxt.text = '';
			gotoAndStop(1);
		}
	}
	movieClip 8802	{
	}
	movieClip 8803	{
		frame 1 {
			stop();
		}
		frame 100 {
			hl.heal_txt.text = '';
		}
	}
	movieClip 8804	{
		frame 1 {
			stop();
		}
		frame 128 {
			damage2.damagetxt.text = '';
		}
	}
	movieClip 8817	{
		frame 14 {
			stop();
		}
	}
	movieClip 8818	{
		frame 1 {
			stop();
		}
		frame 2 {
			this._rotation = random(360);
		}
	}
	movieClip 8827	{
		frame 1 {
			nam.text = _root.enemyname;
			lvl.text = _root.enmlevel;
			str.text = _root.enemyattack;
			def.text = _root.enemydefense;
		}
	}
	movieClip 8828	{
		frame 1 {
			stop();
		}
		frame 3 {
			_root.sightX = true;
		}
		frame 13 {
			_root.sight = true;
		}
		frame 262 {
			_root.sightX = false;
		}
	}
	movieClip 8830	{
	}
	movieClip 8841	{
		frame 1 {
			gotoAndPlay(Math.round(Math.random() * 10 + 1));
		}
	}
	movieClip 8842	{
	}
	movieClip 8844	{
	}
	movieClip 8846	{
	}
	movieClip 8848	{
	}
	movieClip 8850	{
	}
	movieClip 8852	{
	}
	movieClip 8855	{
	}
	movieClip 8857	{
	}
	movieClip 8858	{
	}
	movieClip 8860	{
	}
	movieClip 8861	{
		frame 1 {
			gotoAndPlay(random(180));
		}
	}
	movieClip 8863	{
	}
	movieClip 8865	{
	}
	movieClip 8867	{
	}
	movieClip 8869	{
	}
	movieClip 8872	{
	}
	movieClip 8874	{
	}
	movieClip 8876	{
	}
	movieClip 8878	{
	}
	movieClip 8879	{
		frame 1 {
			gotoAndPlay(random(230));
		}
		frame 240 {
			gotoAndPlay(random(50) + 240);
		}
	}
	movieClip 8881	{
	}
	movieClip 8887	{
		frame 1 {
			if (_root.calebhealth < _root.calebmaxhealth / 5) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
		frame 2 {
			stop();
		}
	}
	movieClip 8888	{
		frame 1 {
			gotoAndPlay(random(65));
		}
	}
	movieClip 8889	{
		frame 1 {
			if (_root.enemyhealth == _root.enemymaxhealth) {
				stop();
			}
		}
		frame 102 {
			if (_root.gamepause > 0) {
				gotoAndPlay(100);
			}
		}
	}
	movieClip 8890	{
		frame 1 {
			stop();
		}
		frame 2 {
			play();
		}
		frame 5 {
			if (_root.calebhealth < _root.calebmaxhealth / 5 or _root.calebpoison == true) {
				gotoAndPlay(6);
			} else {
				gotoAndPlay(8);
			}
		}
		frame 7 {
			if (_root.calebhealth < _root.calebmaxhealth / 5 or _root.calebpoison == true) {
				gotoAndPlay(5);
			}
		}
		frame 15 {
			gotoAndStop(1);
		}
	}
	movieClip 8894	{
		frame 1 {
			stop();
		}
	}
	movieClip 8899	{
		frame 1 {
			stop();
		}
	}
	movieClip 8903	{
		frame 1 {
			stop();
		}
	}
	movieClip 8908	{
		frame 1 {
			stop();
		}
	}
	movieClip 8911	{
		frame 1 {
			stop();
		}
	}
	movieClip 8915	{
		frame 1 {
			stop();
		}
		frame 99 {
			_root.doStopAttack();
			_root.doBattleAttack();
		}
	}
	movieClip 8916	{
		frame 2 {
			_parent.light2.gotoAndPlay(2);
		}
		frame 10 {
			_parent.light1.gotoAndPlay(2);
		}
		frame 16 {
			_parent.light3.gotoAndPlay(2);
		}
		frame 23 {
			_parent.light5.gotoAndPlay(2);
			_parent.light4.gotoAndPlay(2);
		}
	}
	movieClip 8918	{
	}
	movieClip 8920	{
	}
	movieClip 8924	{
	}
	movieClip 8928	{
		frame 9 {
			_parent.light1.gotoAndPlay(2);
		}
		frame 21 {
			_parent.light5.gotoAndPlay(2);
			_parent.light4.gotoAndPlay(2);
		}
		frame 46 {
			stop();
		}
	}
	movieClip 8930	{
	}
	movieClip 8935	{
	}
	movieClip 8937	{
		frame 11 {
			_parent.light1.gotoAndPlay(2);
			_parent.light3.gotoAndPlay(2);
		}
		frame 24 {
			_parent.light5.gotoAndPlay(2);
			_parent.light4.gotoAndPlay(2);
		}
		frame 48 {
			stop();
		}
	}
	movieClip 8939	{
	}
	movieClip 8940	{
	}
	movieClip 8942	{
	}
	movieClip 8945	{
		frame 31 {
			stop();
		}
	}
	movieClip 8948	{
	}
	movieClip 8952	{
		frame 1 {
			gotoAndPlay(Math.round(Math.random() * 7 + 1));
		}
		frame 48 {
			stop();
		}
	}
	movieClip 8953	{
		frame 17 {
			if (_root.battlecounterX == true) {
				gotoAndPlay(16);
			}
		}
		frame 33 {
			stop();
		}
	}
	movieClip 8960	{
		frame 17 {
			stop();
		}
	}
	movieClip 8964	{
		frame 10 {
			stop();
		}
	}
	movieClip 8971	{
		frame 25 {
			stop();
		}
	}
	movieClip 8972	{
	}
	movieClip 8973	{
	}
	movieClip 8978	{
		frame 15 {
			_parent.light1.gotoAndPlay(2);
		}
		frame 31 {
			_parent.light5.gotoAndPlay(2);
			_parent.light4.gotoAndPlay(2);
		}
		frame 63 {
			stop();
		}
	}
	movieClip 8979	{
	}
	movieClip 8982	{
		frame 1 {
			stop();
		}
		frame 2 {
			_root.groundlight2.gotoAndPlay(2);
		}
	}
	movieClip 8984	{
	}
	movieClip 8986	{
	}
	movieClip 8992	{
		frame 149 {
			stop();
		}
	}
	movieClip 8996	{
	}
	movieClip 8997	{
	}
	movieClip 9004	{
		frame 1 {
			gotoAndStop(random(6));
		}
	}
	movieClip 9005	{
		frame 1 {
			gotoAndPlay(random(10));
		}
	}
	movieClip 9009	{
		frame 1 {
			stop();
		}
		frame 26 {
			stop();
		}
	}
	movieClip 9013	{
		frame 26 {
			stop();
		}
	}
	movieClip 9015	{
	}
	movieClip 9018	{
		frame 21 {
			stop();
		}
	}
	movieClip 9020	{
	}
	movieClip 9033	{
		frame 111 {
			stop();
		}
	}
	movieClip 9042	{
		frame 1 {
			gotoAndPlay(Math.round(Math.random() * 4 + 1));
		}
		frame 12 {
			stop();
		}
	}
	movieClip 9044	{
	}
	movieClip 9045	{
		frame 85 {
			stop();
		}
	}
	movieClip 9051	{
	}
	movieClip 9053	{
	}
	movieClip 9055	{
	}
	movieClip 9057	{
	}
	movieClip 9064	{
		frame 153 {
			stop();
		}
	}
	movieClip 9066	{
	}
	movieClip 9067	{
		frame 9 {
			stop();
		}
	}
	movieClip 9070	{
	}
	movieClip 9074	{
		frame 1 {
			gotoAndPlay(Math.round(Math.random() * 7 + 1));
		}
		frame 48 {
			stop();
		}
	}
	movieClip 9081	{
	}
	movieClip 9087	{
	}
	movieClip 9089	{
	}
	movieClip 9091	{
	}
	movieClip 9093	{
	}
	movieClip 9099	{
	}
	movieClip 9101	{
	}
	movieClip 9104	{
	}
	movieClip 9108	{
		frame 1 {
			gotoAndPlay(random(7));
		}
		frame 49 {
			stop();
		}
	}
	movieClip 9110	{
	}
	movieClip 9112	{
	}
	movieClip 9115	{
	}
	movieClip 9118	{
	}
	movieClip 9128	{
	}
	movieClip 9134	{
	}
	movieClip 9136	{
	}
	movieClip 9153	{
	}
	movieClip 9161	{
	}
	movieClip 9169	{
		frame 32 {
			stop();
		}
	}
	movieClip 9178	{
		frame 42 {
			stop();
		}
	}
	movieClip 9179	{
	}
	movieClip 9181	{
		frame 1 {
			_root.chaos = true;
		}
		frame 75 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 181 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 200 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 218 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 236 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 270 {
			_root.bhud.white.gotoAndPlay(1);
		}
	}
	movieClip 9186	{
		frame 27 {
			stop();
		}
	}
	movieClip 9195	{
		frame 32 {
			stop();
		}
	}
	movieClip 9198	{
		frame 38 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 44 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 132 {
			stop();
		}
	}
	movieClip 9203	{
	}
	movieClip 9204	{
	}
	movieClip 9205	{
		frame 60 {
			_root.gotoAndPlay('lose');
			stop();
		}
	}
	movieClip 9207	{
	}
	movieClip 9208	{
		frame 1 {
			gotoAndPlay(random(5));
		}
	}
	movieClip 9213	{
	}
	movieClip 9216	{
		frame 1 {
			gotoAndPlay(Math.round(Math.random() * 5));
		}
	}
	movieClip 9219	{
		frame 52 {
			gotoAndPlay('X');
		}
	}
	movieClip 9223	{
	}
	movieClip 9224	{
	}
	movieClip 9227	{
		frame 27 {
			stop();
		}
	}
	movieClip 9229	{
	}
	movieClip 9232	{
	}
	movieClip 9239	{
		frame 236 {
			stop();
		}
	}
	movieClip 9247	{
	}
	movieClip 9255	{
	}
	movieClip 9256	{
		frame 109 {
			stop();
		}
	}
	movieClip 9260	{
		frame 281 {
			stop();
		}
	}
	movieClip 9261	{
		frame 1 {
			chance = random(2) + 1;
			if (chance == 1) {
				gotoAndPlay(31);
			}
		}
		frame 30 {
			stop();
		}
		frame 60 {
			stop();
		}
	}
	movieClip 9263	{
	}
	movieClip 9264	{
	}
	movieClip 9265	{
		frame 8 {
			stop();
		}
	}
	movieClip 9266	{
	}
	movieClip 9267	{
	}
	movieClip 9268	{
		frame 40 {
			stop();
		}
	}
	movieClip 9269	{
		frame 60 {
			_root.gotoAndPlay('lose');
			stop();
		}
	}
	movieClip 9270	{
		frame 1 {
			stop();
			_root.doStand();
			_root.hurt = false;
			_root.basedamage = Math.round((_root.calebstrength + _root.calebmagicdamage) / 2);
			if (_root.calebhealth < _root.calebmaxhealth / 5 or _root.calebpoison == true) {
				stand.gotoAndPlay(2);
			} else {
				stand.stop();
			}
			deepchaos._visible = false;
			XX._visible = false;
			if (_root.chaos == true) {
				deepchaos._visible = true;
				XX._visible = true;
				stand._visible = false;
				X._visible = false;
			}
			if (_root.enemyhealth <= 2100 && _root.story == 240) {
				_root.doSwitchcore();
				_root.page1 = 'Roy: This is bad! He is too strong!';
				_root.doStartTextX();
				_root.story = 241;
				++_root.gamepause;
				_root.coreconfuse = false;
				_root.corecon = false;
				_root.calebconfuse = false;
				_root.calebcon = false;
				_root.blind_MC._visible = false;
				_root.coreblind = false;
				_root.calebblind = false;
				_root.blind = false;
			}
			if (_root.battleend == true && _root.calebhealth > 0 && _root.bhud.text_MCX.textz._currentframe == 1) {
				if (_root.chaos == false) {
					doWin = function () {
						_root.gotoAndPlay('win');
						gotoAndPlay('Win');
					};
					setTimeout(doWin, 500);
				} else {
					gotoAndPlay('chaosend');
				}
			}
		}
		frame 2 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('deathpactX');
				_root.sound1.start();
			}
		}
		frame 12 {
			_root.attack = _root.basedamage;
			_root.doEnemyDodge();
		}
		frame 17 {
			_root.enmhurt.attachSound('catapult4');
			if (_root.sfxmute == false) {
				_root.enmhurt.start();
			}
		}
		frame 23 {
			if (_root.calebchaos == true) {
				_root.crack1_MC.gotoAndPlay(2);
			}
			_root.calebflash.gotoAndPlay(2);
		}
		frame 34 {
			_root.menuon = false;
		}
		frame 48 {
			gotoAndStop(1);
		}
		frame 49 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('deathpactX');
				_root.sound1.start();
			}
		}
		frame 58 {
			_root.attack = _root.basedamage;
			_root.doEnemyDodge();
		}
		frame 62 {
			_root.enmhurt.attachSound('catapult4');
			if (_root.sfxmute == false) {
				_root.enmhurt.start();
			}
		}
		frame 67 {
			if (_root.calebchaos == true) {
				_root.crack1_MC.gotoAndPlay(2);
			}
			_root.calebflash.gotoAndPlay(2);
		}
		frame 82 {
			_root.menuon = false;
		}
		frame 94 {
			gotoAndStop(1);
		}
		frame 95 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('deathpactX');
				_root.sound1.start();
			}
		}
		frame 103 {
			_root.attack = _root.basedamage;
			_root.doEnemyDodge();
		}
		frame 112 {
			_root.enmhurt.attachSound('catapult4');
			if (_root.sfxmute == false) {
				_root.enmhurt.start();
			}
		}
		frame 116 {
			if (_root.calebchaos == true) {
				_root.crack1_MC.gotoAndPlay(2);
			}
			_root.calebflash.gotoAndPlay(2);
		}
		frame 133 {
			_root.menuon = false;
		}
		frame 142 {
			gotoAndStop(1);
		}
		frame 143 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('devourmagic');
				_root.sound1.start();
			}
		}
		frame 148 {
			_root.dodge = true;
			_root.calebshield.gotoAndPlay(2);
			if (_root.enmattacking == true) {
				_root.docalebagility();
				_root.docalebdefense();
			}
		}
		frame 172 {
			_root.dodge = false;
		}
		frame 184 {
			gotoAndStop(1);
		}
		frame 185 {
			_root.attack = _root.basedamage;
			_root.docalebstrength();
			_root.docalebagility();
			_root.dodge = false;
		}
		frame 185 {
			_root.enmhurt.attachSound('catapult4');
			if (_root.sfxmute == false) {
				_root.enmhurt.start();
			}
		}
		frame 215 {
			_root.dodgeattack = false;
			_root.dodge = false;
			gotoAndStop(1);
		}
		frame 216 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('devourmagic');
				_root.sound1.start();
			}
		}
		frame 224 {
			_root.battlecounter = true;
		}
		frame 230 {
			if (_root.battlecounterX == true) {
				gotoAndPlay('counterX');
			}
			_root.extracounter = false;
		}
		frame 240 {
			_root.battlecounter = false;
		}
		frame 248 {
			gotoAndStop(1);
		}
		frame 249 {
			_root.caleblimit += 1;
			_root.attack = _root.basedamage;
			_root.docalebstrength();
			_root.docalebagility();
			_root.docalebdefense();
		}
		frame 249 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('catapult4');
				_root.sound1.start();
			}
		}
		frame 278 {
			_root.battlecounter = false;
			gotoAndStop(1);
		}
		frame 282 {
			_root.calebmana -= _root.calebmagic1mana;
			_root.calebchaos = true;
			_root.counterChaos = 0;
			_root.countChaosID = setInterval(_root.doCounterChaos, 1000);
		}
		frame 283 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('deathpactX');
				_root.sound2.start();
			}
		}
		frame 297 {
			light2.gotoAndPlay(2);
		}
		frame 312 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('ancestral');
				_root.sound1.start();
				_root.sound3.attachSound('019');
				_root.sound3.start();
			}
		}
		frame 340 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 346 {
			_root.domagicend();
		}
		frame 347 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('sleepbirth');
				_root.sound4.start();
			}
		}
		frame 352 {
			_root.candodge = true;
		}
		frame 369 {
			gotoAndStop(1);
		}
		frame 370 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Feedback');
				_root.sound1.start();
			}
		}
		frame 374 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 375 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('deathpactX');
				_root.sound2.start();
			}
		}
		frame 396 {
			_root.attack = Math.round(_root.calebmagicdamage);
			_root.dark = true;
		}
		frame 400 {
			_root.calebmana -= _root.calebmagic2mana;
			if (_root.battleend == false) {
				if (_root.magicimmunity == false) {
					_root.counterDem = 0;
					_root.countDemID = setInterval(_root.doCounterDem, 1000);
					_root.enmstat.stat.stattxt.text = 'Dementia';
					_root.enmstat.gotoAndPlay(2);
					_root.dementia = true;
				} else {
					_root.enmstat.stat.stattxt.text = 'Immune';
					_root.enmstat.gotoAndPlay(2);
				}
			}
		}
		frame 400 {
			_root.enmhurt.attachSound('catapult4');
			if (_root.sfxmute == false) {
				_root.enmhurt.start();
				_root.sound3.attachSound('zombie');
				_root.sound3.start();
			}
		}
		frame 423 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 432 {
			_root.domagicend();
		}
		frame 433 {
			light1.gotoAndPlay(2);
		}
		frame 438 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 446 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('063');
				_root.sound1.start();
			}
		}
		frame 453 {
			_root.calebmana -= _root.calebmagic3mana;
		}
		frame 453 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('073');
				_root.sound2.start();
			}
		}
		frame 500 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('072');
				_root.sound4.start();
			}
		}
		frame 502 {
			if (_root.slow == false) {
				_root.tryslow = true;
				_root.magicchance = 100;
				_root.slowcountX = 20;
			}
			_root.magicAttack = _root.calebmagicdamage * 2 + _root.calebiceElement;
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 505 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('065');
				_root.sound1.start();
			}
		}
		frame 508 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('065');
				_root.sound2.start();
			}
		}
		frame 512 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 512 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('066');
				_root.sound3.start();
			}
		}
		frame 558 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('063');
				_root.sound1.start();
			}
		}
		frame 560 {
			_root.black.play();
		}
		frame 581 {
			_root.domagicend();
		}
		frame 586 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('CBirth');
				_root.sound4.start();
			}
		}
		frame 587 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 611 {
			_root.bhud.white.gotoAndPlay(1);
			light1.gotoAndPlay(2);
		}
		frame 619 {
			_root.calebmana -= _root.calebmagic4mana;
			_root.magicAttack = _root.calebmagicdamage * 2 + _root.calebthunderElement;
			_root.stuncountX = 3 * Math.round(_root.calebmagicdamage / 5);
			_root.magicchance = 30;
			_root.tryparalyze = true;
		}
		frame 621 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('bighit');
				_root.sound2.start();
			}
		}
		frame 629 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('LBolt');
				_root.sound3.start();
			}
		}
		frame 631 {
			_root.bhud.white.gotoAndPlay(1);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 681 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 693 {
			_root.domagicend();
		}
		frame 697 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('FlameStrikeTarget');
				_root.sound1.start();
			}
		}
		frame 699 {
			_root.firemark1.gotoAndPlay(2);
			_root.firemark2.gotoAndPlay(2);
			_root.calebmana -= _root.calebmagic5mana;
		}
		frame 702 {
			_root.firemark = true;
		}
		frame 772 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 778 {
			_root.domagicend();
		}
		frame 784 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 801 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('deathpactX');
				_root.sound1.start();
			}
		}
		frame 869 {
			if (_root.firemark1._currentframe < 265) {
				_root.firemark1.gotoAndPlay('end');
			}
		}
		frame 876 {
			_root.calebmana -= _root.calebmagic5mana;
			_root.magicAttack = (_root.calebmagicdamage * 2 + _root.calebfireElement) / 3;
		}
		frame 878 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('mark');
				_root.sound1.start();
			}
		}
		frame 885 {
			_root.bhud.white.gotoAndPlay(1);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 888 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('diode1');
				_root.sound2.start();
			}
		}
		frame 897 {
			_root.bhud.white.gotoAndPlay(1);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 897 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('diode1');
				_root.sound3.start();
			}
		}
		frame 906 {
			_root.bhud.white.gotoAndPlay(1);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 906 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('diode2');
				_root.sound4.start();
			}
		}
		frame 911 {
			_root.multiattack = false;
			_root.weaknesscountX = 3 * Math.round(_root.calebmagicdamage / 5) + 5;
			_root.tryweakness = true;
			_root.magicchance = 3;
		}
		frame 915 {
			_root.bhud.white.gotoAndPlay(1);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 920 {
			_root.fire = false;
		}
		frame 949 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 960 {
			_root.domagicend();
		}
		frame 963 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal2');
				_root.sound1.start();
			}
		}
		frame 969 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('swing2');
				_root.sound2.start();
			}
		}
		frame 972 {
			_root.calebmana -= _root.calebmagic6mana;
			_root.stuncountX = 5 * Math.round(_root.calebmagicdamage / 3);
			_root.magic = true;
			_root.magicchance = 1;
			_root.statmagic = true;
			_root.tryparalyze = true;
			_root.paralyze_MC.gotoAndPlay(2);
		}
		frame 988 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('MirrorImage');
				_root.sound3.start();
			}
		}
		frame 1011 {
			_root.menuon = false;
		}
		frame 1019 {
			gotoAndStop(1);
		}
		frame 1024 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 1059 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('deathpactX');
				_root.sound2.start();
			}
		}
		frame 1065 {
			light1.play();
		}
		frame 1095 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Feedback');
				_root.sound1.start();
			}
		}
		frame 1105 {
			_root.eye_light.play();
			_root.thirdeye = true;
			_root.countEyeID = setInterval(_root.doCounterEye, 1000);
			_root.goto2 = true;
			_root.regstaminaXeye = _root.regstamina / 4;
			_root.calebregstamina += 0.5;
			_root.regstamina -= _root.regstaminaXeye;
		}
		frame 1131 {
			_root.enemy_MC.gotoAndPlay('blue');
		}
		frame 1219 {
			_root.doendlimitbreak();
		}
		frame 1225 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
			_root.black.play();
		}
		frame 1229 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('063');
				_root.sound2.start();
			}
		}
		frame 1234 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('deathpactX');
				_root.sound2.start();
			}
		}
		frame 1275 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1279 {
			_root.attack = (_root.calebstrength + _root.calebmagicdamage) * 2;
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 1283 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('metalchop3');
				_root.sound3.start();
			}
		}
		frame 1284 {
			_root.bhud.white.gotoAndPlay(1);
			_root.multiattack = false;
		}
		frame 1291 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 1292 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('metalchop3');
				_root.sound2.start();
			}
		}
		frame 1304 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 1308 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 1328 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 1328 {
			smoke1.play();
		}
		frame 1344 {
			_root.doendlimitbreak();
		}
		frame 1347 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Feedback');
				_root.sound1.start();
			}
		}
		frame 1350 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 1353 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('deathpactX');
				_root.sound2.start();
			}
		}
		frame 1372 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('possession');
				_root.sound3.start();
			}
		}
		frame 1381 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('bighit');
				_root.sound4.start();
			}
		}
		frame 1384 {
			_root.attack = (_root.calebstrength + _root.calebmagicdamage) * 3;
			_root.crack2_MC.gotoAndPlay(2);
		}
		frame 1384 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('cannon1');
				_root.sound1.start();
			}
		}
		frame 1389 {
			_root.bhud.white.gotoAndPlay(1);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 1389 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Explosion1');
				_root.sound2.start();
			}
		}
		frame 1395 {
			_root.bhud.white.gotoAndPlay(1);
			_root.multiattack = false;
		}
		frame 1398 {
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 1404 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 1404 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('ex5');
				_root.sound3.start();
			}
		}
		frame 1414 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 1438 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('bighit');
				_root.sound4.start();
			}
		}
		frame 1445 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 1465 {
			_root.doendlimitbreak();
		}
		frame 1471 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 1485 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Feedback');
				_root.sound2.start();
			}
		}
		frame 1494 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('deathpactX');
				_root.sound1.start();
			}
		}
		frame 1538 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('HolyBolt');
				_root.sound3.start();
			}
		}
		frame 1546 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('cannon2');
				_root.sound2.start();
			}
		}
		frame 1548 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('CBirth');
				_root.sound1.start();
			}
		}
		frame 1551 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('VLoop');
				_root.sound4.start();
			}
		}
		frame 1635 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('CDeath');
				_root.sound2.start();
			}
		}
		frame 1699 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('FBT');
				_root.sound3.start();
			}
		}
		frame 1735 {
			if (_root.camera == false) {
				_root.gotoBattlescreen();
			}
			_root.bhud.menuz.menuzZ.counter_BT._visible = false;
			_root.bhud.menuz.menuzZ.counterX._visible = true;
		}
		frame 1735 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('cannon2');
				_root.sound2.start();
			}
		}
		frame 1749 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('TauntX');
				_root.sound1.start();
			}
		}
		frame 1771 {
			_root.menuon = false;
			_root.black.gotoAndPlay(100);
			_root.calebreghealth -= 55;
			_root.calebregmana -= 55;
			_root.calebregstamina += 0.1;
		}
		frame 1786 {
			_root.chaos = true;
			_root.countMetaID = setInterval(_root.doCounterMeta, 1000);
			_root.doendlimitbreak();
		}
		frame 1787 {
			_root.dolimitbreak();
			_root.domenuon2();
			if (_root.camera == true) {
				_root.gotoAndPlay('chaosend');
			}
		}
		frame 1793 {
			if (_root.enemyhealth > 0) {
				_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
			}
		}
		frame 1836 {
			_root.black.gotoAndStop(1);
			_root.calebreghealth += 55;
			_root.calebregmana += 55;
			_root.calebregstamina -= 0.1;
		}
		frame 1836 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('FBT');
				_root.sound3.start();
			}
		}
		frame 1841 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('HolyBolt');
				_root.sound3.start();
			}
		}
		frame 1892 {
			_root.chaos = false;
			if (_root.camera == false) {
				_root.gotoBattlescreen();
			}
			if (_root.ranged == false) {
				_root.bhud.menuz.menuzZ.counter_BT._visible = true;
				_root.bhud.menuz.menuzZ.counterX._visible = false;
			}
		}
		frame 1902 {
			_root.menuon = false;
		}
		frame 1918 {
			_root.doendlimitbreak();
		}
		frame 1919 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('deathpactX');
				_root.sound1.start();
			}
		}
		frame 1928 {
			_root.attack = _root.calebstrength * 2 + _root.calebmagicdamage * 2;
		}
		frame 1932 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('catapult4');
				_root.sound1.start();
			}
		}
		frame 1937 {
			_root.calebflash.gotoAndPlay(2);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 1965 {
			gotoAndStop(1);
		}
		frame 1968 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal2');
				_root.sound1.start();
			}
		}
		frame 1969 {
			_root.dodge = true;
		}
		frame 1999 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 2000 {
			_root.dodge = false;
		}
		frame 2003 {
			gotoAndStop(1);
		}
		frame 2004 {
			_root.crack2_MC.gotoAndPlay(2);
			_root.attack = _root.calebstrength * 2 + _root.calebmagicdamage * 2;
		}
		frame 2004 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('catapult4');
				_root.sound3.start();
			}
		}
		frame 2036 {
			_root.dodge = false;
		}
		frame 2040 {
			gotoAndStop(1);
		}
		frame 2043 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal2');
				_root.sound1.start();
			}
		}
		frame 2049 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('swing2');
				_root.sound2.start();
			}
		}
		frame 2052 {
			_root.calebmana -= _root.calebmagic2Xmana;
			_root.stuncountX = 6 * Math.round(_root.calebmagicdamage / 3);
			_root.magic = true;
			_root.statmagic = true;
			_root.tryparalyze = true;
			_root.paralyze_MC.gotoAndPlay(2);
		}
		frame 2068 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('MirrorImage');
				_root.sound3.start();
			}
		}
		frame 2099 {
			gotoAndStop(1);
		}
		frame 2103 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Spirit');
				_root.sound1.start();
			}
		}
		frame 2108 {
			_root.heal = true;
			_root.healZ.gotoAndPlay(2);
			_root.countHealID = setInterval(_root.doCounterHeal, 70);
		}
		frame 2114 {
			_root.candodge = true;
		}
		frame 2135 {
			clearInterval(_root.countHealID);
			_root.heal = false;
		}
		frame 2139 {
			_root.menuon = false;
		}
		frame 2144 {
			gotoAndStop(1);
		}
		frame 2145 {
			if (_root.sfxmute == false) {
				_root.hurtsfx.start();
			}
		}
		frame 2146 {
			_root.hurt = true;
		}
		frame 2172 {
			_root.hurt = false;
			gotoAndStop(1);
		}
		frame 2173 {
			clearInterval(_root.countChaosID);
			_root.calebreghealth += 55;
			_root.calebregmana += 55;
			_root.calebregstamina -= 0.1;
			_root.sound4.attachSound('empty');
			_root.counter10 = 0;
			_root.dolimitbreak();
			_root.chaos = false;
		}
		frame 2182 {
			stop();
		}
		frame 2188 {
			_root.black.gotoAndPlay(160);
		}
		frame 2199 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('deathpactX');
				_root.sound1.start();
			}
		}
		frame 2238 {
			_root.bhud.white.gotoAndPlay(1);
			_root.rift_MC.gotoAndPlay(2);
			_root.calebmana -= _root.calebmagic3Xmana;
			_root.enemy_MC.gotoAndPlay('scar');
		}
		frame 2239 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('starship');
				_root.sound2.start();
			}
		}
		frame 2242 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 2293 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('memory');
				_root.sound1.start();
			}
		}
		frame 2317 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('ancestral');
				_root.sound2.start();
			}
		}
		frame 2344 {
			chance = random(3) + 1;
			if (chance == 1) {
				_root.suddendeath = true;
			}
			_root.magicAttack = (_root.calebmagicdamage * 3 + _root.calebdarkElement) * 2;
		}
		frame 2350 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('cannon1');
				_root.sound3.start();
			}
		}
		frame 2351 {
			_root.bhud.white.gotoAndPlay(1);
			_root.black.gotoAndPlay(54);
			_root.enemy_MC._visible = false;
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 2360 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 2369 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 2375 {
			_root.enemy_MC._visible = true;
		}
		frame 2383 {
			_root.bhud.white.gotoAndPlay(1);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 2423 {
			_root.menuon = false;
		}
		frame 2437 {
			_root.domagicend();
		}
		frame 2443 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 2457 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Undead');
				_root.sound1.start();
			}
		}
		frame 2547 {
			_root.attack = _root.calebstrength * 2 + _root.calebmagicdamage * 3;
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 2575 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 2582 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 2587 {
			_root.bhud.white.gotoAndPlay(1);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 2587 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('cannon1');
				_root.sound2.start();
			}
		}
		frame 2591 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 2594 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 2597 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('cannon2');
				_root.sound3.start();
			}
		}
		frame 2601 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 2610 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('ex5');
				_root.sound4.start();
			}
		}
		frame 2611 {
			_root.multiattack = false;
		}
		frame 2618 {
			_root.bhud.white.gotoAndPlay(1);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 2699 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 2719 {
			_root.doendlimitbreak();
		}
		frame 2720 {
			if (_root.sfxmute == false) {
				_root.hurtsfx.start();
			}
		}
		frame 2721 {
			_root.hurt = true;
		}
		frame 2751 {
			_root.hurt = false;
			gotoAndStop(1);
		}
		frame 2752 {
			if (_root.sfxmute == false) {
				_root.hurtsfx.start();
			}
		}
		frame 2753 {
			_root.hurt = true;
		}
		frame 2773 {
			_root.hurt = false;
			gotoAndStop(1);
		}
		frame 2774 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('slowwoosh2');
				_root.sound1.start();
			}
		}
		frame 2785 {
			gotoAndPlay('stopz');
		}
		frame 2796 {
			gotoAndStop(1);
		}
		frame 2796 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 2796 {
			smoke1.play();
		}
		frame 2797 {
			gotoAndPlay('protectX');
		}
		frame 2797 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('woosh1');
				_root.sound1.start();
			}
		}
		frame 2799 {
			++_root.gamepause;
		}
		frame 2823 {
			_root.doendPause();
			gotoAndPlay('stopz');
		}
		frame 2826 {
			if (_root.training == true) {
				_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
			}
		}
		frame 2836 {
			stop();
		}
		frame 2845 {
			stop();
		}
		frame 2846 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('woosh2');
				_root.sound1.start();
			}
		}
		frame 2860 {
			_root.doBattleExit();
			_root.doGotoGame();
		}
	}
	movieClip 9271	{
		frame 1 {
			if (_root.enemyhealth == _root.enemymaxhealth) {
				stop();
			}
		}
		frame 50 {
			if (_root.gamepause > 0) {
				gotoAndPlay(45);
			}
		}
	}
	movieClip 9272	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (_root.corehealth < _root.coremaxhealth / 5 or _root.corepoison == true) {
				gotoAndPlay(6);
			} else {
				gotoAndPlay(8);
			}
		}
		frame 7 {
			if (_root.corehealth < _root.coremaxhealth / 5 or _root.corepoison == true) {
				gotoAndPlay(5);
			}
		}
		frame 15 {
			gotoAndStop(1);
		}
	}
	movieClip 9283	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 9286	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 9288	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 9290	{
		frame 1 {
			if (_root.shoes > 2) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 9291	{
	}
	movieClip 9293	{
		frame 1 {
			if (_root.corehealth < _root.coremaxhealth / 5) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 9294	{
	}
	movieClip 9298	{
		frame 1 {
			gotoAndStop(_root.shoes);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 9299	{
	}
	movieClip 9305	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9308	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
		}
	}
	movieClip 9314	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9318	{
		frame 1 {
			gotoAndStop(_root.glove2);
			if (_root.glove2 != 1 && _root.glove2 != 2) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
			}
		}
	}
	movieClip 9319	{
	}
	movieClip 9329	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9335	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 9336	{
		frame 1 {
			gotoAndStop(_root.gauntlet);
			if (_root.gauntlet != 5) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.gauntlettintrb, 'gb': _root.gauntlettintgb, 'bb': _root.gauntlettintbb});
			}
		}
	}
	movieClip 9337	{
	}
	movieClip 9348	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 9351	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 9353	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 9355	{
		frame 1 {
			if (_root.shoes > 2) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 9356	{
	}
	movieClip 9358	{
		frame 1 {
			gotoAndStop(_root.sword);
		}
	}
	movieClip 9364	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9366	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
		}
	}
	movieClip 9372	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9375	{
		frame 1 {
			gotoAndStop(_root.glove1);
			if (_root.glove1 != 1 && _root.glove1 != 2) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
			}
		}
	}
	movieClip 9376	{
	}
	movieClip 9380	{
		frame 1 {
			gotoAndStop(_root.shoes);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 9386	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9387	{
		frame 1 {
			gotoAndStop(_root.shoes);
		}
	}
	movieClip 9393	{
		frame 1 {
			gotoAndStop(_root.jacket);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.jackettintrb, 'gb': _root.jackettintgb, 'bb': _root.jackettintbb});
		}
	}
	movieClip 9398	{
		frame 1 {
			gotoAndStop(_root.jacket);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
		}
	}
	movieClip 9403	{
		frame 1 {
			gotoAndStop(_root.belt);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.belttintrb, 'gb': _root.belttintgb, 'bb': _root.belttintbb});
		}
	}
	movieClip 9404	{
	}
	movieClip 9410	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 9411	{
	}
	movieClip 9416	{
		frame 1 {
			if (_root.guarduniform == false && _root.maskoff == false) {
				gotoAndStop(_root.maskz);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.masktintrb, 'gb': _root.masktintgb, 'bb': _root.masktintbb});
			} else {
				stop();
			}
		}
	}
	movieClip 9422	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9425	{
		frame 1 {
			gotoAndStop(_root.eyepatch);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.patchtintrb, 'gb': _root.patchtintgb, 'bb': _root.patchtintbb});
		}
	}
	movieClip 9438	{
		frame 1 {
			if (_root.cape_addon == 2) {
				gotoAndStop(_root.capecolor);
			} else {
				if (_root.cape_addon == 3) {
					gotoAndStop(_root.capecolor + 6);
				} else {
					gotoAndStop(13);
				}
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
		}
	}
	movieClip 9439	{
	}
	movieClip 9445	{
		frame 1 {
			gotoAndStop(_root.beard);
		}
	}
	movieClip 9446	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 9448	{
	}
	movieClip 9451	{
		frame 1 {
			if (_root.hair > 1) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 9453	{
	}
	movieClip 9456	{
	}
	movieClip 9459	{
	}
	movieClip 9462	{
	}
	movieClip 9465	{
	}
	movieClip 9468	{
	}
	movieClip 9471	{
	}
	movieClip 9474	{
	}
	movieClip 9477	{
	}
	movieClip 9480	{
	}
	movieClip 9482	{
	}
	movieClip 9484	{
	}
	movieClip 9488	{
	}
	movieClip 9492	{
	}
	movieClip 9493	{
		frame 1 {
			gotoAndStop(_root.hair);
			_root.myColor = new Color(colorbase);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 9494	{
	}
	movieClip 9501	{
		frame 1 {
			if (_root.capeon == false) {
				gotoAndStop(7);
			} else {
				gotoAndStop(_root.capecolor);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
			}
		}
	}
	movieClip 9502	{
	}
	movieClip 9503	{
	}
	movieClip 9513	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9519	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 9520	{
		frame 1 {
			gotoAndStop(_root.gauntlet);
			if (_root.gauntlet != 5) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.gauntlettintrb, 'gb': _root.gauntlettintgb, 'bb': _root.gauntlettintbb});
			}
		}
	}
	movieClip 9521	{
	}
	movieClip 9532	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
			if (_root.nosez == 6) {
				gotoAndStop(_root.skinz + 5);
			} else {
				gotoAndStop(_root.skinz);
			}
		}
	}
	movieClip 9534	{
		frame 1 {
			gotoAndStop(_root.freckles);
			this._alpha = _root.frecklesalpha;
		}
	}
	movieClip 9541	{
		frame 1 {
			gotoAndStop(_root.scar);
			this._alpha = _root.scaralpha;
		}
	}
	movieClip 9552	{
		frame 1 {
			gotoAndStop(_root.tattoo);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.tattootintrb, 'gb': _root.tattootintgb, 'bb': _root.tattootintbb});
			this._alpha = _root.tattooalpha;
		}
	}
	movieClip 9561	{
		frame 1 {
			gotoAndStop(_root.beard);
		}
	}
	movieClip 9562	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 9569	{
		frame 1 {
			if (_root.cape_addon == 3 && _root.maskoff == false) {
				gotoAndStop(_root.capecolor);
			} else {
				gotoAndStop(7);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
		}
	}
	movieClip 9570	{
	}
	movieClip 9576	{
		frame 1 {
			if (_root.guarduniform == false && _root.maskoff == false) {
				gotoAndStop(_root.maskz);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.masktintrb, 'gb': _root.masktintgb, 'bb': _root.masktintbb});
			} else {
				stop();
			}
		}
	}
	movieClip 9578	{
	}
	movieClip 9581	{
	}
	movieClip 9584	{
	}
	movieClip 9587	{
	}
	movieClip 9590	{
	}
	movieClip 9594	{
	}
	movieClip 9598	{
	}
	movieClip 9602	{
	}
	movieClip 9606	{
	}
	movieClip 9609	{
	}
	movieClip 9612	{
	}
	movieClip 9614	{
	}
	movieClip 9616	{
	}
	movieClip 9620	{
	}
	movieClip 9624	{
	}
	movieClip 9625	{
		frame 1 {
			gotoAndStop(_root.hair);
			_root.myColor = new Color(colorbase);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 9626	{
	}
	movieClip 9633	{
		frame 1 {
			if (_root.capeon == false) {
				gotoAndStop(7);
			} else {
				gotoAndStop(_root.capecolor);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
			}
		}
	}
	movieClip 9641	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 9642	{
	}
	movieClip 9649	{
		frame 1 {
			if (_root.capeon == false) {
				gotoAndStop(7);
			} else {
				gotoAndStop(_root.capecolor);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.capetintrb, 'gb': _root.capetintgb, 'bb': _root.capetintbb});
			}
		}
	}
	movieClip 9655	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9657	{
	}
	movieClip 9659	{
	}
	movieClip 9662	{
		frame 1 {
			gotoAndStop(_root.glove2);
			if (_root.glove2 != 1) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
			}
		}
	}
	movieClip 9663	{
	}
	movieClip 9672	{
		frame 1 {
			gotoAndStop(_root.sword);
		}
	}
	movieClip 9682	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9688	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 9689	{
		frame 1 {
			gotoAndStop(_root.gauntlet);
			if (_root.gauntlet != 5) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.gauntlettintrb, 'gb': _root.gauntlettintgb, 'bb': _root.gauntlettintbb});
			}
		}
	}
	movieClip 9690	{
	}
	movieClip 9698	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 9699	{
	}
	movieClip 9700	{
	}
	movieClip 9711	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 9714	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 9716	{
		frame 1 {
			if (_root.shoes > 2) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 9717	{
	}
	movieClip 9719	{
	}
	movieClip 9721	{
		frame 1 {
			if (_root.health < _root.maxhealth / 5) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 9722	{
		frame 10 {
			stop();
		}
	}
	movieClip 9728	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 9730	{
	}
	movieClip 9743	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 9746	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 9747	{
	}
	movieClip 9753	{
		frame 1 {
			gotoAndStop(_root.jacket);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.jackettintrb, 'gb': _root.jackettintgb, 'bb': _root.jackettintbb});
		}
	}
	movieClip 9757	{
		frame 1 {
			if (_root.barechest == false) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 9764	{
		frame 1 {
			if (_root.extrabelt == true) {
				gotoAndStop(_root.jacket);
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
			} else {
				gotoAndStop(6);
			}
		}
	}
	movieClip 9769	{
		frame 1 {
			gotoAndStop(_root.jacket);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.sheathtintrb, 'gb': _root.sheathtintgb, 'bb': _root.sheathtintbb});
		}
	}
	movieClip 9770	{
		frame 1 {
			gotoAndStop(_root.jacket);
		}
	}
	movieClip 9774	{
	}
	movieClip 9775	{
	}
	movieClip 9786	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 9789	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 9791	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 9793	{
		frame 1 {
			if (_root.shoes > 2) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 9794	{
	}
	movieClip 9800	{
		frame 1 {
			gotoAndStop(_root.pants);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 9802	{
	}
	movieClip 9808	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9810	{
	}
	movieClip 9811	{
	}
	movieClip 9813	{
	}
	movieClip 9816	{
		frame 1 {
			gotoAndStop(_root.glove1);
			if (_root.glove1 != 1 && _root.glove1 != 2) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
			}
		}
	}
	movieClip 9817	{
	}
	movieClip 9823	{
	}
	movieClip 9834	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 9837	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 9838	{
	}
	movieClip 9844	{
		frame 1 {
			gotoAndStop(_root.pants);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 9846	{
	}
	movieClip 9847	{
	}
	movieClip 9848	{
	}
	movieClip 9854	{
	}
	movieClip 9860	{
		frame 1 {
			gotoAndStop(_root.arms);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.armtintrb, 'gb': _root.armtintgb, 'bb': _root.armtintbb});
		}
	}
	movieClip 9862	{
	}
	movieClip 9863	{
		frame 19 {
			if (_root.battlecounterX == true) {
				gotoAndPlay(17);
			}
		}
		frame 34 {
			stop();
		}
	}
	movieClip 9869	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9871	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
		}
	}
	movieClip 9877	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9880	{
		frame 1 {
			gotoAndStop(_root.glove1);
			if (_root.glove1 != 1 && _root.glove1 != 2) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
			}
		}
	}
	movieClip 9881	{
	}
	movieClip 9882	{
		frame 29 {
			stop();
		}
	}
	movieClip 9888	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9891	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
		}
	}
	movieClip 9897	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9901	{
		frame 1 {
			gotoAndStop(_root.glove2);
			if (_root.glove2 != 1 && _root.glove2 != 2) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
			}
		}
	}
	movieClip 9902	{
	}
	movieClip 9904	{
		frame 1 {
			gotoAndStop(_root.hair);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.hairtintrb, 'gb': _root.hairtintgb, 'bb': _root.hairtintbb});
		}
	}
	movieClip 9905	{
		frame 1 {
			if (_root.corehealth < _root.coremaxhealth / 5) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 9906	{
		frame 84 {
			stop();
		}
	}
	movieClip 9919	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9926	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 9928	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
		}
	}
	movieClip 9932	{
		frame 1 {
			gotoAndStop(_root.glove2);
			if (_root.glove2 != 1 && _root.glove2 != 2) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
			}
		}
	}
	movieClip 9933	{
	}
	movieClip 9935	{
		frame 1 {
			if (_root.health < _root.maxhealth / 5) {
				gotoAndStop(2);
			} else {
				stop();
			}
		}
	}
	movieClip 9936	{
		frame 70 {
			stop();
		}
	}
	movieClip 9942	{
	}
	movieClip 9944	{
	}
	movieClip 9947	{
	}
	movieClip 9955	{
		frame 120 {
			stop();
		}
	}
	movieClip 9956	{
	}
	movieClip 9957	{
	}
	movieClip 9958	{
	}
	movieClip 9969	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 9972	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 9974	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 9976	{
		frame 1 {
			if (_root.shoes > 2) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 9977	{
	}
	movieClip 9988	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 9991	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 9993	{
		frame 1 {
			if (_root.shoes > 2) {
				stop();
			} else {
				gotoAndStop(2);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 9994	{
	}
	movieClip 9995	{
	}
	movieClip 10001	{
	}
	movieClip 10007	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 10010	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
		}
	}
	movieClip 10016	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 10020	{
		frame 1 {
			gotoAndStop(_root.glove2);
			if (_root.glove2 != 1 && _root.glove2 != 2) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
			}
		}
	}
	movieClip 10021	{
	}
	movieClip 10024	{
	}
	movieClip 10030	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 10033	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
		}
	}
	movieClip 10039	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 10043	{
		frame 1 {
			gotoAndStop(_root.glove1);
			if (_root.glove1 != 1 && _root.glove1 != 2) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
			}
		}
	}
	movieClip 10044	{
	}
	movieClip 10048	{
		frame 8 {
			gotoAndPlay(5);
		}
	}
	movieClip 10052	{
		frame 26 {
			stop();
		}
	}
	movieClip 10055	{
	}
	movieClip 10058	{
	}
	movieClip 10062	{
	}
	movieClip 10068	{
	}
	movieClip 10071	{
		frame 18 {
			stop();
		}
	}
	movieClip 10079	{
	}
	movieClip 10090	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 10093	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 10095	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 10097	{
		frame 1 {
			if (_root.shoes > 2) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 10098	{
	}
	movieClip 10113	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 10116	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 10118	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 10120	{
		frame 1 {
			if (_root.shoes > 2) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 10121	{
	}
	movieClip 10132	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(_root.pants + 5);
			} else {
				gotoAndStop(_root.pants);
			}
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.panttintrb, 'gb': _root.panttintgb, 'bb': _root.panttintbb});
		}
	}
	movieClip 10135	{
		frame 1 {
			if (_root.shoes > 2) {
				gotoAndStop(2);
			} else {
				gotoAndStop(1);
			}
		}
	}
	movieClip 10137	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.shoetintrb, 'gb': _root.shoetintgb, 'bb': _root.shoetintbb});
		}
	}
	movieClip 10139	{
		frame 1 {
			if (_root.shoes > 2) {
				stop();
			} else {
				gotoAndStop(2);
			}
		}
	}
	movieClip 10140	{
	}
	movieClip 10141	{
	}
	movieClip 10150	{
		frame 39 {
			stop();
		}
	}
	movieClip 10152	{
	}
	movieClip 10155	{
		frame 6 {
			stop();
		}
	}
	movieClip 10158	{
		frame 10 {
			stop();
		}
	}
	movieClip 10159	{
	}
	movieClip 10160	{
		frame 78 {
			stop();
		}
	}
	movieClip 10162	{
	}
	movieClip 10164	{
	}
	movieClip 10166	{
		frame 1 {
			stop();
			_root.doStand();
			_root.basedamage = Math.round((_root.currentweapon / 2 + _root.corestrength) / 2);
			if (_root.coreberserk == false && (_root.corehealth < _root.coremaxhealth / 5 or _root.corepoison == true)) {
				stand.gotoAndPlay(2);
			} else {
				stand.stop();
			}
			_root.Rattack = 0;
			_root.enmhurt.attachSound('metalchop3');
			if (_root.corehealth <= 0) {
				gotoAndPlay('Dead');
				_root.doEndBattle();
			}
			if (_root.story == 51 && _root.hits == 1) {
				_root.story = 52;
				_root.calebX = true;
				++_root.numofchars;
				_root.calebstamina = 30;
				_root.numofchars = 2;
				_root.page1 = 'Caleb: Let me finish him!';
				_root.doStartTextX();
			}
			if (_root.enemyhealth <= 2100 && _root.story == 240) {
				_root.page1 = 'Roy: This is bad! He is too strong!';
				_root.doStartTextX();
				_root.story = 241;
				++_root.gamepause;
				_root.coreconfuse = false;
				_root.corecon = false;
				_root.calebconfuse = false;
				_root.calebcon = false;
				_root.blind_MC._visible = false;
				_root.coreblind = false;
				_root.calebblind = false;
				_root.blind = false;
			}
			if (_root.story == 250 && _root.enemyhealth <= 1900) {
				_root.page1 = 'Golden Demon: I might have underestimated you, but I have no time for this.';
				_root.doStartTextX();
				_root.story = 251;
			}
			if (_root.battleend == true && _root.corehealth > 0 && _root.bhud.text_MCX.textz._currentframe == 1) {
				doWin1 = function () {
					_parent.Core2.gotoAndPlay('Win');
				};
				doWin2 = function () {
					_root.gotoAndPlay('win');
				};
				setTimeout(doWin1, 300);
				setTimeout(doWin2, 1000);
			}
		}
		frame 2 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('slowwoosh2');
				_root.sound1.start();
			}
		}
		frame 4 {
			smoke1.play();
		}
		frame 5 {
			_root.attacking = true;
		}
		frame 6 {
			smoke2.play();
		}
		frame 7 {
			_root.attack = _root.basedamage;
		}
		frame 8 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('swing32');
				_root.sound2.start();
			}
		}
		frame 8 {
			smoke3.play();
		}
		frame 10 {
			smoke4.play();
		}
		frame 12 {
			smoke5.play();
		}
		frame 17 {
			_root.attacking = false;
		}
		frame 29 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('woosh2');
				_root.sound1.start();
			}
		}
		frame 34 {
			_root.menuon = false;
		}
		frame 45 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 45 {
			smoke1.play();
		}
		frame 48 {
			_root.Rattack = 1;
			if (_root.hurt == false) {
				gotoAndStop(1);
			}
		}
		frame 51 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('woosh1');
				_root.sound1.start();
			}
		}
		frame 54 {
			_root.attacking = true;
		}
		frame 54 {
			smoke1.play();
		}
		frame 56 {
			smoke2.play();
		}
		frame 58 {
			smoke3.play();
		}
		frame 60 {
			smoke4.play();
		}
		frame 62 {
			_root.attack = _root.basedamage;
		}
		frame 62 {
			smoke5.play();
		}
		frame 64 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('swing32');
				_root.sound1.start();
			}
		}
		frame 70 {
			_root.attacking = false;
		}
		frame 86 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('woosh2');
				_root.sound1.start();
			}
		}
		frame 93 {
			_root.menuon = false;
		}
		frame 98 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 98 {
			smoke1.play();
		}
		frame 102 {
			_root.Rattack = 1;
			if (_root.hurt == false) {
				gotoAndStop(1);
			}
		}
		frame 103 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('woosh1');
				_root.sound1.start();
			}
		}
		frame 104 {
			smoke1.play();
		}
		frame 105 {
			_root.attacking = true;
		}
		frame 106 {
			smoke2.play();
		}
		frame 108 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('swing32');
				_root.sound2.start();
			}
		}
		frame 108 {
			smoke3.play();
		}
		frame 110 {
			smoke4.play();
		}
		frame 112 {
			smoke5.play();
		}
		frame 113 {
			_root.attack = _root.basedamage;
		}
		frame 119 {
			_root.attacking = false;
		}
		frame 130 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('woosh2');
				_root.sound1.start();
			}
		}
		frame 138 {
			_root.menuon = false;
		}
		frame 146 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 146 {
			smoke1.play();
		}
		frame 150 {
			_root.Rattack = 1;
			if (_root.hurt == false) {
				gotoAndStop(1);
			}
		}
		frame 151 {
			clearInterval(_root.countHealID);
			_root.heal = false;
			_root.menuon = false;
		}
		frame 151 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('loudwoosh2');
				_root.sound1.start();
			}
		}
		frame 153 {
			chance = Math.round(Math.random() * 90 + _root.coreluck);
			if (_root.hurt == false && _root.coreslow == false && (_root.corehealth > _root.coremaxhealth / 2 or _root.coreagility > 10 or chance < _root.coreluck + 85)) {
				gotoAndPlay(155);
			}
		}
		frame 155 {
			chance = Math.round(Math.random() * 90 + _root.coreluck);
			if (_root.hurt == false && _root.coreslow == false && (_root.corehealth > _root.coremaxhealth / 2 - 20 or _root.coreagility > 20 or chance < _root.coreluck + 75)) {
				gotoAndPlay(157);
			}
		}
		frame 157 {
			chance = Math.round(Math.random() * 90 + _root.coreluck);
			if (_root.hurt == false && _root.coreslow == false && (_root.corehealth > _root.coremaxhealth / 2 - 30 or _root.coreagility > 30 or chance < _root.coreluck + 65)) {
				gotoAndPlay(159);
			}
		}
		frame 159 {
			chance = Math.round(Math.random() * 90 + _root.coreluck);
			if (_root.hurt == false && _root.coreslow == false && (_root.corehealth > _root.coremaxhealth / 2 - 40 or _root.coreagility > 50 or chance < _root.coreluck + 55)) {
				gotoAndPlay(161);
			}
		}
		frame 161 {
			chance = Math.round(Math.random() * 90 + _root.coreluck);
			if (_root.hurt == false && _root.coreslow == false && (_root.corehealth > _root.coremaxhealth / 2 - 40 or _root.coreagility > 50 or chance < _root.coreluck + 55)) {
				gotoAndPlay(163);
			}
		}
		frame 163 {
			_root.dodge = true;
			if (_root.enmattacking == true) {
				_root.docoreagility();
				_root.docoreagility();
				_root.docoredefense();
			}
		}
		frame 167 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 167 {
			smoke6.play();
		}
		frame 187 {
			_root.dodge = false;
		}
		frame 190 {
			gotoAndStop(1);
		}
		frame 190 {
			smoke1.play();
		}
		frame 191 {
			smoke6.play();
		}
		frame 193 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('swing32');
				_root.sound1.start();
			}
		}
		frame 194 {
			_root.attack = _root.basedamage;
			_root.docorestrength();
			_root.docoreagility();
		}
		frame 223 {
			_root.dodge = false;
			_root.dodgeattack = false;
			gotoAndPlay('return');
		}
		frame 228 {
			_root.battlecounter = true;
		}
		frame 228 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('swing32');
				_root.sound1.start();
			}
		}
		frame 240 {
			if (_root.battlecounterX == true) {
				gotoAndPlay('counterX');
			}
			_root.extracounter = false;
		}
		frame 248 {
			_root.battlecounter = false;
		}
		frame 257 {
			gotoAndStop(1);
		}
		frame 258 {
			_root.corelimit += 1;
			_root.attack = _root.basedamage;
			_root.docorestrength();
			_root.docoreagility();
			_root.docoredefense();
		}
		frame 258 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('swing32');
				_root.sound1.start();
			}
		}
		frame 283 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('swing32');
				_root.sound1.start();
			}
		}
		frame 287 {
			_root.battlecounter = false;
			gotoAndStop(1);
		}
		frame 324 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Spirit');
				_root.sound1.start();
			}
		}
		frame 333 {
			_root.heal = true;
			_root.healZ.gotoAndPlay(2);
			_root.countHealID = setInterval(_root.doCounterHeal, 100);
			_root.docoredefense();
		}
		frame 352 {
			_root.doEndHeal();
			_root.heal = false;
		}
		frame 366 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 371 {
			if (_root.story == 131 or _root.story == 132) {
				_root.page1 = 'Roy: That was pretty good huh?';
				_root.page2 = 'Caleb: Well... that is a start. Let me show you what I can do.';
				_root.page3 = 'Switch to Caleb and try out his spells.';
				_root.doStartTextX();
				_root.story = 133;
				_root.doendPause();
			}
			_root.domagicend();
		}
		frame 376 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 381 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('CDeath');
				_root.sound1.start();
			}
		}
		frame 398 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('feral');
				_root.sound2.start();
			}
		}
		frame 399 {
			_root.coremana -= _root.coremagic2mana;
			_root.coreberserk = true;
		}
		frame 435 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 443 {
			_root.domagicend();
		}
		frame 449 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 460 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('063');
				_root.sound1.start();
			}
		}
		frame 466 {
			_root.coremana -= _root.coremagic3mana;
		}
		frame 467 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('073');
				_root.sound1.start();
			}
		}
		frame 489 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('064');
				_root.sound2.start();
			}
		}
		frame 493 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('064');
				_root.sound3.start();
			}
		}
		frame 497 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('064');
				_root.sound4.start();
			}
		}
		frame 504 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('064');
				_root.sound2.start();
			}
		}
		frame 509 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('FBolt');
				_root.sound3.start();
			}
		}
		frame 550 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('019');
				_root.sound1.start();
			}
		}
		frame 558 {
			_root.tryslow = true;
			_root.magicchance = 30;
			_root.slowcountX = 10;
			_root.magicAttack = (_root.coremagicdamage * 3 + _root.coreiceElement) * 2;
		}
		frame 561 {
			_root.bhud.white.gotoAndPlay(1);
		}
		frame 563 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('FArrow');
				_root.sound2.start();
			}
		}
		frame 585 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('063');
				_root.sound1.start();
			}
		}
		frame 613 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 622 {
			_root.domagicend();
		}
		frame 625 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('deathpact');
				_root.sound1.start();
			}
		}
		frame 627 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 661 {
			_root.coremana -= _root.coremagic4mana;
			_root.stuncountX = 3 * Math.round(_root.coremagicdamage / 5);
			_root.tryparalyze = true;
			_root.flycritical = true;
			_root.magicchance = 30;
			_root.magicAttack = (_root.coremagicdamage * 3 + _root.corethunderElement) * 2;
		}
		frame 661 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('ex5');
				_root.sound2.start();
			}
		}
		frame 662 {
			_root.bhud.white.gotoAndPlay(1);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 700 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 705 {
			_root.domagicend();
		}
		frame 710 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 717 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('swing3');
				_root.sound1.start();
			}
		}
		frame 724 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('axe');
				_root.sound2.start();
			}
		}
		frame 724 {
			smoke2.play();
		}
		frame 743 {
			_root.magicAttack = (_root.coremagicdamage * 3 + _root.corefireElement) * 2 / 3;
		}
		frame 749 {
			_root.coremana -= _root.coremagic5mana;
		}
		frame 749 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('diode2');
				_root.sound3.start();
			}
		}
		frame 787 {
			_root.multiattack = false;
			_root.weaknesscountX = 3 * Math.round(_root.coremagicdamage / 5) + 5;
			_root.tryweakness = true;
			_root.magicchance = 30;
		}
		frame 830 {
			_root.black.play();
		}
		frame 837 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('axe');
				_root.sound2.start();
			}
		}
		frame 842 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('swing3');
				_root.sound1.start();
			}
		}
		frame 854 {
			_root.menuon = false;
		}
		frame 864 {
			_root.domagicend();
		}
		frame 870 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 901 {
			_root.magicAttack = _root.coremaxhealth - _root.corehealth;
		}
		frame 912 {
			_root.black.gotoAndPlay(160);
		}
		frame 921 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('deathpactX');
				_root.sound1.start();
			}
		}
		frame 955 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('CBirth');
				_root.sound2.start();
			}
		}
		frame 987 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('swing3');
				_root.sound3.start();
			}
		}
		frame 988 {
			_root.coremana -= _root.coremagic6mana;
			_root.bhud.white.gotoAndPlay(1);
			_root.crack1_MC.gotoAndPlay(2);
		}
		frame 992 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('feral');
				_root.sound4.start();
			}
		}
		frame 1032 {
			_root.menuon = false;
			_root.black.play();
			_root.dark = false;
		}
		frame 1036 {
			_root.domagicend();
		}
		frame 1037 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('slowwoosh2');
				_root.sound1.start();
			}
		}
		frame 1042 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 1050 {
			smoke6.play();
		}
		frame 1052 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('deathpact');
				_root.sound3.start();
			}
		}
		frame 1082 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('woosh2');
				_root.sound4.start();
			}
		}
		frame 1084 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('mark');
				_root.sound1.start();
			}
		}
		frame 1088 {
			smoke1.play();
		}
		frame 1090 {
			_root.attack = (_root.currentweapon + _root.corestrength + _root.coremagicdamage) * 2;
		}
		frame 1090 {
			smoke2.play();
		}
		frame 1091 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('slowwoosh2');
				_root.sound2.start();
			}
		}
		frame 1091 {
			smoke3.play();
		}
		frame 1092 {
			smoke4.play();
		}
		frame 1094 {
			smoke5.play();
		}
		frame 1096 {
			_root.crack1_MC.gotoAndPlay(2);
			_root.groundlight2.gotoAndPlay(2);
		}
		frame 1096 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('diode1');
				_root.sound3.start();
			}
		}
		frame 1120 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('woosh2');
				_root.sound4.start();
			}
		}
		frame 1145 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 1145 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 1145 {
			smoke1.play();
		}
		frame 1150 {
			_root.doendlimitbreak();
			if (_root.story == 250) {
				_root.page1 = 'Golden Demon: I might have underestimated you, but I have no time for this.';
				_root.doStartTextX();
				_root.story = 251;
			}
		}
		frame 1156 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
		}
		frame 1186 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('mark');
				_root.sound1.start();
			}
		}
		frame 1190 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('eagle');
				_root.sound2.start();
			}
		}
		frame 1195 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('swing32');
				_root.sound3.start();
			}
		}
		frame 1198 {
			_root.attack = (_root.currentweapon + _root.corestrength + _root.coremagicdamage) * 3;
			_root.flycritical = true;
		}
		frame 1200 {
			smoke1.play();
		}
		frame 1202 {
			smoke2.play();
		}
		frame 1204 {
			_root.crack1_MC.gotoAndPlay(2);
			_root.groundlight2.gotoAndPlay(2);
		}
		frame 1204 {
			smoke3.play();
		}
		frame 1205 {
			smoke4.play();
		}
		frame 1206 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('diode2');
				_root.sound4.start();
			}
		}
		frame 1206 {
			smoke5.play();
		}
		frame 1207 {
			_root.imbalance = true;
		}
		frame 1230 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 1249 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('woosh2');
				_root.sound1.start();
			}
		}
		frame 1266 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 1269 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 1269 {
			smoke1.play();
		}
		frame 1274 {
			_root.doendlimitbreak();
			if (_root.story == 250) {
				_root.page1 = 'Golden Demon: I might have underestimated you, but I have no time for this.';
				_root.doStartTextX();
				_root.story = 251;
			}
		}
		frame 1275 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1277 {
			smoke1.play();
		}
		frame 1279 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
			_root.attack = Math.round(_root.currentweapon + _root.corestrength / 2);
			_root.multiattack = true;
		}
		frame 1282 {
			_root.doflash();
			_root.groundlight2.gotoAndPlay(2);
		}
		frame 1284 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1289 {
			_root.doflash();
		}
		frame 1290 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1294 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1299 {
			_root.doflash();
		}
		frame 1299 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1306 {
			_root.doflash();
		}
		frame 1306 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1310 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1314 {
			_root.doflash();
		}
		frame 1314 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1320 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1321 {
			_root.doflash();
		}
		frame 1323 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1328 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1329 {
			_root.doflash();
		}
		frame 1332 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1336 {
			_root.doflash();
		}
		frame 1337 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1341 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1343 {
			_root.doflash();
		}
		frame 1345 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1348 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1351 {
			_root.doflash();
			_root.multiattack = false;
		}
		frame 1352 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1355 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1401 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('loudwoosh2');
				_root.sound1.start();
			}
		}
		frame 1406 {
			_root.menuon = false;
			_root.black.play();
		}
		frame 1407 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 1407 {
			smoke1.play();
		}
		frame 1414 {
			_root.doendlimitbreak();
		}
		frame 1415 {
			_root.goto2 = true;
			_root.enemy_MC.enemiez.enemy.mc.gotoAndStop(2);
		}
		frame 1421 {
			_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
			_root.enemy_MC.enemiez.enemy.mc.gotoAndStop(2);
		}
		frame 1447 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('FlameStrikeTarget');
				_root.sound2.start();
			}
		}
		frame 1449 {
			_root.enemy_MC.play();
		}
		frame 1463 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('deathpact');
				_root.sound1.start();
			}
		}
		frame 1493 {
			_root.attack = Math.round((_root.currentweapon + _root.corestrength / 2) / 2);
		}
		frame 1493 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('Undead');
				_root.sound3.start(0, 5);
			}
		}
		frame 1499 {
			_root.doflash();
		}
		frame 1501 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1505 {
			_root.doflash();
		}
		frame 1505 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1507 {
			_root.groundlight2.gotoAndPlay(2);
		}
		frame 1510 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1512 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1513 {
			_root.doflash();
		}
		frame 1516 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1519 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1520 {
			_root.doflash();
		}
		frame 1526 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1528 {
			_root.doflash();
		}
		frame 1529 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1534 {
			_root.doflash();
		}
		frame 1534 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1539 {
			_root.doflash();
		}
		frame 1540 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1544 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1547 {
			_root.doflash();
		}
		frame 1548 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1557 {
			_root.doflash();
		}
		frame 1557 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1561 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1565 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1566 {
			_root.doflash();
		}
		frame 1571 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1572 {
			_root.doflash();
		}
		frame 1575 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1579 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1581 {
			_root.doflash();
		}
		frame 1586 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1590 {
			_root.doflash();
		}
		frame 1592 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1597 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1598 {
			_root.doflash();
		}
		frame 1601 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1604 {
			_root.doflash();
		}
		frame 1607 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1609 {
			_root.doflash();
		}
		frame 1610 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1616 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1617 {
			_root.doflash();
		}
		frame 1620 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1624 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1627 {
			_root.doflash();
		}
		frame 1628 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1635 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1636 {
			_root.doflash();
		}
		frame 1639 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1645 {
			_root.doflash();
		}
		frame 1645 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1649 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1653 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1654 {
			_root.doflash();
		}
		frame 1658 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1662 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1663 {
			_root.doflash();
		}
		frame 1669 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1671 {
			_root.doflash();
		}
		frame 1672 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1677 {
			_root.doflash();
		}
		frame 1677 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1682 {
			_root.doflash();
		}
		frame 1682 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1688 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1690 {
			_root.doflash();
		}
		frame 1693 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1700 {
			_root.doflash();
		}
		frame 1700 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1703 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1708 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1709 {
			_root.doflash();
		}
		frame 1714 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1715 {
			_root.doflash();
		}
		frame 1722 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1724 {
			_root.doflash();
		}
		frame 1730 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1733 {
			_root.doflash();
		}
		frame 1734 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1740 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1741 {
			_root.doflash();
		}
		frame 1745 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1747 {
			_root.doflash();
		}
		frame 1751 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1752 {
			_root.doflash();
		}
		frame 1754 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1759 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1760 {
			_root.doflash();
		}
		frame 1762 {
			if (_root.sfxmute == false) {
				_root.sound3.attachSound('BlinkB');
				_root.sound3.start();
			}
		}
		frame 1767 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1770 {
			_root.doflash();
		}
		frame 1772 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('Ethereal3');
				_root.sound1.start();
			}
		}
		frame 1811 {
			_root.attack += Math.round(_root.currentweapon + _root.corestrength / 2);
			_root.multiattack = false;
		}
		frame 1819 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('Ethereal2');
				_root.sound2.start();
			}
		}
		frame 1820 {
			_root.enemy_MC.play();
			_root.armorpierce = true;
		}
		frame 1823 {
			_root.doflash();
			_root.crack1_MC.gotoAndPlay(2);
			_root.groundlight2.gotoAndPlay(2);
		}
		frame 1823 {
			if (_root.sfxmute == false) {
				_root.sound4.attachSound('diode2');
				_root.sound4.start();
			}
		}
		frame 1827 {
			_root.lucky.play();
		}
		frame 1830 {
			_root.lucky.play();
		}
		frame 1833 {
			_root.lucky.play();
		}
		frame 1836 {
			_root.lucky.play();
		}
		frame 1860 {
			_root.black.play();
			_root.menuon = false;
			_root.armorpierce = false;
		}
		frame 1860 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('loudwoosh2');
				_root.sound1.start();
			}
		}
		frame 1866 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 1867 {
			if (_root.battleend == false) {
				_root.goto2 = false;
				_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
			}
		}
		frame 1867 {
			smoke1.play();
		}
		frame 1875 {
			_root.doendlimitbreak();
		}
	}
	movieClip 10172	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 10174	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
		}
	}
	movieClip 10180	{
		frame 1 {
			gotoAndStop(_root.skinz);
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.skintintrb, 'gb': _root.skintintgb, 'bb': _root.skintintbb});
		}
	}
	movieClip 10183	{
		frame 1 {
			gotoAndStop(_root.glove1);
			if (_root.glove1 != 1 && _root.glove1 != 2) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove1tintrb, 'gb': _root.glove1tintgb, 'bb': _root.glove1tintbb});
			}
		}
	}
	movieClip 10184	{
	}
	movieClip 10185	{
		frame 87 {
			stop();
		}
	}
	movieClip 10186	{
	}
	movieClip 10187	{
		frame 1 {
			_root.myColor = new Color(this);
			_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
		}
	}
	movieClip 10188	{
		frame 1 {
			gotoAndStop(_root.glove2);
			if (_root.glove2 != 1 && _root.glove2 != 2) {
				_root.myColor = new Color(this);
				_root.myColor.setTransform({'rb': _root.glove2tintrb, 'gb': _root.glove2tintgb, 'bb': _root.glove2tintbb});
			}
		}
	}
	movieClip 10189	{
	}
	movieClip 10190	{
		frame 1 {
			chance = random(2) + 1;
			if (chance == 1) {
				gotoAndPlay(31);
			}
		}
		frame 30 {
			stop();
		}
		frame 63 {
			stop();
		}
	}
	movieClip 10191	{
	}
	movieClip 10192	{
	}
	movieClip 10193	{
		frame 60 {
			_root.gotoAndPlay('lose');
			stop();
		}
	}
	movieClip 10194	{
		frame 1 {
			chance = random(3);
			if (chance == 1) {
				gotoAndPlay(26);
			}
		}
		frame 94 {
			stop();
		}
	}
	movieClip 10196	{
	}
	movieClip 10201	{
		frame 1 {
			stop();
			_root.hurt = false;
			_root.coreintro = false;
			if (_root.coreberserk == false && (_root.corehealth < _root.coremaxhealth / 5 or _root.corepoison == true)) {
				_parent.Core.stand.gotoAndPlay(2);
			} else {
				_parent.Core.stand.gotoAndStop(1);
				_parent.Core.stand.movez.gotoAndPlay(random(50));
			}
			if (_root.battleend == true && _root.corehealth > 0 && _root.bhud.text_MCX.textz._currentframe == 1) {
				doWin1 = function () {
					gotoAndPlay('Win');
				};
				doWin2 = function () {
					_root.gotoAndPlay('win');
				};
				setTimeout(doWin1, 300);
				setTimeout(doWin2, 1000);
			}
		}
		frame 2 {
			_root.coreintro = true;
		}
		frame 36 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('slowwoosh2');
				_root.sound1.start();
			}
		}
		frame 42 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('slowwoosh2');
				_root.sound1.start();
			}
		}
		frame 86 {
			_root.coreintro = false;
			gotoAndStop(1);
		}
		frame 100 {
			gotoAndStop(1);
		}
		frame 101 {
			_parent.Core.gotoAndStop(1);
		}
		frame 101 {
			if (_root.sfxmute == false) {
				_root.hurtsfx.start();
			}
		}
		frame 101 {
			smoke1.play();
		}
		frame 102 {
			_root.hurt = true;
		}
		frame 133 {
			_root.hurt = false;
			if (_root.corehealth > 0) {
				if (_root.story == 131) {
					_root.bhud.tut6X.gotoAndPlay(2);
					_root.story = 132;
				}
				if (_root.story == 242) {
					_root.coreconfuse = false;
					_root.corelimit2 = true;
					_root.caleblimit2 = true;
					_root.corelimit = _root.coremaxlimit;
					_root.corehealth = _root.coremaxhealth;
					_root.coremana = _root.coremaxmana;
					_root.calebhealth = _root.calebmaxhealth;
					_root.calebmana = _root.calebmaxmana;
					_root.doRedBG();
					_root.bhud.tut9.gotoAndPlay(2);
					_root.story = 250;
					_root.doendPause();
				}
				if (_root.story == 254) {
					_root.page1 = 'Roy: Caleb, it poisoned me...!';
					_root.page2 = 'Caleb: ' + _root.corename + '! Do not die on me now!';
					_root.doStartTextX();
					--_root.numofchars;
					_root.calebX = false;
					_root.story = 255;
				}
			}
			gotoAndStop(1);
		}
		frame 134 {
			if (_root.sfxmute == false) {
				_root.hurtsfx.start();
			}
		}
		frame 134 {
			smoke1.play();
		}
		frame 135 {
			_root.hurt = true;
		}
		frame 166 {
			_root.hurt = false;
			if (_root.sword == 5) {
				chance = Math.round(Math.random() * 4 + 1);
				if (chance == 1) {
					_root.Rattack = Math.round(Math.random() * 3 + 1);
					this.gotoAndPlay('attack' + _root.Rattack);
					if (_root.camera == true) {
						chance = Math.round(Math.random() * 4 + 1);
						if (chance == 1) {
							_root.gotoAndPlay('cameraA1');
						}
						if (chance == 2) {
							_root.gotoAndPlay('cameraA2');
						}
						if (chance == 3) {
							_root.gotoAndPlay('cameraA3');
						}
					}
				}
			}
			if (_root.corehealth > 0) {
				if (_root.story == 131) {
					_root.page1 = 'Perform a healing magic.';
					_root.doStartTextX();
					_root.story = 132;
					_root.notpause == true;
				}
				if (_root.story == 242) {
					_root.coreconfuse = false;
					_root.corelimit2 = true;
					_root.caleblimit2 = true;
					_root.corelimit = _root.coremaxlimit;
					_root.corehealth = _root.coremaxhealth;
					_root.coremana = _root.coremaxmana;
					_root.calebhealth = _root.calebmaxhealth;
					_root.calebmana = _root.calebmaxmana;
					_root.bhud.tut9.gotoAndPlay(2);
					_root.story = 250;
					_root.doendPause();
				}
				if (_root.story == 254) {
					_root.page1 = 'Roy: Caleb, it poisoned me...!';
					_root.page2 = 'Caleb: ' + _root.corename + '! Do not die on me now!';
					_root.doStartTextX();
					--_root.numofchars;
					_root.calebX = false;
					_root.story = 255;
				}
			}
			gotoAndStop(1);
		}
		frame 167 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('slowwoosh2');
				_root.sound1.start();
			}
		}
		frame 177 {
			gotoAndPlay('stopz');
		}
		frame 188 {
			_parent.Core.smoke1.play();
			gotoAndStop(1);
		}
		frame 188 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 188 {
			_parent.Core.smoke1.play();
		}
		frame 189 {
			gotoAndPlay('protectX');
		}
		frame 189 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('woosh1');
				_root.sound1.start();
			}
		}
		frame 191 {
			++_root.gamepause;
		}
		frame 215 {
			_root.doendPause();
			gotoAndPlay('stopz');
		}
		frame 226 {
			stop();
		}
		frame 229 {
			if (_root.training == true) {
				_root.enemy_MC.enemiez.enemy.gotoAndStop(1);
			}
		}
		frame 286 {
			stop();
		}
		frame 287 {
			_root.bhud.white.gotoAndPlay(1);
			_root.fatigue -= 5;
		}
		frame 287 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('axe');
				_root.sound1.start();
			}
		}
		frame 302 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('loudwoosh2');
				_root.sound1.start();
			}
		}
		frame 309 {
			_parent.Core.smoke1.play();
		}
		frame 309 {
			if (_root.sfxmute == false) {
				_root.doFootstep();
			}
		}
		frame 309 {
			smoke1.play();
		}
		frame 313 {
			gotoAndStop(1);
		}
		frame 314 {
			if (_root.sfxmute == false) {
				_root.sound1.attachSound('woosh2');
				_root.sound1.start();
			}
		}
		frame 326 {
			_root.doBattleExit();
			_root.doGotoGame();
		}
	}
	movieClip 10202	{
	}
	movieClip 10203	{
		frame 1 {
			stop();
		}
		frame 15 {
			gotoAndStop(1);
		}
		frame 52 {
			gotoAndStop(1);
		}
		frame 96 {
			gotoAndStop(1);
		}
		frame 133 {
			gotoAndStop(1);
		}
	}
	movieClip 10206	{
	}
	movieClip 10208	{
	}
	movieClip 10211	{
		frame 1 {
			_parent.rotation(random(360));
			chance = random(20) + 3;
			_parent._height += chance;
			chance = random(20) + 3;
			_parent._width += chance;
			gotoAndStop(random(5) + 1);
		}
	}
	movieClip 10212	{
		frame 16 {
			stop();
		}
	}
	movieClip 10213	{
		frame 1 {
			stop();
		}
	}
	movieClip 10217	{
		frame 1 {
			stop();
		}
	}
	movieClip 10219	{
		frame 1 {
			stop();
		}
	}
	movieClip 10222	{
		frame 1 {
			stop();
		}
	}
	movieClip 10224	{
	}
	movieClip 10228	{
		frame 60 {
			stop();
		}
	}
	movieClip 10230	{
		frame 1 {
			gotoAndStop(_root.armorpierceMCX);
			_root.armorpierceMCX = 1;
		}
	}
	movieClip 10231	{
		frame 1 {
			stop();
		}
	}
	movieClip 10236	{
		frame 1 {
			stop();
		}
	}
	movieClip 10241	{
		frame 1 {
			stop();
		}
	}
	movieClip 10243	{
		frame 1 {
			stop();
		}
	}
	movieClip 10248	{
		frame 1 {
			stop();
		}
	}
	movieClip 10261	{
		frame 1 {
			stop();
		}
		frame 32 {
			stop();
		}
		frame 33 {
			if (_root.sfxmute == false) {
				_root.sound2.attachSound('defendcaster');
				_root.sound2.start();
			}
		}
		frame 72 {
			stop();
		}
	}
	movieClip 10265	{
		frame 1 {
			stop();
		}
	}
	movieClip 10270	{
		frame 78 {
			stop();
		}
	}
	movieClip 10272	{
		frame 1 {
			gotoAndStop(_root.darkMCX);
			_root.darkMCX = 1;
		}
	}
	movieClip 10273	{
		frame 1 {
			stop();
		}
	}
	movieClip 10275	{
	}
	movieClip 10277	{
		frame 1 {
			gotoAndStop(_root.fireMCX);
			_root.fireMCX = 1;
		}
	}
	movieClip 10278	{
		frame 1 {
			stop();
		}
	}
	movieClip 10280	{
	}
	movieClip 10281	{
	}
	movieClip 10283	{
		frame 1 {
			gotoAndStop(_root.iceMCX);
			_root.iceMCX = 1;
		}
	}
	movieClip 10284	{
		frame 1 {
			stop();
		}
	}
	movieClip 10286	{
	}
	movieClip 10288	{
		frame 1 {
			gotoAndStop(_root.thunderMCX);
			_root.thunderMCX = 1;
		}
	}
	movieClip 10289	{
		frame 1 {
			stop();
		}
	}
	movieClip 10290	{
	}
	instance cursor of movieClip 10290	{
		onClipEvent (enterFrame) {
			startDrag(this, true);
		}
	}
	movieClip 10295	{
		frame 1 {
			gotoAndPlay(5);
		}
	}
	movieClip 10297	{
		frame 1 {
			stop();
		}
		frame 2 {
			if (_root.character == 1) {
				_root.coreblind = true;
			} else {
				if (_root.character == 2) {
					_root.calebblind = true;
				}
			}
			_root.blind = true;
			if (_root.sfxmute == false) {
				_root.enmsound4.attachSound('defendcaster');
				_root.enmsound4.start();
			}
		}
		frame 458 {
			_root.coreblind = false;
			_root.calebblind = false;
			_root.blind = false;
			this._visible = true;
		}
	}
	movieClip 10300	{
		frame 1 {
			stop();
		}
	}
	movieClip 10304	{
		frame 1 {
			stop();
		}
	}
	movieClip 10323	{
		frame 1 {
			stop();
		}
	}
	movieClip 10327	{
		frame 1 {
			stop();
		}
		frame 5 {
			if (_root.challenge == true && _root.schoice <= 7) {
				++_root.gamepause;
			}
		}
		frame 68 {
			if (_root.sfxmute == false) {
				_root.enmsound4.attachSound('defendcaster');
				_root.enmsound4.start();
			}
		}
		frame 76 {
			_root.enemy_MC.gotoAndPlay(36);
			_root.enemy_MC._visible = true;
			_root.doendPause();
			_root.gotoBattlescreen();
			_root.white.gotoAndPlay(2);
			if (_root.challenge == true && _root.schoice <= 7) {
				_root.doendPause();
			}
		}
	}
	movieClip 10332	{
		frame 1 {
			stop();
		}
	}
	movieClip 10336	{
		frame 1 {
			stop();
		}
	}
	movieClip 10340	{
		frame 1 {
			stop();
		}
	}
	movieClip 10344	{
		frame 1 {
			stop();
		}
	}
	movieClip 10348	{
		frame 1 {
			stop();
		}
	}
	movieClip 10352	{
		frame 1 {
			stop();
		}
	}
	movieClip 10356	{
		frame 1 {
			stop();
		}
	}
	movieClip 10360	{
		frame 1 {
			stop();
		}
	}
	movieClip 10364	{
		frame 1 {
			stop();
		}
	}
	frame 196 {
		doHeal = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				if (corestamina < coremagic1stam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (coremana < coremagic1mana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (corestamina >= coremagic1stam && coremana >= coremagic1mana) {
					corestamina -= coremagic1stam;
					char_MC.charX.Core.gotoAndPlay('heal');
					corelimit += 2;
					docoremagicdamage();
					domagic();
					domenuon1();
					BToneX = false;
					menuXZ = false;
					if (firstcoremagic1 == false) {
						firstcoremagic1 = true;
						page1 = 'Heal: ' + coremagic1info;
						doStartTextX();
					}
					if (story == 131 or story == 132) {
						enemy_MC.enemiez.enemy.gotoAndStop(1);
						bhud.tut6X.gotoAndPlay('next1');
						++gamepause;
					}
				}
			}
		};
		doBerserk = function () {
			if (gamepause == 0 && coreberserk == false && realtimeevent == false && enmattacking == false && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				if (corestamina < coremagic2stam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (coremana < coremagic2mana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (corestamina >= coremagic2stam && coremana >= coremagic2mana) {
					corestamina -= coremagic2stam;
					char_MC.charX.Core.gotoAndPlay('berserk');
					corelimit += 2;
					docoremagicdamage();
					domagic();
					domenuon1();
					countBerserkID = setInterval(doCounterBerserk, 1000);
					BToneX = false;
					menuXZ = false;
					if (firstcoremagic2 == false) {
						firstcoremagic2 = true;
						page1 = 'Berserk: ' + coremagic2info;
						doStartTextX();
					}
				}
			}
		};
		doStorm = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				if (corestamina < coremagic3stam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (coremana < coremagic3mana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (corestamina >= coremagic3stam && coremana >= coremagic3mana) {
					corestamina -= coremagic3stam;
					char_MC.charX.Core.gotoAndPlay('storm');
					corelimit += 2;
					ice = true;
					docoremagicdamage();
					domagic();
					domenuon1();
					BToneX = false;
					menuXZ = false;
					if (firstcoremagic3 == false) {
						firstcoremagic3 = true;
						page1 = 'Diamond Storm: ' + coremagic3info;
						doStartTextX();
					}
				}
			}
		};
		doLightning = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				if (corestamina < coremagic4stam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (coremana < coremagic4mana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (corestamina >= coremagic4stam && coremana >= coremagic4mana) {
					char_MC.charX.Core.gotoAndPlay('lightning');
					corestamina -= coremagic4stam;
					corelimit += 2;
					thunder = true;
					docoremagicdamage();
					domagic();
					domenuon1();
					BToneX = false;
					menuXZ = false;
					if (firstcoremagic4 == false) {
						firstcoremagic4 = true;
						page1 = 'Lightning Bolt: ' + coremagic4info;
						doStartTextX();
					}
				}
			}
		};
		doInferno = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				if (corestamina < coremagic5stam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (coremana < coremagic5mana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (corestamina >= coremagic5stam && coremana >= coremagic5mana) {
					corestamina -= coremagic5stam;
					char_MC.charX.Core.gotoAndPlay('inferno');
					corelimit += 2;
					fire = true;
					docoremagicdamage();
					domagic();
					multiattack = true;
					domenuon1();
					BToneX = false;
					menuXZ = false;
					if (firstcoremagic5 == false) {
						firstcoremagic5 = true;
						page1 = 'Inferno: ' + coremagic5info;
						doStartTextX();
					}
				}
			}
		};
		doPulse = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				if (corestamina < coremagic6stam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (coremana < coremagic6mana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (corestamina >= coremagic6stam && coremana >= coremagic6mana) {
					corestamina -= coremagic6stam;
					char_MC.charX.Core.gotoAndPlay('penance');
					corelimit += 3;
					docoremagicdamage();
					docoremagicdamage();
					dark = true;
					penance = true;
					domagic();
					domenuon1();
					BToneX = false;
					menuXZ = false;
					if (firstcoremagic6 == false) {
						firstcoremagic6 = true;
						page1 = 'Pulse: ' + coremagic6info;
						doStartTextX();
					}
				}
			}
		};
		doChaos = function () {
			if (gamepause == 0 && calebchaos == false && realtimeevent == false && enmattacking == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				if (calebstamina < calebmagic1stam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (calebmana < calebmagic1mana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (calebstamina >= calebmagic1stam && calebmana >= calebmagic1mana) {
					calebstamina -= calebmagic1stam;
					char_MC.charX.Caleb.gotoAndPlay('chaoz');
					caleblimit += 1;
					domagic();
					docalebmagicdamage();
					domenuon1();
					BToneX = false;
					menuXZ = false;
					if (firstcalebmagic1 == false) {
						firstcalebmagic1 = true;
						page1 = 'Chaos: ' + calebmagic1info;
						doStartTextX();
					}
				}
			}
		};
		doDementia = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				if (calebstamina < calebmagic2stam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (calebmana < calebmagic2en) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (calebstamina >= calebmagic2stam && calebmana >= calebmagic2mana) {
					calebstamina -= calebmagic2stam;
					char_MC.charX.Caleb.gotoAndPlay('dementia');
					caleblimit += 2;
					domagic();
					dark = true;
					docalebmagicdamage();
					domenuon1();
					BToneX = false;
					menuXZ = false;
					if (firstcalebmagic2 == false) {
						firstcalebmagic2 = true;
						page1 = 'Dementia: ' + calebmagic2info;
						doStartTextX();
					}
				}
			}
		};
		doCrystal = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				if (calebstamina < calebmagic3stam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (calebmana < calebmagic3mana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (calebstamina >= calebmagic3stam && calebmana >= calebmagic3mana) {
					calebstamina -= calebmagic3stam;
					char_MC.charX.Caleb.gotoAndPlay('crystal');
					caleblimit += 3;
					domagic();
					ice = true;
					docalebmagicdamage();
					domenuon1();
					BToneX = false;
					menuXZ = false;
					if (firstcalebmagic3 == false) {
						firstcalebmagic3 = true;
						page1 = 'Crystal Shards: ' + calebmagic3info;
						doStartTextX();
					}
				}
			}
		};
		doThunder = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				if (calebstamina < calebmagic4stam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (calebmana < calebmagic4mana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (calebstamina >= calebmagic4stam && calebmana >= calebmagic4mana) {
					calebstamina -= calebmagic4stam;
					char_MC.charX.Caleb.gotoAndPlay('thunder');
					caleblimit += 3;
					domagic();
					thunder = true;
					docalebmagicdamage();
					domenuon1();
					BToneX = false;
					menuXZ = false;
					if (firstcalebmagic4 == false) {
						firstcalebmagic4 = true;
						page1 = 'Thunder Clap: ' + calebmagic4info;
						doStartTextX();
					}
				}
			}
		};
		doRain = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				if (calebstamina < calebmagic5stam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (calebmana < calebmagic5mana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (calebstamina >= calebmagic5stam && calebmana >= calebmagic5mana) {
					if (firemark == false) {
						action = 'Caleb prepares\rRain of Fire';
						actiontext();
					}
					calebstamina -= calebmagic5stam;
					if (firemark == true) {
						char_MC.charX.Caleb.gotoAndPlay('rain');
					} else {
						if (firemark == false) {
							char_MC.charX.Caleb.gotoAndPlay('rainX');
						}
					}
					caleblimit += 2;
					multiattack = true;
					domagic();
					fire = true;
					docalebmagicdamage();
					domenuon1();
					BToneX = false;
					menuXZ = false;
					if (firstcalebmagic5 == false) {
						firstcalebmagic5 = true;
						page1 = 'Rain of Fire: ' + calebmagic5info;
						doStartTextX();
					}
				}
			}
		};
		doParalyze = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				if (calebstamina < calebmagic6stam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (calebmana < calebmagic6mana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (calebstamina >= calebmagic6stam && calebmana >= calebmagic6mana) {
					calebstamina -= calebmagic6stam;
					char_MC.charX.Caleb.gotoAndPlay('paralyze');
					caleblimit += 3;
					docalebmagicdamage();
					docalebmagicdamage();
					domenuon1();
					BToneX = false;
					menuXZ = false;
					if (firstcalebmagic6 == false) {
						firstcalebmagic6 = true;
						page1 = 'Paralyze: ' + calebmagic6info;
						doStartTextX();
					}
				}
			}
		};
		doCHeal = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				if (calebstamina < calebmagic1Xstam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (calebmana < calebmagic1Xmana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (calebstamina >= calebmagic1Xstam && calebmana >= calebmagic1Xmana) {
					calebstamina -= calebmagic1Xstam;
					char_MC.charX.Caleb.gotoAndPlay('chaosheal');
					caleblimit += 4;
					docalebmagicdamage();
					domenuon1();
					BToneX = false;
					menuXZ = false;
				}
			}
		};
		doCParalyze = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				if (calebstamina < calebmagic2Xstam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (calebmana < calebmagic2Xmana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (calebstamina >= calebmagic2Xstam && calebmana >= calebmagic2Xmana) {
					calebstamina -= calebmagic2Xstam;
					char_MC.charX.Caleb.gotoAndPlay('chaosparalyze');
					caleblimit += 4;
					docalebmagicdamage();
					domenuon1();
					BToneX = false;
					menuXZ = false;
				}
			}
		};
		doCRift = function () {
			if (gamepause == 0 && realtimeevent == false && enmattacking == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				if (calebstamina < calebmagic3Xstam) {
					bhud.enough.staminamc.gotoAndStop(2);
				}
				if (calebmana < calebmagic3Xmana) {
					bhud.enough.manamc.gotoAndStop(2);
				}
				bhud.enough.gotoAndPlay(2);
				if (calebstamina >= calebmagic3Xstam && calebmana >= calebmagic3Xmana) {
					calebstamina -= calebmagic3Xstam;
					char_MC.charX.Caleb.gotoAndPlay('rift');
					caleblimit += 5;
					domagic();
					dark = true;
					docalebmagicdamage();
					docalebmagicdamage();
					domenuon1();
					BToneX = false;
					menuXZ = false;
					if (camera == true) {
						gotoAndPlay('scar');
					}
				}
			}
		};
		doPotion = function () {
			if (character == 1 && realtimeevent == false && gamepause == 0 && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				if (corehealth < coremaxhealth && potion > 0) {
					corehealth += 90;
					--potion;
					if (permcolor == false) {
						char_MC.gotoAndPlay('drinkz');
					}
					corepoison = false;
					poisoncorecount = 0;
					doRedBG();
					clearInterval(countCorePoisonID);
					if (sfxmute == false) {
						drink.start();
					}
				} else {
					if (sfxmute == false) {
						error.start();
					}
				}
			}
			if (character == 2 && realtimeevent == false && gamepause == 0 && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				if (calebhealth < calebmaxhealth && potion > 0) {
					calebhealth += 90;
					--potion;
					if (permcolor == false) {
						char_MC.gotoAndPlay('drinkz');
					}
					calebpoison = false;
					poisoncalebcount = 0;
					doRedBG();
					clearInterval(countCalebPoisonID);
					if (sfxmute == false) {
						drink.start();
					}
				} else {
					if (sfxmute == false) {
						error.start();
					}
				}
			}
		};
		doElixir = function () {
			if (character == 1 && realtimeevent == false && gamepause == 0 && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				if (coremana < coremaxmana && elixir > 0) {
					coremana += 60;
					--elixir;
					if (permcolor == false) {
						char_MC.gotoAndPlay('drinkz');
					}
					if (sfxmute == false) {
						drink.start();
					}
				} else {
					if (sfxmute == false) {
						error.start();
					}
				}
			} else {
				if (character == 2 && gamepause == 0 && realtimeevent == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
					if (calebmana < calebmaxmana && elixir > 0) {
						calebmana += 60;
						--elixir;
						if (permcolor == false) {
							char_MC.gotoAndPlay('drinkz');
						}
						if (sfxmute == false) {
							drink.start();
						}
					} else {
						if (sfxmute == false) {
							error.start();
						}
					}
				}
			}
		};
		doEther = function () {
			if (character == 1 && gamepause == 0 && realtimeevent == false && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				if ((corehealth < coremaxhealth or coremana < coremaxmana) && ether > 0) {
					corehealth = coremaxhealth;
					coremana = coremaxmana;
					--ether;
					doRedBG();
					if (permcolor == false) {
						char_MC.gotoAndPlay('drinkz');
					}
					if (sfxmute == false) {
						drink.start();
					}
				} else {
					if (sfxmute == false) {
						error.start();
					}
				}
			} else {
				if (character == 2 && gamepause == 0 && realtimeevent == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
					if ((calebhealth < calebmaxhealth or calebmana < calebmaxmana) && ether > 0) {
						calebhealth = calebmaxhealth;
						calebmana = calebmaxmana;
						--ether;
						doRedBG();
						if (permcolor == false) {
							char_MC.gotoAndPlay('drinkz');
						}
						if (sfxmute == false) {
							drink.start();
						}
					} else {
						if (sfxmute == false) {
							error.start();
						}
					}
				}
			}
		};
		doRemedy = function () {
			if (character == 1 && gamepause == 0 && realtimeevent == false && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				if (remedy > 0) {
					corestun = false;
					coreslow = false;
					corepoison = false;
					coreconfuse = false;
					coreblind = false;
					clearInterval(countCoreConfusionID);
					clearInterval(countCorePoisonID);
					clearInterval(corecountSlowID);
					--remedy;
					if (permcolor == false) {
						char_MC.gotoAndPlay('drinkz');
					}
					if (sfxmute == false) {
						drink.start();
					}
				} else {
					if (sfxmute == false) {
						error.start();
					}
				}
			} else {
				if (character == 2 && gamepause == 0 && realtimeevent == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
					if (remedy > 0) {
						calebstun = false;
						calebslow = false;
						calebpoison = false;
						calebchaos = false;
						calebconfuse = false;
						calebblind = false;
						clearInterval(countCalebConfusionID);
						clearInterval(countCalebPoisonID);
						clearInterval(calebcountSlowID);
						--remedy;
						if (permcolor == false) {
							char_MC.gotoAndPlay('drinkz');
						}
						if (sfxmute == false) {
							drink.start();
						}
					} else {
						if (sfxmute == false) {
							error.start();
						}
					}
				}
			}
		};
		doLimitboost = function () {
			if (story > 180 && hurt == false && gamepause == 0 && realtimeevent == false) {
				if (character == 1 && char_MC.charX.Core._currentframe == 1) {
					if (corelimit != coremaxlimit && limit > 0) {
						corelimit = coremaxlimit;
						--limit;
						if (permcolor == false) {
							char_MC.gotoAndPlay('drinkz');
						}
						if (sfxmute == false) {
							drink.start();
						}
					} else {
						if (sfxmute == false) {
							error.start();
						}
					}
				} else {
					if (character == 2 && char_MC.charX.Caleb._currentframe == 1) {
						if (caleblimit != calebmaxlimit && limit > 0) {
							caleblimit = calebmaxlimit;
							--limit;
							if (permcolor == false) {
								char_MC.gotoAndPlay('drinkz');
							}
							if (sfxmute == false) {
								drink.start();
							}
						} else {
							if (sfxmute == false) {
								error.start();
							}
						}
					}
				}
			}
		};
		doFury = function () {
			if ((gamepause == 0 or story == 180) && realtimeevent == false && story != 250 && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				if (coremana >= corelimit1mana or story == 181) {
					char_MC.charX.Core.gotoAndPlay('fury');
					dolimitbreak();
					docoremagicdamage();
					docorestrength();
					black.gotoAndPlay(2);
					domenuon2();
					BTthreeX = false;
					menuXZ = false;
					if (story == 180) {
						bhud.tut7.gotoAndPlay('Next1');
					}
					if (camera == true) {
						chance = random(3) + 1;
						if (chance == 1) {
							gotoAndPlay('fury');
						}
					}
				}
			}
		};
		doPheonix = function () {
			if (gamepause == 0 && realtimeevent == false && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				bhud.enough.gotoAndPlay(2);
				if (coremana >= corelimit2mana) {
					char_MC.charX.Core.gotoAndPlay('phoenix');
					dolimitbreak();
					armorpierce = true;
					docoremagicdamage();
					docorestrength();
					docorestrength();
					black.gotoAndPlay(2);
					domenuon2();
					BTthreeX = false;
					menuXZ = false;
					if (camera == true) {
						chance = random(2) + 1;
						if (chance == 1) {
							gotoAndPlay('pheonix');
						}
					}
				}
			}
		};
		doFlash = function () {
			if (gamepause == 0 && realtimeevent == false && story != 250 && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				bhud.enough.gotoAndPlay(2);
				if (coremana >= corelimit3mana) {
					char_MC.charX.Core.gotoAndPlay('flash');
					dolimitbreak();
					docorestrength();
					docoreagility();
					multiattack = true;
					black.gotoAndPlay(20);
					domenuon2();
					BTthreeX = false;
					menuXZ = false;
					if (camera == true) {
						chance = random(2) + 1;
						if (chance == 1) {
							gotoAndPlay('flash');
						}
					}
				}
			}
		};
		doOmni = function () {
			if (gamepause == 0 && realtimeevent == false && story != 250 && char_MC.charX.Core._currentframe == 1 && char_MC.charX.Core2._currentframe == 1 && hurt == false) {
				bhud.enough.gotoAndPlay(2);
				if (coremana >= corelimit4mana) {
					char_MC.charX.Core.gotoAndPlay('omnislash');
					dolimitbreak();
					docorestrength();
					docorestrength();
					docoreagility();
					docoreagility();
					multiattack = true;
					black.gotoAndPlay(20);
					domenuon2();
					BTthreeX = false;
					menuXZ = false;
					if (camera == true) {
						chance = random(3) + 1;
						if (chance <= 2) {
							gotoAndPlay('omni');
						}
					}
				}
			}
		};
		doThirdeye = function () {
			if ((gamepause == 0 or story == 180) && realtimeevent == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				bhud.enough.gotoAndPlay(2);
				if (calebmana >= caleblimit1mana or story == 181) {
					char_MC.charX.Caleb.gotoAndPlay('eye');
					dolimitbreak();
					docalebmagicdamage();
					docalebmagicdamage();
					black.gotoAndPlay(2);
					domenuon2();
					BTthreeX = false;
					menuXZ = false;
					enmpermcolor = true;
					if (story == 180) {
						bhud.tut7.gotoAndPlay('Next1');
					}
					if (camera == true) {
						gotoAndPlay('eye');
					}
				}
			}
		};
		doSlash = function () {
			if (gamepause == 0 && realtimeevent == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				bhud.enough.gotoAndPlay(2);
				if (calebmana >= caleblimit2mana) {
					char_MC.charX.Caleb.gotoAndPlay('slash');
					dolimitbreak();
					docalebmagicdamage();
					docalebstrength();
					black.gotoAndPlay(2);
					domenuon2();
					BTthreeX = false;
					menuXZ = false;
					multiattack = true;
					if (camera == true) {
						chance = random(3) + 1;
						if (chance == 1) {
							gotoAndPlay('slash');
						}
					}
				}
			}
		};
		doBlast = function () {
			if (gamepause == 0 && realtimeevent == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				bhud.enough.gotoAndPlay(2);
				if (calebmana >= caleblimit3mana) {
					char_MC.charX.Caleb.gotoAndPlay('blast');
					dolimitbreak();
					armorpierce = true;
					docalebmagicdamage();
					docalebstrength();
					black.gotoAndPlay(2);
					domenuon2();
					BTthreeX = false;
					menuXZ = false;
					multiattack = true;
					lightdamage = true;
					if (camera == true) {
						chance = random(2) + 1;
						if (chance == 1) {
							gotoAndPlay('blast');
						}
					}
				}
			}
		};
		doMeta = function () {
			if (gamepause == 0 && realtimeevent == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				bhud.enough.gotoAndPlay(2);
				if (calebmana >= caleblimit4mana) {
					char_MC.charX.Caleb.gotoAndPlay('chaos');
					dolimitbreak();
					docalebmagicdamage();
					docalebmagicdamage();
					docalebstrength();
					docoreagility();
					black.gotoAndPlay(2);
					domenuon2();
					BTthreeX = false;
					menuXZ = false;
					if (camera == true) {
						gotoAndPlay('chaos');
					}
				}
			}
		};
		doOblivion = function () {
			if (gamepause == 0 && realtimeevent == false && char_MC.charX.Caleb._currentframe == 1 && hurt == false) {
				bhud.enough.gotoAndPlay(2);
				if (calebmana >= caleblimit4manaX) {
					char_MC.charX.Caleb.gotoAndPlay('oblivion');
					dolimitbreak();
					armorpierce = true;
					docalebmagicdamage();
					docalebstrength();
					black.gotoAndPlay(2);
					domenuon2();
					BTthreeX = false;
					menuXZ = false;
					multiattack = true;
					lightdamage = true;
					if (camera == true) {
						gotoAndPlay('oblivion');
					}
				}
			}
		};
		doEnmattack1 = function () {
			if (enemyname == 'Argas' && questbrock >= 3 && questbrock <= 6) {
			} else {
				if (enmstamina >= enmattack1stam && stopz == false && stun == false && gamepause == 0 && willpause == false) {
					enmstamina -= enmattack1stam + random(20);
					if (dementia == false or enmlimitbreak == true) {
						enemy_MC.enemiez.enemy.gotoAndPlay('attack1');
						if (char_MC.getDepth() > enemy_MC.getDepth() && Rattack == 0) {
							enemy_MC.swapDepths(char_MC.getDepth());
						}
					} else {
						if (dementia == true) {
							chance = random(2) + 1;
							if (chance == 1) {
								enemy_MC.enemiez.enemy.gotoAndPlay('attack1');
								if (char_MC.getDepth() > enemy_MC.getDepth() && Rattack == 0) {
									enemy_MC.swapDepths(char_MC.getDepth());
								}
							} else {
								doDementiadamage();
							}
						}
					}
				} else {
					enemy_MC.enemiez.enemy.stop();
				}
				stats = '';
			}
		};
		doEnmattack2 = function () {
			if (enmstamina >= enmattack2stam && stopz == false && stun == false && gamepause == 0 && willpause == false) {
				enmstamina -= enmattack2stam + random(20);
				if (dementia == false or enmlimitbreak == true) {
					enemy_MC.enemiez.enemy.gotoAndPlay('attack2');
					if (char_MC.getDepth() > enemy_MC.getDepth() && Rattack == 0) {
						enemy_MC.swapDepths(char_MC.getDepth());
					}
				} else {
					if (dementia == true) {
						chance = random(2) + 1;
						if (chance == 1) {
							enemy_MC.enemiez.enemy.gotoAndPlay('attack2');
							if (char_MC.getDepth() > enemy_MC.getDepth() && Rattack == 0) {
								enemy_MC.swapDepths(char_MC.getDepth());
							}
						} else {
							doDementiadamage();
						}
					}
				}
			} else {
				enemy_MC.enemiez.enemy.stop();
			}
			stats = '';
		};
		doEnmattack3 = function () {
			if (enmstamina >= enmattack3stam && stopz == false && stun == false && gamepause == 0 && willpause == false) {
				enmstamina -= enmattack3stam + random(20);
				if (dementia == false or enmlimitbreak == true) {
					enemy_MC.enemiez.enemy.gotoAndPlay('attack3');
					if (char_MC.getDepth() > enemy_MC.getDepth() && Rattack == 0) {
						enemy_MC.swapDepths(char_MC.getDepth());
					}
				} else {
					if (dementia == true) {
						chance = random(2) + 1;
						if (chance == 1) {
							enemy_MC.enemiez.enemy.gotoAndPlay('attack3');
							if (char_MC.getDepth() > enemy_MC.getDepth() && Rattack == 0) {
								enemy_MC.swapDepths(char_MC.getDepth());
							}
						} else {
							doDementiadamage();
						}
					}
				}
			} else {
				enemy_MC.enemiez.enemy.stop();
			}
			stats = '';
		};
		doEnmattack4 = function () {
			if (enmstamina >= enmattack4stam && stopz == false && stun == false && gamepause == 0 && willpause == false) {
				enmstamina -= enmattack4stam + random(20);
				if (dementia == false or enmlimitbreak == true) {
					enemy_MC.enemiez.enemy.gotoAndPlay('attack4');
					if (char_MC.getDepth() > enemy_MC.getDepth() && Rattack == 0) {
						enemy_MC.swapDepths(char_MC.getDepth());
					}
				} else {
					if (dementia == true) {
						chance = random(2) + 1;
						if (chance == 1) {
							enemy_MC.enemiez.enemy.gotoAndPlay('attack4');
							if (char_MC.getDepth() > enemy_MC.getDepth() && Rattack == 0) {
								enemy_MC.swapDepths(char_MC.getDepth());
							}
						} else {
							doDementiadamage();
						}
					}
				}
			} else {
				enemy_MC.enemiez.enemy.stop();
			}
			stats = '';
		};
		argasTalk = function () {
			page1 = 'Argas: Alright, don\'t worry about getting hurt. This will not damage your health, my sparrings are always non-lethal. This stick won\'t hurt you.';
			page2 = 'Roy: One less thing to worry about.';
			page3 = 'Argas: You have other things to worry about at the moment. Now listen...';
			page4 = 'Argas: There is a Counter button under the Dodge button, but you can also counter with S or the Down arrow key. While in the Counter stance you will block an enemy attack and instead use your enemies\' damage to attack back.';
			page5 = 'Argas: But you might be damaged also. It has about a 50% chance of success, the more Agility you have the better the chances are. A successful counterattack is more likely if you do it quickly before the enemy attack.';
			page6 = 'Argas: You can hold the Counter stance for as long as you want.\rTry it. The Down arrow key, S or the Counter button.\rI\'ll strike you so you can practice.';
			page7 = 'Argas: Not great, but that will do.';
			page8 = 'Argas: Another way to strike an enemy while it is attacking is to dodge and while you\'re standing still for a brief moment - attack back.';
			page9 = 'Argas: Try it. Dodge and then attack.';
			page10 = 'Argas: I\'ve seen better. Strength, agility, magic and all your other stats are improved by performing moves that require those skills. Attacking increases strength, performing magic spells improves your magic power.';
			page11 = 'Argas: That is all for now, unless you want some additional sparring.\rAlso keep in mind, the more stamina you have when attacking, the more damage you deal.';
			page12 = 'Do the Flee command to cancel a training session. Argas does not lose health and neither do you. You must exit the battle manually.';
			doStartTextX();
		};
	}
	frame 197 {
		if (battlestart == false) {
			gotoBattlescreen();
		}
		var removeCounter = new Object();
		removeCounter.onMouseUp = function () {
			battlecounterX = false;
			battlecounterZ = false;
			Mouse.removeListener(removeCounter);
		};
		onEnterFrame = function () {
			if (char_MC.charX.Core._currentframe == 1 && char_MC.charX.Caleb._currentframe == 1) {
				if (character == 1) {
					char_MC.charX.Caleb.gotoAndPlay('stopz');
				} else {
					if (character == 2) {
						char_MC.charX.Core.gotoAndPlay('stopz');
					}
				}
			}
			if (damage1._currentframe > 1) {
				damage1.play();
			}
			if (healZ._currentframe > 1) {
				healZ.play();
			}
			if (healZ2._currentframe > 1) {
				healZ2.play();
			}
			if (stat1._currentframe > 1) {
				stat1.play();
			}
			if (enmstat._currentframe > 1) {
				enmstat.play();
			}
			if (enmstat2._currentframe > 1) {
				enmstat2.play();
			}
			if (enmdamage._currentframe > 1) {
				enmdamage.play();
			}
			if (enmdamage2._currentframe > 1) {
				enmdamage2.play();
			}
			if (enmdamageX._currentframe > 1) {
				enmdamageX.play();
			}
			if (battleend == false) {
				if (char_MC.charX.Core._currentframe > 1 && corehealth > 0) {
					char_MC.charX.Core.play();
				}
				if (char_MC.charX.Core2._currentframe > 1 && char_MC.charX.Core2._currentframe < 175) {
					char_MC.charX.Core2.play();
				}
				if (char_MC.charX.Caleb._currentframe > 1 && calebhealth > 0) {
					char_MC.charX.Caleb.play();
				}
				if (enemy_MC.enemiez.enemy._currentframe > 1 && enemyhealth > 0) {
					enemy_MC.enemiez.enemy.play();
				}
			}
			if (realtimeevent == true) {
				bhud.realtime_MC.gotoAndStop(2);
				bhud.realtime_MC.graphz.txt.text = pressnumber + 1;
				if (Key.isDown(49 + pressnumber)) {
					realtimeevent = false;
				}
			} else {
				bhud.realtime_MC.gotoAndStop(1);
			}
			if (gamepause == 0) {
				if (story == 221 && enemyhealth > 0) {
					++quakez;
					if (quakez >= 30) {
						quakez = 0;
						--quakecount;
						bhud.counter.counter_txt.text = quakecount;
						if (quakecount == 0) {
							enemyhealth = 0;
							corehealth = 0;
							calebhealth = 0;
							if (character == 1) {
								char_MC.charX.Core2.gotoAndPlay('Dead');
							} else {
								if (character == 2) {
									char_MC.charX.Caleb.gotoAndPlay('Dead');
								}
							}
							sound4.attachSound('diode1');
							sound4.start();
							enemy_MC.enemiez.enemy.gotoAndPlay('dead');
							doEndBattle();
							bhud.white.gotoAndPlay(2);
						}
					}
				}
				if (character == 1) {
					if (corestamina < coremaxstamina) {
						corestamina += coreregstamina;
						if (corestamina < 60) {
							corestamina += 0.1;
						}
						if (tutz == 1 && corestamina > 90) {
							corestamina = 90;
						} else {
							if (corestamina > coremaxstamina) {
								corestamina = coremaxstamina;
							}
						}
					}
					if (corestamina >= coremaxstamina) {
						fullstamina = true;
					} else {
						fullstamina = false;
					}
				}
				if (character == 2) {
					if (calebstamina < calebmaxstamina) {
						calebstamina += calebregstamina;
						if (calebstamina < 60) {
							calebstamina += 0.1;
						}
						if (calebstamina > calebmaxstamina) {
							calebstamina = calebmaxstamina;
							fullstamina = true;
						}
					}
					if (calebstamina >= calebmaxstamina) {
						fullstamina = true;
					} else {
						fullstamina = false;
					}
				}
				if (enemyhealth > 0 && stopz == false && stun == false && asleep == false) {
					if (story == 132) {
						enmstaminacounter += 0.1;
					} else {
						enmstaminacounter += 0.6;
					}
					if (enmstaminacounter >= 1) {
						if (enmstamina < maxenmstamina) {
							enmstamina += regstamina;
							if (enmlimit > 0 && enmlimit == enmmaxlimit) {
								enmstamina += 1;
							}
							if (enmstamina < 60) {
								enmstamina += 0.3;
							}
							if (enemyhealth < enemymaxhealth / 5) {
								enmstamina += 0.5;
							}
							if (enmstamina > maxenmstamina) {
								enmstamina = maxenmstamina;
							}
						}
						enmstaminacounter = 0;
						chance = random(10);
						if (chance == 1 && enmstamina >= countmaximum or enmstamina >= maxenmstamina) {
							doEnmAttackz();
						}
					}
				}
			}
			if (firstcameraX == true && story >= 60) {
				page1 = 'Do you want the camera-zoom effect turned off? (In case it caused lag)';
				doStartTextX();
				if (currentpage == 1) {
					yesno = true;
				} else {
					if (currentpage == 2) {
						if (choice == 1) {
							camera = false;
						}
						firstcameraX = false;
						firstcamera = true;
					}
				}
			}
			if (limitless == true) {
				corelimit = coremaxlimit;
				caleblimit = calebmaxlimit;
			}
			if (slow == true && enemyhealth > 0) {
				enmslowicon.gotoAndStop(2);
			} else {
				if (enmslowicon._currentframe == 2) {
					enmslowicon.gotoAndPlay(3);
				}
			}
			if (stun == true && enemyhealth > 0) {
				paralyzeicon.gotoAndStop(2);
			} else {
				if (paralyzeicon._currentframe == 2) {
					paralyzeicon.gotoAndPlay(3);
				}
			}
			if (weakness == true && enemyhealth > 0) {
				weaknessicon.gotoAndStop(2);
			} else {
				if (weaknessicon._currentframe == 2) {
					weaknessicon.gotoAndPlay(3);
				}
			}
			if (imbalance == true && enemyhealth > 0) {
				imbalanceicon.gotoAndStop(2);
			} else {
				if (imbalanceicon._currentframe == 2) {
					imbalanceicon.gotoAndPlay(3);
				}
			}
			if (dementia == true && enemyhealth > 0) {
				dementiaicon.gotoAndStop(2);
			} else {
				if (dementiaicon._currentframe == 2) {
					dementiaicon.gotoAndPlay(3);
				}
			}
			if (coreberserk == true && character == 1 && corehealth > 0) {
				berserkicon.gotoAndStop(2);
			} else {
				if (berserkicon._currentframe == 2) {
					berserkicon.gotoAndPlay(3);
				}
			}
			if (calebchaos == true && character == 2 && calebhealth > 0) {
				chaosicon.gotoAndStop(2);
			} else {
				if (chaosicon._currentframe == 2) {
					chaosicon.gotoAndPlay(3);
				}
			}
			if (coreconfuse == true && character == 1 && corehealth > 0 or calebconfuse == true && character == 2 && calebhealth > 0) {
				confuseicon.gotoAndStop(2);
			} else {
				if (confuseicon._currentframe == 2) {
					confuseicon.gotoAndPlay(3);
				}
			}
			if (coreslow == true && character == 1 && corehealth > 0 or calebslow == true && character == 2 && calebhealth > 0) {
				slowicon.gotoAndStop(2);
			} else {
				if (slowicon._currentframe == 2) {
					slowicon.gotoAndPlay(3);
				}
			}
			if (corepoison == true && character == 1 && corehealth > 0 or calebpoison == true && character == 2 && calebhealth > 0) {
				poisonicon.gotoAndStop(2);
				healthbarz.healthbar.colorz.gotoAndStop(2);
			} else {
				if (poisonicon._currentframe == 2) {
					poisonicon.gotoAndPlay(3);
					healthbarz.healthbar.colorz.gotoAndStop(1);
				}
			}
			bhud.enemyhealth_txt.text = enemyhealth + ' / ' + enemymaxhealth;
			if (character == 1) {
				bhud.playerhealth_txt.text = corehealth + ' / ' + coremaxhealth;
				bhud.manatxt.mana_txt.text = coremana;
				bhud.manatxt.maxmana_txt.text = coremaxmana;
				if (attacking == true && enmattacking == true && ranged == false) {
					char_MC.charX.Core2.gotoAndPlay('hit');
					char_MC.charX.Core.gotoAndStop(1);
					enemy_MC.enemiez.enemy.gotoAndPlay('hit');
					attacking = false;
					enmattacking = false;
					if (camera == true) {
						chance = random(2) + 1;
						if (chance == 1) {
							gotoAndStop('battle');
						}
						if (chance == 2) {
							gotoAndPlay('hit');
						}
					} else {
						gotoBattlescreen();
					}
				}
			}
			if (character == 2) {
				bhud.playerhealth_txt.text = calebhealth + ' / ' + calebmaxhealth;
				bhud.manatxt.mana_txt.text = calebmana;
				bhud.manatxt.maxmana_txt.text = calebmaxmana;
			}
			bhud.shieldbar_MC.shield_txt.text = enmshield;
			bhud.shieldbar_MC.maxshield_txt.text = enmmaxshield;
			if (enemy_MC.enemiez.enemy.Target.hitTest(char_MC.charX.Core.hit) or enemy_MC.enemiez.enemy.Target.hitTest(char_MC.charX.Caleb.hit)) {
				doenemyhurt();
			}
			if (sight == true) {
				bhud.enemybarz._visible = true;
				bhud.enemybarz.mana_txt.text = enemymana;
				bhud.enemybarz.maxmana_txt.text = enemymaxmana;
			} else {
				bhud.enemybarz._visible = false;
			}
			if (gamepause == 0 && enmlimitbreak == false && enmmagic == false or bhud.tut7._currentframe > 1) {
				if (realtimeevent == false) {
					if (Key.isDown(49)) {
						if (enmattacking == false && hurt == false) {
							if (character == 1 && BToneMenu == true && coremagic1 == true) {
								bhud.menuinfo.gotoAndStop(2);
								bhud.menuz.magic_BT.magic1X.gotoAndStop(2);
								infostam = coremagic1stam;
								infomana = coremagic1mana;
								infoen = coremagic1en;
								BT1 = true;
							} else {
								if (character == 2 && chaos == false && BToneMenu == true && calebmagic1 == true) {
									bhud.menuinfo.gotoAndStop(2);
									bhud.menuz.magic_BT.magic1X.gotoAndStop(2);
									infostam = calebmagic1stam;
									infomana = calebmagic1mana;
									infoen = calebmagic1en;
									BT1 = true;
								} else {
									if (character == 2 && chaos == true && BToneMenu == true) {
										bhud.menuinfo.gotoAndStop(2);
										bhud.menuz.magic_BT.magic1X.gotoAndStop(2);
										infostam = calebmagic1Xstam;
										infomana = calebmagic1Xmana;
										infoen = calebmagic1Xen;
										BT1 = true;
									}
								}
							}
							if (BTtwoMenu == true && challenge == false) {
								bhud.menuz.item_BT.item1X.gotoAndStop(2);
								BT1 = true;
							}
							if (character == 1 && BTthreeMenu == true) {
								bhud.menuz.limit_BT.limit1X.gotoAndStop(2);
								BT1 = true;
							} else {
								if (character == 2 && chaos == false && BTthreeMenu == true) {
									bhud.menuz.limit_BT.limit1X.gotoAndStop(2);
									BT1 = true;
								} else {
									if (character == 2 && chaos == true && BTthreeMenu == true) {
										bhud.menuz.limit_BT.limit1X.gotoAndStop(2);
										BT1 = true;
									}
								}
							}
							if (BTone == false && BTtwoMenu == false && BTthreeMenu == false) {
								BTone = true;
								if (menuon == false && BToneX == false) {
									BToneX = true;
									if (character == 1) {
										if (menuon == false) {
											bhud.menuz.magic_BT.gotoAndStop(2);
											bhud.menuz.menublack.gotoAndStop(2);
											bhud.menuz.magic_BT.rolloverz._visible = false;
											menuon = true;
										}
									} else {
										if (character == 2) {
											if (menuon == false) {
												if (chaos == true) {
													bhud.menuz.magic_BT.gotoAndStop(4);
													bhud.menuz.menublack.gotoAndStop(2);
													bhud.menuz.magic_BT.rolloverz._visible = false;
													menuon = true;
												} else {
													bhud.menuz.magic_BT.gotoAndStop(3);
													bhud.menuz.menublack.gotoAndStop(2);
													bhud.menuz.magic_BT.rolloverz._visible = false;
													menuon = true;
												}
											}
										}
									}
								}
							}
						}
					} else {
						if (character == 1 && BToneMenu == true && BT1 == true) {
							BT1 = false;
							bhud.menuz.magic_BT.magic1X.gotoAndStop(1);
							BToneMenu = false;
							doHeal();
						} else {
							if (character == 2 && chaos == false && BToneMenu == true && BT1 == true) {
								BT1 = false;
								bhud.menuz.magic_BT.magic1X.gotoAndStop(1);
								BToneMenu = false;
								doChaos();
							} else {
								if (character == 2 && chaos == true && BToneMenu == true && BT1 == true) {
									BT1 = false;
									bhud.menuz.magic_BT.magic1X.gotoAndStop(1);
									BToneMenu = false;
									doCHeal();
								}
							}
						}
						if (BTtwoMenu == true && BT1 == true) {
							BT1 = false;
							bhud.menuz.item_BT.item1X.gotoAndStop(1);
							BTtwoMenu = false;
							doPotion();
						}
						if (character == 1 && BTthreeMenu == true && BT1 == true) {
							BT1 = false;
							bhud.menuz.limit_BT.limit1X.gotoAndStop(1);
							BTthreeMenu = false;
							doFury();
						} else {
							if (character == 2 && chaos == false && BTthreeMenu == true && BT1 == true) {
								BT1 = false;
								bhud.menuz.limit_BT.limit1X.gotoAndStop(1);
								BTthreeMenu = false;
								doThirdeye();
							} else {
								if (character == 2 && chaos == true && BTthreeMenu == true && BT1 == true) {
									BT1 = false;
									bhud.menuz.magic_BT.limit1X.gotoAndStop(1);
									BTthreeMenu = false;
									doOblivion();
								}
							}
						}
						if (bhud.menuz.magic_BT._currentframe > 1 && coremagic1 == true) {
							BToneMenu = true;
						}
						BTone = false;
					}
					if (Key.isDown(50)) {
						if (enmattacking == false && hurt == false) {
							if (character == 1 && BToneMenu == true && coremagic2 == true && coreberserk == false) {
								bhud.menuinfo.gotoAndStop(2);
								bhud.menuz.magic_BT.magic2X.gotoAndStop(2);
								infostam = coremagic2stam;
								infomana = coremagic2mana;
								infoen = coremagic2en;
								BT2 = true;
							} else {
								if (character == 2 && BToneMenu == true && calebmagic2 == true && calebchaos == false) {
									bhud.menuinfo.gotoAndStop(2);
									bhud.menuz.magic_BT.magic2X.gotoAndStop(2);
									infostam = calebmagic2stam;
									infomana = calebmagic2mana;
									infoen = calebmagic2en;
									BT2 = true;
								} else {
									if (character == 2 && chaos == true && BToneMenu == true) {
										bhud.menuinfo.gotoAndStop(2);
										bhud.menuz.magic_BT.magic2X.gotoAndStop(2);
										infostam = calebmagic2Xstam;
										infomana = calebmagic2Xmana;
										infoen = calebmagic2Xen;
										BT2 = true;
									}
								}
							}
							if (BTtwoMenu == true) {
								bhud.menuz.item_BT.item2X.gotoAndStop(2);
								BT2 = true;
							}
							if (character == 1 && BTthreeMenu == true && corelimit2 == true) {
								bhud.menuz.limit_BT.limit2X.gotoAndStop(2);
								BT2 = true;
							} else {
								if (character == 2 && BTthreeMenu == true && caleblimit2 == true) {
									bhud.menuz.limit_BT.limit2X.gotoAndStop(2);
									BT2 = true;
								}
							}
							if (BTtwo == false && BToneMenu == false && BTthreeMenu == false) {
								BTtwo = true;
								if (BTtwoX == false) {
									if (menuon == false) {
										BTtwoX = true;
										bhud.menuz.item_BT.gotoAndStop(2);
										bhud.menuz.item_BT.rolloverz._visible = false;
										menuon = true;
									}
								}
							}
						}
					} else {
						if (character == 1 && BToneMenu == true && BT2 == true) {
							BT2 = false;
							bhud.menuz.magic_BT.magic2X.gotoAndStop(1);
							BToneMenu = false;
							doBerserk();
						} else {
							if (character == 2 && chaos == false && BToneMenu == true && BT2 == true) {
								BT2 = false;
								bhud.menuz.magic_BT.magic2X.gotoAndStop(1);
								BToneMenu = false;
								doDementia();
							} else {
								if (character == 2 && chaos == true && BToneMenu == true && BT2 == true) {
									BT2 = false;
									bhud.menuz.magic_BT.magic2X.gotoAndStop(1);
									BToneMenu = false;
									doCParalyze();
								}
							}
						}
						if (BTtwoMenu == true && BT2 == true) {
							BT2 = false;
							bhud.menuz.item_BT.item2X.gotoAndStop(1);
							BTtwoMenu = false;
							doElixir();
						}
						if (character == 1 && BTthreeMenu == true && BT2 == true) {
							BT2 = false;
							bhud.menuz.limit_BT.limit2X.gotoAndStop(1);
							BTthreeMenu = false;
							doPheonix();
						} else {
							if (character == 2 && chaos == false && BTthreeMenu == true && BT2 == true) {
								BT2 = false;
								bhud.menuz.limit_BT.limit2X.gotoAndStop(1);
								BTthreeMenu = false;
								doSlash();
							}
						}
						if (bhud.menuz.item_BT._currentframe > 1) {
							BTtwoMenu = true;
						}
						BTtwo = false;
					}
					if (Key.isDown(51)) {
						if (enmattacking == false && hurt == false) {
							if (character == 1 && BToneMenu == true && coremagic3 == true) {
								bhud.menuinfo.gotoAndStop(2);
								bhud.menuz.magic_BT.magic3X.gotoAndStop(2);
								infostam = coremagic3stam;
								infomana = coremagic3mana;
								infoen = coremagic3en;
								BT3 = true;
							} else {
								if (character == 2 && chaos == false && BToneMenu == true && calebmagic3 == true) {
									bhud.menuinfo.gotoAndStop(2);
									bhud.menuz.magic_BT.magic3X.gotoAndStop(2);
									infostam = calebmagic3stam;
									infomana = calebmagic3mana;
									infoen = calebmagic3en;
									BT3 = true;
								} else {
									if (character == 2 && chaos == true && BToneMenu == true) {
										bhud.menuinfo.gotoAndStop(2);
										bhud.menuz.magic_BT.magic3X.gotoAndStop(2);
										infostam = calebmagic3Xstam;
										infomana = calebmagic3Xmana;
										infoen = calebmagic3Xen;
										BT3 = true;
									}
								}
							}
							if (BTtwoMenu == true) {
								bhud.menuz.item_BT.item3X.gotoAndStop(2);
								BT3 = true;
							}
							if (character == 1 && BTthreeMenu == true && corelimit3 == true) {
								bhud.menuz.limit_BT.limit3X.gotoAndStop(2);
								BT3 = true;
							} else {
								if (character == 2 && BTthreeMenu == true && caleblimit3 == true) {
									bhud.menuz.limit_BT.limit3X.gotoAndStop(2);
									BT3 = true;
								}
							}
							if (BTthree == false && BToneMenu == false && BTtwoMenu == false && (story >= 171 or bhud.tut7._currentframe > 1)) {
								BTthree = true;
								if (BTthreeX == false) {
									BTthreeX = true;
									if (character == 1) {
										if (corelimit == coremaxlimit && menuon == false) {
											bhud.menuz.limit_BT.gotoAndStop(2);
											bhud.menuz.menublack.gotoAndStop(2);
											bhud.menuz.limit_BT.rolloverz._visible = false;
											menuon = true;
										}
									} else {
										if (character == 2) {
											if (caleblimit == calebmaxlimit && menuon == false) {
												if (chaos == true) {
													bhud.menuz.limit_BT.gotoAndStop(4);
													bhud.menuz.menublack.gotoAndStop(2);
													bhud.menuz.limit_BT.rolloverz._visible = false;
													menuon = true;
												} else {
													bhud.menuz.limit_BT.gotoAndStop(3);
													bhud.menuz.menublack.gotoAndStop(2);
													bhud.menuz.limit_BT.rolloverz._visible = false;
													menuon = true;
												}
											}
										}
									}
								}
							}
						}
					} else {
						if (character == 1 && BToneMenu == true && BT3 == true) {
							BT3 = false;
							bhud.menuz.magic_BT.magic3X.gotoAndStop(1);
							BToneMenu = false;
							doStorm();
						} else {
							if (character == 2 && chaos == false && BToneMenu == true && BT3 == true) {
								BT3 = false;
								bhud.menuz.magic_BT.magic3X.gotoAndStop(1);
								BToneMenu = false;
								doCrystal();
							} else {
								if (character == 2 && chaos == true && BToneMenu == true && BT3 == true) {
									BT3 = false;
									bhud.menuz.magic_BT.magic3X.gotoAndStop(1);
									BToneMenu = false;
									doCRift();
								}
							}
						}
						if (BTtwoMenu == true && BT3 == true) {
							BT3 = false;
							bhud.menuz.item_BT.item3X.gotoAndStop(1);
							BTtwoMenu = false;
							doEther();
						}
						if (character == 1 && BTthreeMenu == true && BT3 == true) {
							BT3 = false;
							bhud.menuz.limit_BT.limit3X.gotoAndStop(1);
							BTthreeMenu = false;
							doFlash();
						} else {
							if (character == 2 && BTthreeMenu == true && BT3 == true) {
								BT3 = false;
								bhud.menuz.limit_BT.limit3X.gotoAndStop(1);
								BTthreeMenu = false;
								doBlast();
							}
						}
						if (bhud.menuz.limit_BT._currentframe > 1) {
							BTthreeMenu = true;
						}
						BTthree = false;
					}
					if (Key.isDown(52)) {
						if (enmattacking == false && hurt == false) {
							if (character == 1 && BToneMenu == true && coremagic4 == true) {
								bhud.menuinfo.gotoAndStop(2);
								bhud.menuz.magic_BT.magic4X.gotoAndStop(2);
								infostam = coremagic4stam;
								infomana = coremagic4mana;
								infoen = coremagic4en;
								BT4 = true;
							} else {
								if (character == 2 && BToneMenu == true && calebmagic4 == true) {
									bhud.menuinfo.gotoAndStop(2);
									bhud.menuz.magic_BT.magic4X.gotoAndStop(2);
									infostam = calebmagic4stam;
									infomana = calebmagic4mana;
									infoen = calebmagic4en;
									BT4 = true;
								}
							}
							if (BTtwoMenu == true) {
								bhud.menuz.item_BT.item4X.gotoAndStop(2);
								BT4 = true;
							}
							if (character == 1 && BTthreeMenu == true && corelimit4 == true) {
								bhud.menuz.limit_BT.limit4X.gotoAndStop(2);
								BT4 = true;
							} else {
								if (character == 2 && BTthreeMenu == true && caleblimit4 == true) {
									bhud.menuz.limit_BT.limit4X.gotoAndStop(2);
									BT4 = true;
								}
							}
						}
					} else {
						if (character == 1 && BToneMenu == true && BT4 == true) {
							BT4 = false;
							bhud.menuz.magic_BT.magic4X.gotoAndStop(1);
							BToneMenu = false;
							doLightning();
						} else {
							if (character == 2 && BToneMenu == true && BT4 == true) {
								BT4 = false;
								bhud.menuz.magic_BT.magic4X.gotoAndStop(1);
								BToneMenu = false;
								doThunder();
							}
						}
						if (BTtwoMenu == true && BT4 == true) {
							BT4 = false;
							bhud.menuz.item_BT.item4X.gotoAndStop(1);
							BTtwoMenu = false;
							doRemedy();
						}
						if (character == 1 && BTthreeMenu == true && BT4 == true) {
							BT4 = false;
							bhud.menuz.limit_BT.limit4X.gotoAndStop(1);
							BTthreeMenu = false;
							doOmni();
						} else {
							if (character == 2 && BTthreeMenu == true && BT4 == true) {
								BT4 = false;
								bhud.menuz.limit_BT.limit4X.gotoAndStop(1);
								BTthreeMenu = false;
								doMeta();
							}
						}
					}
					if (Key.isDown(53)) {
						if (enmattacking == false && hurt == false) {
							if (character == 1 && BToneMenu == true && coremagic5 == true) {
								bhud.menuinfo.gotoAndStop(2);
								bhud.menuz.magic_BT.magic5X.gotoAndStop(2);
								infostam = coremagic5stam;
								infomana = coremagic5mana;
								infoen = coremagic5en;
								BT5 = true;
							} else {
								if (character == 2 && BToneMenu == true && calebmagic5 == true) {
									bhud.menuinfo.gotoAndStop(2);
									bhud.menuz.magic_BT.magic5X.gotoAndStop(2);
									infostam = calebmagic5stam;
									infomana = calebmagic5mana;
									infoen = calebmagic5en;
									BT5 = true;
								}
							}
							if (BTtwoMenu == true) {
								bhud.menuz.item_BT.item5X.gotoAndStop(2);
								BT5 = true;
							}
						}
					} else {
						if (character == 1 && BToneMenu == true && BT5 == true) {
							BT5 = false;
							bhud.menuz.magic_BT.magic5X.gotoAndStop(1);
							BToneMenu = false;
							doInferno();
						} else {
							if (character == 2 && BToneMenu == true && BT5 == true) {
								BT5 = false;
								bhud.menuz.magic_BT.magic5X.gotoAndStop(1);
								BToneMenu = false;
								doRain();
							}
						}
						if (BTtwoMenu == true && BT5 == true) {
							BT5 = false;
							bhud.menuz.item_BT.item5X.gotoAndStop(1);
							BTtwoMenu = false;
							doLimitboost();
						}
					}
					if (Key.isDown(54)) {
						if (enmattacking == false && hurt == false) {
							if (character == 1 && BToneMenu == true && coremagic6 == true) {
								bhud.menuinfo.gotoAndStop(2);
								bhud.menuz.magic_BT.magic6X.gotoAndStop(2);
								infostam = coremagic6stam;
								infomana = coremagic6mana;
								infoen = coremagic6en;
								BT6 = true;
							} else {
								if (character == 2 && BToneMenu == true && calebmagic6 == true) {
									bhud.menuinfo.gotoAndStop(2);
									bhud.menuz.magic_BT.magic6X.gotoAndStop(2);
									infostam = calebmagic6stam;
									infomana = calebmagic6mana;
									infoen = calebmagic6en;
									BT6 = true;
								}
							}
						}
					} else {
						if (character == 1 && BToneMenu == true && BT6 == true) {
							BT6 = false;
							bhud.menuz.magic_BT.magic6X.gotoAndStop(1);
							BToneMenu = false;
							doPulse();
						} else {
							if (character == 2 && chaos == false && BToneMenu == true && BT6 == true) {
								BT6 = false;
								bhud.menuz.magic_BT.magic6X.gotoAndStop(1);
								BToneMenu = false;
								doParalyze();
							}
						}
					}
					if (Key.isDown(81) && (BToneX == true or BTtwoX == true or BTthreeX == true)) {
						BTXZ = true;
						if (BTX == false) {
							BTX = true;
							BToneMenu = false;
							BTtwoMenu = false;
							BTthreeMenu = false;
							BT1 = false;
							BT2 = false;
							BT3 = false;
							BT4 = false;
							BT5 = false;
							BT6 = false;
							if (BToneX == true) {
								BToneX = false;
								bhud.menuz.magic_BT.gotoAndStop(1);
								if (bhud.menuinfo._currentframe > 1) {
									bhud.menuinfo.gotoAndPlay(3);
								}
								bhud.menuz.magic_BT.bg.gotoAndPlay(12);
								bhud.menuz.menublack.gotoAndStop(1);
								menuon = false;
							} else {
								if (BTtwoX == true) {
									BTtwoX = false;
									bhud.menuz.item_BT.gotoAndStop(1);
									bhud.menuz.item_BT.bg.gotoAndPlay(12);
									menuon = false;
								} else {
									if (BTthreeX == true) {
										if (character == 1) {
											if (caleblimit == calebmaxlimit) {
												BTthreeX = false;
												bhud.menuz.limit_BT.gotoAndStop(1);
												bhud.menuz.menublack.gotoAndStop(1);
												if (bhud.menuinfo._currentframe > 1) {
													bhud.menuinfo.gotoAndPlay(3);
												}
												bhud.menuz.limit_BT.bg.gotoAndPlay(12);
												menuon = false;
											}
										} else {
											if (character == 2) {
												if (corelimit == coremaxlimit) {
													BTthreeX = false;
													bhud.menuz.limit_BT.gotoAndStop(1);
													bhud.menuz.menublack.gotoAndStop(1);
													if (bhud.menuinfo._currentframe > 1) {
														bhud.menuinfo.gotoAndPlay(3);
													}
													bhud.menuz.limit_BT.bg.gotoAndPlay(12);
													menuon = false;
												}
											}
										}
									}
								}
							}
						}
					} else {
						BTX = false;
						BTXZ = false;
					}
					if ((Key.isDown(65) or Key.isDown(37)) && dodgeattack == false) {
						if (character == 1) {
							if (coreconfuse == false) {
								if (dodge == true or char_MC.charX.Core._currentframe == 1) {
									doBattleAttack();
								}
							} else {
								if (coreconfuse == true) {
									chance = random(2) + 1;
									if (chance == 1) {
										doBattleDodge();
									} else {
										if (chance == 2) {
											doBattleAttack();
										}
									}
								}
							}
						} else {
							if (character == 2) {
								if (calebconfuse == false) {
									if (dodge == true or char_MC.charX.Caleb._currentframe == 1) {
										doBattleAttack();
									}
								} else {
									if (calebconfuse == true) {
										chance = random(2) + 1;
										if (chance == 1) {
											doBattleDodge();
										} else {
											if (chance == 2) {
												doBattleAttack();
											}
										}
									}
								}
							}
						}
					}
				}
				if (Key.isDown(68) or Key.isDown(39)) {
					if (character == 1) {
						if (coreconfuse == false) {
							if (tutz == 1) {
								if (bhud.tut1._currentframe > 100) {
									doBattleDodge();
								}
							} else {
								doBattleDodge();
							}
						} else {
							if (character == 1 && coreconfuse == true) {
								doBattleAttack();
							}
						}
					} else {
						if (character == 2) {
							if (calebconfuse == false) {
								doBattleDodge();
							} else {
								if (character == 2 && calebconfuse == true) {
									doBattleAttack();
								}
							}
						}
					}
				}
				if (battlecounterZ == false) {
					if (Key.isDown(83) or Key.isDown(40)) {
						if (battlecounterX == false) {
							battlecounterX = true;
							if (character == 1) {
								if (char_MC.charX.Core._currentframe == 1) {
									doBattleCounter();
								}
							} else {
								if (character == 2 && chaos == false) {
									if (char_MC.charX.Caleb._currentframe == 1) {
										doBattleCounter();
									}
								}
							}
						}
					} else {
						battlecounterX = false;
					}
				}
				if (Key.isDown(87) or Key.isDown(38)) {
					if (fleeX == false) {
						doBattleFlee();
						fleeX = true;
					}
				} else {
					fleeX = false;
				}
			}
			if (Key.isDown(13) or Key.isDown(69)) {
				if (enterX == false && gonext == true) {
					enterX = true;
					if (yesno == true) {
						choice = 1;
					} else {
						if (chathelpX == true) {
							chat = true;
						} else {
							if (training == false && summon == false) {
								if (character == 1) {
									if (corehealth < coremaxhealth) {
										doPotion();
									}
								} else {
									if (character == 2) {
										if (calebhealth < calebmaxhealth) {
											doPotion();
										}
									}
								}
							}
						}
					}
					yesno = false;
					chathelp = false;
					doTextpageX();
				}
			} else {
				enterX = false;
			}
			if (Key.isDown(16) or Key.isDown(81) && BTone == false) {
				if (altX == false) {
					altX = true;
					if (yesno == true) {
						choice = 2;
						yesno = false;
						doTextpageX();
					} else {
						if (chathelpX == true) {
							help = true;
							chathelp = false;
							doTextpageX();
						} else {
							if (character == 1) {
								if (corelimit >= coremaxlimit) {
									if (corelimit4 == true) {
										doOmni();
									} else {
										if (corelimit3 == true) {
											doFlash();
										} else {
											if (corelimit2 == true) {
												doPheonix();
											} else {
												doFury();
											}
										}
									}
								}
							} else {
								if (character == 2) {
									if (caleblimit >= calebmaxlimit) {
										if (caleblimit4 == true) {
											if (chaos == false) {
												doMeta();
											} else {
												doOblivion();
											}
										} else {
											if (caleblimit3 == true) {
												doBlast();
											} else {
												if (caleblimit2 == true) {
													doSlash();
												} else {
													doThirdeye();
												}
											}
										}
									}
								}
							}
						}
					}
				}
			} else {
				altX = false;
			}
			if (Key.isDown(80) && battleend == false && pauseX == false) {
				if (bhud.pause_MC._currentframe == 1) {
					bhud.pause_MC.gotoAndPlay(2);
					pauseX = true;
					gotoBattlescreen();
				}
				if (bhud.pause_MC._currentframe > 20 && bhud.pause_MC._currentframe < 26 && bhud.options_MC._currentframe != 2) {
					bhud.pause_MC.gotoAndPlay(26);
					pauseX = true;
				}
			} else {
				pauseX = false;
			}
			if (Key.isDown(112)) {
				quallow3();
			}
			if (Key.isDown(113)) {
				qualmedium3();
			}
			if (Key.isDown(114)) {
				qualhigh3();
			}
			if (Key.isDown(115)) {
				qualauto3();
			}
			if (Key.isDown(77)) {
				if (muteX == false) {
					if (volumez != 0) {
						soundoff();
						muteX = true;
					} else {
						soundon();
						muteX = true;
					}
				}
			} else {
				muteX = false;
			}
			if (Key.isDown(27)) {
				if (bhud.options_MC._currentframe == 1 && optionsX == false) {
					bhud.options_MC.gotoAndStop(2);
					if (bhud.pause_MC._currentframe == 1) {
						bhud.pause_MC.gotoAndPlay(2);
					}
					bhud.pause_MC._y = 70;
					optionsX = true;
					gotoBattlescreen();
				}
				if (bhud.options_MC._currentframe == 2 && optionsX == false) {
					bhud.options_MC.gotoAndStop(1);
					bhud.pause_MC.gotoAndPlay(26);
					bhud.pause_MC._y = 230;
					optionsX = true;
				}
			} else {
				optionsX = false;
			}
			if (Key.isDown(32)) {
				if (gamepause == 0 && enmattacking == false && chaos == false && menuon == false && spaceX == false) {
					spaceX = true;
					if (story == 131 or story == 132) {
						page1 = 'Caleb: I want to see you perfom a healing spell.';
						notpause = true;
						doStartTextX();
					} else {
						if (character == 1 && char_MC.charX.Core._currentframe == 1 && calebX == true) {
							doSwitchcaleb();
						} else {
							if (character == 2 && char_MC.charX.Caleb._currentframe == 1 && coreX == true) {
								doSwitchcore();
							}
						}
					}
				}
			} else {
				spaceX = false;
			}
			if (menuon == false) {
				if (gamepause == 0 && cursor.hitTest(bhud.menuz.item_BT.BT) && bhud.menuz.item_BT._currentframe == 1) {
					if (hotinfo == true) {
						bhud.menuz.item_BT.help.gotoAndStop(2);
					}
					bhud.menuz.item_BT.gotoAndStop(2);
					BTtwoX = true;
					menuon = true;
				} else {
					if (gamepause == 0 && cursor.hitTest(bhud.menuz.magic_BT.BT) && limitbreak == false) {
						if (hotinfo == true) {
							bhud.menuz.magic_BT.help.gotoAndStop(2);
						}
						if (character == 1) {
							bhud.menuz.magic_BT.gotoAndStop(2);
							BToneX = true;
							if (bhud.menuz.limit_BT._currentframe > 1) {
								domenuon2();
							}
							bhud.menuz.menublack.gotoAndStop(2);
						}
						if (character == 2) {
							if (chaos == true) {
								bhud.menuz.magic_BT.gotoAndStop(4);
							} else {
								bhud.menuz.magic_BT.gotoAndStop(3);
							}
							if (bhud.menuz.limit_BT._currentframe > 1) {
								domenuon2();
							}
							bhud.menuz.menublack.gotoAndStop(2);
						}
					} else {
						if ((gamepause == 0 or story == 180) && cursor.hitTest(bhud.menuz.limit_BT.BT)) {
							if (hotinfo == true) {
								bhud.menuz.limit_BT.help.gotoAndStop(2);
							}
							if (character == 1) {
								if (corelimit == coremaxlimit) {
									bhud.menuz.limit_BT.gotoAndStop(2);
									menuon = true;
									BTthreeX = true;
									if (bhud.menuz.magic_BT._currentframe > 1) {
										domenuon1();
									}
									bhud.menuz.menublack.gotoAndStop(2);
								}
							}
							if (character == 2) {
								if (caleblimit == calebmaxlimit) {
									if (chaos == true) {
										bhud.menuz.limit_BT.gotoAndStop(4);
									} else {
										bhud.menuz.limit_BT.gotoAndStop(3);
									}
									menuon = true;
									BTthreeX = true;
									if (bhud.menuz.magic_BT._currentframe > 1) {
										domenuon1();
									}
									bhud.menuz.menublack.gotoAndStop(2);
								}
							}
						} else {
							if (BToneMenu == false && BTthreeMenu == false) {
								bhud.menuz.menublack.gotoAndStop(1);
							}
						}
					}
				}
			}
			if (coregotlimit == false && corelimit == coremaxlimit) {
				if (story >= 250) {
					bhud.limitflashing.gotoAndPlay(2);
				}
				coregotlimit = true;
			}
			if (calebgotlimit == false && caleblimit == calebmaxlimit) {
				if (story >= 250) {
					bhud.limitflashing.gotoAndPlay(2);
				}
				calebgotlimit = true;
			}
			if (char_MC.charX.Caleb.Target.hitTest(enemy_MC.enemiez.enemy.hit) && battlecounter == true) {
				if (extracounter == false) {
					chance = Math.round(random(calebagility / 3 + calebcounterchance + 6));
				} else {
					chance = Math.round(random(calebagility / 4 + calebcounterchance + 5));
				}
				if (chance <= 5 or enmlimitbreak == true) {
					if (calebhealth <= 0) {
						char_MC.charX.Caleb.gotoAndPlay('Dead');
					} else {
						battlecounterX = false;
						char_MC.charX.Caleb.gotoAndPlay('counterhurt');
						doCalebHurt();
						bhud.countbarX.countbar.play();
					}
				} else {
					battlecounterX = false;
					char_MC.charX.Caleb.gotoAndPlay('counterattack');
				}
			} else {
				if (char_MC.charX.Caleb.Target.hitTest(enemy_MC.enemiez.enemy.hit) && dodge == false) {
					hurt = true;
					if (attackXX == true) {
						doStopAttack();
					}
					bhud.countbarX.countbar.play();
					if (chaos == false) {
						char_MC.charX.Caleb.gotoAndPlay('hurt');
					} else {
						char_MC.charX.Caleb.gotoAndPlay('chaoshurt');
					}
					doCalebHurt();
				} else {
					if (char_MC.charX.Caleb.Target.hitTest(enemy_MC.enemiez.enemy.hit) && dodge == true) {
						calebshield.gotoAndPlay(33);
					}
				}
			}
			if (char_MC.charX.Core.Target.hitTest(enemy_MC.enemiez.enemy.hit) && char_MC.charX.Core2._currentframe == 1 or char_MC.charX.Core2.Target.hitTest(enemy_MC.enemiez.enemy.hit)) {
				if (battlecounter == true) {
					if (story == 81 && currentpage == 6) {
						chance = 10;
						bhud.counterlight.gotoAndStop(1);
						++gamepause;
						++currentpage;
						bhud.text_MCX.textz.gotoAndPlay(5);
						bhud.text_MCX.textz.Buttons._visible = true;
					} else {
						if (extracounter == false) {
							chance = Math.round(random(coreagility / 3 + corecounterchance));
						} else {
							chance = Math.round(random(coreagility / 4 + corecounterchance));
						}
					}
					if (chance <= 5 or enmlimitbreak == true) {
						if (corehealth <= 0) {
							char_MC.charX.Core2.gotoAndPlay('Dead');
						} else {
							battlecounterX = false;
							char_MC.charX.Core2.gotoAndPlay('counterhurt');
							doCoreHurt();
							bhud.countbarX.countbar.play();
						}
					} else {
						battlecounterX = false;
						char_MC.charX.Core.gotoAndPlay('counterattack');
					}
				} else {
					if (attackXX == true) {
						doStopAttack();
					}
					char_MC.charX.Core._visible = false;
					char_MC.charX.Core.gotoAndStop(1);
					char_MC.charX.Core.stand.gotoAndStop(1);
					char_MC.charX.Core2._visible = true;
					char_MC.charX.Core2.gotoAndPlay('hurt');
					bhud.countbarX.countbar.play();
					doCoreHurt();
				}
			}
			if (coreintro == false) {
				if (char_MC.charX.Core2._currentframe > 1) {
					char_MC.charX.Core._visible = false;
					char_MC.charX.Core.gotoAndStop(1);
					char_MC.charX.Core.stand.gotoAndStop(1);
				} else {
					char_MC.charX.Core._visible = true;
				}
			} else {
				if (char_MC.charX.Core._currentframe > 1) {
					char_MC.charX.Core._visible = true;
					char_MC.charX.Core2.gotoAndStop(1);
				}
			}
		};
	}
	frame 198 {
		if (battlestart == true) {
			battlestart = false;
			numofhits = 0;
			char_MC.charX.Core._visible = false;
			char_MC.charX.Core.gotoAndStop(1);
			char_MC.charX.Core.stand.gotoAndStop(1);
			bhud.enmname_txt.text = enemyname;
			if (character == 1) {
				bhud.name_txt.text = corename;
			} else {
				if (character == 2) {
					bhud.name_txt.text = 'Caleb';
				}
			}
			if (character == 1) {
				char_MC.charX.Caleb.gotoAndStop('stopz');
				char_MC.charX.Core2.gotoAndStop('introanm');
			}
			if (character == 2) {
				char_MC.charX.Core.gotoAndStop('stopz');
				char_MC.charX.Core2.gotoAndStop('stopz');
			}
			if (enmmaxlimit <= 0) {
				bhud.enmlimit_MC._visible = false;
				enemybarz.txtstamina._x = 80;
			}
			if (story < 51 or enemymaxmana <= 0) {
				bhud.enemymanabarz._visible = false;
				bhud.enmmanatxt._visible = false;
			}
			if (summon == true) {
				enemy_MC._visible = false;
				summonlight.gotoAndPlay(2);
				++gamepause;
			}
			if (story == 51) {
				notflee = true;
			} else {
				if (story == 80 && enemyname == 'Argas') {
					notflee = true;
				} else {
					notflee = false;
				}
			}
			if (boss == true) {
				currentmusic = 'second';
			} else {
				currentmusic = 'encounter';
			}
			music.stop();
			music.attachSound(currentmusic);
			if (musicmute == false) {
				music.start(0, 999);
			}
			globalvolume.setVolume(volumez);
			music.setVolume(volumez);
			if (camera == true) {
				chance = random(2) + 1;
				if (chance == 1) {
					gotoAndPlay('intro1');
				}
				if (chance == 2) {
					gotoAndPlay('intro2');
				}
			} else {
				if (camera == false) {
					gotoBattlescreen();
				}
			}
			coloring = new Array(char_MC, enemy_MC, blood1, blood2, rockup_MC, crack1_MC, crack2_MC);
			if (areabg == 1) {
				var j = 0;
				while (j < coloring.length) {
					myColor = new Color(coloring[j]);
					myColor.setTransform({'rb': 0, 'gb': 5, 'bb': 0});
					++j;
				}
			} else {
				if (areabg == 2) {
					var j = 0;
					while (j < coloring.length) {
						myColor = new Color(coloring[j]);
						myColor.setTransform({'rb': 0, 'gb': 10, 'bb': 10});
						++j;
					}
				} else {
					if (areabg == 4) {
						var j = 0;
						while (j < coloring.length) {
							myColor = new Color(coloring[j]);
							myColor.setTransform({'rb': -15, 'gb': -15, 'bb': -15});
							++j;
						}
					} else {
						if (areabg == 5) {
							var j = 0;
							while (j < coloring.length) {
								myColor = new Color(coloring[j]);
								myColor.setTransform({'rb': 5, 'gb': -5, 'bb': -15});
								++j;
							}
						} else {
							if (areabg == 6) {
								var j = 0;
								while (j < coloring.length) {
									myColor = new Color(coloring[j]);
									myColor.setTransform({'rb': -15, 'gb': -15, 'bb': -15});
									++j;
								}
							}
						}
					}
				}
			}
			doRedBG();
			if (questdeadman == 3) {
				bg_MC._visible = false;
				boss = true;
				var j = 0;
				while (j < coloring.length) {
					myColor = new Color(coloring[j]);
					myColor.setTransform({'rb': -15, 'gb': -15, 'bb': -15});
					++j;
				}
			}
			if (boss == true or training == true) {
				enmstamina = 0;
			} else {
				if (story > 20) {
					enmstamina = random(30) + 10;
				} else {
					enmstamina = 20;
				}
			}
			afterIntro = function () {
				if (story == 180) {
					bhud.tut8.gotoAndPlay(2);
				}
				if (bhud.pause_MC._currentframe == 1 && bhud.text_MCX.textz._currentframe == 1 && enemy_MC.enemiez.enemy._currentframe == 1 && bhud.tut1._currentframe == 1 && bhud.tut3._currentframe == 1 && bhud.tut4._currentframe == 1 && bhud.tut4X._currentframe == 1 && bhud.tut5._currentframe == 1 && bhud.tut6._currentframe == 1 && bhud.tut6X._currentframe == 1 && bhud.tut7._currentframe == 1 && bhud.tut8._currentframe == 1 && bhud.tut9._currentframe == 1) {
					gamepause = 0;
				}
				if (training == false && bhud.text_MCX.textz._currentframe == 1 && story != 10 && bhud.tut1._currentframe == 1 && bhud.tut3._currentframe == 1 && bhud.tut4._currentframe == 1 && bhud.tut4X._currentframe == 1 && bhud.tut5._currentframe == 1 && bhud.tut6._currentframe == 1 && bhud.tut6X._currentframe == 1 && bhud.tut7._currentframe == 1 && bhud.tut8._currentframe == 1 && bhud.tut9._currentframe == 1) {
					if (summon == false && boss == true) {
						if (twomonsters == true) {
							action = 'Two ' + enemyname + '\'s attack!';
						} else {
							action = enemyname + ' attacks!';
						}
						actiontext();
					} else {
						if (summon == true) {
							if (twomonsters == true && challenge == false) {
								action = 'Two ' + enemyname + 's are summoned!';
							} else {
								action = enemyname + ' is summoned!';
							}
							actiontext();
						}
					}
				}
				if (story == 51) {
					page1 = 'Bandit: I will take you both! Give me your money or pay with your blood!';
					page2 = 'Roy: Back off!';
					page3 = 'Caleb: What is this?';
					doStartTextX();
				}
				if (story == 221) {
					page1 = 'Roy: I think we woke something up...\rThis can\'t be good.';
					page2 = 'Caleb: We have to hurry before the cave collapses!';
					doStartTextX();
				}
				if (questkidnap == 3) {
					page1 = 'Roy: Give me the boy!';
					page2 = 'Bandit: The money first!';
					doStartTextX();
				}
				if (summon == false && (story < 130 or story > 131)) {
					if (enemyname == 'Timberwolf' && questwolf == 2) {
						page1 = 'Roy: A wolf! I\'ll take its skin for Arl!';
						doStartTextX();
					}
					if (enemyname == 'Bandit' && questbag == 2) {
						page1 = 'Roy: It\'s the bandit with Mithrel\'s bag!';
						doStartTextX();
					}
					if (enemyname == 'Razor Boar' && questboar == 2) {
						page1 = 'Roy: A boar! I can kill it and bring it back to Halvarth in Bavelock.';
						doStartTextX();
					}
					if (enemyname == 'Argas' && questbrock == 3) {
						page1 = 'Argas: Attack me with it!';
						doStartTextX();
					}
					if (enemyname == 'Spitter' && questspitter == 2) {
						page1 = 'Roy: A Spitter! I need its poison so I can give it to Vemus!';
						doStartTextX();
					}
					if (enemyname == 'Gornak' && questgornak == 2) {
						page1 = 'Roy: A Gornak! I\'ll take its head so I can give it to Laus!';
						doStartTextX();
					}
					if (enemyname == 'Thanator' && firstthanator == false) {
						page1 = 'Roy: This thing doesn\'t look friendly!';
						page2 = 'Caleb: Don\'t wound what you can\'t kill!';
						doStartTextX();
						firstthanator = true;
					}
					if (enemyname == 'Ghoul' && firstghoul == false && calebX == true) {
						page1 = 'Roy: Dear god what a hideous thing!';
						page2 = 'Caleb: It\'s the cursed undead who wander through dark desolate places to seek escape from their suffering. There is a dark force surrounding them, these creatures are dangerous!';
						doStartTextX();
						firstghoul = true;
					}
				}
			};
		}
	}
	frame 289 {
		gotoBattlescreen();
	}
	frame 344 {
		gotoBattlescreen();
	}
	frame 346 {
		menuon = true;
	}
	frame 380 {
		if (firstcamera == false) {
			firstcameraX = true;
		}
		gotoBattlescreen();
	}
	frame 382 {
		menuon = true;
	}
	frame 432 {
		if (firstcamera == false) {
			firstcameraX = true;
		}
		gotoBattlescreen();
	}
	frame 434 {
		menuon = true;
	}
	frame 471 {
		if (firstcamera == false) {
			firstcameraX = true;
		}
		gotoBattlescreen();
	}
	frame 473 {
		menuon = true;
	}
	frame 496 {
		if (firstcamera == false) {
			firstcameraX = true;
		}
		if (chaos == true) {
			gotoAndStop('chaosB');
		}
	}
	frame 503 {
		gotoBattlescreen();
	}
	frame 505 {
		menuon = true;
	}
	frame 591 {
		gotoBattlescreen();
	}
	frame 593 {
		menuon = true;
	}
	frame 674 {
		gotoBattlescreen();
	}
	frame 676 {
		menuon = true;
	}
	frame 757 {
		gotoBattlescreen();
	}
	frame 759 {
		menuon = true;
	}
	frame 885 {
		gotoBattlescreen();
	}
	frame 887 {
		menuon = true;
	}
	frame 1361 {
		gotoBattlescreen();
	}
	frame 1363 {
		menuon = true;
	}
	frame 1393 {
		if (firstcamera == false) {
			firstcameraX = true;
		}
		gotoBattlescreen();
	}
	frame 1395 {
		menuon = true;
	}
	frame 1461 {
		gotoBattlescreen();
	}
	frame 1463 {
		menuon = true;
	}
	frame 1589 {
		gotoBattlescreen();
	}
	frame 1591 {
		menuon = true;
	}
	frame 1864 {
		gotoBattlescreen();
	}
	frame 1866 {
		menuon = true;
	}
	frame 1945 {
		gotoBattlescreen();
	}
	frame 1947 {
		menuon = true;
	}
	frame 2165 {
		gotoBattlescreen();
	}
	frame 2167 {
		menuon = true;
	}
	frame 2369 {
		gotoBattlescreen();
	}
	frame 2371 {
		cursor.gotoAndStop(1);
		menuon = true;
	}
	frame 2410 {
		if (bhud.menuz.magic_BT._currentframe > 1) {
			domenuon1();
		}
		if (bhud.menuz.limit_BT._currentframe > 1) {
			domenuon2();
		}
		summon = false;
		challenge = false;
		boss = false;
		music.stop();
		stopAllSounds();
		musicon = true;
		enmsound4.attachSound('deadmusic');
		if (musicmute == false) {
			enmsound4.start();
			globalvolume.setVolume(volumez);
			music.setVolume(volumez);
		}
		onEnterFrame = function () {
			if (battleback == false && (Key.isDown(13) or Key.isDown(69))) {
				battleback = true;
				gotoAndPlay('backX');
			}
			if (Key.isDown(77)) {
				if (muteX == false) {
					if (volumez != 0) {
						soundoff();
						muteX = true;
					} else {
						soundon();
						muteX = true;
					}
				}
			} else {
				muteX = false;
			}
		};
		if (camera == false) {
			gotoAndStop('loseX');
		}
	}
	button 10368 {
		on (release) {
			_parent.gotoAndPlay('backX');
		}
	}
	movieClip 10370	{
	}
	movieClip 10371	{
		frame 80 {
			stop();
		}
	}
	frame 2488 {
		stop();
	}
	frame 2511 {
		doBattleExit();
		gotoAndStop('Load');
	}
	frame 2512 {
		music.stop();
		if (story != 255) {
			enmsound4.attachSound('victory');
		}
		if (musicmute == false) {
			enmsound4.start();
			globalvolume.setVolume(volumez);
			music.setVolume(volumez);
		}
	}
	movieClip 10372	{
	}
	movieClip 10374	{
		frame 1 {
			stop();
		}
	}
	frame 2513 {
		bhud.endstuff.gotoAndStop(2);
		bhud.endstuff.statsinfo._visible = false;
		if (story == 61) {
			story = 62;
		}
		if (story >= 240 && story < 260) {
			story = 260;
		}
		if (summon == true) {
			summon_finished = true;
		}
		if (challenge == true) {
			challenge_finished = true;
		}
		summon = false;
		challenge = false;
		boss = false;
		if (questdeadman == 3) {
			questdeadman = 4;
		}
		if (questkidnap == 3) {
			questkidnap = 4;
		}
		if (stolenpotion == true) {
			++potion;
		} else {
			if (stolenelixir == true) {
				++elixir;
			} else {
				if (stolenether == true) {
					++ether;
				} else {
					if (stolenremedy == true) {
						++remedy;
					}
				}
			}
		}
		if (questbrock == 8) {
			playerX = -735;
			playerY = 395;
			stand = 3;
		}
		if (summon == false && enemyhealth == 0 && story != 140) {
			if (enemyname == 'Timberwolf' && questwolf == 2) {
				questwolf = 3;
			}
			if (enemyname == 'Bandit' && questbag == 2) {
				questbag = 3;
			}
			if (enemyname == 'Razor Boar' && questboar == 2) {
				questboar = 3;
			}
			if (enemyname == 'Spitter' && questspitter == 2) {
				questspitter = 3;
			}
			if (enemyname == 'Gornak' && questgornak == 2) {
				questgornak = 3;
			}
			if (enemyname == 'Thanator' && questthanator == 2) {
				questthanator = 3;
			}
		}
		if (training == false) {
			++numofbattles;
			if (numofbattles >= 10 && medalrookie == false) {
				unlockRookie = true;
			} else {
				if (numofbattles >= 25 && medalveteran == false) {
					unlockVeteran = true;
				} else {
					if (numofbattles >= 50 && medallegend == false) {
						unlockLegend = true;
					}
				}
			}
		}
		if (story < 60) {
			doClearXX();
		}
		if (thirdeye == true) {
			eye_light.play();
			enemy_MC.play();
		}
		if (bhud.menuz.magic_BT._currentframe > 1) {
			domenuon1();
		}
		if (bhud.menuz.limit_BT._currentframe > 1) {
			domenuon2();
		}
		if (boss == false) {
			goldZ = Math.round((goldX + Math.random() * goldX) / 2);
		} else {
			goldZ = goldX;
		}
		goldZ += stolengold;
		if (training == false) {
			if (numofhits == 0) {
				++medalflawlessX;
				if (medalflawlessX >= 20 && medalflawless == false) {
					unlockFlawless = true;
				}
			}
		}
		if (training == true or summon == true) {
			bhud.endstuff.gaingold._visible = false;
			goldZ = 0;
		} else {
			bhud.endstuff.gaingold.gold_txt.text = goldZ + ' Pix';
		}
		goldnum = goldZ;
		addingGold();
		addstat = new Array();
		number = 0;
		num = coremagicdamageXX;
		addingMagicCore();
		if (coremagicdamageXX > 0) {
			addstat[number] = corename + ' gained ' + coremagicdamageXX + ' Magic';
			++number;
		}
		num = coredefenseXX;
		addingDefenseCore();
		if (coredefenseXX > 0) {
			addstat[number] = corename + ' gained ' + coredefenseXX + ' Defense';
			++number;
		}
		num = coremagicdefenseXX;
		addingMagicdefenseCore();
		if (coremagicdefenseXX > 0) {
			addstat[number] = corename + ' gained ' + coremagicdefenseXX + ' Magic Defense';
			++number;
		}
		num = corestrengthXX;
		addingStrengthCore();
		if (corestrengthXX > 0) {
			addstat[number] = corename + ' gained ' + corestrengthXX + ' Strength';
			++number;
		}
		num = coreagilityXX;
		addingAgilityCore();
		if (coreagilityXX > 0) {
			addstat[number] = corename + ' gained ' + coreagilityXX + ' Agility';
			++number;
		}
		num = coreluckXX;
		addingLuckCore();
		if (coreluckXX > 0) {
			addstat[number] = corename + ' gained ' + coreluckXX + ' Luck';
			++number;
		}
		num = calebmagicdamageXX;
		addingMagicCaleb();
		if (calebmagicdamageXX > 0) {
			addstat[number] = 'Caleb gained ' + calebmagicdamageXX + ' Magic';
			++number;
		}
		num = calebdefenseXX;
		addingDefenseCaleb();
		if (calebdefenseXX > 0) {
			addstat[number] = 'Caleb gained ' + calebdefenseXX + ' Defense';
			++number;
		}
		num = calebmagicdefenseXX;
		addingMagicdefenseCaleb();
		if (calebmagicdefenseXX > 0) {
			addstat[number] = 'Caleb gained ' + calebmagicdefenseXX + ' Magic Defense';
			++number;
		}
		num = calebstrengthXX;
		addingStrengthCaleb();
		if (calebstrengthXX > 0) {
			addstat[number] = 'Caleb gained ' + calebstrengthXX + ' Strength';
			++number;
		}
		num = calebagilityXX;
		addingAgilityCaleb();
		if (calebagilityXX > 0) {
			addstat[number] = 'Caleb gained ' + calebagilityXX + ' Agility';
			++number;
		}
		num = calebluckXX;
		addingLuckCaleb();
		if (calebluckXX > 0) {
			addstat[number] = 'Caleb gained ' + calebluckXX + ' Luck';
			++number;
		}
		statnr = 0;
		addMC = function () {
			container.attachMovie('Addstat_MC', 'statMC' + statnr, statnr);
			container['statMC' + statnr].graphz.txt.text = addstat[statnr];
			++statnr;
			sound4.attachSound('mark');
			sound4.start();
			statflash.gotoAndPlay(2);
		};
		i = 0;
		while (i < addstat.length) {
			setTimeout(addMC, 1000 + i * 1500);
			++i;
		}
		onEnterFrame = function () {
			if (battleback == false && (Key.isDown(13) or Key.isDown(69))) {
				battleback = true;
				gotoAndPlay('back');
			}
			if (Key.isDown(77)) {
				if (muteX == false) {
					if (volumez != 0) {
						soundoff();
						muteX = true;
					} else {
						soundon();
						muteX = true;
					}
				}
			} else {
				muteX = false;
			}
		};
		if (camera == false) {
			gotoAndStop('winX');
		}
		doAutosave();
	}
	frame 2576 {
		stop();
	}
	frame 2577 {
		if (training == true) {
			bhud.endstuff.gaingold._visible = false;
		} else {
			bhud.endstuff.gaingold.gold_txt.text = goldZ + ' Pix';
		}
		bhud.endstuff.coregot_BT._visible = false;
		bhud.endstuff.calebgot_BT._visible = false;
		bhud.endstuff.statsinfo._visible = false;
		musicon = true;
	}
	frame 2601 {
		doBattleExit();
		doGotoGame();
	}
	frame 2602 {
		_root.attachMovie('Fishing_game', 'fishing_game', 0);
		stop();
	}
	frame 2603 {
		fishing_game.removeMovieClip();
		doGotoGame();
	}
