/*----------------------------------------------------
||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.                                       ||
-----------------------------------------------------*/


var refreshTime = 4000;

var numAds = 15;

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() }

i = 1;

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/innovex.gif"  			
ads[i].href = "http://www.allaboutmedicalsales.com/jobs/innovex/"           	 
ads[i].mouseover = "Click here for current job opportunities with Innovex"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/pfizer.gif"  			
ads[i].href = "http://www.allaboutmedicalsales.com/jobs/pfizer/"           	 
ads[i].mouseover = "Click here for current job opportunities with Pfizer"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/zenith.gif"  			
ads[i].href = "http://www.allaboutmedicalsales.com/jobs/zenith/"           	 
ads[i].mouseover = "Click here for current job opportunities with Zenith Recruitment"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/lundbeck.gif"  			
ads[i].href = ""           	 
ads[i].mouseover = "Lundbeck"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/careersconsulting.gif"  			
ads[i].href = "http://www.allaboutmedicalsales.com/jobs/professional-careers-consulting/"           	 
ads[i].mouseover = "Click here for current job opportunities with PCC"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/kirkhamyoung.gif"  			
ads[i].href = "http://www.allaboutmedicalsales.com/jobs/kirkham-young/"           	 
ads[i].mouseover = "Click here for current job opportunities with KirkhamYoung"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/ukpharm.gif"  			
ads[i].href = "http://www.allaboutmedicalsales.com/jobs/ukpharm/"           	 
ads[i].mouseover = "Click here for current job opportunities with UKPharm"
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/bluetomato.gif"  			
ads[i].href = "http://www.allaboutmedicalsales.com/jobs/blue-tomato/"           	 
ads[i].mouseover = "Blue Tomato"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/sb.gif"  			
ads[i].href = "http://www.allaboutmedicalsales.com/jobs/sb-consulting/"           	 
ads[i].mouseover = "Click here for current job opportunities with SB Consulting"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/pharmaforce.gif"  			
ads[i].href = "http://www.allaboutmedicalsales.com/jobs/pharmaforce/"           	 
ads[i].mouseover = "Click here for current job opportunities with Pharmaforce"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/guidedsolutions.gif"  			
ads[i].href = "http://www.allaboutmedicalsales.com/jobs/guided-solutions/"           	 
ads[i].mouseover = "Click here for current job opportunities with Guided Solutions"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/in2focus.gif"  			
ads[i].href = ""           	 
ads[i].mouseover = "In2Focus"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/advance.gif"  			
ads[i].href = "http://www.allaboutmedicalsales.com/jobs/advance-recruitment/"           	 
ads[i].mouseover = "Click here for current job opportunities with Advance Recruitment"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/futures.gif"  			
ads[i].href = ""           	 
ads[i].mouseover = "Futures Resourcing"       
ads[i].sponsor = ""                 
i++

ads[i].width = "70"    
ads[i].height = "33"                  
ads[i].src = "http://www.allaboutmedicalsales.com/banners/static/small/eames.gif"  			
ads[i].href = ""           	 
ads[i].mouseover = "Eames"       
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 += ('</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
	
}