if (window != window.top) {top.location.href = location.href;}

var y=0;
var lasty=0;
var hop=0;
var uagent=navigator.userAgent;
var IE=0;
var scratch;

if (uagent.indexOf("MSIE") > 0) {IE=1;}

function scroller(stime) {
if (stime < 1) {hop = 0;}
if (stime==999) {
   hop = 0;
   document.speedy.ss.options[0].selected=1;
   top.location.href="../scroller.html";
}
if (hop > 0) {
   if (IE==1) { y = document.body.scrollTop + 1; } else { y = window.pageYOffset + 2; }
   window.scroll(0,y);
   setTimeout("scroller(document.speedy.ss.options[document.speedy.ss.selectedIndex].value)", stime); 
} else {
document.speedy.ss.options[0].selected=1;  
}
return true;
}

function setfontsize(fs) {
    scratch=fs+"pt";
    if (IE==1) {
       document.body.style.fontSize=scratch;
    } else {
       document.tags.P.fontSize=scratch;
    }
}

function setfontface(fs) {
    scratch=fs;
    if (IE==1) {
       document.body.style.fontFamily=scratch;
    } else {
       document.tags.P.fontFamily=scratch;
    }
}

function runtop() {
document.writeln('<FORM name="speedy">');
sitemap();
document.writeln('<select name="ss" onChange="window.scroll(0,lasty); hop=1; scroller(this.options[this.selectedIndex].value); return true;" onBlur="lasty=y; scroller(0); return true;">');
document.writeln('<option value="0">No Scrolling');
document.writeln('<option value="10">Scroll Very Fast');
document.writeln('<option value="25">Fast Scroll');
document.writeln('<option value="50">Medium Scroll');
document.writeln('<option value="100">Slow Scroll');
document.writeln('<option value="150">Very Slow Scroll');
document.writeln('<option value="200">Even Slower');
document.writeln('<option value="500">Slowest');
document.writeln('<option value="999">What the heck is this?');
document.writeln('</select>');
if (IE==1) {
document.writeln('<select name="fs" onChange="setfontsize(this.options[this.selectedIndex].value); return true;">');
document.writeln('<option value="8">Font Size 8');
document.writeln('<option value="9">Font Size 9');
document.writeln('<option value="10">Font Size 10');
document.writeln('<option value="11">Font Size 11');
document.writeln('<option value="12">Font Size 12');
document.writeln('<option Selected value="13">Font Size 13');
document.writeln('<option value="14">Font Size 14');
document.writeln('<option value="15">Font Size 15');
document.writeln('<option value="20">Font Size 20');
document.writeln('<option value="25">Font Size 25');
document.writeln('<option value="30">Font Size 30');
document.writeln('</Select>');
document.speedy.fs.options[5].selected=1;

document.writeln('<select name="ff" onChange="setfontface(this.options[this.selectedIndex].value); return true;">');
document.writeln('<Option value="Verdana">Verdana');
document.writeln('<Option value="Courier New">Courier New');
document.writeln('<Option value="Arial">Arial');
document.writeln('<Option value="Times Roman">Times Roman');
document.writeln('<Option value="Comic Sans MS">Comic Sans MS');
document.writeln('<Option value="Century Gothic">Century Gothic');
document.writeln('<Option value="Bookman Old Style">Bookman Old Style');
document.writeln('<Option value="Book Antiqua">Book Antiqua');
document.writeln('</Select>');
document.speedy.ff.options[0].selected=1;


}
document.writeln('</FORM><BR>');
document.speedy.ss.options[0].selected=1;
return true;
}

function runbot() {
if (top.location.href.indexOf("library/sven") > 0) {document.writeln("<A HREF='sven@brass-neck.demon.co.uk'>sven@brass-neck.demon.co.uk</A>");}
setfontsize('13');
setfontface('verdana');
return true;
}

function sitemap() {
document.writeln('<A HREF="http://www.asstr.org">Return to ASSTR</A>');
return true;
}

