ig.module(
	'game.entities.finalData'
)
.defines(function(){
	if(ig.ua.iPhone || ig.ua.iPhone4 || ig.ua.android) {
		
		FinalData = {
			//screen size.
			SCREEN_WIDTH			: 320,
			SCREEN_HEIGHT			: 480,
			
			// screen ids
			SPLASH_SCREEN_VIEW		: 0,
			COVER_SCREEN_VIEW		: 60,
			MAIN_MENU_VIEW			: 1,
			HELP_VIEW				: 3,	
			MOREGAME_VIEW			: 4,
			HIGH_SCORES_VIEW		: 5,
			ABOUT_VIEW				: 6,
			INSTRUCTION_VIEW		: 7,
			HIDE_SCREEN_VIEW		: 10,
			MAIN_GAME_VIEW			: 11,
			LEVEL_COMPLETE_VIEW		: 12,
			GAME_OVER_VIEW			: 13,
			INPUT_NAME_VIEW			: 14,
			QUIT_VIEW				: 15,
			
			//image path.
			img_splash				: 'media/iPhone/Tweensoft-logo320x480-splash.jpg',
			img_cover				: 'media/iPhone/WhacCover.jpg',
			img_backgroud			: 'media/iPhone/WhacMenuBack.jpg',
			img_start_game_button	: 'media/iPhone/WhacbuttonStargame.png',
			img_help_button			: 'media/iPhone/WhacbuttonHelp.png',
			img_highscore_button	: 'media/iPhone/WhacbuttonHighscore.png',
			img_about_button		: 'media/iPhone/WhacbuttonAbout.png',
			img_moregame_button		: 'media/iPhone/WhacbuttonMoreGames.png',
			img_instruction			: 'media/iPhone/WhacInstructions.png',
			img_help				: 'media/iPhone/WhacHelp.png',
			img_about				: 'media/iPhone/WhacAbout.png',
			img_highscore			: 'media/iPhone/WhacHighScore.png',
			img_game_background		: 'media/iPhone/game-background.jpg',
			img_timelevelscore		: 'media/iPhone/timelevelscore.png',
			img_number_font			: 'media/iPhone/numbers.png',
			img_black_penguin		: 'media/iPhone/blackpenguin.png',
			img_red_penguin			: 'media/iPhone/badredpenguin.png',
			img_green_penguin		: 'media/iPhone/badgreenpenguin.png',
			img_shark				: 'media/iPhone/shark.png',
			img_wave				: 'media/iPhone/wave.png',
			img_levelComplete		: 'media/iPhone/Levelcompleted.png',
			img_tap_to_continue1	: 'media/iPhone/taptocontinue.png',
			img_penguin_craked		: 'media/iPhone/penguincraked.png',
			img_fish_craked			: 'media/iPhone/fishcraked.png',
			img_igloo_craked		: 'media/iPhone/igloocraked.png',
			img_miss				: 'media/iPhone/miss.png',
			img_score_font			: 'media/iPhone/scorenumbers.png',
			img_fault				: 'media/iPhone/fault.png',
			img_igloo				: 'media/iPhone/igloo.png',
			img_snowman				: 'media/iPhone/snowman.png',
			img_fish				: 'media/iPhone/fish.png',
			img_snowbear			: 'media/iPhone/snowbear.png',
			img_life				: 'media/iPhone/lifes.png',
			img_empty_box			: 'media/iPhone/empty.png',
			img_totalscore_text		: 'media/iPhone/totalscore.png',
			img_gameover_text		: 'media/iPhone/GameOver.png',
			img_playagain_text		: 'media/iPhone/playagain.png',
			img_enterhighscore_text	: 'media/iPhone/enterhighscore.png',
			img_highscore_font		: 'media/iPhone/highscoretext.png',
			img_back_button			: 'media/iPhone/back.png',
			img_bad_life			: 'media/iPhone/badlife.png',
			img_kill				: 'media/iPhone/kill_star.png',
			img_ice_crake			: 'media/iPhone/ice_craked.png',
			img_quit_button			: 'media/iPhone/quitbutton.png',
			img_quit_message		: 'media/iPhone/Quitgametext.png',
			img_levelComplete_font	: 'media/iPhone/levelCompleteFont.png',
			
			SPLASH_TIME				: 2,
			MENU_ITEM_POSX			: 55,
				
			//top size for the iphone's status bar.
			TOP_Y					: 0,
			
			//height of the edit control.
			EDIT_HEIGHT				: 320,
			
			//for the quit button.
			QUIT_BUTTON_INTENT		: 20,
				
			//size for the elements.
			LETTER_SIZE				: 14,
			MENU_ITEM_SIZE			: { x: 216, y: 65 },	
			TIMELEVELSCORE_SIZE		: { x: 263, y: 48 },
			TIME_BOX_SIZE			: { x: 52, y: 20 },
			LEVEL_BOX_SIZE			: { x: 52, y: 20 },
			SCORE_BOX_SIZE			: { x: 58, y: 20 },
			PENGUIN_SIZE			: { x: 88, y: 70 },
			WEAV_SIZE				: { x: 120, y: 60 },
			LEVELCOMPLETE_SIZE		: { x: 164, y: 103 },
			TAP_TO_CONTINUE1		: { x: 169, y: 52 },
			HOLE_SIZE				: { x: 80, y: 66 },
			CRAKED_SIZE				: { x: 113, y: 94 },
			MISS_SIZE				: { x: 55, y: 36 },
			LIFE_SIZE				: { x: 30, y: 39 },
			PLAYAGAINTEXT_SIZE		: { x: 119, y: 35 },
			ENTERHIGHSCORE_SIZE		: { x: 161, y: 35 },
			BACK_BUTTON_SIZE		: { x: 60, y: 28},
			BAD_LIFE_SIZE			: { x: 26, y: 42 },
			KILL_SIZE				: { x: 113, y: 94 },
			QUIT_BUTTON_SIZE		: { x: 30, y: 30 },
			YES_SIZE				: { x: 44, y: 40 },
			NO_SIZE					: { x: 36, y: 40 },
			
			img_start_posY			: 138,
			img_help_posY			: 198,
			img_highscore_posY		: 198,
			img_about_posY			: 260,
			img_moregame_posY		: 320,
			
			TIMELEVELSCORE_POS		: { x: 30 ,y: 19 },
			LEVELBOX_POS			: { x: 127, y: 53 },
			TIMEBOX_POS				: { x: 40, y: 53 },
			SCOREBOX_POS			: { x: 220, y: 53 },
			LEVELCOMPLETE_POS		: { x: 78, y: 176 },
			TAP_TO_CONTINUE_POS		: { x: 79, y: 352 },
			LIFE_POS				: { x: 285, y: 410 },
			BAD_LIFE_POS			: { x: 10, y: 410 },
			TOTALSCORE_TEXT_POS		: { x: 77, y: 120 },
			TOTALSCORE_POS			: { x: 130, y: 180 },
			GAMEOVER_TEXT_POS		: { x: 80, y: 228 },
			PLAYAGAINTEXT_POS		: { x: 105, y: 297 },
			ENTERHIGHSCORE_POS		: { x: 80, y: 393 },
			INPUTNAME_TEXT_POS		: { x: 80, y: 120 },
			BACK_BUTTON_POS			: { x: 5, y: 420 },
			INPUTNAME_POS			: { x: 165, y: 230 },
			QUIT_BUTTON_POS			: { x: 1, y: 30 },
			QUIT_MESSAGE_POS		: { x: 75, y: 180 },
			YES_INTENT_POS			: { x: 12, y: 80},
			NO_INTENT_POS			: { x: 128, y: 80},
			LEVELCOMPLETE_LEVEL_POS	: { x: 100, y: 150 },
			
			HOLE_POSX				: [11, 117, 221, 11, 117, 221, 11, 117, 221],
			HOLE_POSY				: [105, 105, 105, 208, 208, 208, 330, 330, 330],
			WAVE_INTENT				: { x: 14, y: 0 },
			CRAKED_INTENT			: { x: 11, y: 27 },
			MISS_INTENT				: { x: 16, y: 18 },
			POPSCORE_INTENT			: { x: 45, y: -2 },
			HIGHSCORE_INTENT		: { x: 82, y: 106 },
			HIGHSCORE_NAME_INTENT	: 27,
			HIGHSCORE_SCORE_INTENT	: 140,
			HIGHSCORE_LINE_SPACE	: 24,
			ENTERNAME_TEMP_VALUE	: -50,
			INPUTNAME_INTENT		: -50,
			
			INIT_TIME				: 60,
			HOLE_COUNT				: 9,
			
			PENGUIN_COLOR_ARRAY		: ['black', 'green', 'red'],
			
			POPUP_TIME				: 0.2,
			INITPOPUP_TIME			: 0.8,
			INIT_POPDOWN			: 0.8,
			INITSTAY_TIME			: 3,
			CRAKE_STAY_TIME			: 0.5,												//time for penguin stay when good items is touched.
			MISS_TIME				: 0.6,
			
			TOTAL_ITEMS_COUNT: [60, 60, 60, 70, 70, 70, 80, 80, 80, 90, 90, 90, 100, 100, 100],
			GOOD_ITEMS_COUNT: [60, 50, 45, 55, 52, 50, 60, 58, 56, 66, 64, 62, 72, 68, 65],
			
			MAX_LIFE				: 3,
			MAX_BAD_LIFE			: 4,
			MAX_LEVEL				: 15,
			
			LEVEL_GOOD_ITEMS: [
								['1tabpenguin'],['1tabpenguin'],['1tabpenguin','2tabpenguin','1tabigloo'], 
								['1tabpenguin','2tabpenguin','1tabigloo'],['1tabpenguin','2tabpenguin','1tabigloo'],['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin'],
								['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin'], ['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin'], ['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo'],
								['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo'], ['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo'], ['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo', '4tabpenguin', '3tabfish'],
								['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo', '4tabpenguin', '3tabfish'],['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo', '4tabpenguin', '3tabfish'],['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo', '4tabpenguin', '3tabfish'],
							  ],
				
			LEVEL_BAD_ITEMS: [
								['shark'], ['shark'], ['shark', 'snowman'],
								['shark', 'snowman'], ['shark', 'snowman'], ['shark', 'snowman', 'snowbear'],
								['shark', 'snowman', 'snowbear'],['shark', 'snowman', 'snowbear'],['shark', 'snowman', 'snowbear'],
								['shark', 'snowman', 'snowbear'],['shark', 'snowman', 'snowbear'],['shark', 'snowman', 'snowbear'],
								['shark', 'snowman', 'snowbear'],['shark', 'snowman', 'snowbear'],['shark', 'snowman', 'snowbear'],
							 ],
			
			POPUP_SCORE_MOVETIME 	: 0.2,
			POPUP_MOVEHEIGHT		: 20,
			POPUP_STAYTIME			: 0.5,
			POPUPSCORE_INTENT		: 35,
			
			MAX_HIGHSCORE_COUNT		: 10,
		};
	} else {
		FinalData = {
			
			//screen size.
			SCREEN_WIDTH			: 700,
			SCREEN_HEIGHT			: 881,
			
			// screen ids
			SPLASH_SCREEN_VIEW		: 0,
			COVER_SCREEN_VIEW		: 60,
			MAIN_MENU_VIEW			: 1,
			HELP_VIEW				: 3,	
			MOREGAME_VIEW			: 4,
			HIGH_SCORES_VIEW		: 5,
			ABOUT_VIEW				: 6,
			INSTRUCTION_VIEW		: 7,
			HIDE_SCREEN_VIEW		: 10,
			MAIN_GAME_VIEW			: 11,
			LEVEL_COMPLETE_VIEW		: 12,
			GAME_OVER_VIEW			: 13,
			INPUT_NAME_VIEW			: 14,
			QUIT_VIEW				: 15,
			
			//image path.
			img_splash				: 'media/iPad/Tweensoft-logo320x480-splash.jpg',
			img_cover				: 'media/iPad/WhacCover.jpg',
			img_backgroud			: 'media/iPad/WhacMenuBack.jpg',
			img_start_game_button	: 'media/iPad/WhacbuttonStargame.png',
			img_help_button			: 'media/iPad/WhacbuttonHelp.png',
			img_highscore_button	: 'media/iPad/WhacbuttonHighscore.png',
			img_about_button		: 'media/iPad/WhacbuttonAbout.png',
			img_moregame_button		: 'media/iPad/WhacbuttonMoreGames.png',
			img_instruction			: 'media/iPad/WhacInstructions.png',
			img_help				: 'media/iPad/WhacHelp.png',
			img_about				: 'media/iPad/WhacAbout.png',
			img_highscore			: 'media/iPad/WhacHighScore.png',
			img_game_background		: 'media/iPad/game-background.jpg',
			img_timelevelscore		: 'media/iPad/timelevelscore.png',
			img_number_font			: 'media/iPad/numbers.png',
			img_black_penguin		: 'media/iPad/blackpenguin.png',
			img_red_penguin			: 'media/iPad/badredpenguin.png',
			img_green_penguin		: 'media/iPad/badgreenpenguin.png',
			img_shark				: 'media/iPad/shark.png',
			img_wave				: 'media/iPad/wave.png',
			img_levelComplete		: 'media/iPad/Levelcompleted.png',
			img_tap_to_continue1	: 'media/iPad/taptocontinue.png',
			img_penguin_craked		: 'media/iPad/penguincraked.png',
			img_fish_craked			: 'media/iPad/fishcraked.png',
			img_igloo_craked		: 'media/iPad/igloocraked.png',
			img_miss				: 'media/iPad/miss.png',
			img_score_font			: 'media/iPad/scorenumbers.png',
			img_fault				: 'media/iPad/fault.png',
			img_igloo				: 'media/iPad/igloo.png',
			img_snowman				: 'media/iPad/snowman.png',
			img_fish				: 'media/iPad/fish.png',
			img_snowbear			: 'media/iPad/snowbear.png',
			img_life				: 'media/iPad/lifes.png',
			img_empty_box			: 'media/iPad/empty.png',
			img_totalscore_text		: 'media/iPad/totalscore.png',
			img_gameover_text		: 'media/iPad/GameOver.png',
			img_playagain_text		: 'media/iPad/playagain.png',
			img_enterhighscore_text	: 'media/iPad/enterhighscore.png',
			img_highscore_font		: 'media/iPad/highscoretext.png',
			img_back_button			: 'media/iPad/back.png',
			img_bad_life			: 'media/iPad/badlife.png',
			img_kill				:'media/iPad/kill_star.png',
			img_ice_crake			:'media/iPad/ice_craked.png',
			img_quit_button			:'media/iPad/quitbutton.png',
			img_quit_message		:'media/iPad/Quitgametext.png',
			img_levelComplete_font	: 'media/iPad/levelCompleteFont.png',
			
			SPLASH_TIME				: 2,
			MENU_ITEM_POSX			: 120,
				
			//top size for the iphone's status bar.
			TOP_Y					: 0,
			
			//height of the edit control.
			EDIT_HEIGHT				: 600,
			
			//for the url bar disappear time interval.
			PHONE_TURN_TIME			: 1,
			
			QUIT_BUTTON_INTENT		: 0,
			
			/*********************** Size informations. ******************************/
			
			LETTER_SIZE				: 14,
			MENU_ITEM_SIZE			: { x: 469, y: 139 },	
			TIMELEVELSCORE_SIZE		: { x: 263, y: 48 },
			TIME_BOX_SIZE			: { x: 52, y: 20 },
			LEVEL_BOX_SIZE			: { x: 52, y: 20 },
			SCORE_BOX_SIZE			: { x: 58, y: 20 },
			PENGUIN_SIZE			: { x: 140, y: 125 },
			WEAV_SIZE				: { x: 119, y: 52 },
			LEVELCOMPLETE_SIZE		: { x: 164, y: 103 },
			TAP_TO_CONTINUE1		: { x: 169, y: 52 },
			HOLE_SIZE				: { x: 150, y: 130 },
			CRAKED_SIZE				: { x: 200, y: 240 },
			MISS_SIZE				: { x: 103, y: 58 },
			LIFE_SIZE				: { x: 65, y: 75 },
			PLAYAGAINTEXT_SIZE		: { x: 208, y: 72 },
			ENTERHIGHSCORE_SIZE		: { x: 300, y: 63 },
			BACK_BUTTON_SIZE		: { x: 118, y: 54},
			BAD_LIFE_SIZE			: { x: 57, y: 53 },
			KILL_SIZE				: { x: 200, y: 240 },
			QUIT_BUTTON_SIZE		: { x: 30, y: 30 },
			YES_SIZE				: { x: 90, y: 60 },
			NO_SIZE					: { x: 60, y: 50},
			
			/************************** Position information. ******************************/
			
			img_start_posY			: 195,
			img_help_posY			: 354,
			img_highscore_posY		: 354,
			img_about_posY			: 511,
			img_moregame_posY		: 672,
			
			TIMELEVELSCORE_POS		: { x: 102 ,y: 19 },
			LEVELBOX_POS			: { x: 335, y: 80 },
			TIMEBOX_POS				: { x: 125, y: 80 },
			SCOREBOX_POS			: { x: 523, y: 80 },
			LEVELCOMPLETE_POS		: { x: 205, y: 380 },
			TAP_TO_CONTINUE_POS		: { x: 216, y: 735 },
			LIFE_POS				: { x: 640, y: 800 },
			BAD_LIFE_POS			: { x: 10, y: 820 },
			TOTALSCORE_TEXT_POS		: { x: 210, y: 220 },
			TOTALSCORE_POS			: { x: 308, y: 324 },
			GAMEOVER_TEXT_POS		: { x: 216, y: 414 },
			PLAYAGAINTEXT_POS		: { x: 256, y: 530 },
			ENTERHIGHSCORE_POS		: { x: 210, y: 700 },
			INPUTNAME_TEXT_POS		: { x: 210, y: 180 },
			BACK_BUTTON_POS			: { x: 5, y: 820 },
			INPUTNAME_POS			: { x: 365, y: 430 },
			QUIT_BUTTON_POS			: { x: 1, y: 0 },
			QUIT_MESSAGE_POS		: { x: 220, y: 330 },
			YES_INTENT_POS			: { x: 15, y: 150 },
			NO_INTENT_POS			: { x: 220, y: 150},
			LEVELCOMPLETE_LEVEL_POS	: { x: 425, y: 385 },
			
			//positions of the holes.
			HOLE_POSX				: [78, 272, 460, 78, 272, 460, 78, 272, 460],
			HOLE_POSY				: [192, 192, 192, 384, 384, 384, 612, 612, 612],
			
			WAVE_INTENT				: { x: -18, y: 35 },
			CRAKED_INTENT			: { x: 11, y: 100 },
			MISS_INTENT				: { x: 28, y: 32 },
			POPSCORE_INTENT			: { x: 45, y: -2 },
			HIGHSCORE_INTENT		: { x: 182, y: 236 },
			HIGHSCORE_NAME_INTENT	: 45,
			HIGHSCORE_SCORE_INTENT	: 240,
			HIGHSCORE_LINE_SPACE	: 50,
			ENTERNAME_TEMP_VALUE	: 0,
			INPUTNAME_INTENT		: 0,
			
			INIT_TIME				: 60,
			HOLE_COUNT				: 9,
			
			PENGUIN_COLOR_ARRAY		: ['black', 'green', 'red'],
			
			POPUP_TIME				: 0.2,
			INITPOPUP_TIME			: 0.8,
			INIT_POPDOWN			: 0.8,
			INITSTAY_TIME			: 3,
			CRAKE_STAY_TIME			: 0.5,												//time for penguin stay when good items is touched.
			MISS_TIME				: 0.6,
			
			TOTAL_ITEMS_COUNT		: [60, 60, 60, 70, 70, 70, 80, 80, 80, 90, 90, 90, 100, 100, 100],
			GOOD_ITEMS_COUNT		: [60, 50, 45, 55, 52, 50, 60, 58, 56, 66, 64, 62, 72, 68, 65],
			
			MAX_LIFE				: 3,
			MAX_BAD_LIFE			: 4,
			MAX_LEVEL				: 15,
			
			LEVEL_GOOD_ITEMS: [
								['1tabpenguin'],['1tabpenguin'],['1tabpenguin','2tabpenguin','1tabigloo'], 
								['1tabpenguin','2tabpenguin','1tabigloo'],['1tabpenguin','2tabpenguin','1tabigloo'],['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin'],
								['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin'], ['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin'], ['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo'],
								['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo'], ['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo'], ['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo', '4tabpenguin', '3tabfish'],
								['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo', '4tabpenguin', '3tabfish'],['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo', '4tabpenguin', '3tabfish'],['1tabpenguin', '2tabpenguin', '1tabigloo', '2tabfish', '3tabpenguin', '2tabigloo', '4tabpenguin', '3tabfish'],
							  ],
				
			LEVEL_BAD_ITEMS: [
								['shark'], ['shark'], ['shark', 'snowman'],
								['shark', 'snowman'], ['shark', 'snowman'], ['shark', 'snowman', 'snowbear'],
								['shark', 'snowman', 'snowbear'],['shark', 'snowman', 'snowbear'],['shark', 'snowman', 'snowbear'],
								['shark', 'snowman', 'snowbear'],['shark', 'snowman', 'snowbear'],['shark', 'snowman', 'snowbear'],
								['shark', 'snowman', 'snowbear'],['shark', 'snowman', 'snowbear'],['shark', 'snowman', 'snowbear'],
							 ],
			
			POPUP_SCORE_MOVETIME 	: 0.2,
			POPUP_MOVEHEIGHT		: 20,
			POPUP_STAYTIME			: 0.5,
			POPUPSCORE_INTENT		: 75,
			
			MAX_HIGHSCORE_COUNT		: 10,
		};
	}
	
	
	if( ig.ua.iPhone4 || ig.ua.iPhone) {
		if(ig.ua.viewport.height == 480 || ig.ua.viewport.height == 320) {
			FinalData.TOP_Y = 0;
		} else {
			FinalData.TOP_Y = -30;
		}
	} else if(ig.ua.iPad) {
		if(ig.ua.viewport.height == 1024 || ig.ua.viewport.height == 768) {
			FinalData.TOP_Y = 0;
		} else {
			FinalData.TOP_Y = 0;
		}
	}
	else {
		FinalData.TOP_Y = 0;
	}
});
