Frame 1
function showResult() {
var _local3 = _global.score;
_global.totalBonus = 0;
if (_global.SCORE_SYSTEM_CHECK_MONEY_LEFT[_global.playMode]) {
_global.totalBonus = _global.totalBonus + _global.moneyLeftBonus;
}
if (_global.SCORE_SYSTEM_CHECK_TIME_LEFT[_global.playMode]) {
_global.totalBonus = _global.totalBonus + _global.timeLeftBonus;
}
if (_global.playMode == _global.GAMES_TARGET_REACH_MODE) {
_global.totalBonus = _global.totalBonus + _global.targetBonus;
}
if (_global.SCORE_SYSTEM_CHECK_EFFICIENT[_global.playMode]) {
_global.totalBonus = _global.totalBonus + _global.effiBonus;
}
if (_global.playMode == _global.GAMES_COLLECTION_MODE) {
_global.totalBonus = _global.totalBonus + _global.collectBonus;
}
if (_global.subStage == _global.GAMES_SUB_STAGE_NUM[_global.gameMode]) {
_global.totalBonus = _global.totalBonus + _global.levelClearBonus;
}
if (_global.gameMode == _global.GAMES_COLLECTOR_MODE) {
_global.totalBonus = _global.totalBonus + _global.itemUnlockBonus;
}
_global.summaryBonusNum.text = _global.totalBonus;
_global.countingScoreEvent = setInterval(this, "drawCountDown", 30, _global.summaryBonusNum, _global.totalBonus, _global.summaryScoreNum, _global.score);
_global.moneyLeftBonus = 0;
_global.timeLeftBonus = 0;
_global.targetBonus = 0;
_global.effiBonus = 0;
_global.profitBonus = 0;
_global.collectBonus = 0;
_global.levelClearBonus = 0;
}
function drawCountDown(summaryBonusTxt, totalBonus, summaryScoreTxt, score) {
_global.totalBonus = _global.totalBonus - 2;
_global.score = _global.score + 2;
if (_global.totalBonus >= 0) {
_global.summaryBonusNum.text = _global.totalBonus;
_global.summaryScoreNum.text = _global.score;
_global.playSoundEffect("countDownSound");
} else {
clearInterval(_global.countingScoreEvent);
_global.summaryBonusNum.text = 0;
_global.summaryScoreNum.text = _global.score + _global.totalBonus;
_global.score = _global.score + _global.totalBonus;
_global.totalBonus = 0;
}
}
function myOnLoad(success) {
_global.GuiSubmitBoard.loading_mc._visible = false;
_global.GuiSubmitBoard.Resulttxt._visible = true;
if (success) {
_global.GuiSubmitBoard.Resulttxt.text = "Success";
getURL (_global.SubmitPath, "_blank");
_global.sch = new Cschedule(4000, GoToLoading);
} else {
_global.GuiSubmitBoard.Resulttxt.text = "Submit Failed";
_global.GuiSubmitBoard.send_btn.enabled = true;
_global.GuiSubmitBoard.send_btn._alpha = 100;
}
}
function loadData(success) {
var _local3;
if (success) {
_local3 = this.firstChild.firstChild;
var _local6 = _local3.attributes.UseMsnApi;
if (_local6 == "on") {
_global.bUseMSNApi = 1;
} else {
_global.bUseMSNApi = 0;
}
_local3 = _local3.nextSibling;
var _local7 = _local3.attributes.UseNormal;
var _local8 = _local3.attributes.bCheatCode;
if (_local7 == "on") {
_global.BuyPath = _local3.firstChild.firstChild.nodeValue;
trace(_global.BuyPath);
var _local4 = _local3.firstChild.nextSibling;
_global.DownloadPath = _local4.firstChild.nodeValue;
trace(_global.DownloadPath);
_local4 = _local4.nextSibling;
_global.SubmitPath = _local4.firstChild.nodeValue;
trace(_global.SubmitPath);
}
if (_local8 == "on") {
_global.bCheatCode = 1;
} else {
_global.bCheatCode = 0;
}
_local3 = _local3.nextSibling;
var _local5 = _local3.attributes.HitEffect;
if (_local5 == "on") {
trace(_local5);
_global.bHitEffect = 1;
} else {
_global.bHitEffect = 0;
}
}
delete data_xml;
}
function setupKeybinds() {
if (_global.bCheatCode == 1) {
if (((Key.getCode() > 48) && (Key.getCode() < 55)) && (Key.isDown(90))) {
_global.jumpSubStage(Key.getCode() - 48);
}
if (((Key.getCode() > 48) && (Key.getCode() < 55)) && (Key.isDown(65))) {
_global.jumpStage(Key.getCode() - 48);
}
}
}
_global.effetmp = 0;
_global.UserName = "Shopper";
_global.bCheatCode = 1;
_global.bHitEffect = 0;
_global.BroadcastInterval = 5;
_global.bUseMSNApi = 0;
_global.startTime = 0;
_global.startShoot = false;
_global.DollarNum = 1000;
_global.percent = 0;
_global.percentToPass = 50;
_global.budget = 0;
_global.moneyLeft = 0;
_global.stage = 1;
_global.last = 1;
_global.nextStageFlag = 0;
_global.subStage = 1;
_global.bNextStage = false;
_global.totalItemBuy = 0;
_global.totalMoney = 0;
_global.timeLimit = 0;
_global.showDebug = 0;
_global.score = 0;
_global.stageBeginScore = 0;
_global.timeLeft = 0;
_global.makeNewRow = false;
_global.startFalling = false;
_global.gamePaused = false;
_global.playing = false;
_global.bPressShortCut = false;
_global.maxShootAngle = 0;
_global.life = _global.GAMES_LIFE;
_global.newGame = true;
_global.gameOver = false;
_global.makeCoupon = false;
_global.moneyLeftBonus = 0;
_global.timeLeftBonus = 0;
_global.targetBonus = 0;
_global.effiBonus = 0;
_global.profitBonus = 0;
_global.collectBonus = 0;
_global.levelClearBonus = 0;
_global.itemUnlockBonus = 0;
_global.totalBonus = 0;
_global.efficientScore = 0;
_global.efficiency = 0;
_global.dollarFreqArr = new Array();
_global.dollarLeastValue = 0;
_global.itemAppearRate = new Array();
_global.itemRequireNo = new Array();
_global.itemValueArr = new Array();
_global.itemType = 0;
_global.itemNameArr = new Array();
_global.itemStoreArr = new Array();
_global.reqTypeNum = 0;
_global.allItemRequireCount = 0;
_global.allRequiredTypeGet = 0;
_global.allRequireTypeNum = 0;
_global.characterId = 1;
_global.collectPassPercent = 0;
_global.requiredTypeGet = new Array();
_global.requiredItemImg = new Array();
_global.requireIdSet = new Array();
_global.requireType = new Array();
_global.requireNum = new Array();
_global.basicBoxNum = 0;
_global.deluxeBoxNum = 0;
_global.profitItemSell = 0;
_global.profitItemSetId = 0;
_global.profitItemSet = "";
_global.profitItemNum = 0;
_global.profit = 0;
_global.profitGet = 0;
_global.target_value = 0;
_global.target_range = 0;
_global.reachTargetScore = 0;
_global.efficientScore = 0;
_global.efficiency = 0;
_global.maxItemId = 0;
_global.maxItemNum = 0;
_global.lastGameState = _global.GAMES_GAME_STATE_DEER_LOGO;
_global.curGameState = _global.GAMES_GAME_STATE_DEER_LOGO;
_global.gameMode = _global.GAMES_ARCADE_MODE;
_global.nextGameMode = _global.GAMES_ARCADE_MODE;
_global.hitBonusMoney = false;
_global.hitBonusScore = false;
_global.hitBonusTime = false;
_global.profilePage_selectedPlayerId = 1;
_global.bDirectToCreateProfile = false;
_global.bPlayerProfileExisit = false;
_global.bRankingRecordExisit = false;
_global.activeRankingPage = _global.GAMES_ARCADE_MODE;
_global.rankingPage_selectedPlayerId = 1;
_global.bSlidingMenu = false;
_global.bChooseFullScreen = _global.pref_Video_fullScreen;
_global.bSlidingNewGameBoard = false;
_global.bRetryFromGameOver = false;
_global.medalNum = 0;
_global.inGameBgSoundNo = 1;
_global.hitBonusMoney = false;
_global.hitBonusScore = false;
_global.hitBonusTime = false;
_global.bonusMoneyGet = 0;
_global.bonusScoreGet = 0;
_global.bonusTimeGet = 0;
_global.lowerItemFreqArr = new Array();
_global.totalBonusMoneyGet = 0;
_global.maxBonusMoney = 100;
_global.maxBMoneyItemCount = 2;
_global.totalBonusScoreGet = 0;
_global.maxBonusScore = 100;
_global.maxBScoreItemCount = 2;
_global.totalBonusTimeGet = 0;
_global.maxBonusTime = 100;
_global.maxBTimeItemCount = 2;
_global.maxCouponItemCount = 2;
_global.bUseBonusMoneyItem = false;
_global.bUseBonusTimeItem = false;
_global.bUseBonusScoreItem = false;
_global.bIntroBonusMoneyItem = true;
_global.bIntroBonusTimeItem = true;
_global.bIntroBonusScoreItem = true;
_global.bDrawBonusTime = false;
_global.bonusTimeDisplay = 0;
_global.bDrawBonusMoney = false;
_global.bonusMoneyDisplay = 0;
_global.bDrawBonusScore = false;
_global.bonusScoreDisplay = 0;
_global.FIRST_GEN_END_ROW = 4;
_global.GAMES_GAME_STATE_DEER_LOGO = 0;
_global.GAMES_GAME_STATE_MAIN_MENU = 1;
_global.GAMES_GAME_STATE_PLAYING = 2;
_global.GAMES_GAME_STATE_LEVEL_COMPLETE = 3;
_global.GAMES_GAME_STATE_DISPLAY_RESULT = 4;
_global.GAMES_GAME_STATE_DISPLAY_OBJECTIVE = 5;
_global.GAMES_GAME_STATE_CHAR_SEL_MENU = 6;
_global.GAMES_GAME_STATE_PROFILE_PAGE = 7;
_global.GAMES_GAME_STATE_SHOP_SEL_MENU = 8;
_global.GAMES_GAME_STATE_OPTION_PAGE = 9;
_global.GAMES_GAME_STATE_HELP_PAGE = 10;
_global.GAMES_GAME_STATE_RANK_PAGE = 11;
_global.GAMES_GAME_STATE_NEW_RESUME_ARC_PAGE = 12;
_global.GAMES_GAME_STATE_NEW_RESUME_COLL_PAGE = 13;
_global.GAMES_GAME_STATE_IN_GAME_MENU_PAGE = 14;
_global.GAMES_GAME_STATE_IN_GAME_HELP_PAGE = 15;
_global.GAMES_GAME_STATE_CREATE_PLAYER_PAGE = 16;
_global.GAMES_GAME_STATE_DELETE_PLAYER_PAGE = 17;
_global.GAMES_GAME_STATE_GAMEOVER = 18;
_global.GAMES_GAME_STATE_MEDAL_REWARD = 19;
_global.GAMES_GAME_STATE_INTRO_MEDAL = 20;
_global.GAMES_GAME_STATE_LIFE_NOTE = 21;
_global.GAMES_GAME_STATE_CREDIT_PAGE = 22;
_global.GAMES_GAME_STATE_INTRODUCE_BONUS = 23;
_global.BTNS_NEW_RESUME_ARC_PAGE_NEW = 1;
_global.BTNS_NEW_RESUME_ARC_PAGE_RESUME = 2;
_global.BTNS_NEW_RESUME_ARC_PAGE_LOAD = 3;
_global.BTNS_NEW_RESUME_ARC_PAGE_ESCAPE = 4;
_global.BTNS_NEW_RESUME_COLL_PAGE_NEW = 5;
_global.BTNS_NEW_RESUME_COLL_PAGE_RESUME = 6;
_global.BTNS_NEW_RESUME_COLL_PAGE_LOAD = 7;
_global.BTNS_NEW_RESUME_COLL_PAGE_ESCAPE = 8;
_global.BTNS_RANK_PAGE_ESCAPE = 9;
_global.BTNS_RANK_PAGE_MEDAL = 26;
_global.BTNS_OPTION_PAGE_ESCAPE = 10;
_global.BTNS_PROFILE_CHANGE_PAGE_CREATE = 11;
_global.BTNS_PROFILE_CHANGE_PAGE_OK = 12;
_global.BTNS_PROFILE_CHANGE_PAGE_DELETE = 13;
_global.BTNS_PROFILE_CHANGE_PAGE_ESCAPE = 14;
_global.BTNS_PROFILE_CREATE_PAGE_OK = 15;
_global.BTNS_PROFILE_CREATE_PAGE_CANCEL = 16;
_global.BTNS_PROFILE_CREATE_PAGE_ESCAPE = 17;
_global.BTNS_PROFILE_DELETE_PAGE_OK = 18;
_global.BTNS_PROFILE_DELETE_PAGE_CANCEL = 19;
_global.BTNS_PROFILE_DELETE_PAGE_ESCAPE = 20;
_global.BTNS_PROFILE_BACK_MENU = 21;
_global.BTNS_SUMMARY_RETRY_YES = 22;
_global.BTNS_SUMMARY_RETRY_NO = 23;
_global.BTNS_GAMEOVER_RETRY_YES = 24;
_global.BTNS_GAMEOVER_RETRY_NO = 25;
_global.GAMES_COLLECTION_MODE = 1;
_global.GAMES_BUY_GIFT_MODE = 2;
_global.GAMES_BUY_FOOD_MODE = 3;
_global.GAMES_EFFICIENT_MODE = 4;
_global.GAMES_TARGET_REACH_MODE = 5;
_global.GAMES_BONUS_MODE = 6;
_global.GAMES_NORMAL_MODE = 7;
_global.GAMES_SMART_BUYER_MODE = 8;
_global.GAMES_ARCADE_MODE = 1;
_global.GAMES_CHARACTER_MODE = 2;
_global.GAMES_COLLECTOR_MODE = 3;
_global.GAMES_NEIGHBOR_COUNT = 6;
_global.GAMES_LIFE = 3;
_global.GAMES_SUB_STAGE_NUM = new Array();
_global.GAMES_SUB_STAGE_NUM[_global.GAMES_ARCADE_MODE] = 6;
_global.GAMES_SUB_STAGE_NUM[_global.GAMES_CHARACTER_MODE] = 6;
_global.GAMES_SUB_STAGE_NUM[_global.GAMES_COLLECTOR_MODE] = 5;
_global.GAMES_REDUCE_LIFE = new Array();
_global.GAMES_REDUCE_LIFE[_global.GAMES_ARCADE_MODE] = true;
_global.GAMES_REDUCE_LIFE[_global.GAMES_CHARACTER_MODE] = true;
_global.GAMES_REDUCE_LIFE[_global.GAMES_COLLECTOR_MODE] = true;
_global.GUI_LEVEL_POS = new Array(48, 562);
_global.GUI_LEVEL_SIZE = new Array(60, 22);
_global.GUI_LEVEL_TXT_DIGIT = 1;
_global.GUI_LEVEL_TXT_SIZE = new Array(21, 20);
_global.GUI_LEVEL_TXT_POS = new Array();
_global.GUI_LEVEL_TXT_POS[1] = new Array(69, 446);
_global.GUI_LEVEL_DOT_POS = new Array(106, 562);
_global.GUI_LEVEL_DOT_SIZE = new Array(8, 8);
_global.GUI_LEVEL_TXT_POS[2] = new Array(100, 446);
_global.GUI_MONEY_LEFT_POS = new Array(30, 154);
_global.GUI_MONEY_LEFT_SIZE = new Array(146, 72);
_global.GUI_MONEY_LEFT_TXT_POS = new Array(25, 151);
_global.GUI_MONEY_LEFT_TXT_SIZE = new Array(12, 16);
_global.GUI_MONEY_LEFT_TXT_DIGIT = 5;
_global.GUI_MONEY_LEFT_TXT_BG_POS = new Array(-12, 52);
_global.GUI_MONEY_LEFT_TXT_BG_SIZE = new Array(16, 3);
_global.GUI_BONUS_MONEY_TXT_POS = new Array(15, 91);
_global.GUI_BONUS_MONEY_TXT_SIZE = new Array(22, 22);
_global.GUI_BONUS_MONEY_TXT_DIGIT = 5;
_global.GUI_BONUS_MONEY_TXT_IMAGE = "bonusNumImagemap";
_global.GUI_TIME_LEFT_POS = new Array(64, 270);
_global.GUI_TIME_LEFT_SIZE = new Array(146, 72);
_global.GUI_TIME_BAR_POS = new Array(17, 254);
_global.GUI_BONUS_TIME_TXT_POS = new Array(15, 205);
_global.GUI_BONUS_TIME_TXT_SIZE = new Array(22, 22);
_global.GUI_BONUS_TIME_TXT_DIGIT = 4;
_global.GUI_BONUS_TIME_TXT_IMAGE = "bonusNumImagemap";
_global.GUI_SCORE_POS = new Array(51, 324);
_global.GUI_SCORE_SIZE = new Array(146, 72);
_global.GUI_SCORE_TXT_POS = new Array(25, 376);
_global.GUI_SCORE_TXT_SIZE = new Array(12, 16);
_global.GUI_SCORE_TXT_DIGIT = 6;
_global.GUI_SCORE_TXT_BG_POS = new Array(-12, 65);
_global.GUI_SCORE_TXT_BG_SIZE = new Array(16, 3);
_global.GUI_BONUS_SCORE_TXT_POS = new Array(5, 324);
_global.GUI_BONUS_SCORE_TXT_SIZE = new Array(22, 22);
_global.GUI_BONUS_SCORE_TXT_DIGIT = 5;
_global.GUI_BONUS_SCORE_TXT_IMAGE = "bonusNumImagemap";
_global.GUI_LIFE_LEFT_POS = new Array(460, 460);
_global.GUI_LIFE_LEFT_SIZE = new Array(102, 24);
_global.GUI_LIFE_LEFT_TXT_POS = new Array(437, 460);
_global.GUI_LIFE_LEFT_TXT_SIZE = new Array(28, 24);
_global.GUI_TARGET_SIZE = "160 28";
_global.GUI_TARGET_POS = "77 256";
_global.GUI_TARGET_TXT_DIGIT = 5;
_global.GUI_TARGET_TXT_SIZE = "15 20";
_global.GUI_TARGET_TXT_POS = "39.4 284";
_global.GUI_TARGET_TXT_BG_SIZE = "160 28";
_global.GUI_TARGET_TXT_BG_POS = "77 284";
_global.GUI_PRESS_ENTER_POS = "69 319";
_global.GUI_PRESS_ENTER_SIZE = "138 38";
_global.GUI_PERCENT_TXT_POS = "66 10";
_global.GUI_PERCENT_TXT_SIZE = "2 2";
_global.GUI_PERCENT_TXT_DIGIT = 3;
_global.GUI_NORMAL_TARGET_TXT_POS = "66 10";
_global.GUI_NORMAL_TARGET_TXT_SIZE = "2 2";
_global.GUI_NORMAL_TARGET_TXT_DIGIT = 5;
_global.GUI_LOGO_POS = "75 49";
_global.GUI_LOGO_SIZE = "148 66";
_global.GUI_PAUSE_POS = "50 25";
_global.GUI_PAUSE_SIZE = "31.5 30";
_global.GUI_LEVEL_COMPLETE_POS = "400 300";
_global.GUI_LEVEL_COMPLETE_SIZE = "314 84";
_global.rowNum = 7;
_global.colNum = 8;
_global.colWidth = 52;
_global.rowHeight = 52;
_global.GAMES_ITEM_LAST_ROW = 6;
_global.GAMES_FIRST_GEN_END_ROW = 5;
_global.GAMES_LEAST_ITEM_EXISIT_NUM = 32;
_global.GUI_ITEM_BOARD_POS = new Array(384, 300);
_global.GUI_ITEM_BOARD_DX = 15;
_global.GUI_ITEM_BOARD_DY = 15;
_global.GUI_ITEM_BOARD_ALIGNMENT = 1;
_global.boardRowNum = 10;
_global.GUI_MONEY_TXT_SIZE = new Array(188, 20);
_global.EFFICIENCY_EXCELLENT = 96;
_global.EFFICIENCY_GREAT = 85;
_global.EFFICIENCY_GOOD = 75;
_global.EFFICIENCY_POOR = 50;
_global.EFFECT_RISE_SPEED = -1;
_global.EFFECT_EXCELLENT_SIZE = "128 22";
_global.EFFECT_GREAT_SIZE = "76 22";
_global.EFFECT_GOOD_SIZE = "64 22";
_global.EFFECT_POOR_SIZE = "64 22";
_global.GUI_LIFE_NOTE_TEXT = new Array();
_global.GUI_LIFE_NOTE_TEXT[1] = new Array();
_global.GUI_LIFE_NOTE_TEXT[1][1] = "You still have one try left. Hope you can make it this time.";
_global.GUI_LIFE_NOTE_TEXT[1][2] = "This is your last chance. Good luck!";
_global.GUI_LIFE_NOTE_TEXT[2] = new Array();
_global.GUI_LIFE_NOTE_TEXT[2][1] = "You have 2 tries left. If you pass it this time, you can gain back one life.";
_global.GUI_LIFE_NOTE_TEXT[2][2] = "You have 2 tries left. If you pass it this time, you can gain back one life.";
_global.PROGRESS_BAR_POSITION = new Array(581, 134);
_global.COLOR_BLUE = 1;
_global.COLOR_GREEN = 2;
_global.COLOR_ORANGE = 3;
_global.COLOR_PURPLE = 4;
_global.COLOR_RED = 5;
_global.COLOR_YELLOW = 6;
_global.COLOR_SILVER = 7;
_global.COLOR_SILVERG = 8;
_global.COLOR_BLUE1 = 9;
_global.COLOR_YELLOW1 = 10;
_global.COLOR_GREEN1 = 11;
_global.COLOR_PINK1 = 12;
_global.COLOR_BONUS_RED = 13;
_global.COLOR_BONUS_PURPLE = 14;
_global.COLOR_BONUS_BLUE = 15;
_global.COLOR_IMAGE = new Array();
_global.COLOR_IMAGE[_global.COLOR_BLUE] = "blue1.png";
_global.COLOR_IMAGE[_global.COLOR_GREEN] = greenBallImageMap;
_global.COLOR_IMAGE[_global.COLOR_ORANGE] = orangeBallImageMap;
_global.COLOR_IMAGE[_global.COLOR_PURPLE] = "BonusIcon_BallB.png";
_global.COLOR_IMAGE[_global.COLOR_RED] = redBallImageMap;
_global.COLOR_IMAGE[_global.COLOR_YELLOW] = yellowBallImageMap;
_global.COLOR_IMAGE[_global.COLOR_SILVER] = "silver.png";
_global.COLOR_IMAGE[_global.COLOR_SILVERG] = silverGreenBallImageMap;
_global.COLOR_IMAGE[_global.COLOR_BLUE1] = "blue1.png";
_global.COLOR_IMAGE[_global.COLOR_YELLOW1] = "yellow1.png";
_global.COLOR_IMAGE[_global.COLOR_GREEN1] = "green1.png";
_global.COLOR_IMAGE[_global.COLOR_PINK1] = "pink1.png";
_global.COLOR_IMAGE[_global.COLOR_BONUS_RED] = "BonusIcon_BallC.png";
_global.COLOR_IMAGE[_global.COLOR_BONUS_PURPLE] = "BonusIcon_BallB.png";
_global.COLOR_IMAGE[_global.COLOR_BONUS_BLUE] = "BonusIcon_BallT.png";
_global.ITEMS_MAX_ITEM_NUM = 50;
_global.ITEMS_ITEM_CHAIN_DELETE_TIME = 300;
_global.ITEMS_FLASH_INTERVAL_TIME = 15000;
_global.ITEMS_NEXT_FLASH_TIME = 100;
_global.ITEMS_SHAKING_SPEED = 200;
_global.ITEMS_SHAKING_AMPLITUDE = 3;
_global.ITEMS_SHAKING_PERIOD = 50;
_global.ITEMS_SHAKING_COUNT = 10;
_global.GUI_BONUS_ITEM_TXT_SIZE = new Array(12, 13);
_global.GUI_BONUS_ITEM_PRICE_SIZE = new Array(36, 18);
_global.GUI_BONUS_ITEM_PRICE_POS = new Array(0, 0.6);
_global.GUI_BONUS_ITEM_PRICE_IMAGE = "Ball_priceFree.png";
_global.DOLLARS_CASH;
_global.ITEMS_EFFECT[1] = "~/data/particles/Test_BallGlow2.eff";
_global.DOLLARS_CASH;
_global.ITEMS_EFFECT[2] = "~/data/particles/Test_BallGlow2.eff";
_global.DOLLARS_CASH;
_global.ITEMS_EFFECT[3] = "~/data/particles/Test_BallGlow4.eff";
_global.DOLLARS_CASH;
_global.ITEMS_EFFECT[4] = "~/data/particles/Test_BallGlow4.eff";
_global.DOLLARS_CASH;
_global.ITEMS_EFFECT[5] = "~/data/particles/Test_BallGlow4.eff";
_global.DOLLARS_CASH;
_global.ITEMS_EFFECT[6] = "~/data/particles/Test_BallGlow4.eff";
_global.DOLLARS_CASH;
_global.ITEMS_EFFECT[7] = "~/data/particles/Test_BallGlow4.eff";
_global.DOLLARS_CASH;
_global.ITEMS_EFFECT[8] = "~/data/particles/Test_BallGlow4.eff";
_global.DOLLARS_COUPON;
_global.ITEMS_EFFECT[1] = "~/data/particles/Test_BallGlow1.eff";
_global.DOLLARS_COUPON;
_global.ITEMS_EFFECT[2] = "~/data/particles/Test_BallGlow1.eff";
_global.DOLLARS_COUPON;
_global.ITEMS_EFFECT[3] = "~/data/particles/Test_BallGlow1.eff";
_global.DOLLARS_COUPON;
_global.ITEMS_EFFECT[4] = "~/data/particles/Test_BallGlow1.eff";
_global.DOLLARS_COUPON;
_global.ITEMS_EFFECT[5] = "~/data/particles/Test_BallGlow1.eff";
_global.DOLLARS_COUPON;
_global.ITEMS_EFFECT[6] = "~/data/particles/Test_BallGlow1.eff";
_global.DOLLARS_COUPON;
_global.ITEMS_EFFECT[7] = "~/data/particles/Test_BallGlow1.eff";
_global.DOLLARS_COUPON;
_global.ITEMS_EFFECT[8] = "~/data/particles/Test_BallGlow1.eff";
_global.DOLLARS_CREDIT_CARD;
_global.ITEMS_EFFECT[1] = "~/data/particles/Test_BallGlow3.eff";
_global.DOLLARS_CREDIT_CARD;
_global.ITEMS_EFFECT[2] = "~/data/particles/Test_BallGlow3.eff";
_global.DOLLARS_CREDIT_CARD;
_global.ITEMS_EFFECT[3] = "~/data/particles/Test_BallGlow3.eff";
_global.DOLLARS_CREDIT_CARD;
_global.ITEMS_EFFECT[4] = "~/data/particles/Test_BallGlow3.eff";
_global.DOLLARS_CREDIT_CARD;
_global.ITEMS_EFFECT[5] = "~/data/particles/Test_BallGlow3.eff";
_global.DOLLARS_CREDIT_CARD;
_global.ITEMS_EFFECT[6] = "~/data/particles/Test_BallGlow3.eff";
_global.DOLLARS_CREDIT_CARD;
_global.ITEMS_EFFECT[7] = "~/data/particles/Test_BallGlow3.eff";
_global.DOLLARS_CREDIT_CARD;
_global.ITEMS_EFFECT[8] = "~/data/particles/Test_BallGlow3.eff";
_global.ITEMS_BONUS_EFFECT = "~/data/particles/bonusEff_f.eff";
_global.ITEMS_BONUS_EFFECT_MONEY = "~/data/particles/add_coin.eff";
_global.ITEMS_BONUS_EFFECT_TIME = "~/data/particles/addtime.eff";
_global.ITEMS_BONUS_EFFECT_SCORE = "~/data/particles/add_exp.eff";
_global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_FLY = 8;
_global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_MINI = 2;
_global.ITEMS_TYPE_M_SPORTS = 1;
_global.ITEMS_TYPE_BANANA = 11;
_global.ITEMS_TYPE_STRAWBERRY = 12;
_global.ITEMS_TYPE_PINEAPPLE = 13;
_global.ITEMS_TYPE_WATERMELON = 14;
_global.ITEMS_TYPE_CHERRY = 15;
_global.ITEMS_TYPE_MELON = 16;
_global.ITEMS_TYPE_PAPAYA = 17;
_global.ITEMS_TYPE_LIME = 18;
_global.ITEMS_TYPE_LEMON = 19;
_global.ITEMS_TYPE_ToyHorse = 20;
_global.ITEMS_TYPE_ROBOT = 21;
_global.ITEMS_TYPE_FIGUREF = 22;
_global.ITEMS_TYPE_RABBIT = 23;
_global.ITEMS_TYPE_CAR = 24;
_global.ITEMS_TYPE_SALAD = 30;
_global.ITEMS_TYPE_ICECREAM = 31;
_global.ITEMS_TYPE_BURGER = 32;
_global.ITEMS_TYPE_PIZZA = 33;
_global.ITEMS_TYPE_POP = 34;
_global.ITEMS_TYPE_Ball = 40;
_global.ITEMS_TYPE_Swimsuit = 41;
_global.ITEMS_TYPE_TUBE = 42;
_global.ITEMS_TYPE_UMBRELLA = 43;
_global.ITEMS_TYPE_Swimsuit2 = 44;
_global.ITEMS_TYPE_SKIRT = 50;
_global.ITEMS_TYPE_SHOES = 51;
_global.ITEMS_TYPE_TOP = 52;
_global.ITEMS_TYPE_HAT = 53;
_global.ITEMS_TYPE_BAG = 54;
_global.ITEMS_TYPE_Tee1 = 60;
_global.ITEMS_TYPE_Tee2 = 61;
_global.ITEMS_TYPE_Sneaker1 = 62;
_global.ITEMS_TYPE_Sneaker4 = 63;
_global.ITEMS_TYPE_Sneaker6 = 64;
_global.ITEMS_TYPE_GemS7 = 70;
_global.ITEMS_TYPE_GemS2 = 71;
_global.ITEMS_TYPE_GemL1 = 72;
_global.ITEMS_TYPE_GemL6 = 73;
_global.ITEMS_TYPE_GemL8 = 74;
_global.ITEMS_TYPE_BONUS = 75;
_global.ITEMS_ICON[_global.ITEMS_TYPE_BANANA] = Bananas1AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_STRAWBERRY] = StrawberryAImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_APPLE] = RedAppleAImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_WATERMELON] = Watermelon1AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_CHERRY] = CherryAImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_MELON] = MelonAImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_PAPAYA] = papayaAImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_PINEAPPLE] = PineappleAImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_LIME] = LimeAImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_LEMON] = LemonAImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_ToyHorse] = Toy1AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_FIGUREF] = Toy3AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_RABBIT] = Toy4AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_ROBOT] = Toy6AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_CAR] = Toy9AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_SALAD] = FastFood9AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_ICECREAM] = FastFood4AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_BURGER] = FastFood1AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_PIZZA] = FastFood8AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_POP] = FastFood11AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_Ball] = Beach3AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_SWIMSUIT] = Beach6AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_TUBE] = Beach12AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_UMBRELLA] = Beach13AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_SWIMSUIT2] = Beach15AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_SKIRT] = ClothF1AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_SHOES] = ClothF4AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_TOP] = ClothF8AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_HAT] = ClothF9AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_BAG] = ClothF5AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_Tee1] = Cloth1AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_Tee2] = Cloth2AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_Sneaker1] = Sneaker1AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_Sneaker4] = Sneaker4AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_Sneaker6] = Sneaker6AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_GemS7] = GemS7AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_GemS2] = GemS2AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_GemL1] = GemL1AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_GemL6] = GemL6AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_GemL8] = GemL8AImagemap;
_global.ITEMS_ICON[_global.ITEMS_TYPE_BONUS] = bonusTORedImagemap;
_global.ITEMS_ITEM = new Array();
_global.ITEMS_ITEM[1] = new Object();
_global.ITEMS_ITEM[1].NAME = "Apple_Pear";
_global.ITEMS_ITEM[1].TYPE = "Apple";
_global.ITEMS_ITEM[1].AMOUNT = 1;
_global.ITEMS_ITEM[1].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[1].FREQUENCY = new Array();
_global.ITEMS_ITEM[1].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[1].VALUE = new Array();
_global.ITEMS_ITEM[1].VALUE[7] = new Array();
_global.ITEMS_ITEM[1].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[1].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[2] = new Object();
_global.ITEMS_ITEM[2].NAME = "Banana1";
_global.ITEMS_ITEM[2].TYPE = "BANANA";
_global.ITEMS_ITEM[2].AMOUNT = 1;
_global.ITEMS_ITEM[2].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[2].FREQUENCY = new Array();
_global.ITEMS_ITEM[2].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[2].VALUE = new Array();
_global.ITEMS_ITEM[2].VALUE[7] = new Array();
_global.ITEMS_ITEM[2].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[2].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[3] = new Object();
_global.ITEMS_ITEM[3].NAME = "Banana3";
_global.ITEMS_ITEM[3].TYPE = "BANANA";
_global.ITEMS_ITEM[3].AMOUNT = 3;
_global.ITEMS_ITEM[3].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[3].FREQUENCY = new Array();
_global.ITEMS_ITEM[3].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[3].VALUE = new Array();
_global.ITEMS_ITEM[3].VALUE[7] = new Array();
_global.ITEMS_ITEM[3].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[3].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[4] = new Object();
_global.ITEMS_ITEM[4].NAME = "cherry";
_global.ITEMS_ITEM[4].TYPE = "FRUIT";
_global.ITEMS_ITEM[4].AMOUNT = 1;
_global.ITEMS_ITEM[4].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[4].FREQUENCY = new Array();
_global.ITEMS_ITEM[4].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[4].VALUE = new Array();
_global.ITEMS_ITEM[4].VALUE[7] = new Array();
_global.ITEMS_ITEM[4].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[4].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[5] = new Object();
_global.ITEMS_ITEM[5].NAME = "Lemon_Lime";
_global.ITEMS_ITEM[5].TYPE = "LIME";
_global.ITEMS_ITEM[5].AMOUNT = 1;
_global.ITEMS_ITEM[5].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[5].FREQUENCY = new Array();
_global.ITEMS_ITEM[5].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[5].VALUE = new Array();
_global.ITEMS_ITEM[5].VALUE[7] = new Array();
_global.ITEMS_ITEM[5].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[5].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[6] = new Object();
_global.ITEMS_ITEM[6].NAME = "Lime";
_global.ITEMS_ITEM[6].TYPE = "LIME";
_global.ITEMS_ITEM[6].AMOUNT = 1;
_global.ITEMS_ITEM[6].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[6].FREQUENCY = new Array();
_global.ITEMS_ITEM[6].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[6].VALUE = new Array();
_global.ITEMS_ITEM[6].VALUE[7] = new Array();
_global.ITEMS_ITEM[6].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[6].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[7] = new Object();
_global.ITEMS_ITEM[7].NAME = "Mango2";
_global.ITEMS_ITEM[7].TYPE = "FRUIT";
_global.ITEMS_ITEM[7].AMOUNT = 1;
_global.ITEMS_ITEM[7].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[7].FREQUENCY = new Array();
_global.ITEMS_ITEM[7].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[7].VALUE = new Array();
_global.ITEMS_ITEM[7].VALUE[7] = new Array();
_global.ITEMS_ITEM[7].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[7].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[8] = new Object();
_global.ITEMS_ITEM[8].NAME = "Melon";
_global.ITEMS_ITEM[8].TYPE = "FRUIT";
_global.ITEMS_ITEM[8].AMOUNT = 1;
_global.ITEMS_ITEM[8].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[8].FREQUENCY = new Array();
_global.ITEMS_ITEM[8].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[8].VALUE = new Array();
_global.ITEMS_ITEM[8].VALUE[7] = new Array();
_global.ITEMS_ITEM[8].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[8].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[9] = new Object();
_global.ITEMS_ITEM[9].NAME = "Orange";
_global.ITEMS_ITEM[9].TYPE = "FRUIT";
_global.ITEMS_ITEM[9].AMOUNT = 1;
_global.ITEMS_ITEM[9].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[9].FREQUENCY = new Array();
_global.ITEMS_ITEM[9].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[9].VALUE = new Array();
_global.ITEMS_ITEM[9].VALUE[7] = new Array();
_global.ITEMS_ITEM[9].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[9].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[10] = new Object();
_global.ITEMS_ITEM[10].NAME = "Peach";
_global.ITEMS_ITEM[10].TYPE = "FRUIT";
_global.ITEMS_ITEM[10].AMOUNT = 1;
_global.ITEMS_ITEM[10].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[10].FREQUENCY = new Array();
_global.ITEMS_ITEM[10].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[10].VALUE = new Array();
_global.ITEMS_ITEM[10].VALUE[7] = new Array();
_global.ITEMS_ITEM[10].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[10].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[11] = new Object();
_global.ITEMS_ITEM[11].NAME = "Pear";
_global.ITEMS_ITEM[11].TYPE = "FRUIT";
_global.ITEMS_ITEM[11].AMOUNT = 1;
_global.ITEMS_ITEM[11].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[11].FREQUENCY = new Array();
_global.ITEMS_ITEM[11].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[11].VALUE = new Array();
_global.ITEMS_ITEM[11].VALUE[7] = new Array();
_global.ITEMS_ITEM[11].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[11].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[12] = new Object();
_global.ITEMS_ITEM[12].NAME = "RedApple";
_global.ITEMS_ITEM[12].TYPE = "APPLE";
_global.ITEMS_ITEM[12].AMOUNT = 1;
_global.ITEMS_ITEM[12].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[12].FREQUENCY = new Array();
_global.ITEMS_ITEM[12].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[12].VALUE = new Array();
_global.ITEMS_ITEM[12].VALUE[7] = new Array();
_global.ITEMS_ITEM[12].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[12].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[13] = new Object();
_global.ITEMS_ITEM[13].NAME = "Strawberry";
_global.ITEMS_ITEM[13].TYPE = "STRAWBERRY";
_global.ITEMS_ITEM[13].AMOUNT = 1;
_global.ITEMS_ITEM[13].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[13].FREQUENCY = new Array();
_global.ITEMS_ITEM[13].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[13].VALUE = new Array();
_global.ITEMS_ITEM[13].VALUE[7] = new Array();
_global.ITEMS_ITEM[13].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[13].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[14] = new Object();
_global.ITEMS_ITEM[14].NAME = "StrawberryKebab";
_global.ITEMS_ITEM[14].TYPE = "STRAWBERRY";
_global.ITEMS_ITEM[14].AMOUNT = 3;
_global.ITEMS_ITEM[14].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[14].FREQUENCY = new Array();
_global.ITEMS_ITEM[14].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[14].VALUE = new Array();
_global.ITEMS_ITEM[14].VALUE[7] = new Array();
_global.ITEMS_ITEM[14].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[14].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[15] = new Object();
_global.ITEMS_ITEM[15].NAME = "Watermelon1";
_global.ITEMS_ITEM[15].TYPE = "WATERMELON";
_global.ITEMS_ITEM[15].AMOUNT = 1;
_global.ITEMS_ITEM[15].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[15].FREQUENCY = new Array();
_global.ITEMS_ITEM[15].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[15].VALUE = new Array();
_global.ITEMS_ITEM[15].VALUE[7] = new Array();
_global.ITEMS_ITEM[15].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[15].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[16] = new Object();
_global.ITEMS_ITEM[16].NAME = "Watermelon2";
_global.ITEMS_ITEM[16].TYPE = "WATERMELON";
_global.ITEMS_ITEM[16].AMOUNT = 0.5;
_global.ITEMS_ITEM[16].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[16].FREQUENCY = new Array();
_global.ITEMS_ITEM[16].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[16].VALUE = new Array();
_global.ITEMS_ITEM[16].VALUE[7] = new Array();
_global.ITEMS_ITEM[16].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[16].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[20] = new Object();
_global.ITEMS_ITEM[20].NAME = "Cloth1";
_global.ITEMS_ITEM[20].TYPE = _global.ITEMS_TYPE_Tee1;
_global.ITEMS_ITEM[20].AMOUNT = 1;
_global.ITEMS_ITEM[20].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[20].FREQUENCY = new Array();
_global.ITEMS_ITEM[20].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[20].VALUE = new Array();
_global.ITEMS_ITEM[20].VALUE[7] = new Array();
_global.ITEMS_ITEM[20].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[20].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[21] = new Object();
_global.ITEMS_ITEM[21].NAME = "Cloth2";
_global.ITEMS_ITEM[21].TYPE = _global.ITEMS_TYPE_Tee2;
_global.ITEMS_ITEM[21].AMOUNT = 1;
_global.ITEMS_ITEM[21].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[21].FREQUENCY = new Array();
_global.ITEMS_ITEM[21].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[21].VALUE = new Array();
_global.ITEMS_ITEM[21].VALUE[7] = new Array();
_global.ITEMS_ITEM[21].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[21].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[22] = new Object();
_global.ITEMS_ITEM[22].NAME = "Cloth3";
_global.ITEMS_ITEM[22].TYPE = _global.ITEMS_TYPE_M_SPORTS;
_global.ITEMS_ITEM[22].AMOUNT = 1;
_global.ITEMS_ITEM[22].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[22].FREQUENCY = new Array();
_global.ITEMS_ITEM[22].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[22].VALUE = new Array();
_global.ITEMS_ITEM[22].VALUE[7] = new Array();
_global.ITEMS_ITEM[22].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[22].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[23] = new Object();
_global.ITEMS_ITEM[23].NAME = "Cloth4";
_global.ITEMS_ITEM[23].TYPE = _global.ITEMS_TYPE_M_SPORTS;
_global.ITEMS_ITEM[23].AMOUNT = 1;
_global.ITEMS_ITEM[23].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[23].FREQUENCY = new Array();
_global.ITEMS_ITEM[23].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[23].VALUE = new Array();
_global.ITEMS_ITEM[23].VALUE[7] = new Array();
_global.ITEMS_ITEM[23].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[23].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[24] = new Object();
_global.ITEMS_ITEM[24].NAME = "Cloth5";
_global.ITEMS_ITEM[24].TYPE = _global.ITEMS_TYPE_M_SPORTS;
_global.ITEMS_ITEM[24].AMOUNT = 1;
_global.ITEMS_ITEM[24].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[24].FREQUENCY = new Array();
_global.ITEMS_ITEM[24].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[24].VALUE = new Array();
_global.ITEMS_ITEM[24].VALUE[7] = new Array();
_global.ITEMS_ITEM[24].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[24].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[25] = new Object();
_global.ITEMS_ITEM[25].NAME = "Cloth6";
_global.ITEMS_ITEM[25].TYPE = _global.ITEMS_TYPE_M_SPORTS;
_global.ITEMS_ITEM[25].AMOUNT = 1;
_global.ITEMS_ITEM[25].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[25].FREQUENCY = new Array();
_global.ITEMS_ITEM[25].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[25].VALUE = new Array();
_global.ITEMS_ITEM[25].VALUE[7] = new Array();
_global.ITEMS_ITEM[25].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[25].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[26] = new Object();
_global.ITEMS_ITEM[26].NAME = "Cloth7";
_global.ITEMS_ITEM[26].TYPE = _global.ITEMS_TYPE_M_SPORTS;
_global.ITEMS_ITEM[26].AMOUNT = 1;
_global.ITEMS_ITEM[26].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[26].FREQUENCY = new Array();
_global.ITEMS_ITEM[26].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[26].VALUE = new Array();
_global.ITEMS_ITEM[26].VALUE[7] = new Array();
_global.ITEMS_ITEM[26].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[26].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[27] = new Object();
_global.ITEMS_ITEM[27].NAME = "Cloth8";
_global.ITEMS_ITEM[27].TYPE = _global.ITEMS_TYPE_M_SPORTS;
_global.ITEMS_ITEM[27].AMOUNT = 1;
_global.ITEMS_ITEM[27].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[27].FREQUENCY = new Array();
_global.ITEMS_ITEM[27].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[27].VALUE = new Array();
_global.ITEMS_ITEM[27].VALUE[7] = new Array();
_global.ITEMS_ITEM[27].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[27].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[28] = new Object();
_global.ITEMS_ITEM[28].NAME = "Sneaker1";
_global.ITEMS_ITEM[28].TYPE = _global.ITEMS_TYPE_Sneaker1;
_global.ITEMS_ITEM[28].AMOUNT = 1;
_global.ITEMS_ITEM[28].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[28].FREQUENCY = new Array();
_global.ITEMS_ITEM[28].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[28].VALUE = new Array();
_global.ITEMS_ITEM[28].VALUE[7] = new Array();
_global.ITEMS_ITEM[28].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[28].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[29] = new Object();
_global.ITEMS_ITEM[29].NAME = "Sneaker2";
_global.ITEMS_ITEM[29].TYPE = _global.ITEMS_TYPE_M_SPORTS;
_global.ITEMS_ITEM[29].AMOUNT = 1;
_global.ITEMS_ITEM[29].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[29].FREQUENCY = new Array();
_global.ITEMS_ITEM[29].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[29].VALUE = new Array();
_global.ITEMS_ITEM[29].VALUE[7] = new Array();
_global.ITEMS_ITEM[29].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[29].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[30] = new Object();
_global.ITEMS_ITEM[30].NAME = "Sneaker3";
_global.ITEMS_ITEM[30].TYPE = _global.ITEMS_TYPE_M_SPORTS;
_global.ITEMS_ITEM[30].AMOUNT = 1;
_global.ITEMS_ITEM[30].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[30].FREQUENCY = new Array();
_global.ITEMS_ITEM[30].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[30].VALUE = new Array();
_global.ITEMS_ITEM[30].VALUE[7] = new Array();
_global.ITEMS_ITEM[30].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[30].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[31] = new Object();
_global.ITEMS_ITEM[31].NAME = "Sneaker4";
_global.ITEMS_ITEM[31].TYPE = _global.ITEMS_TYPE_Sneaker4;
_global.ITEMS_ITEM[31].AMOUNT = 1;
_global.ITEMS_ITEM[31].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[31].FREQUENCY = new Array();
_global.ITEMS_ITEM[31].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[31].VALUE = new Array();
_global.ITEMS_ITEM[31].VALUE[7] = new Array();
_global.ITEMS_ITEM[31].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[31].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[32] = new Object();
_global.ITEMS_ITEM[32].NAME = "Sneaker5";
_global.ITEMS_ITEM[32].TYPE = _global.ITEMS_TYPE_M_SPORTS;
_global.ITEMS_ITEM[32].AMOUNT = 1;
_global.ITEMS_ITEM[32].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[32].FREQUENCY = new Array();
_global.ITEMS_ITEM[32].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[32].VALUE = new Array();
_global.ITEMS_ITEM[32].VALUE[7] = new Array();
_global.ITEMS_ITEM[32].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[32].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[33] = new Object();
_global.ITEMS_ITEM[33].NAME = "Sneaker6";
_global.ITEMS_ITEM[33].TYPE = _global.ITEMS_TYPE_Sneaker6;
_global.ITEMS_ITEM[33].AMOUNT = 1;
_global.ITEMS_ITEM[33].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[33].FREQUENCY = new Array();
_global.ITEMS_ITEM[33].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[33].VALUE = new Array();
_global.ITEMS_ITEM[33].VALUE[7] = new Array();
_global.ITEMS_ITEM[33].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[33].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[60] = new Object();
_global.ITEMS_ITEM[60].NAME = "Beach1";
_global.ITEMS_ITEM[60].TYPE = _global.ITEMS_TYPE_BEACH;
_global.ITEMS_ITEM[60].AMOUNT = 1;
_global.ITEMS_ITEM[60].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[60].FREQUENCY = new Array();
_global.ITEMS_ITEM[60].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[60].VALUE = new Array();
_global.ITEMS_ITEM[60].VALUE[7] = new Array();
_global.ITEMS_ITEM[60].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[60].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[61] = new Object();
_global.ITEMS_ITEM[61].NAME = "Beach2";
_global.ITEMS_ITEM[61].TYPE = _global.ITEMS_TYPE_BEACH;
_global.ITEMS_ITEM[61].AMOUNT = 1;
_global.ITEMS_ITEM[61].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[61].FREQUENCY = new Array();
_global.ITEMS_ITEM[61].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[61].VALUE = new Array();
_global.ITEMS_ITEM[61].VALUE[7] = new Array();
_global.ITEMS_ITEM[61].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[61].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[62] = new Object();
_global.ITEMS_ITEM[62].NAME = "Beach3";
_global.ITEMS_ITEM[62].TYPE = _global.ITEMS_TYPE_Ball;
_global.ITEMS_ITEM[62].AMOUNT = 1;
_global.ITEMS_ITEM[62].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[62].FREQUENCY = new Array();
_global.ITEMS_ITEM[62].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[62].VALUE = new Array();
_global.ITEMS_ITEM[62].VALUE[7] = new Array();
_global.ITEMS_ITEM[62].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[62].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[63] = new Object();
_global.ITEMS_ITEM[63].NAME = "Beach4";
_global.ITEMS_ITEM[63].TYPE = _global.ITEMS_TYPE_BEACH;
_global.ITEMS_ITEM[63].AMOUNT = 1;
_global.ITEMS_ITEM[63].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[63].FREQUENCY = new Array();
_global.ITEMS_ITEM[63].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[63].VALUE = new Array();
_global.ITEMS_ITEM[63].VALUE[7] = new Array();
_global.ITEMS_ITEM[63].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[63].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[64] = new Object();
_global.ITEMS_ITEM[64].NAME = "Beach5";
_global.ITEMS_ITEM[64].TYPE = _global.ITEMS_TYPE_BEACH;
_global.ITEMS_ITEM[64].AMOUNT = 1;
_global.ITEMS_ITEM[64].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[64].FREQUENCY = new Array();
_global.ITEMS_ITEM[64].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[64].VALUE = new Array();
_global.ITEMS_ITEM[64].VALUE[7] = new Array();
_global.ITEMS_ITEM[64].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[64].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[65] = new Object();
_global.ITEMS_ITEM[65].NAME = "Beach6";
_global.ITEMS_ITEM[65].TYPE = _global.ITEMS_TYPE_SWIMSUIT;
_global.ITEMS_ITEM[65].AMOUNT = 1;
_global.ITEMS_ITEM[65].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[65].FREQUENCY = new Array();
_global.ITEMS_ITEM[65].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[65].VALUE = new Array();
_global.ITEMS_ITEM[65].VALUE[7] = new Array();
_global.ITEMS_ITEM[65].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[65].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[66] = new Object();
_global.ITEMS_ITEM[66].NAME = "Beach7";
_global.ITEMS_ITEM[66].TYPE = _global.ITEMS_TYPE_BEACH;
_global.ITEMS_ITEM[66].AMOUNT = 1;
_global.ITEMS_ITEM[66].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[66].FREQUENCY = new Array();
_global.ITEMS_ITEM[66].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[66].VALUE = new Array();
_global.ITEMS_ITEM[66].VALUE[7] = new Array();
_global.ITEMS_ITEM[66].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[66].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[67] = new Object();
_global.ITEMS_ITEM[67].NAME = "Beach8";
_global.ITEMS_ITEM[67].TYPE = _global.ITEMS_TYPE_BEACH;
_global.ITEMS_ITEM[67].AMOUNT = 1;
_global.ITEMS_ITEM[67].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[67].FREQUENCY = new Array();
_global.ITEMS_ITEM[67].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[67].VALUE = new Array();
_global.ITEMS_ITEM[67].VALUE[7] = new Array();
_global.ITEMS_ITEM[67].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[67].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[68] = new Object();
_global.ITEMS_ITEM[68].NAME = "Beach9";
_global.ITEMS_ITEM[68].TYPE = _global.ITEMS_TYPE_BEACH;
_global.ITEMS_ITEM[68].AMOUNT = 1;
_global.ITEMS_ITEM[68].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[68].FREQUENCY = new Array();
_global.ITEMS_ITEM[68].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[68].VALUE = new Array();
_global.ITEMS_ITEM[68].VALUE[7] = new Array();
_global.ITEMS_ITEM[68].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[68].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[69] = new Object();
_global.ITEMS_ITEM[69].NAME = "Beach10";
_global.ITEMS_ITEM[69].TYPE = _global.ITEMS_TYPE_BEACH;
_global.ITEMS_ITEM[69].AMOUNT = 1;
_global.ITEMS_ITEM[69].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[69].FREQUENCY = new Array();
_global.ITEMS_ITEM[69].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[69].VALUE = new Array();
_global.ITEMS_ITEM[69].VALUE[7] = new Array();
_global.ITEMS_ITEM[69].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[69].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[70] = new Object();
_global.ITEMS_ITEM[70].NAME = "Beach11";
_global.ITEMS_ITEM[70].TYPE = _global.ITEMS_TYPE_BEACH;
_global.ITEMS_ITEM[70].AMOUNT = 1;
_global.ITEMS_ITEM[70].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[70].FREQUENCY = new Array();
_global.ITEMS_ITEM[70].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[70].VALUE = new Array();
_global.ITEMS_ITEM[70].VALUE[7] = new Array();
_global.ITEMS_ITEM[70].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[70].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[71] = new Object();
_global.ITEMS_ITEM[71].NAME = "Beach12";
_global.ITEMS_ITEM[71].TYPE = _global.ITEMS_TYPE_TUBE;
_global.ITEMS_ITEM[71].AMOUNT = 1;
_global.ITEMS_ITEM[71].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[71].FREQUENCY = new Array();
_global.ITEMS_ITEM[71].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[71].VALUE = new Array();
_global.ITEMS_ITEM[71].VALUE[7] = new Array();
_global.ITEMS_ITEM[71].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[71].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[72] = new Object();
_global.ITEMS_ITEM[72].NAME = "Beach13";
_global.ITEMS_ITEM[72].TYPE = _global.ITEMS_TYPE_UMBRELLA;
_global.ITEMS_ITEM[72].AMOUNT = 1;
_global.ITEMS_ITEM[72].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[72].FREQUENCY = new Array();
_global.ITEMS_ITEM[72].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[72].VALUE = new Array();
_global.ITEMS_ITEM[72].VALUE[7] = new Array();
_global.ITEMS_ITEM[72].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[72].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[73] = new Object();
_global.ITEMS_ITEM[73].NAME = "Beach14";
_global.ITEMS_ITEM[73].TYPE = _global.ITEMS_TYPE_BEACH;
_global.ITEMS_ITEM[73].AMOUNT = 1;
_global.ITEMS_ITEM[73].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[73].FREQUENCY = new Array();
_global.ITEMS_ITEM[73].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[73].VALUE = new Array();
_global.ITEMS_ITEM[73].VALUE[7] = new Array();
_global.ITEMS_ITEM[73].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[73].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[74] = new Object();
_global.ITEMS_ITEM[74].NAME = "Beach15";
_global.ITEMS_ITEM[74].TYPE = _global.ITEMS_TYPE_SWIMSUIT2;
_global.ITEMS_ITEM[74].AMOUNT = 1;
_global.ITEMS_ITEM[74].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[74].FREQUENCY = new Array();
_global.ITEMS_ITEM[74].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[74].VALUE = new Array();
_global.ITEMS_ITEM[74].VALUE[7] = new Array();
_global.ITEMS_ITEM[74].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[74].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[80] = new Object();
_global.ITEMS_ITEM[80].NAME = "FastFood1";
_global.ITEMS_ITEM[80].TYPE = _global.ITEMS_TYPE_BURGER;
_global.ITEMS_ITEM[80].AMOUNT = 1;
_global.ITEMS_ITEM[80].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[80].FREQUENCY = new Array();
_global.ITEMS_ITEM[80].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[80].VALUE = new Array();
_global.ITEMS_ITEM[80].VALUE[7] = new Array();
_global.ITEMS_ITEM[80].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[80].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[81] = new Object();
_global.ITEMS_ITEM[81].NAME = "FastFood2";
_global.ITEMS_ITEM[81].TYPE = _global.ITEMS_TYPE_FOOD;
_global.ITEMS_ITEM[81].AMOUNT = 1;
_global.ITEMS_ITEM[81].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[81].FREQUENCY = new Array();
_global.ITEMS_ITEM[81].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[81].VALUE = new Array();
_global.ITEMS_ITEM[81].VALUE[7] = new Array();
_global.ITEMS_ITEM[81].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[81].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[82] = new Object();
_global.ITEMS_ITEM[82].NAME = "FastFood3";
_global.ITEMS_ITEM[82].TYPE = _global.ITEMS_TYPE_FOOD;
_global.ITEMS_ITEM[82].AMOUNT = 1;
_global.ITEMS_ITEM[82].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[82].FREQUENCY = new Array();
_global.ITEMS_ITEM[82].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[82].VALUE = new Array();
_global.ITEMS_ITEM[82].VALUE[7] = new Array();
_global.ITEMS_ITEM[82].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[82].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[83] = new Object();
_global.ITEMS_ITEM[83].NAME = "FastFood4";
_global.ITEMS_ITEM[83].TYPE = _global.ITEMS_TYPE_ICECREAM;
_global.ITEMS_ITEM[83].AMOUNT = 1;
_global.ITEMS_ITEM[83].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[83].FREQUENCY = new Array();
_global.ITEMS_ITEM[83].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[83].VALUE = new Array();
_global.ITEMS_ITEM[83].VALUE[7] = new Array();
_global.ITEMS_ITEM[83].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[83].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[84] = new Object();
_global.ITEMS_ITEM[84].NAME = "FastFood5";
_global.ITEMS_ITEM[84].TYPE = _global.ITEMS_TYPE_FOOD;
_global.ITEMS_ITEM[84].AMOUNT = 1;
_global.ITEMS_ITEM[84].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[84].FREQUENCY = new Array();
_global.ITEMS_ITEM[84].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[84].VALUE = new Array();
_global.ITEMS_ITEM[84].VALUE[7] = new Array();
_global.ITEMS_ITEM[84].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[84].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[85] = new Object();
_global.ITEMS_ITEM[85].NAME = "FastFood6";
_global.ITEMS_ITEM[85].TYPE = _global.ITEMS_TYPE_FOOD;
_global.ITEMS_ITEM[85].AMOUNT = 1;
_global.ITEMS_ITEM[85].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[85].FREQUENCY = new Array();
_global.ITEMS_ITEM[85].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[85].VALUE = new Array();
_global.ITEMS_ITEM[85].VALUE[7] = new Array();
_global.ITEMS_ITEM[85].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[85].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[86] = new Object();
_global.ITEMS_ITEM[86].NAME = "FastFood11";
_global.ITEMS_ITEM[86].TYPE = _global.ITEMS_TYPE_POP;
_global.ITEMS_ITEM[86].AMOUNT = 1;
_global.ITEMS_ITEM[86].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[86].FREQUENCY = new Array();
_global.ITEMS_ITEM[86].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[86].VALUE = new Array();
_global.ITEMS_ITEM[86].VALUE[7] = new Array();
_global.ITEMS_ITEM[86].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[86].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[87] = new Object();
_global.ITEMS_ITEM[87].NAME = "FastFood8";
_global.ITEMS_ITEM[87].TYPE = _global.ITEMS_TYPE_PIZZA;
_global.ITEMS_ITEM[87].AMOUNT = 1;
_global.ITEMS_ITEM[87].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[87].FREQUENCY = new Array();
_global.ITEMS_ITEM[87].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[87].VALUE = new Array();
_global.ITEMS_ITEM[87].VALUE[7] = new Array();
_global.ITEMS_ITEM[87].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[87].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[88] = new Object();
_global.ITEMS_ITEM[88].NAME = "FastFood9";
_global.ITEMS_ITEM[88].TYPE = _global.ITEMS_TYPE_SALAD;
_global.ITEMS_ITEM[88].AMOUNT = 1;
_global.ITEMS_ITEM[88].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[88].FREQUENCY = new Array();
_global.ITEMS_ITEM[88].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[88].VALUE = new Array();
_global.ITEMS_ITEM[88].VALUE[7] = new Array();
_global.ITEMS_ITEM[88].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[88].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[89] = new Object();
_global.ITEMS_ITEM[89].NAME = "FastFood10";
_global.ITEMS_ITEM[89].TYPE = _global.ITEMS_TYPE_FOOD;
_global.ITEMS_ITEM[89].AMOUNT = 1;
_global.ITEMS_ITEM[89].BALL_COLOR = _global.COLOR_BLUE1;
_global.ITEMS_ITEM[89].FREQUENCY = new Array();
_global.ITEMS_ITEM[89].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[89].VALUE = new Array();
_global.ITEMS_ITEM[89].VALUE[7] = new Array();
_global.ITEMS_ITEM[89].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[89].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[100] = new Object();
_global.ITEMS_ITEM[100].NAME = "GemL1";
_global.ITEMS_ITEM[100].TYPE = _global.ITEMS_TYPE_GemL1;
_global.ITEMS_ITEM[100].AMOUNT = 1;
_global.ITEMS_ITEM[100].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[100].FREQUENCY = new Array();
_global.ITEMS_ITEM[100].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[100].VALUE = new Array();
_global.ITEMS_ITEM[100].VALUE[7] = new Array();
_global.ITEMS_ITEM[100].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[100].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[101] = new Object();
_global.ITEMS_ITEM[101].NAME = "GemS1";
_global.ITEMS_ITEM[101].TYPE = _global.ITEMS_TYPE_Gem;
_global.ITEMS_ITEM[101].AMOUNT = 1;
_global.ITEMS_ITEM[101].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[101].FREQUENCY = new Array();
_global.ITEMS_ITEM[101].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[101].VALUE = new Array();
_global.ITEMS_ITEM[101].VALUE[7] = new Array();
_global.ITEMS_ITEM[101].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[101].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[102] = new Object();
_global.ITEMS_ITEM[102].NAME = "GemL2";
_global.ITEMS_ITEM[102].TYPE = _global.ITEMS_TYPE_Gem;
_global.ITEMS_ITEM[102].AMOUNT = 1;
_global.ITEMS_ITEM[102].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[102].FREQUENCY = new Array();
_global.ITEMS_ITEM[102].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[102].VALUE = new Array();
_global.ITEMS_ITEM[102].VALUE[7] = new Array();
_global.ITEMS_ITEM[102].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[102].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[103] = new Object();
_global.ITEMS_ITEM[103].NAME = "GemS2";
_global.ITEMS_ITEM[103].TYPE = _global.ITEMS_TYPE_GemS2;
_global.ITEMS_ITEM[103].AMOUNT = 1;
_global.ITEMS_ITEM[103].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[103].FREQUENCY = new Array();
_global.ITEMS_ITEM[103].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[103].VALUE = new Array();
_global.ITEMS_ITEM[103].VALUE[7] = new Array();
_global.ITEMS_ITEM[103].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[103].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[104] = new Object();
_global.ITEMS_ITEM[104].NAME = "GemL3";
_global.ITEMS_ITEM[104].TYPE = _global.ITEMS_TYPE_Gem;
_global.ITEMS_ITEM[104].AMOUNT = 1;
_global.ITEMS_ITEM[104].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[104].FREQUENCY = new Array();
_global.ITEMS_ITEM[104].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[104].VALUE = new Array();
_global.ITEMS_ITEM[104].VALUE[7] = new Array();
_global.ITEMS_ITEM[104].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[104].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[105] = new Object();
_global.ITEMS_ITEM[105].NAME = "GemS3";
_global.ITEMS_ITEM[105].TYPE = _global.ITEMS_TYPE_Gem;
_global.ITEMS_ITEM[105].AMOUNT = 1;
_global.ITEMS_ITEM[105].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[105].FREQUENCY = new Array();
_global.ITEMS_ITEM[105].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[105].VALUE = new Array();
_global.ITEMS_ITEM[105].VALUE[7] = new Array();
_global.ITEMS_ITEM[105].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[105].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[106] = new Object();
_global.ITEMS_ITEM[106].NAME = "GemL4";
_global.ITEMS_ITEM[106].TYPE = _global.ITEMS_TYPE_Gem;
_global.ITEMS_ITEM[106].AMOUNT = 1;
_global.ITEMS_ITEM[106].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[106].FREQUENCY = new Array();
_global.ITEMS_ITEM[106].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[106].VALUE = new Array();
_global.ITEMS_ITEM[106].VALUE[7] = new Array();
_global.ITEMS_ITEM[106].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[106].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[107] = new Object();
_global.ITEMS_ITEM[107].NAME = "GemS4";
_global.ITEMS_ITEM[107].TYPE = _global.ITEMS_TYPE_Gem;
_global.ITEMS_ITEM[107].AMOUNT = 1;
_global.ITEMS_ITEM[107].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[107].FREQUENCY = new Array();
_global.ITEMS_ITEM[107].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[107].VALUE = new Array();
_global.ITEMS_ITEM[107].VALUE[7] = new Array();
_global.ITEMS_ITEM[107].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[107].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[108] = new Object();
_global.ITEMS_ITEM[108].NAME = "GemL5";
_global.ITEMS_ITEM[108].TYPE = _global.ITEMS_TYPE_Gem;
_global.ITEMS_ITEM[108].AMOUNT = 1;
_global.ITEMS_ITEM[108].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[108].FREQUENCY = new Array();
_global.ITEMS_ITEM[108].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[108].VALUE = new Array();
_global.ITEMS_ITEM[108].VALUE[7] = new Array();
_global.ITEMS_ITEM[108].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[108].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[109] = new Object();
_global.ITEMS_ITEM[109].NAME = "GemS5";
_global.ITEMS_ITEM[109].TYPE = _global.ITEMS_TYPE_Gem;
_global.ITEMS_ITEM[109].AMOUNT = 1;
_global.ITEMS_ITEM[109].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[109].FREQUENCY = new Array();
_global.ITEMS_ITEM[109].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[109].VALUE = new Array();
_global.ITEMS_ITEM[109].VALUE[7] = new Array();
_global.ITEMS_ITEM[109].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[109].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[110] = new Object();
_global.ITEMS_ITEM[110].NAME = "GemL6";
_global.ITEMS_ITEM[110].TYPE = _global.ITEMS_TYPE_GemL6;
_global.ITEMS_ITEM[110].AMOUNT = 1;
_global.ITEMS_ITEM[110].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[110].FREQUENCY = new Array();
_global.ITEMS_ITEM[110].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[110].VALUE = new Array();
_global.ITEMS_ITEM[110].VALUE[7] = new Array();
_global.ITEMS_ITEM[110].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[110].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[111] = new Object();
_global.ITEMS_ITEM[111].NAME = "GemS6";
_global.ITEMS_ITEM[111].TYPE = _global.ITEMS_TYPE_Gem;
_global.ITEMS_ITEM[111].AMOUNT = 1;
_global.ITEMS_ITEM[111].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[111].FREQUENCY = new Array();
_global.ITEMS_ITEM[111].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[111].VALUE = new Array();
_global.ITEMS_ITEM[111].VALUE[7] = new Array();
_global.ITEMS_ITEM[111].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[111].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[112] = new Object();
_global.ITEMS_ITEM[112].NAME = "GemL7";
_global.ITEMS_ITEM[112].TYPE = _global.ITEMS_TYPE_Gem;
_global.ITEMS_ITEM[112].AMOUNT = 1;
_global.ITEMS_ITEM[112].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[112].FREQUENCY = new Array();
_global.ITEMS_ITEM[112].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[112].VALUE = new Array();
_global.ITEMS_ITEM[112].VALUE[7] = new Array();
_global.ITEMS_ITEM[112].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[112].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[113] = new Object();
_global.ITEMS_ITEM[113].NAME = "GemS7";
_global.ITEMS_ITEM[113].TYPE = _global.ITEMS_TYPE_GemS7;
_global.ITEMS_ITEM[113].AMOUNT = 1;
_global.ITEMS_ITEM[113].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[113].FREQUENCY = new Array();
_global.ITEMS_ITEM[113].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[113].VALUE = new Array();
_global.ITEMS_ITEM[113].VALUE[7] = new Array();
_global.ITEMS_ITEM[113].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[113].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[114] = new Object();
_global.ITEMS_ITEM[114].NAME = "GemL8";
_global.ITEMS_ITEM[114].TYPE = _global.ITEMS_TYPE_GemL8;
_global.ITEMS_ITEM[114].AMOUNT = 1;
_global.ITEMS_ITEM[114].BALL_COLOR = _global.COLOR_YELLOW1;
_global.ITEMS_ITEM[114].FREQUENCY = new Array();
_global.ITEMS_ITEM[114].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[114].VALUE = new Array();
_global.ITEMS_ITEM[114].VALUE[7] = new Array();
_global.ITEMS_ITEM[114].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[114].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[115] = new Object();
_global.ITEMS_ITEM[115].NAME = "GemS8";
_global.ITEMS_ITEM[115].TYPE = _global.ITEMS_TYPE_Gem;
_global.ITEMS_ITEM[115].AMOUNT = 1;
_global.ITEMS_ITEM[115].BALL_COLOR = _global.COLOR_SILVER;
_global.ITEMS_ITEM[115].FREQUENCY = new Array();
_global.ITEMS_ITEM[115].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[115].VALUE = new Array();
_global.ITEMS_ITEM[115].VALUE[7] = new Array();
_global.ITEMS_ITEM[115].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[115].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[120] = new Object();
_global.ITEMS_ITEM[120].NAME = "ClothF1";
_global.ITEMS_ITEM[120].TYPE = _global.ITEMS_TYPE_SKIRT;
_global.ITEMS_ITEM[120].AMOUNT = 1;
_global.ITEMS_ITEM[120].BALL_COLOR = _global.COLOR_PINK1;
_global.ITEMS_ITEM[120].FREQUENCY = new Array();
_global.ITEMS_ITEM[120].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[120].VALUE = new Array();
_global.ITEMS_ITEM[120].VALUE[7] = new Array();
_global.ITEMS_ITEM[120].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[120].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[121] = new Object();
_global.ITEMS_ITEM[121].NAME = "ClothF2";
_global.ITEMS_ITEM[121].TYPE = _global.ITEMS_TYPE_CLOTHF;
_global.ITEMS_ITEM[121].AMOUNT = 1;
_global.ITEMS_ITEM[121].BALL_COLOR = _global.COLOR_PINK1;
_global.ITEMS_ITEM[121].FREQUENCY = new Array();
_global.ITEMS_ITEM[121].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[121].VALUE = new Array();
_global.ITEMS_ITEM[121].VALUE[7] = new Array();
_global.ITEMS_ITEM[121].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[121].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[122] = new Object();
_global.ITEMS_ITEM[122].NAME = "ClothF3";
_global.ITEMS_ITEM[122].TYPE = _global.ITEMS_TYPE_CLOTHF;
_global.ITEMS_ITEM[122].AMOUNT = 1;
_global.ITEMS_ITEM[122].BALL_COLOR = _global.COLOR_GREEN1;
_global.ITEMS_ITEM[122].FREQUENCY = new Array();
_global.ITEMS_ITEM[122].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[122].VALUE = new Array();
_global.ITEMS_ITEM[122].VALUE[7] = new Array();
_global.ITEMS_ITEM[122].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[122].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[123] = new Object();
_global.ITEMS_ITEM[123].NAME = "ClothF4";
_global.ITEMS_ITEM[123].TYPE = _global.ITEMS_TYPE_SHOES;
_global.ITEMS_ITEM[123].AMOUNT = 1;
_global.ITEMS_ITEM[123].BALL_COLOR = _global.COLOR_PINK1;
_global.ITEMS_ITEM[123].FREQUENCY = new Array();
_global.ITEMS_ITEM[123].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[123].VALUE = new Array();
_global.ITEMS_ITEM[123].VALUE[7] = new Array();
_global.ITEMS_ITEM[123].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[123].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[124] = new Object();
_global.ITEMS_ITEM[124].NAME = "ClothF5";
_global.ITEMS_ITEM[124].TYPE = _global.ITEMS_TYPE_BAG;
_global.ITEMS_ITEM[124].AMOUNT = 1;
_global.ITEMS_ITEM[124].BALL_COLOR = _global.COLOR_PINK1;
_global.ITEMS_ITEM[124].FREQUENCY = new Array();
_global.ITEMS_ITEM[124].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[124].VALUE = new Array();
_global.ITEMS_ITEM[124].VALUE[7] = new Array();
_global.ITEMS_ITEM[124].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[124].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[125] = new Object();
_global.ITEMS_ITEM[125].NAME = "ClothF6";
_global.ITEMS_ITEM[125].TYPE = _global.ITEMS_TYPE_CLOTHF;
_global.ITEMS_ITEM[125].AMOUNT = 1;
_global.ITEMS_ITEM[125].BALL_COLOR = _global.COLOR_PINK1;
_global.ITEMS_ITEM[125].FREQUENCY = new Array();
_global.ITEMS_ITEM[125].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[125].VALUE = new Array();
_global.ITEMS_ITEM[125].VALUE[7] = new Array();
_global.ITEMS_ITEM[125].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[125].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[126] = new Object();
_global.ITEMS_ITEM[126].NAME = "ClothF7";
_global.ITEMS_ITEM[126].TYPE = _global.ITEMS_TYPE_CLOTHF;
_global.ITEMS_ITEM[126].AMOUNT = 1;
_global.ITEMS_ITEM[126].BALL_COLOR = _global.COLOR_PINK1;
_global.ITEMS_ITEM[126].FREQUENCY = new Array();
_global.ITEMS_ITEM[126].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[126].VALUE = new Array();
_global.ITEMS_ITEM[126].VALUE[7] = new Array();
_global.ITEMS_ITEM[126].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[126].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[127] = new Object();
_global.ITEMS_ITEM[127].NAME = "ClothF8";
_global.ITEMS_ITEM[127].TYPE = _global.ITEMS_TYPE_TOP;
_global.ITEMS_ITEM[127].AMOUNT = 1;
_global.ITEMS_ITEM[127].BALL_COLOR = _global.COLOR_PINK1;
_global.ITEMS_ITEM[127].FREQUENCY = new Array();
_global.ITEMS_ITEM[127].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[127].VALUE = new Array();
_global.ITEMS_ITEM[127].VALUE[7] = new Array();
_global.ITEMS_ITEM[127].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[127].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[128] = new Object();
_global.ITEMS_ITEM[128].NAME = "ClothF9";
_global.ITEMS_ITEM[128].TYPE = _global.ITEMS_TYPE_HAT;
_global.ITEMS_ITEM[128].AMOUNT = 1;
_global.ITEMS_ITEM[128].BALL_COLOR = _global.COLOR_PINK1;
_global.ITEMS_ITEM[128].FREQUENCY = new Array();
_global.ITEMS_ITEM[128].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[128].VALUE = new Array();
_global.ITEMS_ITEM[128].VALUE[7] = new Array();
_global.ITEMS_ITEM[128].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[128].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[129] = new Object();
_global.ITEMS_ITEM[129].NAME = "ClothF10";
_global.ITEMS_ITEM[129].TYPE = _global.ITEMS_TYPE_HAT;
_global.ITEMS_ITEM[129].AMOUNT = 1;
_global.ITEMS_ITEM[129].BALL_COLOR = _global.COLOR_PINK1;
_global.ITEMS_ITEM[129].FREQUENCY = new Array();
_global.ITEMS_ITEM[129].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[129].VALUE = new Array();
_global.ITEMS_ITEM[129].VALUE[7] = new Array();
_global.ITEMS_ITEM[129].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[129].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[130] = new Object();
_global.ITEMS_ITEM[130].NAME = "ClothF11";
_global.ITEMS_ITEM[130].TYPE = _global.ITEMS_TYPE_SHOES;
_global.ITEMS_ITEM[130].AMOUNT = 1;
_global.ITEMS_ITEM[130].BALL_COLOR = _global.COLOR_PINK1;
_global.ITEMS_ITEM[130].FREQUENCY = new Array();
_global.ITEMS_ITEM[130].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[130].VALUE = new Array();
_global.ITEMS_ITEM[130].VALUE[7] = new Array();
_global.ITEMS_ITEM[130].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[130].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[140] = new Object();
_global.ITEMS_ITEM[140].NAME = "Toy1";
_global.ITEMS_ITEM[140].TYPE = _global.ITEMS_TYPE_ToyHorse;
_global.ITEMS_ITEM[140].AMOUNT = 1;
_global.ITEMS_ITEM[140].BALL_COLOR = _global.COLOR_GREEN1;
_global.ITEMS_ITEM[140].FREQUENCY = new Array();
_global.ITEMS_ITEM[140].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[140].VALUE = new Array();
_global.ITEMS_ITEM[140].VALUE[7] = new Array();
_global.ITEMS_ITEM[140].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[140].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[141] = new Object();
_global.ITEMS_ITEM[141].NAME = "Toy2";
_global.ITEMS_ITEM[141].TYPE = _global.ITEMS_TYPE_FIGUREM;
_global.ITEMS_ITEM[141].AMOUNT = 1;
_global.ITEMS_ITEM[141].BALL_COLOR = _global.COLOR_GREEN1;
_global.ITEMS_ITEM[141].FREQUENCY = new Array();
_global.ITEMS_ITEM[141].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[141].VALUE = new Array();
_global.ITEMS_ITEM[141].VALUE[7] = new Array();
_global.ITEMS_ITEM[141].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[141].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[142] = new Object();
_global.ITEMS_ITEM[142].NAME = "Toy3";
_global.ITEMS_ITEM[142].TYPE = _global.ITEMS_TYPE_FIGUREF;
_global.ITEMS_ITEM[142].AMOUNT = 1;
_global.ITEMS_ITEM[142].BALL_COLOR = _global.COLOR_GREEN1;
_global.ITEMS_ITEM[142].FREQUENCY = new Array();
_global.ITEMS_ITEM[142].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[142].VALUE = new Array();
_global.ITEMS_ITEM[142].VALUE[7] = new Array();
_global.ITEMS_ITEM[142].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[142].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[143] = new Object();
_global.ITEMS_ITEM[143].NAME = "Toy4";
_global.ITEMS_ITEM[143].TYPE = _global.ITEMS_TYPE_RABBIT;
_global.ITEMS_ITEM[143].AMOUNT = 1;
_global.ITEMS_ITEM[143].BALL_COLOR = _global.COLOR_GREEN1;
_global.ITEMS_ITEM[143].FREQUENCY = new Array();
_global.ITEMS_ITEM[143].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[143].VALUE = new Array();
_global.ITEMS_ITEM[143].VALUE[7] = new Array();
_global.ITEMS_ITEM[143].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[143].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[143] = new Object();
_global.ITEMS_ITEM[143].NAME = "Toy4";
_global.ITEMS_ITEM[143].TYPE = _global.ITEMS_TYPE_RABBIT;
_global.ITEMS_ITEM[143].AMOUNT = 1;
_global.ITEMS_ITEM[143].BALL_COLOR = _global.COLOR_GREEN1;
_global.ITEMS_ITEM[143].FREQUENCY = new Array();
_global.ITEMS_ITEM[143].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[143].VALUE = new Array();
_global.ITEMS_ITEM[143].VALUE[7] = new Array();
_global.ITEMS_ITEM[143].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[143].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[144] = new Object();
_global.ITEMS_ITEM[144].NAME = "Toy5";
_global.ITEMS_ITEM[144].TYPE = _global.ITEMS_TYPE_CROCO;
_global.ITEMS_ITEM[144].AMOUNT = 1;
_global.ITEMS_ITEM[144].BALL_COLOR = _global.COLOR_GREEN1;
_global.ITEMS_ITEM[144].FREQUENCY = new Array();
_global.ITEMS_ITEM[144].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[144].VALUE = new Array();
_global.ITEMS_ITEM[144].VALUE[7] = new Array();
_global.ITEMS_ITEM[144].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[144].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[145] = new Object();
_global.ITEMS_ITEM[145].NAME = "Toy6";
_global.ITEMS_ITEM[145].TYPE = _global.ITEMS_TYPE_ROBOT;
_global.ITEMS_ITEM[145].AMOUNT = 1;
_global.ITEMS_ITEM[145].BALL_COLOR = _global.COLOR_GREEN1;
_global.ITEMS_ITEM[145].FREQUENCY = new Array();
_global.ITEMS_ITEM[145].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[145].VALUE = new Array();
_global.ITEMS_ITEM[145].VALUE[7] = new Array();
_global.ITEMS_ITEM[145].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[145].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[146] = new Object();
_global.ITEMS_ITEM[146].NAME = "Toy7";
_global.ITEMS_ITEM[146].TYPE = _global.ITEMS_TYPE_CAR1;
_global.ITEMS_ITEM[146].AMOUNT = 1;
_global.ITEMS_ITEM[146].BALL_COLOR = _global.COLOR_GREEN1;
_global.ITEMS_ITEM[146].FREQUENCY = new Array();
_global.ITEMS_ITEM[146].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[146].VALUE = new Array();
_global.ITEMS_ITEM[146].VALUE[7] = new Array();
_global.ITEMS_ITEM[146].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[146].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[147] = new Object();
_global.ITEMS_ITEM[147].NAME = "Toy8";
_global.ITEMS_ITEM[147].TYPE = _global.ITEMS_TYPE_CAR2;
_global.ITEMS_ITEM[147].AMOUNT = 1;
_global.ITEMS_ITEM[147].BALL_COLOR = _global.COLOR_GREEN1;
_global.ITEMS_ITEM[147].FREQUENCY = new Array();
_global.ITEMS_ITEM[147].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[147].VALUE = new Array();
_global.ITEMS_ITEM[147].VALUE[7] = new Array();
_global.ITEMS_ITEM[147].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[147].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[148] = new Object();
_global.ITEMS_ITEM[148].NAME = "Toy9";
_global.ITEMS_ITEM[148].TYPE = _global.ITEMS_TYPE_CAR;
_global.ITEMS_ITEM[148].AMOUNT = 1;
_global.ITEMS_ITEM[148].BALL_COLOR = _global.COLOR_GREEN1;
_global.ITEMS_ITEM[148].FREQUENCY = new Array();
_global.ITEMS_ITEM[148].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[148].VALUE = new Array();
_global.ITEMS_ITEM[148].VALUE[7] = new Array();
_global.ITEMS_ITEM[148].VALUE_FREQUENCY = new Array();
_global.ITEMS_ITEM[148].VALUE_FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[149] = new Object();
_global.ITEMS_ITEM[149].NAME = "bonusTOCash";
_global.ITEMS_ITEM[149].TYPE = _global.ITEMS_TYPE_BONUS;
_global.ITEMS_ITEM[149].AMOUNT = 1;
_global.ITEMS_ITEM[149].BALL_COLOR = _global.COLOR_BONUS_RED;
_global.ITEMS_ITEM[149].ADD_MONEY = true;
_global.ITEMS_ITEM[149].FREQUENCY = new Array();
_global.ITEMS_ITEM[149].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT = new Array();
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7] = new Array();
_global.ITEMS_ITEM[149].MIN_VALUE = new Array();
_global.ITEMS_ITEM[149].MIN_VALUE[7] = new Array();
_global.ITEMS_ITEM[149].MAX_VALUE = new Array();
_global.ITEMS_ITEM[149].MAX_VALUE[7] = new Array();
_global.ITEMS_ITEM[149].COUNT_DOWN = new Array();
_global.ITEMS_ITEM[149].COUNT_DOWN[7] = new Array();
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE = new Array();
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7] = new Array();
_global.ITEMS_ITEM[149].UPPER_TEXT_IMG = "bonusMoneyTextImagemap";
_global.ITEMS_ITEM[150] = new Object();
_global.ITEMS_ITEM[150].NAME = "bonusTOScore";
_global.ITEMS_ITEM[150].TYPE = _global.ITEMS_TYPE_BONUS;
_global.ITEMS_ITEM[150].AMOUNT = 1;
_global.ITEMS_ITEM[150].BALL_COLOR = _global.COLOR_BONUS_PURPLE;
_global.ITEMS_ITEM[150].ADD_SCORE = true;
_global.ITEMS_ITEM[150].FREQUENCY = new Array();
_global.ITEMS_ITEM[150].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[150].FREQUENCY_LOWER_PERCENT = new Array();
_global.ITEMS_ITEM[150].FREQUENCY_LOWER_PERCENT[7] = new Array();
_global.ITEMS_ITEM[150].MIN_VALUE = new Array();
_global.ITEMS_ITEM[150].MIN_VALUE[7] = new Array();
_global.ITEMS_ITEM[150].MAX_VALUE = new Array();
_global.ITEMS_ITEM[150].MAX_VALUE[7] = new Array();
_global.ITEMS_ITEM[150].COUNT_DOWN = new Array();
_global.ITEMS_ITEM[150].COUNT_DOWN[7] = new Array();
_global.ITEMS_ITEM[150].COUNT_DOWN_VALUE = new Array();
_global.ITEMS_ITEM[150].COUNT_DOWN_VALUE[7] = new Array();
_global.ITEMS_ITEM[150].UPPER_TEXT_IMG = "bonusScoreTextImagemap";
_global.ITEMS_ITEM[151] = new Object();
_global.ITEMS_ITEM[151].NAME = "bonusTOTime";
_global.ITEMS_ITEM[151].TYPE = _global.ITEMS_TYPE_BONUS;
_global.ITEMS_ITEM[151].AMOUNT = 1;
_global.ITEMS_ITEM[151].BALL_COLOR = _global.COLOR_BONUS_BLUE;
_global.ITEMS_ITEM[151].ADD_TIME = true;
_global.ITEMS_ITEM[151].FREQUENCY = new Array();
_global.ITEMS_ITEM[151].FREQUENCY[7] = new Array();
_global.ITEMS_ITEM[151].FREQUENCY_LOWER_PERCENT = new Array();
_global.ITEMS_ITEM[151].FREQUENCY_LOWER_PERCENT[7] = new Array();
_global.ITEMS_ITEM[151].MIN_VALUE = new Array();
_global.ITEMS_ITEM[151].MIN_VALUE[7] = new Array();
_global.ITEMS_ITEM[151].MAX_VALUE = new Array();
_global.ITEMS_ITEM[151].MAX_VALUE[7] = new Array();
_global.ITEMS_ITEM[151].COUNT_DOWN = new Array();
_global.ITEMS_ITEM[151].COUNT_DOWN[7] = new Array();
_global.ITEMS_ITEM[151].COUNT_DOWN_VALUE = new Array();
_global.ITEMS_ITEM[151].COUNT_DOWN_VALUE[7] = new Array();
_global.ITEMS_ITEM[151].UPPER_TEXT_IMG = "bonusTimeTextImagemap";
_global.dollarWidth = 52;
_global.DOLLARS_SPEED = 1200;
_global.DOLLARS_START_POSITION = new Array(244, 400);
_global.DOLLARS_START_POSITION_2 = "316 526";
_global.DOLLARS_CASH = 1;
_global.DOLLARS_COUPON = 2;
_global.DOLLARS_CREDIT_CARD = 3;
_global.CREDIT_CARDS_NORMAL = 1;
_global.CREDIT_CARDS_GOLD = 2;
_global.CREDIT_CARDS_PLATINUM = 3;
_global.DOLLARS_DOLLAR = new Array();
_global.DOLLARS_DOLLAR[2] = new Object();
_global.DOLLARS_DOLLAR[2].NAME = "5";
_global.DOLLARS_DOLLAR[2].VALUE = 5;
_global.DOLLARS_DOLLAR[2].CATEGORY = DOLLARS_CASH;
_global.DOLLARS_DOLLAR[2].FREQUENCY = new Array();
_global.DOLLARS_DOLLAR[2].FREQUENCY[7] = new Array();
_global.DOLLARS_DOLLAR[3] = new Object();
_global.DOLLARS_DOLLAR[3].NAME = "10";
_global.DOLLARS_DOLLAR[3].VALUE = 10;
_global.DOLLARS_DOLLAR[3].CATEGORY = DOLLARS_CASH;
_global.DOLLARS_DOLLAR[3].FREQUENCY = new Array();
_global.DOLLARS_DOLLAR[3].FREQUENCY[7] = new Array();
_global.DOLLARS_DOLLAR[5] = new Object();
_global.DOLLARS_DOLLAR[5].NAME = "20";
_global.DOLLARS_DOLLAR[5].VALUE = 20;
_global.DOLLARS_DOLLAR[5].CATEGORY = DOLLARS_CASH;
_global.DOLLARS_DOLLAR[5].FREQUENCY = new Array();
_global.DOLLARS_DOLLAR[5].FREQUENCY[7] = new Array();
_global.DOLLARS_DOLLAR[6] = new Object();
_global.DOLLARS_DOLLAR[6].NAME = "50";
_global.DOLLARS_DOLLAR[6].VALUE = 50;
_global.DOLLARS_DOLLAR[6].CATEGORY = DOLLARS_CASH;
_global.DOLLARS_DOLLAR[6].FREQUENCY = new Array();
_global.DOLLARS_DOLLAR[6].FREQUENCY[7] = new Array();
_global.DOLLARS_DOLLAR[7] = new Object();
_global.DOLLARS_DOLLAR[7].NAME = "100";
_global.DOLLARS_DOLLAR[7].VALUE = 100;
_global.DOLLARS_DOLLAR[7].CATEGORY = DOLLARS_CASH;
_global.DOLLARS_DOLLAR[7].FREQUENCY = new Array();
_global.DOLLARS_DOLLAR[7].FREQUENCY[7] = new Array();
_global.DOLLARS_DOLLAR[12] = new Object();
_global.DOLLARS_DOLLAR[12].NAME = "500";
_global.DOLLARS_DOLLAR[12].VALUE = 500;
_global.DOLLARS_DOLLAR[12].CATEGORY = DOLLARS_CASH;
_global.DOLLARS_DOLLAR[12].FREQUENCY = new Array();
_global.DOLLARS_DOLLAR[12].FREQUENCY[7] = new Array();
_global.DOLLARS_DOLLAR[9] = new Object();
_global.DOLLARS_DOLLAR[9].NAME = "classicCreditCardImagemap";
_global.DOLLARS_DOLLAR[9].VALUE = 0;
_global.DOLLARS_DOLLAR[9].CATEGORY = _global.DOLLARS_CREDIT_CARD;
_global.DOLLARS_DOLLAR[9].CARD_TYPE = _global.CREDIT_CARDS_NORMAL;
_global.DOLLARS_DOLLAR[9].CHAIN = 3;
_global.DOLLARS_DOLLAR[9].IMAGE = "classicCreditCardImagemap";
_global.DOLLARS_DOLLAR[9].FREQUENCY = new Array();
_global.DOLLARS_DOLLAR[9].FREQUENCY[7] = new Array();
_global.DOLLARS_DOLLAR[10] = new Object();
_global.DOLLARS_DOLLAR[10].NAME = "goldCreditCardImagemap";
_global.DOLLARS_DOLLAR[10].VALUE = 0;
_global.DOLLARS_DOLLAR[10].CATEGORY = _global.DOLLARS_CREDIT_CARD;
_global.DOLLARS_DOLLAR[10].CARD_TYPE = _global.CREDIT_CARDS_GOLD;
_global.DOLLARS_DOLLAR[10].CHAIN = 5;
_global.DOLLARS_DOLLAR[10].IMAGE = "classicCreditCardImagemap";
_global.DOLLARS_DOLLAR[10].FREQUENCY = new Array();
_global.DOLLARS_DOLLAR[10].FREQUENCY[7] = new Array();
_global.DOLLARS_DOLLAR[11] = new Object();
_global.DOLLARS_DOLLAR[11].NAME = "platinumCreditCardImagemap";
_global.DOLLARS_DOLLAR[11].VALUE = 0;
_global.DOLLARS_DOLLAR[11].CATEGORY = _global.DOLLARS_CREDIT_CARD;
_global.DOLLARS_DOLLAR[11].CARD_TYPE = _global.CREDIT_CARDS_PLATINUM;
_global.DOLLARS_DOLLAR[11].CHAIN = 7;
_global.DOLLARS_DOLLAR[11].IMAGE = "platinumCreditCardImagemap";
_global.DOLLARS_DOLLAR[11].FREQUENCY = new Array();
_global.DOLLARS_DOLLAR[11].FREQUENCY[7] = new Array();
_global.DOLLARS_DOLLAR[8] = new Object();
_global.DOLLARS_DOLLAR[8].NAME = "20Coupon";
_global.DOLLARS_DOLLAR[8].VALUE = 20;
_global.DOLLARS_DOLLAR[8].CATEGORY = _global.DOLLARS_COUPON;
_global.DOLLARS_DOLLAR[8].IMAGE = "20Coupon.png";
_global.DOLLARS_DOLLAR[8].FREQUENCY = new Array();
_global.DOLLARS_DOLLAR[8].FREQUENCY[7] = new Array();
_global.DOLLARS_DOLLAR[13] = new Object();
_global.DOLLARS_DOLLAR[13].NAME = "100Coupon";
_global.DOLLARS_DOLLAR[13].VALUE = 100;
_global.DOLLARS_DOLLAR[13].CATEGORY = _global.DOLLARS_COUPON;
_global.DOLLARS_DOLLAR[13].IMAGE = "100Coupon.png";
_global.DOLLARS_DOLLAR[13].FREQUENCY = new Array();
_global.DOLLARS_DOLLAR[13].FREQUENCY[7] = new Array();
_global.DOLLARS_DOLLAR[14] = new Object();
_global.DOLLARS_DOLLAR[14].NAME = "300Coupon";
_global.DOLLARS_DOLLAR[14].VALUE = 300;
_global.DOLLARS_DOLLAR[14].CATEGORY = _global.DOLLARS_COUPON;
_global.DOLLARS_DOLLAR[14].IMAGE = "300Coupon.png";
_global.DOLLARS_DOLLAR[14].FREQUENCY = new Array();
_global.DOLLARS_DOLLAR[14].FREQUENCY[7] = new Array();
_global.CHAR_SALE_PEOPLE = 1;
_global.CHAR_CAT_GIRL = 2;
_global.CHAR_FOOD_GIRL = 3;
_global.CHAR_FEMALE_SHOPPER = 4;
_global.CHAR_CAUSAL_GIRL = 5;
_global.CHAR_MALE_SHOPPER = 6;
_global.CHAR_SUIT_MAN = 7;
_global.GUI_OBJECTIVE_BUDGET_POS = "298 505";
_global.GUI_OBJECTIVE_BUDGET_SIZE = "486 182";
_global.GUI_OBJECTIVE_BUDGET_IMAGE = objtiveBudgetImagemap;
_global.GUI_OBJECTIVE_BUDGET_WORD_POS = "186 456";
_global.GUI_OBJECTIVE_BUDGET_WORD_SIZE = "98 26";
_global.GUI_OBJECTIVE_BUDGET_WORD_IMAGE = objtiveBudgetTxtImagemap;
_global.GUI_OBJECTIVE_DOLLAR_SIGN_POS[1] = "140 493";
_global.GUI_OBJECTIVE_DOLLAR_SIGN_POS[2] = "363 493";
_global.GUI_OBJECTIVE_DOLLAR_SIGN_SIZE = "18 22";
_global.GUI_OBJECTIVE_DOLLAR_SIGN_IMAGE = objtiveDollarSignImagemap;
_global.GUI_OBJECTIVE_BUDGET_TXT_POS = new Array(130, 347);
_global.GUI_OBJECTIVE_BUDGET_TXT_SIZE = new Array(16, 19);
_global.GUI_OBJECTIVE_BUDGET_TXT_IMAGE = "objtiveNumImagemap";
_global.GUI_OBJECTIVE_TARGET_POS = "410 500";
_global.GUI_OBJECTIVE_TARGET_SIZE = "202 172";
_global.GUI_OBJECTIVE_TARGET_IMAGE = objtiveTargetImagemap;
_global.GUI_OBJECTIVE_TARGET_WORD_POS = "410 456";
_global.GUI_OBJECTIVE_TARGET_WORD_SIZE = "98 26";
_global.GUI_OBJECTIVE_TARGET_WORD_IMAGE = objtiveTargetTxtImagemap;
_global.GUI_OBJECTIVE_TARGET_TXT_POS = new Array(308, 347);
_global.GUI_OBJECTIVE_TARGET_TXT_SIZE = new Array(16, 19);
_global.GUI_OBJECTIVE_TARGET_TXT_IMAGE = "objtiveNumImagemap";
_global.GUI_OBJECTIVE_CHAR_POS = new Array();
_global.GUI_OBJECTIVE_CHAR_SIZE = new Array();
_global.GUI_OBJECTIVE_CHAR_IMAGE = new Array();
_global.GUI_OBJECTIVE_CHAR_POS[_global.CHAR_FEMALE_SHOPPER] = new Array(490, 220);
_global.GUI_OBJECTIVE_CHAR_SIZE[_global.CHAR_FEMALE_SHOPPER] = new Array(193, 324);
_global.GUI_OBJECTIVE_CHAR_IMAGE[_global.CHAR_FEMALE_SHOPPER] = "femaleShopperImagemap";
_global.GUI_OBJECTIVE_CHAR_POS[_global.CHAR_MALE_SHOPPER] = new Array(500, 230);
_global.GUI_OBJECTIVE_CHAR_SIZE[_global.CHAR_MALE_SHOPPER] = new Array(164, 331);
_global.GUI_OBJECTIVE_CHAR_IMAGE[_global.CHAR_MALE_SHOPPER] = "maleShopperImagemap";
_global.GUI_OBJECTIVE_CHAR_POS[_global.CHAR_SALE_PEOPLE] = new Array(500, 230);
_global.GUI_OBJECTIVE_CHAR_SIZE[_global.CHAR_SALE_PEOPLE] = new Array(194, 334);
_global.GUI_OBJECTIVE_CHAR_IMAGE[_global.CHAR_SALE_PEOPLE] = "salePeopleImagemap";
_global.GUI_OBJECTIVE_CHAR_POS[_global.CHAR_CAT_GIRL] = new Array(500, 230);
_global.GUI_OBJECTIVE_CHAR_SIZE[_global.CHAR_CAT_GIRL] = new Array(180, 330);
_global.GUI_OBJECTIVE_CHAR_IMAGE[_global.CHAR_CAT_GIRL] = "catGirlImagemap";
_global.GUI_OBJECTIVE_CHAR_POS[_global.CHAR_SUIT_MAN] = new Array(500, 230);
_global.GUI_OBJECTIVE_CHAR_SIZE[_global.CHAR_SUIT_MAN] = new Array(168, 330);
_global.GUI_OBJECTIVE_CHAR_IMAGE[_global.CHAR_SUIT_MAN] = "suitManImagemap";
_global.GUI_OBJECTIVE_CHAR_POS[_global.CHAR_CAUSAL_GIRL] = new Array(500, 210);
_global.GUI_OBJECTIVE_CHAR_SIZE[_global.CHAR_CAUSAL_GIRL] = new Array(150, 330);
_global.GUI_OBJECTIVE_CHAR_IMAGE[_global.CHAR_CAUSAL_GIRL] = "casualGirlImagemap";
_global.GUI_OBJECTIVE_CHAR_POS[_global.CHAR_FOOD_GIRL] = new Array(500, 220);
_global.GUI_OBJECTIVE_CHAR_SIZE[_global.CHAR_FOOD_GIRL] = new Array(172, 328);
_global.GUI_OBJECTIVE_CHAR_IMAGE[_global.CHAR_FOOD_GIRL] = "foodGirlImagemap";
_global.GUI_GAME_OVER_BOARD_START_POS = "183 -352";
_global.GUI_GAME_OVER_BOARD_END_POS = "183 123";
_global.GUI_GAME_OVER_BOARD_SIZE = "434 352";
_global.GUI_GAME_OVER_BOARD_GAME_OVER_TXT_POS = "400 300";
_global.GUI_GAME_OVER_BOARD_GAME_OVER_TXT_SIZE = "320 72";
_global.GUI_GAME_OVER_BOARD_MOVE_DY = "50";
_global.GUI_GAME_OVER_BOARD_MSG = "I think you are simply running out of luck. I am sure you will do better next time. Try again, and put forward your best efforts.\nDo you want to try again now?";
_global.GUI_GAME_OVER_SUCCESS_MSG = "Congratulations!! You have won the Shopping Marathon! Let's try the Collector mode in the deluxe version!";
_global.GUI_PRESS_ENTER_VISIBLE = new Array();
_global.GUI_PRESS_ENTER_VISIBLE[7] = false;
_global.GUI_OBJECTIVE_VISIBLE = new Array();
_global.GUI_OBJECTIVE_VISIBLE[7] = false;
_global.GUI_TARGET_VISIBLE = new Array();
_global.GUI_TARGET_VISIBLE[7] = false;
_global.GUI_PROGRESS_BAR_VISIBLE = new Array();
_global.GUI_PROGRESS_BAR_VISIBLE[7] = true;
_global.GAMES_BONUS_MONEY_MAX_COUNT_DEFAULT = 2;
_global.GAMES_BONUS_MONEY_MAX_COUNT_CHANGE = 1;
_global.GAMES_BONUS_MONEY_CHANGE_FREQ_PRECENT = 70;
_global.GAMES_BONUS_SCORE_MAX_COUNT_DEFAULT = 2;
_global.GAMES_BONUS_SCORE_MAX_COUNT_CHANGE = 1;
_global.GAMES_BONUS_SCORE_CHANGE_FREQ_PRECENT = 70;
_global.GAMES_BONUS_TIME_MAX_COUNT_DEFAULT = 2;
_global.GAMES_BONUS_TIME_MAX_COUNT_CHANGE = 1;
_global.GAMES_BONUS_TIME_CHANGE_FREQ_PRECENT = 70;
_global.GAMES_LIMITED_BUDGET = new Array();
_global.GAMES_LIMITED_BUDGET[7] = true;
_global.GAMES_BUDGET = new Array();
_global.GAMES_BUDGET[7] = new Array();
_global.GAMES_BUDGET[7][1] = 900;
_global.GAMES_TARGET_VALUE = new Array();
_global.GAMES_TARGET_VALUE[7] = new Array();
_global.GAMES_TARGET_VALUE[7][1] = 540;
_global.GAMES_TIME_LIMIT = new Array();
_global.GAMES_TIME_LIMIT[7] = new Array();
_global.GAMES_TIME_LIMIT[7][1] = 180;
_global.GAMES_LIMITED_TIME = new Array();
_global.GAMES_LIMITED_TIME[7] = new Array();
_global.GAMES_LIMITED_TIME[7][1] = true;
_global.GAMES_ITEM_USE = new Array();
_global.GAMES_ITEM_USE[7] = new Array();
_global.GAMES_ITEM_USE[7][1] = new Array(5, 8, 11, 12, 10, 15);
_global.ITEMS_ITEM[5].FREQUENCY[7][1] = 20;
_global.ITEMS_ITEM[8].FREQUENCY[7][1] = 18;
_global.ITEMS_ITEM[11].FREQUENCY[7][1] = 20;
_global.ITEMS_ITEM[12].FREQUENCY[7][1] = 21;
_global.ITEMS_ITEM[10].FREQUENCY[7][1] = 16;
_global.ITEMS_ITEM[15].FREQUENCY[7][1] = 5;
_global.ITEMS_ITEM[5].VALUE[7][1] = 17;
_global.ITEMS_ITEM[5].VALUE_FREQUENCY[7][1] = 100;
_global.ITEMS_ITEM[8].VALUE[7][1] = 23;
_global.ITEMS_ITEM[8].VALUE_FREQUENCY[7][1] = 100;
_global.ITEMS_ITEM[11].VALUE[7][1] = 8;
_global.ITEMS_ITEM[11].VALUE_FREQUENCY[7][1] = 100;
_global.ITEMS_ITEM[12].VALUE[7][1] = 12;
_global.ITEMS_ITEM[12].VALUE_FREQUENCY[7][1] = 100;
_global.ITEMS_ITEM[10].VALUE[7][1] = 32;
_global.ITEMS_ITEM[10].VALUE_FREQUENCY[7][1] = 100;
_global.ITEMS_ITEM[15].VALUE[7][1] = 50;
_global.ITEMS_ITEM[15].VALUE_FREQUENCY[7][1] = 100;
_global.GAMES_DOLLAR_USE = new Array();
_global.GAMES_DOLLAR_USE[7] = new Array();
_global.GAMES_DOLLAR_USE[7][1] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][1] = 16;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][1] = 29;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][1] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][1] = 10;
_global.GAMES_BUDGET[7][2] = 900;
_global.GAMES_TARGET_VALUE[7][2] = 585;
_global.GAMES_TIME_LIMIT[7][2] = 180;
_global.GAMES_LIMITED_TIME[7][2] = true;
_global.GAMES_ITEM_USE[7][2] = new Array(5, 8, 11, 12, 10, 15);
_global.ITEMS_ITEM[5].FREQUENCY[7][2] = 20;
_global.ITEMS_ITEM[8].FREQUENCY[7][2] = 18;
_global.ITEMS_ITEM[11].FREQUENCY[7][2] = 20;
_global.ITEMS_ITEM[12].FREQUENCY[7][2] = 21;
_global.ITEMS_ITEM[10].FREQUENCY[7][2] = 16;
_global.ITEMS_ITEM[15].FREQUENCY[7][2] = 5;
_global.ITEMS_ITEM[5].VALUE[7][2] = 17;
_global.ITEMS_ITEM[5].VALUE_FREQUENCY[7][2] = 100;
_global.ITEMS_ITEM[8].VALUE[7][2] = 23;
_global.ITEMS_ITEM[8].VALUE_FREQUENCY[7][2] = 100;
_global.ITEMS_ITEM[11].VALUE[7][2] = 8;
_global.ITEMS_ITEM[11].VALUE_FREQUENCY[7][2] = 100;
_global.ITEMS_ITEM[12].VALUE[7][2] = 12;
_global.ITEMS_ITEM[12].VALUE_FREQUENCY[7][2] = 100;
_global.ITEMS_ITEM[10].VALUE[7][2] = 32;
_global.ITEMS_ITEM[10].VALUE_FREQUENCY[7][2] = 100;
_global.ITEMS_ITEM[15].VALUE[7][2] = 50;
_global.ITEMS_ITEM[15].VALUE_FREQUENCY[7][2] = 100;
_global.GAMES_DOLLAR_USE[7][2] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][2] = 16;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][2] = 28;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][2] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][2] = 10;
_global.GAMES_BUDGET[7][3] = 900;
_global.GAMES_TARGET_VALUE[7][3] = 630;
_global.GAMES_TIME_LIMIT[7][3] = 180;
_global.GAMES_LIMITED_TIME[7][3] = true;
_global.GAMES_ITEM_USE[7][3] = new Array(1, 16, 9, 3, 10, 15);
_global.ITEMS_ITEM[1].FREQUENCY[7][3] = 19;
_global.ITEMS_ITEM[16].FREQUENCY[7][3] = 17;
_global.ITEMS_ITEM[9].FREQUENCY[7][3] = 19;
_global.ITEMS_ITEM[3].FREQUENCY[7][3] = 19;
_global.ITEMS_ITEM[10].FREQUENCY[7][3] = 15;
_global.ITEMS_ITEM[15].FREQUENCY[7][3] = 5;
_global.ITEMS_ITEM[1].VALUE[7][3] = 17;
_global.ITEMS_ITEM[1].VALUE_FREQUENCY[7][3] = 100;
_global.ITEMS_ITEM[16].VALUE[7][3] = 23;
_global.ITEMS_ITEM[16].VALUE_FREQUENCY[7][3] = 100;
_global.ITEMS_ITEM[9].VALUE[7][3] = 8;
_global.ITEMS_ITEM[9].VALUE_FREQUENCY[7][3] = 100;
_global.ITEMS_ITEM[3].VALUE[7][3] = 12;
_global.ITEMS_ITEM[3].VALUE_FREQUENCY[7][3] = 100;
_global.ITEMS_ITEM[10].VALUE[7][3] = 32;
_global.ITEMS_ITEM[10].VALUE_FREQUENCY[7][3] = 100;
_global.ITEMS_ITEM[15].VALUE[7][3] = 50;
_global.ITEMS_ITEM[15].VALUE_FREQUENCY[7][3] = 100;
_global.GAMES_DOLLAR_USE[7][3] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][3] = 16;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][3] = 28;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][3] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][3] = 10;
_global.GAMES_BUDGET[7][4] = 900;
_global.GAMES_TARGET_VALUE[7][4] = 675;
_global.GAMES_TIME_LIMIT[7][4] = 180;
_global.GAMES_LIMITED_TIME[7][4] = true;
_global.GAMES_ITEM_USE[7][4] = new Array(1, 16, 9, 3, 10, 15, 150);
_global.ITEMS_ITEM[1].FREQUENCY[7][4] = 20;
_global.ITEMS_ITEM[16].FREQUENCY[7][4] = 18;
_global.ITEMS_ITEM[9].FREQUENCY[7][4] = 20;
_global.ITEMS_ITEM[3].FREQUENCY[7][4] = 21;
_global.ITEMS_ITEM[10].FREQUENCY[7][4] = 16;
_global.ITEMS_ITEM[15].FREQUENCY[7][4] = 5;
_global.ITEMS_ITEM[1].VALUE[7][4] = 17;
_global.ITEMS_ITEM[1].VALUE_FREQUENCY[7][4] = 100;
_global.ITEMS_ITEM[16].VALUE[7][4] = 23;
_global.ITEMS_ITEM[16].VALUE_FREQUENCY[7][4] = 100;
_global.ITEMS_ITEM[9].VALUE[7][4] = 8;
_global.ITEMS_ITEM[9].VALUE_FREQUENCY[7][4] = 100;
_global.ITEMS_ITEM[3].VALUE[7][4] = 12;
_global.ITEMS_ITEM[3].VALUE_FREQUENCY[7][4] = 100;
_global.ITEMS_ITEM[10].VALUE[7][4] = 32;
_global.ITEMS_ITEM[10].VALUE_FREQUENCY[7][4] = 100;
_global.ITEMS_ITEM[15].VALUE[7][4] = 50;
_global.ITEMS_ITEM[15].VALUE_FREQUENCY[7][4] = 100;
_global.ITEMS_ITEM[150].FREQUENCY[7][4] = 6;
_global.ITEMS_ITEM[150].FREQUENCY_LOWER_PERCENT[7][4] = 20;
_global.ITEMS_ITEM[150].MIN_VALUE[7][4] = 0;
_global.ITEMS_ITEM[150].MAX_VALUE[7][4] = 0;
_global.ITEMS_ITEM[150].COUNT_DOWN[7][4] = true;
_global.ITEMS_ITEM[150].COUNT_DOWN_VALUE[7][4] = 20;
_global.GAMES_DOLLAR_USE[7][4] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][4] = 16;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][4] = 28;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][4] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][4] = 10;
_global.GAMES_BUDGET[7][5] = 900;
_global.GAMES_TARGET_VALUE[7][5] = 700;
_global.GAMES_TIME_LIMIT[7][5] = 180;
_global.GAMES_LIMITED_TIME[7][5] = true;
_global.GAMES_ITEM_USE[7][5] = new Array(1, 16, 9, 7, 10, 15, 150);
_global.ITEMS_ITEM[1].FREQUENCY[7][5] = 19;
_global.ITEMS_ITEM[16].FREQUENCY[7][5] = 17;
_global.ITEMS_ITEM[9].FREQUENCY[7][5] = 19;
_global.ITEMS_ITEM[7].FREQUENCY[7][5] = 19;
_global.ITEMS_ITEM[10].FREQUENCY[7][5] = 15;
_global.ITEMS_ITEM[15].FREQUENCY[7][5] = 5;
_global.ITEMS_ITEM[1].VALUE[7][5] = 17;
_global.ITEMS_ITEM[1].VALUE_FREQUENCY[7][5] = 100;
_global.ITEMS_ITEM[16].VALUE[7][5] = 23;
_global.ITEMS_ITEM[16].VALUE_FREQUENCY[7][5] = 100;
_global.ITEMS_ITEM[9].VALUE[7][5] = 8;
_global.ITEMS_ITEM[9].VALUE_FREQUENCY[7][5] = 100;
_global.ITEMS_ITEM[7].VALUE[7][5] = 12;
_global.ITEMS_ITEM[7].VALUE_FREQUENCY[7][5] = 100;
_global.ITEMS_ITEM[10].VALUE[7][5] = 32;
_global.ITEMS_ITEM[10].VALUE_FREQUENCY[7][5] = 100;
_global.ITEMS_ITEM[15].VALUE[7][5] = 50;
_global.ITEMS_ITEM[15].VALUE_FREQUENCY[7][5] = 100;
_global.ITEMS_ITEM[150].FREQUENCY[7][5] = 6;
_global.ITEMS_ITEM[150].FREQUENCY_LOWER_PERCENT[7][5] = 20;
_global.ITEMS_ITEM[150].MIN_VALUE[7][5] = 0;
_global.ITEMS_ITEM[150].MAX_VALUE[7][5] = 0;
_global.ITEMS_ITEM[150].COUNT_DOWN[7][5] = true;
_global.ITEMS_ITEM[150].COUNT_DOWN_VALUE[7][5] = 20;
_global.GAMES_DOLLAR_USE[7][5] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][5] = 16;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][5] = 28;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][5] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][5] = 10;
_global.GAMES_BUDGET[7][6] = 900;
_global.GAMES_TARGET_VALUE[7][6] = 730;
_global.GAMES_TIME_LIMIT[7][6] = 180;
_global.GAMES_LIMITED_TIME[7][6] = true;
_global.GAMES_ITEM_USE[7][6] = new Array(1, 16, 9, 7, 10, 15, 150);
_global.ITEMS_ITEM[1].FREQUENCY[7][6] = 20;
_global.ITEMS_ITEM[16].FREQUENCY[7][6] = 18;
_global.ITEMS_ITEM[9].FREQUENCY[7][6] = 20;
_global.ITEMS_ITEM[7].FREQUENCY[7][6] = 21;
_global.ITEMS_ITEM[10].FREQUENCY[7][6] = 16;
_global.ITEMS_ITEM[15].FREQUENCY[7][6] = 5;
_global.ITEMS_ITEM[1].VALUE[7][6] = 17;
_global.ITEMS_ITEM[1].VALUE_FREQUENCY[7][6] = 100;
_global.ITEMS_ITEM[16].VALUE[7][6] = 23;
_global.ITEMS_ITEM[16].VALUE_FREQUENCY[7][6] = 100;
_global.ITEMS_ITEM[9].VALUE[7][6] = 8;
_global.ITEMS_ITEM[9].VALUE_FREQUENCY[7][6] = 100;
_global.ITEMS_ITEM[7].VALUE[7][6] = 12;
_global.ITEMS_ITEM[7].VALUE_FREQUENCY[7][6] = 100;
_global.ITEMS_ITEM[10].VALUE[7][6] = 32;
_global.ITEMS_ITEM[10].VALUE_FREQUENCY[7][6] = 100;
_global.ITEMS_ITEM[15].VALUE[7][6] = 50;
_global.ITEMS_ITEM[15].VALUE_FREQUENCY[7][6] = 100;
_global.GAMES_DOLLAR_USE[7][6] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][6] = 16;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][6] = 28;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][6] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][6] = 10;
_global.ITEMS_ITEM[150].FREQUENCY[7][6] = 6;
_global.ITEMS_ITEM[150].FREQUENCY_LOWER_PERCENT[7][6] = 20;
_global.ITEMS_ITEM[150].MIN_VALUE[7][6] = 0;
_global.ITEMS_ITEM[150].MAX_VALUE[7][6] = 0;
_global.ITEMS_ITEM[150].COUNT_DOWN[7][6] = true;
_global.ITEMS_ITEM[150].COUNT_DOWN_VALUE[7][6] = 20;
_global.GAMES_BUDGET[7][7] = 1500;
_global.GAMES_TARGET_VALUE[7][7] = 900;
_global.GAMES_TIME_LIMIT[7][7] = 200;
_global.GAMES_LIMITED_TIME[7][7] = true;
_global.GAMES_ITEM_USE[7][7] = new Array(144, 146, 147, 143, 141, 145);
_global.ITEMS_ITEM[144].FREQUENCY[7][7] = 20;
_global.ITEMS_ITEM[146].FREQUENCY[7][7] = 18;
_global.ITEMS_ITEM[147].FREQUENCY[7][7] = 20;
_global.ITEMS_ITEM[143].FREQUENCY[7][7] = 21;
_global.ITEMS_ITEM[141].FREQUENCY[7][7] = 16;
_global.ITEMS_ITEM[145].FREQUENCY[7][7] = 5;
_global.ITEMS_ITEM[144].VALUE[7][7] = 6;
_global.ITEMS_ITEM[144].VALUE_FREQUENCY[7][7] = 100;
_global.ITEMS_ITEM[146].VALUE[7][7] = 13;
_global.ITEMS_ITEM[146].VALUE_FREQUENCY[7][7] = 100;
_global.ITEMS_ITEM[147].VALUE[7][7] = 34;
_global.ITEMS_ITEM[147].VALUE_FREQUENCY[7][7] = 100;
_global.ITEMS_ITEM[143].VALUE[7][7] = 46;
_global.ITEMS_ITEM[143].VALUE_FREQUENCY[7][7] = 100;
_global.ITEMS_ITEM[141].VALUE[7][7] = 53;
_global.ITEMS_ITEM[141].VALUE_FREQUENCY[7][7] = 100;
_global.ITEMS_ITEM[145].VALUE[7][7] = 67;
_global.ITEMS_ITEM[145].VALUE_FREQUENCY[7][7] = 100;
_global.GAMES_DOLLAR_USE[7][7] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][7] = 5;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][7] = 15;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][7] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][7] = 35;
_global.GAMES_BUDGET[7][13] = 1650;
_global.GAMES_TARGET_VALUE[7][13] = 1200;
_global.GAMES_TIME_LIMIT[7][13] = 200;
_global.GAMES_LIMITED_TIME[7][13] = true;
_global.GAMES_ITEM_USE[7][13] = new Array(86, 82, 81, 84, 89, 87);
_global.ITEMS_ITEM[86].FREQUENCY[7][13] = 15;
_global.ITEMS_ITEM[82].FREQUENCY[7][13] = 18;
_global.ITEMS_ITEM[81].FREQUENCY[7][13] = 21;
_global.ITEMS_ITEM[84].FREQUENCY[7][13] = 21;
_global.ITEMS_ITEM[89].FREQUENCY[7][13] = 20;
_global.ITEMS_ITEM[87].FREQUENCY[7][13] = 5;
_global.ITEMS_ITEM[86].VALUE[7][13] = 6;
_global.ITEMS_ITEM[86].VALUE_FREQUENCY[7][13] = 100;
_global.ITEMS_ITEM[82].VALUE[7][13] = 16;
_global.ITEMS_ITEM[82].VALUE_FREQUENCY[7][13] = 100;
_global.ITEMS_ITEM[81].VALUE[7][13] = 24;
_global.ITEMS_ITEM[81].VALUE_FREQUENCY[7][13] = 100;
_global.ITEMS_ITEM[84].VALUE[7][13] = 31;
_global.ITEMS_ITEM[84].VALUE_FREQUENCY[7][13] = 100;
_global.ITEMS_ITEM[89].VALUE[7][13] = 41;
_global.ITEMS_ITEM[89].VALUE_FREQUENCY[7][13] = 100;
_global.ITEMS_ITEM[87].VALUE[7][13] = 66;
_global.ITEMS_ITEM[87].VALUE_FREQUENCY[7][13] = 100;
_global.GAMES_DOLLAR_USE[7][13] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][13] = 2;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][13] = 13;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][13] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][13] = 40;
_global.GAMES_BUDGET[7][14] = 1650;
_global.GAMES_TARGET_VALUE[7][14] = 1280;
_global.GAMES_TIME_LIMIT[7][14] = 200;
_global.GAMES_LIMITED_TIME[7][14] = true;
_global.GAMES_ITEM_USE[7][14] = new Array(86, 82, 81, 84, 89, 87, 150);
_global.ITEMS_ITEM[86].FREQUENCY[7][14] = 15;
_global.ITEMS_ITEM[82].FREQUENCY[7][14] = 18;
_global.ITEMS_ITEM[81].FREQUENCY[7][14] = 21;
_global.ITEMS_ITEM[84].FREQUENCY[7][14] = 21;
_global.ITEMS_ITEM[89].FREQUENCY[7][14] = 20;
_global.ITEMS_ITEM[87].FREQUENCY[7][14] = 5;
_global.ITEMS_ITEM[86].VALUE[7][14] = 6;
_global.ITEMS_ITEM[86].VALUE_FREQUENCY[7][14] = 100;
_global.ITEMS_ITEM[82].VALUE[7][14] = 16;
_global.ITEMS_ITEM[82].VALUE_FREQUENCY[7][14] = 100;
_global.ITEMS_ITEM[81].VALUE[7][14] = 24;
_global.ITEMS_ITEM[81].VALUE_FREQUENCY[7][14] = 100;
_global.ITEMS_ITEM[84].VALUE[7][14] = 31;
_global.ITEMS_ITEM[84].VALUE_FREQUENCY[7][14] = 100;
_global.ITEMS_ITEM[89].VALUE[7][14] = 41;
_global.ITEMS_ITEM[89].VALUE_FREQUENCY[7][14] = 100;
_global.ITEMS_ITEM[87].VALUE[7][14] = 66;
_global.ITEMS_ITEM[87].VALUE_FREQUENCY[7][14] = 100;
_global.ITEMS_ITEM[150].FREQUENCY[7][14] = 6;
_global.ITEMS_ITEM[150].FREQUENCY_LOWER_PERCENT[7][14] = 20;
_global.ITEMS_ITEM[150].MIN_VALUE[7][14] = 0;
_global.ITEMS_ITEM[150].MAX_VALUE[7][14] = 0;
_global.ITEMS_ITEM[150].COUNT_DOWN[7][14] = true;
_global.ITEMS_ITEM[150].COUNT_DOWN_VALUE[7][14] = 20;
_global.GAMES_DOLLAR_USE[7][14] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][14] = 2;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][14] = 13;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][14] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][14] = 40;
_global.GAMES_BUDGET[7][15] = 1500;
_global.GAMES_BONUS_MONEY_LIMIT = new Array();
_global.GAMES_BONUS_MONEY_LIMIT[7] = new Array();
_global.GAMES_BONUS_MONEY_LIMIT[7][15] = 180;
_global.GAMES_TARGET_VALUE[7][15] = 1330;
_global.GAMES_TIME_LIMIT[7][15] = 200;
_global.GAMES_LIMITED_TIME[7][15] = true;
_global.GAMES_ITEM_USE[7][15] = new Array(86, 82, 81, 84, 89, 87, 149);
_global.ITEMS_ITEM[86].FREQUENCY[7][15] = 15;
_global.ITEMS_ITEM[82].FREQUENCY[7][15] = 18;
_global.ITEMS_ITEM[81].FREQUENCY[7][15] = 21;
_global.ITEMS_ITEM[84].FREQUENCY[7][15] = 21;
_global.ITEMS_ITEM[89].FREQUENCY[7][15] = 20;
_global.ITEMS_ITEM[87].FREQUENCY[7][15] = 5;
_global.ITEMS_ITEM[86].VALUE[7][15] = 6;
_global.ITEMS_ITEM[86].VALUE_FREQUENCY[7][15] = 100;
_global.ITEMS_ITEM[82].VALUE[7][15] = 16;
_global.ITEMS_ITEM[82].VALUE_FREQUENCY[7][15] = 100;
_global.ITEMS_ITEM[81].VALUE[7][15] = 24;
_global.ITEMS_ITEM[81].VALUE_FREQUENCY[7][15] = 100;
_global.ITEMS_ITEM[84].VALUE[7][15] = 31;
_global.ITEMS_ITEM[84].VALUE_FREQUENCY[7][15] = 100;
_global.ITEMS_ITEM[89].VALUE[7][15] = 41;
_global.ITEMS_ITEM[89].VALUE_FREQUENCY[7][15] = 100;
_global.ITEMS_ITEM[87].VALUE[7][15] = 66;
_global.ITEMS_ITEM[87].VALUE_FREQUENCY[7][15] = 100;
_global.ITEMS_ITEM[149].FREQUENCY[7][15] = 6;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][15] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][15] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][15] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][15] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][15] = 25;
_global.GAMES_DOLLAR_USE[7][15] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][15] = 2;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][15] = 13;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][15] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][15] = 40;
_global.GAMES_BUDGET[7][16] = 1480;
_global.GAMES_BONUS_MONEY_LIMIT[7][16] = 240;
_global.GAMES_TARGET_VALUE[7][16] = 1380;
_global.GAMES_TIME_LIMIT[7][16] = 200;
_global.GAMES_LIMITED_TIME[7][16] = true;
_global.GAMES_ITEM_USE[7][16] = new Array(86, 82, 81, 84, 89, 87, 149);
_global.ITEMS_ITEM[86].FREQUENCY[7][16] = 15;
_global.ITEMS_ITEM[82].FREQUENCY[7][16] = 18;
_global.ITEMS_ITEM[81].FREQUENCY[7][16] = 21;
_global.ITEMS_ITEM[84].FREQUENCY[7][16] = 21;
_global.ITEMS_ITEM[89].FREQUENCY[7][16] = 20;
_global.ITEMS_ITEM[87].FREQUENCY[7][16] = 5;
_global.ITEMS_ITEM[86].VALUE[7][16] = 6;
_global.ITEMS_ITEM[86].VALUE_FREQUENCY[7][16] = 100;
_global.ITEMS_ITEM[82].VALUE[7][16] = 16;
_global.ITEMS_ITEM[82].VALUE_FREQUENCY[7][16] = 100;
_global.ITEMS_ITEM[81].VALUE[7][16] = 24;
_global.ITEMS_ITEM[81].VALUE_FREQUENCY[7][16] = 100;
_global.ITEMS_ITEM[84].VALUE[7][16] = 31;
_global.ITEMS_ITEM[84].VALUE_FREQUENCY[7][16] = 100;
_global.ITEMS_ITEM[89].VALUE[7][16] = 41;
_global.ITEMS_ITEM[89].VALUE_FREQUENCY[7][16] = 100;
_global.ITEMS_ITEM[87].VALUE[7][16] = 66;
_global.ITEMS_ITEM[87].VALUE_FREQUENCY[7][16] = 100;
_global.ITEMS_ITEM[149].FREQUENCY[7][16] = 8;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][16] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][16] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][16] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][16] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][16] = 25;
_global.GAMES_DOLLAR_USE[7][16] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][16] = 2;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][16] = 13;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][16] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][16] = 40;
_global.GAMES_BUDGET[7][17] = 1480;
_global.GAMES_BONUS_MONEY_LIMIT[7][16] = 300;
_global.GAMES_TARGET_VALUE[7][17] = 1400;
_global.GAMES_TIME_LIMIT[7][17] = 200;
_global.GAMES_LIMITED_TIME[7][17] = true;
_global.GAMES_ITEM_USE[7][17] = new Array(86, 82, 81, 84, 89, 87, 149);
_global.ITEMS_ITEM[86].FREQUENCY[7][17] = 15;
_global.ITEMS_ITEM[82].FREQUENCY[7][17] = 18;
_global.ITEMS_ITEM[81].FREQUENCY[7][17] = 21;
_global.ITEMS_ITEM[84].FREQUENCY[7][17] = 21;
_global.ITEMS_ITEM[89].FREQUENCY[7][17] = 20;
_global.ITEMS_ITEM[87].FREQUENCY[7][17] = 5;
_global.ITEMS_ITEM[86].VALUE[7][17] = 6;
_global.ITEMS_ITEM[86].VALUE_FREQUENCY[7][17] = 100;
_global.ITEMS_ITEM[82].VALUE[7][17] = 16;
_global.ITEMS_ITEM[82].VALUE_FREQUENCY[7][17] = 100;
_global.ITEMS_ITEM[81].VALUE[7][17] = 24;
_global.ITEMS_ITEM[81].VALUE_FREQUENCY[7][17] = 100;
_global.ITEMS_ITEM[84].VALUE[7][17] = 31;
_global.ITEMS_ITEM[84].VALUE_FREQUENCY[7][17] = 100;
_global.ITEMS_ITEM[89].VALUE[7][17] = 41;
_global.ITEMS_ITEM[89].VALUE_FREQUENCY[7][17] = 100;
_global.ITEMS_ITEM[87].VALUE[7][17] = 66;
_global.ITEMS_ITEM[87].VALUE_FREQUENCY[7][17] = 100;
_global.ITEMS_ITEM[149].FREQUENCY[7][17] = 10;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][17] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][17] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][17] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][17] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][17] = 25;
_global.GAMES_DOLLAR_USE[7][17] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][17] = 2;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][17] = 13;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][17] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][17] = 40;
_global.GAMES_BUDGET[7][18] = 1650;
_global.GAMES_TARGET_VALUE[7][18] = 1530;
_global.GAMES_TIME_LIMIT[7][18] = 200;
_global.GAMES_LIMITED_TIME[7][18] = true;
_global.GAMES_ITEM_USE[7][18] = new Array(86, 82, 81, 84, 89, 87);
_global.ITEMS_ITEM[86].FREQUENCY[7][18] = 15;
_global.ITEMS_ITEM[82].FREQUENCY[7][18] = 18;
_global.ITEMS_ITEM[81].FREQUENCY[7][18] = 21;
_global.ITEMS_ITEM[84].FREQUENCY[7][18] = 21;
_global.ITEMS_ITEM[89].FREQUENCY[7][18] = 20;
_global.ITEMS_ITEM[87].FREQUENCY[7][18] = 5;
_global.ITEMS_ITEM[86].VALUE[7][18] = 6;
_global.ITEMS_ITEM[86].VALUE_FREQUENCY[7][18] = 100;
_global.ITEMS_ITEM[82].VALUE[7][18] = 16;
_global.ITEMS_ITEM[82].VALUE_FREQUENCY[7][18] = 100;
_global.ITEMS_ITEM[81].VALUE[7][18] = 24;
_global.ITEMS_ITEM[81].VALUE_FREQUENCY[7][18] = 100;
_global.ITEMS_ITEM[84].VALUE[7][18] = 31;
_global.ITEMS_ITEM[84].VALUE_FREQUENCY[7][18] = 100;
_global.ITEMS_ITEM[89].VALUE[7][18] = 41;
_global.ITEMS_ITEM[89].VALUE_FREQUENCY[7][18] = 100;
_global.ITEMS_ITEM[87].VALUE[7][18] = 66;
_global.ITEMS_ITEM[87].VALUE_FREQUENCY[7][18] = 100;
_global.GAMES_DOLLAR_USE[7][18] = new Array(3, 5, 6, 7);
_global.DOLLARS_DOLLAR[3].FREQUENCY[7][18] = 2;
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][18] = 13;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][18] = 45;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][18] = 40;
_global.GAMES_BUDGET[7][19] = 2200;
_global.GAMES_TARGET_VALUE[7][19] = 1700;
_global.GAMES_TIME_LIMIT[7][19] = 200;
_global.GAMES_LIMITED_TIME[7][19] = true;
_global.GAMES_ITEM_USE[7][19] = new Array(70, 61, 64, 60, 66, 67, 73, 150);
_global.ITEMS_ITEM[70].FREQUENCY[7][19] = 10;
_global.ITEMS_ITEM[61].FREQUENCY[7][19] = 15;
_global.ITEMS_ITEM[64].FREQUENCY[7][19] = 15;
_global.ITEMS_ITEM[60].FREQUENCY[7][19] = 20;
_global.ITEMS_ITEM[66].FREQUENCY[7][19] = 25;
_global.ITEMS_ITEM[67].FREQUENCY[7][19] = 12;
_global.ITEMS_ITEM[73].FREQUENCY[7][19] = 3;
_global.ITEMS_ITEM[70].VALUE[7][19] = 13;
_global.ITEMS_ITEM[70].VALUE_FREQUENCY[7][19] = 100;
_global.ITEMS_ITEM[61].VALUE[7][19] = 18;
_global.ITEMS_ITEM[61].VALUE_FREQUENCY[7][19] = 100;
_global.ITEMS_ITEM[64].VALUE[7][19] = 26;
_global.ITEMS_ITEM[64].VALUE_FREQUENCY[7][19] = 100;
_global.ITEMS_ITEM[60].VALUE[7][19] = 34;
_global.ITEMS_ITEM[60].VALUE_FREQUENCY[7][19] = 100;
_global.ITEMS_ITEM[66].VALUE[7][19] = 43;
_global.ITEMS_ITEM[66].VALUE_FREQUENCY[7][19] = 100;
_global.ITEMS_ITEM[67].VALUE[7][19] = 69;
_global.ITEMS_ITEM[67].VALUE_FREQUENCY[7][19] = 100;
_global.ITEMS_ITEM[73].VALUE[7][19] = 105;
_global.ITEMS_ITEM[73].VALUE_FREQUENCY[7][19] = 100;
_global.ITEMS_ITEM[150].FREQUENCY[7][19] = 6;
_global.ITEMS_ITEM[150].FREQUENCY_LOWER_PERCENT[7][19] = 20;
_global.ITEMS_ITEM[150].MIN_VALUE[7][19] = 0;
_global.ITEMS_ITEM[150].MAX_VALUE[7][19] = 0;
_global.ITEMS_ITEM[150].COUNT_DOWN[7][19] = true;
_global.ITEMS_ITEM[150].COUNT_DOWN_VALUE[7][19] = 20;
_global.GAMES_DOLLAR_USE[7][19] = new Array(5, 6, 7, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][19] = 20;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][19] = 35;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][19] = 42;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][19] = 3;
_global.GAMES_BUDGET[7][20] = 2200;
_global.GAMES_TARGET_VALUE[7][20] = 1800;
_global.GAMES_TIME_LIMIT[7][20] = 200;
_global.GAMES_LIMITED_TIME[7][20] = true;
_global.GAMES_ITEM_USE[7][20] = new Array(70, 61, 64, 60, 66, 67, 73, 150);
_global.ITEMS_ITEM[70].FREQUENCY[7][20] = 10;
_global.ITEMS_ITEM[61].FREQUENCY[7][20] = 15;
_global.ITEMS_ITEM[64].FREQUENCY[7][20] = 15;
_global.ITEMS_ITEM[60].FREQUENCY[7][20] = 20;
_global.ITEMS_ITEM[66].FREQUENCY[7][20] = 25;
_global.ITEMS_ITEM[67].FREQUENCY[7][20] = 12;
_global.ITEMS_ITEM[73].FREQUENCY[7][20] = 3;
_global.ITEMS_ITEM[70].VALUE[7][20] = 13;
_global.ITEMS_ITEM[70].VALUE_FREQUENCY[7][20] = 100;
_global.ITEMS_ITEM[61].VALUE[7][20] = 18;
_global.ITEMS_ITEM[61].VALUE_FREQUENCY[7][20] = 100;
_global.ITEMS_ITEM[64].VALUE[7][20] = 26;
_global.ITEMS_ITEM[64].VALUE_FREQUENCY[7][20] = 100;
_global.ITEMS_ITEM[60].VALUE[7][20] = 34;
_global.ITEMS_ITEM[60].VALUE_FREQUENCY[7][20] = 100;
_global.ITEMS_ITEM[66].VALUE[7][20] = 43;
_global.ITEMS_ITEM[66].VALUE_FREQUENCY[7][20] = 100;
_global.ITEMS_ITEM[67].VALUE[7][20] = 69;
_global.ITEMS_ITEM[67].VALUE_FREQUENCY[7][20] = 100;
_global.ITEMS_ITEM[73].VALUE[7][20] = 105;
_global.ITEMS_ITEM[73].VALUE_FREQUENCY[7][20] = 100;
_global.ITEMS_ITEM[150].FREQUENCY[7][20] = 6;
_global.ITEMS_ITEM[150].FREQUENCY_LOWER_PERCENT[7][20] = 20;
_global.ITEMS_ITEM[150].MIN_VALUE[7][20] = 0;
_global.ITEMS_ITEM[150].MAX_VALUE[7][20] = 0;
_global.ITEMS_ITEM[150].COUNT_DOWN[7][20] = true;
_global.ITEMS_ITEM[150].COUNT_DOWN_VALUE[7][20] = 20;
_global.GAMES_DOLLAR_USE[7][20] = new Array(5, 6, 7, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][20] = 20;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][20] = 35;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][20] = 42;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][20] = 3;
_global.GAMES_BUDGET[7][21] = 2000;
_global.GAMES_BONUS_MONEY_LIMIT[7][21] = 200;
_global.GAMES_TARGET_VALUE[7][21] = 1875;
_global.GAMES_TIME_LIMIT[7][21] = 200;
_global.GAMES_LIMITED_TIME[7][21] = true;
_global.GAMES_ITEM_USE[7][21] = new Array(70, 61, 64, 60, 66, 67, 73, 149);
_global.ITEMS_ITEM[70].FREQUENCY[7][21] = 10;
_global.ITEMS_ITEM[61].FREQUENCY[7][21] = 15;
_global.ITEMS_ITEM[64].FREQUENCY[7][21] = 15;
_global.ITEMS_ITEM[60].FREQUENCY[7][21] = 20;
_global.ITEMS_ITEM[66].FREQUENCY[7][21] = 25;
_global.ITEMS_ITEM[67].FREQUENCY[7][21] = 12;
_global.ITEMS_ITEM[73].FREQUENCY[7][21] = 3;
_global.ITEMS_ITEM[70].VALUE[7][21] = 13;
_global.ITEMS_ITEM[70].VALUE_FREQUENCY[7][21] = 100;
_global.ITEMS_ITEM[61].VALUE[7][21] = 18;
_global.ITEMS_ITEM[61].VALUE_FREQUENCY[7][21] = 100;
_global.ITEMS_ITEM[64].VALUE[7][21] = 26;
_global.ITEMS_ITEM[64].VALUE_FREQUENCY[7][21] = 100;
_global.ITEMS_ITEM[60].VALUE[7][21] = 34;
_global.ITEMS_ITEM[60].VALUE_FREQUENCY[7][21] = 100;
_global.ITEMS_ITEM[66].VALUE[7][21] = 43;
_global.ITEMS_ITEM[66].VALUE_FREQUENCY[7][21] = 100;
_global.ITEMS_ITEM[67].VALUE[7][21] = 69;
_global.ITEMS_ITEM[67].VALUE_FREQUENCY[7][21] = 100;
_global.ITEMS_ITEM[73].VALUE[7][21] = 105;
_global.ITEMS_ITEM[73].VALUE_FREQUENCY[7][21] = 100;
_global.ITEMS_ITEM[149].FREQUENCY[7][21] = 8;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][21] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][21] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][21] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][21] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][21] = 25;
_global.GAMES_DOLLAR_USE[7][21] = new Array(5, 6, 7, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][21] = 20;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][21] = 35;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][21] = 42;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][21] = 3;
_global.GAMES_BUDGET[7][22] = 2200;
_global.GAMES_TARGET_VALUE[7][22] = 1950;
_global.GAMES_TIME_LIMIT[7][22] = 200;
_global.GAMES_LIMITED_TIME[7][22] = true;
_global.GAMES_ITEM_USE[7][22] = new Array(70, 61, 64, 60, 66, 67, 73, 150);
_global.ITEMS_ITEM[70].FREQUENCY[7][22] = 10;
_global.ITEMS_ITEM[61].FREQUENCY[7][22] = 15;
_global.ITEMS_ITEM[64].FREQUENCY[7][22] = 15;
_global.ITEMS_ITEM[60].FREQUENCY[7][22] = 20;
_global.ITEMS_ITEM[66].FREQUENCY[7][22] = 25;
_global.ITEMS_ITEM[67].FREQUENCY[7][22] = 12;
_global.ITEMS_ITEM[73].FREQUENCY[7][22] = 3;
_global.ITEMS_ITEM[70].VALUE[7][22] = 13;
_global.ITEMS_ITEM[70].VALUE_FREQUENCY[7][22] = 100;
_global.ITEMS_ITEM[61].VALUE[7][22] = 18;
_global.ITEMS_ITEM[61].VALUE_FREQUENCY[7][22] = 100;
_global.ITEMS_ITEM[64].VALUE[7][22] = 26;
_global.ITEMS_ITEM[64].VALUE_FREQUENCY[7][22] = 100;
_global.ITEMS_ITEM[60].VALUE[7][22] = 34;
_global.ITEMS_ITEM[60].VALUE_FREQUENCY[7][22] = 100;
_global.ITEMS_ITEM[66].VALUE[7][22] = 43;
_global.ITEMS_ITEM[66].VALUE_FREQUENCY[7][22] = 100;
_global.ITEMS_ITEM[67].VALUE[7][22] = 69;
_global.ITEMS_ITEM[67].VALUE_FREQUENCY[7][22] = 100;
_global.ITEMS_ITEM[73].VALUE[7][22] = 105;
_global.ITEMS_ITEM[73].VALUE_FREQUENCY[7][22] = 100;
_global.ITEMS_ITEM[150].FREQUENCY[7][22] = 6;
_global.ITEMS_ITEM[150].FREQUENCY_LOWER_PERCENT[7][22] = 20;
_global.ITEMS_ITEM[150].MIN_VALUE[7][22] = 0;
_global.ITEMS_ITEM[150].MAX_VALUE[7][22] = 0;
_global.ITEMS_ITEM[150].COUNT_DOWN[7][22] = true;
_global.ITEMS_ITEM[150].COUNT_DOWN_VALUE[7][22] = 20;
_global.GAMES_DOLLAR_USE[7][22] = new Array(5, 6, 7, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][22] = 20;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][22] = 35;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][22] = 42;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][22] = 3;
_global.GAMES_BUDGET[7][23] = 2100;
_global.GAMES_BONUS_MONEY_LIMIT[7][23] = 275;
_global.GAMES_TARGET_VALUE[7][23] = 2000;
_global.GAMES_TIME_LIMIT[7][23] = 200;
_global.GAMES_LIMITED_TIME[7][23] = true;
_global.GAMES_ITEM_USE[7][23] = new Array(70, 61, 64, 60, 66, 67, 73, 149);
_global.ITEMS_ITEM[70].FREQUENCY[7][23] = 10;
_global.ITEMS_ITEM[61].FREQUENCY[7][23] = 15;
_global.ITEMS_ITEM[64].FREQUENCY[7][23] = 15;
_global.ITEMS_ITEM[60].FREQUENCY[7][23] = 20;
_global.ITEMS_ITEM[66].FREQUENCY[7][23] = 25;
_global.ITEMS_ITEM[67].FREQUENCY[7][23] = 12;
_global.ITEMS_ITEM[73].FREQUENCY[7][23] = 3;
_global.ITEMS_ITEM[70].VALUE[7][23] = 13;
_global.ITEMS_ITEM[70].VALUE_FREQUENCY[7][23] = 100;
_global.ITEMS_ITEM[61].VALUE[7][23] = 18;
_global.ITEMS_ITEM[61].VALUE_FREQUENCY[7][23] = 100;
_global.ITEMS_ITEM[64].VALUE[7][23] = 26;
_global.ITEMS_ITEM[64].VALUE_FREQUENCY[7][23] = 100;
_global.ITEMS_ITEM[60].VALUE[7][23] = 34;
_global.ITEMS_ITEM[60].VALUE_FREQUENCY[7][23] = 100;
_global.ITEMS_ITEM[66].VALUE[7][23] = 43;
_global.ITEMS_ITEM[66].VALUE_FREQUENCY[7][23] = 100;
_global.ITEMS_ITEM[67].VALUE[7][23] = 69;
_global.ITEMS_ITEM[67].VALUE_FREQUENCY[7][23] = 100;
_global.ITEMS_ITEM[73].VALUE[7][23] = 105;
_global.ITEMS_ITEM[73].VALUE_FREQUENCY[7][23] = 100;
_global.ITEMS_ITEM[149].FREQUENCY[7][23] = 8;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][23] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][23] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][23] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][23] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][23] = 25;
_global.GAMES_DOLLAR_USE[7][23] = new Array(5, 6, 7, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][23] = 20;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][23] = 35;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][23] = 42;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][23] = 3;
_global.GAMES_BUDGET[7][24] = 2200;
_global.GAMES_TARGET_VALUE[7][24] = 2075;
_global.GAMES_TIME_LIMIT[7][24] = 200;
_global.GAMES_LIMITED_TIME[7][24] = true;
_global.GAMES_ITEM_USE[7][24] = new Array(70, 61, 64, 60, 66, 67, 73);
_global.ITEMS_ITEM[70].FREQUENCY[7][24] = 10;
_global.ITEMS_ITEM[61].FREQUENCY[7][24] = 15;
_global.ITEMS_ITEM[64].FREQUENCY[7][24] = 15;
_global.ITEMS_ITEM[60].FREQUENCY[7][24] = 20;
_global.ITEMS_ITEM[66].FREQUENCY[7][24] = 25;
_global.ITEMS_ITEM[67].FREQUENCY[7][24] = 12;
_global.ITEMS_ITEM[73].FREQUENCY[7][24] = 3;
_global.ITEMS_ITEM[70].VALUE[7][24] = 13;
_global.ITEMS_ITEM[70].VALUE_FREQUENCY[7][24] = 100;
_global.ITEMS_ITEM[61].VALUE[7][24] = 18;
_global.ITEMS_ITEM[61].VALUE_FREQUENCY[7][24] = 100;
_global.ITEMS_ITEM[64].VALUE[7][24] = 26;
_global.ITEMS_ITEM[64].VALUE_FREQUENCY[7][24] = 100;
_global.ITEMS_ITEM[60].VALUE[7][24] = 34;
_global.ITEMS_ITEM[60].VALUE_FREQUENCY[7][24] = 100;
_global.ITEMS_ITEM[66].VALUE[7][24] = 43;
_global.ITEMS_ITEM[66].VALUE_FREQUENCY[7][24] = 100;
_global.ITEMS_ITEM[67].VALUE[7][24] = 69;
_global.ITEMS_ITEM[67].VALUE_FREQUENCY[7][24] = 100;
_global.ITEMS_ITEM[73].VALUE[7][24] = 105;
_global.ITEMS_ITEM[73].VALUE_FREQUENCY[7][24] = 100;
_global.GAMES_DOLLAR_USE[7][24] = new Array(5, 6, 7, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][24] = 20;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][24] = 35;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][24] = 42;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][24] = 3;
_global.GAMES_BUDGET[7][25] = 5000;
_global.GAMES_TARGET_VALUE[7][25] = 3600;
_global.GAMES_TIME_LIMIT[7][25] = 220;
_global.GAMES_LIMITED_TIME[7][25] = true;
_global.GAMES_ITEM_USE[7][25] = new Array(121, 122, 125, 129, 124, 126, 120, 127);
_global.GAMES_MAKE_COUPON_ITEM = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][25] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][25][0] = 122;
_global.GAMES_COUPON_USE = new Array();
_global.GAMES_COUPON_USE[7] = new Array();
_global.GAMES_COUPON_USE[7][25] = 13;
_global.ITEMS_ITEM[121].FREQUENCY[7][25] = 6;
_global.ITEMS_ITEM[122].FREQUENCY[7][25] = 3;
_global.ITEMS_ITEM[125].FREQUENCY[7][25] = 22;
_global.ITEMS_ITEM[129].FREQUENCY[7][25] = 24;
_global.ITEMS_ITEM[124].FREQUENCY[7][25] = 25;
_global.ITEMS_ITEM[126].FREQUENCY[7][25] = 11;
_global.ITEMS_ITEM[120].FREQUENCY[7][25] = 6;
_global.ITEMS_ITEM[127].FREQUENCY[7][25] = 3;
_global.ITEMS_ITEM[121].VALUE[7][25] = 14;
_global.ITEMS_ITEM[121].VALUE_FREQUENCY[7][25] = 100;
_global.ITEMS_ITEM[122].VALUE[7][25] = 110;
_global.ITEMS_ITEM[122].VALUE_FREQUENCY[7][25] = 100;
_global.ITEMS_ITEM[125].VALUE[7][25] = 62;
_global.ITEMS_ITEM[125].VALUE_FREQUENCY[7][25] = 100;
_global.ITEMS_ITEM[129].VALUE[7][25] = 87;
_global.ITEMS_ITEM[129].VALUE_FREQUENCY[7][25] = 100;
_global.ITEMS_ITEM[124].VALUE[7][25] = 41;
_global.ITEMS_ITEM[124].VALUE_FREQUENCY[7][25] = 100;
_global.ITEMS_ITEM[126].VALUE[7][25] = 31;
_global.ITEMS_ITEM[126].VALUE_FREQUENCY[7][25] = 100;
_global.ITEMS_ITEM[120].VALUE[7][25] = 17;
_global.ITEMS_ITEM[120].VALUE_FREQUENCY[7][25] = 100;
_global.ITEMS_ITEM[127].VALUE[7][25] = 26;
_global.ITEMS_ITEM[127].VALUE_FREQUENCY[7][25] = 100;
_global.GAMES_DOLLAR_USE[7][25] = new Array(5, 6, 7, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][25] = 8;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][25] = 40;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][25] = 48;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][25] = 4;
_global.GAMES_BUDGET[7][26] = 5000;
_global.GAMES_TARGET_VALUE[7][26] = 3750;
_global.GAMES_TIME_LIMIT[7][26] = 220;
_global.GAMES_LIMITED_TIME[7][26] = true;
_global.GAMES_ITEM_USE[7][26] = new Array(121, 122, 125, 129, 124, 126, 120, 127);
_global.GAMES_MAKE_COUPON_ITEM[7][26] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][26][0] = 122;
_global.GAMES_COUPON_USE[7][26] = 13;
_global.ITEMS_ITEM[121].FREQUENCY[7][26] = 6;
_global.ITEMS_ITEM[122].FREQUENCY[7][26] = 3;
_global.ITEMS_ITEM[125].FREQUENCY[7][26] = 22;
_global.ITEMS_ITEM[129].FREQUENCY[7][26] = 24;
_global.ITEMS_ITEM[124].FREQUENCY[7][26] = 25;
_global.ITEMS_ITEM[126].FREQUENCY[7][26] = 11;
_global.ITEMS_ITEM[120].FREQUENCY[7][26] = 6;
_global.ITEMS_ITEM[127].FREQUENCY[7][26] = 3;
_global.ITEMS_ITEM[121].VALUE[7][26] = 14;
_global.ITEMS_ITEM[121].VALUE_FREQUENCY[7][26] = 100;
_global.ITEMS_ITEM[122].VALUE[7][26] = 110;
_global.ITEMS_ITEM[122].VALUE_FREQUENCY[7][26] = 100;
_global.ITEMS_ITEM[125].VALUE[7][26] = 62;
_global.ITEMS_ITEM[125].VALUE_FREQUENCY[7][26] = 100;
_global.ITEMS_ITEM[129].VALUE[7][26] = 87;
_global.ITEMS_ITEM[129].VALUE_FREQUENCY[7][26] = 100;
_global.ITEMS_ITEM[124].VALUE[7][26] = 41;
_global.ITEMS_ITEM[124].VALUE_FREQUENCY[7][26] = 100;
_global.ITEMS_ITEM[126].VALUE[7][26] = 31;
_global.ITEMS_ITEM[126].VALUE_FREQUENCY[7][26] = 100;
_global.ITEMS_ITEM[120].VALUE[7][26] = 17;
_global.ITEMS_ITEM[120].VALUE_FREQUENCY[7][26] = 100;
_global.ITEMS_ITEM[127].VALUE[7][26] = 26;
_global.ITEMS_ITEM[127].VALUE_FREQUENCY[7][26] = 100;
_global.GAMES_DOLLAR_USE[7][26] = new Array(5, 6, 7, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][26] = 8;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][26] = 40;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][26] = 48;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][26] = 4;
_global.GAMES_BUDGET[7][27] = 5000;
_global.GAMES_TARGET_VALUE[7][27] = 3900;
_global.GAMES_TIME_LIMIT[7][27] = 220;
_global.GAMES_LIMITED_TIME[7][27] = true;
_global.GAMES_ITEM_USE[7][27] = new Array(121, 122, 125, 129, 124, 126, 120, 127);
_global.GAMES_MAKE_COUPON_ITEM[7][27] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][27][0] = 122;
_global.GAMES_COUPON_USE[7][27] = 13;
_global.ITEMS_ITEM[121].FREQUENCY[7][27] = 6;
_global.ITEMS_ITEM[122].FREQUENCY[7][27] = 3;
_global.ITEMS_ITEM[125].FREQUENCY[7][27] = 22;
_global.ITEMS_ITEM[129].FREQUENCY[7][27] = 24;
_global.ITEMS_ITEM[124].FREQUENCY[7][27] = 25;
_global.ITEMS_ITEM[126].FREQUENCY[7][27] = 11;
_global.ITEMS_ITEM[120].FREQUENCY[7][27] = 6;
_global.ITEMS_ITEM[127].FREQUENCY[7][27] = 3;
_global.ITEMS_ITEM[121].VALUE[7][27] = 14;
_global.ITEMS_ITEM[121].VALUE_FREQUENCY[7][27] = 100;
_global.ITEMS_ITEM[122].VALUE[7][27] = 110;
_global.ITEMS_ITEM[122].VALUE_FREQUENCY[7][27] = 100;
_global.ITEMS_ITEM[125].VALUE[7][27] = 62;
_global.ITEMS_ITEM[125].VALUE_FREQUENCY[7][27] = 100;
_global.ITEMS_ITEM[129].VALUE[7][27] = 87;
_global.ITEMS_ITEM[129].VALUE_FREQUENCY[7][27] = 100;
_global.ITEMS_ITEM[124].VALUE[7][27] = 41;
_global.ITEMS_ITEM[124].VALUE_FREQUENCY[7][27] = 100;
_global.ITEMS_ITEM[126].VALUE[7][27] = 31;
_global.ITEMS_ITEM[126].VALUE_FREQUENCY[7][27] = 100;
_global.ITEMS_ITEM[120].VALUE[7][27] = 17;
_global.ITEMS_ITEM[120].VALUE_FREQUENCY[7][27] = 100;
_global.ITEMS_ITEM[127].VALUE[7][27] = 26;
_global.ITEMS_ITEM[127].VALUE_FREQUENCY[7][27] = 100;
_global.GAMES_DOLLAR_USE[7][27] = new Array(5, 6, 7, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][27] = 8;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][27] = 40;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][27] = 48;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][27] = 4;
_global.GAMES_BUDGET[7][28] = 5000;
_global.GAMES_TARGET_VALUE[7][28] = 4000;
_global.GAMES_TIME_LIMIT[7][28] = 220;
_global.GAMES_LIMITED_TIME[7][28] = true;
_global.GAMES_ITEM_USE[7][28] = new Array(121, 122, 125, 129, 124, 126, 120, 127);
_global.GAMES_MAKE_COUPON_ITEM[7][28] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][28][0] = 122;
_global.GAMES_COUPON_USE[7][28] = 13;
_global.ITEMS_ITEM[121].FREQUENCY[7][28] = 6;
_global.ITEMS_ITEM[122].FREQUENCY[7][28] = 3;
_global.ITEMS_ITEM[125].FREQUENCY[7][28] = 22;
_global.ITEMS_ITEM[129].FREQUENCY[7][28] = 24;
_global.ITEMS_ITEM[124].FREQUENCY[7][28] = 25;
_global.ITEMS_ITEM[126].FREQUENCY[7][28] = 11;
_global.ITEMS_ITEM[120].FREQUENCY[7][28] = 6;
_global.ITEMS_ITEM[127].FREQUENCY[7][28] = 3;
_global.ITEMS_ITEM[121].VALUE[7][28] = 14;
_global.ITEMS_ITEM[121].VALUE_FREQUENCY[7][28] = 100;
_global.ITEMS_ITEM[122].VALUE[7][28] = 110;
_global.ITEMS_ITEM[122].VALUE_FREQUENCY[7][28] = 100;
_global.ITEMS_ITEM[125].VALUE[7][28] = 62;
_global.ITEMS_ITEM[125].VALUE_FREQUENCY[7][28] = 100;
_global.ITEMS_ITEM[129].VALUE[7][28] = 87;
_global.ITEMS_ITEM[129].VALUE_FREQUENCY[7][28] = 100;
_global.ITEMS_ITEM[124].VALUE[7][28] = 41;
_global.ITEMS_ITEM[124].VALUE_FREQUENCY[7][28] = 100;
_global.ITEMS_ITEM[126].VALUE[7][28] = 31;
_global.ITEMS_ITEM[126].VALUE_FREQUENCY[7][28] = 100;
_global.ITEMS_ITEM[120].VALUE[7][28] = 17;
_global.ITEMS_ITEM[120].VALUE_FREQUENCY[7][28] = 100;
_global.ITEMS_ITEM[127].VALUE[7][28] = 26;
_global.ITEMS_ITEM[127].VALUE_FREQUENCY[7][28] = 100;
_global.GAMES_DOLLAR_USE[7][28] = new Array(5, 6, 7, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][28] = 8;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][28] = 40;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][28] = 48;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][28] = 4;
_global.GAMES_BUDGET[7][29] = 4600;
_global.GAMES_BONUS_MONEY_LIMIT[7][29] = 400;
_global.GAMES_TARGET_VALUE[7][29] = 4200;
_global.GAMES_TIME_LIMIT[7][29] = 220;
_global.GAMES_LIMITED_TIME[7][29] = true;
_global.GAMES_ITEM_USE[7][29] = new Array(121, 122, 125, 129, 124, 126, 120, 127, 149);
_global.GAMES_MAKE_COUPON_ITEM[7][29] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][29][0] = 122;
_global.GAMES_COUPON_USE[7][29] = 13;
_global.ITEMS_ITEM[121].FREQUENCY[7][29] = 6;
_global.ITEMS_ITEM[122].FREQUENCY[7][29] = 3;
_global.ITEMS_ITEM[125].FREQUENCY[7][29] = 22;
_global.ITEMS_ITEM[129].FREQUENCY[7][29] = 24;
_global.ITEMS_ITEM[124].FREQUENCY[7][29] = 25;
_global.ITEMS_ITEM[126].FREQUENCY[7][29] = 11;
_global.ITEMS_ITEM[120].FREQUENCY[7][29] = 6;
_global.ITEMS_ITEM[127].FREQUENCY[7][29] = 3;
_global.ITEMS_ITEM[121].VALUE[7][29] = 14;
_global.ITEMS_ITEM[121].VALUE_FREQUENCY[7][29] = 100;
_global.ITEMS_ITEM[122].VALUE[7][29] = 110;
_global.ITEMS_ITEM[122].VALUE_FREQUENCY[7][29] = 100;
_global.ITEMS_ITEM[125].VALUE[7][29] = 62;
_global.ITEMS_ITEM[125].VALUE_FREQUENCY[7][29] = 100;
_global.ITEMS_ITEM[129].VALUE[7][29] = 87;
_global.ITEMS_ITEM[129].VALUE_FREQUENCY[7][29] = 100;
_global.ITEMS_ITEM[124].VALUE[7][29] = 41;
_global.ITEMS_ITEM[124].VALUE_FREQUENCY[7][29] = 100;
_global.ITEMS_ITEM[126].VALUE[7][29] = 31;
_global.ITEMS_ITEM[126].VALUE_FREQUENCY[7][29] = 100;
_global.ITEMS_ITEM[120].VALUE[7][29] = 17;
_global.ITEMS_ITEM[120].VALUE_FREQUENCY[7][29] = 100;
_global.ITEMS_ITEM[127].VALUE[7][29] = 26;
_global.ITEMS_ITEM[127].VALUE_FREQUENCY[7][29] = 100;
_global.ITEMS_ITEM[149].FREQUENCY[7][29] = 5;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][29] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][29] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][29] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][29] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][29] = 25;
_global.GAMES_DOLLAR_USE[7][29] = new Array(5, 6, 7, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][29] = 11;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][29] = 40;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][29] = 48;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][29] = 4;
_global.GAMES_BUDGET[7][30] = 5000;
_global.GAMES_TARGET_VALUE[7][30] = 4350;
_global.GAMES_TIME_LIMIT[7][30] = 220;
_global.GAMES_LIMITED_TIME[7][30] = true;
_global.GAMES_ITEM_USE[7][30] = new Array(121, 122, 125, 129, 124, 126, 120, 127);
_global.GAMES_MAKE_COUPON_ITEM[7][30] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][30][0] = 122;
_global.GAMES_COUPON_USE[7][30] = 13;
_global.ITEMS_ITEM[121].FREQUENCY[7][30] = 6;
_global.ITEMS_ITEM[122].FREQUENCY[7][30] = 3;
_global.ITEMS_ITEM[125].FREQUENCY[7][30] = 22;
_global.ITEMS_ITEM[129].FREQUENCY[7][30] = 24;
_global.ITEMS_ITEM[124].FREQUENCY[7][30] = 25;
_global.ITEMS_ITEM[126].FREQUENCY[7][30] = 11;
_global.ITEMS_ITEM[120].FREQUENCY[7][30] = 6;
_global.ITEMS_ITEM[127].FREQUENCY[7][30] = 3;
_global.ITEMS_ITEM[121].VALUE[7][30] = 14;
_global.ITEMS_ITEM[121].VALUE_FREQUENCY[7][30] = 100;
_global.ITEMS_ITEM[122].VALUE[7][30] = 110;
_global.ITEMS_ITEM[122].VALUE_FREQUENCY[7][30] = 100;
_global.ITEMS_ITEM[125].VALUE[7][30] = 62;
_global.ITEMS_ITEM[125].VALUE_FREQUENCY[7][30] = 100;
_global.ITEMS_ITEM[129].VALUE[7][30] = 87;
_global.ITEMS_ITEM[129].VALUE_FREQUENCY[7][30] = 100;
_global.ITEMS_ITEM[124].VALUE[7][30] = 41;
_global.ITEMS_ITEM[124].VALUE_FREQUENCY[7][30] = 100;
_global.ITEMS_ITEM[126].VALUE[7][30] = 31;
_global.ITEMS_ITEM[126].VALUE_FREQUENCY[7][30] = 100;
_global.ITEMS_ITEM[120].VALUE[7][30] = 17;
_global.ITEMS_ITEM[120].VALUE_FREQUENCY[7][30] = 100;
_global.ITEMS_ITEM[127].VALUE[7][30] = 26;
_global.ITEMS_ITEM[127].VALUE_FREQUENCY[7][30] = 100;
_global.GAMES_DOLLAR_USE[7][30] = new Array(5, 6, 7, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][30] = 8;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][30] = 40;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][30] = 48;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][30] = 4;
_global.GAMES_BUDGET[7][31] = 7500;
_global.GAMES_TARGET_VALUE[7][31] = 5400;
_global.GAMES_TIME_LIMIT[7][31] = 220;
_global.GAMES_BONUS_TIME_LIMIT[7][31] = 50;
_global.GAMES_LIMITED_TIME[7][31] = true;
_global.GAMES_ITEM_USE[7][31] = new Array(22, 23, 24, 25, 29, 30, 32, 26, 27);
_global.GAMES_MAKE_COUPON_ITEM[7][31] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][31][0] = 30;
_global.GAMES_COUPON_USE[7][31] = 13;
_global.ITEMS_ITEM[22].FREQUENCY[7][31] = 13;
_global.ITEMS_ITEM[23].FREQUENCY[7][31] = 12;
_global.ITEMS_ITEM[24].FREQUENCY[7][31] = 12;
_global.ITEMS_ITEM[25].FREQUENCY[7][31] = 6;
_global.ITEMS_ITEM[29].FREQUENCY[7][31] = 16;
_global.ITEMS_ITEM[30].FREQUENCY[7][31] = 5;
_global.ITEMS_ITEM[32].FREQUENCY[7][31] = 12;
_global.ITEMS_ITEM[26].FREQUENCY[7][31] = 16;
_global.ITEMS_ITEM[27].FREQUENCY[7][31] = 8;
_global.ITEMS_ITEM[22].VALUE[7][31] = 42;
_global.ITEMS_ITEM[22].VALUE_FREQUENCY[7][31] = 100;
_global.ITEMS_ITEM[23].VALUE[7][31] = 55;
_global.ITEMS_ITEM[23].VALUE_FREQUENCY[7][31] = 100;
_global.ITEMS_ITEM[24].VALUE[7][31] = 38;
_global.ITEMS_ITEM[24].VALUE_FREQUENCY[7][31] = 100;
_global.ITEMS_ITEM[25].VALUE[7][31] = 18;
_global.ITEMS_ITEM[25].VALUE_FREQUENCY[7][31] = 100;
_global.ITEMS_ITEM[29].VALUE[7][31] = 92;
_global.ITEMS_ITEM[29].VALUE_FREQUENCY[7][31] = 100;
_global.ITEMS_ITEM[30].VALUE[7][31] = 356;
_global.ITEMS_ITEM[30].VALUE_FREQUENCY[7][31] = 100;
_global.ITEMS_ITEM[32].VALUE[7][31] = 189;
_global.ITEMS_ITEM[32].VALUE_FREQUENCY[7][31] = 100;
_global.ITEMS_ITEM[26].VALUE[7][31] = 87;
_global.ITEMS_ITEM[26].VALUE_FREQUENCY[7][31] = 100;
_global.ITEMS_ITEM[27].VALUE[7][31] = 14;
_global.ITEMS_ITEM[27].VALUE_FREQUENCY[7][31] = 100;
_global.GAMES_DOLLAR_USE[7][31] = new Array(5, 6, 7, 12, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][31] = 1;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][31] = 29;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][31] = 45;
_global.DOLLARS_DOLLAR[12].FREQUENCY[7][31] = 19;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][31] = 4;
_global.GAMES_BUDGET[7][32] = 7500;
_global.GAMES_BONUS_MONEY_LIMIT[7][32] = 200;
_global.GAMES_TARGET_VALUE[7][32] = 5625;
_global.GAMES_TIME_LIMIT[7][32] = 180;
_global.GAMES_BONUS_TIME_LIMIT[7][32] = 90;
_global.GAMES_LIMITED_TIME[7][32] = true;
_global.GAMES_ITEM_USE[7][32] = new Array(22, 23, 24, 25, 29, 30, 32, 26, 27, 149, 151);
_global.GAMES_MAKE_COUPON_ITEM[7][32] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][32][0] = 30;
_global.GAMES_COUPON_USE[7][32] = 13;
_global.ITEMS_ITEM[22].FREQUENCY[7][32] = 13;
_global.ITEMS_ITEM[23].FREQUENCY[7][32] = 12;
_global.ITEMS_ITEM[24].FREQUENCY[7][32] = 12;
_global.ITEMS_ITEM[25].FREQUENCY[7][32] = 6;
_global.ITEMS_ITEM[29].FREQUENCY[7][32] = 16;
_global.ITEMS_ITEM[30].FREQUENCY[7][32] = 5;
_global.ITEMS_ITEM[32].FREQUENCY[7][32] = 12;
_global.ITEMS_ITEM[26].FREQUENCY[7][32] = 16;
_global.ITEMS_ITEM[27].FREQUENCY[7][32] = 8;
_global.ITEMS_ITEM[22].VALUE[7][32] = 42;
_global.ITEMS_ITEM[22].VALUE_FREQUENCY[7][32] = 100;
_global.ITEMS_ITEM[23].VALUE[7][32] = 55;
_global.ITEMS_ITEM[23].VALUE_FREQUENCY[7][32] = 100;
_global.ITEMS_ITEM[24].VALUE[7][32] = 38;
_global.ITEMS_ITEM[24].VALUE_FREQUENCY[7][32] = 100;
_global.ITEMS_ITEM[25].VALUE[7][32] = 18;
_global.ITEMS_ITEM[25].VALUE_FREQUENCY[7][32] = 100;
_global.ITEMS_ITEM[29].VALUE[7][32] = 92;
_global.ITEMS_ITEM[29].VALUE_FREQUENCY[7][32] = 100;
_global.ITEMS_ITEM[30].VALUE[7][32] = 356;
_global.ITEMS_ITEM[30].VALUE_FREQUENCY[7][32] = 100;
_global.ITEMS_ITEM[32].VALUE[7][32] = 189;
_global.ITEMS_ITEM[32].VALUE_FREQUENCY[7][32] = 100;
_global.ITEMS_ITEM[26].VALUE[7][32] = 87;
_global.ITEMS_ITEM[26].VALUE_FREQUENCY[7][32] = 100;
_global.ITEMS_ITEM[27].VALUE[7][32] = 14;
_global.ITEMS_ITEM[27].VALUE_FREQUENCY[7][32] = 100;
_global.ITEMS_ITEM[149].FREQUENCY[7][32] = 6;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][32] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][32] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][32] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][32] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][32] = 25;
_global.ITEMS_ITEM[151].FREQUENCY[7][32] = 6;
_global.ITEMS_ITEM[151].MIN_VALUE[7][32] = 0;
_global.ITEMS_ITEM[151].MAX_VALUE[7][32] = 0;
_global.ITEMS_ITEM[151].COUNT_DOWN[7][32] = true;
_global.ITEMS_ITEM[151].COUNT_DOWN_VALUE[7][32] = 25;
_global.GAMES_DOLLAR_USE[7][32] = new Array(5, 6, 7, 12, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][32] = 1;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][32] = 29;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][32] = 45;
_global.DOLLARS_DOLLAR[12].FREQUENCY[7][32] = 19;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][32] = 4;
_global.GAMES_BUDGET[7][33] = 7500;
_global.GAMES_BONUS_MONEY_LIMIT[7][33] = 400;
_global.GAMES_TARGET_VALUE[7][33] = 5850;
_global.GAMES_TIME_LIMIT[7][33] = 200;
_global.GAMES_BONUS_TIME_LIMIT[7][33] = 50;
_global.GAMES_LIMITED_TIME[7][33] = true;
_global.GAMES_ITEM_USE[7][33] = new Array(22, 23, 24, 25, 29, 30, 32, 26, 27, 149, 151);
_global.GAMES_MAKE_COUPON_ITEM[7][33] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][33][0] = 30;
_global.GAMES_COUPON_USE[7][33] = 13;
_global.ITEMS_ITEM[22].FREQUENCY[7][33] = 13;
_global.ITEMS_ITEM[23].FREQUENCY[7][33] = 12;
_global.ITEMS_ITEM[24].FREQUENCY[7][33] = 12;
_global.ITEMS_ITEM[25].FREQUENCY[7][33] = 6;
_global.ITEMS_ITEM[29].FREQUENCY[7][33] = 16;
_global.ITEMS_ITEM[30].FREQUENCY[7][33] = 5;
_global.ITEMS_ITEM[32].FREQUENCY[7][33] = 12;
_global.ITEMS_ITEM[26].FREQUENCY[7][33] = 16;
_global.ITEMS_ITEM[27].FREQUENCY[7][33] = 8;
_global.ITEMS_ITEM[22].VALUE[7][33] = 42;
_global.ITEMS_ITEM[22].VALUE_FREQUENCY[7][33] = 100;
_global.ITEMS_ITEM[23].VALUE[7][33] = 55;
_global.ITEMS_ITEM[23].VALUE_FREQUENCY[7][33] = 100;
_global.ITEMS_ITEM[24].VALUE[7][33] = 38;
_global.ITEMS_ITEM[24].VALUE_FREQUENCY[7][33] = 100;
_global.ITEMS_ITEM[25].VALUE[7][33] = 18;
_global.ITEMS_ITEM[25].VALUE_FREQUENCY[7][33] = 100;
_global.ITEMS_ITEM[29].VALUE[7][33] = 92;
_global.ITEMS_ITEM[29].VALUE_FREQUENCY[7][33] = 100;
_global.ITEMS_ITEM[30].VALUE[7][33] = 356;
_global.ITEMS_ITEM[30].VALUE_FREQUENCY[7][33] = 100;
_global.ITEMS_ITEM[32].VALUE[7][33] = 189;
_global.ITEMS_ITEM[32].VALUE_FREQUENCY[7][33] = 100;
_global.ITEMS_ITEM[26].VALUE[7][33] = 87;
_global.ITEMS_ITEM[26].VALUE_FREQUENCY[7][33] = 100;
_global.ITEMS_ITEM[27].VALUE[7][33] = 14;
_global.ITEMS_ITEM[27].VALUE_FREQUENCY[7][33] = 100;
_global.ITEMS_ITEM[149].FREQUENCY[7][33] = 6;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][33] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][33] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][33] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][33] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][33] = 25;
_global.ITEMS_ITEM[151].FREQUENCY[7][33] = 6;
_global.ITEMS_ITEM[151].MIN_VALUE[7][33] = 0;
_global.ITEMS_ITEM[151].MAX_VALUE[7][33] = 0;
_global.ITEMS_ITEM[151].COUNT_DOWN[7][33] = true;
_global.ITEMS_ITEM[151].COUNT_DOWN_VALUE[7][33] = 25;
_global.GAMES_DOLLAR_USE[7][33] = new Array(5, 6, 7, 12, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][33] = 1;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][33] = 29;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][33] = 45;
_global.DOLLARS_DOLLAR[12].FREQUENCY[7][33] = 19;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][33] = 4;
_global.GAMES_BUDGET[7][34] = 7500;
_global.GAMES_BONUS_MONEY_LIMIT[7][34] = 600;
_global.GAMES_TARGET_VALUE[7][34] = 6000;
_global.GAMES_TIME_LIMIT[7][34] = 190;
_global.GAMES_BONUS_TIME_LIMIT[7][34] = 50;
_global.GAMES_LIMITED_TIME[7][34] = true;
_global.GAMES_ITEM_USE[7][34] = new Array(22, 23, 24, 25, 29, 30, 32, 26, 27, 149, 151);
_global.GAMES_MAKE_COUPON_ITEM[7][34] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][34][0] = 30;
_global.GAMES_COUPON_USE[7][34] = 13;
_global.ITEMS_ITEM[22].FREQUENCY[7][34] = 13;
_global.ITEMS_ITEM[23].FREQUENCY[7][34] = 12;
_global.ITEMS_ITEM[24].FREQUENCY[7][34] = 12;
_global.ITEMS_ITEM[25].FREQUENCY[7][34] = 6;
_global.ITEMS_ITEM[29].FREQUENCY[7][34] = 16;
_global.ITEMS_ITEM[30].FREQUENCY[7][34] = 5;
_global.ITEMS_ITEM[32].FREQUENCY[7][34] = 12;
_global.ITEMS_ITEM[26].FREQUENCY[7][34] = 16;
_global.ITEMS_ITEM[27].FREQUENCY[7][34] = 8;
_global.ITEMS_ITEM[22].VALUE[7][34] = 42;
_global.ITEMS_ITEM[22].VALUE_FREQUENCY[7][34] = 100;
_global.ITEMS_ITEM[23].VALUE[7][34] = 55;
_global.ITEMS_ITEM[23].VALUE_FREQUENCY[7][34] = 100;
_global.ITEMS_ITEM[24].VALUE[7][34] = 38;
_global.ITEMS_ITEM[24].VALUE_FREQUENCY[7][34] = 100;
_global.ITEMS_ITEM[25].VALUE[7][34] = 18;
_global.ITEMS_ITEM[25].VALUE_FREQUENCY[7][34] = 100;
_global.ITEMS_ITEM[29].VALUE[7][34] = 92;
_global.ITEMS_ITEM[29].VALUE_FREQUENCY[7][34] = 100;
_global.ITEMS_ITEM[30].VALUE[7][34] = 356;
_global.ITEMS_ITEM[30].VALUE_FREQUENCY[7][34] = 100;
_global.ITEMS_ITEM[32].VALUE[7][34] = 189;
_global.ITEMS_ITEM[32].VALUE_FREQUENCY[7][34] = 100;
_global.ITEMS_ITEM[26].VALUE[7][34] = 87;
_global.ITEMS_ITEM[26].VALUE_FREQUENCY[7][34] = 100;
_global.ITEMS_ITEM[27].VALUE[7][34] = 14;
_global.ITEMS_ITEM[27].VALUE_FREQUENCY[7][34] = 100;
_global.ITEMS_ITEM[149].FREQUENCY[7][34] = 6;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][34] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][34] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][34] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][34] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][34] = 25;
_global.ITEMS_ITEM[151].FREQUENCY[7][34] = 6;
_global.ITEMS_ITEM[151].MIN_VALUE[7][34] = 0;
_global.ITEMS_ITEM[151].MAX_VALUE[7][34] = 0;
_global.ITEMS_ITEM[151].COUNT_DOWN[7][34] = true;
_global.ITEMS_ITEM[151].COUNT_DOWN_VALUE[7][34] = 25;
_global.GAMES_DOLLAR_USE[7][34] = new Array(5, 6, 7, 12, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][34] = 1;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][34] = 29;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][34] = 45;
_global.DOLLARS_DOLLAR[12].FREQUENCY[7][34] = 19;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][34] = 4;
_global.GAMES_BUDGET[7][35] = 7500;
_global.GAMES_BONUS_MONEY_LIMIT[7][35] = 800;
_global.GAMES_TARGET_VALUE[7][35] = 6100;
_global.GAMES_TIME_LIMIT[7][35] = 170;
_global.GAMES_BONUS_TIME_LIMIT[7][35] = 50;
_global.GAMES_LIMITED_TIME[7][35] = true;
_global.GAMES_ITEM_USE[7][35] = new Array(22, 23, 24, 25, 29, 30, 32, 26, 27, 149, 151);
_global.GAMES_MAKE_COUPON_ITEM[7][35] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][35][0] = 30;
_global.GAMES_COUPON_USE[7][35] = 13;
_global.ITEMS_ITEM[22].FREQUENCY[7][35] = 13;
_global.ITEMS_ITEM[23].FREQUENCY[7][35] = 12;
_global.ITEMS_ITEM[24].FREQUENCY[7][35] = 12;
_global.ITEMS_ITEM[25].FREQUENCY[7][35] = 6;
_global.ITEMS_ITEM[29].FREQUENCY[7][35] = 16;
_global.ITEMS_ITEM[30].FREQUENCY[7][35] = 5;
_global.ITEMS_ITEM[32].FREQUENCY[7][35] = 12;
_global.ITEMS_ITEM[26].FREQUENCY[7][35] = 16;
_global.ITEMS_ITEM[27].FREQUENCY[7][35] = 8;
_global.ITEMS_ITEM[22].VALUE[7][35] = 42;
_global.ITEMS_ITEM[22].VALUE_FREQUENCY[7][35] = 100;
_global.ITEMS_ITEM[23].VALUE[7][35] = 55;
_global.ITEMS_ITEM[23].VALUE_FREQUENCY[7][35] = 100;
_global.ITEMS_ITEM[24].VALUE[7][35] = 38;
_global.ITEMS_ITEM[24].VALUE_FREQUENCY[7][35] = 100;
_global.ITEMS_ITEM[25].VALUE[7][35] = 18;
_global.ITEMS_ITEM[25].VALUE_FREQUENCY[7][35] = 100;
_global.ITEMS_ITEM[29].VALUE[7][35] = 92;
_global.ITEMS_ITEM[29].VALUE_FREQUENCY[7][35] = 100;
_global.ITEMS_ITEM[30].VALUE[7][35] = 356;
_global.ITEMS_ITEM[30].VALUE_FREQUENCY[7][35] = 100;
_global.ITEMS_ITEM[32].VALUE[7][35] = 189;
_global.ITEMS_ITEM[32].VALUE_FREQUENCY[7][35] = 100;
_global.ITEMS_ITEM[26].VALUE[7][35] = 87;
_global.ITEMS_ITEM[26].VALUE_FREQUENCY[7][35] = 100;
_global.ITEMS_ITEM[27].VALUE[7][35] = 14;
_global.ITEMS_ITEM[27].VALUE_FREQUENCY[7][35] = 100;
_global.ITEMS_ITEM[149].FREQUENCY[7][35] = 6;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][35] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][35] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][35] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][35] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][35] = 25;
_global.ITEMS_ITEM[151].FREQUENCY[7][35] = 6;
_global.ITEMS_ITEM[151].MIN_VALUE[7][35] = 0;
_global.ITEMS_ITEM[151].MAX_VALUE[7][35] = 0;
_global.ITEMS_ITEM[151].COUNT_DOWN[7][35] = true;
_global.ITEMS_ITEM[151].COUNT_DOWN_VALUE[7][35] = 25;
_global.GAMES_DOLLAR_USE[7][35] = new Array(5, 6, 7, 12, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][35] = 1;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][35] = 29;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][35] = 45;
_global.DOLLARS_DOLLAR[12].FREQUENCY[7][35] = 19;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][35] = 4;
_global.GAMES_BUDGET[7][36] = 6800;
_global.GAMES_TARGET_VALUE[7][36] = 6225;
_global.GAMES_TIME_LIMIT[7][36] = 200;
_global.GAMES_LIMITED_TIME[7][36] = true;
_global.GAMES_ITEM_USE[7][36] = new Array(22, 23, 24, 25, 29, 30, 32, 26, 27);
_global.GAMES_MAKE_COUPON_ITEM[7][36] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][36][0] = 30;
_global.GAMES_COUPON_USE[7][36] = 13;
_global.ITEMS_ITEM[22].FREQUENCY[7][36] = 13;
_global.ITEMS_ITEM[23].FREQUENCY[7][36] = 12;
_global.ITEMS_ITEM[24].FREQUENCY[7][36] = 12;
_global.ITEMS_ITEM[25].FREQUENCY[7][36] = 6;
_global.ITEMS_ITEM[29].FREQUENCY[7][36] = 16;
_global.ITEMS_ITEM[30].FREQUENCY[7][36] = 5;
_global.ITEMS_ITEM[32].FREQUENCY[7][36] = 12;
_global.ITEMS_ITEM[26].FREQUENCY[7][36] = 16;
_global.ITEMS_ITEM[27].FREQUENCY[7][36] = 8;
_global.ITEMS_ITEM[22].VALUE[7][36] = 42;
_global.ITEMS_ITEM[22].VALUE_FREQUENCY[7][36] = 100;
_global.ITEMS_ITEM[23].VALUE[7][36] = 55;
_global.ITEMS_ITEM[23].VALUE_FREQUENCY[7][36] = 100;
_global.ITEMS_ITEM[24].VALUE[7][36] = 31;
_global.ITEMS_ITEM[24].VALUE_FREQUENCY[7][36] = 100;
_global.ITEMS_ITEM[25].VALUE[7][36] = 11;
_global.ITEMS_ITEM[25].VALUE_FREQUENCY[7][36] = 100;
_global.ITEMS_ITEM[29].VALUE[7][36] = 84;
_global.ITEMS_ITEM[29].VALUE_FREQUENCY[7][36] = 100;
_global.ITEMS_ITEM[30].VALUE[7][36] = 226;
_global.ITEMS_ITEM[30].VALUE_FREQUENCY[7][36] = 100;
_global.ITEMS_ITEM[32].VALUE[7][36] = 149;
_global.ITEMS_ITEM[32].VALUE_FREQUENCY[7][36] = 100;
_global.ITEMS_ITEM[26].VALUE[7][36] = 67;
_global.ITEMS_ITEM[26].VALUE_FREQUENCY[7][36] = 100;
_global.ITEMS_ITEM[27].VALUE[7][36] = 14;
_global.ITEMS_ITEM[27].VALUE_FREQUENCY[7][36] = 100;
_global.GAMES_DOLLAR_USE[7][36] = new Array(5, 6, 7, 12, 9);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][36] = 1;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][36] = 29;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][36] = 45;
_global.DOLLARS_DOLLAR[12].FREQUENCY[7][36] = 19;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][36] = 4;
_global.GAMES_BUDGET[7][37] = 9900;
_global.GAMES_TARGET_VALUE[7][37] = 7200;
_global.GAMES_TIME_LIMIT[7][37] = 200;
_global.GAMES_LIMITED_TIME[7][37] = true;
_global.GAMES_ITEM_USE[7][37] = new Array(101, 103, 105, 107, 108, 110, 114, 115, 151);
_global.GAMES_MAKE_COUPON_ITEM[7][37] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][37][0] = 115;
_global.GAMES_COUPON_USE[7][37] = 14;
_global.ITEMS_ITEM[101].FREQUENCY[7][37] = 10;
_global.ITEMS_ITEM[103].FREQUENCY[7][37] = 10;
_global.ITEMS_ITEM[105].FREQUENCY[7][37] = 15;
_global.ITEMS_ITEM[107].FREQUENCY[7][37] = 20;
_global.ITEMS_ITEM[108].FREQUENCY[7][37] = 30;
_global.ITEMS_ITEM[110].FREQUENCY[7][37] = 8;
_global.ITEMS_ITEM[114].FREQUENCY[7][37] = 6;
_global.ITEMS_ITEM[115].FREQUENCY[7][37] = 1;
_global.ITEMS_ITEM[101].VALUE[7][37] = 17;
_global.ITEMS_ITEM[101].VALUE_FREQUENCY[7][37] = 100;
_global.ITEMS_ITEM[103].VALUE[7][37] = 31;
_global.ITEMS_ITEM[103].VALUE_FREQUENCY[7][37] = 100;
_global.ITEMS_ITEM[105].VALUE[7][37] = 57;
_global.ITEMS_ITEM[105].VALUE_FREQUENCY[7][37] = 100;
_global.ITEMS_ITEM[107].VALUE[7][37] = 80;
_global.ITEMS_ITEM[107].VALUE_FREQUENCY[7][37] = 100;
_global.ITEMS_ITEM[108].VALUE[7][37] = 92;
_global.ITEMS_ITEM[108].VALUE_FREQUENCY[7][37] = 100;
_global.ITEMS_ITEM[110].VALUE[7][37] = 235;
_global.ITEMS_ITEM[110].VALUE_FREQUENCY[7][37] = 100;
_global.ITEMS_ITEM[114].VALUE[7][37] = 350;
_global.ITEMS_ITEM[114].VALUE_FREQUENCY[7][37] = 100;
_global.ITEMS_ITEM[115].VALUE[7][37] = 405;
_global.ITEMS_ITEM[115].VALUE_FREQUENCY[7][37] = 100;
_global.GAMES_DOLLAR_USE[7][37] = new Array(5, 6, 7, 9, 12);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][37] = 3;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][37] = 20;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][37] = 50;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][37] = 4;
_global.DOLLARS_DOLLAR[12].FREQUENCY[7][37] = 23;
_global.ITEMS_ITEM[151].FREQUENCY[7][37] = 6;
_global.ITEMS_ITEM[151].FREQUENCY_LOWER_PERCENT[7][37] = 20;
_global.ITEMS_ITEM[151].COUNT_DOWN[7][37] = true;
_global.ITEMS_ITEM[151].COUNT_DOWN_VALUE[7][37] = 20;
_global.ITEMS_ITEM[151].MIN_VALUE[7][37] = 0;
_global.ITEMS_ITEM[151].MAX_VALUE[7][37] = 0;
_global.GAMES_BUDGET[7][38] = 9900;
_global.GAMES_TARGET_VALUE[7][38] = 7500;
_global.GAMES_TIME_LIMIT[7][38] = 200;
_global.GAMES_LIMITED_TIME[7][38] = true;
_global.GAMES_ITEM_USE[7][38] = new Array(101, 103, 105, 107, 108, 110, 114, 115, 149, 151);
_global.GAMES_MAKE_COUPON_ITEM[7][38] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][38][0] = 115;
_global.GAMES_COUPON_USE[7][38] = 14;
_global.ITEMS_ITEM[101].FREQUENCY[7][38] = 10;
_global.ITEMS_ITEM[103].FREQUENCY[7][38] = 10;
_global.ITEMS_ITEM[105].FREQUENCY[7][38] = 15;
_global.ITEMS_ITEM[107].FREQUENCY[7][38] = 20;
_global.ITEMS_ITEM[108].FREQUENCY[7][38] = 30;
_global.ITEMS_ITEM[110].FREQUENCY[7][38] = 8;
_global.ITEMS_ITEM[114].FREQUENCY[7][38] = 6;
_global.ITEMS_ITEM[115].FREQUENCY[7][38] = 1;
_global.ITEMS_ITEM[101].VALUE[7][38] = 17;
_global.ITEMS_ITEM[101].VALUE_FREQUENCY[7][38] = 100;
_global.ITEMS_ITEM[103].VALUE[7][38] = 31;
_global.ITEMS_ITEM[103].VALUE_FREQUENCY[7][38] = 100;
_global.ITEMS_ITEM[105].VALUE[7][38] = 57;
_global.ITEMS_ITEM[105].VALUE_FREQUENCY[7][38] = 100;
_global.ITEMS_ITEM[107].VALUE[7][38] = 80;
_global.ITEMS_ITEM[107].VALUE_FREQUENCY[7][38] = 100;
_global.ITEMS_ITEM[108].VALUE[7][38] = 92;
_global.ITEMS_ITEM[108].VALUE_FREQUENCY[7][38] = 100;
_global.ITEMS_ITEM[110].VALUE[7][38] = 235;
_global.ITEMS_ITEM[110].VALUE_FREQUENCY[7][38] = 100;
_global.ITEMS_ITEM[114].VALUE[7][38] = 350;
_global.ITEMS_ITEM[114].VALUE_FREQUENCY[7][38] = 100;
_global.ITEMS_ITEM[115].VALUE[7][38] = 405;
_global.ITEMS_ITEM[115].VALUE_FREQUENCY[7][38] = 100;
_global.GAMES_DOLLAR_USE[7][38] = new Array(5, 6, 7, 9, 12);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][38] = 3;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][38] = 20;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][38] = 50;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][38] = 4;
_global.DOLLARS_DOLLAR[12].FREQUENCY[7][38] = 23;
_global.ITEMS_ITEM[149].FREQUENCY[7][38] = 6;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][38] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][38] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][38] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][38] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][38] = 25;
_global.ITEMS_ITEM[151].FREQUENCY[7][38] = 6;
_global.ITEMS_ITEM[151].MIN_VALUE[7][38] = 0;
_global.ITEMS_ITEM[151].MAX_VALUE[7][38] = 0;
_global.ITEMS_ITEM[151].COUNT_DOWN[7][38] = true;
_global.ITEMS_ITEM[151].COUNT_DOWN_VALUE[7][38] = 25;
_global.GAMES_BUDGET[7][39] = 9900;
_global.GAMES_TARGET_VALUE[7][39] = 7800;
_global.GAMES_TIME_LIMIT[7][39] = 200;
_global.GAMES_LIMITED_TIME[7][39] = true;
_global.GAMES_ITEM_USE[7][39] = new Array(101, 103, 105, 107, 108, 110, 114, 115, 149, 151);
_global.GAMES_MAKE_COUPON_ITEM[7][39] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][39][0] = 115;
_global.GAMES_COUPON_USE[7][39] = 14;
_global.ITEMS_ITEM[101].FREQUENCY[7][39] = 10;
_global.ITEMS_ITEM[103].FREQUENCY[7][39] = 10;
_global.ITEMS_ITEM[105].FREQUENCY[7][39] = 15;
_global.ITEMS_ITEM[107].FREQUENCY[7][39] = 20;
_global.ITEMS_ITEM[108].FREQUENCY[7][39] = 30;
_global.ITEMS_ITEM[110].FREQUENCY[7][39] = 8;
_global.ITEMS_ITEM[114].FREQUENCY[7][39] = 6;
_global.ITEMS_ITEM[115].FREQUENCY[7][39] = 1;
_global.ITEMS_ITEM[101].VALUE[7][39] = 17;
_global.ITEMS_ITEM[101].VALUE_FREQUENCY[7][39] = 100;
_global.ITEMS_ITEM[103].VALUE[7][39] = 31;
_global.ITEMS_ITEM[103].VALUE_FREQUENCY[7][39] = 100;
_global.ITEMS_ITEM[105].VALUE[7][39] = 57;
_global.ITEMS_ITEM[105].VALUE_FREQUENCY[7][39] = 100;
_global.ITEMS_ITEM[107].VALUE[7][39] = 80;
_global.ITEMS_ITEM[107].VALUE_FREQUENCY[7][39] = 100;
_global.ITEMS_ITEM[108].VALUE[7][39] = 92;
_global.ITEMS_ITEM[108].VALUE_FREQUENCY[7][39] = 100;
_global.ITEMS_ITEM[110].VALUE[7][39] = 235;
_global.ITEMS_ITEM[110].VALUE_FREQUENCY[7][39] = 100;
_global.ITEMS_ITEM[114].VALUE[7][39] = 350;
_global.ITEMS_ITEM[114].VALUE_FREQUENCY[7][39] = 100;
_global.ITEMS_ITEM[115].VALUE[7][39] = 405;
_global.ITEMS_ITEM[115].VALUE_FREQUENCY[7][39] = 100;
_global.GAMES_DOLLAR_USE[7][39] = new Array(5, 6, 7, 9, 12);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][39] = 3;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][39] = 20;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][39] = 50;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][39] = 4;
_global.DOLLARS_DOLLAR[12].FREQUENCY[7][39] = 23;
_global.ITEMS_ITEM[149].FREQUENCY[7][39] = 6;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][39] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][39] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][39] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][39] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][39] = 25;
_global.ITEMS_ITEM[151].FREQUENCY[7][39] = 6;
_global.ITEMS_ITEM[151].MIN_VALUE[7][39] = 0;
_global.ITEMS_ITEM[151].MAX_VALUE[7][39] = 0;
_global.ITEMS_ITEM[151].COUNT_DOWN[7][39] = true;
_global.ITEMS_ITEM[151].COUNT_DOWN_VALUE[7][39] = 25;
_global.GAMES_BUDGET[7][40] = 9900;
_global.GAMES_TARGET_VALUE[7][40] = 8000;
_global.GAMES_TIME_LIMIT[7][40] = 200;
_global.GAMES_LIMITED_TIME[7][40] = true;
_global.GAMES_ITEM_USE[7][40] = new Array(102, 103, 106, 107, 109, 110, 114, 115, 149, 151);
_global.GAMES_MAKE_COUPON_ITEM[7][40] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][40][0] = 115;
_global.GAMES_COUPON_USE[7][40] = 14;
_global.ITEMS_ITEM[102].FREQUENCY[7][40] = 10;
_global.ITEMS_ITEM[103].FREQUENCY[7][40] = 10;
_global.ITEMS_ITEM[106].FREQUENCY[7][40] = 15;
_global.ITEMS_ITEM[107].FREQUENCY[7][40] = 20;
_global.ITEMS_ITEM[109].FREQUENCY[7][40] = 30;
_global.ITEMS_ITEM[110].FREQUENCY[7][40] = 8;
_global.ITEMS_ITEM[114].FREQUENCY[7][40] = 6;
_global.ITEMS_ITEM[115].FREQUENCY[7][40] = 1;
_global.ITEMS_ITEM[102].VALUE[7][40] = 17;
_global.ITEMS_ITEM[102].VALUE_FREQUENCY[7][40] = 100;
_global.ITEMS_ITEM[103].VALUE[7][40] = 31;
_global.ITEMS_ITEM[103].VALUE_FREQUENCY[7][40] = 100;
_global.ITEMS_ITEM[106].VALUE[7][40] = 57;
_global.ITEMS_ITEM[106].VALUE_FREQUENCY[7][40] = 100;
_global.ITEMS_ITEM[107].VALUE[7][40] = 80;
_global.ITEMS_ITEM[107].VALUE_FREQUENCY[7][40] = 100;
_global.ITEMS_ITEM[109].VALUE[7][40] = 92;
_global.ITEMS_ITEM[109].VALUE_FREQUENCY[7][40] = 100;
_global.ITEMS_ITEM[110].VALUE[7][40] = 235;
_global.ITEMS_ITEM[110].VALUE_FREQUENCY[7][40] = 100;
_global.ITEMS_ITEM[114].VALUE[7][40] = 350;
_global.ITEMS_ITEM[114].VALUE_FREQUENCY[7][40] = 100;
_global.ITEMS_ITEM[115].VALUE[7][40] = 405;
_global.ITEMS_ITEM[115].VALUE_FREQUENCY[7][40] = 100;
_global.GAMES_DOLLAR_USE[7][40] = new Array(5, 6, 7, 9, 12);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][40] = 3;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][40] = 20;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][40] = 50;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][40] = 4;
_global.DOLLARS_DOLLAR[12].FREQUENCY[7][40] = 23;
_global.ITEMS_ITEM[149].FREQUENCY[7][40] = 6;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][40] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][40] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][40] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][40] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][40] = 25;
_global.ITEMS_ITEM[151].FREQUENCY[7][40] = 6;
_global.ITEMS_ITEM[151].MIN_VALUE[7][40] = 0;
_global.ITEMS_ITEM[151].MAX_VALUE[7][40] = 0;
_global.ITEMS_ITEM[151].COUNT_DOWN[7][40] = true;
_global.ITEMS_ITEM[151].COUNT_DOWN_VALUE[7][40] = 25;
_global.GAMES_BUDGET[7][41] = 9000;
_global.GAMES_BONUS_MONEY_LIMIT[7][34] = 900;
_global.GAMES_TARGET_VALUE[7][41] = 8200;
_global.GAMES_TIME_LIMIT[7][41] = 180;
_global.GAMES_BONUS_TIME_LIMIT[7][41] = 50;
_global.GAMES_LIMITED_TIME[7][41] = true;
_global.GAMES_ITEM_USE[7][41] = new Array(102, 103, 106, 107, 109, 110, 114, 115, 149, 151);
_global.GAMES_MAKE_COUPON_ITEM[7][41] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][41][0] = 115;
_global.GAMES_COUPON_USE[7][41] = 14;
_global.ITEMS_ITEM[102].FREQUENCY[7][41] = 10;
_global.ITEMS_ITEM[103].FREQUENCY[7][41] = 10;
_global.ITEMS_ITEM[106].FREQUENCY[7][41] = 15;
_global.ITEMS_ITEM[107].FREQUENCY[7][41] = 20;
_global.ITEMS_ITEM[109].FREQUENCY[7][41] = 30;
_global.ITEMS_ITEM[110].FREQUENCY[7][41] = 8;
_global.ITEMS_ITEM[114].FREQUENCY[7][41] = 6;
_global.ITEMS_ITEM[115].FREQUENCY[7][41] = 2;
_global.ITEMS_ITEM[102].VALUE[7][41] = 17;
_global.ITEMS_ITEM[102].VALUE_FREQUENCY[7][41] = 100;
_global.ITEMS_ITEM[103].VALUE[7][41] = 31;
_global.ITEMS_ITEM[103].VALUE_FREQUENCY[7][41] = 100;
_global.ITEMS_ITEM[106].VALUE[7][41] = 57;
_global.ITEMS_ITEM[106].VALUE_FREQUENCY[7][41] = 100;
_global.ITEMS_ITEM[107].VALUE[7][41] = 80;
_global.ITEMS_ITEM[107].VALUE_FREQUENCY[7][41] = 100;
_global.ITEMS_ITEM[109].VALUE[7][41] = 92;
_global.ITEMS_ITEM[109].VALUE_FREQUENCY[7][41] = 100;
_global.ITEMS_ITEM[110].VALUE[7][41] = 235;
_global.ITEMS_ITEM[110].VALUE_FREQUENCY[7][41] = 100;
_global.ITEMS_ITEM[114].VALUE[7][41] = 350;
_global.ITEMS_ITEM[114].VALUE_FREQUENCY[7][41] = 100;
_global.ITEMS_ITEM[115].VALUE[7][41] = 405;
_global.ITEMS_ITEM[115].VALUE_FREQUENCY[7][41] = 100;
_global.ITEMS_ITEM[149].FREQUENCY[7][41] = 6;
_global.ITEMS_ITEM[149].FREQUENCY_LOWER_PERCENT[7][41] = 20;
_global.ITEMS_ITEM[149].MIN_VALUE[7][41] = 0;
_global.ITEMS_ITEM[149].MAX_VALUE[7][41] = 0;
_global.ITEMS_ITEM[149].COUNT_DOWN[7][41] = true;
_global.ITEMS_ITEM[149].COUNT_DOWN_VALUE[7][41] = 25;
_global.ITEMS_ITEM[151].FREQUENCY[7][41] = 6;
_global.ITEMS_ITEM[151].MIN_VALUE[7][41] = 0;
_global.ITEMS_ITEM[151].MAX_VALUE[7][41] = 0;
_global.ITEMS_ITEM[151].COUNT_DOWN[7][41] = true;
_global.ITEMS_ITEM[151].COUNT_DOWN_VALUE[7][41] = 25;
_global.GAMES_DOLLAR_USE[7][41] = new Array(5, 6, 7, 9, 12);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][41] = 3;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][41] = 20;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][41] = 50;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][41] = 4;
_global.DOLLARS_DOLLAR[12].FREQUENCY[7][41] = 23;
_global.GAMES_BUDGET[7][42] = 9900;
_global.GAMES_TARGET_VALUE[7][42] = 8500;
_global.GAMES_TIME_LIMIT[7][42] = 200;
_global.GAMES_LIMITED_TIME[7][42] = true;
_global.GAMES_ITEM_USE[7][42] = new Array(102, 103, 106, 107, 109, 110, 114, 115);
_global.GAMES_MAKE_COUPON_ITEM[7][42] = new Array();
_global.GAMES_MAKE_COUPON_ITEM[7][42][0] = 115;
_global.GAMES_COUPON_USE[7][42] = 14;
_global.ITEMS_ITEM[102].FREQUENCY[7][42] = 10;
_global.ITEMS_ITEM[103].FREQUENCY[7][42] = 10;
_global.ITEMS_ITEM[106].FREQUENCY[7][42] = 15;
_global.ITEMS_ITEM[107].FREQUENCY[7][42] = 20;
_global.ITEMS_ITEM[109].FREQUENCY[7][42] = 30;
_global.ITEMS_ITEM[110].FREQUENCY[7][42] = 8;
_global.ITEMS_ITEM[114].FREQUENCY[7][42] = 6;
_global.ITEMS_ITEM[115].FREQUENCY[7][42] = 1;
_global.ITEMS_ITEM[102].VALUE[7][42] = 17;
_global.ITEMS_ITEM[102].VALUE_FREQUENCY[7][42] = 100;
_global.ITEMS_ITEM[103].VALUE[7][42] = 31;
_global.ITEMS_ITEM[103].VALUE_FREQUENCY[7][42] = 100;
_global.ITEMS_ITEM[106].VALUE[7][42] = 57;
_global.ITEMS_ITEM[106].VALUE_FREQUENCY[7][42] = 100;
_global.ITEMS_ITEM[107].VALUE[7][42] = 80;
_global.ITEMS_ITEM[107].VALUE_FREQUENCY[7][42] = 100;
_global.ITEMS_ITEM[109].VALUE[7][42] = 92;
_global.ITEMS_ITEM[109].VALUE_FREQUENCY[7][42] = 100;
_global.ITEMS_ITEM[110].VALUE[7][42] = 235;
_global.ITEMS_ITEM[110].VALUE_FREQUENCY[7][42] = 100;
_global.ITEMS_ITEM[114].VALUE[7][42] = 350;
_global.ITEMS_ITEM[114].VALUE_FREQUENCY[7][42] = 100;
_global.ITEMS_ITEM[115].VALUE[7][42] = 405;
_global.ITEMS_ITEM[115].VALUE_FREQUENCY[7][42] = 100;
_global.GAMES_DOLLAR_USE[7][42] = new Array(5, 6, 7, 9, 12);
_global.DOLLARS_DOLLAR[5].FREQUENCY[7][42] = 3;
_global.DOLLARS_DOLLAR[6].FREQUENCY[7][42] = 20;
_global.DOLLARS_DOLLAR[7].FREQUENCY[7][42] = 50;
_global.DOLLARS_DOLLAR[9].FREQUENCY[7][42] = 4;
_global.DOLLARS_DOLLAR[12].FREQUENCY[7][42] = 23;
_global.SCORE_SYSTEM_CHECK_ITEM_GET_NO = new Array();
_global.SCORE_SYSTEM_CHECK_ITEM_GET_NO[_global.GAMES_COLLECTION_MODE] = true;
_global.SCORE_SYSTEM_CHECK_ITEM_GET_NO[_global.GAMES_BUY_GIFT_MODE] = false;
_global.SCORE_SYSTEM_CHECK_ITEM_GET_NO[_global.GAMES_BUY_FOOD_MODE] = true;
_global.SCORE_SYSTEM_CHECK_ITEM_GET_NO[_global.GAMES_EFFICIENT_MODE] = false;
_global.SCORE_SYSTEM_CHECK_ITEM_GET_NO[_global.GAMES_TARGET_REACH_MODE] = false;
_global.SCORE_SYSTEM_CHECK_ITEM_GET_NO[_global.GAMES_BONUS_MODE] = true;
_global.SCORE_SYSTEM_CHECK_ITEM_GET_NO[_global.GAMES_NORMAL_MODE] = true;
_global.SCORE_SYSTEM_CHECK_ITEM_GET_NO[_global.GAMES_SMART_BUYER_MODE] = true;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE = new Array();
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[1] = new Array();
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[1][1] = 10;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[1][2] = 22;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[1][3] = 36;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[1][4] = 52;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[2] = new Array();
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[2][1] = 15;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[2][2] = 33;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[2][3] = 54;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[2][4] = 78;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[3] = new Array();
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[3][1] = 20;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[3][2] = 44;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[3][3] = 72;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[3][4] = 104;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[4] = new Array();
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[4][1] = 25;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[4][2] = 55;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[4][3] = 90;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[4][4] = 130;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[5] = new Array();
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[5][1] = 30;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[5][2] = 66;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[5][3] = 108;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[5][4] = 156;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[6] = new Array();
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[6][1] = 35;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[6][2] = 77;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[6][3] = 126;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[6][4] = 182;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[7] = new Array();
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[7][1] = 40;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[7][2] = 88;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[7][3] = 144;
_global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[7][4] = 208;
_global.SCORE_SYSTEM_CHECK_MONEY_LEFT = new Array();
_global.SCORE_SYSTEM_CHECK_MONEY_LEFT[_global.GAMES_COLLECTION_MODE] = false;
_global.SCORE_SYSTEM_CHECK_MONEY_LEFT[_global.GAMES_BUY_GIFT_MODE] = false;
_global.SCORE_SYSTEM_CHECK_MONEY_LEFT[_global.GAMES_BUY_FOOD_MODE] = false;
_global.SCORE_SYSTEM_CHECK_MONEY_LEFT[_global.GAMES_EFFICIENT_MODE] = false;
_global.SCORE_SYSTEM_CHECK_MONEY_LEFT[_global.GAMES_TARGET_REACH_MODE] = false;
_global.SCORE_SYSTEM_CHECK_MONEY_LEFT[_global.GAMES_BONUS_MODE] = false;
_global.SCORE_SYSTEM_CHECK_MONEY_LEFT[_global.GAMES_NORMAL_MODE] = true;
_global.SCORE_SYSTEM_CHECK_MONEY_LEFT[_global.GAMES_SMART_BUYER_MODE] = true;
_global.SCORE_SYSTEM_MONEY_LEFT_SCORE = new Array();
_global.SCORE_SYSTEM_MONEY_LEFT_SCORE[_global.GAMES_COLLECTION_MODE] = 2;
_global.SCORE_SYSTEM_MONEY_LEFT_SCORE[_global.GAMES_BUY_GIFT_MODE] = 0;
_global.SCORE_SYSTEM_MONEY_LEFT_SCORE[_global.GAMES_BUY_FOOD_MODE] = 0;
_global.SCORE_SYSTEM_MONEY_LEFT_SCORE[_global.GAMES_EFFICIENT_MODE] = 0;
_global.SCORE_SYSTEM_MONEY_LEFT_SCORE[_global.GAMES_TARGET_REACH_MODE] = 0;
_global.SCORE_SYSTEM_MONEY_LEFT_SCORE[_global.GAMES_BONUS_MODE] = 0;
_global.SCORE_SYSTEM_MONEY_LEFT_SCORE[_global.GAMES_NORMAL_MODE] = 2;
_global.SCORE_SYSTEM_MONEY_LEFT_SCORE[_global.GAMES_SMART_BUYER_MODE] = 5;
_global.SCORE_SYSTEM_CHECK_TIME_LEFT = new Array();
_global.SCORE_SYSTEM_CHECK_TIME_LEFT[_global.GAMES_COLLECTION_MODE] = true;
_global.SCORE_SYSTEM_CHECK_TIME_LEFT[_global.GAMES_BUY_GIFT_MODE] = false;
_global.SCORE_SYSTEM_CHECK_TIME_LEFT[_global.GAMES_BUY_FOOD_MODE] = true;
_global.SCORE_SYSTEM_CHECK_TIME_LEFT[_global.GAMES_EFFICIENT_MODE] = true;
_global.SCORE_SYSTEM_CHECK_TIME_LEFT[_global.GAMES_TARGET_REACH_MODE] = false;
_global.SCORE_SYSTEM_CHECK_TIME_LEFT[_global.GAMES_BONUS_MODE] = false;
_global.SCORE_SYSTEM_CHECK_TIME_LEFT[_global.GAMES_NORMAL_MODE] = true;
_global.SCORE_SYSTEM_CHECK_TIME_LEFT[_global.GAMES_SMART_BUYER_MODE] = true;
_global.SCORE_SYSTEM_TIME_LEFT_SCORE = new Array();
_global.SCORE_SYSTEM_TIME_LEFT_SCORE[_global.GAMES_COLLECTION_MODE] = 1;
_global.SCORE_SYSTEM_TIME_LEFT_SCORE[_global.GAMES_BUY_GIFT_MODE] = 0;
_global.SCORE_SYSTEM_TIME_LEFT_SCORE[_global.GAMES_BUY_FOOD_MODE] = 1;
_global.SCORE_SYSTEM_TIME_LEFT_SCORE[_global.GAMES_EFFICIENT_MODE] = 1;
_global.SCORE_SYSTEM_TIME_LEFT_SCORE[_global.GAMES_TARGET_REACH_MODE] = 0;
_global.SCORE_SYSTEM_TIME_LEFT_SCORE[_global.GAMES_BONUS_MODE] = 0;
_global.SCORE_SYSTEM_TIME_LEFT_SCORE[_global.GAMES_NORMAL_MODE] = 1;
_global.SCORE_SYSTEM_TIME_LEFT_SCORE[_global.GAMES_SMART_BUYER_MODE] = 1;
_global.SCORE_SYSTEM_CHECK_EFFICIENT = new Array();
_global.SCORE_SYSTEM_CHECK_EFFICIENT[_global.GAMES_COLLECTION_MODE] = false;
_global.SCORE_SYSTEM_CHECK_EFFICIENT[_global.GAMES_BUY_GIFT_MODE] = false;
_global.SCORE_SYSTEM_CHECK_EFFICIENT[_global.GAMES_BUY_FOOD_MODE] = false;
_global.SCORE_SYSTEM_CHECK_EFFICIENT[_global.GAMES_EFFICIENT_MODE] = true;
_global.SCORE_SYSTEM_CHECK_EFFICIENT[_global.GAMES_TARGET_REACH_MODE] = false;
_global.SCORE_SYSTEM_CHECK_EFFICIENT[_global.GAMES_BONUS_MODE] = false;
_global.SCORE_SYSTEM_CHECK_EFFICIENT[_global.GAMES_NORMAL_MODE] = false;
_global.SCORE_SYSTEM_CHECK_EFFICIENT[_global.GAMES_SMART_BUYER_MODE] = false;
_global.SCORE_SYSTEM_EFFICIENT_SCORE = new Array();
_global.SCORE_SYSTEM_EFFICIENT_SCORE[_global.GAMES_COLLECTION_MODE] = 500;
_global.SCORE_SYSTEM_EFFICIENT_SCORE[_global.GAMES_BUY_GIFT_MODE] = 500;
_global.SCORE_SYSTEM_EFFICIENT_SCORE[_global.GAMES_BUY_FOOD_MODE] = 500;
_global.SCORE_SYSTEM_EFFICIENT_SCORE[_global.GAMES_EFFICIENT_MODE] = 500;
_global.SCORE_SYSTEM_EFFICIENT_SCORE[_global.GAMES_TARGET_REACH_MODE] = 500;
_global.SCORE_SYSTEM_EFFICIENT_SCORE[_global.GAMES_BONUS_MODE] = 500;
_global.SCORE_SYSTEM_EFFICIENT_SCORE[_global.GAMES_NORMAL_MODE] = 500;
_global.SCORE_SYSTEM_EFFICIENT_SCORE[_global.GAMES_SMART_BUYER_MODE] = 500;
_global.SCORE_SYSTEM_EFFICIENT_SCORE_INC = new Array();
_global.SCORE_SYSTEM_EFFICIENT_SCORE_INC[_global.GAMES_COLLECTION_MODE] = 30;
_global.SCORE_SYSTEM_EFFICIENT_SCORE_INC[_global.GAMES_BUY_GIFT_MODE] = 30;
_global.SCORE_SYSTEM_EFFICIENT_SCORE_INC[_global.GAMES_BUY_FOOD_MODE] = 30;
_global.SCORE_SYSTEM_EFFICIENT_SCORE_INC[_global.GAMES_EFFICIENT_MODE] = 30;
_global.SCORE_SYSTEM_EFFICIENT_SCORE_INC[_global.GAMES_TARGET_REACH_MODE] = 30;
_global.SCORE_SYSTEM_EFFICIENT_SCORE_INC[_global.GAMES_BONUS_MODE] = 30;
_global.SCORE_SYSTEM_EFFICIENT_SCORE_INC[_global.GAMES_NORMAL_MODE] = 30;
_global.SCORE_SYSTEM_EFFICIENT_SCORE_INC[_global.GAMES_SMART_BUYER_MODE] = 30;
_global.SCORE_SYSTEM_EFFICIENT_BONUS_SCORE = new Array();
_global.SCORE_SYSTEM_EFFICIENT_BONUS_SCORE[_global.GAMES_COLLECTION_MODE] = 1.5;
_global.SCORE_SYSTEM_EFFICIENT_BONUS_SCORE[_global.GAMES_BUY_GIFT_MODE] = 1.5;
_global.SCORE_SYSTEM_EFFICIENT_BONUS_SCORE[_global.GAMES_BUY_FOOD_MODE] = 1.5;
_global.SCORE_SYSTEM_EFFICIENT_BONUS_SCORE[_global.GAMES_EFFICIENT_MODE] = 1.5;
_global.SCORE_SYSTEM_EFFICIENT_BONUS_SCORE[_global.GAMES_TARGET_REACH_MODE] = 1.5;
_global.SCORE_SYSTEM_EFFICIENT_BONUS_SCORE[_global.GAMES_BONUS_MODE] = 1.5;
_global.SCORE_SYSTEM_EFFICIENT_BONUS_SCORE[_global.GAMES_NORMAL_MODE] = 1.5;
_global.SCORE_SYSTEM_EFFICIENT_BONUS_SCORE[_global.GAMES_SMART_BUYER_MODE] = 1.5;
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE = new Array();
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_ARCADE_MODE] = new Array();
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_ARCADE_MODE][1] = 1000;
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_ARCADE_MODE][2] = 2000;
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_ARCADE_MODE][3] = 3000;
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_ARCADE_MODE][4] = 4000;
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_ARCADE_MODE][5] = 5000;
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_ARCADE_MODE][6] = 6000;
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE] = new Array();
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][1] = 0;
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][2] = 0;
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][3] = 0;
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][4] = 0;
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][5] = 0;
_global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][6] = 0;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE = new Array();
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[1] = new Array();
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[1][1] = 100;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[1][2] = 200;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[1][3] = 300;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[1][4] = 400;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[1][5] = 500;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[2] = new Array();
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[2][1] = 150;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[2][2] = 300;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[2][3] = 450;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[2][4] = 600;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[2][5] = 750;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[3] = new Array();
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[3][1] = 200;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[3][2] = 400;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[3][3] = 600;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[3][4] = 800;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[3][5] = 1000;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[4] = new Array();
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[4][1] = 250;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[4][2] = 500;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[4][3] = 750;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[4][4] = 1000;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[4][5] = 1250;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[5] = new Array();
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[5][1] = 300;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[5][2] = 600;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[5][3] = 900;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[5][4] = 1200;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[5][5] = 1500;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[6] = new Array();
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[6][1] = 350;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[6][2] = 700;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[6][3] = 1050;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[6][4] = 1400;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[6][5] = 1750;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[7] = new Array();
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[7][1] = 400;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[7][2] = 800;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[7][3] = 1200;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[7][4] = 1600;
_global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[7][5] = 2000;
_global.GUI_PLAYING_CHAR_POS = "687 450";
_global.GUI_PLAYING_CHAR_SIZE = "186 240";
_global.CHAR_ANIMATION_NORMAL = "NORMAL";
_global.CHAR_ANIMATION_HAPPY = "HAPPY";
_global.CHAR_ANIMATION_BUSY = "BUSY";
_global.CHAR_ANIMATION_CRY = "CRY";
_global.CHAR_ANIMATION_GAMEOVER = "GAMEOVER";
_global.CHAR_ANIMATION_SCARE = "SCARE";
_global.CHAR_ANIMATION_THINK = "THINK";
_global.CHAR_TIME_TO_SEARCH = 3;
_global.CHAR_SCARE_TIME = 20;
_global.CHAR_SCARE_MONEY = 20;
_global.CHAR_BUSY_TIME = 10;
_global.CHAR_BUSY_MONEY = 10;
_global.GUI_DISPLAY_BUDGET = new Array();
_global.GUI_DISPLAY_TARGET = new Array();
_global.GUI_DISPLAY_COLLECTION = new Array();
_global.GUI_DISPLAY_BUDGET[_global.GAMES_ARCADE_MODE] = true;
_global.GUI_DISPLAY_TARGET[_global.GAMES_ARCADE_MODE] = true;
_global.GUI_DISPLAY_COLLECTION[_global.GAMES_ARCADE_MODE] = false;
_global.GAMES_OBJECTIVE_PAGE_CHAR = new Array();
_global.GAMES_OBJECTIVE_PAGE_CHAR[_global.GAMES_ARCADE_MODE] = new Array();
_global.GAMES_OBJECTIVE_PAGE_CHAR[_global.GAMES_ARCADE_MODE][1] = _global.CHAR_SALE_PEOPLE;
_global.GAMES_SUMMARY_PAGE_CHAR = new Array();
_global.GAMES_SUMMARY_PAGE_CHAR[_global.GAMES_ARCADE_MODE] = new Array();
_global.GAMES_SUMMARY_PAGE_CHAR[_global.GAMES_ARCADE_MODE][1] = _global.CHAR_SALE_PEOPLE;
_global.GAMES_LEVEL_SETTING_CHAR_IMAGE = new Array();
_global.GAMES_LEVEL_SETTING_CHAR_IMAGE[_global.GAMES_ARCADE_MODE] = new Array();
_global.GAMES_LEVEL_SETTING_CHAR_IMAGE[_global.GAMES_ARCADE_MODE][1] = charGirlImageMap;
_global.GAMES_LEVEL_SETTING = new Array();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE] = new Array();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1] = new Array();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][1] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][1].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][1].MODE_SETTING = 1;
_global.GUI_OBJECTIVE_OBJECTIVE = new Array();
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE] = new Array();
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][1] = new Array();
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][1][1] = "You will need to buy up to the target amount of goods with the given budget as shown on the left. We will start our warm-up round at SuperMart. Remember that the shop owner will not give you any change, so make sure you get your money's worth.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][2] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][2].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][2].MODE_SETTING = 2;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][1][2] = "Nice start! We have increased our target this time. \n\nYou can only purchase the items your coin touch, up to the value of the coin.\nLet's purchase some more this time.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][3] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][3].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][3].MODE_SETTING = 3;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][1][3] = "SUPERMART has just introduced some new produce. \nAren't you excited about this? \n\nLet's check them out now.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][4] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][4].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][4].MODE_SETTING = 4;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][1][4] = "Your performance is pretty good. It's going to be slightly harder this time. \nMy tip to you: keep an eye on the time and money.\n\nLet's see how well you do this time.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][5] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][5].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][5].MODE_SETTING = 5;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][1][5] = "You really have some money sense. See if you could make cents out of your smart spending sense.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][6] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][6].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][1][6].MODE_SETTING = 6;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][1][6] = new Array();
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][1][6][1] = "WooHoo! Welcome to this BONUS ROUND .\nIf you could win this round, you will be rewarded with extra bonus points and a medal.\n\nBe my guest, and feel free to play as many times as you like till you collect the medal.\n";
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][1][6][2] = "You can also select to move on to the next shop after the first try. \n\nHowever, you will need to start all over again if you wanted to collect the medal afterwards.";
_global.GAMES_OBJECTIVE_PAGE_CHAR[_global.GAMES_ARCADE_MODE][2] = _global.CHAR_FOOD_GIRL;
_global.GAMES_SUMMARY_PAGE_CHAR[_global.GAMES_ARCADE_MODE][2] = _global.CHAR_FOOD_GIRL;
_global.GAMES_LEVEL_SETTING_CHAR_IMAGE[_global.GAMES_ARCADE_MODE][2] = charGirlImageMap;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2] = new Array();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][1] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][1].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][1].MODE_SETTING = 13;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][2] = new Array();
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][2][1] = "Shopping can burn so many calories, especially when you are doing marathon style.\nThat's why <spush><color:FF0000> YUM YUM <spop> is the prefect stop for you\n\nLet's buy something to eat and gain more energy for the following rounds.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][2] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][2].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][2].MODE_SETTING = 14;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][2][2] = "Let's see if you could buy enough food to feed the customers inside the store.\nOh, they look really hungry to me.\nLet's buy more and give them a treat.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][3] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][3].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][3].MODE_SETTING = 15;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][2][3] = "The food we serve is very fresh and yummy. You have to take my words for this. These people will not keep ordering otherwise.\nHelp me to keep the group happy by treating them more food. \nLet's go!";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][4] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][4].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][4].MODE_SETTING = 16;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][2][4] = "Dessert time!!\nNo matter how full people are, they always have room for desserts. It seem like they have two stomachs. One for the main meal, and one for the desserts.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][5] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][5].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][5].MODE_SETTING = 17;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][2][5] = "Brilliant! \nYou did a pretty good job.\nWith this much energy you have, I would like to see if you do even better this time.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][6] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][6].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][2][6].MODE_SETTING = 18;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][2][6] = "You have made to the bonus round.\nThis is going to be a challenge, and be prepared to try several times before passing. \nYou will get our recognition medal when you pass. \nThis is going to be a rewarding experience, and well worth your effort.";
_global.GAMES_OBJECTIVE_PAGE_CHAR[_global.GAMES_ARCADE_MODE][3] = _global.CHAR_FEMALE_SHOPPER;
_global.GAMES_SUMMARY_PAGE_CHAR[_global.GAMES_ARCADE_MODE][3] = _global.CHAR_FEMALE_SHOPPER;
_global.GAMES_LEVEL_SETTING_CHAR_IMAGE[_global.GAMES_ARCADE_MODE][3] = charGirlImageMap;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3] = new Array();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][1] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][1].MODE = _global.GAMES_NORMAL_MODE;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][3] = new Array();
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][3][1] = new Array();
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][3][1][1] = "Welcome and Congratulations!! You are chosen to be our VIP customer.\nTo show our gratitude, we present you this PRESTIGE CARD .\n\n\n";
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][3][1][2] = "With this card, you can purchase up to 3 items of any value that are linked together. We will only deduct the exact dollar amount of the purchased goods from your budget as long as there is money there.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][1].MODE_SETTING = 19;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][2] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][2].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][2].MODE_SETTING = 20;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][3][2] = "You can always find the blazing, sunny glory of summer at \n<color:7596F2> T <color:0DE454>R <color:7596F2>O <color:0DE454>P <color:7596F2>I <color:0DE454>C <color:7596F2> SEA <color:D98408> .\n\nLet's dive into summer fun now.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][3] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][3].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][3].MODE_SETTING = 21;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][3][3] = "<color:D98408>Shopping is one of the cool ways to enjoy Summer.\n\n Don't you agree?";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][4] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][4].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][4].MODE_SETTING = 22;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][3][4] = "<color:D98408>Fabulous!\nDon't forget to buy sunblock! \nWell, you will also need to pack the bikini, duckling and the beach ball into your bag.\nLet's go now!";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][5] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][5].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][5].MODE_SETTING = 23;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][3][5] = "<color:D98408>You look radiant.\nYou must be having a good time at our shop. Keep up the good work. \nThis upcoming round is quite challenging. Make sure you use the PRESTIGE CARD.\n\n\nLet's continue now.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][6] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][6].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][3][6].MODE_SETTING = 24;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][3][6] = "<color:D98408>Congratulations!!\nYou have made to the bonus round.\nWith the experience you gained, I hope you can pass this round in the first try and collect our recognition medal.\n\n\nSame as before, you can try this round as many times as you like.";
_global.GAMES_OBJECTIVE_PAGE_CHAR[_global.GAMES_ARCADE_MODE][4] = _global.CHAR_CAUSAL_GIRL;
_global.GAMES_SUMMARY_PAGE_CHAR[_global.GAMES_ARCADE_MODE][4] = _global.CHAR_CAUSAL_GIRL;
_global.GAMES_LEVEL_SETTING_CHAR_IMAGE[_global.GAMES_ARCADE_MODE][4] = charGirlImageMap;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4] = new Array();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][1] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][1].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][1].MODE_SETTING = 25;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][4] = new Array();
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][4][1] = "Welcome to Belle Fashion! We are having a promotion now. You simply need to purchase the item in the special color ball\nto earn a $100 coupon.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][2] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][2].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][2].MODE_SETTING = 26;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][4][2] = "We have all the great deals here at Belle Fashion .\n\nLet's see if there is anything that you like.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][3] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][3].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][3].MODE_SETTING = 27;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][4][3] = "You have good eyes for fashion plus good sense in money too. \nDon\u2019t miss buying the item in the special colored ball to collect $100 coupon.\nLet\u2019s continue the fun!";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][4] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][4].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][4].MODE_SETTING = 28;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][4][4] = "<color:D98408>I am so happy for you. It's not easy to come this far.\nLet's go!";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][5] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][5].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][5].MODE_SETTING = 29;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][4][5] = "You have got style!! \nI really wish you to complete this challenge and to enter into the next stage.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][6] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][6].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][4][6].MODE_SETTING = 30;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][4][6] = "<color:D98408>Congratulations!! \nLet's give the bonus round a shot and win the BELLE FASHION medal. I am sure others will pay you a lot of respect when they see how medals you have collected.";
_global.GAMES_OBJECTIVE_PAGE_CHAR[_global.GAMES_ARCADE_MODE][5] = _global.CHAR_MALE_SHOPPER;
_global.GAMES_SUMMARY_PAGE_CHAR[_global.GAMES_ARCADE_MODE][5] = _global.CHAR_MALE_SHOPPER;
_global.GAMES_LEVEL_SETTING_CHAR_IMAGE[_global.GAMES_ARCADE_MODE][5] = charGirlImageMap;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5] = new Array();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][1] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][1].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][1].MODE_SETTING = 31;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][5] = new Array();
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][5][1] = "<color:D98408>Welcome to\n <color:F52C58>RE <color:F53861>STL <color:F56988>ESS <color:4940F7> W <color:534AF7>E <color:5F57F7>A <color:6A63F7>R <color:D98408>!\nYou can earn $100 coupon when you purchase our limited edition \n\n \nThis time, you will find $500 in your pocket, make sure you spend them on big value items. ";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][2] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][2].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][2].MODE_SETTING = 32;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][5][2] = "<color:D98408>Have you bought enough tees? \nYou know you need one in every occasion.\nLet's start shopping now!";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][3] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][3].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][3].MODE_SETTING = 33;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][5][3] = "You must be pretty energetic.\n I am sure you will look good in our limited edition sneakers. \nBuy them and collect the $100 coupon.\n Let's go!";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][4] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][4].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][4].MODE_SETTING = 34;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][5][4] = "<color:D98408>3 hurrays for you!! You must be a natural born shopper.\nVery few people can make to this round. \n\nGood luck!!";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][5] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][5].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][5].MODE_SETTING = 35;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][5][5] = "<color:D98408>Amazing! You are here earlier than I expected.\nLet's see how well you do this time.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][6] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][6].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][5][6].MODE_SETTING = 36;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][5][6] = "<color:D98408>Congratulations!! I bet you are well aware of the rules, but I still have to repeat them.\nYes, you can play as many times as you like without worrying about failing.\nOnce you passed this round, you will be rewarded with a medal.";
_global.GAMES_OBJECTIVE_PAGE_CHAR[_global.GAMES_ARCADE_MODE][6] = _global.CHAR_SUIT_MAN;
_global.GAMES_SUMMARY_PAGE_CHAR[_global.GAMES_ARCADE_MODE][6] = _global.CHAR_SUIT_MAN;
_global.GAMES_LEVEL_SETTING_CHAR_IMAGE[_global.GAMES_ARCADE_MODE][6] = charGirlImageMap;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6] = new Array();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][1] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][1].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][1].MODE_SETTING = 37;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][6] = new Array();
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][6][1] = "Welcome to <spush><color:95947D> La Vie Jeweler <spop> !\nOnly the experienced shopper knows how to get here.\nYou have come at the perfect time. When you purchase the item in the special color ball, \nyou will get a $300 coupon.\n\nLet's check out our collection now.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][2] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][2].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][2].MODE_SETTING = 38;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][6][2] = "<color:D98408>You will find all those precious gem stones in our store. \nEach gem stone has a different meaning. \n\nHave you found one that tells your story?";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][3] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][3].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][3].MODE_SETTING = 39;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][6][3] = "<color:D98408>Just a winning tip,\nuse your Prestige Card to buy the item in the special color ball.\nThis way, you will gain extra voucher without wasting any money.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][4] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][4].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][4].MODE_SETTING = 40;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][6][4] = "The game is getting more difficult now. Remenber, with two more rounds, and you will complete this Shopping Marathon!";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][5] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][5].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][5].MODE_SETTING = 41;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][6][5] = "Stay focus! Make good use of the Prestige card and voucher. \nYou are one great shopper and I am pretty sure that you will make it.";
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][6] = new Object();
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][6].MODE = _global.GAMES_NORMAL_MODE;
_global.GAMES_LEVEL_SETTING[_global.GAMES_ARCADE_MODE][6][6].MODE_SETTING = 42;
_global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][6][6] = "<color:D98408>Marvellous!!\nThis is the final stop in Shopping Marathon. \nWinning this bonus round will give your marathon run a perfect ending.";
_global.initDollar = function () {
_global.getDollarFreqArr(_global.playMode, _global.modeSettingId);
};
_global.createDollar = function (level, playMode, modeSettingId) {
var _local3;
var _local2;
var _local6;
if (_global.makeCoupon) {
_local2 = _global.GAMES_COUPON_USE[playMode][modeSettingId];
trace("dollarId" + _local2);
_global.makeCouponCount--;
if (_global.makeCouponCount == 0) {
_global.makeCoupon = false;
}
} else {
_local3 = _global.getIndexByFreqArr(_global.dollarFreqArr);
_local2 = _global.GAMES_DOLLAR_USE[playMode][modeSettingId][_local3];
while (((_global.DOLLARS_DOLLAR[_local2].VALUE > _global.moneyLeft) || ((_global.DOLLARS_DOLLAR[_local2].CATEGORY == _global.DOLLARS_CREDIT_CARD) && (_global.moneyLeft < _global.itemMostValue))) || ((_global.DOLLARS_DOLLAR[_local2].CATEGORY == _global.DOLLARS_CREDIT_CARD) && (_global.madeCreditCard))) {
_local3 = _global.getIndexByFreqArr(_global.dollarFreqArr);
_local2 = _global.GAMES_DOLLAR_USE[playMode][modeSettingId][_local3];
}
if (_global.DOLLARS_DOLLAR[_local2].CATEGORY == _global.DOLLARS_CREDIT_CARD) {
_global.needCreditCard = false;
_global.madeCreditCard = true;
}
}
if (_global.madeCreditCard && (_global.creditInterval > 0)) {
_global.creditInterval--;
if (_global.creditInterval == 0) {
_global.madeCreditCard = false;
_global.creditInterval = _global.DOLLARS_CREDIT_CARD_APPEAR_INTERVAL;
}
}
_local6 = level.attachMovie(_global.DOLLARS_DOLLAR[_local2].NAME, "Dollar" + _global.DollarNum, _global.DollarNum);
_local6.SetDollarVal(_global.DOLLARS_DOLLAR[_local2].VALUE, _global.DOLLARS_DOLLAR[_local2].CATEGORY);
_global.DollarNum++;
if (_global.DOLLARS_DOLLAR[_local2].CATEGORY == _global.DOLLARS_CREDIT_CARD) {
_local6.maxChainCount = _global.DOLLARS_DOLLAR[_local2].CHAIN;
}
_local6.clean = true;
_local6.isMoving = false;
return(_local6);
};
_global.createNewDollar = function (level, playMode, modeSettingId) {
_global.dollar = _global.createDollar(level, playMode, modeSettingId);
_global.setDollarPhysic(_global.dollar);
if (_global.dollar.type == _global.DOLLARS_CASH) {
_global.updateMoneyLeft(_global.dollar.value);
if (_global.GAMES_LIMITED_BUDGET[_global.playMode]) {
}
}
_global.nextDollar = _global.createDollar(level, playMode, modeSettingId);
_global.nextDollar._x = 152;
_global.nextDollar._y = 416;
};
_global.setDollarPhysic = function (dollar) {
dollar.tag = "dollar";
dollar.speed = _global.DOLLARS_SPEED;
};
_global.findLeastValueMoney = function () {
var _local5 = 0;
var _local4 = 99999 /* 0x01869F */;
var _local3 = 0;
while (_local3 < _global.GAMES_DOLLAR_USE[_global.playMode][_global.modeSettingId].length) {
var _local2 = _global.GAMES_DOLLAR_USE[_global.playMode][_global.modeSettingId][_local3];
if (_global.DOLLARS_DOLLAR[_local2].CATEGORY == _global.DOLLARS_CASH) {
if (_global.DOLLARS_DOLLAR[_local2].VALUE < _local4) {
_local5 = _local2;
_local4 = _global.DOLLARS_DOLLAR[_local2].VALUE;
}
}
_local3++;
}
return(_local4);
};
_global.dollarReload = function (level, playMode, modeSettingId) {
if (_global.hitBonusMoney) {
_global.hitBonusMoney = false;
_global.moneyLeft = _global.moneyLeft + _global.bonusMoneyGet;
_global.bonusMoneyGet = 0;
if ((_global.moneyLeft >= _global.dollarLeastValue) && (_global.nextDollar == undefined)) {
_global.nextDollar = _global.createDollar(level, playMode, modeSettingId);
_global.nextDollar.lastDollar = _global.markLastDollar(_global.nextDollar, _global.moneyLeft);
}
if ((_global.moneyLeft > _global.Character.scaryMoneyLeft) && (_global.moneyLeftImg.flashing)) {
_global.moneyLeftImg.flashing = false;
_global.moneyLeftImg.setHide = false;
clearInterval(_global.moneyLeftImg.intervalId);
if (_global.timeLeft > _global.Character.scaryTimeLeft) {
_global.Character.bScared = false;
}
}
_global.moneyLeftImg_drawMoneyLeft(_global.moneyLeftGuiTxt, _global.moneyLeft);
}
if (_global.hitBonusScore) {
_global.hitBonusScore = false;
_global.score = _global.score + _global.bonusScoreGet;
_global.drawTxt(_global.scoreGuiTxt, _global.score);
_global.bonusScoreGet = 0;
}
if (_global.hitBonusTime) {
_global.hitBonusTime = false;
_global.timeLeft = _global.timeLeft + _global.bonusTimeGet;
_global.timer.time = _global.timer.time - _global.bonusTimeGet;
if (_global.timer.time < 0) {
_global.timer.time = 0;
}
if (_global.timeLeft > _global.timeLimit) {
_global.timeLeft = _global.timeLimit;
}
if (_global.timeBar.flashing && (_global.timeLeft > _global.Character.scaryTimeLeft)) {
_global.timeBar.flashing = false;
if (_global.moneyLeft >= _global.Character.scaryTimeLeft) {
_global.Character.bScared = false;
_global.Character.currentAnimate = _global.Character.normal;
}
}
_global.bonusTimeGet = 0;
}
if ((!_global.nextStageFlag) && (!_global.makeNewRow)) {
if (_global.nextDollar.value > _global.moneyLeft) {
_global.nextDollar.removeMovieClip();
_global.nextDollar = _global.createDollar(level, playMode, modeSettingId);
_global.nextDollar.lastDollar = _global.markLastDollar(_global.nextDollar, _global.moneyLeft);
}
_global.dollar = _global.nextDollar;
_global.dollar.SetPreXY();
_global.setDollarPhysic(_global.dollar);
if (_global.dollar.type == _global.DOLLARS_CASH) {
_global.updateMoneyLeft(_global.dollar.value);
}
if (_global.dollar.lastDollar) {
_global.nextDollar = null;
} else {
_global.nextDollar = null;
_global.nextDollar = _global.createDollar(level, playMode, modeSettingId);
_global.nextDollar.SetXY(152, 416);
}
_global.shootEnable(true);
if (_global.targetLine.show) {
_global.targetLine.update();
}
}
if (_global.makeNewRow) {
level.startShake();
}
};
_global.setDollarVariable = function (playMode, modeSettingId) {
_global.getDollarFreqArr(_global.playMode, _global.modeSettingId);
};
_global.getDollarFreqArr = function (playMode, modeSettingId) {
_global.dollarFreqArr = new Array();
var _local2 = 0;
while (_local2 < _global.GAMES_DOLLAR_USE[playMode][modeSettingId].length) {
var _local5 = _global.GAMES_DOLLAR_USE[playMode][modeSettingId][_local2];
_global.dollarFreqArr[_local2] = _global.DOLLARS_DOLLAR[_local5].FREQUENCY[playMode][modeSettingId];
_local2++;
}
};
_global.getIndexByFreqArr = function (freqArr) {
var _local3 = 0;
var _local4 = 0;
var _local1 = 0;
while (_local1 < freqArr.length) {
_local4 = _local4 + freqArr[_local1];
_local1++;
}
var _local6 = getRandom(1, _local4);
var _local5 = 0;
_local1 = 0;
while (_local1 < freqArr.length) {
_local5 = _local5 + freqArr[_local1];
if (_local6 <= _local5) {
_local3 = _local1;
_local1 = freqArr.length;
}
_local1++;
}
return(_local3);
};
_global.getRandom = function (min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
};
_global.updateMoneyLeft = function (dollarValue) {
_global.totalMoney = _global.totalMoney + dollarValue;
_global.moneyLeft = _global.moneyLeft - dollarValue;
_global.moneyLeftImg_drawMoneyLeft(_global.moneyLeftGuiTxt, _global.moneyLeft);
if ((_global.moneyLeft < _global.Character.busyMoneyLeft) && (!_global.Character.bBusied)) {
_global.Character.playAnimation(_global.Character.busy, false);
_global.Character.bBusied = true;
_global.Character.currentAnimate = _global.Character.busy;
} else if (_global.moneyLeft < _global.Character.scaryMoneyLeft) {
if (!_global.moneyLeftImg.flashing) {
_global.moneyLeftImg.setHide = true;
_global.moneyLeftImg.flashing = true;
_global.moneyLeftImg_setTimerOn();
}
if (!_global.Character.bScared) {
_global.Character.playAnimation(Character.scare, false);
_global.Character.bScared = true;
_global.Character.currentAnimate = Character.scare;
}
}
};
_global.markLastDollar = function (dollar, moneyLeft) {
isLastDallar = false;
if ((dollar.type == _global.DOLLARS_COUPON) || (dollar.type == _global.DOLLARS_CREDIT_CARD)) {
if (moneyLeft < _global.dollarLeastValue) {
isLastDallar = true;
} else {
isLastDallar = false;
}
} else if (dollar.type == _global.DOLLARS_CASH) {
if ((moneyLeft - dollar.value) < _global.dollarLeastValue) {
isLastDallar = true;
} else {
isLastDallar = false;
}
}
return(isLastDallar);
};
_global.updateScoreByItemBuy = function (buyNo) {
if (_global.SCORE_SYSTEM_CHECK_ITEM_GET_NO[_global.playMode]) {
_global.score = _global.score + _global.SCORE_SYSTEM_ITEM_GET_NO_SCORE[_global.stage][buyNo];
}
};
_global.addItemStore = function (id) {
if (!_global.nextStageFlag) {
_global.itemStoreArr[id]++;
}
};
_global.updateScoreByTimerItem = function (item) {
var _local5;
var _local2;
var _local4;
if (item.countingDown) {
_global.playSoundEffect("bonusItemSound");
if (_global.gameMode == _global.GAMES_ARCADE_MODE) {
_local5 = _global.stage;
} else {
_local5 = _global.curShop;
}
if (_global.ITEMS_ITEM[item.id].ADD_SCORE) {
_global.hitBonusScore = true;
_local2 = _global.TIMER_ITEM_BONUS_SCORE[_global.gameMode][_local5];
_global.bonusScoreGet = _global.bonusScoreGet + _local2;
_global.totalBonusScoreGet = _global.totalBonusScoreGet + _local2;
_global.bDrawBonusScore = true;
_global.bonusScoreDisplay = _global.bonusScoreGet;
if (_global.totalBonusScoreGet >= ((_global.maxBonusScore * _global.GAMES_BONUS_SCORE_CHANGE_FREQ_PRECENT) / 100)) {
_global.maxBScoreItemCount = _global.GAMES_BONUS_SCORE_MAX_COUNT_CHANGE;
if (_global.totalBonusScoreGet >= _global.maxBonusScore) {
_local4 = _global.testReducedFrequency(item, _global.playMode, _global.modeSettingId);
if (!_local4) {
_global.setLowerItemFreqArr(item, true, _global.playMode, _global.modeSettingId);
_global.itemAppearRate = _global.getItemFreqArr(_global.playMode, _global.modeSettingId);
}
}
}
}
if (_global.ITEMS_ITEM[item.id].ADD_MONEY) {
_global.hitBonusMoney = true;
_local2 = _global.TIMER_ITEM_BONUS_MONEY[_global.gameMode][_local5];
_global.bonusMoneyGet = _global.bonusMoneyGet + _local2;
_global.totalBonusMoneyGet = _global.totalBonusMoneyGet + _local2;
_global.bDrawBonusMoney = true;
_global.bonusMoneyDisplay = _global.bonusMoneyGet;
if (_global.totalBonusMoneyGet >= ((_global.maxBonusMoney * _global.GAMES_BONUS_MONEY_CHANGE_FREQ_PRECENT) / 100)) {
_global.maxBMoneyItemCount = _global.GAMES_BONUS_MONEY_MAX_COUNT_CHANGE;
if (_global.totalBonusMoneyGet >= _global.maxBonusMoney) {
_local4 = _global.testReducedFrequency(item, _global.playMode, _global.modeSettingId);
if (!_local4) {
_global.setLowerItemFreqArr(item, true, _global.playMode, _global.modeSettingId);
_global.itemAppearRate = _global.getItemFreqArr(_global.playMode, _global.modeSettingId);
}
}
}
}
if (_global.ITEMS_ITEM[item.id].ADD_TIME) {
_global.hitBonusTime = true;
_local2 = Math.floor(_global.TIMER_ITEM_BONUS_TIME[_global.gameMode][_local5]);
_global.bonusTimeGet = _global.bonusTimeGet + _local2;
_global.totalBonusTimeGet = _global.totalBonusTimeGet + _local2;
_global.bDrawBonusTime = true;
_global.bonusTimeDisplay = _global.bonusTimeGet;
if (_global.totalBonusTimeGet >= ((_global.maxBonusTime * _global.GAMES_BONUS_TIME_CHANGE_FREQ_PRECENT) / 100)) {
_global.maxBTimeItemCount = _global.GAMES_BONUS_TIME_MAX_COUNT_CHANGE;
if (_global.totalBonusTimeGet >= _global.maxBonusTime) {
_local4 = _global.testReducedFrequency(item, _global.playMode, _global.modeSettingId);
if (!_local4) {
_global.setLowerItemFreqArr(item, true, _global.playMode, _global.modeSettingId);
_global.itemAppearRate = _global.getItemFreqArr(_global.playMode, _global.modeSettingId);
}
}
}
}
}
};
_global.updateBonusScore = function () {
if (_global.SCORE_SYSTEM_CHECK_MONEY_LEFT[_global.playMode]) {
_global.updateScoreByMoneyLeft();
}
if (_global.SCORE_SYSTEM_CHECK_TIME_LEFT[_global.playMode]) {
_global.updateScoreByTimeLeft();
}
if (_global.playMode == _global.GAMES_TARGET_REACH_MODE) {
_global.updateReachTargetScore();
}
if (_global.SCORE_SYSTEM_CHECK_EFFICIENT[_global.playMode]) {
_global.updateScoreByEfficent();
}
if (_global.playMode == _global.GAMES_COLLECTION_MODE) {
_global.updateScoreByCollection();
}
if (_global.subStage == _global.GAMES_SUB_STAGE_NUM[_global.gameMode]) {
_global.levelClearBonus = _global.SCORE_SYSTEM_LEVEL_COMPLETE_BONUS_SCORE[_global.gameMode][_global.stage];
}
if (_global.gameMode == _global.GAMES_COLLECTOR_MODE) {
_global.itemUnlockBonus = _global.SCORE_SYSTEM_ITEM_UNLOCK_BONUS_SCORE[_global.stage][_global.subStage];
}
};
_global.updateScoreByProfit = function () {
};
_global.updateScoreByCollection = function () {
if (_global.allRequiredTypeGet == _global.allRequireTypeNum) {
_global.collectBonus = 0;
}
};
_global.updateScoreByEfficent = function () {
_global.effiBonus = Math.floor((_global.efficiency / 100) * _global.efficientScore);
if (_global.efficiency == 100) {
var _local2 = _global.SCORE_SYSTEM_EFFICIENT_BONUS_SCORE[_global.playMode];
_global.effiBonus = Math.floor(_local2 * _global.effiBonus);
}
};
_global.updateReachTargetScore = function () {
var _local3 = _global.GAMES_PASS_RANGE[_global.playMode][_global.modeSettingId];
var _local4 = _global.GAMES_TARGET_VALUE[_global.playMode][_global.modeSettingId];
var _local2 = _global.totalItemBuy - _local4;
if (_local2 < 0) {
_local2 = _local4 - _global.totalItemBuy;
}
_global.targetBonus = Math.floor(((_local3 - _local2) / _local3) * _global.reachTargetScore);
};
_global.updateScoreByMoneyLeft = function () {
var _local2 = _global.totalItemBuy / _global.totalMoney;
_global.moneyLeftBonus = Math.floor((_global.SCORE_SYSTEM_MONEY_LEFT_SCORE[_global.playMode] * _global.moneyLeft) * _local2);
};
_global.updateScoreByTimeLeft = function () {
_global.timeLeftBonus = _global.SCORE_SYSTEM_TIME_LEFT_SCORE[_global.playMode] * _global.timeLeft;
};
_global.goMenuPage = function (bCreateObject) {
gotoAndStop (184);
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_MAIN_MENU);
_global.playBgAudio("menuBgMusic");
if (bCreateObject) {
}
};
_global.selChar = function (charId) {
trace(charId);
_global.characterId = charId;
};
_global.selArcadeMode = function () {
trace("function selArcadeMode()");
if (_global.playing) {
_global.nextGameMode = _global.GAMES_ARCADE_MODE;
} else {
_global.gameMode = _global.GAMES_ARCADE_MODE;
trace(_global.gameMode);
}
removeMovieClip("Marathon menu");
_global.startArcadeMode(1);
};
_global.goNewOrResumePage = function (gameMode) {
gotoAndStop (1);
var _local2 = attachMovie("Marathon", "Marathon menu", 1000);
_local2.NewGame.onRelease = function () {
gotoAndStop (185);
removeMovieClip("Marathon menu");
};
_local2._x = 150;
_local2._y = 80;
if (gameMode == _global.GAMES_ARCADE_MODE) {
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_NEW_RESUME_ARC_PAGE);
} else if (gameMode == _global.GAMES_COLLECTOR_MODE) {
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_NEW_RESUME_COLL_PAGE);
}
};
_global.startArcadeMode = function (bReset) {
trace("function startArcadeMode " + bReset);
if (_global.playing) {
_global.resetGame();
_global.gameMode = _global.nextGameMode;
_global.bNextStage = false;
}
_global.playing = true;
_global.bFirstStart = true;
if (bReset) {
_global.score = 0;
_global.life = _global.GAMES_LIFE;
_global.stage = 1;
_global.subStage = 1;
_global.inGameBgSoundNo = 1;
_global.medalCollection = "";
_global.bIntroBonusMoneyItem = true;
_global.bIntroBonusTimeItem = true;
_global.bIntroBonusScoreItem = true;
}
_global.startPlayGame(true);
};
_global.goObjectivePage = function (gameMode, playMode, modeSettingId) {
gotoAndStop (186);
_global.prevMsgBtn._visible = false;
_global.nextMsgBtn._visible = false;
_global.createObjectiveBoardImg(gameMode, playMode, modeSettingId, _global.objectiveScene);
};
_global.objtiveButtonOK = function () {
deleteObjectiveBoardImg(_global.gameMode);
};
_global.createObjectiveBoardImg = function (gameMode, playMode, modeSettingId, objectiveScene) {
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_DISPLAY_OBJECTIVE);
_global.showObjective(gameMode, playMode, modeSettingId, objectiveScene);
if (_global.GUI_DISPLAY_BUDGET[gameMode]) {
_global.objtiveBudgetTxt = _global.createTxt(_global.GUI_OBJECTIVE_BUDGET_TXT_POS, _global.GUI_OBJECTIVE_BUDGET_TXT_SIZE, _global.getDigit(_global.budget), _global.GUI_OBJECTIVE_BUDGET_TXT_IMAGE, _root, 100);
_global.drawTxt(_global.objtiveBudgetTxt, _global.budget);
}
if (_global.GUI_DISPLAY_TARGET[gameMode]) {
_global.objtiveTargetTxt = _global.createTxt(_global.GUI_OBJECTIVE_TARGET_TXT_POS, _global.GUI_OBJECTIVE_TARGET_TXT_SIZE, _global.getDigit(_global.target_value), _global.GUI_OBJECTIVE_TARGET_TXT_IMAGE, _root, 200);
_global.drawTxt(_global.objtiveTargetTxt, _global.target_value);
}
var _local3 = _global.GAMES_OBJECTIVE_PAGE_CHAR[gameMode][_global.stage];
_global.objtiveCharImg = _global.createGuiImage(_global.GUI_OBJECTIVE_CHAR_IMAGE[_local3], _global.GUI_OBJECTIVE_CHAR_POS[_local3][0], _global.GUI_OBJECTIVE_CHAR_POS[_local3][1], 700, _root);
};
_global.deleteObjectiveBoardImg = function (gameMode) {
gotoAndPlay (187);
if (_global.GUI_DISPLAY_BUDGET[gameMode]) {
_global.deleteTxt(_global.objtiveBudgetTxt, _global.getDigit(_global.budget));
}
if (_global.GUI_DISPLAY_TARGET[gameMode]) {
_global.deleteTxt(_global.objtiveTargetTxt, _global.getDigit(_global.target_value));
}
_global.objtiveCharImg.removeMovieClip();
if ((_global.bNextStage || (_global.bFirstStart)) || ((_global.gameMode == _global.GAMES_ARCADE_MODE) && (_global.subStage == _global.GAMES_SUB_STAGE_NUM[_global.gameMode]))) {
_global.gameStartNow();
} else {
_global.addLifeNote();
}
};
_global.showObjective = function (gameMode, playMode, modeSettingId, objectiveScene) {
var _local3;
if (gameMode == _global.GAMES_ARCADE_MODE) {
if ((_global.stage == 1) && (_global.subStage == 1)) {
_local3 = (("Welcome to Shopping Marathon,\n " + _global.UserName) + " !") + _global.GUI_OBJECTIVE_OBJECTIVE[_global.GAMES_ARCADE_MODE][1][1];
lblObjective.text = _local3;
} else if (((_global.stage == 1) && (_global.subStage == 6)) || ((_global.stage == 3) && (_global.subStage == 1))) {
_global.prevMsgBtn = _root.attachMovie("prevMsgBtn", "prevMsgBtn", 1111);
_global.prevMsgBtn._x = 410;
_global.prevMsgBtn._y = 80;
_global.prevMsgBtn._visible = false;
_global.prevMsgBtn.onRelease = function () {
lblObjective.htmlText = _global.GUI_OBJECTIVE_OBJECTIVE[gameMode][_global.stage][_global.subStage][1];
_global.prevMsgBtn._visible = false;
_global.nextMsgBtn._visible = true;
};
_global.nextMsgBtn = _root.attachMovie("nextMsgBtn", "nextMsgBtn", 1122);
_global.nextMsgBtn._x = 742;
_global.nextMsgBtn._y = 80;
_global.nextMsgBtn.onRelease = function () {
lblObjective.htmlText = _global.GUI_OBJECTIVE_OBJECTIVE[gameMode][_global.stage][_global.subStage][2];
_global.prevMsgBtn._visible = true;
_global.nextMsgBtn._visible = false;
};
lblObjective.html = true;
lblObjective.htmlText = _global.GUI_OBJECTIVE_OBJECTIVE[gameMode][_global.stage][_global.subStage][1];
} else {
lblObjective.html = true;
lblObjective.htmlText = _global.GUI_OBJECTIVE_OBJECTIVE[gameMode][_global.stage][_global.subStage];
}
} else if (gameMode == _global.GAMES_COLLECTOR_MODE) {
lblObjective.text = _global.GUI_OBJECTIVE_OBJECTIVE[gameMode][_global.curShop][_global.subStage];
}
};
_global.setGameVarible = function () {
_global.bShakeTheItem = true;
_global.hitBonusMoney = false;
_global.hitBonusScore = false;
_global.hitBonusTime = false;
_global.bonusMoneyGet = 0;
_global.bonusScoreGet = 0;
_global.bonusTimeGet = 0;
_global.lowerItemFreqArr = "";
_global.totalBonusMoneyGet = 0;
_global.playMode;
_global.maxBonusMoney = _global.GAMES_BONUS_MONEY_LIMIT[_global.modeSettingId];
_global.maxBMoneyItemCount = _global.GAMES_BONUS_MONEY_MAX_COUNT_DEFAULT;
_global.totalBonusScoreGet = 0;
_global.playMode;
_global.maxBonusScore = _global.GAMES_BONUS_SCORE_LIMIT[_global.modeSettingId];
_global.maxBScoreItemCount = _global.GAMES_BONUS_SCORE_MAX_COUNT_DEFAULT;
_global.totalBonusTimeGet = 0;
_global.playMode;
_global.maxBonusTime = _global.GAMES_BONUS_TIME_LIMIT[_global.modeSettingId];
_global.maxBTimeItemCount = _global.GAMES_BONUS_TIME_MAX_COUNT_DEFAULT;
_global.bUseBonusMoneyItem = false;
_global.bUseBonusTimeItem = false;
_global.bUseBonusScoreItem = false;
var _local5 = 0;
while (_local5 < _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId].length) {
var _local4 = _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId][_local5];
if (_global.ITEMS_ITEM[_local4].ADD_MONEY) {
_global.bUseBonusMoneyItem = true;
} else if (_global.ITEMS_ITEM[_local4].ADD_SCORE) {
_global.bUseBonusScoreItem = true;
} else if (_global.ITEMS_ITEM[_local4].ADD_TIME) {
_global.bUseBonusTimeItem = true;
}
_local5++;
}
if (_global.GAMES_LIMITED_TIME[_global.playMode][_global.modeSettingId]) {
_global.timeLimit = _global.GAMES_TIME_LIMIT[_global.playMode][_global.modeSettingId];
}
_global.budget = _global.GAMES_BUDGET[_global.playMode][_global.modeSettingId];
_global.makeCoupon = false;
_global.makeCouponCount = 0;
_global.totalMoney = 0;
_global.totalItemBuy = 0;
_global.moneyLeft = _global.budget;
_global.efficiency = 0;
_global.stageBeginScore = _global.score;
_global.setDollarVariable(_global.playMode, _global.modeSettingId);
_global.setItemVariable(_global.playMode, _global.modeSettingId);
_global.dollarLeastValue = _global.findLeastValueMoney();
_global.needCreditCard = false;
_global.isCreditLevel = false;
_global.madeCreditCard = false;
_local5 = 0;
while (_local5 < _global.GAMES_DOLLAR_USE[_global.playMode][_global.modeSettingId].length) {
var _local6 = _global.GAMES_DOLLAR_USE[_global.playMode][_global.modeSettingId][_local5];
if (_global.DOLLARS_DOLLAR[_local6].CATEGORY == _global.DOLLARS_CREDIT_CARD) {
_global.needCreditCard = true;
_global.madeCreditCard = false;
_global.creditMoney = _global.budget * 0.8;
_global.creditInterval = _global.DOLLARS_CREDIT_CARD_APPEAR_INTERVAL;
_global.isCreditLevel = true;
}
_local5++;
}
if (_global.playMode == _global.GAMES_NORMAL_MODE) {
_global.target_value = _global.GAMES_TARGET_VALUE[_global.playMode][_global.modeSettingId];
} else if (_global.playMode == _global.GAMES_COLLECTION_MODE) {
_global.reqTypeNum = _global.GAMES_PRE_ITEM[_global.playMode][_global.modeSettingId].length;
_global.collectPassPercent = _global.GAMES_PASS_PERCENT[_global.playMode][_global.modeSettingId];
_global.percentInc = _global.GAMES_PERCENT_INC[_global.playMode][_global.modeSettingId];
_local5 = 1;
while (_local5 < _global.stage) {
_global.collectPassPercent = _global.collectPassPercent + percentInc;
_local5++;
}
_local5 = 0;
while (_local5 < _global.reqTypeNum) {
_global.requireType[_local5] = _global.GAMES_PRE_ITEM[_global.playMode][_global.modeSettingId][_local5];
_global.requireNum[_local5] = _global.GAMES_PRE_ITEM_NUM[_global.playMode][_global.modeSettingId][_local5];
var _local2 = 0;
while (_local2 < _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId].length) {
var _local3 = _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId][_local2];
if (_global.ITEMS_ITEM[_local3].TYPE == _global.requireType[_local5]) {
_global.requireIdSet[_local5] = _global.requireIdSet[_local5][_local3].length;
_global.allItemRequireCount++;
}
_local2++;
}
_local5++;
}
_global.allRequireTypeNum = 0;
_local5 = 0;
while (_local5 < _global.reqTypeNum) {
_global.requiredTypeGet[_local5] = 0;
_global.allRequireTypeNum = _global.allRequireTypeNum + _global.requireNum[_local5];
_local5++;
}
} else if (_global.playMode == _global.GAMES_BUY_FOOD_MODE) {
_global.profitItemSetId = _global.CHAR_CHAR[1].MAKE_MONEY_ITEM_SET[_global.playMode][_global.modeSettingId];
_global.profitItemSet = _global.CHAR_CHAR[_global.characterId].MAKE_MONEY_ITEM[_global.profitItemSetId];
_global.profitItemNum = _global.profitItemSet.length;
_global.profit = _global.CHAR_CHAR[_global.characterId].MAKE_MONEY_PROFIT[_global.profitItemSetId];
_global.profitGet = 0;
_global.profitItemSell = 0;
_local5 = 0;
while (_local5 < _global.profitItemNum) {
_global.profitItemGet[_local5] = 0;
_local5++;
}
} else if (_global.playMode == _global.GAMES_TARGET_REACH_MODE) {
_global.target_value = _global.GAMES_TARGET_VALUE[_global.playMode][_global.modeSettingId];
_global.target_range = _global.GAMES_PASS_RANGE[_global.playMode][_global.modeSettingId];
_global.reachTargetScore = _global.SCORE_SYSTEM_REACH_TARGET_SCORE;
scoreInc = _global.SCORE_SYSTEM_REACH_TARGET_SCORE_INC;
_local5 = 1;
while (_local5 < _global.stage) {
_global.reachTargetScore = Math.floor(_global.reachTargetScore * (1 + (scoreInc / 100)));
_local5++;
}
} else if (_global.playMode == _global.GAMES_BONUS_MODE) {
} else if (_global.playMode == _global.GAMES_SMART_BUYER_MODE) {
_global.reqTypeNum = _global.GAMES_REQUIRE_TYPE[_global.playMode][_global.modeSettingId].length;
_local5 = 0;
while (_local5 < _global.reqTypeNum) {
_global.requireType[_local5] = _global.GAMES_REQUIRE_TYPE[_global.playMode][_global.modeSettingId][_local5];
_global.requireNum[_local5] = _global.GAMES_ITEM_REQUIRE_NUM[_global.playMode][_global.modeSettingId][_local5];
var _local2 = 0;
while (_local2 < _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId].length) {
var _local3 = _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId][_local2];
if (_global.ITEMS_ITEM[_local3].TYPE == _global.requireType[_local5]) {
_global.requireIdSet[_local5] = _global.requireIdSet[_local5][_local3].length;
_global.allItemRequireCount++;
}
_local2++;
}
_local5++;
}
_global.allRequireTypeNum = 0;
_local5 = 0;
while (_local5 < _global.reqTypeNum) {
_global.requiredTypeGet[_local5] = 0;
_global.allRequireTypeNum = _global.allRequireTypeNum + _global.requireNum[_local5];
_local5++;
}
}
if (_global.SCORE_SYSTEM_CHECK_EFFICIENT[_global.playMode]) {
_global.efficientScore = _global.SCORE_SYSTEM_EFFICIENT_SCORE[_global.playMode];
scoreInc = _global.SCORE_SYSTEM_EFFICIENT_SCORE_INC[_global.playMode];
_local5 = 1;
while (_local5 < _global.stage) {
_global.efficientScore = Math.floor(_global.efficientScore * (1 + (scoreInc / 100)));
_local5++;
}
}
if (_global.gameMode == _global.GAMES_ARCADE_MODE) {
_global.gameMode;
mainScreenGui.setBitmap(_global.GUI_PLAY_PAGE_BG_IMAGE[_global.stage]);
} else if (_global.gameMode == _global.GAMES_COLLECTOR_MODE) {
_global.gameMode;
mainScreenGui.setBitmap(_global.GUI_PLAY_PAGE_BG_IMAGE[_global.curShop]);
}
};
_global.deleteGameItem = function (playMode, modeSettingId, gameMode) {
_global.stopAudio(_global.bgMusic);
if (_global.playMode == _global.GAMES_NORMAL_MODE) {
}
_global.timeBar.deleteTimeBar();
_global.MainBoard.removeMovieClip();
_global.moneyLeftGuiSetVisible(false);
_global.ScoreGuiSetVisible(false);
_global.LevelGuiSetVisible(false);
_global.LifeLeftGuiSetVisible(false);
};
_global.startPlayGame = function (bDisplayObjective) {
_global.setStageAndSubStage(_global.bNextStage);
if (_global.gameMode == _global.GAMES_COLLECTOR_MODE) {
updatePlayMode(_global.gameMode, _global.curShop, _global.subStage);
} else {
updatePlayMode(_global.gameMode, _global.stage, _global.subStage);
}
_global.setGameVarible();
if (bDisplayObjective) {
_global.goObjectivePage(_global.gameMode, _global.playMode, _global.modeSettingId);
} else {
gotoAndPlay (187);
if ((_global.bNextStage || (_global.bFirstStart)) || ((_global.gameMode == _global.GAMES_ARCADE_MODE) && (_global.subStage == _global.GAMES_SUB_STAGE_NUM[_global.gameMode]))) {
_global.gameStartNow();
} else {
_global.addLifeNote();
}
}
};
_global.updatePlayMode = function (gameMode, stage, subStage) {
_global.playMode = _global.GAMES_LEVEL_SETTING[gameMode][stage][subStage].MODE;
_global.modeSettingId = _global.GAMES_LEVEL_SETTING[gameMode][stage][subStage].MODE_SETTING;
};
_global.setStageAndSubStage = function (bNextStage) {
if (bNextStage) {
if (_global.bPressShortCut) {
_global.stage = _global.nextStage;
_global.subStage = _global.nextSubStage;
_global.bPressShortCut = false;
if (_global.playMode == _global.GAMES_COLLECTION_MODE) {
_global.curShop = _global.nextShop;
}
} else {
_global.subStage++;
if (_global.subStage > (_global.GAMES_SUB_STAGE_NUM[_global.gameMode] - 1)) {
if (_global.gameMode == _global.GAMES_COLLECTOR_MODE) {
_global.curShop = _global.GAMES_LEVEL_SETTING[_global.gameMode][_global.curShop][_global.subStage - 1].SHOP_UNLOCK;
}
_global.subStage = 1;
_global.stage++;
}
}
} else if (_global.gameOver) {
_global.gameOver = false;
if (_global.gameMode == _global.GAMES_COLLECTOR_MODE) {
_global.stage = _global.curShop;
} else if (_global.gameMode == _global.GAMES_ARCADE_MODE) {
_global.stage = 1;
}
_global.subStage = 1;
_global.score = 0;
_global.life = _global.GAMES_LIFE;
}
};
_global.resetGame = function () {
_global.moneyLeftImg.setHide = false;
if (_global.moneyLeftImg.flashing) {
_global.moneyLeftImg.flashing = false;
clearInterval(_global.moneyLeftImg.intervalId);
}
};
_global.changeGameState = function (curState, nextState) {
_global.lastGameState = curState;
_global.curGameState = nextState;
};
_global.gameStartNow = function () {
_global.Character.playAnimation(_global.Character.normal, false);
_global.createAllItem(_global.playMode, _global.modeSettingId);
if (_global.HelpFlowStatus == 0) {
_global.ShowHelpFlow_Start();
} else {
_global.setTimer(_global.timer);
_global.shootEnable(true);
}
_global.nextStageFlag = false;
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_PLAYING);
if (_global.gamePaused) {
_global.togglePause(false);
}
if (_global.targetLine.show) {
_global.targetLine.update();
}
if (_global.bFirstStart) {
_global.bFirstStart = false;
}
_global.playVoice("spMarathonVoice");
};
_global.shootEnable = function (startShoot) {
_global.startShoot = startShoot;
};
_global.togglePause = function (resumeGame) {
_global.gamePaused = !_global.gamePaused;
if (resumeGame) {
}
};
_global.checkStageLimit = function () {
if (!_global.nextStageFlag) {
if (_global.dollar.lastDollar || (_global.moneyLeft < _global.dollarLeastValue)) {
if ((_global.moneyLeft + _global.bonusMoneyGet) < _global.dollarLeastValue) {
_global.checkNextStage();
} else {
_global.dollar.lastDollar = false;
}
} else if (_global.playMode == _global.GAMES_COLLECTION_MODE) {
if ((_global.allRequiredTypeGet >= _global.allRequireTypeNum) || (_global.moneyLeft <= 0)) {
_global.checkNextStage();
}
} else if (_global.playMode == _global.GAMES_NORMAL_MODE) {
if ((_global.moneyLeft <= 0) || (_global.totalItemBuy >= _global.target_value)) {
_global.checkNextStage();
}
} else if (_global.playMode == _global.GAMES_BUY_GIFT_MODE) {
if (_global.moneyLeft <= 0) {
_global.checkNextStage();
}
} else if (_global.playMode == _global.GAMES_BUY_FOOD_MODE) {
if (_global.moneyLeft <= 0) {
_global.checkNextStage();
}
} else if (_global.playMode == _global.GAMES_SMART_BUYER_MODE) {
if ((_global.allRequiredTypeGet >= _global.progressBar.passProgress) || (_global.moneyLeft <= 0)) {
_global.checkNextStage();
}
}
}
};
_global.checkNextStage = function (cheat) {
_global.nextStageFlag = true;
_global.shootEnable(false);
clearInterval(_global.timer.intervalId);
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_LEVEL_COMPLETE);
_global.bNextStage = true;
if (_global.playMode == _global.GAMES_COLLECTION_MODE) {
var _local2 = 0;
while (_local2 < _global.reqTypeNum) {
if (_global.requiredTypeGet[_local2] < _global.requireNum[_local2]) {
_global.bNextStage = false;
}
_local2++;
}
if (cheat) {
_global.bNextStage = true;
}
if (_global.bNextStage) {
if ((_global.subStage == _global.GAMES_SUB_STAGE_NUM[_global.gameMode]) && (_global.gameMode == _global.GAMES_COLLECTOR_MODE)) {
_global.gameMode;
_global.curShop;
shopId = _global.GAMES_LEVEL_SETTING[_global.subStage].SHOP_UNLOCK;
_global.SHOP[shopId].unlock = true;
}
}
} else if (_global.playMode == _global.GAMES_BUY_GIFT_MODE) {
if (giftCart.happyBar < _global.GAMES_PASS_HAPPY_LEVEL[_global.modeSettingId]) {
_global.bNextStage = false;
}
} else if (_global.playMode == _global.GAMES_EFFICIENT_MODE) {
_global.playMode;
if (_global.efficiency < _global.GAMES_EFFICIENT_PASS_VALUE[_global.modeSettingId]) {
_global.bNextStage = false;
}
} else if (_global.playMode == _global.GAMES_TARGET_REACH_MODE) {
if ((_global.totalItemBuy >= (_global.target_value + _global.target_range)) || (_global.totalItemBuy <= (_global.target_value - _global.target_range))) {
_global.bNextStage = false;
}
} else if (_global.playMode == _global.GAMES_BONUS_MODE) {
var _local4 = _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId].length;
_global.maxItemNum = 0;
_global.maxItemId = _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId][0];
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId][_local2];
if (_global.itemStoreArr[_local3] > _global.maxItemNum) {
_global.maxItemId = _local3;
_global.maxItemNum = _global.itemStoreArr[_local3];
}
_local2++;
}
_global.bNextStage = false;
} else if (_global.playMode == _global.GAMES_NORMAL_MODE) {
if (_global.totalItemBuy < _global.target_value) {
_global.bNextStage = false;
}
if (cheat) {
_global.bNextStage = true;
}
} else if (_global.playMode == _global.GAMES_SMART_BUYER_MODE) {
var _local2 = 0;
while (_local2 < _global.reqTypeNum) {
if (_global.requiredTypeGet[_local2] < _global.requireNum[_local2]) {
_global.bNextStage = false;
}
_local2++;
}
} else if (_global.playMode == _global.GAMES_BUY_FOOD_MODE) {
}
_global.lastModeSetting = _global.modeSettingId;
_global.updateBonusScore();
_global.updateLife(_global.bNextStage);
_global.resetGame();
if (_global.bNextStage) {
_global.playVoice("youMakeItVoice");
}
if (!_global.gameOver) {
_global.RoundIntermission();
} else {
_global.ScoreSubmit();
_global.goGameOverEvent = setInterval(_global, "goGameOver", 1500, _global.playMode, _global.modeSettingId);
}
};
_global.updateLife = function (bNextStage) {
if (bNextStage) {
if (_global.life < _global.GAMES_LIFE) {
_global.life++;
}
} else {
if (_global.gameMode == _global.GAMES_ARCADE_MODE) {
_global.life--;
} else if (_global.gameMode == _global.GAMES_COLLECTOR_MODE) {
_global.life--;
}
if (_global.life < 1) {
_global.gameOver = true;
}
}
if (_global.life <= 1) {
_global.setImageMap(_global.lifeLeftImg, "lifeLeftNoSImagemap", 1801);
} else {
_global.setImageMap(_global.lifeLeftImg, "lifeLeftImagemap", 1801);
}
};
_global.getRandom = function (min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
};
_global.getDigit = function (num) {
digit = 1;
if (num < 0) {
num = -1 * num;
} else if (num == 0) {
return(1);
}
while ((num / 10) >= 1) {
num = num / 10;
digit++;
}
return(digit);
};
_global.addLifeNote = function () {
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_LIFE_NOTE);
_global.gameStartNow();
if (!_global.gamePaused) {
_global.togglePause(true);
}
_global.pauseTimer(true);
_global.Character.playAnimation(_global.Character.normal, false);
var _local3 = _global.getRandom(1, 2);
_global.messageBoxGui = _root.attachMovie("LifeNoteBoard", "messageBoxGui", 5000);
_global.messageBoxGui._x = 350;
_global.messageBoxGui._y = 250;
_global.messageBoxGui.lblmessage.text = _global.GUI_LIFE_NOTE_TEXT[_global.life][_local3];
_global.messageBoxGui.ok.onRelease = function () {
_global.removeLifeNote();
};
};
_global.removeLifeNote = function () {
_global.messageBoxGui.removeMovieClip();
if (_global.gamePaused) {
_global.togglePause(true);
}
_global.pauseTimer(false);
};
_global.showMenuScreen = function () {
_global.goMenuPage(true);
};
_global.createAllItem = function (playMode, modeSettingId) {
_global.MainBoard = attachMovie("ItemBoard", "MainBoard", 110);
_global.MainBoard._x = 126;
_global.MainBoard._y = 18;
_global.timeBar = attachMovie("TimeP", "timeBar", 111);
_global.timeBar._x = _global.GUI_TIME_BAR_POS[0];
_global.timeBar._y = _global.GUI_TIME_BAR_POS[1];
_global.createNewDollar(_global.MainBoard, playMode, modeSettingId);
_global.targetLine = new CtargetLine(_global.MainBoard);
_global.targetLine.createTargetLine();
_global.MainBoard.createAllItem(playMode, modeSettingId);
_global.timeBar.init(playMode, modeSettingId);
_global.drawTxt(_global.scoreGuiTxt, _global.score);
_global.moneyLeftImg_drawMoneyLeft(_global.moneyLeftGuiTxt, _global.moneyLeft);
_global.setImageMap(_global.lifeLeftTxtImg, ("lifeLeftTxt" + _global.life) + "Imagemap", 1600);
_global.LifeLeftGuiSetVisible(true);
_global.drawTxt(_global.levelTxt, _global.stage);
_global.drawTxt(_global.subLevelTxt, _global.subStage);
if (_global.inGameBgSoundNo == 1) {
_global.inGameBgSoundNo = 2;
_global.playBgAudio("inGameBgSound");
} else {
_global.inGameBgSoundNo = 1;
_global.playBgAudio("inGameBgSound");
}
};
_global.jumpStage = function (stage) {
_global.deleteGameItem(_global.playMode, _global.modeSettingId, _global.gameMode);
if (((!_global.nextStageFlag) && (_global.curGameState == _global.GAMES_GAME_STATE_PLAYING)) && (stage <= _global.GAMES_STAGE_NUM[_global.gameMode])) {
_global.nextStageFlag = true;
_global.lastStage = _global.stage;
_global.nextStage = stage;
_global.nextSubStage = 1;
_global.life = _global.GAMES_LIFE;
_global.bNextStage = true;
_global.shootEnable(false);
_global.bPressShortCut = true;
_global.updateBonusScore();
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_LEVEL_COMPLETE);
_global.resetGame();
_global.goSummaryPage(_global.gameMode, _global.playMode, _global.modeSettingId);
}
};
_global.jumpSubStage = function (subStage) {
_global.deleteGameItem(_global.playMode, _global.modeSettingId, _global.gameMode);
if (((!_global.nextStageFlag) && (_global.curGameState == _global.GAMES_GAME_STATE_PLAYING)) && (subStage <= _global.GAMES_SUB_STAGE_NUM[_global.gameMode])) {
_global.nextStageFlag = true;
_global.lastStage = _global.stage;
_global.nextStage = _global.stage;
_global.nextSubStage = subStage;
_global.bNextStage = true;
_global.shootEnable(false);
_global.bPressShortCut = true;
_global.updateBonusScore();
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_LEVEL_COMPLETE);
_global.resetGame();
_global.goSummaryPage(_global.gameMode, _global.playMode, _global.modeSettingId);
}
};
_global.quickCheckNextStage = function (cheat) {
if ((!_global.nextStageFlag) && (_global.curGameState == _global.GAMES_GAME_STATE_PLAYING)) {
_global.checkNextStage(cheat);
}
};
_global.pressEsc = function () {
_global.bgMusic.stop();
if (_global.curGameState == _global.GAMES_GAME_STATE_NEW_RESUME_ARC_PAGE) {
} else if (_global.curGameState == _global.GAMES_GAME_STATE_NEW_RESUME_COLL_PAGE) {
} else if (_global.curGameState == _global.GAMES_GAME_STATE_OPTION_PAGE) {
} else if (_global.curGameState == _global.GAMES_GAME_STATE_RANK_PAGE) {
} else if (_global.curGameState == _global.GAMES_GAME_STATE_HELP_PAGE) {
} else if (_global.curGameState == _global.GAMES_GAME_STATE_PROFILE_PAGE) {
} else if (_global.curGameState == _global.GAMES_GAME_STATE_CREATE_PLAYER_PAGE) {
} else if (_global.curGameState == _global.GAMES_GAME_STATE_DELETE_PLAYER_PAGE) {
} else if (_global.curGameState == _global.GAMES_GAME_STATE_SHOP_SEL_MENU) {
_global.goMenuPage(false);
} else if (_global.curGameState == _global.GAMES_GAME_STATE_PLAYING) {
_global.goInGameMenuPage();
} else if (_global.curGameState == _global.GAMES_GAME_STATE_IN_GAME_MENU_PAGE) {
} else if (_global.curGameState == _global.GAMES_GAME_STATE_IN_GAME_HELP_PAGE) {
}
};
_global.createMoneyLeftGui = function () {
_global.moneyLeftImg = new Object();
_global.moneyLeftImg.flashing = false;
_global.moneyLeftImg.setHide = false;
_global.moneyLeftGuiTxt = _global.createTxt(_global.GUI_MONEY_LEFT_TXT_POS, _global.GUI_MONEY_LEFT_TXT_SIZE, _global.GUI_MONEY_LEFT_TXT_DIGIT, "whiteNumberImagemap", _root, 1500);
};
_global.moneyLeftImg_onTimer = function () {
if (_global.moneyLeftImg.setHide) {
_global.hideTxt(_global.moneyLeftGuiTxt);
_global.moneyLeftImg.setHide = false;
} else {
_global.drawPartTxt(_global.moneyLeftGuiTxt, _global.moneyLeft);
_global.moneyLeftImg.setHide = true;
}
};
_global.moneyLeftImg_setTimerOn = function () {
clearInterval(_global.moneyLeftImg.intervalId);
_global.moneyLeftImg.intervalId = setInterval(this, "moneyLeftImg_onTimer", 500);
};
_global.moneyLeftImg_drawMoneyLeft = function (moneyLeftGuiTxt, moneyLeft) {
if (!_global.moneyLeftImg.flashing) {
clearInterval(_global.moneyLeftImg.intervalId);
_global.drawPartTxt(moneyLeftGuiTxt, moneyLeft);
}
};
_global.createScoreGui = function () {
_global.scoreGuiTxt = _global.createTxt(_global.GUI_SCORE_TXT_POS, _global.GUI_SCORE_TXT_SIZE, _global.GUI_SCORE_TXT_DIGIT, "whiteNumberImagemap", _root, 1600);
};
_global.createLevelGui = function () {
_global.levelTxt = _global.createTxt(_global.GUI_LEVEL_TXT_POS[1], _global.GUI_LEVEL_TXT_SIZE, _global.GUI_LEVEL_TXT_DIGIT, "levelNumberImagemap", _root, 1700);
_global.subLevelTxt = _global.createTxt(_global.GUI_LEVEL_TXT_POS[2], _global.GUI_LEVEL_TXT_SIZE, _global.GUI_LEVEL_TXT_DIGIT, "levelNumberImagemap", _root, 1701);
};
_global.createLifeLeftGui = function () {
};
_global.createLifeLeftTxtGui = function (life) {
_global.lifeLeftTxtImg = _root.createEmptyMovieClip("1800", 1800);
_global.setImageMap(_global.lifeLeftTxtImg, ("lifeLeftTxt" + life) + "Imagemap", 1800);
_global.lifeLeftTxtImg._x = _global.GUI_LIFE_LEFT_TXT_POS[0];
_global.lifeLeftTxtImg._y = _global.GUI_LIFE_LEFT_TXT_POS[1];
_global.lifeLeftTxtImg._visible = false;
_global.lifeLeftImg = _root.createEmptyMovieClip("1811", 1811);
_global.setImageMap(_global.lifeLeftImg, "lifeLeftImagemap", 1801);
_global.lifeLeftImg._x = _global.GUI_LIFE_LEFT_POS[0];
_global.lifeLeftImg._y = _global.GUI_LIFE_LEFT_POS[1];
_global.lifeLeftImg._visible = false;
};
_global.updateGui = function (obj) {
_global.drawTxt(_global.scoreGuiTxt, _global.score);
if (_global.GAMES_LIMITED_BUDGET[_global.playMode]) {
_global.moneyLeftImg_drawMoneyLeft(_global.moneyLeftGuiTxt, _global.moneyLeft);
}
};
_global.moneyLeftGuiSetVisible = function (v) {
var _local2 = 0;
while (_local2 < _global.GUI_MONEY_LEFT_TXT_DIGIT) {
_global.moneyLeftGuiTxt.img[_local2]._visible = v;
_local2++;
}
};
_global.ScoreGuiSetVisible = function (v) {
var _local2 = 0;
while (_local2 < _global.GUI_SCORE_TXT_DIGIT) {
_global.scoreGuiTxt.img[_local2]._visible = v;
_local2++;
}
};
_global.LevelGuiSetVisible = function (v) {
var _local2 = 0;
while (_local2 < _global.GUI_LEVEL_TXT_DIGIT) {
_global.levelTxt.img[_local2]._visible = v;
_local2++;
}
_local2 = 0;
while (_local2 < _global.GUI_LEVEL_TXT_DIGIT) {
_global.subLevelTxt.img[_local2]._visible = v;
_local2++;
}
};
_global.LifeLeftGuiSetVisible = function (v) {
_global.lifeLeftTxtImg._visible = v;
_global.lifeLeftImg._visible = v;
};
_global.createTxt = function (pos, size, digit, textImage, scene, deep) {
var _local6 = pos[0];
var _local5 = pos[1];
var _local4 = size[0];
var _local2 = new Object();
_local2.img = new Array();
var _local1 = 0;
while (_local1 < digit) {
_local2.img[_local1] = scene.createEmptyMovieClip(deep + _local1, deep + _local1);
_local2.img[_local1]._x = _local6 + (_local1 * _local4);
_local2.img[_local1]._y = _local5;
_local1++;
}
_local2.digit = digit;
_local2.imageMap = textImage;
_local2.width = _local4;
_local2.height = size[1];
return(_local2);
};
_global.drawTxt = function (Txt, value, Num) {
var _local9 = Txt.digit;
var _local5 = _local9 - 1;
var _local7 = new Array();
var _local8;
if (Num == undefined) {
_local8 = 10;
} else {
_local8 = Num;
}
var _local3 = 0;
while (_local3 < _local9) {
var _local4 = 1;
var _local2 = 0;
while (_local2 < _local5) {
_local4 = _local4 * 10;
_local2++;
}
_local5--;
_local7[_local3] = Math.floor(value / _local4) % 10;
_global.setNumberImageMap(Txt.img[_local3], Txt.imageMap, 0, 0, _local7[_local3], 20, _local8);
Txt.img[_local3]._visible = true;
_local3++;
}
};
_global.setNumberImageMap = function (par, map, x, y, digitno, deep, Num) {
var _local2 = new CImageMapDatablock(map, Num);
par.attachBitmap(_local2.GetBlock(digitno), deep, "Auto", true);
par._visible = true;
return(par);
};
_global.setImageMap = function (par, map, deep) {
var _local2 = flash.display.BitmapData.loadBitmap(map);
par.attachBitmap(_local2, deep, "Auto", true);
par._visible = true;
return(par);
};
_global.drawPartTxt = function (Txt, value, Num) {
var _local7 = Txt.digit;
var _local6 = _local7 - 1;
var _local8 = new Array();
var _local10;
if (Num == undefined) {
_local10 = 10;
} else {
_local10 = Num;
}
if (value == 0) {
var _local3 = 0;
while (_local3 < (_local7 - 1)) {
Txt.img[_local3]._visible = false;
_local3++;
}
_global.setNumberImageMap(Txt.img[_local7 - 1], Txt.imageMap, 0, 0, 0, 20, _local10);
} else {
var _local3 = 0;
while (_local3 < _local7) {
var _local4 = 1;
var _local2 = 0;
while (_local2 < _local6) {
_local4 = _local4 * 10;
_local2++;
}
_local6--;
if (_local4 > value) {
Txt.img[_local3]._visible = false;
} else {
_local8[_local3] = Math.floor(value / _local4) % 10;
_global.setNumberImageMap(Txt.img[_local3], Txt.imageMap, 0, 0, _local8[_local3], 20, _local10);
}
_local3++;
}
}
};
_global.deleteTxt = function (txt, digit) {
var _local2 = txt.digit;
var _local1 = 0;
while (_local1 < _local2) {
txt.img[_local1].removeMovieClip();
_local1++;
}
};
_global.hideTxt = function (txt) {
var _local3 = txt.digit;
var _local1 = 0;
while (_local1 < _local3) {
txt.img[_local1]._visible = false;
_local1++;
}
if (txt.intervalId != null) {
clearInterval(txt.intervalId);
}
};
_global.createMessage = function (par, efficieny, x, y) {
var _local4 = true;
var _local2;
if (efficieny > _global.EFFICIENCY_EXCELLENT) {
_local2 = _global.createSpriteImage("excellentImageMap", x, y, 11200 + _global.getRandom(1, 200), par);
_global.playVoice("excellentVoice");
} else if (efficieny > _global.EFFICIENCY_GREAT) {
_local2 = _global.createSpriteImage("greatImageMap", x, y, 11200 + _global.getRandom(1, 200), par);
_global.playVoice("greatVoice");
} else if (efficieny > _global.EFFICIENCY_GOOD) {
_local2 = _global.createSpriteImage("goodImageMap", x, y, 11200 + _global.getRandom(1, 200), par);
_global.playVoice("goodVoice");
} else if (efficieny < _global.EFFICIENCY_POOR) {
_local2 = _global.createSpriteImage("poorImageMap", x, y, 11200 + _global.getRandom(1, 200), par);
_global.playVoice("oppVoice");
} else {
_local4 = false;
}
if (_local4) {
_local2.setLinearVelocity(0, _global.EFFECT_RISE_SPEED);
_local2.SetDieTime(60);
_global.dollar.MessageImg = _local2;
}
};
_global.createSpriteImage = function (map, x, y, deep, Parent) {
var _local2 = map;
var _local1 = Parent.attachMovie("Sprite", "tmp", deep);
var _local3 = flash.display.BitmapData.loadBitmap(_local2);
_local1.attachBitmap(_local3, deep, "Auto", true);
_local1._x = x;
_local1._y = y;
return(_local1);
};
_global.createGuiImage = function (map, x, y, deep, Parent) {
var _local2 = map;
var _local1 = Parent.createEmptyMovieClip("tmp", deep);
var _local3 = flash.display.BitmapData.loadBitmap(_local2);
_local1.attachBitmap(_local3, deep, "Auto", true);
_local1._x = x;
_local1._y = y;
return(_local1);
};
_global.createGuiText = function (s, x, y, w, h, deep, Parent, Format) {
var _local1 = Parent.createTextField("my_txt" + deep, deep, x, y, w, h);
_local1.setNewTextFormat(Format);
_local1.text = s;
return(_local1);
};
_global.createGuiTextFormat = function (col, sty, size) {
var _local1 = new TextFormat();
_local1.color = col;
_local1.font = sty;
_local1.size = size;
return(_local1);
};
_global.createGuiBitmapButton = function (map, x, y, deep, Parent) {
var _local3 = map;
var _local1 = Parent.attachMovie(map, "tmp", deep);
_local1._x = x;
_local1._y = y;
return(_local1);
};
_global.goSummaryPage = function (gameMode, playMode, modeSettingId) {
clearInterval(_global.goSummaryPageEvent);
_global.deleteGameItem(_global.playMode, _global.modeSettingId, _global.gameMode);
gotoAndStop (188);
_global.playBgAudio("summaryBgMusic");
_global.createResultBoardImg(gameMode, playMode, modeSettingId, _global.summaryScene);
};
_global.retryButtonPress = function (bRetry) {
_global.score = _global.score + _global.totalBonus;
_global.totalBonus = 0;
if (!(_global.curGameState === _global.GAMES_GAME_STATE_DISPLAY_RESULT)) {
} else if (_global.subStage == _global.GAMES_SUB_STAGE_NUM[_global.gameMode]) {
_global.bRetry = bRetry;
_global.loadingBlackPage();
} else {
_global.loadingBlackPage();
}
};
_global.createResultBoardImg = function (gameMode, playMode, modeSettingId, summaryScene) {
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_DISPLAY_RESULT);
var _local6 = _global.createGuiTextFormat(16777215, "WaChaKa", 12);
if (_global.bNextStage) {
_global.summaryFrameImg = _global.createGuiImage(_global.GUI_RESULT_BOARD_IMAGE, _global.GUI_RESULT_BOARD_END_POS[0], _global.GUI_RESULT_BOARD_END_POS[1], 200, _root);
_global.summaryMoneyTxt = _global.createGuiText(_global.GUI_RESULT_BOARD_MONEY_LEFT_TXT, _global.GUI_RESULT_BOARD_MONEY_LEFT_TXT_POS[0], _global.GUI_RESULT_BOARD_MONEY_LEFT_TXT_POS[1], _global.GUI_RESULT_BOARD_MONEY_LEFT_TXT_SIZE[0], _global.GUI_RESULT_BOARD_MONEY_LEFT_TXT_SIZE[1], 1000, _global.summaryFrameImg, _local6);
_global.summaryTimeTxt = _global.createGuiText(_global.GUI_RESULT_BOARD_TIME_LEFT_TXT, _global.GUI_RESULT_BOARD_TIME_LEFT_TXT_POS[0], _global.GUI_RESULT_BOARD_TIME_LEFT_TXT_POS[1], _global.GUI_RESULT_BOARD_TIME_LEFT_TXT_SIZE[0], _global.GUI_RESULT_BOARD_TIME_LEFT_TXT_SIZE[1], 1001, _global.summaryFrameImg, _local6);
_global.summaryBonusTxt = _global.createGuiText(_global.GUI_RESULT_BOARD_BONUS_TXT, _global.GUI_RESULT_BOARD_BONUS_TXT_POS[0], _global.GUI_RESULT_BOARD_BONUS_TXT_POS[1], _global.GUI_RESULT_BOARD_BONUS_TXT_SIZE[0], _global.GUI_RESULT_BOARD_BONUS_TXT_SIZE[1], 1002, _global.summaryFrameImg, _local6);
_global.summaryScoreTxt = _global.createGuiText(_global.GUI_RESULT_BOARD_SCORE_TXT, _global.GUI_RESULT_BOARD_SCORE_TXT_POS[0], _global.GUI_RESULT_BOARD_SCORE_TXT_POS[1], _global.GUI_RESULT_BOARD_SCORE_TXT_SIZE[0], _global.GUI_RESULT_BOARD_SCORE_TXT_SIZE[1], 1003, _global.summaryFrameImg, _local6);
_global.summaryMoneyNum = _global.createGuiText(_global.moneyLeft, _global.GUI_RESULT_BOARD_MONEY_LEFT_NUM_POS[0], _global.GUI_RESULT_BOARD_MONEY_LEFT_NUM_POS[1], _global.GUI_RESULT_BOARD_MONEY_LEFT_NUM_SIZE[0], _global.GUI_RESULT_BOARD_MONEY_LEFT_NUM_SIZE[1], 1004, _global.summaryFrameImg, _local6);
_global.summaryTimeNum = _global.createGuiText(_global.timeLeft, _global.GUI_RESULT_BOARD_TIME_LEFT_NUM_POS[0], _global.GUI_RESULT_BOARD_TIME_LEFT_NUM_POS[1], _global.GUI_RESULT_BOARD_TIME_LEFT_NUM_SIZE[0], _global.GUI_RESULT_BOARD_TIME_LEFT_NUM_SIZE[1], 1005, _global.summaryFrameImg, _local6);
_global.summaryBonusNum = _global.createGuiText(0, _global.GUI_RESULT_BOARD_BONUS_NUM_POS[0], _global.GUI_RESULT_BOARD_BONUS_NUM_POS[1], _global.GUI_RESULT_BOARD_BONUS_NUM_SIZE[0], _global.GUI_RESULT_BOARD_BONUS_NUM_SIZE[1], 1006, _global.summaryFrameImg, _local6);
_global.summaryScoreNum = _global.createGuiText(0, _global.GUI_RESULT_BOARD_SCORE_NUM_POS[0], _global.GUI_RESULT_BOARD_SCORE_NUM_POS[1], _global.GUI_RESULT_BOARD_SCORE_NUM_SIZE[0], _global.GUI_RESULT_BOARD_SCORE_NUM_SIZE[1], 1007, _global.summaryFrameImg, _local6);
} else if (gameMode == _global.GAMES_COLLECTOR_MODE) {
} else if (gameMode == _global.GAMES_ARCADE_MODE) {
if (_global.subStage == _global.GAMES_SUB_STAGE_NUM[_global.gameMode]) {
_global.summaryFrameImg = _global.createGuiImage(_global.GUI_RESULT_BOARD_IMAGE, _global.GUI_RESULT_BOARD_END_POS[0], _global.GUI_RESULT_BOARD_END_POS[1], 201, _root);
var _local12 = 100 - Math.floor((_global.totalItemBuy * 100) / _global.target_value);
} else {
_global.summaryFrameImg = _global.createGuiImage(_global.GUI_RESULT_BOARD_IMAGE, _global.GUI_RESULT_BOARD_END_POS[0], _global.GUI_RESULT_BOARD_END_POS[1], 201, _root);
_global.failTargetTxt = _global.createGuiText(_global.GUI_RESULT_BOARD_TARGET_TXT, _global.GUI_RESULT_BOARD_TARGET_TXT_POS[0], _global.GUI_RESULT_BOARD_TARGET_TXT_POS[1], _global.GUI_RESULT_BOARD_TARGET_TXT_SIZE[0], _global.GUI_RESULT_BOARD_TARGET_TXT_SIZE[1], 1000, _global.summaryFrameImg, _local6);
_global.failPurchaseTxt = _global.createGuiText(_global.GUI_RESULT_BOARD_PURCHASE_TXT, _global.GUI_RESULT_BOARD_PURCHASE_TXT_POS[0], _global.GUI_RESULT_BOARD_PURCHASE_TXT_POS[1], _global.GUI_RESULT_BOARD_PURCHASE_TXT_SIZE[0], _global.GUI_RESULT_BOARD_PURCHASE_TXT_SIZE[1], 1001, _global.summaryFrameImg, _local6);
_global.failMissPercentTxt = _global.createGuiText(_global.GUI_RESULT_BOARD_MISS_TXT, _global.GUI_RESULT_BOARD_MISS_TXT_POS[0], _global.GUI_RESULT_BOARD_MISS_TXT_POS[1], _global.GUI_RESULT_BOARD_MISS_TXT_SIZE[0], _global.GUI_RESULT_BOARD_MISS_TXT_SIZE[1], 1002, _global.summaryFrameImg, _local6);
_global.failTargetNum = _global.createGuiText(_global.target_value, _global.GUI_RESULT_BOARD_TARGET_NUM_POS[0], _global.GUI_RESULT_BOARD_TARGET_NUM_POS[1], _global.GUI_RESULT_BOARD_TARGET_NUM_SIZE[0], _global.GUI_RESULT_BOARD_TARGET_NUM_SIZE[1], 1003, _global.summaryFrameImg, _local6);
_global.failPurchaseNum = _global.createGuiText(_global.totalItemBuy, _global.GUI_RESULT_BOARD_PURCHASE_NUM_POS[0], _global.GUI_RESULT_BOARD_PURCHASE_NUM_POS[1], _global.GUI_RESULT_BOARD_PURCHASE_NUM_SIZE[0], _global.GUI_RESULT_BOARD_PURCHASE_NUM_SIZE[1], 1004, _global.summaryFrameImg, _local6);
_global.failMissPercentNum = _global.createGuiText(100 - Math.floor((_global.totalItemBuy * 100) / _global.target_value), _global.GUI_RESULT_BOARD_MISS_NUM_POS[0], _global.GUI_RESULT_BOARD_MISS_NUM_POS[1], _global.GUI_RESULT_BOARD_MISS_NUM_SIZE[0], _global.GUI_RESULT_BOARD_MISS_NUM_SIZE[1], 1005, _global.summaryFrameImg, _local6);
}
}
_global.btnRetryYes = _global.createGuiBitmapButton(_global.GUI_RESULT_BOARD_BTN_RETRY_YES_IMAGE, _global.GUI_RESULT_BOARD_BTN_RETRY_YES_POS[0], _global.GUI_RESULT_BOARD_BTN_RETRY_YES_POS[1], 1018, _global.summaryFrameImg);
_global.btnRetryNo = _global.createGuiBitmapButton(_global.GUI_RESULT_BOARD_BTN_RETRY_NO_IMAGE, _global.GUI_RESULT_BOARD_BTN_RETRY_NO_POS[0], _global.GUI_RESULT_BOARD_BTN_RETRY_NO_POS[1], 1009, _global.summaryFrameImg);
_global.btnRetryYes.onRelease = function () {
_global.retryButtonPress(true);
};
_global.btnRetryNo.onRelease = function () {
_global.retryButtonPress(false);
};
if (_global.bNextStage) {
showResult();
}
_global.summaryBagImg = new Array();
var _local3 = 1;
while (_local3 <= _global.GAMES_SUB_STAGE_NUM[gameMode]) {
var _local4;
if (_global.bNextStage) {
if (_local3 < (_global.subStage + 1)) {
_local4 = _global.GUI_SUMMARY_BAG_NORN_IMAGE[_local3];
} else {
_local4 = _global.GUI_SUMMARY_BAG_DIM_IMAGE[_local3];
}
} else if (_local3 < _global.subStage) {
_local4 = _global.GUI_SUMMARY_BAG_NORN_IMAGE[_local3];
} else {
_local4 = _global.GUI_SUMMARY_BAG_DIM_IMAGE[_local3];
}
_global.summaryBagImg[_local3] = createGuiImage(_local4, _global.GUI_SUMMARY_BAG_POS[_local3][0], _global.GUI_SUMMARY_BAG_POS[_local3][1], 2000 + _local3, _root);
_local3++;
}
var _local7 = _global.GAMES_SUMMARY_PAGE_CHAR[gameMode][_global.stage];
_global.summaryCharImg = _global.createGuiImage(_global.GUI_SUMMARY_CHAR_IMAGE[_local7], _global.GUI_SUMMARY_CHAR_POS[_local7][0], _global.GUI_SUMMARY_CHAR_POS[_local7][1], 4000, _root);
if (!_global.bNextStage) {
var _local11 = _global.GAMES_LIFE - _global.life;
var _local9 = _global.getRandom(0, 1) + 1;
var _local10 = _global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[gameMode][_local11][_local9];
if (_global.subStage == _global.GAMES_SUB_STAGE_NUM[gameMode]) {
_local10 = _global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[gameMode][2][_local9];
}
_root.lblSummaryBubble.text = _local10;
} else {
var _local8 = _global.getRandom(0, 7) + 1;
if ((_global.subStage == _global.GAMES_SUB_STAGE_NUM[gameMode]) && (gameMode == _global.GAMES_ARCADE_MODE)) {
_local8 = 9;
}
_root.lblSummaryBubble.text = _global.GUI_SUMMARY_BUBBLE_PASS_TEXT[_local8];
}
if (_global.bNextStage) {
_global.btnRetryYes._visible = false;
_global.btnRetryNo._visible = true;
} else {
_global.btnRetryYes._visible = true;
_global.btnRetryNo._visible = false;
if (gameMode == _global.GAMES_COLLECTOR_MODE) {
} else if (gameMode == _global.GAMES_ARCADE_MODE) {
if (_global.subStage != _global.GAMES_SUB_STAGE_NUM[gameMode]) {
} else if (_global.stage == _global.GAMES_STAGE_NUM[gameMode]) {
_global.btnRetryYes._visible = true;
_global.btnRetryNo._visible = false;
} else {
_global.btnRetryYes._visible = true;
_global.btnRetryNo._visible = false;
}
}
}
};
_global.deleteResultBoardImg = function () {
if (_global.bNextStage) {
_global.summaryFrameImg.removeMovieClip();
} else if (!_global.bNextStage) {
if (_global.gameMode == _global.GAMES_COLLECTOR_MODE) {
_global.summaryFrameImg.removeMovieClip();
} else if (_global.gameMode == _global.GAMES_ARCADE_MODE) {
if (_global.subStage == _global.GAMES_SUB_STAGE_NUM[_global.gameMode]) {
_global.summaryFrameImg.removeMovieClip();
} else {
_global.summaryFrameImg.removeMovieClip();
}
}
}
var _local2 = 1;
while (_local2 <= _global.GAMES_SUB_STAGE_NUM[_global.gameMode]) {
_global.summaryBagImg[_local2].removeMovieClip();
_local2++;
}
_global.summaryCharImg.removeMovieClip();
_global.exitSummaryPage(_global.gameMode);
};
_global.deleteResultBoardImg1 = function () {
if (_global.bNextStage) {
_global.summaryFrameImg.removeMovieClip();
} else if (!_global.bNextStage) {
if (_global.gameMode == _global.GAMES_COLLECTOR_MODE) {
_global.summaryFrameImg.removeMovieClip();
} else if (_global.gameMode == _global.GAMES_ARCADE_MODE) {
if (_global.subStage == _global.GAMES_SUB_STAGE_NUM[_global.gameMode]) {
_global.summaryFrameImg.removeMovieClip();
} else {
_global.summaryFrameImg.removeMovieClip();
}
}
}
var _local2 = 1;
while (_local2 <= _global.GAMES_SUB_STAGE_NUM[_global.gameMode]) {
_global.summaryBagImg[_local2].removeMovieClip();
_local2++;
}
_global.summaryCharImg.removeMovieClip();
};
_global.exitSummaryPage = function (gameMode) {
if (_global.bNextStage) {
if ((_global.stage == _global.GAMES_STAGE_NUM[gameMode]) && (_global.subStage == _global.GAMES_SUB_STAGE_NUM[gameMode])) {
_global.resetGame();
_global.playing = false;
_global.lastGameState = _global.GAMES_GAME_STATE_MAIN_MENU;
} else {
_global.startPlayGame(true);
}
} else if (!_global.bNextStage) {
if ((_global.gameMode == _global.GAMES_ARCADE_MODE) && (_global.subStage == _global.GAMES_SUB_STAGE_NUM[_global.gameMode])) {
_global.bNextStage = !_global.bRetry;
}
_global.startPlayGame(false);
}
};
_global.loadingBlackPage = function () {
trace("executeCallback intervalId: " + _global.intervalId);
_global.deleteResultBoardImg();
clearInterval(_global.intervalId);
};
_global.setItemVariable = function (playMode, modeSettingId) {
_global.lowerItemFreqBoolArr = _global.createLowerItemFreqArr(playMode, modeSettingId);
_global.itemAppearRate = _global.getItemFreqArr(playMode, modeSettingId);
_global.setItemInitialNoArr(playMode, modeSettingId);
_global.itemMostValue = _global.getItemMoustValue(playMode, modeSettingId);
};
_global.getItemFreqArr = function (playMode, modeSettingId) {
var _local7 = new Array();
var _local5;
var _local6;
var _local2 = 0;
while (_local2 < _global.GAMES_ITEM_USE[playMode][modeSettingId].length) {
_local5 = _global.GAMES_ITEM_USE[playMode][modeSettingId][_local2];
_local6 = _global.ITEMS_ITEM[_local5].FREQUENCY[playMode][modeSettingId];
if (_global.ITEMS_ITEM[_local5].FREQUENCY_LOWER_PERCENT[playMode][modeSettingId] == undefined) {
_global.lowerItemFreqBoolArr[_local2] = false;
}
if (_global.lowerItemFreqBoolArr[_local2]) {
_local6 = Math.ceil((_local6 * _global.ITEMS_ITEM[_local5].FREQUENCY_LOWER_PERCENT[playMode][modeSettingId]) / 100);
}
_local7[_local2] = _local6;
_local2++;
}
return(_local7);
};
_global.createLowerItemFreqArr = function (playMode, modeSettingId) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < _global.GAMES_ITEM_USE[playMode][modeSettingId].length) {
_local3[_local2] = false;
_local2++;
}
return(_local3);
};
_global.setItemInitialNoArr = function (playMode, modeSettingId) {
var _local6 = 0;
var _local5;
var _local2 = 0;
while (_local2 < _global.GAMES_ITEM_USE[playMode][modeSettingId].length) {
_local5 = _global.GAMES_ITEM_USE[playMode][modeSettingId][_local2];
_local6 = _local6 + _global.ITEMS_ITEM[_local5].FREQUENCY[playMode][modeSettingId];
_local2++;
}
_local2 = 0;
while (_local2 < _global.GAMES_ITEM_USE[playMode][modeSettingId].length) {
_local5 = _global.GAMES_ITEM_USE[playMode][modeSettingId][_local2];
_global.itemInitialNumberArr[_local5] = Math.ceil(((_global.ITEMS_ITEM[_local5].FREQUENCY[playMode][modeSettingId] * _global.FIRST_GEN_END_ROW) * _global.colNum) / _local6);
_local2++;
}
};
_global.getItemMoustValue = function (playMode, modeSettingId) {
var _local6 = 0;
var _local7;
var _local3;
var _local2 = 0;
while (_local2 < _global.GAMES_ITEM_USE[playMode][modeSettingId].length) {
_local7 = _global.GAMES_ITEM_USE[playMode][modeSettingId][_local2];
_local3 = _global.ITEMS_ITEM[_local7].VALUE[playMode][modeSettingId];
if (_local3 > _local6) {
_local6 = _local3;
}
_local2++;
}
return(_local6);
};
_global.setLowerItemFreqArr = function (item, bLowerFreq, playMode, modeSettingId) {
var _local2 = 0;
while (_local2 < _global.GAMES_ITEM_USE[playMode][modeSettingId].length) {
var _local3 = _global.GAMES_ITEM_USE[playMode][modeSettingId][_local2];
if (item.id == _local3) {
_global.lowerItemFreqBoolArr[_local2] = bLowerFreq;
}
_local2++;
}
trace("lower freq arr " + _global.lowerItemFreqBoolArr);
};
_global.testReducedFrequency = function (item, playMode, modeSettingId) {
var _local6 = false;
var _local2 = 0;
while (_local2 < _global.GAMES_ITEM_USE[playMode][modeSettingId].length) {
var _local3 = _global.GAMES_ITEM_USE[playMode][modeSettingId][_local2];
if (item.id == _local3) {
_local6 = _global.lowerItemFreqBoolArr[_local2];
}
_local2++;
}
return(_local6);
};
_global.TIMER_ITEM_BONUS_MONEY = new Array();
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_ARCADE_MODE] = new Array();
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_ARCADE_MODE][1] = 200;
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_ARCADE_MODE][2] = 75;
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_ARCADE_MODE][3] = 80;
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_ARCADE_MODE][4] = 85;
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_ARCADE_MODE][5] = 150;
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_ARCADE_MODE][6] = 175;
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_COLLECTOR_MODE] = new Array();
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_COLLECTOR_MODE][1] = 50;
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_COLLECTOR_MODE][2] = 75;
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_COLLECTOR_MODE][3] = 100;
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_COLLECTOR_MODE][4] = 125;
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_COLLECTOR_MODE][5] = 150;
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_COLLECTOR_MODE][6] = 175;
_global.TIMER_ITEM_BONUS_MONEY[_global.GAMES_COLLECTOR_MODE][7] = 200;
_global.TIMER_ITEM_BONUS_SCORE = new Array();
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_ARCADE_MODE] = new Array();
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_ARCADE_MODE][1] = 20;
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_ARCADE_MODE][2] = 30;
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_ARCADE_MODE][3] = 40;
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_ARCADE_MODE][4] = 50;
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_ARCADE_MODE][5] = 60;
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_ARCADE_MODE][6] = 70;
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE] = new Array();
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][1] = 20;
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][2] = 30;
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][3] = 40;
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][4] = 50;
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][5] = 60;
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][6] = 70;
_global.TIMER_ITEM_BONUS_SCORE[_global.GAMES_COLLECTOR_MODE][7] = 80;
_global.TIMER_ITEM_BONUS_TIME = new Array();
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_ARCADE_MODE] = new Array();
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_ARCADE_MODE][1] = 10;
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_ARCADE_MODE][2] = 10;
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_ARCADE_MODE][3] = 10;
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_ARCADE_MODE][4] = 10;
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_ARCADE_MODE][5] = 15;
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_ARCADE_MODE][6] = 10;
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_COLLECTOR_MODE] = new Array();
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_COLLECTOR_MODE][1] = 10;
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_COLLECTOR_MODE][2] = 10;
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_COLLECTOR_MODE][3] = 10;
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_COLLECTOR_MODE][4] = 10;
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_COLLECTOR_MODE][5] = 10;
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_COLLECTOR_MODE][6] = 10;
_global.TIMER_ITEM_BONUS_TIME[_global.GAMES_COLLECTOR_MODE][7] = 10;
_global.GUI_SUMMARY_BG_POS = "400 300";
_global.GUI_SUMMARY_BG_SIZE = "800 600";
_global.GUI_SUMMARY_BG_IMAGE = summaryBgImagemap;
_global.GUI_RESULT_BOARD_START_POS = new Array(345, -350);
_global.GUI_RESULT_BOARD_END_POS = new Array(270, 25);
_global.GUI_RESULT_BOARD_SIZE = new Array(434, 354);
_global.GUI_RESULT_BOARD_IMAGE = "frame";
_global.GUI_RESULT_BOARD_MOVE_DY = "50";
_global.GUI_RESULT_BOARD_CONTENT_POS = new Array(449, 200);
_global.GUI_RESULT_BOARD_CONTENT_SIZE = new Array(120, 120);
_global.GUI_RESULT_BOARD_TXT_SIZE = new Array(11, 14);
_global.GUI_RESULT_BOARD_TXT_IMAGE = "summaryNumberImagemap";
_global.GUI_RESULT_BOARD_MONEY_LEFT_TXT = "MONEY LEFT";
_global.GUI_RESULT_BOARD_MONEY_LEFT_TXT_POS = new Array(55, 80);
_global.GUI_RESULT_BOARD_MONEY_LEFT_TXT_SIZE = new Array(120, 25);
_global.GUI_RESULT_BOARD_TIME_LEFT_TXT = "TIME LEFT";
_global.GUI_RESULT_BOARD_TIME_LEFT_TXT_POS = new Array(55, 115);
_global.GUI_RESULT_BOARD_TIME_LEFT_TXT_SIZE = new Array(120, 25);
_global.GUI_RESULT_BOARD_BONUS_TXT = "BONUS";
_global.GUI_RESULT_BOARD_BONUS_TXT_POS = new Array(55, 150);
_global.GUI_RESULT_BOARD_BONUS_TXT_SIZE = new Array(120, 25);
_global.GUI_RESULT_BOARD_SCORE_TXT = "SCORE";
_global.GUI_RESULT_BOARD_SCORE_TXT_POS = new Array(55, 185);
_global.GUI_RESULT_BOARD_SCORE_TXT_SIZE = new Array(120, 25);
_global.GUI_RESULT_BOARD_MONEY_LEFT_NUM_POS = new Array(220, 80);
_global.GUI_RESULT_BOARD_MONEY_LEFT_NUM_SIZE = new Array(120, 25);
_global.GUI_RESULT_BOARD_TIME_LEFT_NUM_POS = new Array(220, 115);
_global.GUI_RESULT_BOARD_TIME_LEFT_NUM_SIZE = new Array(120, 25);
_global.GUI_RESULT_BOARD_BONUS_NUM_POS = new Array(220, 150);
_global.GUI_RESULT_BOARD_BONUS_NUM_SIZE = new Array(120, 25);
_global.GUI_RESULT_BOARD_SCORE_NUM_POS = new Array(220, 185);
_global.GUI_RESULT_BOARD_SCORE_NUM_SIZE = new Array(120, 25);
_global.GUI_ITEM_MISS_BOARD_POS = "562 242";
_global.GUI_ITEM_MISS_BOARD_START_POS = "562 -354";
_global.GUI_ITEM_MISS_BOARD_END_POS = "562 242";
_global.GUI_ITEM_MISS_BOARD_SIZE = "434 354";
_global.GUI_ITEM_MISS_BOARD_BOARD_IMAGE = itemMissFrameImagemap;
_global.GUI_RESULT_BOARD_FAIL_START_POS = "345 -350";
_global.GUI_RESULT_BOARD_FAIL_END_POS = "345 65";
_global.GUI_RESULT_BOARD_FAIL_SIZE = "434 354";
_global.GUI_RESULT_BOARD_FAIL_IMAGE = "LevelSummary_Failed_Frame.png";
_global.GUI_RESULT_BOARD_TARGET_TXT = "TARGET AMOUNT";
_global.GUI_RESULT_BOARD_TARGET_TXT_POS = new Array(55, 80);
_global.GUI_RESULT_BOARD_TARGET_TXT_SIZE = new Array(180, 25);
_global.GUI_RESULT_BOARD_PURCHASE_TXT = "YOUR PURCHASE";
_global.GUI_RESULT_BOARD_PURCHASE_TXT_POS = new Array(55, 115);
_global.GUI_RESULT_BOARD_PURCHASE_TXT_SIZE = new Array(180, 25);
_global.GUI_RESULT_BOARD_MISS_TXT = "MISSED PERCENTAGE";
_global.GUI_RESULT_BOARD_MISS_TXT_POS = new Array(55, 150);
_global.GUI_RESULT_BOARD_MISS_TXT_SIZE = new Array(180, 25);
_global.GUI_RESULT_BOARD_TARGET_NUM_POS = new Array(220, 80);
_global.GUI_RESULT_BOARD_TARGET_NUM_SIZE = new Array(120, 25);
_global.GUI_RESULT_BOARD_PURCHASE_NUM_POS = new Array(220, 115);
_global.GUI_RESULT_BOARD_PURCHASE_NUM_SIZE = new Array(120, 25);
_global.GUI_RESULT_BOARD_MISS_NUM_POS = new Array(220, 150);
_global.GUI_RESULT_BOARD_MISS_NUM_SIZE = new Array(120, 25);
_global.GUI_RESULT_BOARD_RETRY_TXT = "You only missed by xxx percent. If you try again now, it is very likely that you will win the recognition medal. \nDo you want to try again now?";
_global.GUI_RESULT_BOARD_RETRY_TXT_POS = new Array(75, 90);
_global.GUI_RESULT_BOARD_RETRY_TXT_SIZE = new Array(285, 165);
_global.GUI_RESULT_BOARD_BTN_RETRY_YES_POS = new Array(232, 240);
_global.GUI_RESULT_BOARD_BTN_RETRY_YES_SIZE = new Array(114, 28);
_global.GUI_RESULT_BOARD_BTN_RETRY_YES_IMAGE = "BntTryAgain";
_global.GUI_RESULT_BOARD_BTN_RETRY_NO_POS = new Array(232, 240);
_global.GUI_RESULT_BOARD_BTN_RETRY_NO_SIZE = new Array(114, 28);
_global.GUI_RESULT_BOARD_BTN_RETRY_NO_IMAGE = "BntNextLevel";
_global.GUI_SUMMARY_BAG_POS = new Array();
_global.GUI_SUMMARY_BAG_SIZE = new Array();
_global.GUI_SUMMARY_BAG_NORN_IMAGE = new Array();
_global.GUI_SUMMARY_BAG_DIM_IMAGE = new Array();
_global.GUI_SUMMARY_BAG_POS[1] = new Array(108, 411);
_global.GUI_SUMMARY_BAG_SIZE[1] = new Array(84, 68);
_global.GUI_SUMMARY_BAG_NORN_IMAGE[1] = "lv1NormImagemap";
_global.GUI_SUMMARY_BAG_DIM_IMAGE[1] = "lv1DimImagemap";
_global.GUI_SUMMARY_BAG_POS[2] = new Array(190, 420);
_global.GUI_SUMMARY_BAG_SIZE[2] = new Array(84, 66);
_global.GUI_SUMMARY_BAG_NORN_IMAGE[2] = "lv2NormImagemap";
_global.GUI_SUMMARY_BAG_DIM_IMAGE[2] = "lv2DimImagemap";
_global.GUI_SUMMARY_BAG_POS[3] = new Array(268, 413);
_global.GUI_SUMMARY_BAG_SIZE[3] = new Array(76, 66);
_global.GUI_SUMMARY_BAG_NORN_IMAGE[3] = "lv3NormImagemap";
_global.GUI_SUMMARY_BAG_DIM_IMAGE[3] = "lv3DimImagemap";
_global.GUI_SUMMARY_BAG_POS[4] = new Array(341, 389);
_global.GUI_SUMMARY_BAG_SIZE[4] = new Array(76, 80);
_global.GUI_SUMMARY_BAG_NORN_IMAGE[4] = "lv4NormImagemap";
_global.GUI_SUMMARY_BAG_DIM_IMAGE[4] = "lv4DimImagemap";
_global.GUI_SUMMARY_BAG_POS[5] = new Array(420, 364);
_global.GUI_SUMMARY_BAG_SIZE[5] = new Array(80, 72);
_global.GUI_SUMMARY_BAG_NORN_IMAGE[5] = "lv5NormImagemap";
_global.GUI_SUMMARY_BAG_DIM_IMAGE[5] = "lv5DimImagemap";
_global.GUI_SUMMARY_BAG_POS[6] = new Array(509, 305);
_global.GUI_SUMMARY_BAG_SIZE[6] = new Array(106, 112);
_global.GUI_SUMMARY_BAG_NORN_IMAGE[6] = "lv6NormImagemap";
_global.GUI_SUMMARY_BAG_DIM_IMAGE[6] = "lv6DimImagemap";
_global.GUI_SUMMARY_CHAR_POS = new Array();
_global.GUI_SUMMARY_CHAR_SIZE = new Array();
_global.GUI_SUMMARY_CHAR_IMAGE = new Array();
_global.GUI_SUMMARY_CHAR_POS[_global.CHAR_FEMALE_SHOPPER] = new Array(6, 300);
_global.GUI_SUMMARY_CHAR_SIZE[_global.CHAR_FEMALE_SHOPPER] = new Array(116, 200);
_global.GUI_SUMMARY_CHAR_IMAGE[_global.CHAR_FEMALE_SHOPPER] = "summaryFemaleShopperImagemap";
_global.GUI_SUMMARY_CHAR_POS[_global.CHAR_MALE_SHOPPER] = new Array(6, 300);
_global.GUI_SUMMARY_CHAR_SIZE[_global.CHAR_MALE_SHOPPER] = new Array(96, 200);
_global.GUI_SUMMARY_CHAR_IMAGE[_global.CHAR_MALE_SHOPPER] = "summaryMaleShopperImagemap";
_global.GUI_SUMMARY_CHAR_POS[_global.CHAR_SALE_PEOPLE] = new Array(6, 300);
_global.GUI_SUMMARY_CHAR_SIZE[_global.CHAR_SALE_PEOPLE] = new Array(114, 200);
_global.GUI_SUMMARY_CHAR_IMAGE[_global.CHAR_SALE_PEOPLE] = "summarySalesPeopleImagemap";
_global.GUI_SUMMARY_CHAR_POS[_global.CHAR_CAT_GIRL] = new Array(6, 300);
_global.GUI_SUMMARY_CHAR_SIZE[_global.CHAR_CAT_GIRL] = new Array(106, 200);
_global.GUI_SUMMARY_CHAR_IMAGE[_global.CHAR_CAT_GIRL] = "summaryCatGirlImagemap";
_global.GUI_SUMMARY_CHAR_POS[_global.CHAR_SUIT_MAN] = new Array(6, 300);
_global.GUI_SUMMARY_CHAR_SIZE[_global.CHAR_SUIT_MAN] = new Array(96, 200);
_global.GUI_SUMMARY_CHAR_IMAGE[_global.CHAR_SUIT_MAN] = "summarySuitManImagemap";
_global.GUI_SUMMARY_CHAR_POS[_global.CHAR_CAUSAL_GIRL] = new Array(6, 300);
_global.GUI_SUMMARY_CHAR_SIZE[_global.CHAR_CAUSAL_GIRL] = new Array(88, 200);
_global.GUI_SUMMARY_CHAR_IMAGE[_global.CHAR_CAUSAL_GIRL] = "summaryCasualGirlImagemap";
_global.GUI_SUMMARY_CHAR_POS[_global.CHAR_FOOD_GIRL] = new Array(6, 300);
_global.GUI_SUMMARY_CHAR_SIZE[_global.CHAR_FOOD_GIRL] = new Array(100, 200);
_global.GUI_SUMMARY_CHAR_IMAGE[_global.CHAR_FOOD_GIRL] = "summaryFoodGirlImagemap";
_global.GUI_SUMMARY_BUBBLE_POS = new Array(100, 207);
_global.GUI_SUMMARY_BUBBLE_SIZE = new Array(264, 244);
_global.GUI_SUMMARY_BUBBLE_IMAGE = "summaryBubbleImagemap";
_global.GUI_SUMMARY_BUBBLE_PASS_TEXT = new Array();
_global.GUI_SUMMARY_BUBBLE_PASS_TEXT[1] = "\n\nCongratulations!\n\nYou are SUPERB!";
_global.GUI_SUMMARY_BUBBLE_PASS_TEXT[2] = "\n\nBrilliant!\nWhat a nice job you have done!";
_global.GUI_SUMMARY_BUBBLE_PASS_TEXT[3] = "\nWhat's the best exercise?\n\nI will vote for Shopping Maraton for sure.";
_global.GUI_SUMMARY_BUBBLE_PASS_TEXT[4] = "Haha!!\nDon't you agree that the fun in shopping is finding all the good deals and real bargain?";
_global.GUI_SUMMARY_BUBBLE_PASS_TEXT[5] = "\nIsn't it exiciting?\n\nLet's do some more shopping after this short break!";
_global.GUI_SUMMARY_BUBBLE_PASS_TEXT[6] = "\nYou must have enjoyed shopping a lot! There are more shops ahead. \n\nLet's go!";
_global.GUI_SUMMARY_BUBBLE_PASS_TEXT[7] = "\nShopping can improve your mental fitness. People I know get smarter after shopping.";
_global.GUI_SUMMARY_BUBBLE_PASS_TEXT[8] = "\nShopping Maraton helps you save time and money every time you shop.";
_global.GUI_SUMMARY_BUBBLE_PASS_TEXT[9] = "\nThank you for your visit! \nPlease also check out the Collection mode.";
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT = new Array();
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_ARCADE_MODE] = new Array();
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_ARCADE_MODE][1] = new Array();
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_ARCADE_MODE][1][1] = "\nlet's try again now!";
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_ARCADE_MODE][1][2] = "\nWho has't failed before?\n\nI am sure you will make it this time.\n\nLet's go!";
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_ARCADE_MODE][2] = new Array();
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_ARCADE_MODE][2][1] = "\nWatch the time\nand money\nmore closely!\n\nlet's try again!\n\nGood luck!";
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_ARCADE_MODE][2][2] = "You can do better than this. Fast is not necessarily better than slow.To complete this marathon, you need to find the right pace.";
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_COLLECTOR_MODE] = new Array();
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_COLLECTOR_MODE][1] = new Array();
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_COLLECTOR_MODE][1][1] = "\nRemember, you goal is to buy the required items. Do not worry about paying a bit more on these items as long as you can collect them.";
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_COLLECTOR_MODE][1][2] = "\nYou can do better than this. Aim more accurately this time. Let's go ";
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_COLLECTOR_MODE][2] = new Array();
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_COLLECTOR_MODE][2][1] = "\nNew items are introduced in the top row, the faster you get access to those items the better.";
_global.GUI_SUMMARY_BUBBLE_FAIL_TEXT[_global.GAMES_COLLECTOR_MODE][2][2] = "I think you are simply running out of luck. Make sure you keep track on the progress. Once you have reached a target, move on to collect the remaining items.";
_global.GUI_SUMMARY_BUBBLE_TXT_POS = "250 400";
_global.GUI_SUMMARY_BUBBLE_TXT_SIZE = "172 173";
_global.GUI_SUMMARY_PASS_BUBBLE_TXT_POS = "230 370";
_global.GUI_SUMMARY_PASS_BUBBLE_TXT_SIZE = "154 181";
_global.goGameOver = function (playMode, modeSettingId) {
_global.deleteGameItem(_global.playMode, _global.modeSettingId, _global.gameMode);
gotoAndStop (191);
clearInterval(_global.goGameOverEvent);
_global.Character.playAnimation(_global.Character.gameOver, false);
_global.playBgAudio("summaryBgMusic");
_global.createGameOverMsgBoxEvent = setInterval(_global, "createGameOverMsgBox", 1000, playMode, modeSettingId);
_global.MSNGameOver();
};
_global.createGameOverMsgBox = function (playMode, modeSettingId) {
clearInterval(_global.createGameOverMsgBoxEvent);
_global.GuiGameOverBoard = _root.attachMovie("GameOverBoard", "GuiGameOverBoard", 5000);
_global.GuiGameOverBoard._x = 143;
_global.GuiGameOverBoard._y = -356;
_global.GuiGameOverBoard.onEnterFrame = function () {
_global.GuiGameOverBoard._y = _global.GuiGameOverBoard._y + ((101 - _global.GuiGameOverBoard._y) / 8);
if ((Math.floor(_global.GuiGameOverBoard._y) + 1) == 101) {
delete _global.GuiGameOverBoard.onEnterFrame;
}
};
if ((_global.subStage == _global.GAMES_SUB_STAGE_NUM[_global.gameMode]) && (_global.curGameState == _global.GAMES_STAGE_NUM[_global.gameMode])) {
_global.GuiGameOverBoard.lblGameOverMsg.text = (((_global.GUI_GAME_OVER_SUCCESS_MSG + newline) + newline) + "Final Score: ") + _global.score;
} else {
_global.GuiGameOverBoard.lblGameOverMsg.text = (((_global.GUI_GAME_OVER_BOARD_MSG + newline) + newline) + "Final Score: ") + _global.score;
}
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_GAMEOVER);
_global.GuiGameOverBoard.pm.onRelease = function () {
_global.gameOverRetry(true);
};
_global.GuiGameOverBoard.mm.onRelease = function () {
_global.gameOverRetry(false);
};
_global.GuiGameOverBoard.ss.onRelease = function () {
_global.gameOverSubmit();
};
};
_global.deleteGameOverMsgBox = function () {
_global.deleteGameItem(_global.playMode, _global.modeSettingId, _global.gameMode);
_global.GuiGameOverBoard.removeMovieClip();
};
_global.gameOverRetry = function (bRetry) {
_global.deleteGameOverMsgBox();
_global.deleteResultBoardImg1();
if (bRetry) {
_global.bFirstStart = true;
_global.bIntroBonusMoneyItem = true;
_global.bIntroBonusTimeItem = true;
_global.bIntroBonusScoreItem = true;
_global.startPlayGame(true);
} else {
_global.resetGame();
_global.showMenuScreen();
_global.playing = false;
_global.lastGameState = _global.GAMES_GAME_STATE_MAIN_MENU;
}
};
_global.gameOverSubmit = function () {
_global.deleteGameOverMsgBox();
_global.createSubmitMsgBox(0, 0);
};
_global.goRankingPage = function () {
_global.activeRankingPage = _global.GAMES_ARCADE_MODE;
gotoAndStop (189);
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_RANK_PAGE);
};
_global.voiceEffect = new Sound(createEmptyMovieClip("voiceEffect1", 9999));
_global.bgMusic = new Sound(createEmptyMovieClip("bgMusic1", 9998));
_global.soundEffect = new Sound(createEmptyMovieClip("soundEffect1", 9997));
_global.vVolume = 50;
_global.bgVolume = 50;
_global.bgMusic.setVolume(_global.bgVolume);
_global.voiceEffect.setVolume(_global.vVolume);
_global.soundEffect.setVolume(_global.vVolume);
_global.playBgAudio = function (audioFile) {
_global.bgMusic.stop();
_global.bgMusic.attachSound(audioFile);
_global.bgMusic.start(0, 10000);
};
_global.playVoice = function (audioFile) {
_global.voiceEffect.attachSound(audioFile);
_global.voiceEffect.start();
};
_global.playSoundEffect = function (audioFile) {
_global.soundEffect.attachSound(audioFile);
_global.soundEffect.start();
};
_global.stopAudio = function (Music) {
Music.stop();
};
_global.StopAllSound = function () {
_global.bgMusic.stop();
_global.voiceEffect.stop();
_global.soundEffect.stop();
};
_global.goInGameMenuPage = function () {
if (!_global.gamePaused) {
_global.togglePause(true);
}
_global.pauseTimer(true);
_global.bSlidingMenu = true;
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_IN_GAME_MENU_PAGE);
_global.inGameMenuBorder = _root.attachMovie("InGameMenuBoard", "inGameMenuBorder", 5001);
_global.inGameMenuBorder._x = 153;
_global.inGameMenuBorder._y = -356;
_global.inGameMenuBorder.inGameMenu_btn_back.enabled = false;
_global.inGameMenuBorder.inGameMenu_btn_mainMenu.enabled = false;
_global.inGameMenuBorder.inGameMenu_btn_help.enabled = false;
_global.inGameMenuBorder.volsv._x = ((_global.vVolume / 100) * 280) + 40;
_global.inGameMenuBorder.volmv._x = ((_global.bgVolume / 100) * 280) + 40;
_global.inGameMenuBorder.onEnterFrame = function () {
_global.inGameMenuBorder._y = _global.inGameMenuBorder._y + ((101 - _global.inGameMenuBorder._y) / 8);
if ((Math.floor(_global.inGameMenuBorder._y) + 1) == 101) {
_global.inGameMenuBorder.inGameMenu_btn_back.enabled = true;
_global.inGameMenuBorder.inGameMenu_btn_mainMenu.enabled = true;
_global.inGameMenuBorder.inGameMenu_btn_help.enabled = false;
delete _global.inGameMenuBorder.onEnterFrame;
}
};
_global.initInGameMenuPage();
};
_global.initInGameMenuPage = function () {
_global.inGameMenuBorder.inGameMenu_btn_back.onRelease = function () {
_global.onInGameOptionPageOk();
};
_global.inGameMenuBorder.inGameMenu_btn_mainMenu.onRelease = function () {
_global.onInGameOptionPageGoMenu();
};
_global.inGameMenuBorder.inGameMenu_btn_help.onRelease = function () {
_global.onInGameOptionPageGoHelp();
};
};
_global.GuiSlidingUp = function (gui, nextGameState) {
var _local3 = -20;
var _local2 = -300;
gui._y = gui._y + _local3;
if (gui._y > _local2) {
} else {
clearInterval(_global.hideInGameMenuPageEvent);
_global.changeGameState(_global.curGameState, _global.GAMES_GAME_STATE_PLAYING);
_global.inGameMenuBorder.removeMovieClip();
_global.bSlidingMenu = false;
if (nextGameState == _global.GAMES_GAME_STATE_PLAYING) {
trace(_global.gamePaused);
if (_global.gamePaused) {
_global.togglePause(true);
}
} else if (nextGameState == _global.GAMES_GAME_STATE_IN_GAME_MENU_PAGE) {
_global.deleteGameItem(_global.playMode, _global.modeSettingId, _global.gameMode);
_global.showMenuScreen();
} else if (nextGameState == _global.GAMES_GAME_STATE_IN_GAME_HELP_PAGE) {
_global.deleteGameItem(_global.playMode, _global.modeSettingId, _global.gameMode);
_global.goInGameHelpPage();
}
}
};
_global.hideInGameMenuPage = function (nextGameState) {
_global.bSlidingMenu = true;
_global.hideInGameMenuPageEvent = setInterval(_global, "GuiSlidingUp", 30, _global.inGameMenuBorder, nextGameState);
};
_global.onInGameOptionPageOk = function () {
_global.bgMusic.start();
_global.hideInGameMenuPage(_global.GAMES_GAME_STATE_PLAYING);
_global.pauseTimer(false);
};
_global.onInGameOptionPageGoMenu = function () {
_global.hideInGameMenuPage(_global.GAMES_GAME_STATE_IN_GAME_MENU_PAGE);
};
_global.onInGameOptionPageGoHelp = function () {
_global.hideInGameMenuPage(_global.GAMES_GAME_STATE_IN_GAME_HELP_PAGE);
};
_global.initTimer = function () {
_global.timer = new Object();
_global.timer.tag = "timer";
_global.timer.time = 0;
_global.timer.started = true;
_global.timer.bPause = false;
};
_global.setTimer = function (timer) {
timer.time = 0;
timer.started = true;
if (_global.GAMES_LIMITED_TIME[_global.playMode][_global.modeSettingId]) {
if (timer.intervalId != null) {
clearInterval(timer.intervalId);
}
timer.intervalId = setInterval(this, "onTimer", 1000, timer);
_global.timeLeft = Math.floor(_global.timeLimit) - timer.time;
}
};
_global.onTimer = function (timer) {
if (_global.timer.bPause) {
return(undefined);
}
if (!(timer.tag === "timer")) {
} else {
timer.time++;
_global.timeLeft--;
_global.startTime++;
if ((_global.startTime % _global.BroadcastInterval) == 0) {
_global.BroadcastGameScore();
}
if (_global.timeLeft > _global.Character.scaryTimeLeft) {
_global.timeBar.updateTimeBar();
} else if (!_global.timeBar.flashing) {
_global.timeBar.flashing = true;
_global.timeBar.clearTile = true;
_global.timeBar.setTimerOn(500);
}
if ((_global.timeLeft < _global.Character.busyTimeLeft) && (!_global.Character.bBusied)) {
_global.Character.playAnimation(_global.Character.busy, false);
_global.Character.bBusied = true;
_global.Character.currentAnimate = _global.Character.busy;
} else if ((_global.timeLeft < _global.Character.scaryTimeLeft) && (!_global.Character.bScared)) {
_global.Character.playAnimation(_global.Character.scare, false);
_global.Character.bScared = true;
_global.Character.currentAnimate = _global.Character.scare;
}
if (timer.time >= _global.timeLimit) {
clearInterval(timer.intervalId);
if (!_global.nextStageFlag) {
_global.checkNextStage();
}
}
}
};
_global.pauseTimer = function (bPause) {
_global.timer.bPause = bPause;
};
_global.goSubmit = function (playMode, modeSettingId) {
_global.createSubmitMsgBox(playMode, modeSettingId);
};
_global.createSubmitMsgBox = function (playMode, modeSettingId) {
_global.GuiSubmitBoard = _root.attachMovie("SubmitBoard", "GuiSubmitBoard", 5001);
_global.GuiSubmitBoard._x = 143;
_global.GuiSubmitBoard._y = -356;
_global.GuiSubmitBoard.loading_mc._visible = false;
_global.GuiSubmitBoard.send_btn._alpha = 50;
_global.GuiSubmitBoard.send_btn.enabled = false;
_global.GuiSubmitBoard.input_txt.tabEnabled = true;
_global.GuiSubmitBoard.input_txt.tabIndex = 1;
_global.GuiSubmitBoard.input_txt.onChanged = function () {
if (_global.GuiSubmitBoard.input_txt.text != "") {
_global.GuiSubmitBoard.send_btn._alpha = 100;
_global.GuiSubmitBoard.send_btn.enabled = true;
} else {
_global.GuiSubmitBoard.send_btn._alpha = 50;
_global.GuiSubmitBoard.send_btn.enabled = false;
}
};
_global.GuiSubmitBoard.onEnterFrame = function () {
_global.GuiSubmitBoard._y = _global.GuiSubmitBoard._y + ((80 - _global.GuiSubmitBoard._y) / 8);
if ((Math.floor(_global.GuiSubmitBoard._y) + 1) == 80) {
delete _global.GuiSubmitBoard.onEnterFrame;
}
};
_global.GuiSubmitBoard.send_btn.onRelease = function () {
_global.SubmitSend();
};
_global.GuiSubmitBoard.cancel_btn.onRelease = function () {
_global.GuiSubmitBoard.removeMovieClip();
_global.createGameOverMsgBox(_global.playMode, _global.modeSettingId);
};
};
_global.SubmitSend = function () {
var _local3 = new XML();
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.onLoad = myOnLoad;
_local3.sendAndLoad((((_global.SubmitPath + "&username=") + _global.GuiSubmitBoard.input_txt.text) + "&score=") + _global.score, _local2);
_global.GuiSubmitBoard.input_txt.selectable = false;
_global.GuiSubmitBoard.input_txt._alpha = 70;
_global.GuiSubmitBoard.loading_mc._visible = true;
_global.GuiSubmitBoard.send_btn.enabled = false;
_global.GuiSubmitBoard.send_btn._alpha = 50;
_global.GuiSubmitBoard.Resulttxt._visible = false;
};
var GoToLoading = function () {
trace(_global.CurrentRoot);
_global.GuiSubmitBoard.removeMovieClip();
_global.deleteResultBoardImg1();
gotoAndStop (183);
};
_global.LoadVar = function () {
};
_global.LoadPercent = function (P) {
if (_global.bUseMSNApi == 1) {
fscommand ("LoadBroadcast", ("<data><percentcomplete>" + P) + "</percentcomplete></data>");
}
};
_global.BeginSession = function () {
if (_global.bUseMSNApi == 1) {
fscommand ("SessionReady", "<data></data>");
}
};
_global.GameLaunch = function () {
if (_global.bUseMSNApi == 1) {
fscommand ("GameReady", "<data><mode>standard</mode></data>");
} else {
_global.GameStart();
}
};
_global.GameOver = function () {
if (_global.bUseMSNApi == 1) {
fscommand ("GameEnd", "<gamedata></gamedata>");
}
};
_global.BroadcastGameScore = function () {
if (_global.bUseMSNApi == 1) {
if (!_global.gamePaused) {
fscommand ("ScoreBroadcast", ((("<game><score>" + _global.score) + "</score><time>") + _global.startTime) + "</time></game>");
}
}
};
_global.ScoreSubmit = function () {
fscommand ("ScoreSubmit", ((("<game><score>" + _global.score) + "</score><time>") + _global.startTime) + "</time></game>");
};
_global.RoundIntermission = function () {
if (_global.bUseMSNApi == 1) {
_global.StopAllSound();
var _local2 = ("<data><breakpoint>" + _global.modeSettingId) + "</breakpoint></data>";
fscommand ("GameBreak", _local2);
} else {
_global.GameContinue();
}
};
_global.MSNGameOver = function () {
if (_global.bUseMSNApi == 1) {
fscommand ("GameEnd", "<gamedata></gamedata>");
}
};
_global.MSNDeluxe = function () {
if (_global.bUseMSNApi == 1) {
fscommand ("CustomEvent", "<gamedata>DeluxeDownload</gamedata>");
}
};
_global.MuteOn = function () {
_global.bgMusic.setVolume(0);
_global.voiceEffect.setVolume(0);
_global.soundEffect.setVolume(0);
};
_global.MuteOff = function () {
_global.bgMusic.setVolume(_global.bgVolume);
_global.voiceEffect.setVolume(_global.vVolume);
_global.soundEffect.setVolume(_global.vVolume);
};
_global.GameMenu = function () {
_global.deleteGameItem(_global.playMode, _global.modeSettingId, _global.gameMode);
_global.showMenuScreen();
};
_global.GameStart = function () {
_global.selArcadeMode();
};
_global.GameContinue = function () {
if (((_global.subStage == _global.GAMES_SUB_STAGE_NUM[_global.gameMode]) && (_global.bNextStage)) && (_global.gameMode == _global.GAMES_ARCADE_MODE)) {
if (_global.strpos(_global.medalCollection, _global.stage) == -1) {
}
if (_global.curGameState == _global.GAMES_STAGE_NUM[_global.gameMode]) {
_global.goGameOverEvent = setInterval(_global, "goGameOver", 1500, _global.playMode, _global.modeSettingId);
} else {
_global.goSummaryPageEvent = setInterval(_global, "goSummaryPage", 1000, _global.gameMode, _global.playMode, _global.modeSettingId);
}
} else {
_global.goSummaryPageEvent = setInterval(_global, "goSummaryPage", 1000, _global.gameMode, _global.playMode, _global.modeSettingId);
}
};
_root.setting = "setting.xml";
var data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = loadData;
data_xml.load(_root.setting);
_global.HelpFlowStatus = 0;
_global.ReleaseHelpFlow = 0;
_global.ShowHelpFlow_Start = function () {
_global.HelpFlow_Start = attachMovie("HelpFlowMain", "HelpFlow_Start", 9101);
var _local2 = HelpFlow_Start.createEmptyMovieClip("tmp", 1);
var _local3 = flash.display.BitmapData.loadBitmap("HelpFlowStart");
_local2.attachBitmap(_local3, deep, "Auto", true);
_global.ReleaseHelpFlow = 1;
};
_global.ShowHelpFlow_StartEnd = function () {
_global.HelpFlow_Start.removeMovieClip();
clearInterval(_global.ShowHelpFlow_StartEvent);
_global.HelpFlowStatus = 1;
_global.ReleaseHelpFlow = 0;
_global.setTimer(_global.timer);
_global.shootEnable(true);
};
_global.ShowHelpFlow_HitItem = function () {
if (_global.HelpFlowStatus == 1) {
_global.HelpFlow_HitItem = attachMovie("HelpFlowMain", "HelpFlow_HitItem", 9102);
var _local2 = HelpFlow_HitItem.createEmptyMovieClip("tmp", 2);
var _local3 = flash.display.BitmapData.loadBitmap("HelpFlowHitItem");
_local2.attachBitmap(_local3, 10, "Auto", true);
_global.ReleaseHelpFlow = 1;
}
};
_global.ShowHelpFlow_HitItemEnd = function () {
_global.HelpFlow_HitItem.removeMovieClip();
clearInterval(_global.ShowHelpFlow_HitItemEvent);
_global.ReleaseHelpFlow = 0;
_global.HelpFlowStatus = 2;
};
_global.ShowHelpFlow_HitTarget = function () {
if (_global.HelpFlowStatus == 2) {
_global.HelpFlow_HitTarget = attachMovie("HelpFlowMain", "HelpFlow_HitTarget", 9102);
var _local2 = HelpFlow_HitTarget.createEmptyMovieClip("tmp", 2);
var _local3 = flash.display.BitmapData.loadBitmap("HelpFlowHitTarget");
_local2.attachBitmap(_local3, 10, "Auto", true);
_global.ReleaseHelpFlow = 1;
}
};
_global.ShowHelpFlow_HitTargetEnd = function () {
_global.HelpFlow_HitTarget.removeMovieClip();
clearInterval(_global.ShowHelpFlow_HitTargetEvent);
_global.ReleaseHelpFlow = 0;
_global.HelpFlowStatus = 3;
};
_global.ShowHelpFlow_HitPenalty = function () {
if (_global.HelpFlowStatus == 3) {
_global.HelpFlow_HitPenalty = attachMovie("HelpFlowMain", "HelpFlow_HitPenalty", 9103);
var _local2 = HelpFlow_HitPenalty.createEmptyMovieClip("tmp", 2);
var _local3 = flash.display.BitmapData.loadBitmap("HelpFlowHitPenalty");
_local2.attachBitmap(_local3, 10, "Auto", true);
_global.ReleaseHelpFlow = 1;
}
};
_global.ShowHelpFlow_HitPenaltyEnd = function () {
_global.HelpFlow_HitPenalty.removeMovieClip();
clearInterval(_global.ShowHelpFlow_HitPenaltyEvent);
_global.ReleaseHelpFlow = 0;
_global.HelpFlowStatus = 4;
};
_global.initDollar();
_global.initTimer();
var myListener = new Object();
myListener.onKeyDown = setupKeybinds;
Key.addListener(myListener);
_global.createScoreGui();
_global.createMoneyLeftGui();
_global.createLevelGui();
_global.createLifeLeftTxtGui(_global.life);
_global.moneyBonusTxt = _global.createTxt(_global.GUI_BONUS_MONEY_TXT_POS, _global.GUI_BONUS_MONEY_TXT_SIZE, _global.GUI_BONUS_MONEY_TXT_DIGIT, _global.GUI_BONUS_MONEY_TXT_IMAGE, _root, 8001);
_global.timeBonusTxt = _global.createTxt(_global.GUI_BONUS_TIME_TXT_POS, _global.GUI_BONUS_TIME_TXT_SIZE, _global.GUI_BONUS_TIME_TXT_DIGIT, _global.GUI_BONUS_TIME_TXT_IMAGE, _root, 8102);
_global.scoreBonusTxt = _global.createTxt(_global.GUI_BONUS_SCORE_TXT_POS, _global.GUI_BONUS_SCORE_TXT_SIZE, _global.GUI_BONUS_SCORE_TXT_DIGIT, _global.GUI_BONUS_SCORE_TXT_IMAGE, _root, 8203);
Frame 2
Frame 163
bar.bar_inside.bar_pro._xscale = 0;
var loaded;
var total = _root.getBytesTotal();
var percent;
bar.onEnterFrame = function () {
loaded = _root.getBytesLoaded();
percent = Math.floor((loaded / total) * 100);
bar.bar_inside.bar_pro._xscale = percent;
percent_txt.text = percent + "%";
_global.LoadPercent(percent);
if (percent >= 100) {
delete bar.onEnterFrame;
gotoAndStop (183);
}
};
Frame 176
stop();
stopAllSounds();
Frame 183
stop();
_global.BeginSession();
Frame 184
stop();
Frame 185
stop();
Frame 186
stop();
Frame 187
_root.BG.gotoAndStop(_global.stage);
_global.CurrentRoot = _root;
stop();
_global.Character = _root.Character;
_global.lblMoneyLeft = _root.lblMoneyLeft;
_global.Character.playAnimation(_global.Character.normal, false);
Frame 189
stop();
Frame 190
var frame_mc_Y = 80;
frame_mc.volsv._x = ((_global.vVolume / 100) * 240) + 40;
frame_mc.volmv._x = ((_global.bgVolume / 100) * 240) + 40;
frame_mc.onEnterFrame = function () {
frame_mc._y = frame_mc._y + ((frame_mc_Y - frame_mc._y) / 8);
if ((Math.floor(frame_mc._y) + 1) == Math.floor(frame_mc_Y)) {
delete frame_mc.onEnterFrame;
}
};
Frame 191
stop();
Frame 192
_global.MuteOn();
Frame 201
_global.MuteOff();
Frame 211
_global.GameMenu();
Frame 220
_global.pressEsc();
Frame 229
_global.onInGameOptionPageOk();
Frame 238
_global.GameStart();
Frame 249
_global.GameContinue();
Symbol 8 MovieClip [MainItem] Frame 1
#initclip 14
Object.registerClass("MainItem", CItem);
#endinitclip
Symbol 19 MovieClip [Sprite] Frame 1
#initclip 13
Object.registerClass("Sprite", CSprite);
#endinitclip
Symbol 568 MovieClip [__Packages.CtargetLine] Frame 0
class CtargetLine
{
var line, parent, maxAngle, target_LINE_SEPARATION, repeatNum, startNum, show, m_moveX, m_moveY;
function CtargetLine (par) {
line = new Array();
setProperty1();
parent = par;
_global.TARGET_LINE_START_POSITION = _global.DOLLARS_START_POSITION;
_global.TARGET_LINE_SIZEX = 15;
_global.TARGET_LINE_SIZEY = 15;
_global.TARGET_LINE_SEGMENT_NUMBER = 50;
_global.TARGET_LINE_SEPARATION = 20;
_global.updateLine = true;
_global.TARGET_LINE_START_DOT = 5;
}
function setProperty1() {
maxAngle = _global.maxShootAngle;
target_LINE_SEPARATION = 20;
repeatNum = 50;
startNum = 5;
show = true;
}
function createTargetLine() {
trace("createTargetLine" + parent);
var _local2 = startNum;
while (_local2 < repeatNum) {
var _local3 = parent.attachMovie("dotImagemap", "dotImagemap" + _local2, 400 + _local2);
trace(_local3);
_local3._visible = false;
_local3.tag = "Line";
_local3.order = _local2;
line[_local2] = _local3;
_local2++;
}
if (!show) {
hideLine();
}
}
function deleteTargetLine() {
_global.updateLine = false;
var _local3 = startNum;
while (_local3 < repeatNum) {
line[_local3].removeMovieClip();
_local3++;
}
}
function update(arc) {
var _local8 = 90 - parent.launcher._rotation;
var _local6 = false;
m_moveX = target_LINE_SEPARATION * Math.cos(m_nAM * _local8);
m_moveY = target_LINE_SEPARATION * Math.sin(m_nAM * _local8);
var _local5 = parent.AimPoint._x + (m_moveX * 4);
var _local7 = parent.AimPoint._y - (m_moveY * 4);
var _local2 = startNum;
while (_local2 < repeatNum) {
_local5 = _local5 + m_moveX;
_local7 = _local7 - m_moveY;
if (_local5 <= (parent.m_boardTopLeftX + 5)) {
m_moveX = -m_moveX;
_local5 = _local5 + ((parent.m_boardTopLeftX + 5) - m_moveX);
}
if (_local5 >= 370) {
m_moveX = -m_moveX;
_local5 = _local5 + (370 - _local5);
}
if (_local7 <= parent.m_boardTopLeftY) {
m_moveY = -m_moveY;
}
if (_local7 >= 400) {
m_moveY = -m_moveY;
}
line[_local2]._x = _local5;
line[_local2]._y = _local7;
if (_local6) {
line[_local2]._visible = false;
} else {
var _local4 = 0;
while (_local4 < 56) {
var _local3 = parent.m_ItemFruitArray[_local4];
if (_local3.collionActive) {
if (_local3.hitTest(line[_local2]) && (!_local3.fadingOut)) {
_local6 = true;
break;
}
}
_local4++;
}
if (_local6) {
line[_local2]._visible = false;
} else {
line[_local2]._visible = true;
}
}
_local2++;
}
}
function hideLine() {
var _local2 = startNum;
while (_local2 < repeatNum) {
line[_local2]._visible = false;
_local2++;
}
}
var m_nAM = (Math.PI/180);
}
Symbol 569 MovieClip [__Packages.CImageMapDatablock] Frame 0
class CImageMapDatablock
{
var ImageMap, PartNum, bitmapData;
function CImageMapDatablock (map, Num) {
ImageMap = map;
PartNum = Num;
bitmapData = flash.display.BitmapData.loadBitmap(map);
}
function GetBlock(index) {
var _local2 = new flash.display.BitmapData(bitmapData.width / PartNum, bitmapData.height, true, 0);
_local2.copyPixels(bitmapData, new flash.geom.Rectangle((index * bitmapData.width) / PartNum, 0, bitmapData.width / PartNum, bitmapData.height), new flash.geom.Point(0, 0));
return(_local2);
}
}
Symbol 570 MovieClip [__Packages.Cschedule] Frame 0
class Cschedule extends Object
{
var F, intervalId;
function Cschedule (tim, fun) {
super();
trace("das");
F = fun;
intervalId = setInterval(this, "doSome", tim);
}
function doSome() {
trace("11111");
F();
clearInterval(intervalId);
}
}
Symbol 571 MovieClip [__Packages.CSprite] Frame 0
class CSprite extends MovieClip
{
var m_bActive, VillDie, DieTime, onEnterFrame, m_nVx, m_nVy;
function CSprite () {
super();
m_bActive = false;
VillDie = false;
DieTime = 0;
onEnterFrame = function () {
if (this.m_bActive) {
this._x = this._x + this.m_nVx;
this._y = this._y + this.m_nVy;
}
if (this.VillDie) {
this.DieTime--;
this._alpha--;
if (this.DieTime == 0) {
this.removeMovieClip();
}
}
};
}
function setLinearVelocity(Vx, Vy) {
m_bActive = true;
m_nVx = Vx;
m_nVy = Vy;
}
function SetDieTime(t) {
DieTime = t;
VillDie = true;
}
function GetArc(x, y) {
y = -y;
var _local5 = Math.abs(x);
var _local4 = Math.abs(y);
if ((x > 0) && (y > 0)) {
return(Math.atan(_local4 / _local5) / m_nAM);
}
if ((x < 0) && (y > 0)) {
return(180 - (Math.atan(_local4 / _local5) / m_nAM));
}
if ((x < 0) && (y < 0)) {
return(180 + (Math.atan(_local4 / _local5) / m_nAM));
}
if ((x > 0) && (y < 0)) {
return(360 - (Math.atan(_local4 / _local5) / m_nAM));
}
if ((x >= 0) && (y == 0)) {
return(0);
}
if ((x < 0) && (y == 0)) {
return(180);
}
if ((x == 0) && (y > 0)) {
return(90);
}
if ((x == 0) && (y < 0)) {
return(270);
}
}
var m_nPlayedFrameCount = 0;
var m_nAM = (Math.PI/180);
}
Symbol 572 MovieClip [__Packages.CItem] Frame 0
class CItem extends MovieClip
{
var neighborItem, IsDown, digitValue, digit_image, countDown_image, checkItem, collionActive, MovingOut, MoveToDie, onEnterFrame, m_Stat, removeMovieClip, m_FateSpeed, fadingOut, fadeToDie, _x, m_moveX, _y, m_moveY, _alpha, id, exisit, safe, flashing, processed, value, type, imageName, tag, bgColor, bgImage, countingDown, timerItem, bonusText, itemImage, createEmptyMovieClip, FreeTag, digit_no, m_Value, row, col, _parent, countDownDigit, countDownValue, countDownEvent, _xscale, _yscale, contract, contractEffectEvent, itemSize, MoveOutdstPos, moveOutSpeedX, moveOutSpeedY, MoveOutDirect;
function CItem () {
super();
neighborItem = new Array();
IsDown = false;
digitValue = new Array();
digit_image = new Array();
countDown_image = new Array();
checkItem = new Array();
collionActive = true;
MovingOut = false;
MoveToDie = false;
onEnterFrame = function () {
this.Run();
};
}
function Run() {
if (m_Stat == 2) {
Fating();
Downing();
}
if (m_Stat == 3) {
removeMovieClip();
}
if (m_Stat == 4) {
moveOutTo();
}
}
function startFadeOut(FateSpeed) {
m_FateSpeed = FateSpeed;
fadingOut = true;
fadeToDie = true;
MovingOut = true;
MoveToDie = true;
m_Stat = 2;
}
function Downing() {
if (IsDown) {
_x = _x - m_moveX;
_y = _y - m_moveY;
}
}
function Fating() {
_alpha = _alpha - m_FateSpeed;
if (_alpha < 0) {
m_Stat = 3;
}
}
function setItemProperty(itemId, playMode, modeSettingId) {
id = itemId;
exisit = true;
fadingOut = false;
fadeToDie = false;
MovingOut = false;
MoveToDie = false;
safe = true;
flashing = false;
var _local3 = 0;
while (_local3 < _global.GAMES_NEIGHBOR_COUNT) {
checkItem[_local3] = true;
_local3++;
}
processed = false;
if (_global.playMode == _global.GAMES_SMART_BUYER_MODE) {
var _local7 = _global.getIndexByFreqArr(_global.ITEMS_ITEM[itemId].VALUE_FREQUENCY[playMode][modeSettingId]);
value = _global.ITEMS_ITEM[itemId].VALUE[playMode][modeSettingId][_local7];
} else if (_global.ITEMS_ITEM[itemId].COUNT_DOWN[playMode][modeSettingId]) {
value = _global.getRandom(_global.ITEMS_ITEM[itemId].MIN_VALUE[playMode][modeSettingId], _global.ITEMS_ITEM[itemId].MAX_VALUE[playMode][modeSettingId]);
} else {
value = _global.ITEMS_ITEM[itemId].VALUE[playMode][modeSettingId];
}
type = _global.ITEMS_ITEM[itemId].TYPE;
imageName = _global.ITEMS_ITEM[itemId].NAME;
tag = "item" + value;
bgColor = _global.ITEMS_ITEM[itemId].BALL_COLOR;
bgImage = _global.COLOR_IMAGE[bgColor];
setImageMap(bgImage, -26, -26, 1000);
mountItemImage(imageName);
mountValue(value, playMode, modeSettingId);
if (_global.ITEMS_ITEM[itemId].COUNT_DOWN[playMode][modeSettingId]) {
countingDown = true;
timerItem = true;
mountCountDown(_global.ITEMS_ITEM[itemId].COUNT_DOWN_VALUE[playMode][modeSettingId]);
bonusText = mountBonusText(id);
itemImage._alpha = 0;
StarContractEffect();
StarCountDown();
} else {
countingDown = false;
timerItem = false;
}
}
function setImageMap(map, x, y, deep) {
var _local3 = map;
var _local2 = createEmptyMovieClip("tmp", deep);
var _local4 = flash.display.BitmapData.loadBitmap(_local3);
_local2.attachBitmap(_local4, deep, "Auto", true);
_local2._x = x;
_local2._y = y;
return(_local2);
}
function setNumberImageMap(map, x, y, digitno, deep, Num) {
var _local3 = new CImageMapDatablock(map, Num);
var _local2 = createEmptyMovieClip("tmp", deep);
_local2.attachBitmap(_local3.GetBlock(digitno), deep, "Auto", true);
_local2._x = x;
_local2._y = y;
return(_local2);
}
function mountItemImage() {
itemImage = setImageMap(imageName + "A", -26, -26, 2000);
}
function mountValue(value, playMode, modeSettingId) {
if (_global.ITEMS_ITEM[id].COUNT_DOWN[playMode][modeSettingId]) {
FreeTag = mountBonusFreeTag();
} else {
var _local7 = _global.getDigit(value);
digit_no = _local7;
var _local12 = _global.GUI_MONEY_TXT_SIZE[0] / 10;
var _local13 = _global.GUI_MONEY_TXT_SIZE[1];
var _local9 = _local12 - 9;
var _local11 = ((_local7 - 1) * ((-_local9) / 2)) - 12;
var _local10 = -0.6;
var _local6 = _local7 - 1;
var _local4 = 0;
while (_local4 < _local7) {
var _local5 = 1;
var _local3 = 0;
while (_local3 < _local6) {
_local5 = _local5 * 10;
_local3++;
}
_local6--;
digitValue[_local4] = Math.floor(value / _local5) % 10;
setNumberImageMap("grey_number.png", _local11 + (_local9 * _local4), _local10, digitValue[_local4], 4000 + _local4, 10);
_local4++;
}
}
m_Value = value;
this.value = value;
}
function setItemPosition(row1, col1) {
var _local4;
row = row1;
col = col1;
if (_parent.alignment == 1) {
if ((row1 % 2) == 0) {
_x = (_parent.m_boardTopLeftX + (_parent.m_colWidth * col1)) + (_parent.m_colWidth / 2);
} else {
_x = (_parent.m_boardTopLeftX + (_parent.m_colWidth * col1)) + _parent.m_colWidth;
}
} else if (_parent.alignment == 2) {
if ((row1 % 2) == 0) {
_x = (_parent.m_boardTopLeftX + (_parent.m_colWidth * col1)) + _parent.m_colWidth;
} else {
_x = (_parent.m_boardTopLeftX + (_parent.m_colWidth * col1)) + (_parent.m_colWidth / 2);
}
}
_y = _parent.m_boardTopLeftY + (_parent.m_rowHeight * row1);
}
function mountCountDown(value1) {
var _local7 = _global.getDigit(value1);
countDownDigit = _local7;
countDownValue = value1;
var _local13 = _global.GUI_BONUS_ITEM_TXT_SIZE[0];
var _local14 = _global.GUI_BONUS_ITEM_TXT_SIZE[1];
var _local8 = _local13;
var _local10 = ((_local7 - 1) * ((-_local8) - 3)) - 7;
var _local9 = -13;
var _local6 = _local7 - 1;
var _local3 = 0;
while (_local3 < _local7) {
var _local5 = 1;
var _local4 = 0;
while (_local4 < _local6) {
_local5 = _local5 * 10;
_local4++;
}
_local6--;
digitValue[_local3] = Math.floor(value1 / _local5) % 10;
digit_image[_local3] = setNumberImageMap("wachaka_0_9s.png", _local10 + (_local8 * _local3), _local9, digitValue[_local3], 4000 + _local3, 11);
countDown_image[_local3] = digit_image[_local3];
_local3++;
}
var _local12 = setNumberImageMap("wachaka_0_9s.png", _local10 + (_local8 * _local3), _local9, 10, 4000 + _local3, 11);
countDown_image[_local7] = _local12;
}
function mountBonusText(id) {
return(setImageMap(_global.ITEMS_ITEM[id].UPPER_TEXT_IMG, -25, -27, 3001));
}
function mountBonusFreeTag() {
return(setImageMap(_global.GUI_BONUS_ITEM_PRICE_IMAGE, -20, -3, 3000));
}
function getNeighbour() {
if (_parent.alignment == 1) {
if ((row % 2) == 0) {
neighborItem[0] = _parent.GetItem(row - 1, col - 1);
neighborItem[1] = _parent.GetItem(row - 1, col);
neighborItem[2] = _parent.GetItem(row, col + 1);
neighborItem[3] = _parent.GetItem(row + 1, col);
neighborItem[4] = _parent.GetItem(row + 1, col - 1);
neighborItem[5] = _parent.GetItem(row, col - 1);
} else {
neighborItem[0] = _parent.GetItem(row - 1, col);
neighborItem[1] = _parent.GetItem(row - 1, col + 1);
neighborItem[2] = _parent.GetItem(row, col + 1);
neighborItem[3] = _parent.GetItem(row + 1, col);
neighborItem[4] = _parent.GetItem(row + 1, col + 1);
neighborItem[5] = _parent.GetItem(row, col - 1);
}
} else if (_parent.alignment == 2) {
if ((row % 2) == 0) {
neighborItem[0] = _parent.GetItem(row - 1, col);
neighborItem[1] = _parent.GetItem(row - 1, col + 1);
neighborItem[2] = _parent.GetItem(row, col + 1);
neighborItem[3] = _parent.GetItem(row + 1, col);
neighborItem[4] = _parent.GetItem(row + 1, col + 1);
neighborItem[5] = _parent.GetItem(row, col - 1);
} else {
neighborItem[0] = _parent.GetItem(row - 1, col - 1);
neighborItem[1] = _parent.GetItem(row - 1, col);
neighborItem[2] = _parent.GetItem(row, col + 1);
neighborItem[3] = _parent.GetItem(row + 1, col);
neighborItem[4] = _parent.GetItem(row + 1, col - 1);
neighborItem[5] = _parent.GetItem(row, col - 1);
}
}
}
function setLinearVelocity(x, y) {
m_moveX = x;
m_moveY = y;
IsDown = true;
}
function StarCountDown() {
countDownEvent = setInterval(this, "countDown", 1000);
}
function StopCountDown() {
clearInterval(countDownEvent);
}
function countDown() {
if (_global.gamePaused) {
return(undefined);
}
if (countDownValue == 0) {
resize(100);
var _local3 = 0;
while (_local3 < (countDownDigit + 1)) {
countDown_image[_local3].removeMovieClip();
_local3++;
}
bonusText._alpha = 0;
countingDown = false;
timerItem = true;
StopContractEffect();
StopCountDown();
itemImage._alpha = 100;
return(undefined);
}
countDownValue--;
var _local6 = countDownDigit - 1;
var _local3 = 0;
while (_local3 < countDownDigit) {
var _local5 = 1;
var _local4 = 0;
while (_local4 < _local6) {
_local5 = _local5 * 10;
_local4++;
}
_local6--;
digitValue[_local3] = Math.floor(countDownValue / _local5) % 10;
var _local8 = digit_image[_local3]._x;
var _local7 = digit_image[_local3]._y;
digit_image[_local3].removeMovieClip();
digit_image[_local3] = setNumberImageMap("wachaka_0_9s.png", _local8, _local7, digitValue[_local3], 4000 + _local3, 11);
countDown_image[_local3] = digit_image[_local3];
_local3++;
}
}
function getUncheckNeighbor() {
var _local4;
var _local3 = 0;
while (_local3 < _global.GAMES_NEIGHBOR_COUNT) {
if (((neighborItem[_local3].value != undefined) && (checkItem[_local3])) && (!neighborItem[_local3].processed)) {
checkItem[_local3] = false;
_local4 = neighborItem[_local3];
_local3 = _global.GAMES_NEIGHBOR_COUNT;
}
_local3++;
}
return(_local4);
}
function resize(sizeScale) {
_xscale = sizeScale;
_yscale = sizeScale;
}
function countDownEffect() {
if (_global.gamePaused) {
return(undefined);
}
if ((countingDown && (timerItem)) && (!fadeToDie)) {
if (contract) {
contract = !contract;
resize(90);
} else {
contract = !contract;
resize(100);
}
}
}
function StarContractEffect() {
contract = true;
contractEffectEvent = setInterval(this, "countDownEffect", 500);
}
function StopContractEffect() {
clearInterval(contractEffectEvent);
}
function startMoveOut(speed, sizeReduce, dstPos) {
MovingOut = true;
MoveToDie = true;
fadingOut = true;
fadeToDie = true;
m_Stat = 4;
itemSize = 1;
MoveOutdstPos = new Array();
MoveOutdstPos = dstPos;
var _local3 = dstPos[0] - (_x + _parent._x);
var _local4 = dstPos[1] - (_y + _parent._y);
var _local5 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
moveOutSpeedX = (_local3 / _local5) * speed;
moveOutSpeedY = (_local4 / _local5) * speed;
if (MoveOutdstPos[0] < (_parent._x + _x)) {
MoveOutDirect = 1;
} else {
MoveOutDirect = 2;
}
_global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_MINI = 80 / (_local3 / moveOutSpeedX);
}
function moveOutTo() {
_x = _x + moveOutSpeedX;
_y = _y + moveOutSpeedY;
_xscale = _xscale - _global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_MINI;
_yscale = _yscale - _global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_MINI;
if (_xscale < 10) {
_xscale = 10;
_yscale = 10;
}
if (MoveOutDirect == 2) {
if ((_parent._x + _x) > MoveOutdstPos[0]) {
onMoveOutEnd();
removeMovieClip();
}
} else if ((_parent._x + _x) < MoveOutdstPos[0]) {
onMoveOutEnd();
removeMovieClip();
}
}
function onMoveOutEnd() {
if (countingDown) {
if (_global.ITEMS_ITEM[id].ADD_MONEY && (_global.bDrawBonusMoney)) {
_global.drawPartTxt(_global.moneyBonusTxt, _global.bonusMoneyDisplay, 11);
var _local3 = (_global.moneyBonusTxt.digit - mblength(_global.bonusMoneyDisplay)) - 1;
_global.setNumberImageMap(_global.moneyBonusTxt.img[_local3], _global.moneyBonusTxt.imageMap, 0, 0, 10, 20, 11);
_global.bonusMoneyDisplay = 0;
_global.bDrawBonusMoney = false;
_global.moneyBonusTxt.intervalId = setInterval(_global, "hideTxt", 1500, _global.moneyBonusTxt);
} else if (_global.ITEMS_ITEM[id].ADD_SCORE && (_global.bDrawBonusScore)) {
_global.drawPartTxt(_global.scoreBonusTxt, _global.bonusScoreDisplay, 11);
var _local3 = (_global.scoreBonusTxt.digit - mblength(_global.bonusScoreDisplay)) - 1;
_global.setNumberImageMap(_global.scoreBonusTxt.img[_local3], _global.scoreBonusTxt.imageMap, 0, 0, 10, 20, 11);
_global.bonusScoreDisplay = 0;
_global.bDrawBonusScore = false;
_global.scoreBonusTxt.intervalId = setInterval(_global, "hideTxt", 1500, _global.scoreBonusTxt);
} else if (_global.ITEMS_ITEM[id].ADD_TIME && (_global.bDrawBonusTime)) {
_global.drawPartTxt(_global.timeBonusTxt, _global.bonusTimeDisplay, 11);
var _local3 = (_global.timeBonusTxt.digit - mblength(_global.bonusTimeDisplay)) - 1;
_global.setNumberImageMap(_global.timeBonusTxt.img[_local3], _global.timeBonusTxt.imageMap, 0, 0, 10, 20, 11);
_global.bonusTimeDisplay = 0;
_global.bDrawBonusTime = false;
_global.timeBonusTxt.intervalId = setInterval(_global, "hideTxt", 1500, _global.timeBonusTxt);
}
}
}
}
Symbol 573 MovieClip [__Packages.CDollar] Frame 0
class CDollar extends CSprite
{
var m_nV, m_bActive, m_nLife, m_Stat, NEIGHBOR_COUNT, neighborItem, checkItem, payableItem, combin, _x, _y, _parent, onEnterFrame, m_nArc, m_moveX, m_nAM, m_moveY, _alpha, removeMovieClip, m_nPlayedFrameCount, row, col, m_Value, m_Type, eff, value, type;
function CDollar () {
super();
m_nV = 20;
m_bActive = true;
m_nLife = 1;
m_Stat = 0;
NEIGHBOR_COUNT = 6;
neighborItem = new Array();
checkItem = new Array();
payableItem = new Array();
combin = new Array();
_x = 220;
_y = 397;
_parent.Line._x = 0;
_parent.Line._y = 0;
m_bActive = false;
setDollarVariable(0, 0);
onEnterFrame = function () {
this.Run();
};
}
function Fire(arc) {
m_Stat = 1;
m_nArc = arc;
m_moveX = m_nV * Math.cos(m_nAM * m_nArc);
m_moveY = m_nV * Math.sin(m_nAM * m_nArc);
m_bActive = true;
}
function Fate() {
m_Stat = 2;
}
function Fating() {
_alpha = _alpha - 4;
if (_alpha < 0) {
m_Stat = 3;
}
}
function Run() {
if (m_Stat == 1) {
Running();
}
if (m_Stat == 2) {
Fating();
}
if (m_Stat == 3) {
var _local3 = _parent;
removeMovieClip();
_global.dollarReload(_local3, _global.playMode, _global.modeSettingId);
}
}
function Running() {
if (!m_bActive) {
return(undefined);
}
if (_x <= (_parent.m_boardTopLeftX + 16)) {
m_moveX = -m_moveX;
_x = _x + ((_parent.m_boardTopLeftX + 16) - _x);
}
if (_x >= 370) {
m_moveX = -m_moveX;
_x = _x + (370 - _x);
}
if (_y <= _parent.m_boardTopLeftY) {
m_moveY = -m_moveY;
}
if (_y >= 400) {
m_moveY = -m_moveY;
}
m_nPlayedFrameCount++;
_x = _x + m_moveX;
_y = _y - m_moveY;
var _local2 = 0;
while (_local2 < 56) {
var _local3 = _parent.m_ItemFruitArray[_local2];
if (CheckHit(_parent.m_ItemFruitArray[_local2])) {
onCollision(_parent.m_ItemFruitArray[_local2]);
dollarHitItem();
Reset();
break;
}
_local2++;
}
}
function CheckHit(mcTarget) {
if (((mcTarget == undefined) || (mcTarget.fadingOut == true)) || (mcTarget.collionActive == false)) {
return(false);
}
var _local4;
var _local3;
var _local5;
_local4 = _x - mcTarget._x;
_local3 = _y - mcTarget._y;
_local5 = 1764;
if (((_local4 * _local4) + (_local3 * _local3)) < _local5) {
return(true);
}
return(false);
}
function PrintLine(x, y, len, arc) {
_parent.Line.lineStyle(2, 16711935, 100);
var _local2 = new Object();
_parent.MovePoint._x = x;
_parent.MovePoint._y = y;
_local2.x = 0;
_local2.y = 0;
_parent.MovePoint._rotation = 0;
_parent.MovePoint.localToGlobal(_local2);
_parent.Line.moveTo(_local2.x, _local2.y);
_local2.x = len;
_local2.y = 0;
_parent.MovePoint._rotation = -arc;
_parent.MovePoint.localToGlobal(_local2);
_parent.Line.lineTo(_local2.x, _local2.y);
_parent.MovePoint._rotation = 0;
}
function Reset() {
m_bActive = false;
m_nLife = 1;
}
function getNeighbour() {
if (_parent.alignment == 1) {
if ((row % 2) == 0) {
neighborItem[0] = _parent.GetItem(row - 1, col - 1);
neighborItem[1] = _parent.GetItem(row - 1, col);
neighborItem[2] = _parent.GetItem(row, col + 1);
neighborItem[3] = _parent.GetItem(row + 1, col);
neighborItem[4] = _parent.GetItem(row + 1, col - 1);
neighborItem[5] = _parent.GetItem(row, col - 1);
} else {
neighborItem[0] = _parent.GetItem(row - 1, col);
neighborItem[1] = _parent.GetItem(row - 1, col + 1);
neighborItem[2] = _parent.GetItem(row, col + 1);
neighborItem[3] = _parent.GetItem(row + 1, col);
neighborItem[4] = _parent.GetItem(row + 1, col + 1);
neighborItem[5] = _parent.GetItem(row, col - 1);
}
} else if (_parent.alignment == 2) {
if ((row % 2) == 0) {
neighborItem[0] = _parent.GetItem(row - 1, col);
neighborItem[1] = _parent.GetItem(row - 1, col + 1);
neighborItem[2] = _parent.GetItem(row, col + 1);
neighborItem[3] = _parent.GetItem(row + 1, col);
neighborItem[4] = _parent.GetItem(row + 1, col + 1);
neighborItem[5] = _parent.GetItem(row, col - 1);
} else {
neighborItem[0] = _parent.GetItem(row - 1, col - 1);
neighborItem[1] = _parent.GetItem(row - 1, col);
neighborItem[2] = _parent.GetItem(row, col + 1);
neighborItem[3] = _parent.GetItem(row + 1, col);
neighborItem[4] = _parent.GetItem(row + 1, col - 1);
neighborItem[5] = _parent.GetItem(row, col - 1);
}
}
}
function getNeighborCount() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < NEIGHBOR_COUNT) {
if ((neighborItem[_local2] != undefined) && (neighborItem[_local2].value != undefined)) {
_local3++;
}
_local2++;
}
return(_local3);
}
function SetPosition(col, row) {
if (col < 0) {
col = 0;
}
_y = _parent.m_boardTopLeftY + (_parent.m_rowHeight * row);
if (_parent.alignment == 1) {
if ((row % 2) == 0) {
_x = (_parent.m_boardTopLeftX + (_parent.m_colWidth * col)) + (_parent.m_colWidth / 2);
} else {
_x = (_parent.m_boardTopLeftX + (_parent.m_colWidth * col)) + _parent.m_colWidth;
}
} else if ((row % 2) == 0) {
_x = (_parent.m_boardTopLeftX + (_parent.m_colWidth * col)) + _parent.m_colWidth;
} else {
_x = (_parent.m_boardTopLeftX + (_parent.m_colWidth * col)) + (_parent.m_colWidth / 2);
}
}
function SetXY(x1, y1) {
_x = x1;
_y = y1;
}
function SetPreXY() {
_x = 220;
_y = 397;
}
function setDollarVariable(playMode, modeSettingId) {
var _local2 = 0;
while (_local2 < NEIGHBOR_COUNT) {
checkItem[_local2] = true;
_local2++;
}
}
function getUncheckNeighbor() {
var _local3;
var _local2 = 0;
while (_local2 < NEIGHBOR_COUNT) {
if (((neighborItem[_local2].value != undefined) && (checkItem[_local2])) && (!neighborItem[_local2].processed)) {
checkItem[_local2] = false;
_local3 = neighborItem[_local2];
_local2 = NEIGHBOR_COUNT;
}
_local2++;
}
return(_local3);
}
function getMaxCombinaton(remainValue) {
var _local5 = 0;
var _local2 = 0;
var _local6 = 0;
var _local9 = 0;
var _local10 = getUncheckNeighbor();
while (_local10.value != undefined) {
var _local12 = _local10.value;
if (remainValue >= _local12) {
payableItem[_local5] = _local10;
_local5++;
_local2 = _local2 + _local10.value;
}
_local10 = getUncheckNeighbor();
}
if (remainValue >= _local2) {
var _local7 = 0;
while (_local7 < _local5) {
combin[_local7] = payableItem[_local7];
_local7++;
}
_local9 = _local5;
_local6 = _local2;
} else {
var _local7 = 0;
while (_local7 < _local5) {
var _local11 = payableItem[_local7];
if ((_local11.value > _local6) && (remainValue >= _local11.value)) {
combin[0] = payableItem[_local7];
_local6 = _local11.value;
_local9 = 1;
}
_local7++;
}
_local7 = 0;
while (_local7 < (_local5 - 1)) {
var _local4 = _local7 + 1;
while (_local4 < _local5) {
_local2 = payableItem[_local7].value + payableItem[_local4].value;
if (_local2 >= _local6) {
if (remainValue >= _local2) {
combin[0] = payableItem[_local7];
combin[1] = payableItem[_local4];
_local6 = _local2;
_local9 = 2;
}
}
_local4++;
}
_local7++;
}
if (_local5 == 4) {
_local7 = 0;
while (_local7 < (_local5 - 2)) {
var _local4 = _local7 + 1;
while (_local4 < (_local5 - 1)) {
var _local3 = _local4 + 1;
while (_local3 < _local5) {
_local2 = (payableItem[_local7].value + payableItem[_local4].value) + payableItem[_local3].value;
if ((remainValue >= _local2) && (_local2 >= _local6)) {
combin[0] = payableItem[_local7];
combin[1] = payableItem[_local4];
combin[2] = payableItem[_local3];
_local9 = 3;
_local6 = _local2;
}
_local3++;
}
_local4++;
}
_local7++;
}
}
}
return(_local9);
}
function buyItem(dollarType, moneyGet, neighborCount) {
var _local4 = 0;
if (dollarType == _global.DOLLARS_CASH) {
_local4 = paidByCash(dollarType, neighborCount);
} else if (dollarType == _global.DOLLARS_CREDIT_CARD) {
_local4 = paidByCreditCard(dollarType, _global.moneyLeft, neighborCount);
} else if (dollarType == _global.DOLLARS_COUPON) {
_local4 = paidByCoupon(dollarType, moneyGet, neighborCount);
}
return(_local4);
}
function paidByCash(dollarType, neighborCount) {
var _local5 = 0;
var _local6 = m_Value;
var _local4 = 0;
_local4 = getMaxCombinaton(_local6);
var _local3 = 0;
while (_local3 < _local4) {
_local5 = _local5 + combin[_local3].value;
_global.addItemStore(combin[_local3].id);
checkMakeCoupon(combin[_local3].id, _global.playMode, _global.modeSettingId);
_global.updateScoreByTimerItem(combin[_local3]);
_local3++;
}
if (_local4 > 0) {
_global.updateScoreByItemBuy(_local4);
}
updateMoneyUsage(dollarType, _local5);
return(_local4);
}
function paidByCreditCard(dollarType, moneyGet, neighborCount) {
var _local10 = 0;
var _local9 = moneyGet;
var _local11 = 0;
var _local12 = _global.dollar.maxChainCount;
_global.totalChainCount = 0;
_global.maxChainOrder = 0;
_global.maxChainValue = 0;
var _local13 = -1;
_global.neighborBonusItem = new Array();
_global.itemChain = new Array();
_global.itemChainValue = new Array();
_local13 = getItemTree(_global.dollar, _local9);
var _local4;
while (_local4 = getUncheckNeighbor() , _local4.value != undefined) {
if (_local9 >= _local4.value) {
var _local7 = _local4.value;
var _local8 = _local9 - _local4.value;
setItemChain(_local12, _local8, _local4, _local11, _local4, _local7);
_local4.processed = false;
var _local3 = 0;
while (_local3 < _global.GAMES_NEIGHBOR_COUNT) {
_local4.checkItem[_local3] = true;
_local3++;
}
}
}
_global.neighborBonusItem = getNeighborBonusItem(_global.dollar);
if (_global.maxChainOrder != 0) {
if (_global.itemTreeValue[_local13] > _global.itemChainValue[_global.maxChainOrder]) {
_global.maxChainOrder = _local13;
_global.itemChain[_global.maxChainOrder] = _global.itemTree[_local13];
_global.itemChainValue[_global.maxChainOrder] = _global.itemTreeValue[_local13];
}
if (_global.neighborBonusItem.length != 0) {
_global.itemChain[_global.maxChainOrder] = _global.itemChain[_global.maxChainOrder].concat(_global.neighborBonusItem);
}
_local10 = _global.itemChain[_global.maxChainOrder].length;
trace("buyNo" + _local10);
var _local6 = 0;
while (_local6 < _local10) {
var _local5 = _global.itemChain[_global.maxChainOrder][_local6];
_global.addItemStore(_local5.id);
checkMakeCoupon(_local5.id, _global.playMode, _global.modeSettingId);
_global.updateScoreByTimerItem(_local5);
_local6++;
}
_global.updateMoneyLeft(_global.itemChainValue[_global.maxChainOrder]);
_global.updateScoreByItemBuy(_local10);
updateMoneyUsage(dollarType, _global.itemChainValue[_global.maxChainOrder]);
}
return(_local10);
}
function paidByCoupon(dollarType, moneyGet, neighborCount) {
var _local5 = 0;
var _local6 = moneyGet;
var _local4 = 0;
_local4 = getMaxCombinaton(_local6);
var _local3 = 0;
while (_local3 < _local4) {
_local5 = _local5 + _global.dollar.combin[_local3].value;
_global.addItemStore(_global.dollar.combin[_local3].id);
checkMakeCoupon(_global.dollar.combin[_local3].id, _global.playMode, _global.modeSettingId);
_global.updateScoreByTimerItem(_global.dollar.combin[_local3]);
_local3++;
}
_global.updateScoreByItemBuy(_local4);
updateMoneyUsage(dollarType, _local5);
return(_local4);
}
function dollarHitItem() {
_global.ShowHelpFlow_HitItem();
var _local4 = 0;
getNeighbour();
var _local5 = getNeighborCount();
_local4 = buyItem(m_Type, _global.dollar.value, _local5);
_root.progressBar.updateProgressBar();
_global.nextDollar.lastDollar = _global.markLastDollar(_global.nextDollar, _global.moneyLeft + _global.bonusMoneyGet);
deleteBuyItem(_global.dollar.type, _local4);
_parent.checkMove();
_parent.newChk();
_parent.dropUnlinkItem();
_parent.setItemImage();
_global.updateGui(_root);
_global.dollar.Fate();
_global.checkStageLimit();
}
function deleteBuyItem(dollarType, itemCount) {
if (dollarType == _global.DOLLARS_CASH) {
var _local4 = 0;
while (_local4 < itemCount) {
var _local3 = combin[_local4];
var _local5 = _parent.getRequireItemIconPos(_local3);
if (_local5 != undefined) {
_local3.startMoveOut(_global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_FLY, _global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_MINI, _local5);
} else {
_local3.startFadeOut(4);
}
_local4++;
}
if (itemCount != 0) {
_global.playSoundEffect(("item" + itemCount) + "DeleteSound");
trace(_global.bHitEffect);
if (_global.bHitEffect == 1) {
_global.effetmp++;
eff = _parent.attachMovie("eff1", "eff11" + _global.effetmp, 6000 + _global.effetmp);
eff._x = _x + 35;
eff._y = _y - 70;
}
}
} else if (dollarType == _global.DOLLARS_COUPON) {
var _local4 = 0;
while (_local4 < itemCount) {
var _local3 = _global.dollar.combin[_local4];
var _local5 = _parent.getRequireItemIconPos(_local3);
if (_local5 != undefined) {
_local3.startMoveOut(_global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_FLY, _global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_MINI, _local5);
} else {
_local3.startFadeOut(4);
}
_local4++;
}
if (itemCount != 0) {
_global.playSoundEffect(("item" + itemCount) + "DeleteSound");
}
} else if (dollarType == _global.DOLLARS_CREDIT_CARD) {
deleteChain(dollarType);
}
}
function SetDollarVal(Val, Type) {
m_Value = Val;
value = Val;
m_Type = Type;
type = Type;
}
function updateMoneyUsage(dollarType, itemValue) {
_global.totalItemBuy = _global.totalItemBuy + itemValue;
_global.efficiency = Math.floor((_global.totalItemBuy * 100) / _global.budget);
if (dollarType == _global.DOLLARS_CREDIT_CARD) {
_global.eachEfficieny = 100;
} else {
_global.eachEfficieny = Math.floor((itemValue * 100) / m_Value);
}
if (_global.bGetRequiredItem) {
_global.createMessage(_parent, _global.EFFICIENCY_EXCELLENT + 1, _x, _y);
_global.bGetRequiredItem = false;
} else {
_global.createMessage(_parent, _global.eachEfficieny, _x, _y);
}
_global.Character.actionToSpendingEff(_global.eachEfficieny);
}
function checkMakeCoupon(itemId, playMode, modeSettingId) {
var _local2 = 0;
while (_local2 < _global.GAMES_MAKE_COUPON_ITEM[playMode][modeSettingId].length) {
if (itemId == _global.GAMES_MAKE_COUPON_ITEM[playMode][modeSettingId][_local2]) {
_global.makeCoupon = true;
_global.makeCouponCount++;
}
_local2++;
}
}
function onCollision(dstObj) {
var _local6 = _x;
var _local4 = _y;
var _local5 = dstObj._x;
var _local3 = dstObj._y;
if (_local6 < _local5) {
if (_local4 > (_local3 + (_parent.m_rowHeight / 2))) {
row = dstObj.row + 1;
} else if (_local4 > (_local3 - (_parent.m_rowHeight / 2))) {
row = dstObj.row;
} else {
row = dstObj.row - 1;
}
} else if (_local4 > (_local3 + (_parent.m_rowHeight / 2))) {
row = dstObj.row + 1;
} else if (_local4 > (_local3 - (_parent.m_rowHeight / 2))) {
row = dstObj.row;
} else {
row = dstObj.row - 1;
}
if (row != dstObj.row) {
if (_local6 < _local5) {
if (_parent.alignment == 1) {
if ((row % 2) == 0) {
col = dstObj.col;
} else {
col = dstObj.col - 1;
}
} else if ((row % 2) == 0) {
col = dstObj.col - 1;
} else {
col = dstObj.col;
}
} else if (_parent.alignment == 1) {
if ((row % 2) == 0) {
col = dstObj.col + 1;
} else {
col = dstObj.col;
}
} else if ((row % 2) == 0) {
col = dstObj.col;
} else {
col = dstObj.col + 1;
}
} else if (_local6 < _local5) {
col = dstObj.col - 1;
} else {
col = dstObj.col + 1;
}
SetPosition(col, row);
}
function getNeighborBonusItem(srcObj) {
var _local4 = new Array();
var _local3 = 0;
while (_local3 < _global.GAMES_NEIGHBOR_COUNT) {
var _local2 = srcObj.neighborItem[_local3];
if (_local2.timerItem) {
trace("getNeighborBonusItem" + _local2);
_local4[_local4.length] = _local2;
}
_local3++;
}
return(_local4);
}
function getItemTree(srcObj, remainValue) {
var _local7 = -1;
var _local6 = 0;
_global.itemTree = new Array();
_global.itemTreeValue = new Array();
var _local2 = 0;
while (_local2 < _global.GAMES_NEIGHBOR_COUNT) {
_global.itemTree[_local2] = new Array();
var _local3 = srcObj.neighborItem[_local2];
_global.itemTreeValue[_local2] = 0;
if (_local3.value != undefined) {
_global.itemTree[_local2][0] = _local3;
var _local5 = _local3.neighborItem[(_local2 + 5) % _global.GAMES_NEIGHBOR_COUNT];
var _local4 = _local3.neighborItem[(_local2 + 1) % _global.GAMES_NEIGHBOR_COUNT];
_global.itemTreeValue[_local2] = _local3.value;
if (_local5.value != undefined) {
_global.itemTree[_local2][_global.itemTree[_local2].length] = _local5;
_global.itemTreeValue[_local2] = _global.itemTreeValue[_local2] + _local5.value;
}
if (_local4.value != undefined) {
_global.itemTree[_local2][_global.itemTree[_local2].length] = _local4;
_global.itemTreeValue[_local2] = _global.itemTreeValue[_local2] + _local4.value;
}
if ((_global.itemTreeValue[_local2] < remainValue) && (_global.itemTreeValue[_local2] > _local6)) {
_local7 = _local2;
_local6 = _global.itemTreeValue[_local2];
}
}
_local2++;
}
return(_local7);
}
function setItemChain(maxChainCount, remainValue, item, chainCount, parentItem, parentValue) {
item.processed = true;
var _local3 = item;
chainCount++;
if (chainCount < maxChainCount) {
var _local8;
while (_local8 = _local3.getUncheckNeighbor() , _local8.value != undefined) {
var _local4 = new Array();
var _local5 = 0;
var _local7 = remainValue - _local8.value;
if (_local7 > 0) {
if (chainCount == 1) {
_local4[_local4.length] = _local3;
_local5 = _local3.value;
} else {
_local4 = _local4.concat(parentItem);
_local4 = _local4.concat(_local3);
_local5 = parentValue + _local3.value;
}
setItemChain(maxChainCount, _local7, _local8, chainCount, _local4, _local5);
} else {
_global.totalChainCount++;
_global.itemChain[_global.totalChainCount] = new Array();
_global.itemChain[_global.totalChainCount] = _global.itemChain[_global.totalChainCount].concat(parentItem);
_global.itemChain[_global.totalChainCount] = _global.itemChain[_global.totalChainCount].concat(_local3);
_global.itemChainValue[_global.totalChainCount] = parentValue + _local3.value;
if (_global.itemChainValue[_global.totalChainCount] > _global.maxChainValue) {
_global.maxChainValue = _global.itemChainValue[_global.totalChainCount];
_global.maxChainOrder = _global.totalChainCount;
}
}
}
_local3.processed = false;
var _local6 = 0;
while (_local6 < _global.GAMES_NEIGHBOR_COUNT) {
_local3.checkItem[_local6] = true;
_local6++;
}
} else if (chainCount == maxChainCount) {
_global.totalChainCount++;
_local3.processed = false;
_global.itemChain[_global.totalChainCount] = new Array();
_global.itemChain[_global.totalChainCount] = _global.itemChain[_global.totalChainCount].concat(parentItem);
_global.itemChain[_global.totalChainCount] = _global.itemChain[_global.totalChainCount].concat(_local3);
_global.itemChainValue[_global.totalChainCount] = parentValue + _local3.value;
if (_global.itemChainValue[_global.totalChainCount] > _global.maxChainValue) {
_global.maxChainValue = _global.itemChainValue[_global.totalChainCount];
_global.maxChainOrder = _global.totalChainCount;
}
}
return(item);
}
function deleteChain(dollarType) {
var _local6 = _global.itemChain[_global.maxChainOrder].length;
var _local4 = 1;
while (_local4 <= _local6) {
var _local3 = _global.itemChain[_global.maxChainOrder][_local4 - 1];
trace(_local3);
_local3.fadingOut = true;
_local3.fadeToDie = true;
var _local5 = _parent.getRequireItemIconPos(_local3);
if (_local4 != _local6) {
if (_local5 != undefined) {
_local3.startMoveOut(_global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_FLY, _global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_MINI, _local5);
} else {
_local3.startFadeOut(4);
}
} else {
DeleteLastChainItem(_local3);
}
_local4++;
}
if (_local6 != 0) {
_global.playSoundEffect(("item" + _local6) + "DeleteSound");
}
}
function DeleteLastChainItem(targetItem) {
var _local3 = _parent.getRequireItemIconPos(targetItem);
if (_local3 != undefined) {
targetItem.startMoveOut(_global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_FLY, _global.ITEMS_DISAPPEAR_EFFECT_SPEED_OF_MINI, _local3);
} else {
targetItem.startFadeOut(4);
}
if (_global.dollar != undefined) {
if (_global.dollar.clean) {
_global.startShoot = true;
}
}
}
}
Symbol 574 MovieClip [__Packages.CCharacter] Frame 0
class CCharacter extends MovieClip
{
var normal, happy, busy, cry, gameOver, scare, think, scaryTimeLeft, scaryMoneyLeft, bScared, busyTimeLeft, busyMoneyLeft, bBusied, stop, gotoAndPlay;
function CCharacter () {
super();
normal = _global.CHAR_ANIMATION_NORMAL;
happy = _global.CHAR_ANIMATION_HAPPY;
busy = _global.CHAR_ANIMATION_BUSY;
cry = _global.CHAR_ANIMATION_CRY;
gameOver = _global.CHAR_ANIMATION_GAMEOVER;
scare = _global.CHAR_ANIMATION_SCARE;
think = _global.CHAR_ANIMATION_THINK;
scaryTimeLeft = (_global.timeLimit * _global.CHAR_SCARE_TIME) / 100;
scaryMoneyLeft = (_global.budget * _global.CHAR_SCARE_MONEY) / 100;
bScared = false;
busyTimeLeft = (_global.timeLimit * _global.CHAR_BUSY_TIME) / 100;
busyMoneyLeft = (_global.budget * _global.CHAR_BUSY_MONEY) / 100;
bBusied = false;
stop();
}
function playAnimation(animation, autoRestore) {
(gotoAndPlay(animation));// not popped
}
function actionToSpendingEff(efficieny) {
if (efficieny > _global.EFFICIENCY_EXCELLENT) {
playAnimation(happy, false);
} else if (efficieny < _global.EFFICIENCY_POOR) {
playAnimation(cry, false);
}
}
}
Symbol 575 MovieClip [__Packages.progressBar] Frame 0
class progressBar extends MovieClip
{
var progress, fullProgress, passProgress, intervalNo, progressInterval, intervalCount, indicator, progressCol, repeatNum;
function progressBar () {
super();
progress = 0;
if (_global.playMode == _global.GAMES_COLLECTION_MODE) {
fullProgress = 0;
passProgress = 0;
var _local4 = 0;
while (_local4 < _global.reqTypeNum) {
fullProgress = fullProgress + _global.requireNum[_local4];
_local4++;
}
passProgress = _global.allRequireTypeNum * (_global.collectPassPercent / 100);
} else if (_global.playMode == _global.GAMES_BUY_GIFT_MODE) {
} else if (_global.playMode == _global.GAMES_NORMAL_MODE) {
fullProgress = _global.GAMES_BUDGET[_global.playMode][_global.modeSettingId];
passProgress = _global.GAMES_TARGET_VALUE[_global.playMode][_global.modeSettingId];
} else if (_global.playMode == _global.GAMES_SMART_BUYER_MODE) {
fullProgress = 0;
passProgress = 0;
var _local4 = 0;
while (_local4 < _global.reqTypeNum) {
fullProgress = fullProgress + _global.requireNum[_local4];
passProgress = passProgress + _global.requireNum[_local4];
_local4++;
}
} else if (_global.playMode == _global.GAMES_EFFICIENT_MODE) {
fullProgress = 100;
_global.playMode;
passProgress = _global.GAMES_EFFICIENT_PASS_VALUE[_global.modeSettingId];
}
intervalNo = _global.PROGRESS_BAR_INTERVAL_NUM;
progressInterval = fullProgress / intervalNo;
intervalCount = 0;
trace("progressInterval:" + progressInterval);
if (_global.GUI_PROGRESS_BAR_VISIBLE[_global.playMode]) {
}
indicator._y = ((-(passProgress / fullProgress)) * 190) - 60;
if (progress == 0) {
progressCol._visible = false;
} else {
progressCol._visible = true;
}
}
function updateProgressBar() {
if (_global.playMode == _global.GAMES_COLLECTION_MODE) {
progress = _global.allRequiredTypeGet;
} else if (_global.playMode == _global.GAMES_BUY_GIFT_MODE) {
var _local3 = 0;
while (_local3 < (repeatNum * 4)) {
_local3++;
}
} else if (_global.playMode == _global.GAMES_NORMAL_MODE) {
progress = _global.totalItemBuy;
} else if (_global.playMode == _global.GAMES_SMART_BUYER_MODE) {
progress = _global.allRequiredTypeGet;
} else if (_global.playMode == _global.GAMES_EFFICIENT_MODE) {
progress = _global.efficiency;
}
progressCol._height = (progress / fullProgress) * 190;
progressCol._y = -48 - progressCol._height;
if (progress == 0) {
progressCol._visible = false;
} else {
progressCol._visible = true;
}
if (progressCol._height > 20) {
_global.ShowHelpFlow_HitTarget();
}
}
}
Symbol 576 MovieClip [__Packages.CLauncher] Frame 0
class CLauncher extends CSprite
{
var _x, _parent, _y, m_MinArc, m_MaxArc, m_bActive, onMouseMove, onKeyDown;
function CLauncher () {
super();
_parent.AimPoint._x = _x;
_parent.AimPoint._y = _y;
m_MinArc = 10;
m_MaxArc = 170;
m_bActive = true;
Key.addListener(this);
onMouseMove = function () {
if (!this.m_bActive) {
return(undefined);
}
if (!this.CheckB()) {
return(false);
}
var _local5 = new Object();
_local5.x = _root._xmouse;
_local5.y = _root._ymouse;
this._parent.AimPoint.globalToLocal(_local5);
var _local4 = this.GetArc(_local5.x, _local5.y);
if ((_local4 < 10) || (_local4 > 270)) {
_local4 = 10;
}
if (_local4 > 170) {
_local4 = 170;
}
this._rotation = 90 - _local4;
_global.targetLine.update();
};
onKeyDown = function () {
if (!this.m_bActive) {
return(undefined);
}
if (!this.CheckB()) {
return(undefined);
}
switch (Key.getCode()) {
case 39 :
this._rotation = this._rotation + 4;
break;
case 37 :
this._rotation = this._rotation - 4;
break;
case 32 :
case 13 :
case 38 :
if (!this.CheckB()) {
return(undefined);
}
if (this._parent.main.m_Ball.m_bActive) {
break;
}
this._parent.Ball.Fire(90 - this._rotation);
}
};
}
function CheckB() {
if (0 > _parent._xmouse) {
return(false);
}
if (_parent._width < _parent._xmouse) {
return(false);
}
if (0 > _parent._ymouse) {
return(false);
}
if (_parent._height < _parent._ymouse) {
return(false);
}
return(true);
}
}
Symbol 577 MovieClip [__Packages.CItemBoard] Frame 0
class CItemBoard extends MovieClip
{
var m_bActive, m_ItemArray, m_DollarArray, m_NumberArray, m_ItemFruitArray, m_FruitArray, m_BallArray, m_StarStayArray, m_StarShakeArray, m_nIndex, m_Row, m_Col, rowNum, colNum, m_boardTopLeftX, m_boardTopLeftY, m_rowHeight, m_colWidth, alignment, DollarNum, m_nPlayedFrameCount, onEnterFrame, onMouseUp, _xmouse, _width, _ymouse, _height, m_FiringDollar, m_PreFireDollar, m_PrePreFireDollar, AimPoint, BMoneyItemCount, BScoreItemCount, BTimeItemCount, couponItemCount, i, maxBMItemCount, m_MainItem, attachMovie, shaking, shakeCount;
function CItemBoard () {
super();
var _local6;
var _local5;
_local6 = 1;
_local5 = 1;
m_bActive = true;
m_ItemArray = new Array();
m_DollarArray = new Array();
m_NumberArray = new Array();
m_ItemFruitArray = new Array();
m_FruitArray = new Array();
m_BallArray = new Array();
m_StarStayArray = new Array();
m_StarShakeArray = new Array();
m_nIndex = 0;
m_Row = 7;
m_Col = 8;
rowNum = 7;
colNum = 8;
m_boardTopLeftX = 22;
m_boardTopLeftY = 45;
m_rowHeight = 38;
m_colWidth = 42;
alignment = 1;
DollarNum = 3000;
m_nPlayedFrameCount = 0;
onEnterFrame = function () {
if (!this.m_bActive) {
return(undefined);
}
this.m_nPlayedFrameCount++;
if ((this.m_nPlayedFrameCount % 500) == 0) {
if (_root.TimeLeft._width > 0) {
_root.TimeLeft._width--;
}
}
};
onMouseUp = function () {
if (!this.CheckB()) {
return(undefined);
}
if (_global.ReleaseHelpFlow == 1) {
if (_global.HelpFlowStatus == 3) {
_global.ShowHelpFlow_HitPenaltyEnd();
}
if (_global.HelpFlowStatus == 2) {
_global.ShowHelpFlow_HitTargetEnd();
}
if (_global.HelpFlowStatus == 1) {
_global.ShowHelpFlow_HitItemEnd();
}
if (_global.HelpFlowStatus == 0) {
_global.ShowHelpFlow_StartEnd();
}
return(undefined);
}
if ((_global.curGameState == _global.GAMES_GAME_STATE_PLAYING) && (!_global.gamePaused)) {
if (_global.startShoot) {
_global.shootEnable(false);
_global.dollar.clean = false;
if (_global.targetLine.show) {
_global.targetLine.hideLine();
}
_global.dollar.Fire(90 - this.launcher._rotation);
}
if (_global.dollar.stop) {
_global.dollar.stop = false;
}
}
};
}
function CheckB() {
if (0 > _xmouse) {
return(false);
}
if (_width < _xmouse) {
return(false);
}
if (0 > _ymouse) {
return(false);
}
if (_height < _ymouse) {
return(false);
}
return(true);
}
function RunStop() {
}
function RunContinue() {
}
function GetItem(y, x) {
if (((x < 0) || (y < 0)) || (x > 7)) {
return(undefined);
}
var _local2 = (y * 8) + x;
return(m_ItemFruitArray[_local2]);
}
function AfterFire() {
m_FiringDollar = m_PreFireDollar;
m_PreFireDollar = m_PrePreFireDollar;
m_PreFireDollar._x = AimPoint._x;
m_PreFireDollar._y = AimPoint._y;
m_PrePreFireDollar = _global.createDollar(this, _global.playMode, _global.modeSettingId);
m_PrePreFireDollar._x = 190;
m_PrePreFireDollar._y = 510;
_global.updateMoneyLeft(m_FiringDollar.m_Value);
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function moveItem() {
BMoneyItemCount = 0;
BScoreItemCount = 0;
BTimeItemCount = 0;
couponItemCount = 0;
var _local4 = rowNum - 1;
while (_local4 > -1) {
var _local7 = colNum - 1;
while (_local7 > -1) {
var _local3 = (_local4 * 8) + _local7;
if (_local4 == (rowNum - 1)) {
m_ItemFruitArray[_local3].removeMovieClip();
m_ItemFruitArray[_local3] = undefined;
m_ItemFruitArray[_local3].fadeToDie = undefined;
} else {
if (m_ItemFruitArray[_local3].fadeToDie != undefined) {
var _local6 = m_ItemFruitArray[_local3].id;
if (m_ItemFruitArray[_local3].countingDown) {
if (_global.ITEMS_ITEM[_local6].ADD_MONEY) {
BMoneyItemCount++;
} else if (_global.ITEMS_ITEM[_local6].ADD_SCORE) {
BScoreItemCount++;
} else if (_global.ITEMS_ITEM[_local6].ADD_TIME) {
BTimeItemCount++;
}
} else if (checkItemMakeCoupon(_local6, _global.playMode, _global.modeSettingId)) {
couponItemCount++;
}
}
var _local5 = ((_local4 + 1) * 8) + _local7;
m_ItemFruitArray[_local3]._y = m_boardTopLeftY + (m_rowHeight * (_local4 + 1));
m_ItemFruitArray[_local5] = m_ItemFruitArray[_local3];
m_ItemFruitArray[_local5].row = _local4 + 1;
}
_local7--;
}
_local4--;
}
var _local7 = colNum - 1;
while (_local7 > -1) {
var _local6 = createNewItem(0, _local7, false, BMoneyItemCount, BScoreItemCount, BTimeItemCount, couponItemCount);
if (_global.ITEMS_ITEM[_local6].ADD_MONEY) {
BMoneyItemCount++;
} else if (_global.ITEMS_ITEM[_local6].ADD_SCORE) {
BScoreItemCount++;
} else if (_global.ITEMS_ITEM[_local6].ADD_TIME) {
BTimeItemCount++;
} else if (checkItemMakeCoupon(_local6, _global.playMode, _global.modeSettingId)) {
couponItemCount++;
}
_local7--;
}
}
function moveDownOneRow() {
alterAlignment();
moveItem();
_global.makeNewRow = false;
_global.dollarReload(this, _global.playMode, _global.modeSettingId);
setItemImage();
}
function DeleteOneRow() {
i = 0;
while (i < m_Col) {
var _local2 = ((m_Row - 1) * 8) + i;
m_ItemFruitArray[_local2].removeMovieClip();
i++;
}
}
function alterAlignment() {
if (alignment == 1) {
alignment = 2;
} else if (alignment == 2) {
alignment = 1;
}
}
function RandomItem() {
var _local3 = 0;
var _local4 = random(100);
var _local2 = 0;
while (_local4 >= _local3) {
_local3 = _local3 + _global.ITEMS_ITEM[_global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId][_local2]].FREQUENCY[_global.playMode][_global.modeSettingId];
_local2++;
}
_local2--;
return(_local2);
}
function RandomDollar() {
var _local3 = 0;
var _local4 = random(100);
var _local2 = 0;
while (_local4 >= _local3) {
_local3 = _local3 + _global.DOLLARS_DOLLAR[_global.GAMES_DOLLAR_USE[_global.playMode][_global.modeSettingId][_local2]].FREQUENCY[_global.playMode][_global.modeSettingId];
_local2++;
}
_local2--;
return(_local2);
}
function createAllItem(playMode, modeSettingId) {
genAll(playMode, modeSettingId);
setItemNeighbor();
setItemImage();
if (alignment == 1) {
_global.startCol = -Math.ceil(rowNum / 2);
} else {
_global.startCol = -Math.floor(rowNum / 2);
}
}
function genAll(playMode, modeSettingId) {
maxBMItemCount = _global.maxBMoneyItemCount;
BMoneyItemCount = 0;
BScoreItemCount = 0;
BTimeItemCount = 0;
couponItemCount = 0;
var _local4;
var _local5 = 0;
while (_local5 < m_Row) {
var _local3 = 0;
while (_local3 < m_Col) {
if (_local5 > (_global.GAMES_FIRST_GEN_END_ROW - 1)) {
var _local6;
_local6 = (_local5 * m_Col) + _local3;
m_ItemFruitArray[_local6] = undefined;
} else {
_local4 = createNewItem(_local5, _local3, true, BMoneyItemCount, BScoreItemCount, BTimeItemCount, couponItemCount);
if (_global.ITEMS_ITEM[_local4].ADD_MONEY) {
BMoneyItemCount++;
} else if (_global.ITEMS_ITEM[_local4].ADD_SCORE) {
BScoreItemCount++;
} else if (_global.ITEMS_ITEM[_local4].ADD_TIME) {
BTimeItemCount++;
} else if (checkItemMakeCoupon(_local4, _global.playMode, _global.modeSettingId)) {
couponItemCount++;
}
}
_local3++;
}
_local5++;
}
}
function createNewItem(row1, col1, bFirstCreate, BMoneyItemCount1, BScoreItemCount1, BTimeItemCount1, couponItemCount) {
var _local4 = _global.getIndexByFreqArr(_global.itemAppearRate);
var _local3 = _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId][_local4];
if (bFirstCreate) {
var _local5 = 0;
while ((_global.itemInitialNumberArr[_local3] < 0) && (_local5 < 10)) {
_local5++;
_local4 = _global.getIndexByFreqArr(_global.itemAppearRate);
_local3 = _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId][_local4];
if (_local5 > 7) {
trace("danger danger danger danger danger danger " + _local3);
}
}
_global.itemInitialNumberArr[_local3]--;
}
if (_global.ITEMS_ITEM[_local3].ADD_MONEY) {
if (BMoneyItemCount1 == _global.maxBMoneyItemCount) {
while ((_global.ITEMS_ITEM[_local3].ADD_MONEY || (_global.ITEMS_ITEM[_local3].ADD_SCORE)) || (_global.ITEMS_ITEM[_local3].ADD_TIME)) {
_local4 = _global.getIndexByFreqArr(_global.itemAppearRate);
_local3 = _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId][_local4];
}
}
} else if (_global.ITEMS_ITEM[_local3].ADD_SCORE) {
if (BScoreItemCount1 == _global.maxBScoreItemCount) {
while ((_global.ITEMS_ITEM[_local3].ADD_MONEY || (_global.ITEMS_ITEM[_local3].ADD_SCORE)) || (_global.ITEMS_ITEM[_local3].ADD_TIME)) {
_local4 = _global.getIndexByFreqArr(_global.itemAppearRate);
_local3 = _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId][_local4];
}
}
} else if (_global.ITEMS_ITEM[_local3].ADD_TIME) {
if (BTimeItemCount1 == _global.maxBTimeItemCount) {
while ((_global.ITEMS_ITEM[_local3].ADD_MONEY || (_global.ITEMS_ITEM[_local3].ADD_SCORE)) || (_global.ITEMS_ITEM[_local3].ADD_TIME)) {
_local4 = _global.getIndexByFreqArr(_global.itemAppearRate);
_local3 = _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId][_local4];
}
}
} else if (checkItemMakeCoupon(_local3, _global.playMode, _global.modeSettingId)) {
if (couponItemCount == _global.maxCouponItemCount) {
while (((checkItemMakeCoupon(_local3, _global.playMode, _global.modeSettingId) || (_global.ITEMS_ITEM[_local3].ADD_MONEY)) || (_global.ITEMS_ITEM[_local3].ADD_SCORE)) || (_global.ITEMS_ITEM[_local3].ADD_TIME)) {
_local4 = _global.getIndexByFreqArr(_global.itemAppearRate);
_local3 = _global.GAMES_ITEM_USE[_global.playMode][_global.modeSettingId][_local4];
}
}
}
m_TotalAddNum++;
m_MainItem = attachMovie("MainItem", "ball11" + m_TotalAddNum, 2000 + m_TotalAddNum);
var _local6 = (row1 * 8) + col1;
m_MainItem.setItemProperty(_local3, _global.playMode, _global.modeSettingId);
m_MainItem.setItemPosition(row1, col1);
m_ItemFruitArray[_local6] = m_MainItem;
return(_local3);
}
function checkItemMakeCoupon(itemId, playMode, modeSettingId) {
var _local5 = false;
var _local2 = 0;
while (_local2 < _global.GAMES_MAKE_COUPON_ITEM[playMode][modeSettingId].length) {
if (itemId == _global.GAMES_MAKE_COUPON_ITEM[playMode][modeSettingId][_local2]) {
_local5 = true;
}
_local2++;
}
return(_local5);
}
function checkMove() {
var _local3 = getItemCount();
if (_local3 < _global.GAMES_LEAST_ITEM_EXISIT_NUM) {
_global.makeNewRow = true;
}
}
function getItemCount() {
var _local5 = 0;
var _local4 = colNum - 1;
while (_local4 > -1) {
var _local2 = rowNum - 1;
while (_local2 > -1) {
var _local3 = (_local2 * 8) + _local4;
if ((m_ItemFruitArray[_local3].fadingOut != undefined) && (!m_ItemFruitArray[_local3].fadingOut)) {
_local5++;
}
_local2--;
}
_local4--;
}
return(_local5);
}
function chkItem(item) {
item.getNeighbour();
var _local2 = 0;
while (_local2 < 6) {
if (item.neighborItem[_local2] != undefined) {
if ((!item.neighborItem[_local2].safe) && (!item.neighborItem[_local2].fadeToDie)) {
item.neighborItem[_local2].safe = true;
chkItem(item.neighborItem[_local2]);
}
}
_local2++;
}
}
function markItem() {
var _local2 = newline;
var _local5 = 0;
while (_local5 < rowNum) {
_local2 = (_local2 + _local5) + " :";
var _local4 = 0;
while (_local4 < colNum) {
var _local3 = (_local5 * rowNum) + _local4;
if ((m_ItemFruitArray[_local3].fadeTodie != undefined) && (!m_ItemFruitArray[_local3].fadeTodie)) {
if (m_ItemFruitArray[_local3].safe) {
_local2 = _local2 + "1";
} else {
_local2 = _local2 + "0";
}
} else {
_local2 = _local2 + "x";
}
_local4++;
}
_local2 = _local2 + newline;
_local5++;
}
trace(_local2);
}
function newChk() {
var _local3 = 0;
while (_local3 < rowNum) {
var _local4 = 0;
while (_local4 < colNum) {
var _local2 = (_local3 * colNum) + _local4;
if (m_ItemFruitArray[_local2] != undefined) {
if (_local3 == 0) {
m_ItemFruitArray[_local2].safe = true;
} else {
m_ItemFruitArray[_local2].safe = false;
}
}
_local4++;
}
_local3++;
}
var _local4 = 0;
while (_local4 < colNum) {
if (m_ItemFruitArray[_local4] != undefined) {
if (!m_ItemFruitArray[_local4].fadeToDie) {
chkItem(m_ItemFruitArray[_local4]);
}
}
_local4++;
}
}
function dropUnlinkItem() {
var _local5 = 0;
while (_local5 < rowNum) {
var _local4 = 0;
while (_local4 < colNum) {
var _local3 = (_local5 * colNum) + _local4;
if ((m_ItemFruitArray[_local3].fadeToDie != undefined) && (!m_ItemFruitArray[_local3].fadeToDie)) {
if (!m_ItemFruitArray[_local3].safe) {
_global.ShowHelpFlow_HitPenalty();
m_ItemFruitArray[_local3].setLinearVelocity(0, -2);
m_ItemFruitArray[_local3].startFadeOut(1);
}
}
_local4++;
}
_local5++;
}
}
function handleCountDown() {
var _local5 = colNum - 1;
while (_local5 > -1) {
var _local3 = rowNum - 1;
while (_local3 > -1) {
var _local4 = (_local3 * colNum) + _local5;
var _local2 = m_ItemFruitArray[_local4];
if ((_local2.countingDown && (_local2.timerItem)) && (!_local2.fadeToDie)) {
_local2.countDown();
}
_local3--;
}
_local5--;
}
}
function setItemNeighbor() {
var _local4 = rowNum - 1;
while (_local4 > -1) {
var _local3 = colNum - 1;
while (_local3 > -1) {
var _local5 = (_local4 * colNum) + _local3;
var _local2 = m_ItemFruitArray[_local5];
if ((_local2 != undefined) && (!_local2.fadingOut)) {
_local2.getNeighbour();
}
_local3--;
}
_local4--;
}
}
function setItemImage() {
var _local6 = rowNum - 1;
while (_local6 > -1) {
var _local3 = colNum - 1;
while (_local3 > -1) {
var _local9 = (_local6 * colNum) + _local3;
var _local2 = m_ItemFruitArray[_local9];
if ((_local2.value != undefined) && (!_local2.fadingOut)) {
var _local8 = getImageType(_local6, _local3);
var _local7;
var _local4;
var _local5;
if (_local8 == "B") {
_local7 = 50;
_local4 = false;
_local5 = true;
} else if (_local8 == "A") {
_local7 = 100;
_local4 = true;
_local5 = false;
}
_local2.surrounded = _local5;
_local2._alpha = _local7;
if (_local2.timerItem) {
if (_local2.countingDown) {
}
}
_local2.collionActive = _local4;
}
_local3--;
}
_local6--;
}
}
function getImageType(row, col) {
var _local4 = "B";
if (alignment == 2) {
if ((col % colNum) == 0) {
if ((row % 2) == 0) {
if (row == 0) {
if ((((((GetItem(row, col + 1).value == undefined) || (GetItem(row, col + 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) || (GetItem(row + 1, col + 1).value == undefined)) || (GetItem(row + 1, col + 1).fadingOut)) {
_local4 = "A";
}
} else if ((((((((((GetItem(row - 1, col).value == undefined) || (GetItem(row - 1, col).fadingOut)) || (GetItem(row - 1, col + 1).value == undefined)) || (GetItem(row - 1, col + 1).fadingOut)) || (GetItem(row, col + 1).value == undefined)) || (GetItem(row, col + 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) || (GetItem(row + 1, col + 1).value == undefined)) || (GetItem(row + 1, col + 1).fadingOut)) {
_local4 = "A";
}
} else if ((((((GetItem(row - 1, col).value == undefined) || (GetItem(row - 1, col).fadingOut)) || (GetItem(row, col + 1).value == undefined)) || (GetItem(row, col + 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) {
_local4 = "A";
}
} else if (((col + 1) % colNum) == 0) {
if ((row % 2) == 0) {
if (row == 0) {
if ((((GetItem(row, col - 1).value == undefined) || (GetItem(row, col - 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) {
_local4 = "A";
}
} else if ((((((GetItem(row - 1, col).value == undefined) || (GetItem(row - 1, col).fadingOut)) || (GetItem(row, col - 1).value == undefined)) || (GetItem(row, col - 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) {
_local4 = "A";
}
} else if ((((((((((GetItem(row - 1, col - 1).value == undefined) || (GetItem(row - 1, col - 1).fadingOut)) || (GetItem(row - 1, col).value == undefined)) || (GetItem(row - 1, col).fadingOut)) || (GetItem(row, col - 1).value == undefined)) || (GetItem(row, col - 1).fadingOut)) || (GetItem(row + 1, col - 1).value == undefined)) || (GetItem(row + 1, col - 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) {
_local4 = "A";
}
} else if (row == 0) {
if ((((((((GetItem(row + 1, col).value == undefined) || (GetItem(row + 1, col).fadingOut)) || (GetItem(row + 1, col + 1).value == undefined)) || (GetItem(row + 1, col + 1).fadingOut)) || (GetItem(row, col + 1).value == undefined)) || (GetItem(row, col + 1).fadingOut)) || (GetItem(row, col - 1).value == undefined)) || (GetItem(row, col - 1).fadingOut)) {
_local4 = "A";
}
} else if ((row % 2) == 0) {
if ((((((((((((GetItem(row + 1, col).value == undefined) || (GetItem(row + 1, col).fadingOut)) || (GetItem(row + 1, col + 1).value == undefined)) || (GetItem(row + 1, col + 1).fadingOut)) || (GetItem(row, col + 1).value == undefined)) || (GetItem(row, col + 1).fadingOut)) || (GetItem(row, col - 1).value == undefined)) || (GetItem(row, col - 1).fadingOut)) || (GetItem(row - 1, col).value == undefined)) || (GetItem(row - 1, col).fadingOut)) || (GetItem(row - 1, col + 1).value == undefined)) || (GetItem(row - 1, col + 1).fadingOut)) {
_local4 = "A";
}
} else if ((((((((((((GetItem(row + 1, col).value == undefined) || (GetItem(row + 1, col).fadingOut)) || (GetItem(row + 1, col - 1).value == undefined)) || (GetItem(row + 1, col - 1).fadingOut)) || (GetItem(row, col + 1).value == undefined)) || (GetItem(row, col + 1).fadingOut)) || (GetItem(row, col - 1).value == undefined)) || (GetItem(row, col - 1).fadingOut)) || (GetItem(row - 1, col).value == undefined)) || (GetItem(row - 1, col).fadingOut)) || (GetItem(row - 1, col - 1).value == undefined)) || (GetItem(row - 1, col - 1).fadingOut)) {
_local4 = "A";
}
} else if (alignment == 1) {
if ((col % colNum) == 0) {
if ((row % 2) == 0) {
if (row == 0) {
if ((((GetItem(row, col + 1).value == undefined) || (GetItem(row, col + 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) {
_local4 = "A";
}
} else if ((((((GetItem(row - 1, col).value == undefined) || (GetItem(row - 1, col).fadingOut)) || (GetItem(row, col + 1).value == undefined)) || (GetItem(row, col + 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) {
_local4 = "A";
}
} else if ((((((((((GetItem(row - 1, col).value == undefined) || (GetItem(row - 1, col).fadingOut)) || (GetItem(row - 1, col + 1).value == undefined)) || (GetItem(row - 1, col + 1).fadingOut)) || (GetItem(row, col + 1).value == undefined)) || (GetItem(row, col + 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) || (GetItem(row + 1, col + 1).value == undefined)) || (GetItem(row + 1, col + 1).fadingOut)) {
_local4 = "A";
}
} else if (((col + 1) % colNum) == 0) {
if ((row % 2) == 0) {
if (row == 0) {
if ((((((GetItem(row, col - 1).value == undefined) || (GetItem(row, col - 1).fadingOut)) || (GetItem(row + 1, col - 1).value == undefined)) || (GetItem(row + 1, col - 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) {
_local4 = "A";
}
} else if ((((((((((GetItem(row - 1, col - 1).value == undefined) || (GetItem(row - 1, col - 1).fadingOut)) || (GetItem(row - 1, col).value == undefined)) || (GetItem(row - 1, col).fadingOut)) || (GetItem(row, col - 1).value == undefined)) || (GetItem(row, col - 1).fadingOut)) || (GetItem(row + 1, col - 1).value == undefined)) || (GetItem(row + 1, col - 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) {
_local4 = "A";
}
} else if ((((((GetItem(row - 1, col).value == undefined) || (GetItem(row - 1, col).fadingOut)) || (GetItem(row, col - 1).value == undefined)) || (GetItem(row, col - 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) {
_local4 = "A";
}
} else if (row == 0) {
if ((((((((GetItem(row + 1, col).value == undefined) || (GetItem(row + 1, col).fadingOut)) || (GetItem(row + 1, col - 1).value == undefined)) || (GetItem(row + 1, col - 1).fadingOut)) || (GetItem(row, col + 1).value == undefined)) || (GetItem(row, col + 1).fadingOut)) || (GetItem(row, col - 1).value == undefined)) || (GetItem(row, col - 1).fadingOut)) {
_local4 = "A";
}
} else if ((row % 2) == 0) {
if ((((((((((((GetItem(row + 1, col - 1).value == undefined) || (GetItem(row + 1, col - 1).fadingOut)) || (GetItem(row + 1, col).value == undefined)) || (GetItem(row + 1, col).fadingOut)) || (GetItem(row, col + 1).value == undefined)) || (GetItem(row, col + 1).fadingOut)) || (GetItem(row, col - 1).value == undefined)) || (GetItem(row, col - 1).fadingOut)) || (GetItem(row - 1, col - 1).value == undefined)) || (GetItem(row - 1, col - 1).fadingOut)) || (GetItem(row - 1, col).value == undefined)) || (GetItem(row - 1, col).fadingOut)) {
_local4 = "A";
}
} else if ((((((((((((GetItem(row + 1, col).value == undefined) || (GetItem(row + 1, col).fadingOut)) || (GetItem(row + 1, col + 1).value == undefined)) || (GetItem(row + 1, col + 1).fadingOut)) || (GetItem(row, col + 1).value == undefined)) || (GetItem(row, col + 1).fadingOut)) || (GetItem(row, col - 1).value == undefined)) || (GetItem(row, col - 1).fadingOut)) || (GetItem(row - 1, col).value == undefined)) || (GetItem(row - 1, col).fadingOut)) || (GetItem(row - 1, col + 1).value == undefined)) || (GetItem(row - 1, col + 1).fadingOut)) {
_local4 = "A";
}
}
return(_local4);
}
function startShake() {
shaking = true;
shakeCount = 0;
_global.playSoundEffect("itemVibrateSound");
var _local6 = colNum - 1;
while (_local6 > -1) {
var _local4 = rowNum - 1;
while (_local4 > -1) {
var _local5 = (_local4 * colNum) + _local6;
var _local3 = m_ItemFruitArray[_local5];
if ((_local3.fadeToDie != undefined) && (!_local3.fadeToDie)) {
_local3._x = _local3._x + _global.ITEMS_SHAKING_AMPLITUDE;
}
_local4--;
}
_local6--;
}
_global.shakeEvent = setInterval(this, "Fshaking", _global.ITEMS_SHAKING_PERIOD);
}
function endShake() {
var _local7;
if (shakeCount >= _global.ITEMS_SHAKING_COUNT) {
if ((shakeCount % 2) == 0) {
_local7 = -_global.ITEMS_SHAKING_AMPLITUDE;
} else {
_local7 = _global.ITEMS_SHAKING_AMPLITUDE;
}
var _local6 = colNum - 1;
while (_local6 > -1) {
var _local3 = rowNum - 1;
while (_local3 > -1) {
var _local5 = (_local3 * colNum) + _local6;
var _local4 = m_ItemFruitArray[_local5];
if ((_local4.fadeToDie != undefined) && (!_local4.fadeToDie)) {
_local4._x = _local4._x + _local7;
}
_local3--;
}
_local6--;
}
shakeCount = 0;
shaking = false;
moveDownOneRow();
}
}
function getRequireItemIconPos(item) {
var _local3;
if (_global.gameMode == _global.GAMES_ARCADE_MODE) {
_local3 = _global.PROGRESS_BAR_POSITION;
if (_global.makeCoupon) {
var _local2 = 0;
while (_local2 < _global.GAMES_MAKE_COUPON_ITEM[_global.playMode][_global.modeSettingId].length) {
if (item.id == _global.GAMES_MAKE_COUPON_ITEM[_global.playMode][_global.modeSettingId][_local2]) {
_local3 = _global.DOLLARS_START_POSITION;
}
_local2++;
}
}
}
if (_global.ITEMS_ITEM[item.id].ADD_SCORE) {
_local3 = _global.GUI_SCORE_POS;
} else if (_global.ITEMS_ITEM[item.id].ADD_MONEY) {
_local3 = _global.GUI_MONEY_LEFT_POS;
} else if (_global.ITEMS_ITEM[item.id].ADD_TIME) {
_local3 = _global.GUI_TIME_LEFT_POS;
}
return(_local3);
}
function Fshaking() {
var _local7;
if (shakeCount < _global.ITEMS_SHAKING_COUNT) {
if ((shakeCount % 2) == 0) {
_local7 = (-_global.ITEMS_SHAKING_AMPLITUDE) * 2;
} else {
_local7 = _global.ITEMS_SHAKING_AMPLITUDE * 2;
}
var _local6 = colNum - 1;
while (_local6 > -1) {
var _local3 = rowNum - 1;
while (_local3 > -1) {
var _local5 = (_local3 * colNum) + _local6;
var _local4 = m_ItemFruitArray[_local5];
if ((_local4.fadeToDie != undefined) && (!_local4.fadeToDie)) {
_local4._x = _local4._x + _local7;
}
_local3--;
}
_local6--;
}
shakeCount++;
} else {
clearInterval(_global.shakeEvent);
endShake();
}
}
var FIRST_GEN_END_ROW = 4;
var m_TotalAddNum = 0;
}
Symbol 578 MovieClip [__Packages.Time_bar] Frame 0
class Time_bar extends MovieClip
{
var AllWidth, intervalNo, timeInterval, clickCount, clearTile, flashing, _width, removeMovieClip, _visible, intervalId;
function Time_bar () {
super();
AllWidth = 90;
}
function init(playMode, modeSettingId) {
if (_global.GAMES_LIMITED_TIME[playMode][modeSettingId]) {
intervalNo = _global.TIME_BAR_INTERVAL_NUM;
timeInterval = _global.timeLimit / intervalNo;
clickCount = 0;
drawFullTime();
clearTile = false;
flashing = false;
}
}
function drawFullTime() {
_width = AllWidth;
}
function deleteTimeBar() {
removeMovieClip();
}
function onTimer() {
if (clearTile) {
clearTile = false;
_visible = false;
} else {
clearTile = true;
_visible = true;
updateTimeBar();
}
}
function updateTimeBar() {
_width = (_global.timeLeft / _global.timeLimit) * AllWidth;
}
function setTimerOn(val) {
intervalId = setInterval(this, "onTimer", val, this);
}
}
Symbol 579 MovieClip [__Packages.CEffect] Frame 0
class CEffect extends MovieClip
{
var dollar_mc, effect1_c, effect2_s, effect2_bs, effect2_exp, effect3_coin, effect3_s, effect4_b1, effect4_c1, effect4_c2, snum, onEnterFrame, tnum, rnum, pos_x, pos_y;
function CEffect () {
super();
dollar_mc._visible = false;
effect1_c._visible = false;
effect2_s._visible = false;
effect2_bs._visible = false;
effect2_exp._visible = false;
effect3_coin._visible = false;
effect3_s._visible = false;
effect4_b1._visible = false;
effect4_c1._visible = false;
effect4_c2._visible = false;
snum = 1;
onEnterFrame = function () {
if (this.snum < 120) {
this.eff1();
} else if ((this.snum >= 120) && (this.snum < 900)) {
this.removeMovieClip();
} else if ((this.snum >= 300) && (this.snum < 500)) {
} else if ((this.snum >= 500) && (this.snum < 650)) {
} else {
trace("removeMovieClip");
}
};
}
function copyDo(mc_name, mc_alpha, mc_x, mc_y) {
if ((Math.floor(tnum) == tnum) && (tnum != undefined)) {
eval (mc_name)._rotation = Math.random() * 360;
eval (mc_name).duplicateMovieClip(mc_name + tnum, tnum);
rnum = (Math.random() * 70) + 20;
eval (mc_name + tnum)._xscale = rnum;
eval (mc_name + tnum)._yscale = rnum;
eval (mc_name + tnum)._x = mc_x;
eval (mc_name + tnum)._y = mc_y;
eval (mc_name + tnum)._visible = true;
eval (mc_name + tnum)._alpha = mc_alpha;
}
snum++;
tnum = snum / 24;
}
function eff1() {
pos_x = 0;
pos_y = 0;
copyDo(dollar_mc, 100, pos_x, pos_y);
copyDo(dollar_mc, 100, pos_x, pos_y);
}
function eff2() {
pos_x = (pos_y = 80);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_bs, 60, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_bs, 60, pos_x, pos_y);
copyDo(effect2_exp, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_exp, 100, pos_x, pos_y);
}
function eff3() {
pos_x = (pos_y = 200);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect3_s, 100, pos_x, pos_y);
copyDo(effect3_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect3_coin, 100, pos_x, pos_y);
}
function eff4() {
pos_x = (pos_y = 300);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect2_s, 100, pos_x, pos_y);
copyDo(effect4_c1, 50, pos_x, pos_y);
copyDo(effect4_c1, 50, pos_x, pos_y);
copyDo(effect4_c2, 70, pos_x, pos_y);
copyDo(effect4_c2, 70, pos_x, pos_y);
copyDo(effect4_b1, 50, pos_x, pos_y);
}
}
Symbol 211 Button
on (release) {
_global.MSNDeluxe();
}
Symbol 215 Button
on (release) {
stopDrag();
}
on (press) {
startDrag ("", false, 40, this._y, 280, this._y);
}
on (releaseOutside) {
stopDrag();
}
Instance of Symbol 216 MovieClip "volsv" in Symbol 232 MovieClip [InGameMenuBoard] Frame 1
onClipEvent (enterFrame) {
_global.vVolume = ((this._x - 40) / 280) * 100;
}
Instance of Symbol 216 MovieClip "volmv" in Symbol 232 MovieClip [InGameMenuBoard] Frame 1
onClipEvent (enterFrame) {
_global.bgVolume = ((this._x - 40) / 280) * 100;
_global.bgMusic.setVolume(_global.bgVolume);
}
Symbol 239 Button
on (release) {
getURL (_global.BuyPath);
}
Symbol 240 Button
on (release) {
getURL (_global.DownloadPath);
}
Symbol 258 MovieClip [classicCreditCardImagemap] Frame 1
#initclip 25
Object.registerClass("classicCreditCardImagemap", CDollar);
#endinitclip
Symbol 261 MovieClip [500] Frame 1
#initclip 15
Object.registerClass("500", CDollar);
#endinitclip
Symbol 263 MovieClip [300Coupon] Frame 1
#initclip 16
Object.registerClass("300Coupon", CDollar);
#endinitclip
Symbol 266 MovieClip [100] Frame 1
#initclip 17
Object.registerClass("100", CDollar);
#endinitclip
Symbol 269 MovieClip [100Coupon] Frame 1
#initclip 18
Object.registerClass("100Coupon", CDollar);
#endinitclip
Symbol 272 MovieClip [50] Frame 1
#initclip 19
Object.registerClass("50", CDollar);
#endinitclip
Symbol 275 MovieClip [20] Frame 1
#initclip 20
Object.registerClass("20", CDollar);
#endinitclip
Symbol 278 MovieClip [20Coupon.png] Frame 1
#initclip 21
Object.registerClass("20Coupon.png", CDollar);
#endinitclip
Symbol 281 MovieClip [10] Frame 1
#initclip 22
Object.registerClass("10", CDollar);
#endinitclip
Symbol 284 MovieClip [5] Frame 1
#initclip 23
Object.registerClass("5", CDollar);
#endinitclip
Symbol 316 MovieClip [character] Frame 1
#initclip 24
Object.registerClass("character", CCharacter);
#endinitclip
Symbol 316 MovieClip [character] Frame 62
gotoAndPlay ("NORMAL");
Symbol 316 MovieClip [character] Frame 131
gotoAndPlay ("NORMAL");
Symbol 316 MovieClip [character] Frame 236
gotoAndPlay ("BUSY");
Symbol 316 MovieClip [character] Frame 293
gotoAndPlay ("NORMAL");
Symbol 316 MovieClip [character] Frame 356
gotoAndPlay ("SCARE");
Symbol 316 MovieClip [character] Frame 421
gotoAndPlay ("THINK");
Symbol 316 MovieClip [character] Frame 486
gotoAndPlay ("GAMEOVER");
Symbol 330 MovieClip [TimeP] Frame 1
#initclip 29
Object.registerClass("TimeP", Time_bar);
#endinitclip
Symbol 339 MovieClip [progressbar] Frame 1
#initclip 26
Object.registerClass("progressbar", progressBar);
#endinitclip
Symbol 358 MovieClip [launch] Frame 1
#initclip 27
Object.registerClass("launch", CLauncher);
#endinitclip
Symbol 365 MovieClip [ItemBoard] Frame 1
#initclip 28
Object.registerClass("ItemBoard", CItemBoard);
#endinitclip
Symbol 376 MovieClip Frame 51
stop();
this.removeMovieClip();
Symbol 378 MovieClip Frame 56
stop();
this.removeMovieClip();
Symbol 380 MovieClip Frame 31
stop();
this.removeMovieClip();
Symbol 382 MovieClip Frame 86
stop();
this.removeMovieClip();
Symbol 384 MovieClip Frame 49
stop();
this.removeMovieClip();
Symbol 386 MovieClip Frame 104
stop();
this.removeMovieClip();
Symbol 388 MovieClip Frame 73
stop();
this.removeMovieClip();
Symbol 391 MovieClip Frame 139
stop();
this.removeMovieClip();
Symbol 393 MovieClip Frame 110
stop();
this.removeMovieClip();
Symbol 397 MovieClip Frame 45
stop();
this.removeMovieClip();
Symbol 398 MovieClip [eff1] Frame 1
#initclip 30
Object.registerClass("eff1", CEffect);
#endinitclip
Symbol 457 Button
on (release) {
_global.showMenuScreen();
}
Symbol 466 Button
on (release) {
gotoAndStop (183);
}
Symbol 471 Button
on (release) {
gotoAndStop (190);
}
Symbol 476 Button
on (release) {
_global.GameLaunch();
}
Symbol 487 Button
on (release) {
_global.startArcadeMode(1);
}
Symbol 501 Button
on (release) {
_global.objtiveButtonOK();
}
Symbol 512 Button
on (release) {
_global.pressEsc();
}
Symbol 528 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 2
stop();
Symbol 528 MovieClip Frame 3
stop();
Symbol 528 MovieClip Frame 4
stop();
Symbol 528 MovieClip Frame 5
stop();
Symbol 528 MovieClip Frame 6
stop();
Symbol 535 Button
on (release) {
gotoAndStop (184);
}
Instance of Symbol 216 MovieClip "volsv" in Symbol 538 MovieClip Frame 1
onClipEvent (enterFrame) {
_global.vVolume = ((this._x - 40) / 240) * 100;
}
Instance of Symbol 216 MovieClip "volmv" in Symbol 538 MovieClip Frame 1
onClipEvent (enterFrame) {
_global.bgVolume = ((this._x - 40) / 240) * 100;
_global.bgMusic.setVolume(_global.bgVolume);
}