function adjustHIFrameSize() {
	if (document.getElementById) {
		var myIframe = document.getElementById('hiframe');
		if (myIframe) {
			if (myIframe.contentDocument && myIframe.contentDocument.body.offsetHeight) {
				// W3C DOM (and Mozilla) syntax
				myIframe.height = myIframe.contentDocument.body.offsetHeight + 50;
			}
			else if (myIframe.Document && myIframe.Document.body.scrollHeight) {
				// IE DOM syntax
				myIframe.height = myIframe.Document.body.scrollHeight;
			}
			else { myIframe.height = '500'; }

			// bind onload events to iframe
			if (myIframe.addEventListener) { myIframe.addEventListener("load", resizeIframe, false); }
			else                           { myIframe.attachEvent("onload", resizeIframe); }
		}
	}
}

function resizeIframe(evt) { 
	window.scroll(0,0);
	adjustHIFrameSize('hiframe'); 
}

function outputIframe(navfile) {
	var isIE    = (navigator.appName == 'Microsoft Internet Explorer')
	var isMacIE = ((navigator.userAgent.indexOf('Mac') != -1) && (isIE));
	var scroll  = 'yes';
	if ((isIE) && (!(isMacIE))) { scroll = 'no'; }
	document.write('<iframe src="' + navfile + '" width="190" height="500" scrolling="' + scroll + '" frameborder="0" marginwidth="0" marginheight="0" name="hinfo" id="hiframe" style="overflow: visible;"></iframe>');
	return true;
}
