//This contains routines for building the download pages


//Firstly lets store all the locations:
//Format:
//name&gameUrl&sidUrl&manualUrl&walkthroughUrl&coverUrl&screenshot url&reviewUrl|
//R#ows separated by |, columns separated by &

var data = ""
data += '3D Construction Kit&../games/3d_construction_kit.zip&&&&../images/3d_construction_kit.jpg&../images/3d_construction_kit_screenshot.jpg&|'
data += '4th and Inches&../games/4th_and_inches.zip&../sids/4th_and_inches.sid&&&../images/4th_and_inches.jpg&../images/4th_and_inches_screenshot.jpg&|'
data += '720&../games/720.zip&../sids/720.sid&&&../images/720.jpg&../images/720_screenshot.jpg&|'
data += 'ACE&../games/ace.zip&&&&../images/ace.jpg&../images/ace_screenshot.jpg&|'
data += 'ACE 2&../games/ace_2.zip&../sids/ace_2.sid&&&../images/ace_2.jpg&../images/ace_2_screenshot.jpg&|'
data += 'Agent X 2&../games/agent_x_2.zip&&&agent_x_2_walkthrough.htm&../images/agent_x_2.jpg&../images/agent_x_2_screenshot.jpg&agent_x_2_walkthrough.htm|'
data += 'Alien&../games/alien.zip&&&&../images/alien.jpg&../images/alien_screenshot.jpg&|'
data += 'Aliens&../games/aliens.zip&../sids/aliens.sid&&&../images/aliens.jpg&../images/aliens_screenshot.jpg&|'
data += 'Aliens (American Version)&../games/aliens_american_version.zip&&&&../images/aliens_american_version.jpg&../images/aliens_american_version_screenshot.jpg&|'
data += 'Alien 3&../games/alien_3.zip&../sids/alien_3.sid&../manuals/alien_3.txt&&../images/alien_3.jpg&../images/alien_3_screenshot.jpg&|'
data += 'Airwolf&../games/airwolf.zip&../sids/airwolf.sid&../manuals/airwolf.txt&&../images/airwolf.jpg&../images/airwolf_screenshot.jpg&|'
data += 'Alter Ego&../games/alter_ego.zip&&../manuals/alter_ego.txt&&../images/alter_ego.jpg&../images/alter_ego_screenshot.jpg&|'
data += 'APB&../games/apb.zip&&&&../images/apb.jpg&../images/apb_screenshot.jpg&|'
data += 'Arkanoid&../games/arkanoid.zip&../sids/arkanoid.sid&&&../images/arkanoid.jpg&../images/arkanoid_screenshot.jpg&|'
data += 'Arkanoid 2&../games/arkanoid_2_revenge_of_doh.zip&../sids/arkanoid_2_revenge_of_doh.sid&&&../images/arkanoid_2.jpg&../images/arkanoid_2_revenge_of_doh_screenshot.jpg&|'
data += 'Armalyte&../games/armalyte.zip&&&&../images/armalyte.jpg&../images/armalyte_screenshot.jpg&|'
data += 'Arnie&../games/arnie.zip&&&&../images/arnie.jpg&../images/arnie_screenshot.jpg&|'
data += 'Asylum&../games/asylum.zip&&&&../images/asylum.jpg&../images/asylum_screenshot.jpg&|'
data += 'Auf Wiedersehen Monty&../games/auf_wiedersehen_monty.zip&../sids/auf_wiedersehen_monty.sid&&&../images/auf_wiedersehen_monty.jpg&../images/auf_wiedersehen_monty_screenshot.jpg&|'
data += 'Barbarian&../games/barbarian.zip&../sids/barbarian.sid&../manuals/barbarian.txt&&../images/barbarian.jpg&../images/barbarian_screenshot.jpg&../html/fighting_games_comparison.htm#barbarian|'
data += 'Barbarian 2&../games/barbarian_2.zip&../sids/barbarian_2.sid&&barbarian_2_walkthrough.htm&../images/barbarian_2.jpg&../images/barbarian_2_screenshot.jpg&|'
data += 'Batman (The Caped Crusader)&../games/batman_the_caped_crusader.zip&../sids/batman_the_caped_crusader.sid&../manuals/batman_the_caped_crusader.txt&batman_the_caped_crusader_walkthrough.htm&../images/batman_the_caped_crusader.JPG&../images/batman_the_caped_crusader_screenshot.jpg&|'
data += 'Batman (The Movie)&../games/batman_the_movie.zip&&&&../images/batman_the_movie.jpg&../images/batman_the_movie_screenshot.jpg&|'
data += 'BMX Simulator&../games/bmx_simulator.zip&../sids/bmx_simulator.sid&../manuals/bmx_simulator.txt&../html/bmx_simulator_walkthrough.htm&../images/bmx_simulator.jpg&../images/bmx_simulator_screenshot.jpg&../html/bmx_simulator_walkthrough.htm|'
data += 'Bubble Bobble&../games/bubble_bobble.zip&../sids/bubble_bobble.sid&&&../images/bubble_bobble.jpg&../images/bubble_bobble_screenshot.jpg&|'
data += 'Buggy Boy&../games/buggy_boy.zip&&../manuals/buggy_boy.txt&&../images/buggy_boy.jpg&../images/buggy_boy_screenshot.jpg&|'
data += 'California Games&../games/california_games.zip&../sids/california_games.sid&../manuals/california_games.txt&&../images/california_games.jpg&../images/california_games_screenshot.jpg&|'
data += 'Carnage&../games/carnage.zip&&&&../images/carnage.jpg&../images/carnage_screenshot.jpg&|'
data += 'Castle Master&../games/castle_master.zip&&&&../images/castle_master.jpg&../images/castle_master_screenshot.jpg&|'
data += 'Chip\'s Challenge&../games/chips_challenge.zip&../sids/chips_challenge.sid&&&../images/chips_challenge.jpg&../images/chips_challenge_screenshot.jpg&|'
data += 'Chuck Rock&../games/chuck_rock.zip&../sids/chuck_rock.sid&&&../images/chuck_rock.jpg&../images/chuck_rock_screenshot.jpg&|'
data += 'Circus&../games/circus.zip&&&circus_walkthrough.htm&../images/circus.jpg&../images/circus_screenshot.jpg&|'
data += 'Colony&../games/colony.zip&../sids/colony.sid&&&../images/colony.jpg&../images/colony_screenshot.jpg&colony_review.htm|'
data += 'Continental Circus&../games/continental_circus.zip&&&&../images/continental_circus.jpg&../images/continental_circus_screenshot.jpg&|'
data += 'Creatures&../games/creatures.zip&../sids/creatures.sid&../manuals/creatures.txt&&../images/creatures.jpg&../images/creatures_screenshot.jpg&|'
data += 'Creatures 2&../games/creatures_2.zip&../sids/creatures_2.sid&&&../images/creatures_2.jpg&../images/creatures_2_screenshot.jpg&|'
data += 'Crystal Kingdom Dizzy&../games/crystal_kingdom_dizzy.zip&&&&../images/crystal_kingdom_dizzy.jpg&../images/crystal_kingdom_dizzy_screenshot.jpg&|'
data += 'Dan Dare&../games/dan_dare.zip&../sids/dan_dare.sid&&&../images/dan_dare.jpg&../images/dan_dare_screenshot.jpg&|'
data += 'Dan Dare 2&../games/dan_dare_2.zip&&&&../images/dan_dare_2.jpg&../images/dan_dare_2_screenshot.jpg&|'
data += 'Dan Dare 3&../games/dan_dare_3.zip&../sids/dan_dare_3.sid&&&../images/dan_dare_3.jpg&../images/dan_dare_3_screenshot.jpg&|'
data += 'Deactivators&../games/deactivators.zip&&&&../images/deactivators.jpg&../images/deactivators_screenshot.jpg&|'
data += 'Defender of the Crown&../games/defender_of_the_crown.zip&../sids/defender_of_the_crown.sid&../manuals/defender_of_the_crown.txt&&../images/defender_of_the_crown.jpg&../images/defender_of_the_crown_screenshot.jpg&../html/defender_of_the_crown_review.htm|'
data += 'Delta&../games/delta.zip&../sids/delta.sid&&&../images/delta.jpg&../images/delta_screenshot.jpg&|'
data += 'Dizzy&../games/dizzy_collection.zip&../sids/Dizzy.sid&&&../images/dizzy.jpg&../images/dizzy_screenshot.jpg&|'
data += 'Dizzy Down The Rapids&../games/dizzy_collection.zip&&&&../images/dizzy_down_the_rapids.jpg&../images/dizzy_down_the_rapids_screenshot.jpg&|'
data += 'Dizzy Prince Of The Yolkfolk&../games/dizzy_prince_of_the_yolkfolk.zip&&&dizzy_prince_of_the_yolkfolk_walkthrough.htm&../images/dizzy_prince_of_the_yolkfolk.jpg&../images/dizzy_prince_of_the_yolkfolk_screenshot.jpg&|'
data += 'Elite&../games/elite.zip&../sids/elite.sid&../manuals/elite.txt&&../images/elite.jpg&../images/elite_screenshot.jpg&|'
data += 'Elvira 2&../games/elvira_2.zip&&&&../images/elvira_2.jpg&../images/elvira_2_screenshot.jpg&|'
data += 'Equinox&../games/equinox.zip&&&&../images/equinox.jpg&../images/equinox_screenshot.jpg&|'
data += 'Escape from the Planet of the Robot Monsters&../games/escape_from_the_planet_of_the_robot_monsters.zip&../sids/escape_from_the_planet_of_the_robot_monsters.sid&&&../images/escape_from_the_planet_of_the_robot_monsters.jpg&../images/escape_from_the_planet_of_the_robot_monsters_screenshot.jpg&|'
data += 'Exile&../games/exile.zip&&&&../images/exile.jpg&../images/exile_screenshot.jpg&|'
data += 'Exolon&../games/exolon.zip&../sids/exolon.sid&&&../images/exolon.jpg&../images/exolon_screenshot.jpg&|'
data += 'F16 Combat Pilot&../games/f16_combat_pilot.zip&&&&../images/f16_combat_pilot.jpg&../images/f16_combat_pilot_screenshot.jpg&|'
data += 'Fantasy World Dizzy&../games/dizzy_collection.zip&../sids/Fantasy_World_Dizzy.sid&&&../images/fantasy_world_dizzy.jpg&../images/fantasy_world_dizzy_screenshot.jpg&|'
data += 'Fiendish Freddy\'s Big Top of Fun&../games/fiendish_freddys_big_top_of_fun.zip&../sids/fiendish_freddys_big_top_of_fun.sid&&&../images/fiendish_freddys_big_top_of_fun.jpg&../images/fiendish_freddys_big_top_of_fun_screenshot.jpg&|'
data += 'First Samurai&../games/first_samuri.zip&&&&../images/first_samurai.jpg&../images/first_samuri_screenshot.jpg&|'
data += 'Fist&../games/fist.zip&../sids/fist.sid&../manuals/fist.txt&&../images/fist.jpg&../images/fist_screenshot.jpg&../html/fighting_games_comparison.htm#fist|'
data += 'Fist+&../games/fist_plus.zip&../sids/fist_plus.sid&&&../images/fist_plus.jpg&../images/fist_plus_screenshot.jpg&../html/fighting_games_comparison.htm#fist+|'
data += 'Flash Gordon&../games/flash_gordon.zip&../sids/flash_gordon.sid&../manuals/flash_gordon.txt&&../images/flash_gordon.jpg&../images/flash_gordon_screenshot.jpg&|'
data += 'Flimbo\'s Quest&../games/flimbos_quest.zip&&&&../images/flimbos_quest.jpg&../images/flimbos_quest_screenshot.jpg&|'
data += 'Football Manager 3&../games/football_manager_3.zip&&&&&../images/football_manager_3_screenshot.jpg&|'
data += 'Frankie Goes To Hollywood&../games/frankie_goes_to_hollywood.zip&../sids/frankie_goes_to_hollywood.sid&&&../images/frankie_goes_to_hollywood.jpg&../images/frankie_goes_to_hollywood_screenshot.jpg&|'
data += 'Ghostbusters&../games/ghostbusters.zip&../sids/ghostbusters.sid&../manuals/ghostbusters.txt&ghostbusters_walkthrough.htm&../images/ghostbusters.jpg&../images/ghostbusters_screenshot.jpg&ghostbusters_walkthrough.htm|'
data += 'Ghostbusters 2&../games/ghostbusters_2.zip&../sids/ghostbusters_II.sid&&&../images/ghostbusters_2.jpg&../images/ghostbusters_2_screenshot.jpg&|'
data += 'Ghosts n Goblins&../games/ghosts_n_goblins.zip&../sids/ghosts_n_goblins.sid&&&../images/ghosts_n_goblins.jpg&../images/ghosts_n_goblins_screenshot.jpg&|'
data += 'Giana Sisters&../games/giana_sisters.zip&../sids/giana_sisters.sid&&&../images/giana_sisters.jpg&../images/giana_sisters_screenshot.jpg&|'
data += 'Grand Prix Circuit&../games/grand_prix_circuit.zip&&&&../images/grand_prix_circuit.jpg&../images/grand_prix_circuit_screenshot.jpg&|'
data += 'Grand Prix Simulator&../games/grand_prix_simulator.zip&../sids/grand_prix_simulator.sid&../manuals/grand_prix_simulator.txt&&../images/grand_prix_simulator.jpg&../images/grand_prix_simulator_screenshot.jpg&../html/grand_prix_simulator_vs_ironman_offroad.htm#grand_prix_simulator|'
data += 'Graphic Adventure Creator&../games/graphic_adventure_creator.zip&&&&../images/graphic_adventure_creator.jpg&../images/graphic_adventure_creator_screenshot.jpg&|'
data += 'Green Beret&../games/green_beret.zip&../sids/green_beret.sid&&&../images/green_beret.jpg&../images/green_beret_screenshot.jpg&|'
data += 'Hacker&../games/hacker.zip&../sids/hacker.sid&../manuals/hacker.txt&hacker_walkthrough.htm&../images/hacker.jpg&../images/hacker_screenshot.jpg&|'
data += 'Hacker 2&../games/hacker_2.zip&&&&../images/hacker_2.jpg&../images/hacker_2_screenshot.jpg&|'
data += 'Head Over Heels&../games/head_over_heels.zip&&&&../images/head_over_heels.jpg&../images/head_over_heels_screenshot.jpg&|'
data += 'Ikari Warriors&../games/ikari_warriors.zip&../sids/ikari_warriors.sid&../manuals/ikari_warriors.txt&&../images/ikari_warriors.jpg&../images/ikari_warriors_screenshot.jpg&|'
data += 'Impossible Mission&../games/impossible_mission.zip&../sids/impossible_mission.sid&../manuals/impossible_mission.txt&&../images/impossible_mission.jpg&../images/impossible_mission_screenshot.jpg&|'
data += 'Impossible Mission 2&../games/impossible_mission_2.zip&../sids/impossible_mission_2.sid&&&../images/impossible_mission_2.jpg&../images/impossible_mission_2_screenshot.jpg&|'
data += 'Indiana Jones and the Last Crusade&../games/indiana_jones_and_the_last_crusade.zip&&&&../images/indiana_jones_and_the_last_crusade.jpg&../images/indiana_jones_and_the_last_crusade_screenshot.jpg&|'
data += 'Indiana Jones and the Temple of Doom&../games/indiana_jones_and_the_temple_of_doom.zip&../sids/indiana_jones_and_the_temple_of_doom.sid&&&../images/indiana_jones_and_the_temple_of_doom.jpg&../images/indiana_jones_and_the_temple_of_doom_screenshot.jpg&|'
data += 'Indy Heat&../games/indy_heat.zip&&&&../images/indy_heat.jpg&../images/indy_heat_screenshot.jpg&|'
data += 'IK+&../games/international_karate_plus.zip&&../manuals/international_karate_plus.txt&&../images/international_karate_plus.jpg&../images/international_karate_plus_screenshot.jpg&../html/fighting_games_comparison.htm#ik+|'
data += 'Into The Eagles Nest&../games/into_the_eagles_nest.zip&../sids/into_the_eagles_nest.sid&&&../images/into_the_eagles_nest.jpg&../images/into_the_eagles_nest_screenshot.jpg&|'
data += 'Invade a load&../games/invade_a_load.zip&&&&&../images/invade_a_load_screenshot.jpg&|'
data += 'IO - Into Oblivion&../games/io.zip&../sids/io.sid&&&../images/io.jpg&../images/io_screenshot.jpg&|'
data += 'Ironman Offroad&../games/ironman_offroad.zip&&&&../images/ironman_offroad.jpg&../images/ironman_offroad_screenshot.jpg&../html/grand_prix_simulator_vs_ironman_offroad.htm#ironman_offroad|'
data += 'Jack the Nipper 2&../games/jack_the_nipper_2.zip&../sids/jack_the_nipper_2.sid&&jack_the_nipper_2_walkthrough.htm&&../images/jack_the_nipper_2_end_a.jpg&|'
data += 'James Pond 2 - Robocod&../games/james_pond_2_robocod.zip&&&&../images/robocod.jpg&../images/james_pond_2_robocod_screenshot.jpg&|'
data += 'Jet Bike Simulator&../games/jet_bike_simulator.zip&&&&../images/jet_bike_simulator.jpg&../images/jet_bike_simulator_screenshot.jpg&|'
data += 'Kane&../games/kane.zip&&&&../images/kane.jpg&../images/kane_screenshot.jpg&|'
data += 'Kikstart&../games/kikstart.zip&../sids/kikstart.sid&../manuals/kikstart.txt&&../images/kikstart.jpg&../images/kikstart_screenshot.jpg&|'
data += 'Kikstart 2&../games/kikstart_2.zip&../sids/kikstart_II.sid&../manuals/kikstart_2.txt&&&../images/kikstart_2_screenshot.jpg&|'
data += 'Kwik Snax Dizzy&../games/kwik_snax_dizzy.zip&&&&&../images/kwik_snax_dizzy_screenshot.jpg&|'
data += 'Last Ninja&../games/last_ninja.zip&../sids/Last_Ninja.sid&../manuals/last_ninja.txt&last_ninja_walkthrough.htm&../images/last_ninja.jpg&../images/last_ninja_screenshot.jpg&|'
data += 'Last Ninja 2&../games/last_ninja_2.zip&../sids/Last_Ninja_2.sid&../manuals/last_ninja_2.txt&last_ninja_2_walkthrough.htm&../images/last_ninja_2.jpg&../images/last_ninja_2_screenshot.jpg&|'
data += 'Last Ninja 3&../games/last_ninja_3.zip&../sids/Last_Ninja_3.sid&&last_ninja_3_walkthrough.htm&../images/last_ninja_3.jpg&../images/last_ninja_3_screenshot.jpg&|'
data += 'Last Ninja Remix&../games/last_ninja_remix.zip&../sids/Last_Ninja_Remix.sid&&&../images/last_ninja_remix.jpg&../images/last_ninja_remix_screenshot.jpg&|'
data += 'Lemmings&../games/lemmings.zip&../sids/lemmings.sid&../manuals/lemmings.txt&&&../images/lemmings_screenshot.jpg&|'
data += 'Little Computer People&../games/little_computer_people.zip&../sids/little_computer_people.sid&&&../images/little_computer_people.jpg&../images/little_computer_people_screenshot.jpg&|'
data += 'Liverpool&../games/liverpool.zip&&&&&../images/liverpool_screenshot.jpg&../html/footy_games_comparison.htm#liverpool|'
data += 'Lord of the Rings&../games/lord_of_the_rings.zip&../sids/lord_of_the_rings.sid&&&&../images/lord_of_the_rings_screenshot.jpg&|'
data += 'Lotus Esprit Turbo Challenge&../games/lotus_esprit_turbo_challenge.zip&../sids/lotus_esprit_turbo_challenge.sid&../manuals/lotus_esprit_turbo_challenge.txt&&&../images/lotus_esprit_turbo_challenge_screenshot.jpg&|'
data += 'Magicland Dizzy&../games/dizzy_collection.zip&&&&../images/dizzy_collection.jpg&../images/dizzy_magicland_screenshot.jpg&|'
data += 'Mario Bros&../games/mario_bros.zip&../sids/mario_bros.sid&&&&../images/mario_bros_screenshot.jpg&|'
data += 'Master of Magic&../games/master_of_magic.zip&&../manuals/master_of_magic.txt&&../images/master_of_magic.jpg&../images/master_of_magic_screenshot.jpg&|'
data += 'Mayhem in Monsterland&../games/mayhem_in_monsterland.zip&../sids/mayhem_in_monsterland.sid&&&&../images/mayhem_in_monsterland_screenshot.jpg&|'
data += 'Mercenary&../games/mercenary.zip&&&&&../images/mercenary_screenshot.jpg&|'
data += 'Microprose Soccer&../games/microprose_soccer.zip&../sids/microprose_soccer.sid&&../html/microprose_soccer_walkthrough.htm&../images/microprose_soccer.jpg&../images/microprose_soccer_screenshot.jpg&../html/footy_games_comparison.htm#microprose|'
data += 'Miniput&../games/miniput.zip&&../manuals/miniput.txt&&&../images/miniput_screenshot.jpg&|'
data += 'Monopoly&../games/monopoly.zip&&&&&../images/monopoly_screenshot.jpg&|'
data += 'Monty Mole&../games/monty_mole.zip&../sids/monty_mole.sid&&&&../images/monty_mole_screenshot.jpg&|'
data += 'Monty on the Run&../games/monty_on_the_run.zip&../sids/monty_on_the_run.sid&&&&../images/monty_on_the_run_screenshot.jpg&|'
data += 'Myth&../games/myth.zip&../sids/myth.sid&&&&../images/myth_screenshot.jpg&|'
data += 'Narc&../games/narc.zip&&&&&../images/narc_screenshot.jpg&|'
data += 'New Zealand Story&../games/new_zealand_story.zip&&&&../images/new_zealand_story.jpg&../images/new_zealand_story_screenshot.jpg&|'
data += 'On Court Tennis&../games/on_court_tennis.zip&../sids/on_court_tennis.sid&&&&../images/on_court_tennis_screenshot.jpg&|'
data += 'One Man and his Droid&../games/one_man_and_his_droid.zip&../sids/one_man_and_his_droid.sid&&&&../images/one_man_and_his_droid_screenshot.jpg&|'
data += 'Operation Wolf&../games/operation_wulf.zip&../sids/operation_wolf.sid&&&&../images/operation_wolf_screenshot.jpg&|'
data += 'Outrun&../games/outrun.zip&../sids/Out_Run.sid&&&../images/outrun.jpg&../images/outrun_screenshot.jpg&|'
data += 'Outrun Europa&../games/outrun_europa.zip&../sids/outrun_europa.sid&&&&../images/outrun_europa_screenshot.jpg&|'
data += 'Pacland&../games/pacgame.zip&&&&../images/pacland.jpg&../images/pacland_screenshot.jpg&|'
data += 'Pacman&../games/pacman.zip&&&&&../images/pacman_screenshot.jpg&|'
data += 'Panic Dizzy&../games/dizzy_collection.zip&&&&&../images/panic_dizzy_screenshot.jpg&|'
data += 'Paperboy&../games/paperboy.zip&../sids/paperboy.sid&&&&../images/paperboy_screenshot.jpg&|'
data += 'Paradroid&../games/paradroid.zip&../sids/paradroid.sid&../manuals/paradroid.txt&&&../images/paradroid_screenshot.jpg&|'
data += 'Parallax&../games/parallax.zip&../sids/parallax.sid&&&&../images/parallax_screenshot.jpg&|'
data += 'Pirates!&../games/pirates.zip&&../manuals/pirates.txt&&../images/pirates.jpg&../images/pirates_screenshot.jpg&|'
data += 'Pitfall&../games/pitfall.zip&&&&&../images/pitfall_screenshot.jpg&|'
data += 'Pitstop 2&../games/pitstop_2.zip&&&&&../images/pitstop_2_screenshot.jpg&|'
data += 'Planetfall&../games/planetfall.zip&&&&&../images/planetfall_screenshot.jpg&|'
data += 'Platoon&../games/platoon.zip&../sids/Platoon.sid&../manuals/platoon.txt&platoon_walkthrough.htm&../images/platoon.jpg&../images/platoon_screenshot.jpg&|'
data += 'Power Drift&../games/power_drift.zip&../sids/power_drift.sid&&&&../images/power_drift_screenshot.jpg&|'
data += 'Pro Ski Simulator&../games/pro_ski_simulator.zip&&&&../images/pro_ski_simulator.jpg&../images/pro_ski_simulator_screenshot.jpg&|'
data += 'Psycho Pigs UXB&../games/psycho_pigs_uxb.zip&../sids/psycho_pigs_uxb.sid&&&&../images/psycho_pigs_uxb_screenshot.jpg&|'
data += 'Quest for the Golden Eggcup&../games/quest_for_the_golden_eggcup.zip&&&&../images/quest_for_the_golden_eggcup.jpg&../images/quest_for_the_golden_eggcup_screenshot.jpg&|'
data += 'Racing Destruction Set&../games/racing_destruction_set.zip&&&&&../images/racing_destruction_set_screenshot.jpg&|'
data += 'Raid Over Moscow&../games/raid_over_moscow.zip&&../manuals/raid_over_moscow.txt&&&../images/raid_over_moscow_screenshot.jpg&|'
data += 'Rainbow Islands&../games/rainbow_island.zip&../sids/rainbow_islands.sid&&&&../images/rainbow_islands_screenshot.jpg&|'
data += 'Rambo (First Blood Part 2)&../games/rambo_first_blood_part_2.zip&../sids/rambo_first_blood_part_2.sid&&&&../images/rambo_screenshot.jpg&|'
data += 'Ramparts&../games/ramparts.zip&&&&&../images/ramparts_screenshot.jpg&|'
data += 'Renegade&../games/renegade.zip&../sids/renegade.sid&&&../images/renegade.jpg&../images/renegade_screenshot.jpg&|'
data += 'Rescue on Fractulus&../games/rescue_on_fractulus.zip&&&&../images/rescue_on_fractalus.jpg&../images/rescue_on_fractulus_screenshot.jpg&|'
data += 'Rick Dangerous&../games/rick_dangerous.zip&&&&&../images/rick_dangerous_screenshot.jpg&|'
data += 'Rick Dangerous 2&../games/rick_dangerous_2.zip&&&&../images/rick_dangerous_2.jpg&../images/rick_dangerous_2_screenshot.jpg&|'
data += 'Rigel\'s Revenge&../games/rigels_revenge.zip&&&&../images/rigels_revenge_c64.jpg&../images/rigels_revenge_screenshot.jpg&|'
data += 'Rock and Wrestle&../games/rock_and_wrestle.zip&../sids/rock_n_wrestle.sid&../manuals/Rockwres.txt&../html/rock_and_wrestle_review.htm&../images/rock_n_wrestle.jpg&../images/rock_and_wrestle_screenshot.jpg&../html/rock_and_wrestle_review.htm|'
data += 'Rodland&../games/rodland.zip&&&&../images/rodland.jpg&../images/rodland_screenshot.jpg&|'
data += 'Sabre Wulf&../games/saber_wulf.zip&&&&&../images/sabre_wulf_screenshot.jpg&|'
data += 'Scumball&../games/scumball.zip&../sids/scumball.sid&&../html/scumball_review.htm&&../images/scumball_screenshot.jpg&../html/scumball_review.htm|'
data += 'Shadows of Mordor&../games/shadows_of_mordor.zip&&&&&../images/shadows_of_mordor_screenshot.jpg&|'
data += 'Shoot em up Construction Kit&../games/shoot_em_up_construction_kit.zip&../sids/shoot_em_up_construction_kit.sid&&&&../images/shoot_em_up_construction_kit_screenshot.jpg&|'
data += 'Short Circuit&../games/short_circuit.zip&../sids/short_circuit.sid&&&../images/short_circuit.jpg&../images/short_circuit_screenshot.jpg&|'
data += 'Silent Service&../games/silent_service.zip&&../manuals/silent_service.txt&&&../images/silent_service_screenshot.jpg&|'
data += 'Skool Daze&../games/skool_daze.zip&../sids/skool_daze.sid&&&&../images/skool_daze_screenshot.jpg&|'
data += 'Slicks&../games/slicks.zip&&&&&../images/slicks_screenshot.jpg&|'
data += 'Smash TV&../games/smash_tv.zip&&../manuals/smash_tv.txt&&../images/smash_tv.jpg&../images/smash_tv_screenshot.jpg&|'
data += 'Space Crusade&../games/space_crusade.zip&../sids/space_crusade.sid&&&../images/space_crusade.jpg&../images/space_crusade_screenshot.jpg&|'
data += 'Space Gun&../games/space_gun.zip&../sids/space_gun.sid&&&../images/space_gun.jpg&../images/space_gun_screenshot.jpg&|'
data += 'Spellbound Dizzy&../games/dizzy_collection.zip&&&&&../images/spellbound_dizzy_screenshot.jpg&|'
data += 'Spindizzy&../games/spindizzy.zip&&&&&../images/spindizzy_screenshot.jpg&|'
data += 'Spore&../games/spore.zip&../sids/spore.sid&&&&../images/spore_screenshot.jpg&|'
data += 'Spy vs Spy&../games/spy_vs_spy_collection.zip&../sids/spy_vs_spy.sid&../manuals/spy_vs_spy_collection.zip&&&../images/spy_vs_spy_screenshot.jpg&|'
data += 'Spy vs Spy 2&../games/spy_vs_spy_collection.zip&../sids/spy_vs_spy_2_island_caper.sid&../manuals/spy_vs_spy_collection.zip&&&../images/spy_vs_spy_2_screenshot.jpg&|'
data += 'Spy vs Spy 3&../games/spy_vs_spy_collection.zip&../sids/spy_vs_spy_3_arctic_antics.sid&../manuals/spy_vs_spy_collection.zip&&&../images/spy_vs_spy_3_screenshot.jpg&|'
data += 'Star Wars&../games/star_wars.zip&../sids/star_wars.sid&&&&../images/star_wars_screenshot.jpg&|'
data += 'Star Wreck&../games/star_wreck.zip&&&&&../images/star_wreck_screenshot.jpg&|'
data += 'Stifflip and Co&../games/stifflip_and_co.zip&../sids/stifflip_and_co.sid&../manuals/stifflip_and_co.txt&&&../images/stifflip_and_co_screenshot.jpg&|'
data += 'Street Beat&../games/street_beat.zip&&&&&../images/street_beat_screenshot.jpg&|'
data += 'Stunt Car Racer&../games/stunt_car_racer.zip&&&&&../images/stunt_car_racer_screenshot.jpg&|'
data += 'Summer Games&../games/summer_games.zip&../sids/summer_games.sid&&&&../images/summer_games_screenshot.jpg&|'
data += 'Summer Games 2&../games/summer_games_2.zip&&&&../images/summer_games_2.jpg&../images/summer_games_2_screenshot.jpg&|'
data += 'Super Space Invaders&../games/super_space_invaders.zip&&&&../images/super_space_invaders.jpg&../images/super_space_invaders_screenshot.jpg&|'
data += 'Super Sprint&../games/super_sprint.zip&../sids/super_sprint.sid&&&&../images/super_sprint_screenshot.jpg&|'
data += 'Super Stunt Man&../games/super_stunt_man.zip&&&&&../images/super_stunt_man_screenshot.jpg&|'
data += 'Super Tank Simulator&../games/super_tank_simulator.zip&&&&../images/super_tank_simulator.jpg&../images/super_tank_simulator_screenshot.jpg&|'
data += 'Superstar Soccer&../games/superstar_soccer.zip&&&&&../images/superstar_soccer_screenshot.jpg&../html/footy_games_comparison.htm#linekers|'
data += 'SWIV&../games/swiv.zip&../sids/swiv.sid&&&&../images/swiv_screenshot.jpg&|'
data += 'Tapper&../games/tapper.zip&&&&&../images/tapper_screenshot.jpg&|'
data += 'Target Renegade&../games/target_renegade.zip&../sids/target_renegade.sid&&&../images/target_renegade.jpg&../images/target_renegade_screenshot.jpg&|'
data += 'Tau Ceti&../games/tau_ceti.zip&&../manuals/tauceti.txt&tauceti_walkthrough.htm&../images/tau_ceti.jpg&../images/tau_ceti_screenshot.jpg&|'
data += 'Terminator 2&../games/terminator_2.zip&&&&&../images/terminator_2_screenshot.jpg&|'
data += 'Terror of the Deep&../games/terror_of_the_deep.zip&&&&&../images/terror_of_the_deep_screenshot.jpg&|'
data += 'Test Drive 2&../games/test_drive_2.zip&&&&../images/test_drive_2.jpg&../images/test_drive_2_screenshot.jpg&|'
data += 'Tetris&../games/tetris.zip&&&&&../images/tetris_screenshot.jpg&|'
data += 'The Colour of Magic&../games/the_colour_of_magic.zip&&&&&../images/the_colour_of_magic_screenshot.jpg&|'
data += 'Thing Bounces Back&../games/thing_bounces_back.zip&../sids/thing_bounces_back.sid&&&&../images/thing_bounces_back_screenshot.jpg&|'
data += 'Transformers&../games/transformers.zip&../sids/transformers.sid&../manuals/transformers.txt&&../images/transformers.jpg&../images/transformers_screenshot.jpg&|'
data += 'Treasure Island&../games/treasure_island.zip&&../manuals/treasure_island.txt&treasure_island_walkthrough.htm&&../images/treasure_island_screenshot.jpg&|'
data += 'Treasure Island Dizzy&../games/dizzy_collection.zip&../sids/Treasure_Island_Dizzy.sid&&&&../images/treasure_island_dizzy_screenshot.jpg&|'
data += 'Trivial Pursuit&../games/trivial_pursuit.zip&&&&&../images/trivial_pursuit_screenshot.jpg&|'
data += 'Turbo Outrun&../games/turbo_outrun.zip&../sids/turbo_outrun.sid&&&&../images/turbo_outrun_screenshot.jpg&|'
data += 'Turrican&../games/turrican.zip&../sids/turrican.sid&&&&../images/turrican_screenshot.jpg&|'
data += 'Turrican 2&../games/turrican_2.zip&../sids/turrican_2.sid&&&&../images/turrican_2_screenshot.jpg&|'
data += 'Untouchables&../games/untouchables.zip&../sids/untouchables.sid&&&&../images/untouchables_screenshot.jpg&|'
data += 'Uridium&../games/uridium.zip&../sids/uridium.sid&../manuals/uridium.txt&&&../images/uridium_screenshot.jpg&|'
data += 'Video Meanies&../games/video_meanies.zip&&&video_meanies_walkthrough.htm&&../images/video_meanies_screenshot.jpg&|'
data += 'View to a Kill&../games/view_to_a_kill.zip&../sids/a_view_to_a_kill.sid&&&../images/a_view_to_a_kill.jpg&../images/a_view_to_a_kill_screenshot.jpg&|'
data += 'Werewolves of London&../games/werewolves_of_london.zip&&&&../images/werewolves_of_london.jpg&../images/werewolves_of_london_screenshot.jpg&|'
data += 'Winter Games&../games/winter_games.zip&../sids/winter_games.sid&../manuals/winter_games.txt&&../images/winter_games.jpg&../images/winter_games_screenshot.jpg&|'
data += 'Wizball&../games/wizball.zip&../sids/wizball.sid&../manuals/wizball.txt&&../images/wizball.jpg&../images/wizball_screenshot.jpg&|'
data += 'World Games&../games/world_games.zip&../sids/world_games.sid&../manuals/world_games.txt&&&../images/world_games_screenshot.jpg&|'
data += 'X-15&../games/x-15.zip&&&x_15_walkthrough.htm&../images/x15_alpha_mission.jpg&../images/x15_screenshot.jpg&x_15_walkthrough.htm|'
data += 'Xybots&../games/xybots.zip&../sids/xybots.sid&&&&../images/xybots_screenshot.jpg&|'
data += 'Yes Prime Minister&../games/yes_prime_minister.zip&&&&../images/yes_prime_minister.jpg&../images/yes_prime_minister_screenshot.jpg&|'
data += 'Yie Ar Kung Fu&../games/yie_ar_kung_fu.zip&../sids/yie_ar_kung_fu.sid&&&&../images/yie_ar_kung_fu_screenshot.jpg&../html/fighting_games_comparison.htm#yie_ar_kung_fu|'
data += 'Young Ones&../games/young_ones.zip&../sids/young_ones.sid&&&&../images/young_ones_screenshot.jpg&|'
data += 'Zak Mcracken and the Alien Mindbenders&../games/zak_mckracken_and_the_alien_mindbenders.zip&&&&&../images/zak_mckracken_and_the_alien_mindbenders_screenshot.jpg&|'
data += 'Zoids&../games/zoids.zip&../sids/zoids.sid&&&&../images/zoids_screenshot.jpg&|'
data += 'Zorro&../games/zorro.zip&../sids/zorro.sid&&&../images/zorro.jpg&../images/zorro_screenshot.jpg&|'
data += 'Zynaps&../games/zynaps.zip&../sids/zynaps.sid&../manuals/zynaps.txt&&&../images/zynaps_screenshot.jpg&'


function buildDownloadTable(search)
{

	var a

	var rows = data.split("|")


        var targetDivHTML = '<center><table border="1">'
        //Columns

	targetDivHTML += '<tr>'
	targetDivHTML += '<td><b>Name / Cover</b></td>'
	targetDivHTML += '<td><b>Game</b></td>'
	targetDivHTML += '<td><b>SID</b></td>'
	targetDivHTML += '<td><b>Manual</b></td>'
	targetDivHTML += '<td><b>Walkthrough</b></td>'
	//targetDivHTML += '<td><b>Cover</b></td>'
	targetDivHTML += '<td><b>Review</b></td>'
	targetDivHTML += '<td><b>Screenshot</b></td>'
	targetDivHTML += '<td>&nbsp;</td>'
	targetDivHTML += '</tr>'


	//alert(sortColumn)

	//Insert switch statement here
	//if (type == "all") sortColumn = 2


	//position = 0


	for (a=0;a!=rows.length;a++)
		{
			var displayRow = 0
			var columns = rows[a].split("&")
//			alert(columns)

//			alert(search)

			if (search.length == 1){

			
			document.getElementById("gamesSearchBox").value = search

			if (search.charAt(0).toUpperCase() == columns[sortColumn].charAt(position).toUpperCase())
				{
					displayRow = 1
				} else displayRow = 0

			if (search.charAt(0).toUpperCase() == "Y")
				{
					if (columns[sortColumn].charAt(position).toUpperCase() == "Z") displayRow = 1

				}

			if (search.charAt(0).toUpperCase() == "0")									{
				 if (columns[sortColumn].charAt(position).toUpperCase() == "1") displayRow = 1
		 		  if (columns[sortColumn].charAt(position).toUpperCase() == "2") displayRow = 1
				  if (columns[sortColumn].charAt(position).toUpperCase() == "3") displayRow = 1
				  if (columns[sortColumn].charAt(position).toUpperCase() == "4") displayRow = 1
				  if (columns[sortColumn].charAt(position).toUpperCase() == "5") displayRow = 1
				  if (columns[sortColumn].charAt(position).toUpperCase() == "6") displayRow = 1
				  if (columns[sortColumn].charAt(position).toUpperCase() == "7") displayRow = 1
				  if (columns[sortColumn].charAt(position).toUpperCase() == "8") displayRow = 1
				  if (columns[sortColumn].charAt(position).toUpperCase() == "9") displayRow = 1
																		}

			if (search.charAt(0) == "*")
				{
				 if (columns[sortColumn].charAt(position).toUpperCase().length > 0) displayRow = 1
				 //displayRow = 1
				}

				} else {

					if (columns[sortColumn].toUpperCase().match(search.toUpperCase())){
						displayRow = 1
					}
				}

			if (displayRow)
				{

					//Data

					var blankHTML='<td>&nbsp;</td>'

					targetDivHTML += '<tr>'
					if (columns[0] != "")
						{
							if (columns[5] != ""){
								targetDivHTML += '<td><img src="' + columns[5] + '" alt="' + columns[0] + '"></td>'
							} else {targetDivHTML += '<td>' + columns[0] + '</td>' }
						} else { targetDivHTML += blankHTML }
					if (columns[1].length > 0)
						{
							targetDivHTML += '<td><a href="' + columns[1] + '">Game</a></td>'
						} else { targetDivHTML += blankHTML }

					if (columns[2].length > 0)
						{
							targetDivHTML += '<td><a href="' + columns[2] + '">SID</a></td>'
						} else { targetDivHTML += blankHTML }
					if (columns[3].length > 0)
						{
							targetDivHTML += '<td><a href="' + columns[3] + '">Manual</a></td>'
						} else { targetDivHTML += blankHTML }
					if (columns[4].length > 0)
						{
							targetDivHTML += '<td><a href="' + columns[4] + '">Walkthrough</a></td>'
						} else { targetDivHTML += blankHTML }
					//if (columns[5].length > 0)
					//	{
					//		targetDivHTML += '<td><img src="' + columns[5] + '"></td>'
					//	} else { targetDivHTML += blankHTML }
						
					if (columns[7].length > 0)
						{
							targetDivHTML += '<td><a href="' + columns[7] + '">Review</a></td>'
						} else { targetDivHTML += blankHTML }
					if (columns[6].length > 0)
						{
						targetDivHTML += '<td><img src="' + columns[6] + '" width="381" height="271"></td>' //Full image size = 381 x 271
						} else { targetDivHTML += blankHTML }


					targetDivHTML += '<td><a href="#top">top</a></td>'
					targetDivHTML += '</tr>'

				}
		}

	targetDivHTML += '</table></center>'


return(targetDivHTML)

}


function calculateStats(){

var a
var statsHTML = ""

var dataRows = data.split("|")

var numberOfEntries = 0
var numberOfGames = 0
var numberOfSIDs = 0
var numberOfManuals = 0
var numberOfWalkthroughs = 0
var numberOfCovers = 0
var numberOfScreenshots = 0
var numberOfReviews = 0

for (a=0;a!=dataRows.length;a++){

var dataCells = dataRows[a].split("&")

if (dataCells[0]!="") numberOfEntries++
if (dataCells[1]!="") numberOfGames++
if (dataCells[2]!="") numberOfSIDs ++
if (dataCells[3]!="") numberOfManuals ++
if (dataCells[4]!="") numberOfWalkthroughs ++
if (dataCells[5]!="") numberOfCovers ++
if (dataCells[6]!="") numberOfScreenshots ++
if (dataCells[7]!="") numberOfReviews ++


if ((dataCells[0]!="")&&(dataCells[1]=="")){

//alert(dataCells)

}
}

statsHTML += '<table border="1" width="100%">'
statsHTML += '<tr align="center">'
statsHTML += '<td colspan="3"><h2>Games Archive Statistics</h2></td>'
statsHTML += '</tr>'
//statsHTML += '<tr>'
//statsHTML += '<td>Number of entries in archive</td><td>' + numberOfEntries + '</td><td>' + numberOfEntries / numberOfEntries *100  + '</td>'
//statsHTML += '</tr>'
statsHTML += '<tr>'
statsHTML += '<td><b>Archive Type</b></td><td><b>Quantity</b></td><td><b>% Of Total</b></td>'
statsHTML += '</tr>'
statsHTML += '<tr>'
statsHTML += '<td>Games</td><td>' + numberOfGames + '</td><td>' + Math.round(numberOfGames / numberOfEntries *100)  + '</td>'
statsHTML += '</tr>'
statsHTML += '<tr>'
statsHTML += '<td>SIDs</td><td>' + numberOfSIDs + '</td><td>' + Math.round(numberOfSIDs / numberOfEntries *100)  + '</td>'
statsHTML += '</tr>'
statsHTML += '<tr>'
statsHTML += '<td>Manuals</td><td>' + numberOfManuals + '</td><td>' + Math.round(numberOfManuals / numberOfEntries *100)  + '</td>'
statsHTML += '</tr>'
statsHTML += '<tr>'
statsHTML += '<td>Walkthroughs</td><td>' + numberOfWalkthroughs + '</td><td>' + Math.round(numberOfWalkthroughs / numberOfEntries *100)  + '</td>'
statsHTML += '</tr>'
statsHTML += '<tr>'
statsHTML += '<td>Covers</td><td>' + numberOfCovers + '</td><td>' + Math.round(numberOfCovers / numberOfEntries *100)  + '</td>'
statsHTML += '</tr>'
statsHTML += '<tr>'
statsHTML += '<td>Reviews</td><td>' + numberOfReviews + '</td><td>' + Math.round(numberOfReviews / numberOfEntries *100)  + '</td>'
statsHTML += '</tr>'
statsHTML += '<tr>'
statsHTML += '<td>Screenshots</td><td>' + numberOfScreenshots + '</td><td>' + Math.round(numberOfScreenshots / numberOfEntries *100)  + '</td>'
statsHTML += '</tr>'
statsHTML += '</table>'

document.getElementById("games").innerHTML = statsHTML

}



function gamesSearch(){

var a
var searchInput = document.getElementById("gamesSearchBox").value



if (searchInput == ""){
	searchInput="*"

	}

for (a=0;a!=10;a++){

if (searchInput == a){
 searchInput = "0"
}

}
//alert(searchInput)


drawDownloadTable(searchInput)

}




function displayAllGameNames()
{

var a;

var dataLines = data.split("|");


for (a=0;a!=dataLines.length;a++)
	{
	
		var dataCells = dataLines[a].split("&");
		document.write(dataCells[0]);
		//document.write("<br>");
		document.write("<br>");

	}


}

