


// Set iframe auto height
function dyniframesize(iframename) {
	var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1];
	var FFextraHeight=getFFVersion>=0.1?16:0;	//extra height in px to add to iframe in FireFox 1.0+ browsers
	
	var pTar = null;
	if(document.getElementById){
		pTar = document.getElementById(iframename);
	}
	else{
		eval('pTar = ' + iframename + ';');
	}

	if(pTar && !window.opera){
		pTar.style.display="block"    //begin resizing iframe

		if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight){	//ns6 syntax
			pTar.height = pTar.contentDocument.body.offsetHeight+FFextraHeight; 
		}
		else if (pTar.Document && pTar.Document.body.scrollHeight){
			pTar.height = pTar.Document.body.scrollHeight;	//ie5+ syntax
		}
	}
}

