function topbanner(){

adnum = Math.random()*8;

adnum2 = Math.round(adnum);

//	if (adpop<10){

//	adName="home_ad0"+adnum;

//	}

//adName="home_ad0"+adnum2;

//document.write("<IMG SRC='highbanner/"+adName+".gif' WIDTH=120 HEIGHT=60 ALT='click here for fun!'>");

adPop=adnum2.toString();

	switch(adPop){

case '0': document.write("<a href=http://www.mysticcrypt.com target=_blank><img SRC='http://www.mysticcrypt.com/images/mysticcrypt_468x60_banner.gif' width=468 height=60 ALT='MysticCrypt'>"); break
case '1': document.write("<A HREF=http://www.batsdaystore.com TARGET=_blank><IMG SRC='../topbanner/hatbanner2008.jpg' WIDTH=468 HEIGHT=60 ALT='The official Bats Day event hat'>"); break
case '2': document.write("<a href=http://www.mysticcrypt.com target=_blank><img src='http://www.mysticcrypt.com/images/mysticcrypt_468x60_banner.gif' width=468 height=60 ALT='MysticCrypt'>"); break
case '3': document.write("<A HREF=http://www.batsdaystore.com TARGET=_blank><IMG SRC='../topbanner/yomsstore.jpg' WIDTH=468 HEIGHT=60 ALT='Bats Day Scream Store!'>"); break
case '4': document.write("<A HREF=http://www.batsday.net/tix/eventtickets.html TARGET=_blank><IMG SRC='../topbanner/preeventsbanner.gif' WIDTH=468 HEIGHT=60 ALT='Bats Day Ticket Packages on sale Jan 12, 2010'>"); break
case '5': document.write("<A HREF=http://www.happyhauntsswingingwake.com TARGET=_blank><IMG SRC='../topbanner/darkparkbanner.gif' WIDTH=468 HEIGHT=60 ALT='The Bats Day Happy Haunts Swinging Wake: A Costumed Celebration'>"); break
case '6': document.write("<A HREF=http://www.batsday.net TARGET=_blank><IMG SRC='../topbanner/bd-info-banner-2011.gif' WIDTH=468 HEIGHT=60 ALT='$9 Bats Day'>"); break
case '7': document.write("<A HREF=http://www.panpipes.com TARGET=_blank><IMG SRC='../topbanner/panpipesbatbanner.bmp' WIDTH=468 HEIGHT=60 ALT=''>"); break
case '8': document.write("<A HREF=http://www.luxdeville.com TARGET=_blank><IMG SRC='../topbanner/luxdeville.png' WIDTH=468 HEIGHT=60 ALT=''>"); break
case '9': document.write("<A HREF=http://www.panpipes.com TARGET=_blank><IMG SRC='../topbanner/pillbox.jpg' WIDTH=468 HEIGHT=60 ALT=''>"); break
default: document.write("<A HREF=http://www.batsday.net/tix/eventtickets.html TARGET=_blank><IMG SRC='../topbanner/preeventsbanner.gif' WIDTH=468 HEIGHT=60 ALT='Bats Day Ticket Packages on sale Jan 12, 2010'>");

	}

}





// :::::::::::::::::::::::WRITTEN BY ANDREW HOLGUIN, angelus@kontrol.net

// :::::::::::::::::::::::INSTRUCTIONS::::::::::::::::::::::::::::::::

// :::::::::

// ::::::::: Decide how many ads you want to rotate.

// ::::::::: Edit the line that says "adnum = Math.random()*3",

// ::::::::: but instead of 3, use the number of ads minus 1.

// ::::::::: This will generate a number between 0 and your number,

// ::::::::: accounting for the fact that "0" is the starting position

// :::::::::

// ::::::::: Next, look for the action called "switch" and modify

// ::::::::: each case to suit your needs. Be aware of Javascript conventions

// ::::::::: regarding punctuation.


