// KeenSci-fi dropdown originally by Steve Tonks
// Additional code by Brian West
// This code is freely distributable but is prohibited from being resold for profit

// The following variables setup the dropdown caption, logo, and signup page

	var caption="Sci-Fi"
	var signup="warpfactor10.keenspace.com/dropdown.htm"
	var logo="warpfactor10.keenspace.com/images/ksscifi.gif"

// Add your comics here, use this as a guide:
//	comicX=new Array("url","name of comic")
//    Replace X with the next number
//    Replace url with the address of the comic
//    Replace the name with the name of the comic

	comic0 = new Array("http://zortic.keenspace.com","Zortic")
	comic1 = new Array("http://warpfactor10.keenspace.com","Warp Factor 10")
	comic2 = new Array("http://pbgalaxy.keenspace.com","PB Galaxy")
	comic3 = new Array("http://farawaystars.keenspace.com","Faraway Stars")
	comic4 = new Array("http://www.schlockmercenary.com","Schlock Mercenary")
	comic5 = new Array("http://portside.keenspace.com","PortSide")
	comic6 = new Array("http://calliope.keenspace.com","POCKET")
	comic7 = new Array("http://savingtheworld.keenspace.com","Saving the World")
	comic8 = new Array("http://dk.keenspace.com","Dark Knight")
	comic9 = new Array("http://cdc.keenspace.com","Life on Forbez")
	comic10 = new Array("http://gravis.keenspace.com","Gravis")
	comic11 = new Array("http://whio.keenspace.com","White House in Orbit")
	comic12 = new Array("http://gravity.keenspace.com","Gravity")
	comic13 = new Array("http://stalag99.keenspace.com","Stalag \'99")
	comic14 = new Array("http://ocs.keenspace.com","One Clown Short")
	comic15 = new Array("http://corruption.keenspace.com","Corruption of Ted")
	comic16 = new Array("http://tikaboopeak.keenspace.com","Tikaboo Peak")
	comic17 = new Array("http://captainmike.keenspace.com","Captain Mike")
	comic18 = new Array("http://5thdirection.keenspace.com","5th Direction")
	comic19 = new Array("http://www.chomped.org","Chomped")
	comic20 = new Array("http://protection.keenspace.com","Protection")
	comic21 = new Array("http://dm.keenspace.com","dragonMAGE")
	comic22 = new Array("http://kankong.keenspace.com","Kan Kong")
	comic23 = new Array("http://glickglidewell.keenspace.com","Glick Glidewell")
	comic24 = new Array("http://www.omnimation.com","Omnimation")
	comic25 = new Array("http://haplessjoe.keenspace.com","Hapless Joe")
	comic26 = new Array("http://plufim.keenspace.com","Plufim Comics")
	comic27 = new Array("http://zapjones.keenspace.com","Zap Jones")
	comic28 = new Array("http://cmooki.keenspace.com","Captain Mooki")
	comic29 = new Array("http://digitalmidnight.keenspace.com","Digital Midnight")
	comic30 = new Array("http://floor13.keenspace.com","Floor 13")
	comic31 = new Array("http://squadron509.keenspace.com","Squadron 509")
	comic32 = new Array("http://spacelosers.keenspace.com","Space Losers")
	comic33 = new Array("http://pluginboy.keenspace.com","Plugin Boy")
	comic34 = new Array("http://roohaha.keenspace.com","Marooned")
	comic35 = new Array("http://tiger.keenspace.com","Tiger")
	comic36 = new Array("http://parallelwood.keenspace.com","ParalleL wooD")
	comic37 = new Array("http://ubigod.keenspace.com","Ubigod\'s Hurricane")
	comic38 = new Array("http://whenindoubt.keenspace.com","When in Doubt")
	comic39 = new Array("http://www.bsecurity.cjb.net","Elvod")
	comic40 = new Array("http://timepoliceforce.keenspace.com","Time Police Force")
	comic41 = new Array("http://www.offbeatcomics.com","OFFBEAT!")
	comic42 = new Array("http://utopialimited.keenspace.com","Utopia Limited")
	comic43 = new Array("http://zeera.keenspace.com","Zeera the Space Pirate")

// This should be the number of comics on your list.
comictotal=44



function goto_URL(object)
{
	window.location.href=object.options[object.selectedIndex].value;
}

// Create an array equal to the number of comics
var randarray=new Array()
for (i=0; i<comictotal; i++)
{
	randarray[i]=i
}

// Randomize the array
var i,r,tmp;
for (i=0; i<(comictotal-1); i++)
{
	r=Math.round(Math.random(comictotal-i))+i
	temp = randarray[r]
	randarray[r] = randarray[i]
	randarray[i] = temp;
}

document.write('<FORM><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD ALIGN="CENTER"><FORM>');
document.writeln('<A HREF="http://',signup,'"><IMG SRC="http://',logo,'" border=0></a>');
document.writeln('<TR><TD ALIGN="center"><SELECT NAME="selectName" onChange="goto_URL(this.form.selectName)">');
document.writeln('<OPTION VALUE="" SELECTED>Select a ',caption,' strip!<\/OPTION>');

for (var i=0; i<(comictotal); i++)
{
	showcomic=eval("comic"+randarray[i])
	document.writeln('<OPTION VALUE="',showcomic[0],'">',showcomic[1],'<\/OPTION>');
}


document.writeln('<\/SELECT><\/TD><\/TR><\/FORM><\/TABLE>')