var nav_Ocean_1 = new Object();

nav_Ocean_1.selectedTextcolor="#33CCFF";
nav_Ocean_1.simpleButton="Ocean";
nav_Ocean_1.squareTab="Camel";
nav_Ocean_1.textFont="Comic Sans MS";
nav_Ocean_1.textColor="#3F9C2D";
nav_Ocean_1.selectedBold="true";
nav_Ocean_1.expressStyle="Basic_Buttons";
nav_Ocean_1.horizontalWrap="6";
nav_Ocean_1.funButton="Sketch";
nav_Ocean_1.type="Navigation";
nav_Ocean_1.imageWidth="102";
nav_Ocean_1.graphicMouseover="true";
nav_Ocean_1.texturedButton="Burlap";
nav_Ocean_1.selectedItalic="true";
nav_Ocean_1.imageHeight="39";
nav_Ocean_1.style="buttons";
nav_Ocean_1.basicTab="White";
nav_Ocean_1.justification="center";
nav_Ocean_1.navID="nav_Ocean_1";
nav_Ocean_1.selectedBgcolor="";
nav_Ocean_1.expressColorScheme="Dark_Red";
nav_Ocean_1.mouseoverItalic="true";
nav_Ocean_1.importedImageSelected="Coffee_Beans_mix.jpg";
nav_Ocean_1.border="";
nav_Ocean_1.version="4";
nav_Ocean_1.mouseoverBgcolor="";
nav_Ocean_1.modernButton="Techno";
nav_Ocean_1.background="";
nav_Ocean_1.importedImageMouseOver="";
nav_Ocean_1.localPreview="true";
nav_Ocean_1.brightButton="Atomic_Purple_Button_1";
nav_Ocean_1.dirty="false";
nav_Ocean_1.sophisticatedButton="Retro";
nav_Ocean_1.holidayButton="Winter_Snow";
nav_Ocean_1.buttonCategory="holiday";
nav_Ocean_1.numLinks="6";
nav_Ocean_1.mouseoverBold="true";
nav_Ocean_1.mouseoverUnderline="false";
nav_Ocean_1.accentColor="Black";
nav_Ocean_1.horizontalSpacing="12";
nav_Ocean_1.hasLinks="true";
nav_Ocean_1.mouseoverTextcolor="#B91806";
nav_Ocean_1.selectedUnderline="false";
nav_Ocean_1.lineWidth="2";
nav_Ocean_1.bold="true";
nav_Ocean_1.textSize="14";
nav_Ocean_1.selectedEffect="true";
nav_Ocean_1.accentType="none";
nav_Ocean_1.lineColor="#000000";
nav_Ocean_1.verticalSpacing="14";
nav_Ocean_1.tabCategory="square";
nav_Ocean_1.graphicHighlight="true";
nav_Ocean_1.graphicSelected="true";
nav_Ocean_1.accentStyle="Arrow";
nav_Ocean_1.importedImage="momma_red_hib_sml.GIF";
nav_Ocean_1.mouseoverEffect="true";
nav_Ocean_1.orientation="vertical";
nav_Ocean_1.basicButton="Forest_Green";
nav_Ocean_1.underline="false";
nav_Ocean_1.italic="false";
nav_Ocean_1.darkButton="Minimal";

nav_Ocean_1.navName="Ocean_1";
nav_Ocean_1.imagePath = "http://www.homestead.com/~media/elements/LayoutClipart/../LayoutClipart/Buttons/Frosted_Button.gif";
nav_Ocean_1.selectedImagePath = "http://www.homestead.com/~media/elements/LayoutClipart/../LayoutClipart/Buttons/Frosted_Button.gif";
nav_Ocean_1.mouseOverImagePath = "http://www.homestead.com/~media/elements/LayoutClipart/../LayoutClipart/Buttons/Frosted_Button.gif";
nav_Ocean_1.imageWidth = "102";
nav_Ocean_1.imageHeight = "39";
nav_Ocean_1.fontClass = "size14";
nav_Ocean_1.fontFace = "\'Comic Sans MS\', Arial, Helvetica, sans-serif";



	var baseHref = '';
	
	if (document.getElementsByTagName)
	{
	
	var base = document.getElementsByTagName('base');
	
	if (base && base.length > 0)
	{
	
	if (base[0].href != undefined)
	{
	
	baseHref = base[0].href;
	
	if (baseHref != '' && baseHref.charAt(baseHref.length - 1) != '/')
	{
	baseHref += '/';
	}
	}
	}
	}


nav_Ocean_1.links=new Array(6);


var nav_Ocean_1_Link1 = new Object();
nav_Ocean_1_Link1.type = "existing";
nav_Ocean_1_Link1.displayName = "Home";
nav_Ocean_1_Link1.linkWindow = "";
nav_Ocean_1_Link1.linkValue = "Index.html";
nav_Ocean_1_Link1.linkIndex = "1";
nav_Ocean_1.links[0] = nav_Ocean_1_Link1;

var nav_Ocean_1_Link2 = new Object();
nav_Ocean_1_Link2.type = "existing";
nav_Ocean_1_Link2.displayName = "Coffee";
nav_Ocean_1_Link2.linkWindow = "";
nav_Ocean_1_Link2.linkValue = "roastedbeans.html";
nav_Ocean_1_Link2.linkIndex = "2";
nav_Ocean_1.links[1] = nav_Ocean_1_Link2;

var nav_Ocean_1_Link3 = new Object();
nav_Ocean_1_Link3.type = "existing";
nav_Ocean_1_Link3.displayName = "&nbsp;Baskets&nbsp;&nbsp;&nbsp;";
nav_Ocean_1_Link3.linkWindow = "_self";
nav_Ocean_1_Link3.linkValue = "Baskets.html";
nav_Ocean_1_Link3.linkIndex = "3";
nav_Ocean_1.links[2] = nav_Ocean_1_Link3;

var nav_Ocean_1_Link4 = new Object();
nav_Ocean_1_Link4.type = "existing";
nav_Ocean_1_Link4.displayName = "About&nbsp;Us";
nav_Ocean_1_Link4.linkWindow = "";
nav_Ocean_1_Link4.linkValue = "About_Us.html";
nav_Ocean_1_Link4.linkIndex = "4";
nav_Ocean_1.links[3] = nav_Ocean_1_Link4;

var nav_Ocean_1_Link5 = new Object();
nav_Ocean_1_Link5.type = "existing";
nav_Ocean_1_Link5.displayName = "Contact&nbsp;Us";
nav_Ocean_1_Link5.linkWindow = "";
nav_Ocean_1_Link5.linkValue = "Contact_Us.html";
nav_Ocean_1_Link5.linkIndex = "5";
nav_Ocean_1.links[4] = nav_Ocean_1_Link5;

var nav_Ocean_1_Link6 = new Object();
nav_Ocean_1_Link6.type = "existing";
nav_Ocean_1_Link6.displayName = "Shipping";
nav_Ocean_1_Link6.linkWindow = "";
nav_Ocean_1_Link6.linkValue = "Shipping_details.html";
nav_Ocean_1_Link6.linkIndex = "6";
nav_Ocean_1.links[5] = nav_Ocean_1_Link6;




function renderGraphicalHTML(Navigation, strTpGif)
{
	var strHTML = '';
	strHTML += '<table border="0" cellspacing="0" cellpadding="0">';

	var i;
	for(i = 0; i < Navigation.links.length; i++)
	{
	strHTML += renderGraphicalLink(Navigation, Navigation.links[i], strTpGif);	
	}
	
	strHTML += '</table>';
	return strHTML;
}

function mouseOn(tdCell, newBackgroundImage) 
{
	tdCell.style.backgroundImage = 'url(' + newBackgroundImage + ')';
}

function mouseOff(tdCell, newBackgroundImage)
{
	tdCell.style.backgroundImage = 'url(' + newBackgroundImage + ')';
}

function getGraphicMouseOverHandler(Navigation, bIsCurrentPage)
{
	
	if (Navigation.mouseoverEffect != 'true') return '';

	if((Navigation.graphicSelected=='true' || Navigation.selectedTextcolor) && bIsCurrentPage && 'true' == Navigation.selectedEffect)
	{
	return '';
	}
	var bShowMouseoverText = !(bIsCurrentPage && 'true' == Navigation.selectedEffect && Navigation.selectedTextcolor);
	var strMouseOver = '';
	var strMouseOut = '';
	
	if(Navigation.graphicMouseover=='true')
	{
	strMouseOver += ' mouseOn(this, \'' + Navigation.mouseOverImagePath + '\');';
	strMouseOut += ' mouseOff(this, \'' + Navigation.imagePath + '\');';
	}	
	var textColor;
	var baseTextColor = Navigation.textColor;
	var bold;
	var baseBold = Navigation.bold;
	var underline;
	var baseUnderline = Navigation.underline;
	var italic;
	var baseItalic = Navigation.italic;
	if(bIsCurrentPage && 'true' == Navigation.selectedEffect)
	{
	textColor = Navigation.selectedTextcolor ? Navigation.selectedTextcolor : (Navigation.mouseoverTextColor ? Navigation.mouseoverTextcolor : Navigation.textColor);
	baseTextColor = Navigation.selectedTextcolor ? Navigation.selectedTextcolor : Navigation.textColor;
	baseBold = bold = Navigation.selectedBold;
	baseUnderline = underline = Navigation.selectedUnderline;
	baseItalic = italic = Navigation.selectedItalic;
	}
	else
	{
	textColor = Navigation.mouseoverTextcolor ? Navigation.mouseoverTextcolor : Navigation.textColor;
	bold = Navigation.mouseoverBold;
	underline = Navigation.mouseoverUnderline;
	italic = Navigation.mouseoverItalic;
	}
	strMouseOver += ' textMouseOn(this, \'' + textColor + '\', \'' + bold + '\', \'' + underline + '\', \'' + italic + '\');';
	strMouseOut += ' textMouseOff(this, \'' + baseTextColor + '\', \'' + baseBold + '\', \'' + baseUnderline + '\', \'' + baseItalic + '\');';
	return ' onMouseOver="' + strMouseOver + '" onMouseOut="' + strMouseOut + '"';
}	


function getGraphicalStyle(Navigation, strImg, strFontColor, bold, italic, underline, bNetscape) 
{
	var strStyle = ' style="';
	
	strStyle += 'cursor: pointer; cursor: hand; '; 
	strStyle += 'color:' + strFontColor + ';';
	strStyle += 'background-image:url(' + strImg + ');';
	strStyle += 'background-repeat:no-repeat;';
	strStyle += 'background-position:center;';

	if(!bNetscape)
	{
	if (bold) strStyle += 'font-weight: bold;';
	if (italic) strStyle += 'font-style: italic;';
	if (underline) strStyle += 'text-decoration: underline;';
	}
	
	
	strStyle += Navigation.justification;	
	
	
	strStyle += '" ';
	
	return strStyle;
}

function renderGraphicalLink(Navigation, Link, strTpGif)
{
	var strImg = Navigation.imagePath;
	var strFontColor = Navigation.textColor;
	var bIsCurrentPage = isCurrentPage(Link);
	var strLinkValue = fixLinkValue(Link);
	var bLastLink = Link.linkIndex == Navigation.numLinks;
	var nColIndex = 0;
	
	if(Navigation.orientation=='horizontal')
	{
	nColIndex = (Link.linkIndex - 1) % Navigation.horizontalWrap;
	}
	
	if (bIsCurrentPage && 'true' == Navigation.selectedEffect) 
	{
	if(Navigation.graphicSelected=='true')
	{
	strImg = Navigation.selectedImagePath;	
	}
	
	if(Navigation.selectedTextcolor)
	{
	strFontColor = Navigation.selectedTextcolor;	
	}
	}
	
	
	var bNetscape = false;
	var strAppName = navigator.appName;
	var appVer = parseFloat(navigator.appVersion);
	var nGeneralPadding = 10;	
	
	if ( (strAppName == 'Netscape') &&
	(appVer >= 4.0 && appVer < 5) ) 
	{ 
	bNetscape = true;
	}
	
	var strHTML = '';
	
	if(Navigation.orientation=='horizontal')
	{
	if( (Link.linkIndex % Navigation.horizontalWrap) == 1) 
	{
	strHTML += '<TR ALIGN="CENTER" VALIGN="MIDDLE">';
	strHTML += '<TD>';
	strHTML += '<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">';
	strHTML += '<TR>';
	}	
	}
	else
	{
	
	strHTML += '<TR>'
	}

	
	
	strHTML += '<TD NOWRAP HEIGHT="' + Navigation.imageHeight + '"';
	
	strHTML += ' ALIGN="' + Navigation.justification + '" VALIGN="MIDDLE"';
	
	
	strHTML += ' id="'+Navigation.navName+'_Link'+Link.linkIndex+'"';
	
	if(!bNetscape)
	{
	
	strHTML += getGraphicalStyle(
	Navigation, 
	strImg, 
	strFontColor,
	((bIsCurrentPage && 'true' == Navigation.selectedEffect) ? ('true' == Navigation.selectedBold) : ('true' == Navigation.bold)),
	((bIsCurrentPage && 'true' == Navigation.selectedEffect) ? ('true' == Navigation.selectedItalic) : ('true' == Navigation.italic)),
	((bIsCurrentPage && 'true' == Navigation.selectedEffect) ? ('true' == Navigation.selectedUnderline) : ('true' == Navigation.underline)),
	bNetscape
	);
	}
	else
	{
	
	if(bIsCurrentPage && 'true' == Navigation.selectedEffect)
	{
	strHTML += ' CLASS="navBackgroundSelected' + Navigation.navName + '" ';
	}
	else
	{
	strHTML += ' CLASS="navBackground' + Navigation.navName + '" ';
	}
	}
	
	if(!bNetscape)
	{	
	
	var strOnClick = getOnClick(strLinkValue, Link.linkWindow); 
	
	
	var strMouseOver = getGraphicMouseOverHandler(Navigation, bIsCurrentPage);
	
	strHTML += strOnClick + strMouseOver;
	}
	
	if(bNetscape)
	{
	strHTML += ' width="' + Navigation.imageWidth + '"';
	}
	
	strHTML += '>'; 
	
	
	var strFormattingStart = ''; 
	var strFormattingEnd = '';
	
	if (bNetscape)
	{
	if((bIsCurrentPage && 'true' == Navigation.selectedEffect) ? ('true' == Navigation.selectedItalic) : ('true' == Navigation.italic))
	{
	strFormattingStart += '<I>';
	strFormattingEnd = '</I>' + strFormattingEnd;
	}
	if((bIsCurrentPage && 'true' == Navigation.selectedEffect) ? ('true' == Navigation.selectedBold) : ('true' == Navigation.bold))
	{
	strFormattingStart += '<B>';
	strFormattingEnd = '</B>' + strFormattingEnd;
	}
	}
	
	
	if(!bNetscape)
	{
	var nDivWidth = Navigation.imageWidth;
	
	if(Navigation.justification != 'center')
	{
	nDivWidth = nDivWidth - nGeneralPadding;
	}
	strHTML += '<DIV ';
	strHTML += ' STYLE="width:' + nDivWidth + 'px';
	
	if(Navigation.justification != 'center')
	{
	strHTML += ';margin-' + Navigation.justification + ':';
	strHTML += nGeneralPadding + 'px';	
	}
	strHTML+='">';
	}
	
	if(bNetscape)
	{
	if(Navigation.justification == 'left')
	{
	strHTML += '<IMG SRC="' + strTpGif + '" WIDTH="' + nGeneralPadding + '" HEIGHT="1" BORDER="0">';	
	}

	
	strHTML += '<A HREF="' + strLinkValue + '" TARGET="';

	
	var strLinkTarget = Link.linkWindow;
	if(strLinkTarget == '_self')
	{
	strLinkTarget = '_parent';
	}
	
	strHTML += strLinkTarget + '">'; 
	}	
	
	
	strHTML += '<FONT';
	strHTML += ' FACE="' + Navigation.fontFace + '"';
	strHTML += ' CLASS="' + Navigation.fontClass + '"'; 
	
	
	if(bNetscape)
	{
	strHTML += ' COLOR="' + strFontColor + '"';
	}
	
	strHTML += '>'; 
	
	strHTML += strFormattingStart + Link.displayName + strFormattingEnd;
	
	strHTML += '</FONT>';

	
	if(!bNetscape)
	{
	strHTML += '</DIV>';
	}
	
	
	if(bNetscape)
	{
	if(Navigation.justification == 'right')
	{
	strHTML += '<IMG SRC="' + strTpGif + '" WIDTH="' + nGeneralPadding + '" HEIGHT="1" BORDER="0">';
	}
	strHTML += '</A>';
	}	
	
	
	strHTML += '</TD>';
	
	
	if(Navigation.orientation=='vertical')
	{
	strHTML += '</TR>';
	
	if(Navigation.verticalSpacing > 0)
	{
	if(!bLastLink)
	{
	strHTML += '<TR><TD>';
	strHTML += '<IMG SRC="' + strTpGif + '" HEIGHT="' + Navigation.verticalSpacing + '" WIDTH="1" BORDER="0" ALT="">';
	strHTML += '</TD></TR>';
	}
	}
	}
	else
	{
	
	if(Navigation.horizontalSpacing > 0)
	{
	if(!bLastLink && (nColIndex != Navigation.horizontalWrap - 1))
	{
	strHTML += '<TD WIDTH="' + Navigation.horizontalSpacing + '">';
	strHTML += '<IMG SRC="' + strTpGif + '" WIDTH="' + Navigation.horizontalSpacing + '" HEIGHT="1" BORDER="0" ALT="">';
	strHTML += '</TD>';
	}
	}
	
	
	if (bLastLink || nColIndex == Navigation.horizontalWrap - 1) 
	{
	strHTML += '</TR>';
	strHTML += '</TABLE>';
	strHTML += '</TD></TR>';	
	}
	
	
	if(nColIndex == Navigation.horizontalWrap - 1 && !bLastLink)
	{
	strHTML += '<TR><TD>';
	strHTML += '<IMG SRC="' + strTpGif + '" HEIGHT="' + Navigation.verticalSpacing + '" WIDTH="1" BORDER="0" ALT="">';
	strHTML += '</TD></TR>';
	}
	}
	return strHTML;
}


function renderHTML(Navigation)
{
	if (navigator.userAgent.indexOf('Mozilla/3') != -1)
	{
	return 'Sorry, since you are using an old version of Netscape, you may not be able to access all the pages in this Web site.';	
	}

	if (Navigation.style == 'text')
	{
	return renderTextHTML(Navigation, '/tp.gif');
	}
	else
	{
	return renderGraphicalHTML(Navigation, '/tp.gif');
	}
}


function fixLinkValue(Link)
{
	if(Link.type!='existing')
	{
	return Link.linkValue;
	}
	else
	{
	return baseHref + strRelativePathToRoot + Link.linkValue;	
	}
}

function isCurrentPage(Link) 
{
	if(Link.type!='existing')
	{
	return false;
	}	
	var strLinkValue = Link.linkValue.toLowerCase();
	return (strRelativePagePath == strLinkValue);	
} 

function getOnClick(strLinkValue, strLinkTarget) 
{ 
	var strOnClick;
	if(strLinkTarget == '_blank')
	{
	strOnClick = 'onClick="window.open(\'' + strLinkValue + '\');"';
	}
	else
	{ 
	strOnClick = 'onClick="document.location = \'' + strLinkValue + '\';"';
	}
	return strOnClick;
} 

function netscapeDivCheck() 
{ 
	var strAppName = navigator.appName;
	var appVer = parseFloat(navigator.appVersion);
	if ( (strAppName == 'Netscape') &&
	(appVer >= 4.0 && appVer < 5) ) { document.write('</DIV>');
	}
}

function textMouseOn(textObj, newColor, mouseoverBold, mouseoverUnderline, mouseoverItalic)
{ 
	if(newColor)
	{
	textObj.style.color=newColor; 
	}
	if(mouseoverBold=='true')
	{
	textObj.style.fontWeight='bold';
	}
	else
	{
	textObj.style.fontWeight='normal';
	}
	if(mouseoverUnderline=='true')
	{
	textObj.style.textDecoration='underline';
	}
	else
	{
	textObj.style.textDecoration='none';
	}
	if(mouseoverItalic=='true')
	{
	textObj.style.fontStyle='italic';
	}
	else
	{
	textObj.style.fontStyle='normal';
	}
} 

function textMouseOff(textObj, newColor, bold, underline, italic)
{ 
	textObj.style.color=newColor; 
	if(bold=='true')
	{
	textObj.style.fontWeight='bold';
	}
	else
	{
	textObj.style.fontWeight='normal';
	}
	if(underline=='true')
	{
	textObj.style.textDecoration='underline';
	}
	else
	{
	textObj.style.textDecoration='none';
	}
	if(italic=='true')
	{
	textObj.style.fontStyle='italic';
	}
	else
	{
	textObj.style.fontStyle='normal';
	}
}



	document.write(renderHTML(nav_Ocean_1));

