
// Cross browser function for forcing the cursor to change with javascript 
// events e.g. onMouseOver="changeCursor(this, true);" onMouseOut="changeCursor(this, false);"
			function changeCursor(layer,state) {
				if (state) {
					if ( browser == "Netscape Navigator" || browser == "Safari" ) {
						type = "pointer";
					} else {
						type = "hand";
					}
				} else {
					type = "default";
				}
				layer.style.cursor = type;
				return true;
			}


function swapNav(id, imageName, imageStatus) {
	if (document.images) {
		eval("document." + id + ".src = " + imageName + "_" + imageStatus + ".src");
	}
}


	var imagesArray = new Array( );
	
	function preloadImage(src) {
		if(document.images) {
			i = imagesArray.length;
			imagesArray[i] = new Image();
		    imagesArray[i].src = src;
		}
	}
	
	function getOffsetLeft (el) {
		var ol = el.offsetLeft;
		while ((el = el.offsetParent) != null)
			ol += el.offsetLeft;
		return ol;
	}
	
	function getOffsetTop (el) {
		var ot = el.offsetTop;
		while((el = el.offsetParent) != null)
			ot += el.offsetTop;
		return ot;
	}

	function findObj(id) {
		if(document.all) {
			obj = eval('document.all.' + id);
		} else {
			obj = document.getElementById(id);
		}
		return obj;
	}
	
	function bookmarkPage() {
		if ( (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4) && (navigator.userAgent.toLowerCase().indexOf("win") != -1) ) {
			window.external.AddFavorite(location.href, document.title);
		} else {
			alert("To bookmark this page, click \"OK\" below    \nand then press Control-D on your keyboard.\n(Macintosh users press Command-D.)");
		}
		return false;
	}
	
	function noPop() {
		exit = false;
	}
	
	function alertMH() {
		alert('Thank you for your interest in Mid-Hudson DigitalVoice service. Unfortunately we are not taking any new orders at this time. Please visit www.vonage.com for your phone service needs.');
	}



	/* Function to check to see if the site is being loaded in a frame and reload to top if it is */
	function breakOut(){

		if (top !=self)
		top.location=self.location;

	}

	/* END function to check to see if the site is being loaded in a frame and reload to top if it is */


