/*menuScriptRakeNew.js*/
/*Copyright 2000-2005 by EarthOdyssey, LLC. All rights reserved. The content of this file may not be copied, used, sold or distributed in whole or in part without the express written consent of EarthOdyssey, LLC.*/
<!--


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");




function change1(str,str1) {
		window.status=str
		
		if (document.all) { document.all("picture"+str1).src="images/earth5.gif"
		}else if (document.getElementById) {document.getElementById("picture"+str1).src="images/earth5.gif"}
		
		
		return true;
		}

	function change2(str,str2) {
		window.status=str
		if (document.all) { document.all("picture"+str2).src="images/butterflyW30H34.gif"
		}else if (document.getElementById) {document.getElementById("picture"+str2).src="images/butterflyW30H34.gif"}
		
		
		
		return true;
		}


	function change3(str,str1) {
	 	window.status=str
		if (str1=="1") {
		document.conUs.src='buttons/blue_contactUsBcl.gif'
		}
	}

	

var reference;
var page;
var place;
var topPosition;
var shiftDown;

var nav1='style="color:black;text-align:center;font-family:  arial,times,helvetica,lucida sans,verdana,sans-serif;font-size:12px;vertical-align:middle;font-weight:bold;border-top: 2px solid #C0C0C0 ;border-left: 2px solid #808080;border-right: 2px solid #404040;border-bottom: 2px solid #202020;padding:1px;background-color:rgb(115,170,250);width:70px;'

var nav2='style="color:black;text-align:center;font-family:  arial,times,helvetica,lucida sans,verdana,sans-serif;font-size:12px;vertical-align:middle;font-weight:bold;border-top: 2px solid #C0C0C0 ;border-left: 2px solid #808080;border-right: 2px solid #404040;border-bottom: 2px solid #202020;padding:1px;background-color:rgb(250,250,250);width:70px;'

/*style for Welcome button*/
var navPopUp='style="position:absolute;top:2px;left:35%;color:white;text-align:center;font-family:  arial,times,helvetica,lucida sans,verdana,sans-serif;font-size:12px;vertical-align:middle;font-weight:bold;background-color:rgb(192,0,0);border-top: 2px solid #C0C0C0 ;border-left: 2px solid #808080;border-right: 2px solid #404040;border-bottom: 2px solid #202020; padding:1px; width:70px;"'


function NavRollOver (dvCol,page){
if (!dvCol.contains(event.fromElement)) {
dvCol.style.backgroundColor="rgb(0,0,192)";
dvCol.style.color="white";
dvCol.style.cursor="pointer";

}}

function NavRollOut (dvCol){
if (!dvCol.contains(event.toElement)) {
dvCol.style.backgroundColor="rgb(115,170,250)";
dvCol.style.color="black";
dvCol.style.cursor="default";
}}

function NavRollOverNS4 (dvCol){
dvCol.bgcolor="rgb(0,0,192)";

}

function NavRollOutNS4 (dvCol){
dvCol.bgcolor="rgb(115,170,250)";

}

function NavRollOverNS6 (dvCol){
dvCol.style.backgroundColor="rgb(0,0,192)";
dvCol.style.color="white";
dvCol.style.cursor="pointer";}

function NavRollOutNS6 (dvCol){
dvCol.style.backgroundColor="rgb(115,170,250)";
dvCol.style.color="black";
dvCol.style.cursor="default";}

function PopUpRollOver (dvCol,page){
if (!dvCol.contains(event.fromElement)) {
dvCol.style.backgroundColor="rgb(255,64,64)";
if (Opera5){dvCol.style.background="#FF4040";}
dvCol.style.color="black";
dvCol.style.cursor="pointer";
}
}

function PopUpRollOut (dvCol){
if (!dvCol.contains(event.toElement)) {
dvCol.style.backgroundColor="rgb(192,0,0)";
if (Opera5){dvCol.style.background="#C00000";}
dvCol.style.color="white";
dvCol.style.cursor="default";
}}


function PopUpRollOverNS6 (dvCol){
dvCol.style.backgroundColor="rgb(255,64,64)";
dvCol.style.color="black";
dvCol.style.cursor="pointer";}

function PopUpRollOutNS6 (dvCol){
dvCol.style.backgroundColor="rgb(192,0,0)";
dvCol.style.color="white";
dvCol.style.cursor="default";}

function rakeRollOver (dvCol) {
if (!dvCol.contains(event.fromElement)) {
dvCol.style.backgroundColor="rgb(0,192,0)";
if (Opera5){dvCol.style.background="#00C000";}
dvCol.style.color="black";
dvCol.style.cursor="pointer";
}

}

function rakeRollOut (dvCol) {
if (!dvCol.contains(event.toElement)) {
dvCol.style.backgroundColor="rgb(0,125,0)";
if (Opera5){dvCol.style.background="#007D00";}
dvCol.style.color="white";
dvCol.style.cursor="default";
}

}
function rakeRollOverNS6 (dvCol) {

dvCol.style.backgroundColor="rgb(0,192,0)";
dvCol.style.color="black";
dvCol.style.cursor="pointer";
}


function rakeRollOutNS6 (dvCol) {

dvCol.style.backgroundColor="rgb(0,125,0)";
dvCol.style.color="white";
dvCol.style.cursor="default";
}


var buttonWidth;

var buttonName;

var navButton='style="color:black;text-align:center;font-family:  arial,times,helvetica,lucida sans,verdana,sans-serif;font-size:12px;vertical-align:middle;font-weight:bold; border-top: 2px solid #C0C0C0 ; border-left: 2px solid #808080; border-right: 2px solid #404040; border-bottom: 2px solid #202020; padding:1px;background-color:rgb(115,170,250);';
	
	function closeButton (buttonName,buttonWidth) {
	
	 if (buttonWidth=='set') {
	buttonWidth=110;
	}
	
	if(!NS4) {
	document.write('<div align="center"><a class="menu1"  href="javascript:window.close()"><div '+navButton+' width:'+buttonWidth+'px;" onmouseover="NavRollOver(this); return true" onmouseout="NavRollOut(this)">'+buttonName+'</div></a></div>');
	}else{ 

document.write('<table width='+buttonWidth+' align="center" border="2"><tr><td '+navButton+'"><a class="menu1" href="javascript:window.close()">'+buttonName+'</a></td></tr></table>')
	
	}
	}

var rakeButton='style="position:absolute;top:0px;left:70%;color:white;text-align:center;font-family:arial,times,helvetica,lucida sans,verdana,sans-serif;font-size:12px;vertical-align:middle;font-weight:bold;background-color:rgb(0,125,0);border-top: 2px solid #C0C0C0 ;border-left: 2px solid #808080;border-right: 2px solid #404040;border-bottom: 2px solid #202020; padding:1px; width:70px;"'

function writeRakeButton() {
if (IE||Opera||AOL||CHR||SAF) {
document.write('<img style="position:absolute;z-Index:1;top:4px;left:66%;width:32px;height:16px;" src="images/new1.gif" alt="an image showing the word \'new\'" /><a class="menu2" href="http://www.earthodyssey.com/lawnRake/lawnRakeIndex.html"><div '+rakeButton+' title="a link to a new invention" onmouseover="moveDown();rakeRollOver(this);return true" onmouseout="moveUp();rakeRollOut(this);">Lawn rake invention</div></a>');
}else if (NS5||NS6) {
document.write('<img style="position:absolute;z-Index:1;top:4px;left:66%;width:32px;height:16px;" src="images/new1.gif" alt="an image showing the word \'new\'" /><a class="menu2" href="http://www.earthodyssey.com/lawnRake/lawnRakeIndex.html"><div '+rakeButton+' title="a link to a new invention" onmouseover="moveDown();rakeRollOverNS6(this); window.status=\'http://www.earthodyssey.com/lawnRake/lawnRakeIndex.html\'; return true" onmouseout="moveUp();rakeRollOutNS6(this);window.status=\'\'">Lawn rake invention</div></a>');
}else if (NS4) {
document.write ('<layer top="5" left="66%" z-index="2"><img  src="images/new1.gif" width="32" height="16" alt="an image showing the word \'new\'" /></layer><layer top="0" left="20%" z-index="1"><table width="70" border="2" title="a link to a popup window message"><tr><td class="popUp"><a class="menu3" href="javascript:void;" href="http://www.earthodyssey.com/lawnRake/lawnRakeIndex.html" title="a link to a new invention">Lawn rake invention</a></td></tr></table></layer>')
}
}


function writePopUpButton (message,popUpLocation,popUpWindow) {

if (popUpWindow=='popupAd()') {navPopUp='style="position:absolute;top:0px;left:15%;color:white;text-align:center;font-family:  arial,times,helvetica,lucida sans,verdana,sans-serif;font-size:12px;vertical-align:middle;font-weight:bold;background-color:rgb(192,0,0);border-top: 2px solid #C0C0C0 ;border-left: 2px solid #808080;border-right: 2px solid #404040;border-bottom: 2px solid #202020; padding:1px; width:85px;"'};

if (Opera) {
document.write('<div '+navPopUp+' title="a link to a popup window message" onclick="'+popUpWindow+'" onmouseover="PopUpRollOver(this);" onmouseout="PopUpRollOut(this)">'+message+'</div>');

}else if ((IE||AOL|CHR||SAF)&& !Opera) {
document.write('<div '+navPopUp+' title="a link to a popup window message" onclick="'+popUpWindow+'" onmouseover="PopUpRollOver(this); window.status=\''+popUpLocation+'\'; return true" onmouseout="PopUpRollOut(this);window.status=\'\'">'+message+'</div>');

}else if (NS5 || NS6) {
document.write('<div '+navPopUp+' title="a link to a popup window message" onclick="'+popUpWindow+'" onmouseover="PopUpRollOverNS6(this); window.status=\''+popUpLocation+'\'; return true" onmouseout="PopUpRollOutNS6(this);window.status=\'\'">'+message+'</div>')

}else if (NS4) {

document.write ('<layer top="0" left="15%" title="a link to a popup window message" ><table width="70" border="2" title="a link to a popup window message"><tr><td class="popUp"><ilayer><layer width="100%" onmouseover="bgColor=\'#FF4040\';return true" onmouseout="bgColor=\'#C00000\'"><div align="center"><a class="menu3" href="javascript:void;" title="a link to a popup window message" onmouseover="window.status=\''+popUpLocation+'\'; return true" onmouseout="window.status=\'\'"onclick="'+popUpWindow+'">'+message+'</a></div></ilayer></layer></td></tr></table></layer>')

}else{
document.write('<div '+navPopUp+' title="a link to a popup window message" onclick="'+popUpWindow+'" onmouseover="PopUpRollOver(this); window.status=\''+popUpLocation+'\'; return true" onmouseout="PopUpRollOut(this);window.status=\'\'">'+message+'</div>');
}


}

function change (newStyle) {
newStyle.style.backgroundColor='rgb(0,0,192)';
if (Opera5){newStyle.style.background='#0000C0';}
newStyle.style.color='white';
window.status='Close window'
return true;
}
function original (oldStyle) {
oldStyle.style.backgroundColor='rgb(115,170,250)';
if (Opera5){oldStyle.style.background='#7396FA';}
oldStyle.style.color='black';
window.status='';
}


function changeWelcome (newStyle) {
newStyle.style.backgroundColor='rgb(0,0,192)';
if (Opera5){newStyle.style.background='#0000C0';}
newStyle.style.color='white';
window.status='http://www.earthodyssey.com/index.html'
return true;
}
function originalWelcome (oldStyle) {
oldStyle.style.backgroundColor='rgb(115,170,250)';
if (Opera5){oldStyle.style.background='#7396FA';}
oldStyle.style.color='black';
window.status='';
}

function changeStory (newStyle) {
newStyle.style.backgroundColor='rgb(0,0,192)';
if (Opera5){newStyle.style.background='#0000C0';}
newStyle.style.color='white';
window.status='http://www.earthodyssey.com/story.html'
return true;
}
function originalStory (oldStyle) {
oldStyle.style.backgroundColor='rgb(115,170,250)';
if (Opera5){oldStyle.style.background='#7396FA';}
oldStyle.style.color='black';
window.status='';
}

function changeTop (newStyle) {
newStyle.style.backgroundColor='rgb(0,0,192)';
if (Opera5){newStyle.style.background='#0000C0';}
newStyle.style.color='white';
window.status='Jump to the top of the page'
return true;
}
function originalTop (oldStyle) {
oldStyle.style.backgroundColor='rgb(115,170,250)';
if (Opera5){oldStyle.style.background='#7396FA';}
oldStyle.style.color='black';
window.status='';
}

function change6 (newStyle) {
newStyle.style.backgroundColor='rgb(0,0,192)';
if (Opera5){newStyle.style.background='#0000C0';}
newStyle.style.color='white';
window.status='View pricing for six or more EarthOdyssey pulling tools'
return true;
}
function original6 (oldStyle) {
oldStyle.style.backgroundColor='rgb(115,170,250)';
if (Opera5){oldStyle.style.background='#7396FA';}
oldStyle.style.color='black';
window.status='';
}

function changePushButton (newButton) {
if (NS4) {
newButton.bgcolor='rgb(255,64,64)';
newButton.color='black';
}else{
newButton.style.backgroundColor='rgb(255,64,64)';
if (Opera5){newButton.style.background='#FF4040';}
newButton.style.color='black';
return true;
}
}
function originalPushButton (oldButton) {
if (NS4) {
oldButton.bgcolor='rgb(192,0,0)';
oldButton.color='black';
}else{
oldButton.style.backgroundColor='rgb(192,0,0)';
if (Opera5){oldButton.style.background='#C00000';}
oldButton.style.color='white';
}
}
//-->