function toggleDiv(id,flagit) {
if (flagit=="1"){
	if (document.layers) document.layers[''+id+''].display = "block"
	else if (document.all) document.all[''+id+''].style.display = "block"
	else if (document.getElementById) document.getElementById(''+id+'').style.display = "block"					}
else
 if (flagit=="0"){
	if (document.layers) document.layers[''+id+''].display = "none"
	else if (document.all) document.all[''+id+''].style.display = "none"
	else if (document.getElementById) document.getElementById(''+id+'').style.display = "none"							}
}

function bookmarkus() {
	var url = document.location.href;
	var title = document.title;
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
		window.external.AddFavorite(url,title);
	} else if (navigator.appName == "Netscape") {
		window.sidebar.addPanel(title,url,"");
	} else {
		alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
	}
}

function addToFav(theURL, theTitle) {
	//var url = document.location.href;
	//var title = document.title;
	var url = theURL;
	var title = theTitle;
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
		window.external.AddFavorite(url,title);
	} else if (navigator.appName == "Netscape") {
		window.sidebar.addPanel(title,url,"");
	} else {
		alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
	}
}

function distance(lat1, lon1, lat2, lon2, unit) {
	var radlat1 = Math.PI * lat1/180
	var radlat2 = Math.PI * lat2/180
	var radlon1 = Math.PI * lon1/180
	var radlon2 = Math.PI * lon2/180
	var theta = lon1-lon2
	var radtheta = Math.PI * theta/180
	var dist = Math.sin(radlat1) * Math.sin(radlat2) + Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);
	dist = Math.acos(dist)
	dist = dist * 180/Math.PI
	dist = dist * 60 * 1.1515
	if (unit=="K") { dist = dist * 1.609344 }
	if (unit=="N") { dist = dist * 0.8684 }
	return dist.toFixed(2)
}

	function Left(str, n){
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n);
	}
	
	function Right(str, n){
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
    }
	}

	function Mid(str, start, len){
	// Make sure start and len are within proper bounds
    if (start < 0 || len < 0) return "";
    	var iEnd, iLen = String(str).length;
    if (start + len > iLen)
          iEnd = iLen;
    else
          iEnd = start + len;
    return String(str).substring(start,iEnd);
	}
	
	function InStr(strSearch, charSearchFor) {
    for (n=0; n < strSearch.length; n++) {
    	if (charSearchFor == Mid(strSearch, n, 1)) {
		return n;
		}
	}
	return -1;
	}
	
function ShowPic(sImage)
{
   sImage = "/images/" + sImage + ".jpg";
   document.findbybtn.src = sImage;
}

function submitmap() {
	document.changeyoursearch.submit();
}

<!--
ML="n/eridxtou.mlpcs";
MI="140><952?1=38=23742?:6;<";
OT="";
for(j=0;j<MI.length;j++){
OT+=ML.charAt(MI.charCodeAt(j)-48);
}var thexml=OT;
// -->
