
// variable to hold the hostname
var host = document.domain;

// list of games - setup using :: fog_game,url,width,height
var game_array = new Array();
game_array['BIGTOP']             = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=3040&cgf_id=3041&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CADDYSCRATCH']       = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=2006&cgf_id=2007&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "750", "560");
game_array['CASHLINE']           = new Array ("Y", "action=GoFlashTest&nextAction=GoGameOptions&cgr_id=299&cgf_id=399&ext_game=N&flash_login=N&flash_cust=ORBIS", "765", "560");
game_array['FUNKYMONKEY']        = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=3042&cgf_id=3043&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "733", "560");
game_array['GODSOFTHENILE']      = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=2070&cgf_id=3076&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['GRANDNATIONALKENO']  = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=3051&cgf_id=3053&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['HOGGENHEIMER']       = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=3095&cgf_id=3096&ext_game=N&flash_login=N&flash_cust=BLUESQ", "733", "550");
game_array['HOLDYERHORSES']      = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=3098&cgf_id=3099&ext_game=N&flash_login=Y&flash_cust=BLUESQ", "750", "564");
game_array['HORRORSHOW']         = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=3036&cgf_id=3037&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['MECCASTAR']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=1049&cgf_id=1048&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['LOOTNKHAMUN']        = new Array ("Y", "action=GoFlashTest&nextAction=GoGameOptions&cgr_id=660&cgf_id=661&ext_game=N&flash_login=N&flash_cust=ORBIS", "765", "560");
game_array['MONTECARLOMILLIONS'] = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=3038&cgf_id=3039&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['MULTIPLAYERBINGO']   = new Array ("N", "/secure/php/launch_bingo.php", "765", "560");
game_array['NEPTUNESKENO']       = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=3054&cgf_id=3055&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['ROARING20S']         = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=4004&cgf_id=4005&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['SPECTRUM']           = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=2000&cgf_id=2001&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "750", "550");
game_array['ROULETTE']           = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=1071&cgf_id=1072&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['MECCASLOT']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=10006&cgf_id=10007&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['HEAVENANDHELLV2']    = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=9006&cgf_id=9007&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['COR9']    		     = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11050&cgf_id=11051&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['HILODICE']           = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=667&cgf_id=668&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CRAPS']              = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11052&cgf_id=11053&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['PYRAMID']            = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11060&cgf_id=11061&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BLACKJACK']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11046&cgf_id=11047&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['MECCAFORTUNE']       = new Array ("Y", "action=GoFlashTest&nextAction=GoPlayGame&cgr_id=4&cgf_id=5&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['MSEXTREME']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11008&cgf_id=11009&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['DOND']          	   = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11064&cgf_id=11065&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CLEOPATRA']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11066&cgf_id=11067&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CRACKTHESAFE']       = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11086&cgf_id=11087&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['THREESUPEXTREME']        = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11080&cgf_id=11081&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['FORTUNE36']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11078&cgf_id=11079&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['SPINWINV2']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11082&cgf_id=11083&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['MONOPOLY']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11090&cgf_id=11091&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['DEADMANSCHESTSLOT']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11200&cgf_id=11201&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['DEADMANSCHEST9PROG1']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11106&cgf_id=11107&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['FRUITSMOOTHIE9LINE']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11108&cgf_id=11109&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['PLUMROYALESLOT']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11212&cgf_id=11213&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['FUNKYMONKEYSCRATCHCARD']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11253&cgf_id=11254&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['ROARING20SSCRATCHCARD']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11262&cgf_id=11263&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BIGTOPSCRATCHCARD']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11244&cgf_id=11245&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BINGOKENOEXTREME']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11322&cgf_id=11323&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['HIGHROLLER']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11320&cgf_id=11321&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['SPINIT']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11308&cgf_id=11309&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CLUEDO']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11196&cgf_id=11197&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['MONSTERCARLO']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11176&cgf_id=11177&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CELTICSPIRIT']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11403&cgf_id=11404&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['MONTECARLOBILLIONS']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11439&cgf_id=11440&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['DAYATTHERACES']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11413&cgf_id=11414&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CARIBBEANNIGHTS']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11409&cgf_id=11410&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CARIBBEANNIGHTS2']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11509&cgf_id=11510&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BINGOSLOT20']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11365&cgf_id=11366&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['VEGASNIGHTS']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11381&cgf_id=11382&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['WHEELOFFORTUNE']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11383&cgf_id=11384&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CASINODICE']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11333&cgf_id=11334&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CHAINREACTORS']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11361&cgf_id=11362&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['TOPTRUMPSCELEBS']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11445&cgf_id=11446&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['TOPTRUMPSHORROR']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11449&cgf_id=11450&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['TOPTRUMPSWFS']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11453&cgf_id=11454&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['FIVEADAY']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11373&cgf_id=11374&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BARX5']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11459&cgf_id=11460&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BARX7MAGIC']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11461&cgf_id=11462&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['MULTIPLIER']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11359&cgf_id=11360&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['DONDINSTANTWIN']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11443&cgf_id=11444&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['MONOPOLYONAROLL']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11405&cgf_id=11406&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['DONDJACKPOT']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11353&cgf_id=11354&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BALTIMOREDROP']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11467&cgf_id=11468&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['AZTECTRIPLEUP']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11487&cgf_id=11488&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['SUPERDISCS']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11473&cgf_id=11474&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['PIMPMYSLOT']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11588&cgf_id=11589&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['ROADTRIP']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11590&cgf_id=11591&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['VIRTUALDOGS']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11540&cgf_id=11541&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['VIRTUALHORSES']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11562&cgf_id=11563&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BJSOB']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11427&cgf_id=11428&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BINGOREACTOR']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11598&cgf_id=11599&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['PINBALLROULETTE']       = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11349&cgf_id=11350&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CASHINO']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11578&cgf_id=11579&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['PIRATE-PLUNDER-SA'] = new Array ("N", "Y", "LaunchPlunder", "750", "515");
game_array['CLOVER-ROLLOVER-SA'] = new Array ("N", "Y", "LaunchClover", "750", "515");
game_array['SNOW-QUEENS-MAGIC-SA'] = new Array ("N", "Y", "LaunchQueens", "750", "515");
game_array['JUNGLE-MADNESS-SA'] = new Array ("N", "Y", "LaunchJungle", "750", "515");
game_array['LADIES-LEISURE-SA'] = new Array ("N", "Y", "LaunchLadies", "750", "515");
game_array['LUCKY-LADIES-88-SA'] = new Array ("N", "Y", "LaunchLadies88", "750", "515");
game_array['MAYAN-MANIA-SA'] = new Array ("N", "Y", "LaunchMayan", "750", "515");
game_array['PET-LUCK-SA'] = new Array ("N", "Y", "LaunchPet", "750", "515");
game_array['TAROT-FORTUNE-SA'] = new Array ("N", "Y", "LaunchTarot", "750", "515");

game_array['HOLLYWOOD-BOULEVARD-SA'] = new Array ("N", "Y", "LaunchHollywoodBoulevard", "750", "515");
game_array['BIG-BOUNTY-SA'] = new Array ("N", "Y", "LaunchBigBounty", "750", "515");
game_array['LADIES-NIGHT-SA'] = new Array ("N", "Y", "LaunchLadiesNight", "750", "515");
game_array['BIG-TOP-TOMBOLA-SA'] = new Array ("N", "Y", "LaunchBigTopTombola", "750", "515");
game_array['MAFIA-MILLIONS-SA'] = new Array ("N", "Y", "LaunchMafiaMillions ", "750", "515");
game_array['DYNAMITE-DIGGER-SA'] = new Array ("N", "Y", "LaunchDynamiteDigger ", "750", "515");
game_array['THORS-THUNDER-SA'] = new Array ("N", "Y", "LaunchThorsThunder ", "750", "515");

game_array['ALIENSUPERNOVA']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11576&cgf_id=11577&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BINGOSLOT']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11596&cgf_id=11597&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BIGTOPEX']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11620&cgf_id=11621&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BATTLE']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11618&cgf_id=11619&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['EASTERNDRAGON']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11584&cgf_id=11585&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['SHUTTHEBOX']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11505&cgf_id=11506&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['SUPERCUBES']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11612&cgf_id=11613&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['DRLOVE']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11582&cgf_id=11583&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['ELVISTOP20']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11564&cgf_id=11565&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['RAINBOWRICHES']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11810&cgf_id=11811&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['PLANETX']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11808&cgf_id=11809&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CHAINREACTOR100']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11796&cgf_id=11797&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['HOLEINTHEWALL']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11800&cgf_id=11801&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['XFACTOR']          = new Array ("Y","action=GoFlashTest&nextAction=GoPreloader&cgr_id=11740&cgf_id=11741&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['BEJEWELED']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11766&cgf_id=11767&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['STREETFIGHTER']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11734&cgf_id=11735&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['AROUNDTHEWORLD']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11798&cgf_id=11799&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['KINGARTHUR']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11804&cgf_id=11805&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['RICHANDFAMOUS']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11812&cgf_id=11813&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['RUBIKS']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11880&cgf_id=11881&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['SPIDERMAN']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11814&cgf_id=11815&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CHRISTMASREACTORS']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11926&cgf_id=11927&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['FANTASTIC4']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11736&cgf_id=11737&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['CAPTAINJACKPOTS']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11966&cgf_id=11967&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['GRANDCASINO']          = new Array ("Y", "action=GoFlashTest&nextAction=GoPreloader&cgr_id=11968&cgf_id=11969&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");
game_array['SHERLOCKHOLMES']          = new Array ("Y", "action=GoPreloader&cgr_id=11870&cgf_id=11871&channel=&ext_game=Y&flash_login=Y&flash_cust=NTMedia", "765", "560");

function LaunchXGame(GameWinName)
{

  var domain = window.location.host;

  if (GameWinName == 'PiratePlunderSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Pirate Plunder SA','PiratePlunderSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'CloverRolloverSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Clover Rollover SA','CloverRolloverSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'SnowQueensMagicSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Snow Queens Magic SA','SnowQueensMagicSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'JungleMadnessSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Jungle Madness SA','JungleMadnessSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'LadiesLeisureSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Ladies Leisure SA','LadiesLeisureSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'LuckyLadies88SA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Lucky Ladies 88 SA','LuckyLadies88SA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'MayanManiaSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Mayan Mania SA','MayanManiaSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'PetLuckSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Pet Luck SA','PetLuckSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'TarotFortuneSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Tarot Fortune SA','TarotFortuneSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  }  else if (GameWinName == 'HollywoodBoulevardSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Hollywood Boulevard SA','HollywoodBoulevardSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'BigBountySA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Big Bounty SA','BigBountySA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'LadiesNightSA') {
    XGameWindow = window.open('https://' + domain + '/secure//php/launchVFMini.php?game=Ladies Night SA','LadiesNightSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'BigTopTombolaSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Big Top Tombola SA','BigTopTombolaSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'MafiaMillionsSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Mafia Millions SA','MafiaMillionsSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'DynamiteDiggerSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Dynamite Digger SA','DynamiteDiggerSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  } else if (GameWinName == 'ThorsThunderSA') {
    XGameWindow = window.open('https://' + domain + '/secure/php/launchVFMini.php?game=Thors Thunder SA','ThorsThunderSA', 'toolbar=0,scrollbars=0,location=0,directories=0,status=1,resizable=0,width=860,height=680,menubar=0');
  }

}



// put name into a decent format
function sanitise_name (name) {
  name = name.replace(/\'/, "");
  name = name.replace(/\"/, "");
  name = name.replace(/\s/, "");
  return name.toUpperCase();
}


// launch game function
function launch_game (name, free_play) {

  var name = sanitise_name(name);

  // check the game exists
  if (game_array && game_array[name]) {

    // is it an orbis game?
    if (game_array[name][0] == "Y") {

      windowPopUp("https://" + host + "/secure/mg_meccabingo?" + game_array[name][1] + "&free_play=" + free_play,
      "game_win",
      game_array[name][2],
      game_array[name][3],
      0, 0, 0, 0);
    } else {

      // sepcial actions for other games
      switch (name) {

        case "MULTIPLAYERBINGO" :

        SHeight = screen.availHeight;
        SWidth = screen.availWidth;

        windowPopUp("https://" + host + game_array[name][1],
        'MultiPlayerBingo',
        SWidth,
        SHeight,
        0, 1, 0, 0);

        break;


        case 'PIRATE-PLUNDER-SA':
        LaunchXGame('PiratePlunderSA');
        break;

        case 'CLOVER-ROLLOVER-SA':
        LaunchXGame('CloverRolloverSA');
        break;

        case 'SNOW-QUEENS-MAGIC-SA':
        LaunchXGame('SnowQueensMagicSA');
        break;

        case 'JUNGLE-MADNESS-SA':
        LaunchXGame('JungleMadnessSA');
        break;

        case 'LADIES-LEISURE-SA':
        LaunchXGame('LadiesLeisureSA');
        break;

        case 'LUCKY-LADIES-88-SA':
        LaunchXGame('LuckyLadies88SA');
        break;
        case 'MAYAN-MANIA-SA':
        LaunchXGame('MayanManiaSA');
        break;

        case 'PET-LUCK-SA':
        LaunchXGame('PetLuckSA');
        break;

        case 'TAROT-FORTUNE-SA':
        LaunchXGame('TarotFortuneSA');
        break;

        case 'HOLLYWOOD-BOULEVARD-SA':
          LaunchXGame('HollywoodBoulevardSA');
        break;

        case 'BIG-BOUNTY-SA':
          LaunchXGame('BigBountySA');
        break;

         case 'LADIES-NIGHT-SA':
          LaunchXGame('LadiesNightSA');
        break;

        case 'BIG-TOP-TOMBOLA-SA':
          LaunchXGame('BigTopTombolaSA');
        break;

        case 'MAFIA-MILLIONS-SA':
          LaunchXGame('MafiaMillionsSA');
        break;
		
		case 'DYNAMITE-DIGGER-SA':
          LaunchXGame('DynamiteDiggerSA');
        break;

        case 'THORS-THUNDER-SA':
          LaunchXGame('ThorsThunderSA');
        break;


        default :
        alert ("game not found");
        break;
      }

    }

  } else {
    windowPopUp('https://' + document.domain + '/games/launch/?game=' + escape(name), 'GameWindow', '650', '540');
  }

}

var strWin;
function windowPopUp (strURL,
strWinName,
iWinWidth,
iWinHeight,
strScrollBar,
strResize,
strToolbar,
strMenuBar) {

  if (strScrollBar == "yes") {
    if (is.ie == true || is.ns == true) { iWinWidth = iWinWidth + 16; }
  }

  // not first time we've opened the window?
  if (strWin!=null) {

    // window is open now?
    if (!strWin.closed) {
      // focus on it twice, sometimes the browser does not focus properly with one call only
      strWin.focus();
      strWin.focus();
    }
  }

  // open the window
  strWin = window.open(strURL,strWinName, "toolbar="+strToolbar+",scrollbars="+strScrollBar+",location=0,directories=0,status=1,resizable="+strResize+",width="+iWinWidth+",height="+iWinHeight+",menubar="+strMenuBar);
  //console.log('strURL');
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_jumpMenuGames(targ,selObj,restore){ //v3.0
  //alert(selObj.options[selObj.selectedIndex].value);
  launch_game(selObj.options[selObj.selectedIndex].value, 'Y');
  //eval(targ+".open='"+selObj.options[selObj.selectedIndex].value+"'");
  selObj.selectedIndex=0;
}
