

//-3) time between switching the ad, in milliseconds -\\
var refreshTime = 15000; //- 5000 ms = 5 seconds -\\

//-4) number of ads to rotate -\\
var numAds = 11;

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 = "429"                           //width of image
ads[i].height = "60"                           //height of image
ads[i].src = "http://www.urbansouth.us/img/blackcuties.jpg"  			       //image url
ads[i].href = "http://www.blackcuties.com"           	       //link url
ads[i].mouseover = "Black Cuties"            //text to display when mouse moves over banner
ads[i].sponsor = " "                     //text to display for text link under banner
i++
/*-------------end banner definition-----------*/


ads[i].width = "429"                           //width of image
ads[i].height = "60"                           //height of image
ads[i].src = "http://www.urbansouth.us/img2/AsiahsBanner.gif"  			       //image url
ads[i].href = "http://www.asiahsavenue.com"           	       //link url
ads[i].mouseover = "Asiahs' Avenue - Model"            //text to display when mouse moves over banner
ads[i].sponsor = " "                     //text to display for text link under banner
i++


ads[i].width = "429"    
ads[i].height = "60"                  
ads[i].src = "http://www.urbansouth.us/img/tomikaskanes_429x60.jpg"  			
ads[i].href = "http://www.tomikaskanes.com"           	 
ads[i].mouseover = "Tomika Skanes - Model"       
ads[i].sponsor = " "                 
i++


ads[i].width = "429"                           //width of image
ads[i].height = "60"                           //height of image
ads[i].src = "http://www.urbansouth.us/img2/cdbanner1.jpg"  			       //image url
ads[i].href = "http://www.christenedino.com"           	       //link url
ads[i].mouseover = "Christene Dino - Model"            //text to display when mouse moves over banner
ads[i].sponsor = " "                     //text to display for text link under banner
i++


ads[i].width = "429"    
ads[i].height = "60"                  
ads[i].src = "http://www.urbansouth.us/img2/vanessavegas_banner.jpg"  			
ads[i].href = "http://www.vanessavegas.com"           	 
ads[i].mouseover = "The Total Package"       
ads[i].sponsor = " "                 
i++


ads[i].width = "429"    
ads[i].height = "60"                  
ads[i].src = "http://www.cleney.com/newBanner.jpg"  			
ads[i].href = "http://www.cleney.com"           	 
ads[i].mouseover = "Cleney"       
ads[i].sponsor = " "                 
i++


ads[i].width = "429"    
ads[i].height = "60"                  
ads[i].src = "http://www.crysmarie.com/images/banner_crysmarie002.jpg"  			
ads[i].href = "http://www.crysmarie.com"           	 
ads[i].mouseover = "Crysmarie - Model"       
ads[i].sponsor = " "                 
i++


ads[i].width = "429"    
ads[i].height = "60"                  
ads[i].src = "http://www.fwp247.com/images/topbanner.jpg"  			
ads[i].href = "http://fantasyworldmodels.com"           	 
ads[i].mouseover = "Fantasy World Models"       
ads[i].sponsor = " "                 
i++


ads[i].width = "429"    
ads[i].height = "60"                  
ads[i].src = "http://www.urbansouth.us/img2/shauna_faith_banner.jpg"  			
ads[i].href = "http://www.shaunafaith.com"           	 
ads[i].mouseover = "Model - Shauna Faith"       
ads[i].sponsor = " "                 
i++


ads[i].width = "429"    
ads[i].height = "60"                  
ads[i].src = "http://www.urbansouth.us/img2/kitoy_468x60banner.gif"  			
ads[i].href = "http://www.kitoyjohnson.net"           	 
ads[i].mouseover = "Ki Toy Johnson"       
ads[i].sponsor = " "                 
i++


ads[i].width = "429"    
ads[i].height = "60"                  
ads[i].src = "http://www.itslikecandi.com/assets/images/banner4.jpg"  			
ads[i].href = "http://www.itslikecandi.com"           	 
ads[i].mouseover = "Model - Laeann"       
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>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
	
}