var backGroundArray=[];populateBGArray(); function populateBGArray(){var a=0;imageObj=new Image;a=backGroundArray.length;backGroundArray[a]=new MainBackground("mainImage1","Manage your own stable...","With The TrackMaster Virtual Stable","/stable","/images/mainBG/mainBG_1.jpg");imageObj.src=backGroundArray[a].imageURL;a=backGroundArray.length;backGroundArray[a]=new MainBackground("mainImage2","Winning made easy...","TrackMaster Greg Harness Reports","/harness/select/tmg.htm","/images/mainBG/mainBG_2.jpg");imageObj.src=backGroundArray[a].imageURL; a=backGroundArray.length;backGroundArray[a]=new MainBackground("mainImage3","Harness Programs With The Works...","Platinum Past Performances","/harness/hpl.htm","/images/mainBG/mainBG_3.jpg");imageObj.src=backGroundArray[a].imageURL;a=backGroundArray.length;backGroundArray[a]=new MainBackground("mainImage4","Free Products, Special Offers &amp; More...","The TrackMaster Players Club","/free","/images/mainBG/mainBG_4.jpg");imageObj.src=backGroundArray[a].imageURL;a=backGroundArray.length;backGroundArray[a]= new MainBackground("mainImage5","Handicapping Info On The Go...","TrackMaster Mobile Web Site","http://m.trackmaster.com","/images/mainBG/mainBG_5.jpg");imageObj.src=backGroundArray[a].imageURL;a=backGroundArray.length;backGroundArray[a]=new MainBackground("mainImage6","Software For The Serious Player...","TrackMaster Plus Pro","/track/tmu.htm","/images/mainBG/mainBG_6.jpg");imageObj.src=backGroundArray[a].imageURL} 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());b.style.backgroundImage="url("+a.imageURL+")"}else setTimeout("setMainBackground()",200)}function MainBackground(a,b,c,d,e){this.whichStyleClass=a;this.highlightText=b;this.anchorText=c;this.anchorURL=d;this.imageURL=e;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};
