// Kleenspace Dropdown - modified by Jason Goude, 5/24/01
// http://sundaeconnection.keenspace.com
// Keenspace dropdown originally by Steve Tonks
// Additional code by Brian West
// This code is freely distributable but is prohibited form being resold for profit

// The following variables setup the dropdown caption, logo, and signup page

	var caption="Kleenspace"
	var signup="sundaeconnection.keenspace.com/kleenspace.html"
	var logo="gear.keenspace.com/images/scripts/klsp.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://sundaeconnection.keenspace.com","Sundae Connection")
	comic1 = new Array("http://hwg.keenspace.com","Heroes with Glasses")
	comic2 = new Array("http://kankong.keenspace.com","Crudely Drawn Adventures")
	comic3 = new Array("http://breakpointcity.keenspace.com","Breakpoint City")
	comic4 = new Array("http://chaosinc.keenspace.com","Chaos Inc.")
	comic5 = new Array("http://www.schlockmercenary.com","Schlock Mercenary")
	comic6 = new Array("http://langlang.keenspace.com","Lang Lang")
	comic7 = new Array("http://www.cyantian.net","Shivae Studios")
	comic8 = new Array("http://gravity.keenspace.com","Gravity")
	comic9 = new Array("http://slapdash.keenspace.com","Slapdash")
	comic10 = new Array("http://dakotasridge.keenspace.com","Dakota's Ridge")
	comic11 = new Array("http://sparechange.keenspace.com","Spare Change")
	comic12 = new Array("http://banthebasics.keenspace.com","Ban the Basics")
	comic13 = new Array("http://techni.keenspace.com","Techni Gaiden")
	comic14 = new Array("http://fergoandenrique.keenspace.com/","Fergo and Enrique")
	comic15 = new Array("http://geekrock.keenspace.com/","Geek Rock")
	comic16 = new Array("http://chalkdust.keenspace.com/","Chalk Dust")
	comic17 = new Array("http://roganddom.keenspace.com/","Roger & Dominic")
	comic18 = new Array("http://drawingablank.keenspace.com/","Drawing a Blank")

// This should be the number of comics on your list.
comictotal=19


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 alt="Kleenspace"></a>');
document.writeln('<TR><TD ALIGN="center"><SELECT NAME="selectName" onChange="goto_URL(this.form.selectName)">');
document.writeln('<OPTION VALUE="" SELECTED>99.44% kleen comics<\/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>')