var bannersPos1 = new Array(); bannersPos1[0] = ["http://www.jackpotcity.co.uk/index.asp?s=aff82784&a=affad198","jpc600x74-all.gif","",""]; bannersPos1[1] = ["http://banner.casinoking.com/cgi-bin/redir.cgi?id=N&member=gmfse&profile=nopop&banid=3860","kingcasino600x90-en.gif","",""]; bannersPos1[2] = ["http://serve.eurogrand.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=ocrsg&zone=1143259776&lp=13510052","euroGrand600x70-en.gif","",""]; bannersPos1[3] = ["http://serve.eurogrand.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=ocrsg&zone=1143259776&lp=13510052","EuroGrand600x70-en2.gif","",""]; var bannersPos2 = new Array(); bannersPos2[0] = ["http://www.brightshare.com/clickscounter.php?compaign=93&groupid=0&bTag=asaff1316_singapore&affid=1480 ","300x250as00.gif","","online casino"]; bannersPos2[1] = ["http://serve.williamhill.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=ocrsg&zone=662433699&lp=13510204","WillHillbingo300x250-en.gif","","online bingo"]; bannersPos2[2] = ["http://adserver.itsfogo.com/click.aspx?zoneid=69323","","","sports betting"]; bannersPos2[3] = ["http://serve.williamhill.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=ocrsg&zone=703014507&lp=46303113","WillHillpoker300x250-en.gif","","online poker"]; bannersPos2[4] = ["http://www.jackpotcity.co.uk/index.asp?s=aff82784¤cy=$&a=affad196","jackpotcity300x250en.gif","","online casino"]; var bannersPos3 = new Array(); bannersPos3[0] = ["http://www.jackpotcity.co.uk/index.asp?s=aff82784¤cy=$&a=affad197","jpc300x250-all.gif","","casino"]; bannersPos3[1] = ["http://banner.casinoking.com/cgi-bin/redir.cgi?id=N&member=23000000&profile=45164","king300x250.gif","","Online Casino"]; bannersPos3[2] = ["http://banner.scasino.com/cgi-bin/redir.cgi?id=N&member=27000000&profile=36020","swiss300x250.gif","","online casino"]; bannersPos3[3] = ["http://banner.titanpoker.com/cgi-bin/redir.cgi?id=N&member=eyal77&profile=ocr2sg","titanpoker300x250.gif","","online poker"]; bannersPos3[4] = ["http://serve.rubybingo.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=sgdef&zone=734601858&lp=0","rubybingo-en-300x250.gif","","online bingo"]; bannersPos3[5] = ["http://serve.williamhill.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=ocrsg&zone=1439958927&lp=892925643","WillHillsports300x250-en2.gif","","Sports Betting"]; bannersPos3[6] = ["http://www.coolhandpoker.com/?s=aff82784&a=affad298","coolhandpoker300x250en.gif","","poker"]; bannersPos3[7] = ["http://serve.williamhillcasino.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=sg22def&zone=717452698&lp=328057915","WillHillCasino300x250-en.gif","","casino"]; var bannersPos4 = new Array(); bannersPos4[0] = ["http://www.jackpotcity.co.uk/index.asp?s=aff82784&a=affad198","jpc300x250-all.gif","",""]; var bannersPos5 = new Array(); bannersPos5[0] = ["http://serve.prestigecasino.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=sgdef&zone=14153373&lp=0","prestige468english.gif","","Prestige Casino"]; bannersPos5[1] = ["http://serve.prestigecasino.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=sgdef&zone=14153373&lp=0","prestige468english2.gif","","Prestige Casino"]; bannersPos5[2] = ["http://serve.joylandcasino.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=ocr2fin&zone=14153296&lp=0","joyland468eng.gif","","Joyland Casino"]; bannersPos5[3] = ["http://serve.eurogrand.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=sgdef&zone=14153215&lp=0","eurogrand468english3.gif","","Euro Grand Casino"]; bannersPos5[4] = ["http://www.jackpotcity.co.uk/index.asp?s=aff82784¤cy=$&a=affad196","jpc486x60-all.gif","","Jackpot City Casino"]; bannersPos5[5] = ["http://www.riverbelle.co.uk/index.asp?s=aff82784&a=affad196","riverb468eng10.gif","","River Belle"]; bannersPos5[6] = ["http://www.riverbelle.co.uk/index.asp?s=aff82784&a=affad196","riverb468eng7.gif","","River Belle"]; bannersPos5[7] = ["http://banner.europacasino.com/cgi-bin/redir.cgi?id=N&member=eyal77&profile=ocr2sg","europacasino468x60en3.gif","","Europa Casino"]; bannersPos5[8] = ["http://www.luckynugget.co.uk/index.asp?s=aff82784&a=affad196","luckynugget468eng3.gif","","Lucky Nugget"]; bannersPos5[9] = ["http://banner.europacasino.com/cgi-bin/redir.cgi?id=N&member=eyal77&profile=ocr2sg","europacasino468x60en4.gif","","Europa Casino"]; bannersPos5[10] = ["http://www.luckynugget.co.uk/index.asp?s=aff82784&a=affad196","luckynugget468eng4.gif","","Lucky Nugget"]; bannersPos5[11] = ["http://www.jackpotcitybingo.co.uk/index.asp?s=aff82784&a=affad196","jackpotcitybingo468eng1.gif","","Jackpot City Bingo"]; bannersPos5[12] = ["http://casino.ladbrokes.com/en?LANG=en&STYLE=en&VIEW=uk&LAYOUT=default&AFF_ID=20231&ASSET_ID=78","ladbrokescasino468eng1.gif","","Ladbrokes Casino"]; bannersPos5[13] = ["http://casino.ladbrokes.com/en?LANG=en&STYLE=en&VIEW=uk&LAYOUT=default&AFF_ID=20231&ASSET_ID=78","ladbrokescasino468eng5.gif","","Ladbrokes Casino"]; bannersPos5[14] = ["http://www.spinpalace.com/eu/index.asp?s=wgs11036&a=wgsaffad19297","spinpalace468.gif","","Spin Palace"]; bannersPos5[15] = ["http://www.rubyfortune.com/index.asp?s=wgs11036&a=wgsaffad19297","rubyfortune468.gif","","Ruby Fortune Casino"]; bannersPos5[16] = ["http://www.mummysgold.com/index.asp?s=wgs11036&a=wgsaffad19297","mummygold468.gif","","Mummys Gold Casino"]; bannersPos5[17] = ["http://serve.williamhillpoker.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=sgdef&zone=66906782&lp=0","willhillpoker468eng.gif","","William Hill Poker"]; bannersPos5[18] = ["http://www.fulltiltpoker.com/?key=MDAwMTE0OEUwMDAyRDkxNjAwMDAwMDAwMDAwMDAwMDA-","fulltilt468eng.gif","","Full Tilt"]; bannersPos5[19] = ["http://www.fulltiltpoker.com/?key=MDAwMTE0OEUwMDAyRDkxNjAwMDAwMDAwMDAwMDAwMDA-","fulltilt468.gif","","Full Tilt"]; bannersPos5[20] = ["http://www.partybingo.com/index.htm?wm=3100097","partybingo468.gif","","Party Bingo"]; bannersPos5[21] = ["http://banners.victor.com/processing/clickthrgh.asp?btag=a_20359b_2009","vcbet468.gif","","VC Bet"]; bannersPos5[22] = ["http://www.gamingclub.co.uk/index.asp?s=aff82784¤cy=$&a=affad196","GamingClub468x60.gif","","Gaming Club"]; var bannersPos6 = new Array(); bannersPos6[0] = ["http://serve.prestigecasino.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=sgdef&zone=14153373&lp=0","prestige120600english.gif","","Prestige Casino"]; bannersPos6[1] = ["http://serve.prestigecasino.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=sgdef&zone=14153373&lp=0","prestige120600english2.gif","","Prestige Casino"]; bannersPos6[2] = ["http://serve.joylandcasino.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=ocr2fin&zone=14153296&lp=0","joyland160600english.gif","","Joyland Casino"]; bannersPos6[3] = ["http://serve.eurogrand.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=sgdef&zone=14153215&lp=0","eurogrand120600english.gif","","Euro Grand Casino"]; bannersPos6[4] = ["http://www.jackpotcity.co.uk/index.asp?s=aff82784¤cy=$&a=affad196","jpc120x600-all.gif","","Jackpot City Casino"]; bannersPos6[5] = ["http://www.riverbelle.co.uk/index.asp?s=aff82784&a=affad196","riverb120600eng2.gif","","River Belle"]; bannersPos6[6] = ["http://www.riverbelle.co.uk/index.asp?s=aff82784&a=affad196","riverb120600eng7.gif","","River Belle"]; bannersPos6[7] = ["http://banner.europacasino.com/cgi-bin/redir.cgi?id=N&member=eyal77&profile=ocr2sg","europacasino120x600.gif","","Europa Casino"]; bannersPos6[8] = ["http://banner.europacasino.com/cgi-bin/redir.cgi?id=N&member=eyal77&profile=ocr2sg","europacasino120x6004.gif","","Europa Casino"]; bannersPos6[9] = ["http://www.luckynugget.co.uk/index.asp?s=aff82784&a=affad196","luckynugget120600eng3.gif","","Lucky Nugget"]; bannersPos6[10] = ["http://www.luckynugget.co.uk/index.asp?s=aff82784&a=affad196","luckynugget120600eng2.gif","","Lucky Nugget"]; bannersPos6[11] = ["http://www.jackpotcitybingo.co.uk/index.asp?s=aff82784&a=affad196","jackpotcitybingo120600eng.gif","","Jackpot City Bingo"]; bannersPos6[12] = ["http://casino.ladbrokes.com/en?LANG=en&STYLE=en&VIEW=uk&LAYOUT=default&AFF_ID=20231&ASSET_ID=78","ladbrokescasino120600eng4.gif","","Ladbrokes Casino"]; bannersPos6[13] = ["http://www.spinpalace.com/eu/index.asp?s=wgs11036&a=wgsaffad19297","spinpalace120.gif","","Spin Palace"]; bannersPos6[14] = ["http://www.rubyfortune.com/index.asp?s=wgs11036&a=wgsaffad19297","rubyfortune1602.gif","","Ruby Fortune Casino"]; bannersPos6[15] = ["http://www.mummysgold.com/index.asp?s=wgs11036&a=wgsaffad19297","mummygold160.gif","","Mummys Gold Casino"]; bannersPos6[16] = ["http://serve.williamhillpoker.com/promoRedirect?member=wtinfo&campaign=DEFAULT&channel=sgdef&zone=66906782&lp=0","willhillpoker120600eng.gif","","William Hill Poker"]; bannersPos6[17] = ["http://www.fulltiltpoker.com/?key=MDAwMTE0OEUwMDAyRDkxNjAwMDAwMDAwMDAwMDAwMDA-","fulltilt160.gif","","Full Tilt"]; bannersPos6[18] = ["http://www.partybingo.com/index.htm?wm=3100097","partybingo120.gif","","Party Bingo"]; bannersPos6[19] = ["http://banners.victor.com/processing/clickthrgh.asp?btag=a_20359b_2009","vcbet120.gif","","VC Bet"]; bannersPos6[20] = ["http://www.gamingclub.co.uk/index.asp?s=aff82784¤cy=$&a=affad196","GamingClub160x600.gif","","Gaming Club"]; $(document).ready(function() { var totalAdsTypeArr = new Array(1,2,3,4,5,6); var pageTitle = document.title; // Get Page Meta Title pageTitle = pageTitle.substring(0,pageTitle.indexOf('Onlinecasinoreports.sg')); jQuery.each(totalAdsTypeArr, function(index, adPosId){ var bannersForPosition = window["bannersPos"+adPosId]; // Bulding the array var bannersPos1/2/etc. if ($("#adPosition"+adPosId).length > 0 && (typeof bannersForPosition != "undefined")){ // Check if the page has the Ad Div Id and Banner Exist for that type var bannerSelected = 0; var bannerHTML = ''; // Check if we should look for keywords banner or not depending on the banner position if (adPosId != 1 && adPosId != 4) // Excluding index types { // Going throw each banner and then on each one of his keywords to look for matching banners for the page title var matchedBannersArr = new Array(); jQuery.each(bannersForPosition, function(index, bannerData){ if (bannerData[3].length > 0) { // If has keywords var bannerKeywordsArr = bannerData[3].split(","); jQuery.each(bannerKeywordsArr, function(index2, bannerKeyword){ bannerKeyword = bannerKeyword.replace(/^\s+|\s+$/g, ""); // Removing white space var regEx = new RegExp(bannerKeyword,"i"); if (pageTitle.search(regEx) >= 0) { matchedBannersArr.push(bannerData); return false; // Stop after one match so it can't add the same banner more then ones } }); } }); // If there are matched banners for this page - choose one randomly if (matchedBannersArr.length > 0) { var randomBannerNum = Math.floor((matchedBannersArr.length)*Math.random()); bannerSelected = matchedBannersArr[randomBannerNum]; } } // In case no banner was selected yet and banner position is not on product page - choose random one from all the banners if (bannerSelected == 0 && adPosId != 5 && adPosId != 6) { var randomBannerNum = Math.floor((bannersForPosition.length)*Math.random()); bannerSelected = bannersForPosition[randomBannerNum]; } // If finally banner was selected - print it! if (bannerSelected != 0) { // If banner type 5 (top banner on product page) adds border if (adPosId == 5) bannerHTML += '