res = {
		splash_screen_jpg		: "res/splash_screen.jpg",

		//Main menu
		old_english_ttf			: "res/Old English Text MT.ttf",
		main_menu_BG_png 		: "res/mainmenu/mainmenuBG.jpg",
		more_games_png 			: "res/mainmenu/more_games.png",
		more_games_over_png 	: "res/mainmenu/more_games2.png",
		more_games_down_png		: "res/mainmenu/more_games3.png",
		play_png 				: "res/mainmenu/Play.png",
		play_not_png			: "res/mainmenu/Play_not.png",
		play_selected_png		: "res/mainmenu/Play_push.png",
		play_label_png			: "res/mainmenu/Play_label.png",
		left_png				: "res/left.png",
		right_png				: "res/right.png",
		left_selected_png		: "res/left_selected.png",
		right_selected_png		: "res/right_selected.png",
		quit_normal_png 		: "res/mainmenu/x.png",
		quit_selected_png 		: "res/mainmenu/x_push.png",
		quit_over_png 			: "res/mainmenu/x_over.png",
		quit_normal_big_png 	: "res/mainmenu/x_big.png",
		quit_selected_big_png 	: "res/mainmenu/x_push_big.png",
		chapter_1_png			: "res/mainmenu/Chapter_1.png",
		chapter_2_png			: "res/mainmenu/Chapter_2.png",
		chapter_3_png			: "res/mainmenu/Chapter_3.png",
		chapter_4_png			: "res/mainmenu/Chapter_4.png",
		chapter_5_png			: "res/mainmenu/Chapter_5.png",
		chapter_6_png			: "res/mainmenu/Chapter_6.png",
		chapter_7_png			: "res/mainmenu/Chapter_7.png",
		chapter_8_png			: "res/mainmenu/Chapter_8.png",
		chapter_9_png			: "res/mainmenu/Chapter_9.png",
		chapter_10_png			: "res/mainmenu/Chapter_10.png",
		
		//levels previews
		selectlevel_menu_BG_png	: "res/prev/selectlevelBG.jpg",
		selectlevel_menu_BG_sides_png: "res/prev/selectlevelBG_sides.png",
		play_selectmenu_png		: "res/prev/play.png",
		play_selectmenu_selected_png	: "res/prev/play_selected.png",
		play_selectmenu_over_png: "res/prev/play_over.png",
		preview_glow_png		: "res/prev/preview_glow.png",
		prev_001_png			: "res/levels/1/preview1.png",
		prev_002_png			: "res/levels/2/preview1.png",
		prev_003_png			: "res/levels/3/preview1.png",
		prev_004_png			: "res/levels/4/preview1.png",
		prev_005_png			: "res/levels/5/preview1.png",
		prev_006_png			: "res/levels/6/preview1.png",
		prev_007_png			: "res/levels/7/preview1.png",
		prev_008_png			: "res/levels/8/preview1.png",
		prev_009_png			: "res/levels/9/preview1.png",
		prev_010_png			: "res/levels/10/preview1.png",
		prev_011_png			: "res/levels/11/preview1.png",
		prev_012_png			: "res/levels/12/preview1.png",    
		prev_013_png			: "res/levels/13/preview1.png",   
		prev_014_png			: "res/levels/14/preview1.png",
		prev_015_png			: "res/levels/15/preview1.png",
		prev_016_png			: "res/levels/16/preview1.png",
		prev_017_png			: "res/levels/17/preview1.png",
		prev_018_png			: "res/levels/18/preview1.png",
		prev_019_png			: "res/levels/19/preview1.png",
		prev_020_png			: "res/levels/20/preview1.png",
		prev_021_png			: "res/levels/21/preview1.png",
		prev_022_png			: "res/levels/22/preview1.png",
		prev_023_png			: "res/levels/23/preview1.png",
		prev_024_png			: "res/levels/24/preview1.png",
		prev_025_png			: "res/levels/25/preview1.png",
		prev_026_png			: "res/levels/26/preview1.png",
		prev_027_png			: "res/levels/27/preview1.png",
		prev_028_png			: "res/levels/28/preview1.png",
		prev_029_png			: "res/levels/29/preview1.png",
		prev_030_png			: "res/levels/30/preview1.png",		
		prev_031_png			: "res/levels/31/preview1.png",
		prev_032_png			: "res/levels/32/preview1.png",
		prev_033_png			: "res/levels/33/preview1.png",
		prev_034_png			: "res/levels/34/preview1.png",
		prev_035_png			: "res/levels/35/preview1.png",
		prev_036_png			: "res/levels/36/preview1.png",
		prev_037_png			: "res/levels/37/preview1.png",
		prev_038_png			: "res/levels/38/preview1.png",
		prev_039_png			: "res/levels/39/preview1.png",
		prev_040_png			: "res/levels/40/preview1.png",
		prev_041_png			: "res/levels/41/preview1.png",
		prev_042_png			: "res/levels/42/preview1.png",
		prev_043_png			: "res/levels/43/preview1.png",
		prev_044_png			: "res/levels/44/preview1.png",
		prev_045_png			: "res/levels/45/preview1.png",
		prev_046_png			: "res/levels/46/preview1.png",
		prev_047_png			: "res/levels/47/preview1.png",
		prev_048_png			: "res/levels/48/preview1.png",
		prev_049_png			: "res/levels/49/preview1.png",
		prev_050_png			: "res/levels/50/preview1.png",
		prev_051_png			: "res/levels/51/preview1.png",
		prev_052_png			: "res/levels/52/preview1.png",
		prev_053_png			: "res/levels/53/preview1.png",
		prev_054_png			: "res/levels/54/preview1.png",
		prev_055_png			: "res/levels/55/preview1.png",
		prev_056_png			: "res/levels/56/preview1.png",
		prev_057_png			: "res/levels/57/preview1.png",
		prev_058_png			: "res/levels/58/preview1.png",
		prev_059_png			: "res/levels/59/preview1.png",
		prev_060_png			: "res/levels/60/preview1.png",
		prev_061_png			: "res/levels/61/preview1.png",
		prev_062_png			: "res/levels/62/preview1.png",
		prev_063_png			: "res/levels/63/preview1.png",
		prev_064_png			: "res/levels/64/preview1.png",
		prev_065_png			: "res/levels/65/preview1.png",
		prev_066_png			: "res/levels/66/preview1.png",
		//game modes
		hardcore_checked_png	: "res/prev/hardcore_checked.png",
		hardcore_unchecked_png	: "res/prev/hardcore_unchecked.png",
		relax_checked_png		: "res/prev/relax_checked.png",
		relax_unchecked_png		: "res/prev/relax_unchecked.png",
		//volume toggle
		volume1_png				:"res/mainmenu/Speaker-Icon.png",
		volume2_png				:"res/mainmenu/Speaker-Icon2.png",
		volume3_png				:"res/mainmenu/Speaker-Icon3.png",
		volume4_png				:"res/mainmenu/Speaker-Icon4.png",
		//volume toggle BIG
		volume1_big_png			:"res/mainmenu/Speaker-Icon_big.png",
		volume2_big_png			:"res/mainmenu/Speaker-Icon2_big.png",
		volume3_big_png			:"res/mainmenu/Speaker-Icon3_big.png",
		volume4_big_png			:"res/mainmenu/Speaker-Icon4_big.png",
		//game mode toggle
		game_mode_png			:"res/prev/game_mode.png",
		game_mode_plist			:"res/prev/game_mode.plist",
		//HUD
		medallion_png			:"res/medallion.png",
		medallion_plist			:"res/medallion.plist",
		hud_png					:"res/HUD.png",
		hud_big_png				:"res/HUD_big.png",
		hud_exit_png			:"res/exit.png",
		hud_exit_push_png		:"res/exit_push.png",
		hud_exit_over_png		:"res/exit_over.png",
		hud_exit_big_png		:"res/exit_big.png",
		hud_exit_push_big_png	:"res/exit_push_big.png",
		timer_hud_png			:"res/timer_hud.png",
		//levels
		level_bg_1_png			: "res/levels/1/bg.jpg",
		level_bg_2_png			: "res/levels/2/bg.jpg",
		level_bg_3_png			: "res/levels/3/bg.jpg",
		level_bg_4_png			: "res/levels/4/bg.jpg",
		level_bg_5_png			: "res/levels/5/bg.jpg",
		level_bg_6_png			: "res/levels/6/bg.jpg",
		level_bg_7_png			: "res/levels/7/bg.jpg",
		level_bg_8_png			: "res/levels/8/bg.jpg",
		level_bg_9_png			: "res/levels/9/bg.jpg",
		level_bg_10_png			: "res/levels/10/bg.jpg",
		level_bg_11_png			: "res/levels/11/bg.jpg",
		level_bg_12_png			: "res/levels/12/bg.jpg",
		level_bg_13_png			: "res/levels/13/bg.jpg",
		level_bg_14_png			: "res/levels/14/bg.jpg",
		level_bg_15_png			: "res/levels/15/bg.jpg",
		level_bg_16_png			: "res/levels/16/bg.jpg",
		level_bg_17_png			: "res/levels/17/bg.jpg",
		level_bg_18_png			: "res/levels/18/bg.jpg",
		level_bg_19_png			: "res/levels/19/bg.jpg",
		level_bg_20_png			: "res/levels/20/bg.jpg",
		level_bg_21_png			: "res/levels/21/bg.jpg",
		level_bg_22_png			: "res/levels/22/bg.jpg",
		level_bg_23_png			: "res/levels/23/bg.jpg",
		level_bg_24_png			: "res/levels/24/bg.jpg",
		level_bg_25_png			: "res/levels/25/bg.jpg",
		level_bg_26_png			: "res/levels/26/bg.jpg",
		level_bg_27_png			: "res/levels/27/bg.jpg",
		level_bg_28_png			: "res/levels/28/bg.jpg",
		level_bg_29_png			: "res/levels/29/bg.jpg",
		level_bg_30_png			: "res/levels/30/bg.jpg",
		level_bg_31_png			: "res/levels/31/bg.jpg",		
		level_bg_32_png			: "res/levels/32/bg.jpg",
		level_bg_33_png			: "res/levels/33/bg.jpg",
		level_bg_34_png			: "res/levels/34/bg.jpg",
		level_bg_35_png			: "res/levels/35/bg.jpg",
		level_bg_36_png			: "res/levels/36/bg.jpg",
		level_bg_37_png			: "res/levels/37/bg.jpg",
		level_bg_38_png			: "res/levels/38/bg.jpg",
		level_bg_39_png			: "res/levels/39/bg.jpg",
		level_bg_40_png			: "res/levels/40/bg.jpg",
		level_bg_41_png			: "res/levels/41/bg.jpg",
		level_bg_42_png			: "res/levels/42/bg.jpg",
		level_bg_43_png			: "res/levels/43/bg.jpg",
		level_bg_44_png			: "res/levels/44/bg.jpg",
		level_bg_45_png			: "res/levels/45/bg.jpg",
		level_bg_46_png			: "res/levels/46/bg.jpg",
		level_bg_47_png			: "res/levels/47/bg.jpg",
		level_bg_48_png			: "res/levels/48/bg.jpg",
		level_bg_49_png			: "res/levels/49/bg.jpg",
		level_bg_50_png			: "res/levels/50/bg.jpg",
		level_bg_51_png			: "res/levels/51/bg.jpg",
		level_bg_52_png			: "res/levels/52/bg.jpg",
		level_bg_53_png			: "res/levels/53/bg.jpg",
		level_bg_54_png			: "res/levels/54/bg.jpg",
		level_bg_55_png			: "res/levels/55/bg.jpg",
		level_bg_56_png			: "res/levels/56/bg.jpg",
		level_bg_57_png			: "res/levels/57/bg.jpg",
		level_bg_58_png			: "res/levels/58/bg.jpg",
		level_bg_59_png			: "res/levels/59/bg.jpg",
		level_bg_60_png			: "res/levels/60/bg.jpg",
		level_bg_61_png			: "res/levels/61/bg.jpg",
		level_bg_62_png			: "res/levels/62/bg.jpg",
		level_bg_63_png			: "res/levels/63/bg.jpg",
		level_bg_64_png			: "res/levels/64/bg.jpg",
		level_bg_65_png			: "res/levels/65/bg.jpg",
		level_bg_66_png			: "res/levels/66/bg.jpg",
		//items
		level_1_items_plist		: "res/levels/1/items.plist",
		level_1_items_png		: "res/levels/1/items.png",

		level_2_items_plist		: "res/levels/2/items.plist",
		level_2_items_png		: "res/levels/2/items.png",

		level_3_items_plist		: "res/levels/3/items.plist",
		level_3_items_png		: "res/levels/3/items.png",

		level_4_items_plist		: "res/levels/4/items.plist",
		level_4_items_png		: "res/levels/4/items.png",

		level_5_items_plist		: "res/levels/5/items.plist",
		level_5_items_png		: "res/levels/5/items.png",

		level_6_items_plist		: "res/levels/6/items.plist",
		level_6_items_png		: "res/levels/6/items.png",

		level_7_items_plist		: "res/levels/7/items.plist",
		level_7_items_png		: "res/levels/7/items.png",

		level_8_items_plist		: "res/levels/8/items.plist",
		level_8_items_png		: "res/levels/8/items.png",

		level_9_items_plist		: "res/levels/9/items.plist",
		level_9_items_png		: "res/levels/9/items.png",

		level_10_items_plist		: "res/levels/10/items.plist",
		level_10_items_png			: "res/levels/10/items.png",

		level_11_items_plist		: "res/levels/11/items.plist",
		level_11_items_png			: "res/levels/11/items.png",

		level_12_items_plist		: "res/levels/12/items.plist",
		level_12_items_png			: "res/levels/12/items.png",

		level_13_items_plist		: "res/levels/13/items.plist",
		level_13_items_png			: "res/levels/13/items.png",

		level_14_items_plist		: "res/levels/14/items.plist",
		level_14_items_png			: "res/levels/14/items.png",

		level_15_items_plist		: "res/levels/15/items.plist",
		level_15_items_png			: "res/levels/15/items.png",

		level_16_items_plist		: "res/levels/16/items.plist",
		level_16_items_png			: "res/levels/16/items.png",

		level_17_items_plist		: "res/levels/17/items.plist",
		level_17_items_png			: "res/levels/17/items.png",

		level_18_items_plist		: "res/levels/18/items.plist",
		level_18_items_png			: "res/levels/18/items.png",

		level_19_items_plist		: "res/levels/19/items.plist",
		level_19_items_png			: "res/levels/19/items.png",

		level_20_items_plist		: "res/levels/20/items.plist",
		level_20_items_png			: "res/levels/20/items.png",

		level_21_items_plist		: "res/levels/21/items.plist",
		level_21_items_png			: "res/levels/21/items.png",

		level_22_items_plist		: "res/levels/22/items.plist",
		level_22_items_png			: "res/levels/22/items.png",

		level_23_items_plist		: "res/levels/23/items.plist",
		level_23_items_png			: "res/levels/23/items.png",

		level_24_items_plist		: "res/levels/24/items.plist",
		level_24_items_png			: "res/levels/24/items.png",
		
		level_25_items_plist		: "res/levels/25/items.plist",
		level_25_items_png			: "res/levels/25/items.png",

		level_26_items_plist		: "res/levels/26/items.plist",
		level_26_items_png			: "res/levels/26/items.png",
		
		level_27_items_plist		: "res/levels/27/items.plist",
		level_27_items_png			: "res/levels/27/items.png",
		
		level_28_items_plist		: "res/levels/28/items.plist",
		level_28_items_png			: "res/levels/28/items.png",
		
		level_29_items_plist		: "res/levels/29/items.plist",
		level_29_items_png			: "res/levels/29/items.png",
		
		level_30_items_plist		: "res/levels/30/items.plist",
		level_30_items_png			: "res/levels/30/items.png",
		
		level_31_items_plist		: "res/levels/31/items.plist",
		level_31_items_png			: "res/levels/31/items.png",

		level_32_items_plist		: "res/levels/32/items.plist",
		level_32_items_png		 	: "res/levels/32/items.png",

		level_33_items_plist		: "res/levels/33/items.plist",
		level_33_items_png			: "res/levels/33/items.png",

		level_34_items_plist		: "res/levels/34/items.plist",
		level_34_items_png			: "res/levels/34/items.png",

		level_35_items_plist		: "res/levels/35/items.plist",
		level_35_items_png			: "res/levels/35/items.png",

		level_36_items_plist		: "res/levels/36/items.plist",
		level_36_items_png			: "res/levels/36/items.png",

		level_37_items_plist		: "res/levels/37/items.plist",
		level_37_items_png			: "res/levels/37/items.png",

		level_38_items_plist		: "res/levels/38/items.plist",
		level_38_items_png			: "res/levels/38/items.png",
		
		level_39_items_plist		: "res/levels/39/items.plist",
		level_39_items_png			: "res/levels/39/items.png",

		level_40_items_plist		: "res/levels/40/items.plist",
		level_40_items_png			: "res/levels/40/items.png",

		level_41_items_plist		: "res/levels/41/items.plist",
		level_41_items_png			: "res/levels/41/items.png",

		level_42_items_plist		: "res/levels/42/items.plist",
		level_42_items_png			: "res/levels/42/items.png",

		level_43_items_plist		: "res/levels/43/items.plist",
		level_43_items_png			: "res/levels/43/items.png",

		level_44_items_plist		: "res/levels/44/items.plist",
		level_44_items_png			: "res/levels/44/items.png",
		
		level_45_items_plist		: "res/levels/45/items.plist",
		level_45_items_png			: "res/levels/45/items.png",
		
		level_46_items_plist		: "res/levels/46/items.plist",
		level_46_items_png			: "res/levels/46/items.png",
		
		level_47_items_plist		: "res/levels/47/items.plist",
		level_47_items_png			: "res/levels/47/items.png",
		
		level_48_items_plist		: "res/levels/48/items.plist",
		level_48_items_png			: "res/levels/48/items.png",
		
		level_49_items_plist		: "res/levels/49/items.plist",
		level_49_items_png			: "res/levels/49/items.png",
		
		level_50_items_plist		: "res/levels/50/items.plist",
		level_50_items_png			: "res/levels/50/items.png",
		
		level_51_items_plist		: "res/levels/51/items.plist",
		level_51_items_png			: "res/levels/51/items.png",
		
		level_52_items_plist		: "res/levels/52/items.plist",
		level_52_items_png			: "res/levels/52/items.png",
		
		level_53_items_plist		: "res/levels/53/items.plist",
		level_53_items_png			: "res/levels/53/items.png",
		
		level_54_items_plist		: "res/levels/54/items.plist",
		level_54_items_png			: "res/levels/54/items.png",
		
		level_55_items_plist		: "res/levels/55/items.plist",
		level_55_items_png			: "res/levels/55/items.png",

		level_56_items_plist		: "res/levels/56/items.plist",
		level_56_items_png			: "res/levels/56/items.png",

		level_57_items_plist		: "res/levels/57/items.plist",
		level_57_items_png			: "res/levels/57/items.png",

		level_58_items_plist		: "res/levels/58/items.plist",
		level_58_items_png			: "res/levels/58/items.png",

		level_59_items_plist		: "res/levels/59/items.plist",
		level_59_items_png			: "res/levels/59/items.png",

		level_60_items_plist		: "res/levels/60/items.plist",
		level_60_items_png			: "res/levels/60/items.png",

		level_61_items_plist		: "res/levels/61/items.plist",
		level_61_items_png			: "res/levels/61/items.png",

		level_62_items_plist		: "res/levels/62/items.plist",
		level_62_items_png			: "res/levels/62/items.png",

		level_63_items_plist		: "res/levels/63/items.plist",
		level_63_items_png			: "res/levels/63/items.png",

		level_64_items_plist		: "res/levels/64/items.plist",
		level_64_items_png			: "res/levels/64/items.png",

		level_65_items_plist		: "res/levels/65/items.plist",
		level_65_items_png			: "res/levels/65/items.png",

		level_66_items_plist		: "res/levels/66/items.plist",
		level_66_items_png			: "res/levels/66/items.png",

		//achievements
		medals_plist			: "res/ach/medals.plist",
		medals_png				: "res/ach/medals.png",
		//results
		results_png				:"res/results.png",
		//anticlicker
		anticlicker_png			:"res/anticlicker.png",
		//OGG
		/*amdient_4_ogg			: "res/audio/ambient_4.ogg",
		click_ogg				: "res/audio/click.ogg",
		play_on_ogg				: "res/audio/play_on.ogg",
		play_over_ogg			: "res/audio/play_over.ogg",
		hint_on_ogg				: "res/audio/hint_on.ogg",
		hint_fly_ogg			: "res/audio/hint_fly.ogg",
		hint_ready_ogg			: "res/audio/hint_ready.ogg",
		pickup_ogg				: "res/audio/pickup.ogg",
		anticlicker_ogg			: "res/audio/anticlicker.ogg",
		wrong_click_ogg			: "res/audio/wrong_click.ogg",
		gold_award_ogg			: "res/audio/gold_award.ogg",*/
		//MP3
		amdient_4_mp3			: "res/audio/ambient_4.mp3",
		click_mp3				: "res/audio/click.ogg",
		play_on_mp3				: "res/audio/play_on.ogg",
		play_over_mp3			: "res/audio/play_over.ogg",
		hint_on_mp3				: "res/audio/hint_on.ogg",
		hint_fly_mp3			: "res/audio/hint_fly.ogg",
		hint_ready_mp3			: "res/audio/hint_ready.ogg",
		pickup_mp3				: "res/audio/pickup.ogg",
		anticlicker_mp3			: "res/audio/anticlicker.ogg",
		wrong_click_mp3			: "res/audio/wrong_click.ogg",
		gold_award_mp3			: "res/audio/gold_award.ogg",
		//WAV
		/*amdient_4_wav			: "res/audio/ambient_4.wav",
		click_wav				: "res/audio/click.wav",
		play_on_wav				: "res/audio/play_on.wav",
		play_over_wav			: "res/audio/play_over.wav",
		hint_on_wav				: "res/audio/hint_on.wav",
		hint_fly_wav			: "res/audio/hint_fly.wav",
		hint_ready_wav			: "res/audio/hint_ready.wav",
		pickup_wav				: "res/audio/pickup.wav",
		anticlicker_wav			: "res/audio/anticlicker.wav",
		wrong_click_wav			: "res/audio/wrong_click.wav",
		gold_award_wav: "res/audio/gold_award.wav",*/
		/*Chapter_1_music_wav     : "res/audio/Chapter_1_music.wav",
		Chapter_2_music_wav     : "res/audio/Chapter_2_music.wav",
		Chapter_3_music_wav     : "res/audio/Chapter_3_music.wav",
		Chapter_4_music_wav     : "res/audio/Chapter_4_music.wav",
		Chapter_5_music_wav     : "res/audio/Chapter_5_music.wav",
		Chapter_6_music_wav     : "res/audio/Chapter_6_music.wav",
		Chapter_7_music_wav     : "res/audio/Chapter_7_music.wav",
		Chapter_8_music_wav     : "res/audio/Chapter_8_music.wav",
		Chapter_9_music_wav     : "res/audio/Chapter_9_music.wav",
		Chapter_10_music_wav     : "res/audio/Chapter_10_music.wav",*/
		Chapter_11_music_wav    : "res/audio/Chapter_11_music.mp3"
};


var g_gamelayer = [	
	                   res.hud_png,
	                   res.hud_exit_png,
	                   res.hud_exit_push_png,
	                   res.hud_exit_over_png,
	                   res.results_png,
	                   res.medallion_plist,
	                   res.medallion_png,
	                   ];

var g_selectlevelmenu = [	 
				res.game_mode_png,
				res.game_mode_plist,
				res.left_png,
				res.right_png,
				res.left_selected_png,
				res.right_selected_png,
				res.prev_001_png,
				res.prev_002_png,
				res.prev_003_png,
				res.prev_004_png,
				res.prev_005_png,
				res.prev_006_png,
				res.play_png,
				res.medals_plist,
				res.medals_png,
				res.old_english_ttf,
];

var g_menus = [
				res.play_not_png,
				res.play_selected_png,
				res.game_mode_png,
				res.selectlevel_menu_BG_png,
				res.selectlevel_menu_BG_sides_png,
				res.more_games_png,
				res.game_mode_plist,
				res.prev_001_png,
				res.prev_002_png,
				res.prev_003_png,
				res.prev_004_png,
				res.prev_005_png,
				res.prev_006_png,
				res.main_menu_BG_png,
				res.play_png,
				res.quit_normal_png,
				res.quit_selected_png,
				res.volume1_png,
				res.volume2_png,
				res.volume3_png,
				res.volume4_png,
				res.volume1_big_png,
				res.volume2_big_png,
				res.volume3_big_png,
				res.volume4_big_png,
				res.medals_plist,
				res.medals_png,
				res.old_english_ttf,
				res.play_selectmenu_png,
				res.play_selectmenu_selected_png,
				res.preview_glow_png
];

var g_level_1 = [
                 res.level_1_items_plist,
                 res.level_1_items_png,
                 res.level_bg_1_png
                 ];

var g_level_2 = [
                 res.level_2_items_plist,
                 res.level_2_items_png,
                 res.level_bg_2_png
                 ];
var g_level_3 = [
                 res.level_3_items_plist,
                 res.level_3_items_png,
                 res.level_bg_3_png
                 ];
var g_level_4 = [
                 res.level_4_items_plist,
                 res.level_4_items_png,
                 res.level_bg_4_png
                 ];
var g_level_5 = [
                 res.level_5_items_plist,
                 res.level_5_items_png,
                 res.level_bg_5_png
                 ];

var g_level_6 = [
                 res.level_6_items_plist,
                 res.level_6_items_png,
                 res.level_bg_6_png
                 ];

var g_level_7 = [
                 res.level_7_items_plist,
                 res.level_7_items_png,
                 res.level_bg_7_png
                 ];

var g_level_8 = [
                 res.level_8_items_plist,
                 res.level_8_items_png,
                 res.level_bg_8_png
                 ];

var g_level_9 = [
                 res.level_9_items_plist,
                 res.level_9_items_png,
                 res.level_bg_9_png
                 ];

var g_level_10 = [
                  res.level_10_items_plist,
                  res.level_10_items_png,
                  res.level_bg_10_png
                  ];

var g_level_11 = [
                  res.level_11_items_plist,
                  res.level_11_items_png,
                  res.level_bg_11_png
                  ];

var g_level_12 = [
                  res.level_12_items_plist,
                  res.level_12_items_png,
                  res.level_bg_12_png
                  ];

var g_level_13 = [
                  res.level_13_items_plist,
                  res.level_13_items_png,
                  res.level_bg_13_png
                  ];

var g_level_14 = [
                  res.level_14_items_plist,
                  res.level_14_items_png,
                  res.level_bg_14_png
                  ];

var g_level_15 = [
                  res.level_15_items_plist,
                  res.level_15_items_png,
                  res.level_bg_15_png
                  ];

var g_level_16 = [
                  res.level_16_items_plist,
                  res.level_16_items_png,
                  res.level_bg_16_png
                  ];

var g_level_17 = [
                  res.level_17_items_plist,
                  res.level_17_items_png,
                  res.level_bg_17_png
                  ];

var g_level_18 = [
                  res.level_18_items_plist,
                  res.level_18_items_png,
                  res.level_bg_18_png
                  ];

var g_level_19 = [
                  res.level_19_items_plist,
                  res.level_19_items_png,
                  res.level_bg_19_png
                  ];

var g_level_20 = [
                  res.level_20_items_plist,
                  res.level_20_items_png,
                  res.level_bg_20_png
                  ];

var g_level_21 = [
                  res.level_21_items_plist,
                  res.level_21_items_png,
                  res.level_bg_21_png
                  ];

var g_level_22 = [
                  res.level_22_items_plist,
                  res.level_22_items_png,
                  res.level_bg_22_png
                  ];

var g_level_23 = [
                  res.level_23_items_plist,
                  res.level_23_items_png,
                  res.level_bg_23_png
                  ];

var g_level_24 = [
                  res.level_24_items_plist,
                  res.level_24_items_png,
                  res.level_bg_24_png
                  ];

var g_level_25 = [
                  res.level_25_items_plist,
                  res.level_25_items_png,
                  res.level_bg_25_png
                  ];

var g_level_26 = [
                  res.level_26_items_plist,
                  res.level_26_items_png,
                  res.level_bg_26_png
                  ];

var g_level_27 = [
                  res.level_27_items_plist,
                  res.level_27_items_png,
                  res.level_bg_27_png
                  ];

var g_level_28 = [
                  res.level_28_items_plist,
                  res.level_28_items_png,
                  res.level_bg_28_png
                  ];

var g_level_29 = [
                  res.level_29_items_plist,
                  res.level_29_items_png,
                  res.level_bg_29_png
                  ];

var g_level_30 = [
                  res.level_30_items_plist,
                  res.level_30_items_png,
                  res.level_bg_30_png
                  ];

var g_level_31 = [
                  res.level_31_items_plist,
                  res.level_31_items_png,
                  res.level_bg_31_png
                  ];

var g_level_32 = [
                 res.level_32_items_plist,
                 res.level_32_items_png,
                 res.level_bg_32_png
                 ];
var g_level_33 = [
                 res.level_33_items_plist,
                 res.level_33_items_png,
                 res.level_bg_33_png
                 ];
var g_level_34 = [
                 res.level_34_items_plist,
                 res.level_34_items_png,
                 res.level_bg_34_png
                 ];
var g_level_35 = [
                 res.level_35_items_plist,
                 res.level_35_items_png,
                 res.level_bg_5_png
                 ];

var g_level_36 = [
                 res.level_36_items_plist,
                 res.level_36_items_png,
                 res.level_bg_36_png
                 ];

var g_level_37 = [
                 res.level_37_items_plist,
                 res.level_37_items_png,
                 res.level_bg_37_png
                 ];

var g_level_38 = [
                 res.level_38_items_plist,
                 res.level_38_items_png,
                 res.level_bg_38_png
                 ];

var g_level_39 = [
                 res.level_39_items_plist,
                 res.level_39_items_png,
                 res.level_bg_39_png
                 ];

var g_level_40 = [
                  res.level_40_items_plist,
                  res.level_40_items_png,
                  res.level_bg_40_png
                  ];

var g_level_41 = [
                  res.level_41_items_plist,
                  res.level_41_items_png,
                  res.level_bg_41_png
                  ];

var g_level_42 = [
                  res.level_42_items_plist,
                  res.level_42_items_png,
                  res.level_bg_42_png
                  ];

var g_level_43 = [
                  res.level_43_items_plist,
                  res.level_43_items_png,
                  res.level_bg_43_png
                  ];

var g_level_44 = [
                  res.level_44_items_plist,
                  res.level_44_items_png,
                  res.level_bg_44_png
                  ];

var g_level_45 = [
                  res.level_45_items_plist,
                  res.level_45_items_png,
                  res.level_bg_45_png
                  ];

var g_level_46 = [
                  res.level_46_items_plist,
                  res.level_46_items_png,
                  res.level_bg_46_png
                  ];

var g_level_47 = [
                  res.level_47_items_plist,
                  res.level_47_items_png,
                  res.level_bg_47_png
                  ];

var g_level_48 = [
                  res.level_48_items_plist,
                  res.level_48_items_png,
                  res.level_bg_48_png
                  ];

var g_level_49 = [
                  res.level_49_items_plist,
                  res.level_49_items_png,
                  res.level_bg_49_png
                  ];

var g_level_50 = [
                  res.level_50_items_plist,
                  res.level_50_items_png,
                  res.level_bg_50_png
                  ];

var g_level_51 = [
                  res.level_51_items_plist,
                  res.level_51_items_png,
                  res.level_bg_51_png
                  ];

var g_level_52 = [
                  res.level_52_items_plist,
                  res.level_52_items_png,
                  res.level_bg_52_png
                  ];

var g_level_53 = [
                  res.level_53_items_plist,
                  res.level_53_items_png,
                  res.level_bg_53_png
                  ];

var g_level_54 = [
                  res.level_54_items_plist,
                  res.level_54_items_png,
                  res.level_bg_54_png
                  ];

var g_level_55 = [
                  res.level_55_items_plist,
                  res.level_55_items_png,
                  res.level_bg_55_png
                  ];

var g_level_56 = [
                  res.level_56_items_plist,
                  res.level_56_items_png,
                  res.level_bg_56_png
                  ];

var g_level_57 = [
                  res.level_57_items_plist,
                  res.level_57_items_png,
                  res.level_bg_57_png
                  ];

var g_level_58 = [
                  res.level_58_items_plist,
                  res.level_58_items_png,
                  res.level_bg_58_png
                  ];

var g_level_59 = [
                  res.level_59_items_plist,
                  res.level_59_items_png,
                  res.level_bg_59_png
                  ];

var g_level_60 = [
                  res.level_60_items_plist,
                  res.level_60_items_png,
                  res.level_bg_60_png
                  ];

var g_level_61 = [
                  res.level_61_items_plist,
                  res.level_61_items_png,
                  res.level_bg_61_png
                  ];

var g_level_62 = [
                  res.level_62_items_plist,
                  res.level_62_items_png,
                  res.level_bg_62_png
                  ];
var g_level_63 = [
                  res.level_63_items_plist,
                  res.level_63_items_png,
                  res.level_bg_63_png
                  ];
var g_level_64 = [
                  res.level_64_items_plist,
                  res.level_64_items_png,
                  res.level_bg_64_png
                  ];
var g_level_65 = [
                  res.level_65_items_plist,
                  res.level_65_items_png,
                  res.level_bg_65_png
                  ];
var g_level_66 = [
                  res.level_66_items_plist,
                  res.level_66_items_png,
                  res.level_bg_66_png
                  ];