﻿function setHeight (flashHeight) { 
	var viewportHeight;
	
	// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 	 if (typeof window.innerWidth != 'undefined') {
		viewportHeight = window.innerHeight
	}
	// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
	else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) {
		viewportHeight = document.documentElement.clientHeight
	}
	// older versions of IE
	else {
		viewportHeight = document.getElementsByTagName('body')[0].clientHeight
	}
	
	if (flashHeight > viewportHeight) {
		document.getElementById('flashcontent').style.height = flashHeight + 'px';
	}
	return;
}