function topbanner(){

adnum = Math.random()*12;

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 '8': 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 '10': document.write("<A HREF=http://www.hollywoodgravehunter.com TARGET=_blank><IMG SRC='../topbanner/HollywoodGraveHuntera.gif' WIDTH=468 HEIGHT=60 ALT='Hollywood Grave Hunter'>"); break
case '13': document.write("<A HREF=http://www.batsdaystore.com TARGET=_blank><IMG SRC='../topbanner/shirtbanner.jpg' WIDTH=468 HEIGHT=60 ALT='Wanna buy a shirt?'>"); break
case '5': 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 '2': 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 '6': 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 '3': document.write("<A HREF=http://www.hollywoodgravehunter.com TARGET=_blank><IMG SRC='../topbanner/HollywoodGraveHuntera.gif' WIDTH=468 HEIGHT=60 ALT='Hollywood Grave Hunter'>"); break
case '1': document.write("<A HREF=http://www.cemeterykitten.com TARGET=_blank><IMG SRC='../topbanner/CM-3.gif' WIDTH=468 HEIGHT=60 ALT='cemetery kitten'>"); break
case '9': document.write("<A HREF=http://www.gothspace.com TARGET=_blank><IMG SRC='../topbanner/gs-2010-468x60.gif' WIDTH=468 HEIGHT=60 ALT='Gothspace.com'>"); break
case '11': document.write("<A HREF=http://www.wastelandweekend.com TARGET=_blank><IMG SRC='../topbanner/wasbanner.jpg' WIDTH=468 HEIGHT=60 ALT='Wasteland Weekend'>"); break
case '7': document.write("<A HREF=http://www.hallowindow.com/ TARGET=_blank><IMG SRC='../topbanner/hallowindow468x60.gif' WIDTH=468 HEIGHT=60 ALT='Hallowindow'>"); break
case '4': document.write("<A HREF=http://batsdaystore.com TARGET=_blank><IMG SRC='../topbanner/$9shirtsale.jpg' WIDTH=468 HEIGHT=60 ALT='$9 Bats Day Shirt Sale'>"); break
case '12': document.write("<A HREF=http://batsdaystore.com TARGET=_blank><IMG SRC='../topbanner/$9shirtsale.jpg' WIDTH=468 HEIGHT=60 ALT='$9 Bats Day Shirt Sale'>"); 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.

