var backGroundArray=[];populateBGArray(); function populateBGArray(){var a=0;a=backGroundArray.length;backGroundArray[a]=new MainBackground("mainImage1","Free products, special offers and more inside...","The TrackMaster Players Club","/free");a=backGroundArray.length;backGroundArray[a]=new MainBackground("mainImage2","Manage your own stable...","The TrackMaster Virtual Stable","/stable");a=backGroundArray.length;backGroundArray[a]=new MainBackground("mainImage3","Archived Results Charts...","Request 1, 2 or 3+ Years of Historical Data","/track/tch.htm"); a=backGroundArray.length;backGroundArray[a]=new MainBackground("mainImage4","Watch them win again...","TrackMaster Race Replays","/retail/rep.htm");a=backGroundArray.length;backGroundArray[a]=new MainBackground("mainImage5","Winning made fun...","TrackMaster Greg Harness Reports","/harness/select/tmg.htm");a=backGroundArray.length;backGroundArray[a]=new MainBackground("mainImage6","TrackMaster Blog...","Read our posts and leave your comments","http://blog.trackmaster.com")} function setMainBackground(){var a=(new Date).getTime();a=backGroundArray[a%backGroundArray.length];var b=getNodeRef("main");if(b){b.className=a.whichStyleClass;setInnerHTML("main_text",a.buildMainText())}else setTimeout("setMainBackground()",200)}function MainBackground(a,b,c,d){this.whichStyleClass=a;this.highlightText=b;this.anchorText=c;this.anchorURL=d;this.buildMainText=buildMainText} function buildMainText(){var a="";a='<span class="yellow">'+this.highlightText+"</span>";a+="\n<br />\n";a+='<a href="'+this.anchorURL+'">'+this.anchorText+'</a>  <a href="'+this.anchorURL+'"><img src="/images/yellow_arrow.gif" width="18" height="18" border="0" alt="TrackMaster" style="padding-left: 5px;" /></a>';return a};