/* Unsupported Banner Rotation script from Infopop -- help available only at community.infopop.net */

/* Do NOT touch the  the next 2 lines */
banners = new Array();
banner_LINK = new Array();
/* END of Do NOT touch the  the next 2 lines */

/*  set these next three values only if you want */

runOnLoadedPage = true	/* true or false whether to change banners after X secs */
myinterval = 10; 	/* number of secs between changes IF runOnLoadedPage = true */
random = true; 		/* true or false whether to start the cycle randomly for from the beginning of your list */


/*  BELOW ARE THE _ONLY_ PARTS OF THE SCRIPT YOU MUST MODIFY  */
/*  The red URL is the src for the image   */
/*  The blue URL is the where you want someone to go when the image is clicked   */
/*  DON'T forget quotes around the URLs  */
/*  Do not ADD quotes around the image width and height numbers  */
/*  Simply delete the banner sections you  don't want or paste in more sections */

/* Begin #1Banner */
banners[banners.length] = new Image();
banners[banners.length-1].src =  	"http://www.njjobmarket.com/images/jobfish468x60.gif"
banner_LINK[banners.length-1] =  	"http://www.jobfish.com"
banners[banners.length-1].width =  	468
banners[banners.length-1].height =  	60
/*  End #1  Banner */

	     /* Begin #2 Banner */
banners[banners.length] = new Image();
banners[banners.length-1].src =  "http://www.hollywoodprize.com/images/hollywoodprize_banner468x60.gif"
banner_LINK[banners.length-1] =  	"http://www.hollywoodprize.com"
banners[banners.length-1].width =  	468
banners[banners.length-1].height =  	60
/*  End #2  Banner */

	 /* Begin #3 Banner */
banners[banners.length] = new Image();
banners[banners.length-1].src =  	"http://www.jobboardreviews.com/images/jbr_banner_486x60.gif"
banner_LINK[banners.length-1] =  	"http://www.jobboardreviews.com"
banners[banners.length-1].width =  	468
banners[banners.length-1].height =  	60
/*  End #3 Banner */

	      /* Begin #4 Banner */
banners[banners.length] = new Image();
banners[banners.length-1].src =  	"http://www.biotechpharmjobs.com/images/pharm468x60A.gif"
banner_LINK[banners.length-1] =  	"http://biotechpharmjobs.com/biotech_pharma_trade_pubs.html"
banners[banners.length-1].width =  	468
banners[banners.length-1].height =  	60
/*  End #4 Banner */

/* Do not touch anything below this line */
today = new Date();
rand_start = today.getTime()%banners.length;
random ?  banner_counter = rand_start :  banner_counter = 0;

function cycleBanners(){
	runBanners.started = true;
	banner = document.getElementById('mybanner');
	banner.src = banners[banner_counter].src;
	banner.link = banner_LINK[banner_counter];
	banner.width = banners[banner_counter].width;
	banner.height  = banners[banner_counter].height;
	banner_counter = (banner_counter+1) % (banners.length);
}// end fn

function runBanners() {
	if(runBanners.started){return};
	cycleBanners();
	if(runOnLoadedPage) { //
		mycycle = setInterval('cycleBanners()',myinterval*1000);
	}
}// end fn

