var nav_NavigationMenuStorage = new Object();

nav_NavigationMenuStorage.tabCategory="basic";
nav_NavigationMenuStorage.holidayButton="Christmas_Ornaments";
nav_NavigationMenuStorage.mouseoverEffect="true";
nav_NavigationMenuStorage.modernButton="Basic_Black";
nav_NavigationMenuStorage.mouseoverBold="true";
nav_NavigationMenuStorage.textColor="#9E0704";
nav_NavigationMenuStorage.mouseoverBgcolor="";
nav_NavigationMenuStorage.accentType="none";
nav_NavigationMenuStorage.hasLinks="true";
nav_NavigationMenuStorage.bold="true";
nav_NavigationMenuStorage.mouseoverTextcolor="#295662";
nav_NavigationMenuStorage.lineWidth="2";
nav_NavigationMenuStorage.type="Navigation";
nav_NavigationMenuStorage.accentColor="Black";
nav_NavigationMenuStorage.mouseoverUnderline="false";
nav_NavigationMenuStorage.selectedEffect="true";
nav_NavigationMenuStorage.basicTab="White";
nav_NavigationMenuStorage.simpleButton="Autumn_Leaves";
nav_NavigationMenuStorage.justification="center";
nav_NavigationMenuStorage.localPreview="false";
nav_NavigationMenuStorage.selectedUnderline="false";
nav_NavigationMenuStorage.orientation="vertical";
nav_NavigationMenuStorage.lineColor="#000000";
nav_NavigationMenuStorage.imageHeight="31";
nav_NavigationMenuStorage.buttonCategory="basic";
nav_NavigationMenuStorage.squareTab="Camel";
nav_NavigationMenuStorage.dirty="false";
nav_NavigationMenuStorage.selectedItalic="true";
nav_NavigationMenuStorage.navID="nav_NavigationMenuStorage";
nav_NavigationMenuStorage.background="";
nav_NavigationMenuStorage.importedImageSelected="";
nav_NavigationMenuStorage.texturedButton="Brick";
nav_NavigationMenuStorage.textFont="Arial";
nav_NavigationMenuStorage.imageWidth="114";
nav_NavigationMenuStorage.selectedBold="true";
nav_NavigationMenuStorage.accentStyle="Arrow";
nav_NavigationMenuStorage.numLinks="4";
nav_NavigationMenuStorage.mouseoverItalic="true";
nav_NavigationMenuStorage.underline="false";
nav_NavigationMenuStorage.verticalSpacing="14";
nav_NavigationMenuStorage.horizontalWrap="5";
nav_NavigationMenuStorage.funButton="Arts_and_Crafts";
nav_NavigationMenuStorage.style="buttons";
nav_NavigationMenuStorage.basicButton="Gray";
nav_NavigationMenuStorage.selectedBgcolor="";
nav_NavigationMenuStorage.importedImageMouseOver="";
nav_NavigationMenuStorage.graphicSelected="true";
nav_NavigationMenuStorage.shinyButton="Shiny_Aqua";
nav_NavigationMenuStorage.border="";
nav_NavigationMenuStorage.version="5";
nav_NavigationMenuStorage.sophisticatedButton="Antique";
nav_NavigationMenuStorage.selectedTextcolor="#000000";
nav_NavigationMenuStorage.horizontalSpacing="16";
nav_NavigationMenuStorage.graphicMouseover="true";
nav_NavigationMenuStorage.importedImage="";
nav_NavigationMenuStorage.italic="true";
nav_NavigationMenuStorage.brightButton="Chicky";
nav_NavigationMenuStorage.darkButton="Basic_Black";
nav_NavigationMenuStorage.textSize="14";

nav_NavigationMenuStorage.navName = "NavigationMenuStorage";
nav_NavigationMenuStorage.imagePath = "/~media/elements/LayoutClipart/../LayoutClipart/Buttons/Basic_Button_Gray.gif";
nav_NavigationMenuStorage.selectedImagePath = "/~media/elements/LayoutClipart/../LayoutClipart/Buttons/Basic_Button_White.gif";
nav_NavigationMenuStorage.mouseOverImagePath = "/~media/elements/LayoutClipart/../LayoutClipart/Buttons/Basic_Button_White.gif";
nav_NavigationMenuStorage.imageWidth = "114";
nav_NavigationMenuStorage.imageHeight = "31";
nav_NavigationMenuStorage.fontClass = "size14 Arial14";
nav_NavigationMenuStorage.fontFace = "Arial, Helvetica, 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_NavigationMenuStorage.links=new Array(4);
var nav_NavigationMenuStorage_Link1 = new Object();
nav_NavigationMenuStorage_Link1.type = "existing";
nav_NavigationMenuStorage_Link1.displayName = "Home";
nav_NavigationMenuStorage_Link1.linkWindow = "_self";
nav_NavigationMenuStorage_Link1.linkValue = "index.html";
nav_NavigationMenuStorage_Link1.linkIndex = "1";
nav_NavigationMenuStorage.links[0] = nav_NavigationMenuStorage_Link1;
var nav_NavigationMenuStorage_Link2 = new Object();
nav_NavigationMenuStorage_Link2.type = "existing";
nav_NavigationMenuStorage_Link2.displayName = "Self Storage";
nav_NavigationMenuStorage_Link2.linkWindow = "_self";
nav_NavigationMenuStorage_Link2.linkValue = "0Page\/selfstorage.html";
nav_NavigationMenuStorage_Link2.linkIndex = "2";
nav_NavigationMenuStorage.links[1] = nav_NavigationMenuStorage_Link2;
var nav_NavigationMenuStorage_Link3 = new Object();
nav_NavigationMenuStorage_Link3.type = "existing";
nav_NavigationMenuStorage_Link3.displayName = "About Us";
nav_NavigationMenuStorage_Link3.linkWindow = "_self";
nav_NavigationMenuStorage_Link3.linkValue = "about.html";
nav_NavigationMenuStorage_Link3.linkIndex = "3";
nav_NavigationMenuStorage.links[2] = nav_NavigationMenuStorage_Link3;
var nav_NavigationMenuStorage_Link4 = new Object();
nav_NavigationMenuStorage_Link4.type = "existing";
nav_NavigationMenuStorage_Link4.displayName = "Contact Us";
nav_NavigationMenuStorage_Link4.linkWindow = "_self";
nav_NavigationMenuStorage_Link4.linkValue = "0Page\/contact_1.html";
nav_NavigationMenuStorage_Link4.linkIndex = "4";
nav_NavigationMenuStorage.links[3] = nav_NavigationMenuStorage_Link4;
function mouseOn(tdElement, newBackgroundImage)
{
	if(tdElement != null) {
		tdElement.style.backgroundImage = 'url(' + escapeScript(newBackgroundImage) + ')';
	}
}

function mouseOff(tdElement, newBackgroundImage)
{
	if(tdElement != null) {
		tdElement.style.backgroundImage = 'url(' + escapeScript(newBackgroundImage) + ')';
	}
}

function doMouseChange(Navigation,tdElement,linkIndex,bisMouseOver) {
	if (Navigation.mouseoverEffect != 'true') {
		return;
	}
	var link = Navigation.links[linkIndex-1];
	var bIsCurrentPage = isCurrentPage(link);
	if ((Navigation.graphicSelected == 'true' || Navigation.selectedTextcolor)
			&& bIsCurrentPage && 'true' == Navigation.selectedEffect) {
		return;
	}
	
	var fontElement = getLinkFontElement(tdElement);
	
	if(fontElement != null) {
		doFontChange(Navigation,fontElement,bIsCurrentPage,bisMouseOver);
	}
	
	if (Navigation.graphicMouseover == 'true') {
		if (bisMouseOver) {
			mouseOn(tdElement,escapeHtmlInlineScript(Navigation.mouseOverImagePath));
		} else {
			mouseOff(tdElement, escapeHtmlInlineScript(Navigation.imagePath));
		}
	}
}
function addStyle(Navigation, Link,tdElement) {
	if(tdElement == null) {
		return;
	}
	var strImg = Navigation.imagePath;
	var strFontColor = Navigation.textColor;
	if ('true' == Navigation.selectedEffect) {
		if (Navigation.graphicSelected == 'true') {
			strImg = Navigation.selectedImagePath;
		}
		if (Navigation.selectedTextcolor) {
			strFontColor = Navigation.selectedTextcolor;
		}
	}
	var strImgUrl = "url('"+escapeHtmlInlineScript(strImg)+"')";
	tdElement.style.backgroundImage=strImgUrl;
	var fontElement = getLinkFontElement(tdElement);
	if (fontElement != null) {
		fontElement.style.color = strFontColor;
		if ('true' == Navigation.selectedEffect) {
			if ('true' == Navigation.selectedBold) {
				fontElement.style.fontWeight = "bold";
			}
			if ('true' == Navigation.selectedItalic) {
				fontElement.style.fontStyle = "italic";
			}
			if ('true' == Navigation.selectedUnderline) {
				fontElement.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 addMouseAndStyleSupportNavigationMenuStorage(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+'"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><TR id=\"vNavTR_Link_NavigationMenuStorage1\"><TD NOWRAP HEIGHT=\"31\" ALIGN=\"center\" VALIGN=\"MIDDLE\" id=\"NavigationMenuStorage_Link1\" style=\"cursor: pointer;cursor: hand;color:#9E0704;background-image:url(\/~media\/elements\/LayoutClipart\/..\/LayoutClipart\/Buttons\/Basic_Button_Gray.gif);background-repeat:no-repeat;background-position:center;font-weight: bold;font-style: italic;\"  onmouseover=\"doMouseChange(nav_NavigationMenuStorage,this,\'1\',true);\" onmouseout=\"doMouseChange(nav_NavigationMenuStorage,this,\'1\',false);\"><A HREF=\"\/index.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;vertical-align:middle;\" NAME=\"Home\"><DIV  STYLE=\"width:114px;height:31px;cursor: pointer;cursor: hand;\"><FONT ID=\"NavigationMenuStorage_f1\" FACE=\"Arial, Helvetica, sans-serif\" CLASS=\"size14 Arial14\" STYLE=\"vertical-align:middle;color:#9E0704;line-height:31px;\">Home<\/FONT><\/DIV><\/A><\/TD><\/TR><TR><TD><IMG style=\"display: block;\" SRC=\"\/tp.gif\" HEIGHT=\"14\" WIDTH=\"1\" BORDER=\"0\" ALT=\"\"><\/TD><\/TR><TR id=\"vNavTR_Link_NavigationMenuStorage2\"><TD NOWRAP HEIGHT=\"31\" ALIGN=\"center\" VALIGN=\"MIDDLE\" id=\"NavigationMenuStorage_Link2\" style=\"cursor: pointer;cursor: hand;color:#9E0704;background-image:url(\/~media\/elements\/LayoutClipart\/..\/LayoutClipart\/Buttons\/Basic_Button_Gray.gif);background-repeat:no-repeat;background-position:center;font-weight: bold;font-style: italic;\"  onmouseover=\"doMouseChange(nav_NavigationMenuStorage,this,\'2\',true);\" onmouseout=\"doMouseChange(nav_NavigationMenuStorage,this,\'2\',false);\"><A HREF=\"\/0Page\/selfstorage.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;vertical-align:middle;\" NAME=\"Self Storage\"><DIV  STYLE=\"width:114px;height:31px;cursor: pointer;cursor: hand;\"><FONT ID=\"NavigationMenuStorage_f2\" FACE=\"Arial, Helvetica, sans-serif\" CLASS=\"size14 Arial14\" STYLE=\"vertical-align:middle;color:#9E0704;line-height:31px;\">Self&nbsp;Storage<\/FONT><\/DIV><\/A><\/TD><\/TR><TR><TD><IMG style=\"display: block;\" SRC=\"\/tp.gif\" HEIGHT=\"14\" WIDTH=\"1\" BORDER=\"0\" ALT=\"\"><\/TD><\/TR><TR id=\"vNavTR_Link_NavigationMenuStorage3\"><TD NOWRAP HEIGHT=\"31\" ALIGN=\"center\" VALIGN=\"MIDDLE\" id=\"NavigationMenuStorage_Link3\" style=\"cursor: pointer;cursor: hand;color:#9E0704;background-image:url(\/~media\/elements\/LayoutClipart\/..\/LayoutClipart\/Buttons\/Basic_Button_Gray.gif);background-repeat:no-repeat;background-position:center;font-weight: bold;font-style: italic;\"  onmouseover=\"doMouseChange(nav_NavigationMenuStorage,this,\'3\',true);\" onmouseout=\"doMouseChange(nav_NavigationMenuStorage,this,\'3\',false);\"><A HREF=\"\/about.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;vertical-align:middle;\" NAME=\"About Us\"><DIV  STYLE=\"width:114px;height:31px;cursor: pointer;cursor: hand;\"><FONT ID=\"NavigationMenuStorage_f3\" FACE=\"Arial, Helvetica, sans-serif\" CLASS=\"size14 Arial14\" STYLE=\"vertical-align:middle;color:#9E0704;line-height:31px;\">About&nbsp;Us<\/FONT><\/DIV><\/A><\/TD><\/TR><TR><TD><IMG style=\"display: block;\" SRC=\"\/tp.gif\" HEIGHT=\"14\" WIDTH=\"1\" BORDER=\"0\" ALT=\"\"><\/TD><\/TR><TR id=\"vNavTR_Link_NavigationMenuStorage4\"><TD NOWRAP HEIGHT=\"31\" ALIGN=\"center\" VALIGN=\"MIDDLE\" id=\"NavigationMenuStorage_Link4\" style=\"cursor: pointer;cursor: hand;color:#9E0704;background-image:url(\/~media\/elements\/LayoutClipart\/..\/LayoutClipart\/Buttons\/Basic_Button_Gray.gif);background-repeat:no-repeat;background-position:center;font-weight: bold;font-style: italic;\"  onmouseover=\"doMouseChange(nav_NavigationMenuStorage,this,\'4\',true);\" onmouseout=\"doMouseChange(nav_NavigationMenuStorage,this,\'4\',false);\"><A HREF=\"\/0Page\/contact_1.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;vertical-align:middle;\" NAME=\"Contact Us\"><DIV  STYLE=\"width:114px;height:31px;cursor: pointer;cursor: hand;\"><FONT ID=\"NavigationMenuStorage_f4\" FACE=\"Arial, Helvetica, sans-serif\" CLASS=\"size14 Arial14\" STYLE=\"vertical-align:middle;color:#9E0704;line-height:31px;\">Contact&nbsp;Us<\/FONT><\/DIV><\/A><\/TD><\/TR><\/TABLE><script type="text/javascript">addMouseAndStyleSupportNavigationMenuStorage(nav_NavigationMenuStorage,"ntb'+navTBSuffix+'");'+'</scri'+'pt>');
	}


