// Keenspace dropdown originally by Steve Tonks
// Additional code by Brian West
// This code is freely distributable but is prohibited from being resold for profit
// Additonal code by din
// Added a image rotation thing which will also allow images and urls to rotate that will
// not show in the dropdown.
// The following variables setup the dropdown caption, logo, and signup page

var caption="Epic"
var signup="http://forums.keenspace.com/"
var logo="nemo.keenspace.com/epic/epic.jpg"

// 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

site0 = new Array("http://dreamwater.org/9realms","Nine Realms","http://fantasyherald.com/m-j/img/9realms_button.gif")

site1 = new Array("http://www.flyingtreasures.com/page.php?page_id=1490 ","Flying Treasures","none")

site2 = new Array("http://fantasyherald.com/fh/","fh - bx","none")

site3 = new Array("http://fantasyherald.com/ ","none","http://fantasyherald.com/m-j/img/fh_88x31_00.gif")

site4 = new Array("http://lotr.shadowdark.org ","Ring Codex","http://fantasyherald.com/m-j/img/codex_but.gif")

site5 = new Array("http://cutethulhu.comicgenesis.com ","CuteThulhu","none")

site6 = new Array("http://www.palaceoflight.com ","Cherveaux","http://fantasyherald.com/m-j/img/cpol_button2.jpg")

site7 = new Array("http://www.horrorseek.com/horror/tmgray ","T. M. Gray","http://fantasyherald.com/m-j/img/tgray.gif")

site8 = new Array("http://www.scifimatter.com ","Scifimatter","http://fantasyherald.com/m-j/img/sfmatbut.gif")

site9 = new Array("http://www.crbonawandt.com/ ","Bonawandt SF/F","http://fantasyherald.com/m-j/img/dreamers_88x31.gif")

site10 = new Array("http://inserein.com/sitemap.htm ","In Serein","http://fantasyherald.com/m-j/img/dark-lord-micro.gif")

site11 = new Array("http://fantasyherald.com/jack/ ","Jack ~|~","none")

site12 = new Array("http://www.hekshano.com/ ","Inhuman","http://fantasyherald.com/m-j/img/inhumanlil.gif")

site13 = new Array("http://www.salroth.com ","Salroth","http://fantasyherald.com/m-j/img/lback-salroth-button.gif")

site14 = new Array("http://s11.invisionfree.com/Riders_of_Kreysthahl/index.php?act=site ","Kreysthahl","http://fantasyherald.com/m-j/img/drklogo-01.gif")

site15 = new Array("http://firima-mando.blogcindario.com ","LKOA's BLoG","http://fantasyherald.com/m-j/img/LRPA88x31.jpg")

site16 = new Array("http://www.franjacobs.com/links2.shtml ","fran jacobs","http://fantasyherald.com/m-j/img/button2.jpg")

site17 = new Array("http://www.nwdavies.co.uk ","NWDavies","http://fantasyherald.com/m-j/img/nwdavies_micro.gif")

site18 = new Array("http://rage-against-godhood.net ","Rage","http://fantasyherald.com/m-j/img/ragebannerfive.jpg")

site19 = new Array("http://rage-against-godhood.net ","Rage","http://fantasyherald.com/m-j/img/ZetariButtoncopy.jpg")

 // This should be the number of items on your list.
sitetotal=20



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<sitetotal; i++)
{
randarray[i]=i
}

// Randomize the array
var i,r,tmp;
for (i=0; i<(sitetotal-1); i++)
{
r=Math.round(Math.random(sitetotal-i))+i
temp = randarray[r]
randarray[r] = randarray[i]
randarray[i] = temp;
}

showsite=eval("site"+randarray[i])

if (showsite[2] != 'none') {
document.writeln('<a href="',showsite[0],'" target="_TOP"><img src="',showsite[2],'" height="31" width="88" border="0" alt="click me!"><\/a>');
} else {
document.writeln('<a href="http:\/\/fantasyherald.com\/m-j"><img src="http:\/\/fantasyherald.com\/m-j\/img\/mj_default.gif" height="31" width="88" border="0" alt="click me!"><\/a>');
}
document.writeln('<FORM style="padding:0px; margin:0px;"><SELECT style="font-family:verdana;font-size:x-small" NAME="selectName" onChange="goto_URL(this.form.selectName)">');
document.writeln('<OPTION VALUE="" SELECTED>fantasy-SF<\/OPTION>');

showsite=eval("site"+randarray[i])

for (var i=0; i<(sitetotal); i++)
{
showsite=eval("site"+randarray[i])

if (showsite[1] != 'none')
{ document.writeln('<OPTION VALUE="',showsite[0],'">',showsite[1],'<\/OPTION>'); }
}


document.writeln('<\/SELECT><\/FORM>')
