/*----------------------------------------------------
||Banner Ad Rotater v1.01                            ||
||                                                   ||
||Script by:                                         ||
||Anarchos                                           ||
||URL: http://www.xs.mw/anarchos                     ||
||E-mail: anarchos3@hotmail.com                      ||
||ICQ: 12007422                                      ||
||                                                   ||
||E-mail or ICQ me if you have any questions or need ||
||help setting up your banner ad rotator. Check out  ||
||my webpage every once in a while for updates to    ||
||this script.                                       ||
-----------------------------------------------------*/


//Setup Instructions:
//-0) Modify this file then copy and paste it into the <head> of the webpage to use the banner ad script

/*---------------------------
1) add into your <head>:
 
<script language="javascript" src="bannerscript.js"></script>

<style>
<!--
#bannerAd{visibility:visible;}
-->
</style>
 
-----------------------------*/

/*----------------------------
2) add this code into your webpage where you want the banner ad to be displayed:

<!-- Banner Ad code -->
<div id="bannerAd">
<script language="JavaScript">
<!-- 
document.write(myCode)
// -->
</script>
</div>
<!-- End Banner Ad-->

-----------------------------*/

//-3) time between switching the ad, in milliseconds -\\
var refreshTime = 10000; //- 10000 ms = 10 seconds -\\

//-4) number of ads to rotate -\\
var numAds = 27;

function makeAd() {
	this.width = ''
	this.height = ''
	this.src = ''
	this.href = ''
	this.mouseover = ''
	this.sponsor = ''
}

var ads = new Array()
for(var i = 1; i <= numAds; i++) { ads[i] = new makeAd() }

//- 5) Copy and paste the lines between the banner definition for 
//each banner you want to rotate and be sure to change numAds to 
//the number of banners (look about 15 lines up for numAds)
i = 1;


/*------------begin banner definition----------*/
ads[i].width = "468"                           //width of image
ads[i].height = "60"                           //height of image
ads[i].src = "/images/allsports.jpg"  			       //image url
ads[i].href = "http://www.allsportspicks.net"           	       //link url
ads[i].mouseover = "AllSports Handicapping"            //text to display when mouse moves over banner

i++
/*-------------end banner definition-----------*/

ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/pregame468.jpg"  			
ads[i].href = "http://pregameconsensus.com"           	 
ads[i].mouseover = "Pregame Consensus"       
             
i++


ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/Pinsider468.jpg"  			
ads[i].href = "http://www.payneinsider.com"           	 
ads[i].mouseover = "Payne Insider "   

i++


ads[i].width = "400"    
ads[i].height = "80"                  
ads[i].src = "/images/luke468.jpg"  			
ads[i].href = "http://sportscappingpros.com"           	 
ads[i].mouseover = "Luke Anthony "   

i++


ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/CT468.gif"  			
ads[i].href = "http://www.CTSportsPicks.com"           	 
ads[i].mouseover = "Craig Trapp "   

i++

ads[i].width = "468"    
ads[i].height = "80"                  
ads[i].src = "/images/betone468.jpg"  			
ads[i].href = "http://www.betonepicks.com"           	 
ads[i].mouseover = "Bet One Picks "   

i++

ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/apple468.gif"  			
ads[i].href = "http://applehandicappers.com"           	 
ads[i].mouseover = "Apple handicappers "   


i++


ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/just468.jpg"  			
ads[i].href = "http://www.justfootballpicks.net"           	 
ads[i].mouseover = "Just Football Picks"    

i++


ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/cajun.jpg"  			
ads[i].href = "http://www.CajunCapper.com "           	 
ads[i].mouseover = "Cajun Capper"    

i++


ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/CSM468.gif"  			
ads[i].href = "http://csmsportsconsultants.com"           	 
ads[i].mouseover = "CSM"    

i++


ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/cbet468.jpg"  			
ads[i].href = "http://www.collegebettor.com"           	 
ads[i].mouseover = "College Bettor"    

i++

ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/thegeeksheet468.jpg"  			
ads[i].href = "http://www.thegeeksheetsports.com"           	 
ads[i].mouseover = "TheGeekSheetSports"    
 
i++

ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/ew468.gif"  			
ads[i].href = "http://www.betonepicks.com/"           	 
ads[i].mouseover = "EW Sports"    
 
i++


ads[i].width = "468"    
ads[i].height = "80"                  
ads[i].src = "/images/champ_banner1.gif"  			
ads[i].href = "http://championship-picks.com"           	 
ads[i].mouseover = "Championship Picks"       
              
i++


ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/3dw.gif"  			
ads[i].href = "http://www.3dailywinners.net"           	 
ads[i].mouseover = "3 Daily Winners"       
              
i++

ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/lekota.jpg"  			
ads[i].href = "http://www.lekotasports.com"           	 
ads[i].mouseover = "Lekota Sports"       
              
i++

ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/primetime.gif"  			
ads[i].href = "http://www.psawins.com/ad.php?id=67"           	 
ads[i].mouseover = "PrimeTime Sports Advisors"       
              
i++


ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/lpw.gif"  			
ads[i].href = "http://lpwsportsforecast.com"           	 
ads[i].mouseover = "LPW Sportsforecast"       
              
i++



ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/sbc.gif"  			
ads[i].href = "http://www.sportsbetcapping.com"           	 
ads[i].mouseover = "Sportsbetcapping"       
              
i++


ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/spamer.gif"  			
ads[i].href = "http://www.sportsamericasportsservice.com"           	 
ads[i].mouseover = "Sports America Sports Service"       
              
i++


ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/sharp.jpg"  			
ads[i].href = "http://www.sharpedgeplays.com"           	 
ads[i].mouseover = "SharpEdge Sports"       
              
i++


ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/superdogf1.gif"  			
ads[i].href = "http://www.superdogpicks.com"           	 
ads[i].mouseover = "Super Dog Picks"       
          
i++

ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/sport01.gif"  			
ads[i].href = "http://www.brandxsports.com"           	 
ads[i].mouseover = "Brand X handicapping"       
             
i++


ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/winningpicksnow.gif"  			
ads[i].href = "http://Winsportsnow.com"           	 
ads[i].mouseover = "Win Sports Now"       
ads[i].sponsor = " "                 
i++



ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/greenbacks.jpg"  			
ads[i].href = "http://www.greenbackpicks.com"           	 
ads[i].mouseover = "Green Back Picks"       
ads[i].sponsor = " "                 
i++




ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/bpo460.jpg"  			
ads[i].href = "http://www.BPOSport.com"           	 
ads[i].mouseover = "BPO Sports Corp"       
ads[i].sponsor = " "                 
i++



ads[i].width = "468"    
ads[i].height = "60"                  
ads[i].src = "/images/dabanner.gif"  			
ads[i].href = "http://www.derrikealexander.com"           	 
ads[i].mouseover = "Derrike Alexander"       
ads[i].sponsor = " "                 
i++



var myCode = '';
do {
var n= Math.floor(Math.random() * (numAds + 1) + 1);
} while(n > numAds);
var current_ad = n;
myCode = getCode(n);

function getCode(adNumber){
	var tempCode = ""
	tempCode += ('<a href="'+ ads[adNumber].href +'" \n')
	tempCode += ('onMouseOver="status=\''+ ads[adNumber].mouseover +'\';return true" \n')
	tempCode += ('onMouseOut="status=\'\'"> \n')
	tempCode += ('<img src="' + ads[adNumber].src + '" width=' + ads[adNumber].width)
	tempCode += (' onLoad="setTimeout(\'newAd();\',' + refreshTime + ');"')
	tempCode += ('\n height=' + ads[adNumber].height + ' border=0 >')
	tempCode += ('<br>  <b>' + ads[adNumber].sponsor + '</b>') //delete this line if you don't want any text to be displayed under your banner
	tempCode += ('</a>')
	return tempCode;
	}

function newAd(){
	current_ad++;
	if (current_ad > numAds)
		current_ad = 1;
	if (document.all){
	   write(getCode(current_ad));
	   }
}

function write(text){
	if (document.layers) {
		document.bannerAd.document.write(text)
		document.bannerAd.document.close();
		}
	else
		if (document.all)
			document.all.bannerAd.innerHTML = text
	
}