			var randomnumber=Math.random();
			var randomnumber2=Math.random();
			var adFor = 0; // 1 = calculatem, 2 = holdem indicator, 3 = tournament indicaotr, 4 = full tilt, 5 = poker office
			if (randomnumber > 0.5) {

				adFor = 3;

				document.getElementById("left_banner_ad").innerHTML="<br><br><a class='clicky_log_outbound' href='/goto/tournament-indicator.php' rel='nofollow'><img src='/images/tournamentindicator/ti_banner_120_600_01a.gif' alt='Poker' width='120' height='600' border='0' ></a><br><center><br><i>Poker<br>Calculator<br>Online is proud<br>to be an<br>affiliate of Tournament<br>Indicator</i><br></center>";

				document.getElementById("top_right_add").innerHTML="<a class='clicky_log_outbound' href='/goto/tournament-indicator.php' rel='nofollow'><img src='/images/tournamentindicator/ti_banner_125_125_01a.gif' height='125' width='125' border=0></a>";
			} else if (randomnumber > -1) {

				adFor = 1;
	//			document.getElementById("left_banner_ad").innerHTML="<a href='http://www.fulltiltpoker.com/?key=MDAwMDYzNTIwMDAwRjY4MzIwMjI0MDI0MDAwMDAwMDI-' rel='nofollow' target='_blank'><img src='http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/100-deposit-bonus/120x600.gif' alt='Play Online Poker' width='120' height='600' border='0' ></a>";
	//			document.getElementById("left_banner_ad").innerHTML="<a href='http://brdg22.openended.hop.clickbank.net/' rel='nofollow' target='_blank'><img src='/images/mincom/mincom1.gif' alt='Poker' width='120' height='600' border='0' ></a>";
				document.getElementById("left_banner_ad").innerHTML="<table border=1 bgcolor=lightgrey width=120><tr><td><center>"+
			"<div style=\"font-family: sans-serif, Verdana, Arial, Helvetica\"><FONT COLOR='darkblue'><h3>Texas Calculatem</h3></Font><b>"+
			"<img src='images/Calculatem/mainmode-oddsview.jpg' alt='Poker'  border='0'><br><br>"+
			"<FONT COLOR='darkblue'>Gives the odds in real time while playing online</font><br><br>"+
			"<FONT COLOR='red'>Real time betting advice</Font><br><br>"+
			"<FONT COLOR='black'>Free with poker room sign up</Font></b><br><br></div>"+
			"<a class='clicky_log_outbound' href='/goto/calculatem-download.php' rel='nofollow'><img src='/images/download/button_0.gif' alt='Poker'  border='0' ></a>"+
			"<br></center></tr></td></table><center><br><br><i>Poker<br>Calculator<br>Online<br>is proud to be <br>an affiliate<br>of Texas<br> Calculatem</i></center>";


				if (randomnumber2 < 1.1) {
					document.getElementById("top_right_add").innerHTML="<a class='clicky_log_outbound' href='/goto/calculatem.php' rel='nofollow'><img src='images/Calculatem/Calculatem125x125.bmp' height='125' width='125' border=0></a>";
//					document.getElementById("top_right_add").innerHTML="<img src='images/banner/Version2PCO125x125.jpg' height='125' width='125' border=0>";
				} else {
					document.getElementById("top_right_add").innerHTML="<a href='http://www.partypoker.com/index.htm?wm=2882172' rel='nofollow' target='_blank'><img src='/images/PartyBanners/125x125_gif_casale.gif' width='125' height='125' border='0' alt='Gif Banners'></a>";
					document.getElementById("top_right_add").innerHTML="<a href='http://brdg22.openended.hop.clickbank.net/' rel='nofollow' target='_blank'><img src='/images/PokerOffice/PokerOffice125x125.gif' width='125' height='125' border='0' alt='Poker Office'></a>";
				}









			} else {
				adFor = 4;

				document.getElementById("left_banner_ad").innerHTML="<a class='clicky_log_outbound' href='/goto/full-tilt-poker.php' rel='nofollow' ><img src='http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/100-deposit-bonus/120x600.gif' alt='Play Online Poker' width='120' height='600' border='0' ></a>";
				document.getElementById("top_right_add").innerHTML="<a class='clicky_log_outbound' href='/goto/full-tilt-poker.php' rel='nofollow' ><img src='http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/100-deposit-bonus/125x125.gif' alt='Play Online Poker' width='125' height='125' border='0' ></a>";
			
			} 
//			else {
//				adFor = 5;
//				document.getElementById("left_banner_ad").innerHTML="<a href='http://www.pokeroffice.com/?AffID=10817' rel='nofollow' target='_blank'><img src='/images/PokerOffice/PokerOffice120x600.gif' width='120' height='600' border='0' ></a>";
//				document.getElementById("top_right_add").innerHTML="<a href='http://www.pokeroffice.com/?AffID=10817' rel='nofollow' target='_blank'><img src='/images/PokerOffice/PokerOffice125x125.gif' width='125' height='125' border='0' alt='Poker Office'></a>";
			
//			}

/*			} else {
				adFor = 2;

			//	document.getElementById("left_banner_ad").innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' 		width='120' height='600'> 		<param name='movie' value='http://www.superpokeraffiliates.com/_media?data=502738_27_4_104_NCRmLkdPa2tOUTRTdw%3D%3D&isSpa=true&clickTAG=http%3A%2F%2Fwww.superpokeraffiliates.com%2F_page%3Fdata%3D502738_27_4_104_NCRmLkdPa2tOUTRTdw%253D%253D'> 		<param name='quality' value='high'> 	<embed src='http://www.superpokeraffiliates.com/_media?data=502738_27_4_104_NCRmLkdPa2tOUTRTdw%3D%3D&isSpa=true&clickTAG=http%3A%2F%2Fwww.superpokeraffiliates.com%2F_page%3Fdata%3D502738_27_4_104_NCRmLkdPa2tOUTRTdw%253D%253D' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='120' height='600'> </embed> </object> ";
				document.getElementById("left_banner_ad").innerHTML="<br><br><a href='http://www.holdemindicator.com/?affi=1260' rel='nofollow'><img src='images/holdemindicator/120x600.gif' alt='Poker' width='120' height='600' border='0' ></a>";

				if (randomnumber2 < 1.1) {
					document.getElementById("top_right_add").innerHTML="<a href='http://www.holdemindicator.com/?affi=1260' rel='nofollow'><img src='images/holdemindicator/120x120.gif' height='120' width='120' border=0></a>";
//					document.getElementById("top_right_add").innerHTML="<a href='http://www.fulltiltpoker.com/?key=MDAwMDYzNTIwMDAwRjY4MzIwODI0MDI0MDAwMDAwMDE-' rel='nofollow' target='_blank'><img src='http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/100-deposit-bonus/125x125.gif' alt='Play Online Poker' width='125' height='125' border='0' ></a>";
				} else {
					document.getElementById("top_right_add").innerHTML="<a href='http://www.pokeroffice.com/?AffID=10817' rel='nofollow' target='_blank'><img src='/images/PokerOffice/PokerOffice125x125.gif' width='125' height='125' border='0' alt='Poker Office'></a>";
				}
			}
//else {
//
//				document.getElementById("left_banner_ad").innerHTML="<a href='http://www.pokeroffice.com/?AffID=10817' rel='nofollow' target='_blank'><img src='/images/PokerOffice/PokerOffice120x600.gif' width='120' height='600' border='0' alt='Poker Office'></a>";
//
//				if (randomnumber2 < 0.5) {
//					document.getElementById("top_right_add").innerHTML="<a href='http://www.fulltiltpoker.com/?key=MDAwMDYzNTIwMDAwRjY4MzIwODI0MDI0MDAwMDAwMDE-' rel='nofollow' target='_blank'><img src='http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/100-deposit-bonus/125x125.gif' alt='Play Online Poker' width='125' height='125' border='0' ></a>";
//				} else {
//					document.getElementById("top_right_add").innerHTML="<a href='http://www.partypoker.com/index.htm?wm=2882172' rel='nofollow' target='_blank'><img src='/images/PartyBanners/125x125_gif_casale.gif' width='125' height='125' border='0' alt='Gif Banners'></a>";
//				}


//			}
*/


    function getResultAdString(){
        var adString = "<div style=\"width:184px;\">\n<center>\n<br>\n<b>\n";

        var calcNoMod8 = calcOddsNo % 8;
        var calcNoMod6 = calcOddsNo % 6;
        var calcNoMod10 = calcOddsNo % 10;

        if (adFor == 2){
            if (calcNoMod8 == 1)
                adString += "Holdem Indicator gives the odds in real time while playing online.";
            else if (calcNoMod8 == 2)
                adString += "Holdem Indicator tracks your opponents and reports statistics on their game play.";
            else if (calcNoMod8 == 3)
                adString += "This tool calculates win odds, pot odds, outs and table position.";
            else if (calcNoMod8 == 4)
                adString += "Shows mucked cards after a showdown so you will know what your opponent held.";
            else if (calcNoMod8 == 5)
                adString += "Holdem indicator supports multi-tabling, giving full odds for each table.";
            else if (calcNoMod8 == 6)
                adString += "You will see the odds of you or your best opponent making different hand types by the river.";
            else if (calcNoMod8 == 7)
                adString += "Profiles opponents into a number of categories such as a fish, a calling station or a good player.";
            else if ( (calcNoMod8 == 8) || (calcNoMod8 == 0) )
                adString += "Having statistics on your own game play will allow you to determing if your are playing a tight aggressive game.";

        } else if (adFor == 1){
            
            if (calcNoMod6 == 1)
                adString += "Texas Calculatem gives the odds in real time while playing online.";
            else if (calcNoMod6 == 2)
                adString += "Texas Calculatem gives real time betting advice, taking into account factors such as cards, position, fold depth and playing style.";
            else if (calcNoMod6 == 3)
                adString += "Configure betting advice to preferred style of play, e.g. tight preflop and aggressive post flop.";
            else if (calcNoMod6 == 4)
                adString += "Calculatem incorperates complex mathematical algorithms into its odds calculation to take account of factors such as opponents likley hands given position and table play.";
            else if (calcNoMod6 == 5)
                adString += "This tool shows your outs as the hand unfolds.";
            else if ( (calcNoMod6 == 6) || (calcNoMod6 == 0) )
                adString += "You can get Texas Calculatem Free with a poker room sign up.";
  //          adString += "Do you like the new version of the calculator guys?<br><br>" +
  //              "Would you like to help the site?<br><br>" +
  //              "If so, one of the most helpful things you could do would be to " +
  //              "bookmark the calculator in your favourite online bookmarking site, " +
  //              "discuss it in a forum, or if you're a blogger, mention it in a blog post.<br><br>" +
  //              "We hope you like the new version, and enjoy its use.<br><br>Cheers.<br>";
    //		else if (calcNoMod8 == 7)
    //			adString += "";
    //		else if ( (calcNoMod8 == 8) || (calcNoMod8 == 0) )
    //			adString += "";
        } else if (adFor == 3){

            if (calcNoMod10 == 1)
                adString += "Tournament Indicator is the world's 1st online poker Tournament calculator, giving the odds as you play online.";
            else if (calcNoMod10 == 2)
                adString += "Tournaments require special tactics and Tournament Indicator is the only odds calculator that gives you all the information you need specifically for tournaments.";
            else if (calcNoMod10 == 3)
                adString += "As well as odds, you will know your MZone: how deep stacked are you compared to the blinds and antes.";
            else if (calcNoMod10 == 4)
                adString += "This should critically influence you strategy at different stages of the tournament.";
            else if (calcNoMod10 == 5)
                adString += "Tournament Indicator tracks your opponents and reports statistics on their game play.";
            else if (calcNoMod10 == 6)
                adString += "You will know your opponents MZone and statistics on their game play in different MZones.";


            else if (calcNoMod10 == 7)
                adString += "This tool calculates win odds, pot odds, outs and table position.";
            else if (calcNoMod10 == 8)
                adString += "Shows mucked cards after a showdown so you will know what your opponent held.";
            else if (calcNoMod10 == 9)
                adString += "You will see the odds of you or your best opponent making different hand types by the river.";
            else if ( (calcNoMod10 == 10) || (calcNoMod10 == 0) )
                adString += "Tournament Indicator profiles opponents into a number of categories such as a fish, a calling station or a good player.";

				
		} else {
		
				
        }

        if (adFor == 2){
            adString += "<br><br><a href='http://www.holdemindicator.com/?affi=1260' rel='nofollow'  style='color:lightblue'>Free!</a><br><br><a href='http://www.holdemindicator.com/?affi=1260' rel='nofollow'  style='color:lightblue'>Visit HoldemIndicator.com</a><br>";
        } else if (adFor == 1) {
//            adString += "<br><br><a href='http://www.superpokeraffiliates.com/_page?data=502738_28_6_407_NiREN2hyZDF6SmFkbw%3D%3D' rel='nofollow'><img src='/images/download/button_0.gif' alt='Poker'  border='0' ></a><br>";
            adString += "<br><br><a class='clicky_log_outbound' href='/goto/calculatem.php' rel='nofollow' style='color:lightblue'>Visit Calculatem.com</a><br>";
        } else if (adFor == 3){
    //		adString += "<br><br><a href='http://www.tournamentindicator.com/?affi=1244' rel='nofollow'>Free!</a><br><br><a href='http://www.tournamentindicator.com/?affi=1244' rel='nofollow'>Visit TournamentIndicator.com</a><br>";
            adString += "<br><br><a href='/online-poker-calculator/'  style='color:lightblue'>Read Our Full Review of Tournament Indicator</a><br>";
        } else {
			adString += "<br><center><a href='http://www.stumbleupon.com/submit?url=http://www.pokercalculatoronline.com/&title=Poker+Odds+Calculator'> <img border=0 src='/images/icon_su.gif' alt='StumbleUpon Toolbar'> Stumble It!</a><br>"
		}

        adString += "<br></b>\n</center>\n</div>\n";
        return adString;
    }