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

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

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 = "160"                           //width of image
ads[i].height = "600"                           //height of image
ads[i].src = "http://a248.e.akamai.net/f/248/580/1d/pics.drugstore.com/prodimg/promo/assoclinks/160x600_beauty_current_prop.jpg"  			       //image url
ads[i].href = "http://click.linksynergy.com/fs-bin/click?id=Nxa5e6p80kE&offerid=57302.10000079&type=4&subid=0"           	       //link url
ads[i].mouseover = "Beauty.com"            //text to display when mouse moves over banner
                    //text to display for text link under banner
i++
/*-------------end banner definition-----------*/
ads[i].width = "160"                           //width of image
ads[i].height = "600"                
ads[i].src = "http://www.ftjcfx.com/image-3248359-10522303"  			
ads[i].href = "http://www.tkqlhce.com/click-3248359-10522303"           	 
ads[i].mouseover = "Advertise on MBHS"       
               
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                
ads[i].src = "http://ad.linksynergy.com/fs-bin/show?id=Nxa5e6p80kE&bids=129783.10000040&subid=0&type=4&gridnum=9"  			
ads[i].href = "http://click.linksynergy.com/fs-bin/click?id=Nxa5e6p80kE&offerid=129783.10000040&subid=0&type=4"           	 
ads[i].mouseover = "MetroPCS, Inc."       
               
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                
ads[i].src = "http://www.ftjcfx.com/image-3248359-10522303"  			
ads[i].href = "http://www.tkqlhce.com/click-3248359-10522303"           	 
ads[i].mouseover = "WeightWatchers.com"       
               
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                 
ads[i].src = "http://www.ftjcfx.com/image-3248359-10563271"  			
ads[i].href = "http://www.kqzyfj.com/click-3248359-10563271?cm_mmc=CJ-_-2547127-_-3248359-_-Attendant%20Gifts%20160x600"           	 
ads[i].mouseover = "The Knot Wedding Shop"       
                
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                
ads[i].src = "http://www.awltovhc.com/image-3248359-10532348"  			
ads[i].href = "http://www.kqzyfj.com/click-3248359-10532348"           	 
ads[i].mouseover = "Bistro MD"       
               
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                 
ads[i].src = "http://www.awltovhc.com/image-3248359-10368609"  			
ads[i].href = "http://www.dpbolvw.net/click-3248359-10368609"           	 
ads[i].mouseover = "Stamps.com / PhotoStamps.com"       
                
i++
ads[i].width = "160"                           //width of image
ads[i].height = "600"                
ads[i].src = "http://www.awltovhc.com/image-3248359-10557863"  			
ads[i].href = "http://www.jdoqocy.com/click-3248359-10557863"           	 
ads[i].mouseover = "Spring Into Savings"       
               
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                 
ads[i].src = "http://www.ftjcfx.com/image-3248359-10459067"  			
ads[i].href = "http://www.tkqlhce.com/click-3248359-10459067"           	 
ads[i].mouseover = "Looking for the perfect sitter? Try Sittercity Now"       
                
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                
ads[i].src = "http://www.ftjcfx.com/image-3248359-10494117"  			
ads[i].href = "http://www.tkqlhce.com/click-3248359-10494117"           	 
ads[i].mouseover = "Miles Card Application"       
               
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                 
ads[i].src = "http://www.tqlkg.com/image-3248359-10604359"  			
ads[i].href = "http://www.dpbolvw.net/click-3248359-10604359"           	 
ads[i].mouseover = "ashford"       
                
i++


ads[i].width = "160"                           //width of image
ads[i].height = "600"                
ads[i].src = "http://www.ftjcfx.com/image-3248359-10642468"  			
ads[i].href = "http://www.jdoqocy.com/click-3248359-10642468"           	 
ads[i].mouseover = "Clarins USA & Thierry Mugler USA"       
               
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                 
ads[i].src = "http://www.awltovhc.com/image-3248359-10497301"  			
ads[i].href = "http://www.awltovhc.com/image-3248359-10497301"           	 
ads[i].mouseover = "ShirtcityClub.com - International Shirt Design Community"       
                
i++
ads[i].width = "160"                           //width of image
ads[i].height = "600"                
ads[i].src = "http://www.awltovhc.com/image-3248359-10434016"  			
ads[i].href = "http://www.anrdoezrs.net/click-3248359-10434016"           	 
ads[i].mouseover = "Perfume Emporium"       
               
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                 
ads[i].src = "http://www.lduhtrp.net/image-3248359-10595029"  			
ads[i].href = "http://www.kqzyfj.com/click-3248359-10595029"           	 
ads[i].mouseover = "Smashbox"       
                
i++
ads[i].width = "160"                           //width of image
ads[i].height = "600"                
ads[i].src = "http://www.tqlkg.com/image-3248359-10489149"  			
ads[i].href = "http://www.kqzyfj.com/click-3248359-10489149"           	 
ads[i].mouseover = "Hotels.com"       
               
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                 
ads[i].src = "http://www.lduhtrp.net/image-3248359-10476185"  			
ads[i].href = "http://www.kqzyfj.com/click-3248359-10476185"           	 
ads[i].mouseover = "TheCuteKid"       
                
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                 
ads[i].src = "http://www.tqlkg.com/image-3248359-10498440"  			
ads[i].href = "http://www.anrdoezrs.net/click-3248359-10498440"           	 
ads[i].mouseover = "The New York Pass"       
                
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                
ads[i].src = "http://www.ftjcfx.com/image-3248359-10575724"  			
ads[i].href = "http://www.tkqlhce.com/click-3248359-10575724"           	 
ads[i].mouseover = "Get Equifax ID Patrol"       
               
i++

ads[i].width = "160"                           //width of image
ads[i].height = "600"                 
ads[i].src = "http://www.tqlkg.com/image-3248359-10573559"  			
ads[i].href = "http://www.jdoqocy.com/click-3248359-10573559"           	 
ads[i].mouseover = "We love Mother Earth so Buy the Sac Already"       
                
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 += ('</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
	
}