

//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 = 5 seconds -\\

//-4) number of ads to rotate -\\
var numAds = 3;

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;



ads[i].width = "900"    
ads[i].height = "150"                  
ads[i].src = "images/banner0.jpg"  			
ads[i].href = "http://www.jdseafoodexpress.com"           	 
ads[i].mouseover = "JD Seafood Express provides healthy, high-quality seafood and Piedmontese Beef delivered right to your door at a lower cost than our competiton."       
ads[i].sponsor = "Jeff Dickson - JD Seafood Express"

i++

/*------------begin banner definition----------*/
/*ads[i].width = "900"                           //width of image
ads[i].height = "150"                           //height of image
ads[i].src = "images/banner1.jpg"  			       //image url
ads[i].href = "http://www.designbysatori.com"           	       //link url
ads[i].mouseover = "Design by Satori - Web Design & Marketing Firm"            //text to display when mouse moves over banner
ads[i].sponsor = "Design by Satori"                     //text to display for text link under banner
i++
*//*-------------end banner definition-----------*/


ads[i].width = "900"    
ads[i].height = "150"                  
ads[i].src = "images/banner9.jpg"  			
ads[i].href = "http://www.falconcontracting.biz"           	 
ads[i].mouseover = "Falcon Contracting - Professional Repair and Remodeling - Residential &amp; Commerical"       
ads[i].sponsor = "Michael Harden - Falcon Contracting"

i++
/*
ads[i].width = "900"    
ads[i].height = "150"                  
ads[i].src = "images/banner3.jpg"  			
ads[i].href = "http://www.ultracomsolutions.com/"           	 
ads[i].mouseover = "Ultracom Solutions - Your Voice & Data Solutions"       
ads[i].sponsor = "Ultracom"                 
i++

ads[i].width = "900"    
ads[i].height = "150"                  
ads[i].src = "images/banner4.jpg"  			
ads[i].href = "http://www.a-new-start.com"           	 
ads[i].mouseover = "Charles Schneider P.C.  - Bankruptcy Attorney"  
ads[i].sponsor = "Charles Schneider P.C.  - Bankruptcy Attorney"      

i++

ads[i].width = "900"    
ads[i].height = "150"                  
ads[i].src = "images/banner5.jpg"  			
ads[i].href = "http://www.thegreenagentman.com"           	 
ads[i].mouseover = "Bob Mattler - The Green Agent Man"  
ads[i].sponsor = "Armada Real Estate"      

i++

ads[i].width = "900"    
ads[i].height = "150"                  
ads[i].src = "images/banner6.jpg"  			
ads[i].href = "http://www.bni-fh.com/advertise.htm"           	 
ads[i].mouseover = "Music by Ginny Papper"  
ads[i].sponsor = "Music by Ginny Papper"      

i++

*/
ads[i].width = "900"    
ads[i].height = "150"                  
ads[i].src = "images/banner7.jpg"  			
ads[i].href = "http://www.insuremich.com"           	 
ads[i].mouseover = "The Diederich Agency, Inc."  
ads[i].sponsor = "The Diederich Agency, Inc."      

i++


/*ads[i].width = "900"    
ads[i].height = "150"                  
ads[i].src = "images/banner8.jpg"  			
ads[i].href = "http://www.foreverthinner.com"           	 
ads[i].mouseover = "Manage Your Weight"  
ads[i].sponsor = "Herbalife" */     

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>Sponsored by: <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
	
}