/*verticalSlideMenu.js*/
<!--

///// PAGE SOURCE ID /////


function carryDown(){

/////NOW START THE MENU GENERATOR/////

rakeStartMenu("Lawn Rake Invention","NAVIGATION")
for (k=0;k<rakeItemVert.length-1;k++) {

rakeAddItem(rakeItemVert[k], rakeItemVertLink[k], "");
}

rakeEndMenu()
}

///// BROWSER DETECTION /////

function Is() {
this.ua = navigator.userAgent.toLowerCase();
this.major = parseInt(navigator.appVersion);
// DOM Support
if (document.addEventListener && document.removeEventListener) this.dom2events = true;
if (document.getElementById) this.dom1getbyid = true;
// Opera
this.opera = this.ua.indexOf('opera') != -1;
if (this.opera) {
this.opera5 = (this.ua.indexOf("opera 5") != -1 || this.ua.indexOf("opera/5") != -1);
this.opera6 = (this.ua.indexOf("opera 6") != -1 || this.ua.indexOf("opera/6") != -1);
}


// Misc.
this.hotjava = this.ua.indexOf('hotjava') != -1;
this.webtv = this.ua.indexOf('webtv') != -1;
//this.aol = this.ua.indexOf('aol') != -1;
if (this.hotjava || this.webtv || this.aol) return;
// Gecko, NN4+, and NS6
this.gecko = this.ua.indexOf('gecko') != -1;
this.nav = (this.ua.indexOf('mozilla') != -1 && this.ua.indexOf('spoofer') == -1 && this.ua.indexOf('compatible') == -1);
if (this.nav) {
this.nav4 = this.major == 4;
this.nav4up= this.major >= 4;
this.nav5up= this.major >= 5;
this.nav6 = this.major == 5;
this.nav6up= this.nav5up;
}

//Firefox
this.firefox = this.ua.indexOf("firefox") != -1;

//Chrome
this.chrome = this.ua.indexOf("chrome") != -1;

//Safari
this.safari = this.ua.indexOf("safari") != -1;

//MSIE
this.ie = this.ua.indexOf('msie') != -1;
if (this.ie) {
this.ie3 = this.major < 4;
this.ie4 = (this.major == 4 && this.ua.indexOf('msie 5') == -1 && this.ua.indexOf('msie 6') == -1);
this.ie4up = this.major >= 4;
this.ie5 = (this.major == 4 && this.ua.indexOf('msie 5.0') != -1);
this.ie5up = !this.ie3 && !this.ie4;
this.ie6 = (this.major == 4 && this.ua.indexOf('msie 6.0') != -1);
this.ie6up = (!this.ie3 && !this.ie4 && !this.ie5 && this.ua.indexOf("msie 5.5") == -1);
}
}
var is = new Is();

Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1 || navigator.userAgent.match(/Konqueror/));
Opera = is.opera;
Opera5 = is.opera5;
Opera6 = is.opera6;
IE = (is.ie);
IE4 = is.ie4;
IE5 = is.ie5;
IE6 = is.ie6;
NS4 = is.nav4;
NS5 = is.nav5;
NS6 = is.nav6;
IE4up = is.ie4up;
IE5up = is.ie5up;
IE6up = is.ie6up;
NS4up = is.nav4up;
NS5up = is.nav5up;
NS6up = is.nav6up;

//AOL
var agt=navigator.userAgent.toLowerCase();
var is_aol   = (agt.indexOf("aol") != -1);
var is_aol3  = (is.aol && is_ie3);
var is_aol4  = (is.aol && is_ie4);
var is_aol5  = (agt.indexOf("aol 5") != -1);
var is_aol6  = (agt.indexOf("aol 6") != -1);
var is_aol7  = ((agt.indexOf("aol 7")!=-1) || (agt.indexOf("aol7")!=-1));
var is_aol8  = ((agt.indexOf("aol 8")!=-1) || (agt.indexOf("aol8")!=-1));

AOL = is_aol;
AOL3 = is_aol3;
AOL4 = is_aol4;
AOL5 = is_aol5;
AOL6 = is_aol6;
AOL7 = is_aol7;
AOL8 = is_aol8;

FIRE = is.firefox;
CHR = is.chrome;
SAF = is.safari;

NS6 = (document.getElementById&&!document.all);
IE = (document.all);
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4");


///// DEFAULT SETTINGS /////


slideSpeedVert=10; // no quotes!!
waitTimeVert=200; // no quotes!! this sets the time the menu stays out after the mouse goes off it.
menuBGColor="black";
if (IE||AOL||Opera||CHR||SAF) {menuHeight=380;} // Must be a multiple of 10! no quotes!!
if (NS) {menuHeight=250};
if (NS6) {menuHeight=250};
hdrFontFamilyVert="arial, sans serif";
hdrFontSizeVert="3";
hdrFontColorVert="#000000";
hdrBGColorVert="#78FAC8";
hdrAlignVert="center";
hdrVAlignVert="center";
hdrHeightVert="20";
linkFontFamilyVert="arial";
if(IE||IE6||Opera||AOL||CHR||SAF){linkFontSizeVert="2"};
if(NS||NS6){linkFontSizeVert="2"};
linkBGColorVert="#C9FFEB";
linkOverBGColorVert="#800000";//Opera doesn't work with rgb color values
linkColorVert="black";
linkOverColorVert="white";
linkAlignVert="top";
barBGColorVert="#0FC882";
barFontFamilyVert="arial, sans serif";
barFontSizeVert="2";
barFontColorVert="#000000";
barVAlignVert="center";
barWidthVert=20; // no quotes!!
addItemHeightVert=15;

/////RAKE ITEMS-ARRAY 1 /////
var rakeItemVert= new Array();
rakeItemVert[0]="Images 1-An Overview";
rakeItemVert[1]="Images 2-Raking Leaves";
rakeItemVert[2]="Images 3-Pushing Leaves";
rakeItemVert[3]="Images 4-Rake Components";
rakeItemVert[4]="Synopsis of the Invention- <br />&nbsp;[Entry page]";
rakeItemVert[5]="Patent Information";
rakeItemVert[6]="Abstract and Summary"; 
rakeItemVert[7]="Background of the Invention";
rakeItemVert[8]="Objects of the Invention";
rakeItemVert[9]="Drawings";
rakeItemVert[10]="Description of the Invention";
rakeItemVert[11]="Claims";
rakeItemVert[12]="Thumbnail images";
rakeItemVert[13]="Email the inventor";

/////RAKE LINK ITEMS-ARRAY 2 /////
var rakeItemVertLink= new Array();
rakeItemVertLink[0]="rakeImages1.html";
rakeItemVertLink[1]="rakeImages2.html";
rakeItemVertLink[2]="rakeImages3.html";
rakeItemVertLink[3]="rakeImages4.html";
rakeItemVertLink[4]="lawnRakeIndex.html";
rakeItemVertLink[5]="patentInfo.html";
rakeItemVertLink[6]="abstract.html";
rakeItemVertLink[7]="background.html";
rakeItemVertLink[8]="objects.html";
rakeItemVertLink[9]="drawings.html";
rakeItemVertLink[10]="description.html";
rakeItemVertLink[11]="claims.html";
rakeItemVertLink[12]="thumbnails.html";
rakeItemVertLink[13]="mailto:inventor@earthodyssey.com";

///// SLIDE FUNCTION //////
movingVert=setTimeout('null',1)
function moveDown() {
if ((NS6 && parseInt(rakeMenu.top)<0)||((IE||AOL||CHR||SAF) && rakeMenu.pixelTop<0)||(NS && rakeMenu.top<0)) {
clearTimeout(movingVert);movingVert = setTimeout('moveDown()', slideSpeedVert)
if (NS6) {thetop+=10;rakeMenu.top = thetop+'px';}
if (IE||AOL||CHR||SAF) {rakeMenu.pixelTop += 10;}
}
else {clearTimeout(movingVert);movingVert=setTimeout('null',1)}

};
function moveUp() {
clearTimeout(movingVert);movingVert = setTimeout('moveUp()', waitTimeVert)
if ((NS6 && parseInt(rakeMenu.top)>(-menuHeight-60))||((IE||AOL||CHR||SAF)&& rakeMenu.pixelTop>(-menuHeight))||(NS && rakeMenu.top>(-menuHeight))) {
clearTimeout(movingVert);movingVert = setTimeout('moveUp()', slideSpeedVert);
if (NS6) {thetop-=10;rakeMenu.top = thetop+'px';}
if (IE||AOL||CHR||SAF) {rakeMenu.pixelTop -= 10;}
}
else {clearTimeout(movingVert);movingVert=setTimeout('null',1)}

window.status = " ";
}



///// SETS OBJECT NAMES AND LOADS MENU /////
function rakeInitSlide() {
if (NS6||CHR||SAF){rakeMenu=document.getElementById("therakeMenu").style;
rakeMenu.visibility="visible";rakeMenu.top = -menuHeight-60+'px';}
else if (IE||AOL) {rakeMenu=document.all("therakeMenu").style;
rakeMenu.visibility = "visible";rakeMenu.pixelTop = -menuHeight;}
}

///// MENU BUILDER FUNCTIONS /////

//original program omitted 'auto' from the clip property//

function rakeStartMenu(menuHeader,barText) {
if (IE||AOL||Opera||NS6||CHR||SAF) {document.write('<div id="therakeMenu" style="visibility:hidden;position :absolute;left:400px;top:-400px ;z-index:20;height:1px" onmouseover="moveDown();return true"onmouseout="moveUp()">')}
if ((IE||AOL)&&!Opera) {document.all("therakeMenu").style.pixelLeft=screen.width*.60}
if (NS6||CHR||SAF) {document.getElementById("therakeMenu").style.left=screen.width*.60+'px'}
//if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" bgcolor="'+menuBGColor+'"><tr><td>')}

document.write('<table border="0" bgcolor="'+menuBGColor+'" cellpadding="0" cellspacing="1" width="220" >');
 
tempBar='';rakeAddHdr(menuHeader)
if(barText.indexOf('<img')>-1) {tempBar=barText}
else{for (i=0;i<barText.length;i++) {
tempBar+=barText.substring(i, i+1)+"<br>"}}
document.write('<td style="font-family:arial;font-size:12pt; color:'+barFontColorVert+';font-weight:bold;margin-left:0px;margin-right:0px" align="center" rowspan="100" width="'+barWidthVert+'" bgcolor="'+barBGColorVert+'" valign="'+barVAlignVert+'">'+tempBar+'</td></tr>');
thetop=-menuHeight}

function rakeEndMenu() {

document.write('</table>')
if (NS6){document.write('</td></tr></table>')}
if (IE||NS6||AOL||CHR||SAF) {document.write('</div>')}

if (NS6||IE||NS||AOL||CHR||SAF) {setTimeout('rakeInitSlide();', 1)}
}

function rakeAddHdr(text) {
document.write('<tr><td style="background-color:'+hdrBGColorVert+';font-family:arial;font-size:12pt;color:black;font-weight:bold;" height="20" align="'+hdrAlignVert+'" valign="'+hdrVAlignVert+'">'+text+'</td>'+((!tempBar)?"":"</tr>"))}

function rakeAddItem(text, link) {
var baseUrl="http://www.earthodyssey.com/lawnRake/"
if (text=="Email the inventor"){baseUrl=""}
document.write('<tr><td style="border-top:1px solid white;font-family:arial;font-size:10pt;color:'+linkColorVert+';font-weight:bold;background-color:'+linkBGColorVert+';cursor:pointer;padding-left:5px;" onclick="window.location=\''+baseUrl+link+'\'" onmouseover="if(Opera5){this.style.background=\''+linkOverBGColorVert+'\';}; this.style.backgroundColor=\''+linkOverBGColorVert+'\';this.style.color=\''+linkOverColorVert+'\';window.status=\''+baseUrl+link+'\'" onmouseout="if(Opera5){this.style.background=\''+linkBGColorVert+'\';};this.style.backgroundColor=\''+linkBGColorVert+'\';this.style.color=\''+linkColorVert+'\';" height="'+addItemHeightVert+'">'+text+'</td></tr>')}

//following function makes white background on link list//

function rakeAddItem1(text, link) {
document.write('<tr><td style="border-top:1px solid white;background-color:#ffffff;font-family:arial;font-size:10pt;color:'+linkColorVert+';font-weight:bold;padding-left:5px;" onmouseover="window.status=\'You are presently visiting this page\'" height="'+addItemHeightVert+'">'+text+'</td></tr>')}

//-->