var nav_QuickSiteMain = new Object();

nav_QuickSiteMain.underline="false";
nav_QuickSiteMain.justification="left";
nav_QuickSiteMain.accentStyle="Arrow";
nav_QuickSiteMain.selectedUnderline="false";
nav_QuickSiteMain.textFont="Microsoft Sans Serif";
nav_QuickSiteMain.funButton="Arts_and_Crafts";
nav_QuickSiteMain.mouseoverBgcolor="";
nav_QuickSiteMain.darkButton="Basic_Black";
nav_QuickSiteMain.buttonCategory="basic";
nav_QuickSiteMain.mouseoverBold="true";
nav_QuickSiteMain.italic="false";
nav_QuickSiteMain.importedImageMouseOver="";
nav_QuickSiteMain.textSize="10";
nav_QuickSiteMain.tabCategory="basic";
nav_QuickSiteMain.style="text";
nav_QuickSiteMain.hasLinks="true";
nav_QuickSiteMain.accentColor="Black";
nav_QuickSiteMain.selectedBgcolor="";
nav_QuickSiteMain.graphicSelected="true";
nav_QuickSiteMain.selectedTextcolor="#BEC4FD";
nav_QuickSiteMain.basicButton="Gray";
nav_QuickSiteMain.accentType="lines";
nav_QuickSiteMain.graphicMouseover="true";
nav_QuickSiteMain.horizontalSpacing="10";
nav_QuickSiteMain.lineColor="#000000";
nav_QuickSiteMain.selectedEffect="true";
nav_QuickSiteMain.lineWidth="2";
nav_QuickSiteMain.modernButton="Basic_Black";
nav_QuickSiteMain.border="#406AB0";
nav_QuickSiteMain.type="Navigation";
nav_QuickSiteMain.simpleButton="Autumn_Leaves";
nav_QuickSiteMain.sophisticatedButton="Antique";
nav_QuickSiteMain.bold="true";
nav_QuickSiteMain.localPreview="true";
nav_QuickSiteMain.verticalSpacing="10";
nav_QuickSiteMain.basicTab="White";
nav_QuickSiteMain.selectedBold="true";
nav_QuickSiteMain.mouseoverEffect="true";
nav_QuickSiteMain.mouseoverTextcolor="#FCA705";
nav_QuickSiteMain.navID="nav_QuickSiteMain";
nav_QuickSiteMain.mouseoverUnderline="false";
nav_QuickSiteMain.imageHeight="31";
nav_QuickSiteMain.texturedButton="Brick";
nav_QuickSiteMain.selectedItalic="false";
nav_QuickSiteMain.brightButton="Chicky";
nav_QuickSiteMain.importedImageSelected="";
nav_QuickSiteMain.dirty="false";
nav_QuickSiteMain.squareTab="Camel";
nav_QuickSiteMain.horizontalWrap="4";
nav_QuickSiteMain.mouseoverItalic="false";
nav_QuickSiteMain.imageWidth="114";
nav_QuickSiteMain.numLinks="13";
nav_QuickSiteMain.background="#FFFFFF";
nav_QuickSiteMain.importedImage="";
nav_QuickSiteMain.version="5";
nav_QuickSiteMain.shinyButton="Shiny_Aqua";
nav_QuickSiteMain.orientation="horizontal";
nav_QuickSiteMain.holidayButton="Christmas_Ornaments";
nav_QuickSiteMain.textColor="#000000";
nav_QuickSiteMain.width="620";
nav_QuickSiteMain.height="108";
nav_QuickSiteMain.HTMLSnippet="<!-- BEGIN Developer Shed\u2122 Network\'s AdSense Preview -->\n<!-- Copyright 2001-2011 Developer Shed\u2122, LLC All Rights Reserved -->\n\n\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n  <tr>\n   <td valign=\"top\">\n      <table width=\"300\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n        <tr>\n          <td width=\"16\" height=\"16\"><img src=\"http:\/\/images.devshed.com\/sc\/seotools\/image_01.gif\" width=\"16\" height=\"16\"><\/td>\n          <td width=\"130\" height=\"16\" background=\"http:\/\/images.devshed.com\/sc\/seotools\/bckg06.gif\"><img src=\"http:\/\/images.devshed.com\/sc\/seotools\/spacer.gif\" width=\"130\" height=\"16\"><\/td>\n          <td width=\"118\" height=\"16\" background=\"http:\/\/images.devshed.com\/sc\/seotools\/bckg06.gif\"><img src=\"http:\/\/images.devshed.com\/sc\/seotools\/spacer.gif\" width=\"150\" height=\"16\"><\/td>\n          <td width=\"40\" background=\"http:\/\/images.devshed.com\/sc\/seotools\/bckg06.gif\"><img src=\"http:\/\/images.devshed.com\/sc\/seotools\/spacer.gif\" width=\"40\" height=\"16\"><\/td>\n          <td width=\"18\" height=\"16\"><img src=\"http:\/\/images.devshed.com\/sc\/seotools\/image_02.gif\" width=\"16\" height=\"16\"><\/td>\n        <\/tr>\n        <tr>\n          <td height=\"30\" background=\"http:\/\/images.devshed.com\/sc\/seotools\/bckg07.gif\"> <\/td>\n          <td class=toolbox width=\"*\" bgcolor=\"#CCCCCC\" colspan=2 valign=top>\n          <B><font size=+1>AdSense Preview Tool<\/font><\/b> \u00A9\u00A0<a href=\"http:\/\/www.seochat.com\">SEO\u00A0Chat\u2122<\/a>\n          <font size=\"2\" face=\"Courier New, Courier, mono\">\n\t\t\t    <form action=\"http:\/\/www.seochat.com\/\" method=\"GET\" name=\"form\"><input type=hidden name=go value=1><input   tabindex=1  type=\"hidden\" name=\"option\" value=\"com_seotools\"><input   tabindex=2  type=\"hidden\" name=\"tool\" value=\"34\"><p><b>URL<\/b><br>Enter URL<br><input type=text  tabindex=3   name=\"url\" size=32 value=\"\"><p><b>Ad Format<\/b><br>Select Google AdSense Ad Formats.<br><select  tabindex=4   name=\"adformat\" id=\"adformat\" size=\"1\"><option value=\"0\" selected=\"selected\">Banner 468x60<\/option><option value=\"1\" >Half Banner 234x60<\/option><option value=\"2\" >Leaderboard 728x90<\/option><option value=\"3\" >Skyscraper 120x600<\/option><option value=\"4\" >Wide Skyscraper 160x600<\/option><option value=\"5\" >Vertical Banner 120x240<\/option><option value=\"6\" >Button 125x125<\/option><option value=\"7\" >Medium Rectangle 300x250<\/option><option value=\"8\" >Squre 250x250<\/option><option value=\"9\" >Large Rectangle 336x280<\/option><option value=\"10\" >Small Rectangle 180x150<\/option><\/select><p><b>Enter Captcha To Continue<\/b><br>To prevent spamming, please enter in the numbers and letters in the box below<br><input type=text  tabindex=5   name=\"imageverify\" size=32 value=\"\"><input   tabindex=6  type=\"hidden\" name=\"timehsh\" value=\"467a453557446b3d\"><p><img\tsrc=http:\/\/www.seochat.com\/includes\/showcaptcha.php?bd=467a453557446b3d border=1><p><input  tabindex=7   type=submit name=\"toolsubmit\" id=\"toolsubmit\" value=\"Submit\"><p><a rel=\"nofollow\" href=\"http:\/\/www.developershed.com\/esupport\/\"><font color=\"#0000FF\"><b>Report Problem with Tool.<\/b><\/font><\/a><\/form>\n          <\/font>\n          <\/td>\n          <td width=\"40\" valign=\"top\" bgcolor=\"#CCCCCC\"><\/td>\n          <td width=\"18\" background=\"http:\/\/images.devshed.com\/sc\/seotools\/bckg03.gif\"> <\/td>\n        <\/tr>\n        <tr>\n          <td width=\"16\"><img src=\"http:\/\/images.devshed.com\/sc\/seotools\/image_03.gif\" width=\"16\" height=\"16\"><\/td>\n          <td colspan=\"3\" width=\"*\" height=\"16\" background=\"http:\/\/images.devshed.com\/sc\/seotools\/bckg04.gif\"><img src=\"http:\/\/images.devshed.com\/sc\/seotools\/spacer.gif\" width=\"16\" height=\"16\"><\/td>\n          <td width=\"18\"><img src=\"http:\/\/images.devshed.com\/sc\/seotools\/image_04.gif\" width=\"16\" height=\"16\"><\/td>\n        <\/tr>\n      <\/table>\n    <\/td>\n  <\/tr>\n<\/table>\n\n<!-- END Developer Shed\u2122 Network\'s AdSense Preview -->\n";

nav_QuickSiteMain.navName = "QuickSiteMain";
nav_QuickSiteMain.imagePath = "null";
nav_QuickSiteMain.selectedImagePath = "/~media/elements/LayoutClipart/";
nav_QuickSiteMain.mouseOverImagePath = "/~media/elements/LayoutClipart/";
nav_QuickSiteMain.imageWidth = "16";
nav_QuickSiteMain.imageHeight = "16";
nav_QuickSiteMain.fontClass = "size10 MicrosoftSansSerif10";
nav_QuickSiteMain.fontFace = "'Microsoft Sans Serif', sans-serif";


var baseHref = '';
// this will only work if getElementsByTagName works
if (document.getElementsByTagName)
{
    // this will only work if we can find a base tag
    var base = document.getElementsByTagName('base');
    // Verify that the base object exists
    if (base && base.length > 0)
    {
        // if you don't specify a base href, href comes back as undefined
        if (base[0].href != undefined)
        {
            // get the base href
            baseHref = base[0].href;
            // add a trailing slash if base href doesn't already have one
            if (baseHref != '' && baseHref.charAt(baseHref.length - 1) != '/')
            {
                baseHref += '/';
            }
        }
    }
}


nav_QuickSiteMain.links=new Array(13);
var nav_QuickSiteMain_Link1 = new Object();
nav_QuickSiteMain_Link1.type = "url";
nav_QuickSiteMain_Link1.displayName = "Home";
nav_QuickSiteMain_Link1.linkWindow = "_self";
nav_QuickSiteMain_Link1.linkValue = "http:\/\/www.scubabreather.com\/";
nav_QuickSiteMain_Link1.linkIndex = "1";
nav_QuickSiteMain.links[0] = nav_QuickSiteMain_Link1;
var nav_QuickSiteMain_Link2 = new Object();
nav_QuickSiteMain_Link2.type = "existing";
nav_QuickSiteMain_Link2.displayName = "Dive unit prices";
nav_QuickSiteMain_Link2.linkWindow = "_self";
nav_QuickSiteMain_Link2.linkValue = "Dive-units.html";
nav_QuickSiteMain_Link2.linkIndex = "2";
nav_QuickSiteMain.links[1] = nav_QuickSiteMain_Link2;
var nav_QuickSiteMain_Link3 = new Object();
nav_QuickSiteMain_Link3.type = "existing";
nav_QuickSiteMain_Link3.displayName = "Purchase the SCUBABreather";
nav_QuickSiteMain_Link3.linkWindow = "_self";
nav_QuickSiteMain_Link3.linkValue = "Purchase-the-SCUBA-Breather.html";
nav_QuickSiteMain_Link3.linkIndex = "3";
nav_QuickSiteMain.links[2] = nav_QuickSiteMain_Link3;
var nav_QuickSiteMain_Link4 = new Object();
nav_QuickSiteMain_Link4.type = "existing";
nav_QuickSiteMain_Link4.displayName = "SCUBA Breather warranty";
nav_QuickSiteMain_Link4.linkWindow = "_self";
nav_QuickSiteMain_Link4.linkValue = "scubabreatherwarranty.html";
nav_QuickSiteMain_Link4.linkIndex = "4";
nav_QuickSiteMain.links[3] = nav_QuickSiteMain_Link4;
var nav_QuickSiteMain_Link5 = new Object();
nav_QuickSiteMain_Link5.type = "existing";
nav_QuickSiteMain_Link5.displayName = "General Operation";
nav_QuickSiteMain_Link5.linkWindow = "_self";
nav_QuickSiteMain_Link5.linkValue = "General-Operation.html";
nav_QuickSiteMain_Link5.linkIndex = "5";
nav_QuickSiteMain.links[4] = nav_QuickSiteMain_Link5;
var nav_QuickSiteMain_Link6 = new Object();
nav_QuickSiteMain_Link6.type = "existing";
nav_QuickSiteMain_Link6.displayName = "The equipment";
nav_QuickSiteMain_Link6.linkWindow = "_self";
nav_QuickSiteMain_Link6.linkValue = "equipment.html";
nav_QuickSiteMain_Link6.linkIndex = "6";
nav_QuickSiteMain.links[5] = nav_QuickSiteMain_Link6;
var nav_QuickSiteMain_Link7 = new Object();
nav_QuickSiteMain_Link7.type = "existing";
nav_QuickSiteMain_Link7.displayName = "Ready for your first dive";
nav_QuickSiteMain_Link7.linkWindow = "_self";
nav_QuickSiteMain_Link7.linkValue = "Readyforyourfirstdive.html";
nav_QuickSiteMain_Link7.linkIndex = "7";
nav_QuickSiteMain.links[6] = nav_QuickSiteMain_Link7;
var nav_QuickSiteMain_Link8 = new Object();
nav_QuickSiteMain_Link8.type = "existing";
nav_QuickSiteMain_Link8.displayName = "Frequently asked questions";
nav_QuickSiteMain_Link8.linkWindow = "_self";
nav_QuickSiteMain_Link8.linkValue = "Frequently-asked-questions.html";
nav_QuickSiteMain_Link8.linkIndex = "8";
nav_QuickSiteMain.links[7] = nav_QuickSiteMain_Link8;
var nav_QuickSiteMain_Link9 = new Object();
nav_QuickSiteMain_Link9.type = "existing";
nav_QuickSiteMain_Link9.displayName = "pool maintenance business";
nav_QuickSiteMain_Link9.linkWindow = "_self";
nav_QuickSiteMain_Link9.linkValue = "poolmaintenance.html";
nav_QuickSiteMain_Link9.linkIndex = "9";
nav_QuickSiteMain.links[8] = nav_QuickSiteMain_Link9;
var nav_QuickSiteMain_Link10 = new Object();
nav_QuickSiteMain_Link10.type = "existing";
nav_QuickSiteMain_Link10.displayName = "drawings";
nav_QuickSiteMain_Link10.linkWindow = "_self";
nav_QuickSiteMain_Link10.linkValue = "drawings.html";
nav_QuickSiteMain_Link10.linkIndex = "10";
nav_QuickSiteMain.links[9] = nav_QuickSiteMain_Link10;
var nav_QuickSiteMain_Link11 = new Object();
nav_QuickSiteMain_Link11.type = "existing";
nav_QuickSiteMain_Link11.displayName = "Uses for the scubabreather";
nav_QuickSiteMain_Link11.linkWindow = "_self";
nav_QuickSiteMain_Link11.linkValue = "Uses.html";
nav_QuickSiteMain_Link11.linkIndex = "11";
nav_QuickSiteMain.links[10] = nav_QuickSiteMain_Link11;
var nav_QuickSiteMain_Link12 = new Object();
nav_QuickSiteMain_Link12.type = "existing";
nav_QuickSiteMain_Link12.displayName = "Since the dawn of man";
nav_QuickSiteMain_Link12.linkWindow = "_self";
nav_QuickSiteMain_Link12.linkValue = "Sincethedawnofman.html";
nav_QuickSiteMain_Link12.linkIndex = "12";
nav_QuickSiteMain.links[11] = nav_QuickSiteMain_Link12;
var nav_QuickSiteMain_Link13 = new Object();
nav_QuickSiteMain_Link13.type = "existing";
nav_QuickSiteMain_Link13.displayName = "Scuba Breather Blog";
nav_QuickSiteMain_Link13.linkWindow = "_self";
nav_QuickSiteMain_Link13.linkValue = "Scuba-Breather-Blog.html";
nav_QuickSiteMain_Link13.linkIndex = "13";
nav_QuickSiteMain.links[12] = nav_QuickSiteMain_Link13;
function backgroundMouseOn(tdElement, newColor)
{
	if(tdElement != null) {
		tdElement.oldBGColor = tdElement.style.backgroundColor;
		tdElement.style.backgroundColor = newColor;
	}
}
function backgroundMouseOff(tdElement)
{
	if(tdElement != null) {
		tdElement.style.backgroundColor = tdElement.oldBGColor;
	}
} 

function doMouseChange(Navigation,tdElement,linkIndex,bisMouseOver) {
	if (Navigation.mouseoverEffect != 'true') {
		return;
	}	
	var link = Navigation.links[linkIndex-1];
	var bIsCurrentPage = isCurrentPage(link);
	var bShowMouseoverBg = !(bIsCurrentPage
			&& 'true' == Navigation.selectedEffect && Navigation.selectedBgcolor);
	var fontElement = getLinkFontElement(tdElement);
	if(fontElement != null) {
		doFontChange(Navigation,fontElement,bIsCurrentPage,bisMouseOver);
	}
	
	if (Navigation.mouseoverBgcolor && bShowMouseoverBg) {
		if(bisMouseOver) {
			backgroundMouseOn(tdElement,Navigation.mouseoverBgcolor);
		} else {
			backgroundMouseOff(tdElement);
		}
	}
}
function addStyle(Navigation, Link, tdElement,vNavTrElement) {
	if (tdElement == null) {
		return;
	}
	var strFontColor = Navigation.textColor;
	if ('true' == Navigation.selectedEffect) {
		if (Navigation.selectedTextcolor) {
			strFontColor = Navigation.selectedTextcolor;
		}
		if (Navigation.selectedBgcolor) {
			if (Navigation.orientation == 'horizontal') {
				tdElement.style.backgroundColor = Navigation.selectedBgcolor;
			} else {
				if (vNavTrElement != null) {
					vNavTrElement.style.backgroundColor = Navigation.selectedBgcolor;
				}
			}
		}
	}
	var fontElement = getLinkFontElement(tdElement);
	if (fontElement != null) {
		fontElement.style.color = strFontColor;
	}
	tdElement.style.color = strFontColor;
	if ('true' == Navigation.selectedEffect) {
		if ('true' == Navigation.selectedBold) {
			tdElement.style.fontWeight = "bold";
		}
		if ('true' == Navigation.selectedItalic) {
			tdElement.style.fontStyle = "italic";
		}
		if ('true' == Navigation.selectedUnderline) {
			tdElement.style.textDecoration = "underline";
		}
	}
}

// Combined escape html and javascript
function escapeHtmlInlineScript(s, escapeSingleQuotes, escapeDoubleQuotes){
	return htmlEncode(escapeScript(s, escapeSingleQuotes, escapeDoubleQuotes));
}

function htmlEncode(s){
	if (typeof(s) != "string") return "";
	
	var result = "";
	for (var i = 0; i < s.length; i++) {
		var ch = s.charAt(i);
		switch (ch) {
		case '<':
			result += "&lt;";
			break;
		case '>':
			result += "&gt;";
			break;
		case '&':
			result += "&amp;";
			break;
		case '"':
			result += "&quot;";
			break;
		case "'":
			result += "&#39;";
			break;
		default:
			result += ch;
		}
	}
	return result;
}

/* escapes slashes and quotes. the default is to escape quotes,
 * but this can be turned off.
 * this function is used for javascript and also for escaping urls
 * within background-image css.	 
 */
function escapeScript(s, escapeSingleQuotes, escapeDoubleQuotes){
	if (typeof(s) != "string") return "";
	
	var result = "";
	for (var i = 0; i < s.length; i++) {
		var ch = s.charAt(i);
		switch (ch) {
		case '\'':
			if (escapeSingleQuotes == null || escapeSingleQuotes)
				result += "\\\'";
			break;
		case '\"':
			if (escapeDoubleQuotes == null || escapeDoubleQuotes)
				result += "\\\"";
			break;
		case '\\':
			result += "\\\\";
			break;
		default:
			result += ch;
		}
	}
	return result;
}

//
// This .js file includes utility functions used by both graphical and text navs
// in their rendering.  User pages including a nav element will import this file, along
// with TextNavigation.js and GraphicNavigation.js.  The functions within will
// be called by the [navname].js file generated at publish time.

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 toggleOnMouseChange(fontElement,newColor, bold, underline, italic)
{
	if(fontElement == null) {
		return;
	}
	if(newColor)
	{
		fontElement.style.color=newColor;
	}
	fontElement.style.fontWeight = (bold=='true' ? 'bold' : 'normal');
	fontElement.style.textDecoration = (underline=='true' ? 'underline' : 'none');
	fontElement.style.fontStyle = (italic=='true' ? 'italic' : 'normal');

}

function doFontChange(Navigation,fontElement,bIsCurrentPage,bisMouseOver) {
	if(fontElement == null) {
		return;
	}
	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;
	}
	
	if(bisMouseOver) {
		toggleOnMouseChange(fontElement,textColor,bold,underline,italic);
	} else {
		toggleOnMouseChange(fontElement,baseTextColor,baseBold,baseUnderline,baseItalic);
	}
	

}

function addMouseAndStyleSupportQuickSiteMain(Navigation,navTbId) {
	var startNode;

	if(typeof(nav_element_id) != 'undefined' && document.getElementById(nav_element_id) != null) {
		startNode = document.getElementById(nav_element_id);
			
	} else if(navTbId != null) {
		startNode = document.getElementById(navTbId);
			
	}
	
	if(startNode != null) {
	  searchForCurrentPageTd(Navigation,startNode);
	}
	

}

function searchForCurrentPageTd(Navigation,startNode) {
	
	if(startNode.childNodes != null) {
		for(var i=0;i<startNode.childNodes.length;i++){
			if(addStyleForCurrentPageTd(Navigation,startNode.childNodes[i])){
			   return;	
			} else {
			   searchForCurrentPageTd(Navigation,startNode.childNodes[i]);
			}
		}
	}

}

function addStyleForCurrentPageTd(Navigation,currentNode) {
	if(Navigation.orientation == 'horizontal') {
		if(currentNode.tagName == 'TD' && currentNode.id != '' && currentNode.id.indexOf(Navigation.navName+navTDLinkPart) != -1){
			var currentTDIdPrefix = Navigation.navName+navTDLinkPart;
			var linkId = currentNode.id.substring(currentTDIdPrefix.length,currentNode.id.length);
			if(isCurrentPage(Navigation.links[linkId-1]) == true) {
				addStyle(Navigation, Navigation.links[linkId-1],currentNode);
				return true;
			}
		}
	} else {
		if(currentNode.tagName == 'TR' && currentNode.id != '' && currentNode.id.indexOf(navTRLinkPrefix) != -1){	
			var currentTRIdPrefix = navTRLinkPrefix+Navigation.navName;
			var linkId = currentNode.id.substring(currentTRIdPrefix.length,currentNode.id.length);
			if(isCurrentPage(Navigation.links[linkId-1]) == true && currentNode.childNodes != null) {
				var currentPageTd;
				for(var i=0;currentNode.childNodes.length;i++) {
					if(typeof(currentNode.childNodes[i].tagName) != 'undefined' && currentNode.childNodes[i].tagName == 'TD' && currentNode.childNodes[i].id.indexOf(Navigation.navName+navTDLinkPart) != -1) {
						currentPageTd = currentNode.childNodes[i];
						addStyle(Navigation, Navigation.links[linkId - 1],currentPageTd,currentNode);
						return true;
					}
				}
			}
		}
	}
	return false;
}

function getChildElementFromTree(startNode,nodesToTraverse) {
	var currentChildNode = startNode;
	
	for(var n= 0;n<nodesToTraverse.length;n++) {
		currentChildNode = getMatchingChildByTag(currentChildNode.childNodes,nodesToTraverse[n]);
	}
	
	return currentChildNode;
}


function getMatchingChildByTag(childNodes,tagName) {
	var child;
	for(var i=0;childNodes.length;i++) {
		if(childNodes[i].tagName == tagName) {
			child = childNodes[i];
			break;
		}
	}
	return child;
}
function getLinkFontElement(tdElement){
	var fontElement;
	var aElement = getChildElementFromTree(tdElement,['A']);
	for(var i=0;i < aElement.childNodes.length;i++) {
		if(aElement.childNodes[i].tagName == 'DIV') {
		 	fontElement = getChildElementFromTree(aElement.childNodes[i],['FONT']);
		 	break;
		} else if(aElement.childNodes[i].tagName == 'FONT'){
		 	fontElement = 	aElement.childNodes[i];
		 	break;
		}
	
	}
	return fontElement;
}



	if(typeof(navTRLinkPrefix) == 'undefined') {
		navTRLinkPrefix = 'vNavTR_Link_';
	}
	if(typeof(navTDLinkPart) == 'undefined') {
		navTDLinkPart = '_Link';
	}
	if(document.getElementById('nav_version') == null) {
	if (typeof(navTBSuffix) == 'undefined') {
	navTBSuffix = 0;
	} else {navTBSuffix++;}
		document.write('<TABLE ID="ntb'+navTBSuffix+'"  CELLSPACING=\"0\" BORDER=\"0\" CELLPADDING=\"0\"><TR HEIGHT=\"2\" BGCOLOR=\"#406AB0\"><TD HEIGHT=\"2\" COLSPAN=\"3\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" HEIGHT=\"2\" ALT=\"\"><\/TD><\/TR><TR><TD WIDTH=\"2\" BGCOLOR=\"#406AB0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" HEIGHT=\"2\" ALT=\"\"><\/TD><TD><TABLE ID=\"ntb\" CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\"  BGCOLOR=\"#FFFFFF\"><TR ALIGN=\"CENTER\" VALIGN=\"MIDDLE\"><TD><TABLE CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\"><TR><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link1\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'1\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'1\',false);\"><A HREF=\"http:\/\/www.scubabreather.com\/\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Home\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f1\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">Home<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><TD WIDTH=\"2\" BGCOLOR=\"#000000\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"2\"><\/TD><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link2\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'2\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'2\',false);\"><A HREF=\"\/Dive-units.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Dive unit prices\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f2\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">Dive&nbsp;unit&nbsp;prices<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><TD WIDTH=\"2\" BGCOLOR=\"#000000\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"2\"><\/TD><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link3\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'3\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'3\',false);\"><A HREF=\"\/Purchase-the-SCUBA-Breather.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Purchase the SCUBABreather\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f3\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">Purchase&nbsp;the&nbsp;SCUBABreather<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><TD WIDTH=\"2\" BGCOLOR=\"#000000\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"2\"><\/TD><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link4\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'4\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'4\',false);\"><A HREF=\"\/scubabreatherwarranty.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"SCUBA Breather warranty\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f4\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">SCUBA&nbsp;Breather&nbsp;warranty<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><\/TR><\/TABLE><\/TD><\/TR><TR ALIGN=\"CENTER\" VALIGN=\"MIDDLE\"><TD><TABLE CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\"><TR><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link5\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'5\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'5\',false);\"><A HREF=\"\/General-Operation.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"General Operation\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f5\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">General&nbsp;Operation<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><TD WIDTH=\"2\" BGCOLOR=\"#000000\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"2\"><\/TD><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link6\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'6\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'6\',false);\"><A HREF=\"\/equipment.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"The equipment\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f6\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">The&nbsp;equipment<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><TD WIDTH=\"2\" BGCOLOR=\"#000000\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"2\"><\/TD><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link7\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'7\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'7\',false);\"><A HREF=\"\/Readyforyourfirstdive.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Ready for your first dive\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f7\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">Ready&nbsp;for&nbsp;your&nbsp;first&nbsp;dive<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><TD WIDTH=\"2\" BGCOLOR=\"#000000\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"2\"><\/TD><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link8\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'8\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'8\',false);\"><A HREF=\"\/Frequently-asked-questions.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Frequently asked questions\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f8\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">Frequently&nbsp;asked&nbsp;questions<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><\/TR><\/TABLE><\/TD><\/TR><TR ALIGN=\"CENTER\" VALIGN=\"MIDDLE\"><TD><TABLE CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\"><TR><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link9\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'9\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'9\',false);\"><A HREF=\"\/poolmaintenance.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"pool maintenance business\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f9\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">pool&nbsp;maintenance&nbsp;business<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><TD WIDTH=\"2\" BGCOLOR=\"#000000\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"2\"><\/TD><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link10\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'10\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'10\',false);\"><A HREF=\"\/drawings.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"drawings\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f10\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">drawings<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><TD WIDTH=\"2\" BGCOLOR=\"#000000\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"2\"><\/TD><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link11\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'11\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'11\',false);\"><A HREF=\"\/Uses.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Uses for the scubabreather\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f11\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">Uses&nbsp;for&nbsp;the&nbsp;scubabreather<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><TD WIDTH=\"2\" BGCOLOR=\"#000000\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"2\"><\/TD><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link12\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'12\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'12\',false);\"><A HREF=\"\/Sincethedawnofman.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Since the dawn of man\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f12\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">Since&nbsp;the&nbsp;dawn&nbsp;of&nbsp;man<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><\/TR><\/TABLE><\/TD><\/TR><TR ALIGN=\"CENTER\" VALIGN=\"MIDDLE\"><TD><TABLE CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\"><TR><TD ALIGN=\"center\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"QuickSiteMain_Link13\" style=\"cursor: pointer;cursor: hand;color:#000000;font-weight: bold;\" onmouseover=\"doMouseChange(nav_QuickSiteMain,this,\'13\',true);\" onmouseout=\"doMouseChange(nav_QuickSiteMain,this,\'13\',false);\"><A HREF=\"\/Scuba-Breather-Blog.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Scuba Breather Blog\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><FONT ID=\"QuickSiteMain_f13\" FACE=\"\'Microsoft Sans Serif\', sans-serif\" CLASS=\"size10 MicrosoftSansSerif10\" STYLE=\"color:#000000\">Scuba&nbsp;Breather&nbsp;Blog<\/FONT><IMG SRC=\"\/tp.gif\" WIDTH=\"5.0\" HEIGHT=\"1\" BORDER=\"0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><\/TR><\/TABLE><\/TD><\/TR><\/TABLE><\/TD><TD WIDTH=\"2\" BGCOLOR=\"#406AB0\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" HEIGHT=\"2\" ALT=\"\"><\/TD><\/TR><TR HEIGHT=\"2\" BGCOLOR=\"#406AB0\"><TD HEIGHT=\"2\" COLSPAN=\"3\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" HEIGHT=\"2\" ALT=\"\"><\/TD><\/TR><\/TABLE><script type="text/javascript">addMouseAndStyleSupportQuickSiteMain(nav_QuickSiteMain,"ntb'+navTBSuffix+'");'+'</scri'+'pt>');
	}


