function loadFunctions(){
	if (document.all && document.getElementById){
		if(document.getElementById("homePage").className=="yes") {
			  //ie5/windows and up code here.
		 		window.location='GetFirefox.php'
		}
 		 //non-IE/win browsers.
	}
	hidePage()
}
//Sub Pages
var divHeight=200
function hidePage() {
	for (var div = 0; div < document.getElementById("content").childNodes.length; div++) {
		if (document.getElementById("content").childNodes[div].className=="list") {
			if(document.getElementById("content").childNodes[div].id!=window.location.search.substring(1)) {
				if(divHeight>20){
					document.getElementById("content").childNodes[div].style.height=divHeight + "px"
				} else {
					document.getElementById("content").childNodes[div].style.display="none"
				}
			}
		}
	}
	if(divHeight>0){
		var t=setTimeout('hidePage()',10)
		divHeight-=20
	}
}
// Contact Us
function googleMapsMap() {
	this.open("http://maps.google.com/maps?oi=map&q=844+East+Manchester+Road+05255","width=500px","height=500px")
}
function mapQuestMap(){
	this.open("http://www.mapquest.com/maps/map.adp?searchtype=address&country=US&addtohistory=&searchtab=home&address=844+East+Manchester+Road&state=VT&zipcode=05255","width=500px","height=500px")
}
function googleMaps(address,city,state,zip) {
	var addressResult = "";
	for (i = 0; i < address.length; i++) {
		if (address.charAt(i) == " ") addressResult += "+";
		else addressResult += address.charAt(i);
	}
	//var addressResult += ","
	var cityResult = "";
	for (i = 0; i < city.length; i++) {
		if (city.charAt(i) == " ") cityResult += "+";
		else cityResult += city.charAt(i);
	}
	var stateResult = "";
	for (i = 0; i < state.length; i++) {
		if (state.charAt(i) == " ") stateResult += "+";
		else stateResult += state.charAt(i);
	}
	var zipResult = "";
	for (i = 0; i < zip.length; i++) {
		if (zip.charAt(i) == " ") zipResult += "+";
		else zipResult += zip.charAt(i);
	}
	this.open("http://maps.google.com/maps?hl=en&saddr="+addressResult+"+"+cityResult+"+"+stateResult+"+"+zipResult+"&daddr=844+E+Manchester+Rd,+Manchester+Center,+VT+05255&f=d&om=1","width=500px","height=500px")
}
function MapQuest(address,city,state,zip) {
	var addressResult = "";
	for (i = 0; i < address.length; i++) {
		if (address.charAt(i) == " ") addressResult += "+";
		else addressResult += address.charAt(i);
	}
	//var addressResult += ","
	var cityResult = "";
	for (i = 0; i < city.length; i++) {
		if (city.charAt(i) == " ") cityResult += "+";
		else cityResult += city.charAt(i);
	}
	var stateResult = "";
	for (i = 0; i < state.length; i++) {
		if (state.charAt(i) == " ") stateResult += "+";
		else stateResult += state.charAt(i);
	}
	var zipResult = "";
	for (i = 0; i < zip.length; i++) {
		if (zip.charAt(i) == " ") zipResult += "+";
		else zipResult += zip.charAt(i);
	}
	this.open("http://www.mapquest.com/directions/main.adp?go=1&do=nw&rmm=1&un=m&cl=EN&ct=NA&rsres=1&1ffi=&1l=&1g=&1pl=&1v=&1n=&2ffi=&2l=&2g=&2pl=&2v=&2n=&1pn=&1a="+addressResult+"%0D%0A&1c="+cityResult+"&1s="+stateResult+"&1z="+zipResult+"&2pn=&2a=844+East+Manchester+Road+&2c=Manchester+Center&2s=VT&2z=05255&r=f","width=500px","height=500px")
}
