<!--
		
	String.prototype.trim  = function () {
		return this.ltrim().rtrim()
	}
	
	String.prototype.ltrim = function () {
		return this.replace(/^\s+/g, "") 
	}
	
	String.prototype.rtrim = function () {
		return this.replace(/\s+$/g, "")
	}
	
	function checkRadioForm(radioForm) {
		var vItem = null;
		for (var i = 0; i < radioForm.length; i++)  { 
			if (radioForm[i].checked) vItem = radioForm[i].value;
		}
		return vItem;
	}
	
	function formatFloat(num) {
		num = num.replace(/[^0-9\.\-]/g, "");
		if (!num) {
			return 0;
		} else {
			return num;
		}
	}

	function formatCurrency(num) {
		num = num.toString().replace(/\$|\,/g,'');
		if(isNaN(num)) num = "0";
		sign = (num == (num = Math.abs(num)));
		num = Math.floor(num * 100 + 0.50000000001);
		cents = num % 100;
		num = Math.floor(num / 100).toString();
		if(cents < 10) cents = "0" + cents;
		for (var i = 0; i < Math.floor((num.length - (1 + i)) / 3); i++) {
			num = num.substring(0, num.length - (4 * i + 3))+ ',' + num.substring(num.length - (4 * i + 3));
		}
		return (((sign)?'':'-') + '$' + num + '.' + cents);
	}
						
	function getDayName(intDay) {
		var strDayName = "";
		switch (intDay) {
			case 0:
				strDayName = "Sunday";
				break;
			case 1:
				strDayName = "Monday";
				break;
			case 2:
				strDayName = "Tuesday";
				break;
			case 3:
				strDayName = "Wednesday";
				break;
			case 4:
				strDayName = "Thursday";
				break;
			case 5:
				strDayName = "Friday";
				break;
			case 6:
				strDayName = "Saturday";
				break;
		}
		return strDayName;
	}
	
	function getMonthName(intMonth) {
		var strMonthName = "";
		switch (intMonth) {
			case 1:
				strMonthName = "January";
				break;
			case 2:
				strMonthName = "February";
				break;
			case 3:
				strMonthName = "March";
				break;
			case 4:
				strMonthName = "April";
				break;
			case 5:
				strMonthName = "May";
				break;
			case 6:
				strMonthName = "June";
				break;
			case 7:
				strMonthName = "July";
				break;
			case 8:
				strMonthName = "August";
				break;
			case 9:
				strMonthName = "September";
				break;
			case 10:
				strMonthName = "October";
				break;
			case 11:
				strMonthName = "November";
				break;
			case 12:
				strMonthName = "December";
				break;
		}
		return strMonthName;
	}
		
	function browserCheck() {
		if (!browserWarning && (!is_firefox && !is_opera7up && !is_nav7up && !is_moz && !is_konq && !is_safari && !is_aol7 && !is_aol8 && !is_aol9 && (!is_ie5_5up || (!is_win && is_ie)))) {
			window.location.href = "/_errors/browser/?Browser=" + agt;
		}
	}
	
	function Homepage() {
		DocURL = document.URL;
		protocolIndex = DocURL.indexOf("://", 4);
		serverIndex = DocURL.indexOf("/", protocolIndex + 3);
		BeginURL = DocURL.indexOf("#", 1) + 1;
		urlresult = DocURL.substring(BeginURL, serverIndex);
		displayresult = DocURL.substring(protocolIndex + 3, serverIndex);
		InsertElementAnchor(urlresult, displayresult);
	}

	function HtmlEncode(text) {
		return text.replace(/&/g, '&amp').replace(/'/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
	}

	function TagAttrib(name, value) {
		return ' ' + name + '="' + HtmlEncode(value) + '"';
	}

	function PrintTag(tagName, needCloseTag, attrib, inner) {
		document.write( '<' + tagName + attrib + '>' + HtmlEncode(inner) );
		if (needCloseTag) document.write( '</' + tagName +'>' );
	}

	function URI(href) {
		IEVer = window.navigator.appVersion;
		IEVer = IEVer.substr(IEVer.indexOf('MSIE') + 5, 3);
		return ((IEVer.charAt(1) == '.') && (IEVer >= '5.5')) ? encodeURI(href) : escape(href).replace(/%3A/g, ':').replace(/%3B/g, ';');
	}

	function InsertElementAnchor(href, text) {
		PrintTag('A', true, TagAttrib('HREF', URI(href)), text);
	}

	function cacheImages() {
		if (document.images) {
			for (var i = 0; i <= 8; i++) {
				menuImageCache[i] = new Image();
				with (menuImageCache[i]) {
					src = "_images/spacers/transparent.gif";
					hspace = "0";
					vspace = "0";
					align = "left";
					if (i == 0 || i == 1) {
						width = "1";
						height = (i == 0) ? 2 : 3;
					} else if (i == 2 || i == 3 || i == 5 || i == 7 || i == 8) {
						width = "1";
						height = "4";
					}
				}
			}
		imagesLoaded = true;
		}
	}

	function menuHandler(arg) {
		if (tabId) {
			evt = arg ? arg : event;
			objRef = evt.target ? evt.target : evt.srcElement;
			while (objRef.parentNode && (objRef.nodeName.toLowerCase() != "body")) {
				if (objRef.id.indexOf("Tab" + tabId) != -1) return null;
				objRef = objRef.parentNode;
			}
			removeMenu();
		}
	}
	
	function getOffset(objStart, menuDirection) {
		var iOffset = (menuDirection.toLowerCase() == "left") ? objStart.offsetLeft : objStart.offsetTop;
		while (objStart.offsetParent && (objStart.tagName.toLowerCase() != "body")) {
			objStart = objStart.offsetParent;
			iOffset += (menuDirection.toLowerCase() == "left") ? objStart.offsetLeft : objStart.offsetTop;
		}
		return iOffset;
	}

	function initDoc() {
		if (top.frames.length != 0) top.location = self.document.location;
		browserCheck();
		cacheImages();
		document.onmouseover = menuHandler;
		var sSearch = window.location.search.substring(1);
		var Parameters = new Object();
		var sNameValuePairs = sSearch.split('&');
		var sNameValuePair;
		for (var i = 0; i < sNameValuePairs.length; i++) {
			sNameValuePair = sNameValuePairs[i].split('=');
			Parameters[sNameValuePair[0].toLowerCase()] = sNameValuePair[1];
		}
		if (parseInt(Parameters["scrollto"])) window.scrollTo(0, parseInt(Parameters["scrollto"]));
		
		//capture();
		preloadImages();
	}
	
	function newImage(arg) {
		if (document.images) {
			rslt = new Image();
			rslt.src = arg;
			return rslt;
		}
	}

	function changeImages() {
		if (document.images && (preloadFlag == true)) {
			for (var i=0; i<changeImages.arguments.length; i+=2) {
				document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
			}
		}
	}

	var preloadFlag = false;
	function preloadImages() {
		//do this for about page swf swap
		var MyVar = location.href;
		var index = 0;
		//search for string
		index = MyVar.indexOf("history", 0)
		//if we find history in the URL then execute the following function
		if (index != -1) {
			if (document.images) {
				time_line_over = newImage("_images/history/time_line-over.jpg");
				geography_over = newImage("_images/history/geography-over.jpg");
				growth_over = newImage("_images/history/growth-over.jpg");
				attractions_over = newImage("_images/history/attractions-over.jpg");
				references_over = newImage("_images/history/references-over.jpg");
				preloadFlag = true;
			}
		}
	}

	
	//set the default image to the browns addition map
	function capture() {
		//do this for about page swf swap
		var MyVar = location.href;
		var index = 0;
		//search for string
		index = MyVar.indexOf("history", 0)
		//if we find history in the URL then execute the following function
		if (index != -1) {
			document.frmBrowns.text1.value = "map";
		}
		
	}
	
	//newImage is the table name of the next image to display
	function swap (newImage) {
	
		//turn off the previous image and turn on the new one
		document.getElementById(document.frmBrowns.text1.value).style.display = 'none';
		document.getElementById(newImage).style.display = 'inline';
		
		//change the old image/table id to the current one
		document.frmBrowns.text1.value = newImage;
	}
	
	//hides flash movie when close button is clicked on
	function Hide(id) {
		document.frmBrowns.text1.value = id;
		swap("map");
	}

	
	function domenu(srcObj) {
		if ((tabId != srcObj.id.replace("aTab", "")) && (srcObj.id.indexOf("aTab") != -1) && imagesLoaded) {
			if (tabId) removeMenu();
			menuContent = getMenuContent(srcObj.id);
			if (menuContent) {
				tabId = srcObj.id.replace("aTab","");
				document.getElementById("tdTab" + tabId).appendChild(buildMenu(menuContent, "main", ""));
				document.getElementById("tdTableTab" + tabId).style.backgroundColor = tabMenuColors[tabId][6];
				document.getElementById("tdTableTab" + tabId).style.borderColor = tabMenuColors[tabId][7];
				document.getElementById("tdTableTab" + tabId).style.borderBottom = "none";
				checkMenuPosition(document.getElementById("divMenu" + tabId), document.getElementById("tableTableTab" + tabId));
				srcObj.style.color = tabMenuColors[tabId][11];
				srcObj.style.textDecoration = "underline";
				if (tabMenuColors[tabId][16] && is_win && is_ie5_5up) {
					if (tabMenuColors[tabId][15]) {
						document.getElementById("tdTab" + tabId).style.filter = "alpha(opacity=" + tabMenuColors[tabId][15] + ")";
						document.getElementById("divMenu" + tabId).style.filter = tabMenuColors[tabId][16] + "progid:DXImageTransform.Microsoft.Alpha(opacity=" + tabMenuColors[tabId][15] + ")";
					} else {
						document.getElementById("divMenu" + tabId).style.filter = tabMenuColors[tabId][16];
					}
					document.getElementById("divMenu" + tabId).filters[0].Apply();
					document.getElementById("divMenu" + tabId).style.visibility = "visible";
					document.getElementById("divMenu" + tabId).filters[0].play();
				} else if (tabMenuColors[tabId][15] && is_win && is_ie5_5up) {
					document.getElementById("tdTab" + tabId).style.filter = "alpha(opacity=" + tabMenuColors[tabId][15] + ")";
					document.getElementById("divMenu" + tabId).style.filter = "alpha(opacity=" + tabMenuColors[tabId][15] + ")";
					document.getElementById("divMenu" + tabId).style.visibility = "visible";
				} else {
					setTimeout('document.getElementById("divMenu" + tabId).style.visibility = "visible";', 0);
				}
			}
		} else if ((menuItemId != srcObj.id) && (srcObj.id.indexOf("aTab") == -1) && imagesLoaded) {
			if (tabId) {
				if (menuItemId) removeChild();
				menuContent = getMenuContent("aTab" + tabId)[srcObj.id.replace("mainMenuItem","")];
				menuItemId = srcObj.id;
				document.getElementById("tdTab" + tabId).appendChild(buildMenu(menuContent, "child", "right"));
				document.getElementById("divMenu" + tabId + "Child").style.left = (getOffset(document.getElementById("divMenu" + tabId), "left") + document.getElementById("menuTable").offsetWidth) + "px";
				document.getElementById("divMenu" + tabId + "Child").style.top = (getOffset(document.getElementById("divMenu" + tabId), "top") + 2 + (document.getElementById("Tab" + tabId + "Child" + menuItemId.replace("mainMenuItem","")).offsetHeight * menuItemId.replace("mainMenuItem",""))) + "px";
				if ((getOffset(document.getElementById("childMenuTable"),"left") + document.getElementById("childMenuTable").offsetWidth) > (getOffset(document.getElementById("tableTabNavigation"), "left") + document.getElementById("tableTabNavigation").offsetWidth)) {
					with (document.getElementById("tdTab" + tabId)) {
						removeChild(document.getElementById("tdTab" + tabId).childNodes[2]);
						appendChild(buildMenu(menuContent, "child", "left"));
					}
					document.getElementById("divMenu" + tabId + "Child").style.left = (getOffset(document.getElementById("divMenu" + tabId), "left") - document.getElementById("childMenuTable").offsetWidth) + "px";
					document.getElementById("divMenu" + tabId + "Child").style.top = (getOffset(document.getElementById("divMenu" + tabId), "top") + 2 + (document.getElementById("Tab" + tabId + "Child" + menuItemId.replace("mainMenuItem","")).offsetHeight * menuItemId.replace("mainMenuItem",""))) + "px";
					document.getElementById("Tab" + tabId + "Child" + menuItemId.replace("mainMenuItem","")).style.borderLeft = "none";
					document.getElementById("Tab" + tabId + "Child" + menuItemId.replace("mainMenuItem","")).style.paddingLeft = "8px";
				} else {
					document.getElementById("Tab" + tabId + "Child" + menuItemId.replace("mainMenuItem","")).style.borderRight = "none";
					document.getElementById("Tab" + tabId + "Child" + menuItemId.replace("mainMenuItem","")).style.paddingRight = "8px";
				}
				srcObj.style.color = tabMenuColors[tabId][11];
				srcObj.style.textDecoration = "underline";
				if (tabMenuColors[tabId][16] && is_win && is_ie5_5up) {
					if (tabMenuColors[tabId][15]) {
						document.getElementById("divMenu" + tabId + "Child").style.filter = tabMenuColors[tabId][16] + "progid:DXImageTransform.Microsoft.Alpha(opacity=" + tabMenuColors[tabId][15] + ")";
					} else {
						document.getElementById("divMenu" + tabId + "Child").style.filter = tabMenuColors[tabId][16];
					}
					document.getElementById("divMenu" + tabId + "Child").filters[0].Apply();
					document.getElementById("divMenu" + tabId + "Child").style.visibility = "visible";
					document.getElementById("divMenu" + tabId + "Child").filters[0].play();
				} else if (tabMenuColors[tabId][15] && is_win && is_ie5_5up) {
					document.getElementById("divMenu" + tabId + "Child").style.filter = "alpha(opacity=" + tabMenuColors[tabId][15] + ")";
					document.getElementById("divMenu" + tabId + "Child").style.visibility = "visible";
				} else {
					document.getElementById("divMenu" + tabId + "Child").style.visibility = "visible";
				}
			}
		}
	}

	function buildMenu(menuContent, menuType, menuDirection) {
		
		if (menuType == "main") {

			td = document.createElement("td");
			td.id = "tabLeft";
			tr = document.createElement("tr");
			tr.appendChild(td);
			td = document.createElement("td");
			td.id = "tabRight";
			tr.appendChild(td);
			tbody = document.createElement("tbody");
			tbody.appendChild(tr);
			table = document.createElement("table");
			table.setAttribute("border", "0", 0);
			table.setAttribute("cellpadding", "0", 0);
			table.setAttribute("cellspacing", "0", 0);
			table.appendChild(tbody);

			td = document.createElement("td");
			td.id = "mainMenuTop"
			td.appendChild(table);
			tr = document.createElement("tr");
			tr.appendChild(td);
			tbody = document.createElement("tbody");
			tbody.appendChild(tr);

			td = document.createElement("td");
			td.className = "tdMenuTopSpacer";
			td.style.backgroundColor = tabMenuColors[tabId][6];
			td.style.borderColor = tabMenuColors[tabId][7];
			td.appendChild(menuImageCache[2]);
			tr = document.createElement("tr");
			tr.appendChild(td);
			tbody.appendChild(tr);
			
			if ((menuContent[0].toLowerCase() == "text") && menuContent[1].length) {
				for (var i = 0; i < menuContent[1].length; i++) {
					a = document.createElement("a");
					a.id = "mainMenuItem" + i;
					a.href = menuContent[1][i][1];
					if (getMenuContent("aTab" + tabId)[i]) {
						a.onmouseover = function() {domenu(this);};
					} else {
						a.onmouseover = function() {removeChild();};
					}
					a.appendChild(document.createTextNode(menuContent[1][i][0]));
					td = document.createElement("td");
					td.id = "Tab" + tabId + "Child" + i;
					td.className = "Tab" + tabId + "MenuItem";
					td.style.backgroundColor = tabMenuColors[tabId][6];
					td.style.borderColor = tabMenuColors[tabId][7];
					td.appendChild(a);
					tr = document.createElement("tr");
					tr.appendChild(td);
					tbody.appendChild(tr);
				}
			} else if ((menuContent[0].toLowerCase() == "html") && menuContent[1]) {
				td = document.createElement("td");
				td.id = "Tab" + tabId + "Child" + i;
				td.className = "Tab" + tabId + "MenuItem";
				td.style.backgroundColor = tabMenuColors[tabId][6];
				td.style.borderColor = tabMenuColors[tabId][7];
				td.appendChild(menuContent[1]);
				tr = document.createElement("tr");
				tr.appendChild(td);
				tbody.appendChild(tr);
			}

			td = document.createElement("td");
			td.className = "tdMenuBottomSpacer";
			td.style.backgroundColor = tabMenuColors[tabId][6];
			td.style.borderColor = tabMenuColors[tabId][7];
			td.appendChild(menuImageCache[3]);
			tr = document.createElement("tr");
			tr.appendChild(td);
			tbody.appendChild(tr);

			table = document.createElement("table");
			table.id = "menuTable";
			table.setAttribute("border", "0", 0);
			table.setAttribute("cellpadding", "0", 0);
			table.setAttribute("cellspacing", "0", 0);
			table.appendChild(tbody);

			div = document.createElement("div");
			div.id = "divMenu" + tabId;
			div.className = "divMenu";
			div.appendChild(table);
			return div;
			
		} else if (menuType == "child") {

			td0 = document.createElement("td");
			td0.style.borderBottom = tabMenuColors[tabId][7] + " solid 1px";
			td0.appendChild(menuImageCache[4]);

			td1 = document.createElement("td");
			td1.className = "tdMenuTopSpacer";
			td1.style.backgroundColor = tabMenuColors[tabId][6];
			td1.style.borderColor = tabMenuColors[tabId][7];
			td1.style.borderTop = tabMenuColors[tabId][7] + " solid 1px";
			td1.appendChild(menuImageCache[5]);

			tr = document.createElement("tr");
			if (menuDirection == "right") {
				tr.appendChild(td0);
				tr.appendChild(td1);
			} else {
				tr.appendChild(td1);
				tr.appendChild(td0);
			}                  
			tbody = document.createElement("tbody");
			tbody.appendChild(tr);

			td0 = document.createElement("td");
			td0.style.backgroundColor = tabMenuColors[tabId][6];
			td0.appendChild(menuImageCache[6]);

			a = document.createElement("a");
			a.href = menuContent[0][1];
			a.appendChild(document.createTextNode(menuContent[0][0]));

			td1 = document.createElement("td");
			td1.className = "Tab" + tabId + "MenuItem";
			td1.style.backgroundColor = tabMenuColors[tabId][6];
			td1.style.borderColor = tabMenuColors[tabId][7];
			td1.appendChild(a);

			tr = document.createElement("tr");
			if (menuDirection == "right") {
				td1.style.borderLeft = "none";
				td1.style.paddingLeft = "8px";
				tr.appendChild(td0);
				tr.appendChild(td1);
			} else {
				td1.style.borderRight = "none";
				td1.style.paddingRight = "8px";
				tr.appendChild(td1);
				tr.appendChild(td0);
			}	                
			tbody.appendChild(tr);

			if (menuContent.length >= 2) {
				for (var i = 1; i < menuContent.length; i++) {

					if (i == 1) {

						td0 = document.createElement("td");
						td0.style.borderTop = tabMenuColors[tabId][7] + " solid 1px";
						td0.appendChild(menuImageCache[6]);

						a = document.createElement("a");
						a.href = menuContent[i][1];
						a.appendChild(document.createTextNode(menuContent[i][0]));

						td1 = document.createElement("td");
						td1.className = "Tab" + tabId + "MenuItem";
						td1.style.backgroundColor = tabMenuColors[tabId][6];
						td1.style.borderColor = tabMenuColors[tabId][7];
						td1.appendChild(a);

						tr = document.createElement("tr");
						if (menuDirection == "right") {
							tr.appendChild(td0);
							tr.appendChild(td1);
						} else {
							tr.appendChild(td1);
							tr.appendChild(td0);
						}	                
						tbody.appendChild(tr);

					} else {

						td0 = document.createElement("td");

						a = document.createElement("a");
						a.href = menuContent[i][1];
						a.appendChild(document.createTextNode(menuContent[i][0]));

						td1 = document.createElement("td");
						td1.className = "Tab" + tabId + "MenuItem";
						td1.style.backgroundColor = tabMenuColors[tabId][6];
						td1.style.borderColor = tabMenuColors[tabId][7];
						td1.appendChild(a);

						tr = document.createElement("tr");
						if (menuDirection == "right") {
							tr.appendChild(td0);
							tr.appendChild(td1);
						} else {
							tr.appendChild(td1);
							tr.appendChild(td0);
						}	                
						tbody.appendChild(tr);

					}

				}

				td0 = document.createElement("td");

				td1 = document.createElement("td");
				td1.className = "tdMenuBottomSpacer";
				td1.style.backgroundColor = tabMenuColors[tabId][6];
				td1.style.borderColor = tabMenuColors[tabId][7];
				td1.appendChild(menuImageCache[8]);

				tr = document.createElement("tr");
				if (menuDirection == "right") {
					tr.appendChild(td0);
					tr.appendChild(td1);
				} else {
					tr.appendChild(td1);
					tr.appendChild(td0);
				}	                
				tbody.appendChild(tr);
			} else {

				td0 = document.createElement("td");
				td0.style.borderTop = tabMenuColors[tabId][7] + " solid 1px";
				td0.appendChild(menuImageCache[6]);

				td1 = document.createElement("td");
				td1.className = "tdMenuBottomSpacer";
				td1.style.backgroundColor = tabMenuColors[tabId][6];
				td1.style.borderColor = tabMenuColors[tabId][7];
				td1.appendChild(menuImageCache[8]);

				tr = document.createElement("tr");
				if (menuDirection == "right") {
					tr.appendChild(td0);
					tr.appendChild(td1);
				} else {
					tr.appendChild(td1);
					tr.appendChild(td0);
				}	                
				tbody.appendChild(tr);

			}

			table = document.createElement("table");
			table.id = "childMenuTable";
			table.setAttribute("border", "0", 0);
			table.setAttribute("cellpadding", "0", 0);
			table.setAttribute("cellspacing", "0", 0);
			table.appendChild(tbody);

			div = document.createElement("div");
			div.id = "divMenu" + tabId + "Child";
			div.className = "divMenu";
			div.appendChild(table);

			return div;


		}
	}

	function checkMenuPosition(srcMenu, srcTab) {
		if (srcMenu.offsetWidth <= srcTab.offsetWidth) {
			menuImageCache[1].width = document.getElementById("tdTableTab" + tabId).offsetWidth - 2;
			menuImageCache[1].height = 3;
			with (document.getElementById("mainMenuTop"))  {
				removeChild(document.getElementById("mainMenuTop").childNodes[0]);
				style.backgroundColor = tabMenuColors[tabId][6];
				style.borderLeft = tabMenuColors[tabId][7] + " solid 1px";
				style.borderRight = tabMenuColors[tabId][7] + " solid 1px";
				appendChild(menuImageCache[1]);
			}
		} else if ((getOffset(srcMenu, "left") + srcMenu.offsetWidth) > (getOffset(document.getElementById("tableTabNavigation"), "left") + document.getElementById("tableTabNavigation").offsetWidth)) {
			srcMenu.style.left = ((getOffset(srcMenu, "left") - srcMenu.offsetWidth) + srcTab.offsetWidth) + "px";
			menuImageCache[1].width = document.getElementById("tdTableTab" + tabId).offsetWidth - 2;
			document.getElementById("mainMenuTop").setAttribute("align", "right", 0);
			document.getElementById("tabLeft").setAttribute("width", "100%", 0);
			document.getElementById("tabLeft").style.borderBottom = tabMenuColors[tabId][7] + " solid 1px";
			document.getElementById("tabLeft").appendChild(menuImageCache[0]);
			document.getElementById("tabRight").style.backgroundColor = tabMenuColors[tabId][6];
			document.getElementById("tabRight").style.borderLeft = tabMenuColors[tabId][7] + " solid 1px";
			document.getElementById("tabRight").style.borderRight = tabMenuColors[tabId][7] + " solid 1px";
			document.getElementById("tabRight").appendChild(menuImageCache[1]);
		} else {
			srcMenu.style.left = getOffset(srcTab, "left") + "px"
			menuImageCache[1].width = document.getElementById("tdTableTab" + tabId).offsetWidth - 2;
			document.getElementById("mainMenuTop").setAttribute("align", "left", 0);
			document.getElementById("tabRight").setAttribute("width", "100%", 0);
			document.getElementById("tabRight").style.borderBottom = tabMenuColors[tabId][7] + " solid 1px";
			document.getElementById("tabRight").appendChild(menuImageCache[0]);
			document.getElementById("tabLeft").style.backgroundColor = tabMenuColors[tabId][6];
			document.getElementById("tabLeft").style.borderLeft = tabMenuColors[tabId][7] + " solid 1px";
			document.getElementById("tabLeft").style.borderRight = tabMenuColors[tabId][7] + " solid 1px";
			document.getElementById("tabLeft").appendChild(menuImageCache[1]);
		}
	}
	
	function removeMenu() {
		if (tabId) {
			if (menuItemId) removeChild();
			document.getElementById("aTab" + tabId).style.color = tabMenuColors[tabId][2];
			document.getElementById("aTab" + tabId).style.textDecoration = "none";
			document.getElementById("tdTableTab" + tabId).style.backgroundColor = tabMenuColors[tabId][0];
			document.getElementById("tdTableTab" + tabId).style.borderColor = tabMenuColors[tabId][1];
			document.getElementById("tdTableTab" + tabId).style.borderBottom = tabMenuColors[tabId][1] + " solid 1px";
				document.getElementById("tdTab" + tabId).style.filter = "alpha(opacity=100)";
			document.getElementById("tdTab" + tabId).removeChild(document.getElementById("tdTab" + tabId).childNodes[1]);
			tabId = null;
		}
	}
	
	function removeChild() {
		if (menuItemId) {
			document.getElementById("Tab" + tabId + "Child" + menuItemId.replace("mainMenuItem","")).style.paddingLeft = "7px";
			document.getElementById("Tab" + tabId + "Child" + menuItemId.replace("mainMenuItem","")).style.borderLeft = tabMenuColors[tabId][7] + " solid 1px";
			document.getElementById("Tab" + tabId + "Child" + menuItemId.replace("mainMenuItem","")).style.paddingRight = "7px";
			document.getElementById("Tab" + tabId + "Child" + menuItemId.replace("mainMenuItem","")).style.borderRight = tabMenuColors[tabId][7] + " solid 1px";
			document.getElementById(menuItemId).style.color = tabMenuColors[tabId][9];
			document.getElementById(menuItemId).style.textDecoration = "none";
			document.getElementById("tdTab" + tabId).removeChild(document.getElementById("tdTab" + tabId).childNodes[2]);
			menuItemId = null;
		}
	}
	
	function stripCharsInBag(s, bag) {
		var i;
		var returnString = "";
		for (i = 0; i < s.length; i++) {
			var c = s.charAt(i);
			if (bag.indexOf(c) == -1) returnString += c;
		}
		return returnString;
	}
	
	function isSSN(s) {
		s = s.trim().replace(/[^0-9]/g, "");
		return ((s.length == 9) && (s.charAt(0) != "9"));
	}
	
	function reformatSSN(srcObj) {
		if (isSSN(srcObj.value)) {
			srcObj.value = (reformat(srcObj.value.trim().replace(/[^0-9]/g,""), "", 3, "-", 2, "-", 4));
		} else {
			srcObj.value = srcObj.value.trim();
		}
	}
	
	function isPhoneNumber(s) {
		s = s.trim();
		if (s.charAt(0) == "+") {
			return true;
		} else {
			s = stripCharsInBag(s,phoneNumberDelimiters)
			return (s.length == 10);
		}
	}
	
	function reformatPhoneNumber(srcObj) {
		if (isPhoneNumber(srcObj.value) && (srcObj.value.charAt(0) != "+")) {
			srcObj.value = (reformat(stripCharsInBag(srcObj.value.trim(), phoneNumberDelimiters), "(", 3, ") ", 3, "-", 4))
		} else {
			srcObj.value = srcObj.value.trim();
		}
	}
	
	function isZipCode(s) {
		s = s.trim().replace(/[^0-9]/g,"")
		var regEx = /(^\d{5}$)|(^\d{9}$)/;
		return regEx.test(s.trim());
	}
	
	function reformatZipCode(srcObj) {
		if (isZipCode(srcObj.value)) {
			if (srcObj.value.length == 5) {
				srcObj.value = srcObj.value.trim();
			} else {
				
				srcObj.value = (reformat(srcObj.value.trim().replace(/[^0-9]/g,""), "", 5, "-", 4));
			}
		} else {
			srcObj.value = srcObj.value.trim();
		}
	}
	
	//This function was put in by Hoan Nguyen on 20 Jan 2005 to check for a valid date 
	function checkDate(s, type) {
		
		//remove any spaces in front or back of date
		s = s.trim()
		
		//if no date was supplied, then do not check and return true
		//else check the date and return correct value
		if (s.length == 0) {
			return true;
		}
		else {
			//format of mm(- /.)dd(- /.)yyyy
			if (type == "mmddyyyy") {
				var regEx = /([1-9]|1[012])[- \/.]([1-9]|[12][0-9]|3[01])[- \/.](19|20)\d\d/;
			}
			//format of dd(- /.)mm(- /.)yyyy
			if (type == "ddmmyyyy") {
				var regEx = /([1-9]|[12][0-9]|3[01])[- \/.]([1-9]|1[012])[- \/.](19|20)\d\d/;
			}
			//format of yyyy(- /.)mm(- /.)dd
			if (type == "yyyymmdd") {
				var regEx = /(19|20)\d\d[- \/.]([1-9]|[12][0-9]|3[01])[- \/.]([1-9]|1[012])/;
			}
			//evaluate the regular expression against the string and return true or false
			return regEx.test(s.trim());
		}
	}

	//This function was put in by Hoan Nguyen on 16 Nov 2004 to check the format of the Federal Tax ID Number
	function isTaxID(s) {
		s = s.trim().replace(/[^0-9]/g,"")
		var regEx = /(^\d{9}$)/;
		return regEx.test(s.trim());
	}

	//This function was put in by Hoan Nguyen on 16 Nov 2004 to reformat of the Federal Tax ID Number
	function reformatTaxID(srcObj) {
		if (isTaxID(srcObj.value)) {		
				srcObj.value = (reformat(srcObj.value.trim().replace(/[^0-9]/g,""), "", 2, "-", 7));
		} else {
			srcObj.value = srcObj.value.trim();
		}
	}
	
	function reformat(s) {
		var arg;
		var sPos = 0;
		var resultString = "";
		for (var i = 1; i < reformat.arguments.length; i++) {
			arg = reformat.arguments[i];
			if (i % 2 == 1) {
				resultString += arg;
			} else {
				resultString += s.substring(sPos, sPos + arg);
				sPos += arg;
			}
		}
		return resultString;
	}
	
	function isEmail(s) {
		var regEx = /^([a-zA-Z0-9_\-\.])+@(([0-2]?[0-5]?[0-5]\.[0-2]?[0-5]?[0-5]\.[0-2]?[0-5]?[0-5]\.[0-2]?[0-5]?[0-5])|((([a-zA-Z0-9\-])+\.)+([a-zA-Z\-])+))$/
		return regEx.test(s.trim());
	}
	
	//This function was put in by Hoan Nguyen on 7 Sept 2004 to check the format of the LID Parcel Number
	function isParcelNumber(srcObj) {
		var regEx = /(^\d{5}[.]\d{4})|(^\d{5}[.]\d{4}\w{1})/;		
		if (regEx.test(srcObj.txtBxParcel.value.trim())) {
			return true;
		} else {
			alert("Error - Parcel number is not in correct format!\n (Example of Correct format : 12345.1234 or 12345.1234a)");
			return false;
		}
	}	
	
	document.write("<style type=\"text/css\">");
	for (var i = 0; i < tabMenuColors.length; i++) {
		document.write("#tdTableTab" + i + "            {background: " + tabMenuColors[i][0] + "; border: " + tabMenuColors[i][1] + " solid 1px; color: " + tabMenuColors[i][2] + "; text-decoration: none;}" +
			"#tdTableTab" + i + " a:link     {color: " + tabMenuColors[i][3] + "; text-decoration: none;}" +
			"#tdTableTab" + i + " a:visited  {color: " + tabMenuColors[i][4] + "; text-decoration: none;}" +
			"#tdTableTab" + i + " a:hover    {color: " + tabMenuColors[i][5] + "; text-decoration: underline;}" +
			".Tab" + i + "MenuItem             {border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; color: " + tabMenuColors[i][8] + "; font-weight: bold; padding-left: 7px; padding-right: 7px; text-decoration: none; white-space: nowrap;}" +
			".Tab" + i + "MenuItem a:link      {color: " + tabMenuColors[i][9] + "; font-weight: bold; text-decoration: none;}" +
			".Tab" + i + "MenuItem a:visited   {color: " + tabMenuColors[i][10] + "; font-weight: bold; text-decoration: none;}" +
			".Tab" + i + "MenuItem a:hover     {color: " + tabMenuColors[i][11] + "; font-weight: bold; text-decoration: underline;}");
	}
	document.write("</style>");
	
	
	//for new streaming media page
	function toggle(id){
    ul = "ul_" + id;
    img = "img_" + id;
    ulElement = document.getElementById(ul);
    imgElement = document.getElementById(img);
    if (ulElement){
            if (ulElement.className == 'closed'){
                    ulElement.className = "open";
                    imgElement.src = "/_images/opened.gif";
                    }else{
                    ulElement.className = "closed";
                    imgElement.src = "/_images/closed.gif";
                    }
            }
    }
	
//-->