if (parent.frames.length > 0) {
    parent.location.href = self.document.location
}

function fnMenuOver(strId) {
	objImg = eval("document." + strId);
	objImg.src = "Images/Menu" + strId + "Over.gif";
}
function fnMenuOut(strId) {
	objImg = eval("document." + strId);
	objImg.src = "Images/Menu" + strId + ".gif";
}
function fnResizeThumbnail(objImg) {
	if (objImg.src != '') {
		var intStartWidth = objImg.width;
		var intStartHeight = objImg.height;
		if (intStartWidth > intStartHeight) {
			objImg.width = 121;
			objImg.height = intStartHeight / (intStartWidth / 121);
		} else {
			objImg.height = 121;
			objImg.width = intStartWidth / (intStartHeight / 121);
		}
	}
}
function fnOpenLoopnet(strUrl) {
	//if (navigator.appName.match(/Netscape/)) {
	//	var winNew = window.open(strUrl,'LoopNet');
	//} else {
		self.location = "Page.asp?Script=7&Redirect=" + strUrl;
	//}
}
function fnLoadIframe() {
	var strIframeSrc = self.location.search.substr(self.location.search.indexOf("&Redirect="),self.location.search.length);
	strIframeSrc = strIframeSrc.substr(strIframeSrc.indexOf("=") + 1,strIframeSrc.length);
	//if (navigator.appName.match(/Netscape/)) {
	//	var winNew = window.open(strIframeSrc,'LoopNet');
	//} else {
		document.getElementById("loopnetframe").src = strIframeSrc;
	//}
}
// image load ===================================================
var img1 = new Image();
img1.src = "Images/MenuPropertiesOver.gif";
var img2 = new Image();
img2.src = "Images/MenuLatestNewsOver.gif";
var img3 = new Image();
img3.src = "Images/MenuAffiliatesOver.gif";
var img4 = new Image();
img4.src = "Images/MenuAboutUsOver.gif";
var img5 = new Image();
img5.src = "Images/MenuRequestInformationOver.gif";

function fnPropImgLoaded() {
	if (!loaded) {
		loaded = true;
		var ratio = 0;
		if (propImg.width > propImg.height) {
			ratio = propImg.width / 127;
			document.propImgThumb.height = propImg.height / ratio;
		} else {
			ratio = propImg.height / 127;
			document.propImgThumb.width = propImg.width / ratio;
		}
		document.propImgThumb.src = propImg.src;
	}
}
