var cat = [];
cat[0] = "Action"
cat[1] = "Puzzle"
cat[3] = "Shoot'em up"
cat[4] = "Sports"
cat[5] = "Fun"
cat[6] = "Racing"
cat[7] = "Arcade"
cat[8] = "Platform"
cat[9] = "Gambling"
cat[10] = "Winter"

var chn = [];
chn[0] = "Ping Pong";
chn[1] = "Monkey Kick Off";
chn[2] = "UFO Joe";
chn[3] = "Twiddlestix";
chn[4] = "Surf's Up";
chn[5] = "Space Escape";
chn[6] = "Shove It";
chn[7] = "Wone 2";
chn[8] = "Presidential Paintball";
chn[9] = "Red Beard";
chn[10] = "W-one";
chn[11] = "More Bloons";
chn[12] = "Shoot-em-In";
chn[13] = "Flip-it";
chn[14] = "PacMan";
chn[15] = "Raiden X";
chn[16] = "Tower Blaster";
chn[17] = "Dirt Bike";
chn[18] = "Bubble Shooter";
chn[19] = "Lust For Bust";
chn[20] = "Kick Off";
chn[21] = "Zit Popping Game";
chn[22] = "A.L.I.A.S 2";
chn[23] = "Bubble Bobble rev.";
chn[24] = "Dirt Bike 2";
chn[25] = "Planet Racer";
chn[26] = "Dune Bashing in Dubai";
chn[27] = "Conquer Antarctica";
chn[28] = "Amazon Quest";
chn[29] = "Gem Mine";
chn[30] = "Star Ball";
chn[31] = "Penguin Push";
chn[32] = "Pac-Xon";
chn[33] = "Real Pool";
chn[34] = "Alex Trax";
chn[35] = "Galaxy invaders";
chn[36] = "Pang";
chn[37] = "Bloons";
chn[38] = "Sonic the Hedgehog";
chn[39] = "Bloons Tower Defence II";
chn[40] = "Kitten Cannon";
chn[41] = "Fast Food Fiasco";
chn[42] = "TGFG Bowling";
chn[43] = "Bomb Jack";
chn[44] = "Tetris";
chn[45] = "F/A-18 Hornet";
chn[46] = "Puzzle Bobble";
chn[47] = "Crazy Bomberman";
chn[48] = "Flash Poker";
chn[49] = "Super Mario Flash";
chn[50] = "Frogger";
chn[51] = "Deep Freeze";
chn[52] = "Snow Line";
chn[53] = "Acid factory";
chn[54] = "Bow man";
chn[55] = "Bow man 2";
chn[56] = "Bloons Tower Defence";
chn[57] = "Desktop Tower Defense";
chn[58] = "Line Rider";
chn[59] = "The Last Stand";
chn[60] = "The Helicopter Game";
chn[61] = "Deal Or No Deal";
chn[62] = "Bubble Pang";
chn[63] = "Q*bert";
chn[64] = "Ghosts n Goblins";
chn[65] = "Connect 4";
chn[66] = "Bubble Struggle 2";
chn[67] = "Zuma";
chn[68] = "Motherload";
chn[69] = "Puppy Curling";
chn[70] = "Alex In Danger";
chn[71] = "Super Mario World";
chn[72] = "Zed";
chn[73] = "Spank the Monkey";
chn[74] = "Turkey Fling";
chn[75] = "Juggler";
chn[76] = "1 Starship";
chn[77] = "Sudoku";
chn[78] = "Canyon Shooter";
chn[79] = "NCN Racer";
chn[80] = "Cube Field";
chn[81] = "Planarity";
chn[82] = "A.L.I.A.S. 3";
chn[83] = "Breaking Bricks";
chn[84] = "Diesel And Death";
chn[85] = "Dolphin Olympics 2";
chn[86] = "5 Differences";
chn[87] = "Crazy Guitar Maniac 2";
chn[88] = "Want to be a millionaire?";
chn[89] = "Tilt";
chn[90] = "Bloons Tower defence 3";
chn[91] = "Bloons Tower defence 4";
chn[92] = "Shuffle";

var chanch=8;

var clength = 92;

var chs = [];
chs[0] = "http://www.miniclip.com/swfcontent/freegames/pingpong.swf";
chs[1] = "http://www.miniclip.com/swfcontent/freegames/monkeykickoff.swf";
chs[2] = "http://www.miniclip.com/swfcontent/freegames/ufojoe.swf";
chs[3] = "http://www.gamecodecity.com/swf/game_295.swf";
chs[4] = "http://www.miniclip.com/swfcontent/freegames/surfs-up.swf";
chs[5] = "http://www.miniclip.com/swfcontent/freegames/spaceescape.swf";
chs[6] = "http://www.miniclip.com/swfcontent/freegames/shoveitdemo.swf";
chs[7] = "http://www.gamecodecity.com/swf/game_377.swf";
chs[8] = "http://www.miniclip.com/swfcontent/freegames/loader.swf?url=presidentialpaintball_v2_counter.swf&name=Presidential Paintball&icon=%2Fimages%2Ficons%2Fpresidentialpaintballmedicon.jpg";
chs[9] = "http://www.miniclip.com/swfcontent/freegames/redbeard.swf";
chs[10] = "http://www.gadgetgamez.com/games/wone.swf";
chs[11] = "http://www.gamecodecity.com/swf/game_590.swf";
chs[12] = "http://www.gadgetgamez.com/games/20539.swf";
chs[13] = "http://games.mochiads.com/c/g/flipit/flipit.swf";
chs[14] = "http://OldFunGames.com/games/pacman.swf";
chs[15] = "http://www.2grandarcade.com/swf/520.swf";
chs[16] = "http://www.atommo.com/arcade/arcade/04022301.swf";
chs[17] = "http://www.freeonlinegames.com/exgames/dirtbike/2dirtbike.swf";
chs[18] = "http://www8.agame.com/mirror/flash/b/bubble_shooter.swf";
chs[19] = "http://www.gamecodecity.com/swf/game_275.swf";
chs[20] = "http://www.gamecodecity.com/swf/game_36.swf";
chs[21] = "http://www.arcadeboredom.com/games/files/acne_zit_popper_popping.swf";
chs[22] = "http://www.arcadenix.com/arcade/game_406.swf";
chs[23] = "http://files.freeonlinegames.com/exgames/bubblebobbletherevival/2bubblebobbletherevival.swf";
chs[24] = "http://www.freeonlinegames.com/exgames/dirtbike2/2dirtbike2.swf";
chs[25] = "http://files.freeonlinegames.com/exgames/planetracer/2planetracer.swf";
chs[26] = "http://files.freeonlinegames.com/exgames/dunebashingindubai/2dunebashingindubai.swf";
chs[27] = "http://www.freeonlinegames.com/exgames/conquerantarctica/2conquerantarctica.swf";
chs[28] = "http://www.adevarat-games.com/files/swf/Amazon_Quest.swf";
chs[29] = "http://www.2grandarcade.com/swf/1937.swf";
chs[30] = "http://media.dorks.com/content/swf/olddorks/starball.swf";
chs[31] = "http://www.miniclip.com/swfcontent/freegames/pengiunpush.swf";
chs[32] = "http://www.arcadeboredom.com/games/files/pacxon.swf";
chs[33] = "http://www.dailyfreegames.com/images/files/1819.swf";
chs[34] = "http://www.diggygames.com/swf/alextrax.swf";
chs[35] = "http://www.dailyfreegames.com/images/files/11473.swf";
chs[36] = "http://www.arcadepoint.net/games/pang.swf";
chs[37] = "http://www.diggygames.com/swf/bloons.swf";
chs[38] = "http://www.diggygames.com/swf/sonicthehedgehog.swf";
chs[39] = "http://www.diggygames.com/swf/bloons-tower-defense-796.swf";
chs[40] = "http://www.gamecodecity.com/swf/game_267.swf";
chs[41] = "http://www.mypuzzlesgames.com/images/files/fastfoodfiasco-game.swf";
chs[42] = "http://www.andhrapradesh.com/games/games/20779.swf";
chs[43] = "http://files.rategame.net/295.swf";
chs[44] = "http://www.sillyjokes.co.uk/games/tetris.swf";
chs[45] = "http://www.arcadenix.com/arcade/game_491.swf";
chs[46] = "http://www.gamecodecity.com/swf/game_393.swf";
chs[47] = "http://www.arcadeonline.com/games/classic/crazy-bomberman/crazybomberman.swf";
chs[48] = "http://www.thegameblazer.com/flashfiles/boardgames/flashpoker.swf";
chs[49] = "http://www.hybridarcade.com/swf/supermarioflash.swf";
chs[50] = "http://www.neave.com/games/frogger/frogger.swf";
chs[51] = "http://www.miniclip.com/swfcontent/freegames/deepfreeze.swf";
chs[52] = "http://www.miniclip.com/swfcontent/freegames/snowline.swf";
chs[53] = "http://www.miniclip.com/swfcontent/freegames/acidfactory.swf";
chs[54] = "http://www.medievalgames.us/games/bowman.swf";
chs[55] = "http://www.medievalgames.us/games/bowman2.swf";
chs[56] = "http://www.gamecodecity.com/swf/game_718.swf";
chs[57] = "http://www.diggygames.com/swf/DesktopTD121b.swf";
chs[58] = "http://www.games1.org/games/linerider.swf";
chs[59] = "http://armorgames.com/files/games/the-last-stand-269.swf";
chs[60] = "http://www.khemer.com/swf/copter.swf";
chs[61] = "http://www.khemer.com/swf/dealornodeal.swf";
chs[62] = "http://www.miniclip.com/swfcontent/freegames/loader.swf?url=bubbletrouble.swf&name=Bubble Trouble&icon=%2Fimages%2Ficons%2Fbubbletroublemedicon.jpg";
chs[63] = "http://www.classicgamesarcade.com/games/q-bert.swf";
chs[64] = "http://www.classicgamesarcade.com/games/ghosts-and-goblins.swf";
chs[65] = "http://www.classicgamesarcade.com/games/connect4.swf";
chs[66] = "http://www.gamecodecity.com/swf/game_672.swf";
chs[67] = "http://www.adevarat-games.com/files/swf/Zuma.swf";
chs[68] = "http://www.dailyfreegames.com/images/files/Motherload.swf?gameid=";
chs[69] = "http://www.dailyfreegames.com/images/files/Puppy-Curling.swf?gameid=";
chs[70] = "http://www.dailyfreegames.com/images/files/alex.swf?gameid=";
chs[71] = "http://www.gamesclip.co.uk/media/8/monolith/monolith.swf";
chs[72] = "http://www.gamesclip.co.uk/media/1/zed/zed.swf";
chs[73] = "http://www.gamecodecity.com/swf/game_23.swf";
chs[74] = "http://www.internetgames247.com/swf31b/turkeyfling.swf";
chs[75] = "http://www.zoopgames.com/swf/Juggler.swf";
chs[76] = "http://www.ultimateflashgame.com/flash/action/1starship.swf";
chs[77] = "http://games.mochiads.com/c/g/sudoku_v6/tp_sudoku.swf"; 
chs[78] = "http://www.arcadecabin.com/tempswf/canyon-shooter";
chs[79] = "http://www.dailyfreegames.com/images/files/new-car-net-racer-game.swf?gameid=";
chs[80] = "http://www.dailyfreegames.com/images/files/cubefield.swf?gameid=";
chs[81] = "http://www.dailyfreegames.com/images/files/planarity-game.swf";
chs[82] = "http://www.fupa.com/swf/A_L_I_A_S-3/alias3.swf";
chs[83] = "http://www.fupa.com/games/bricks.swf";
chs[84] = "http://www.dailyfreegames.com/images/files/death_and_diesel.swf?gameid=";
chs[85] = "http://www.gamecodecity.com/swf/game_769.swf";
chs[86] = "http://www.diggygames.com/swf/5differences.swf";
chs[87] = "http://www.diggygames.com/swf/supercrazyguitarman.swf";
chs[88] = "http://www.gametimearcade.com/games/files/millionaire.swf";
chs[89] = "http://www.fupa.com/swf/tilt_v3/tilt.swf";
chs[90] = "http://www.diggygames.com/swf/bloonstowerdefense3.swf";
chs[91] = "http://ninjakiwifiles.com/Games/gameswfs/bloonstd4.swf";
chs[92] = "http://www.games1.org/games/shuffle.swf";

var chntx = [];
chntx[0] = "Bounce the ball as many times as you can. How long can you go?";
chntx[1] = "Kick the ball as far as you can!";
chntx[2] = "Collect mysterious creatures for the alien zoo!";
chntx[3] = "Navigate your way safely through the waterways!";
chntx[4] = "Surf for all you're worth. Pull off jumps & tricks.";
chntx[5] = "Guide your space ship cross the obstacle filled courses.";
chntx[6] = "Help Vincent to get all the blue blocks onto the yellow spots.";
chntx[7] = "Using the wheel, collect all the golden coins and stars";
chntx[8] = "Hillary, Obama, Giuliani & more play paintball for the USA Presidency!";
chntx[9] = "Help Red Beard to collect all of the gold.";
chntx[10] = "Control the spinning wheel and collect all the barrels, then find the exit";
chntx[11] = "Pop as many balloons as you can with your darts.";
chntx[12] = "Move the player inside the half-circle with the mouse and click to shoot";
chntx[13] = "Flip the pieces until all of the white ones show";
chntx[14] = "Guide Pacman around the maze using the arrow keys. Eat the pills, and avoid the ghosts.";
chntx[15] = "Fly around in your spaceship, destroying tanks and helicopters with lasers and missiles.";
chntx[16] = "Line up the blocks in the correct order and conquer the Vikings...";
chntx[17] = "Ride your dirt bike on unusually challenging obstacle courses";
chntx[18] = "Shoot bubbles and match 3 or more bubbles to knock them out.";
chntx[19] = "Try and sneak-a-peek at your buddy's hot sister. Use the mouse to look, but don't get caught!";
chntx[20] = "Aim and position your ball shoot it in the goal then defend your goal from soccer balls.";
chntx[21] = "Pop the zits before the time runs out.";
chntx[22] = "Artificial Lifeform Intended for Assassination and Sabotage has decided to escape he needs your help.";
chntx[23] = "Blow bubbles on your enemies and blast them to move on to the next level.";
chntx[24] = "Ride your dirt bike through a challenging rocky terrain";
chntx[25] = "Drag Race on different moons and planets, win money, build reputation, mod your car and challenge the King!";
chntx[26] = "Take this challenging journey through the massive sand dunes of Dubai riding a quad bike";
chntx[27] = "A gang of penguins aspire to conquer the Antarctic ice territory! Help them to defeat all the rival gangs";
chntx[28] = "Line up three or more artifacts to remove the puzzle board";
chntx[29] = "Switch the gems to match 3 in a row to make them disappear";
chntx[30] = "Destroy bricks using a custom spaceship equipped with gravity shields and weaponry.";
chntx[31] = "Push all the ice blocks into the yellow holes.";
chntx[32] = "Fill empty space and capture ghosts by building wall.";
chntx[33] = "Pot all balls from the assigned group of balls (pot all solids or pot all stripes), and then pot the eight ball.";
chntx[34] = "Try to reach the exit without breaking your neck.";
chntx[35] = "Stop the alien invasion and save the Earth.";
chntx[36] = "Shoot down the bubbles with your harpoon and travel the map";
chntx[37] = "Pop as many balloons as you can with your darts.";
chntx[38] = "Play sonic online! Use the arrow keys to move and spacebar to jump.";
chntx[39] = "Stop all of the bloons from escaping.";
chntx[40] = "Shoot the kitten out of the cannon and see how far he will go!";
chntx[41] = "Try and make rows or columns of 3 pieces of identical food";
chntx[42] = "Power up your angle and let go of the button to shoot the ball knock over pins. Hit strikes and spares!";
chntx[43] = "Earn points by collecting items and avoiding being bombed.";
chntx[44] = "Do we really have to explain this game?";
chntx[45] = "Use your mouse to guide the F/A-18 along the path of the lead plane for as long as you can.";
chntx[46] = "Join more than two balls together of the same color and try to clear the screen.";
chntx[47] = "Bomb your way through and pop your enemies.";
chntx[48] = "Assemble the best five-card poker hand from the cards that are dealt.";
chntx[49] = "Play the flash clone of Super Mario";
chntx[50] = "Frog It, Help the frog cross the road without being run over.";
chntx[51] = "Freeze your enemies with your water gun.";
chntx[52] = "Help Santa Claus collect the presents.";
chntx[53] = "Help harry escape the horrors of his acid-flooded factory.";
chntx[54] = "Master the art of shooting a bow and arrow with your mouse.";
chntx[55] = "Master the art of shooting a bow and arrow part II.";
chntx[56] = "Stop all of the bloons from escaping";
chntx[57] = "Protect your desktop from invaders by spending money on attacking pieces";
chntx[58] = "Build a track (line), and let him ride!";
chntx[59] = "During the night, protect your barricade against the oncoming zombies.";
chntx[60] = "Pilot this helicopter through many obstacle without crashing the helicopter";
chntx[61] = "Decide whether you want to sell your suitcase for a deal the banker has given";
chntx[62] = "Are you up the challenge to clear all the bubbles?";
chntx[63] = "Move Q*bert between the squares by jumping about avoiding the bad guys.";
chntx[64] = "Play as Arthur the knight to rescue his princess from ghosts and goblins.";
chntx[65] = "Connect 4 of your pieces to win the game either in a line or diagonal.";
chntx[66] = "Sequel to Bubble Trouble with even more levels, items, and a new game play mode.";
chntx[67] = "Fire balls to make sets of three, but dont let them reach the pinball pit!";
chntx[68] = "Dig deep with your pod, while collecting and selling your minerals";
chntx[69] = "Get all of your puppies as close to the center of the target circle";
chntx[70] = "Navigate Alex through many different worlds and collect all the gems.";
chntx[71] = "Join Mario to save the Princess from Bowser and his evil Kooper army!";
chntx[72] = "Find enough gold to build a fine shiny space suit.";
chntx[73] = "How hard can you spank the monkey?";
chntx[74] = "Fling the turkey as far as possible to freedom.";
chntx[75] = "Juggle the balls using your platform.";
chntx[76] = "Fly around in your jet and shoot the incoming enemies using your weaponry.";
chntx[77] = "The classic numbers puzzle!";
chntx[78] = "Fight your way through the canyons taking out the enemy on the way down.";
chntx[79] = "Race around the track against your computer opponent. Mouse control.";
chntx[80] = "Avoid the cubes that are coming at you in 3d.";
chntx[81] = "Unwind an entangled web so that no lines cross each other.";
chntx[82] = "Fight your way through this side scrolling shooter";
chntx[83] = "The game ends when you run out of magic wands...";
chntx[84] = "Race the other motorcycle and use powerups to fight him off.";
chntx[85] = "Perform and land as many tricks as you can with your dolphin within the 2 minute time limit";
chntx[86] = "Pick out all of the 5 differences in both of the pictures";
chntx[87] = "Choose your guitar and start rocking to the songs.";
chntx[88] = "Try to win the million dollar check!";
chntx[89] = "Tilt And Roll the ball and enjoy the challenge of getting a ball into a hole!";
chntx[90] = "Version 3 offers more fun....";
chntx[91] = "Version 4 offers even more fun....";
chntx[92] = "Aim and shoot the red balls and knock the yellow balls off the board.";

var chnim = [];
chnim[0] = "pingpongsmallicon.jpg";
chnim[1] = "monkeykickoffsmallicon.jpg";
chnim[2] = "ufojoesmallicon.jpg";
chnim[3] = "twiddlestixsmallicon.jpg";
chnim[4] = "surfsmallicon.jpg";
chnim[5] = "spaceescapesmallicon.jpg";
chnim[6] = "shoveitsmallicon.jpg";
chnim[7] = "wone.jpg";
chnim[8] = "presidentialpaintballsmallicon.jpg";
chnim[9] = "redbeardsmallicon.jpg";
chnim[10] = "wone.jpg";
chnim[11] = "bloons.gif";
chnim[12] = "shootemin.png";
chnim[13] = "flipit.jpg";
chnim[14] = "pacman.jpg";
chnim[15] = "raidenx.jpg";
chnim[16] = "towerblaster.jpg";
chnim[17] = "dirtbike.jpg";
chnim[18] = "bubbleshooter.jpg";
chnim[19] = "lustforbust.jpg";
chnim[20] = "kickoff.jpg";
chnim[21] = "zitpop.jpg";
chnim[22] = "alias.jpg";
chnim[23] = "bubblebobble.jpg";
chnim[24] = "dirtbike2.jpg";
chnim[25] = "planetracer.jpg";
chnim[26] = "dunebashing.jpg";
chnim[27] = "conquerantarctica.jpg";
chnim[28] = "amazonquest.jpg";
chnim[29] = "gemmine.jpg";
chnim[30] = "star_ball.jpg";
chnim[31] = "penguinpushsmallicon.jpg";
chnim[32] = "pac_xon.jpg";
chnim[33] = "real_pool.jpg";
chnim[34] = "alextrax.jpg";
chnim[35] = "galaxy_invaders.jpg";
chnim[36] = "pang.jpg";
chnim[37] = "bloons.gif";
chnim[38] = "sonic.jpg";
chnim[39] = "Bloons_Tower_Defense_2.gif";
chnim[40] = "kitten.jpg";
chnim[41] = "fastfood.jpg";
chnim[42] = "tgfbowling.jpg";
chnim[43] = "bombjack.jpg";
chnim[44] = "tetrissmallicon.gif";
chnim[45] = "fa18.jpg";
chnim[46] = "puzzlebobble.gif";
chnim[47] = "crazybomberman.jpg";
chnim[48] = "flashpoker.jpg";
chnim[49] = "mario.jpg";
chnim[50] = "frogger.jpg";
chnim[51] = "deepfreezesmallicon.jpg";
chnim[52] = "snowlinesmallicon.jpg";
chnim[53] = "acidfactorysmallicon.jpg";
chnim[54] = "bowman-game.gif";
chnim[55] = "bowman2.gif";
chnim[56] = "bloonstower.gif";
chnim[57] = "desktopdefense.jpg";
chnim[58] = "linerider.jpg";
chnim[59] = "laststand.jpg";
chnim[60] = "helicoptergame.jpg";
chnim[61] = "deal.jpg";
chnim[62] = "bubbletrouble.jpg";
chnim[63] = "q-bert.gif";
chnim[64] = "ghosts-and-goblins.gif";
chnim[65] = "connect4.gif";
chnim[66] = "bubblestruggle2.gif";
chnim[67] = "zuma.jpg";
chnim[68] = "MotherLoad.jpg";
chnim[69] = "Puppy-Curling.jpg";
chnim[70] = "Alex In Danger Game.jpg";
chnim[71] = "supermarioworld.gif";
chnim[72] = "zed.gif";
chnim[73] = "spankmonkey.gif";
chnim[74] = "turkeyfling.gif";
chnim[75] = "juggler.gif";
chnim[76] = "1starship.gif";
chnim[77] = "sudoku.jpg";
chnim[78] = "canyonshooter.jpg";
chnim[79] = "ncnr.jpg";
chnim[80] = "cubefield.jpg";
chnim[81] = "planarity.jpg";
chnim[82] = "alias3.gif";
chnim[83] = "bricksbreaking.gif";
chnim[84] = "death_and_diesel_t.jpg";
chnim[85] = "dolphinolympics2.gif";
chnim[86] = "5differences.jpg";
chnim[87] = "supercrazyguitar2.jpg";
chnim[88] = "millionaire.gif";
chnim[89] = "tilt.jpg";
chnim[90] = "btdef3.jpg";
chnim[91] = "btdef4.gif";
chnim[92] = "shuffle.jpg";
imgame = "http://www.camdex.be/games/";

var tcat = [];
tcat[0]="22,27,45,";
tcat[1]="92,91,90,89,86,39,83,44,81,77,13,68,67,65,46,56,57,58,28,37,41,18,29,32,11,31,52,6,5,30,16,3,2,";
tcat[3]="78,76,59,35,8,15,";
tcat[4]="85,75,74,73,69,34,55,60,7,54,17,24,1,20,40,0,33,12,4,42,10,";
tcat[5]="87,19,21,";
tcat[6]="84,80,79,26,25,";
tcat[7]="66,63,64,62,47,50,36,14,";
tcat[8]="72,71,70,53,43,23,51,49,9,38,";
tcat[9]="88,61,48,";
tcat[10]="31,51,52,58,";


var twcat = [];
twcat[0]="22,27,45,";
twcat[1]="92,86,83,44,81,68,67,65,46,58,28,41,18,29,32,31,52,6,5,30,16,3,2,";
twcat[3]="78,76,59,35,8,15,";
twcat[4]="75,74,73,69,34,55,60,7,54,17,24,1,20,40,0,33,12,4,42,10,";
twcat[5]="87,19,21,";
twcat[6]="84,80,79,26,25,";
twcat[7]="63,64,62,47,50,36,14,";
twcat[8]="72,71,70,53,43,23,51,49,9,38,";
twcat[9]="88,61,48,";
twcat[10]="31,51,52,58,";

function fillCategory(){ 
     // this function is used to fill the category list on load
    addOption(document.drop_list.Category, "0", cat[0]);
    addOption(document.drop_list.Category, "5", cat[5]);
    addOption(document.drop_list.Category, "7", cat[7]);
    addOption(document.drop_list.Category, "9", cat[9]);		
    addOption(document.drop_list.Category, "8", cat[8]);
    addOption(document.drop_list.Category, "1", cat[1]);
    addOption(document.drop_list.Category, "6", cat[6]);
    addOption(document.drop_list.Category, "3", cat[3]);
    addOption(document.drop_list.Category, "4", cat[4]);
    addOption(document.drop_list.Category, "10", cat[10]);		
}
    
function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}


