if (document.images) {rollovers = 1;}

if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
	window.attachEvent("onload", alphaBackgrounds);
}

function alphaBackgrounds(){
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
	for (i=0; i<document.all.length; i++){
		var bg = document.all[i].currentStyle.backgroundImage;
		if (itsAllGood && bg){
			if (bg.match(/\.png/i) != null){
				var mypng = bg.substring(5,bg.length-2);
				document.all[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='image')";
				document.all[i].style.backgroundImage = "url('/images/clear.gif')";
			}
		}
	}
}

function preloadimages() {
if (rollovers) {
}
}

function enlargeThumb(name,what,board) {
if (rollovers) {
document [what].src = "/photos/photos_"+board+"/" + name + ".jpg";
}
}

function enlargeThumb_2(name,what) {
if (rollovers) {
document [what].src = "http://www.mlsni.com/photos/property/" + name + ".jpg";
}
}

function enlargeThumb_13(name,what) {
if (rollovers) {
document [what].src = name;
}
}

function donothing(name) {
}

function arm(name) {
if (rollovers) {
document [name].src = "./images/" + name + "_1.jpg";
}
}

function drm(name) {
if (rollovers) {
document [name].src = "./images/" + name + "_0.jpg";
}
}

function armg(name) {
if (rollovers) {
document [name].src = "./images/" + name + "_1.gif";
}
}

function drmg(name) {
if (rollovers) {
document [name].src = "./images/" + name + "_0.gif";
}
}

function popupPhoto(thefile) {
	newWindow = window.open(thefile, "graphic" ,"statusbar=no,menubar=no,location=no,scrollbars=yes,toolbar=no,directories=no,resizable=yes,width=520,height=500")
	newWindow.focus();
}

function popupMap(thefile) {
	newWindow = window.open(thefile, "map" ,"statusbar=yes,menubar=no,location=no,scrollbars=yes,toolbar=no,directories=no,resizable=yes,width=620,height=600,screenx=10,left=10,screeny=10,top=10")
	newWindow.focus();
}

function popupTour(thefile) {
	newWindow = window.open(thefile, "virtualtour" ,"statusbar=no,menubar=no,location=no,scrollbars=yes,toolbar=no,directories=no,resizable=yes,width=420,height=400")
	newWindow.focus();
}

function popupTour2(thefile) {
	newWindow = window.open(thefile, "virtualtour" ,"statusbar=no,menubar=no,location=no,scrollbars=yes,toolbar=no,directories=no,resizable=yes,width=580,height=560")
	newWindow.focus();
}

function popupPrivacy() {
	newWindow = window.open('privacy_popup.cfm', "privacy" ,"statusbar=no,menubar=no,location=no,scrollbars=yes,toolbar=no,directories=no,resizable=yes,width=620,height=400")
	newWindow.focus();
}

function popupMortgage() {
	newWindow = window.open('mortgagecalculator.cfm', "privacy" ,"statusbar=no,menubar=no,location=no,scrollbars=yes,toolbar=no,directories=no,resizable=yes,width=520,height=500")
	newWindow.focus();
}

function popupGMACPremierPledge() {
	newWindow = window.open('popup_gmac_premier_pledge.html', "pledge" ,"statusbar=no,menubar=no,location=no,scrollbars=yes,toolbar=no,directories=no,resizable=yes,width=420,height=500")
	newWindow.focus();
}

function popupWindow(thefile) {
	newWindow = window.open(thefile, "window" ,"statusbar=no,menubar=no,location=no,scrollbars=yes,toolbar=no,directories=no,resizable=yes,width=520,height=500")
	newWindow.focus();
}

function printPage() {
if (window.print) {
	window.print();
}
else
	alert("Sorry, your browser doesn't support this feature. Pick Print from the File menu or use the keyboard equivalent.");
}
