/** * Snippet by abeall.com <-- http://www.actionscript.org/forums/showthread.php3?t=211390 * * A script used to handle fluid sized flash files.  * changes the container divs height to fit the flash file. * */var DEBUG = (location.search && location.search.indexOf('debug') !=-1);window.onresize = function(){	if(prevHeight)		setHeight(prevHeight);}// set the height of the website from Flashvar prevHeight;function setHeight(h){	if(DEBUG) alert(h);	prevHeight = h;	if(isNaN(h)) return;	h = Math.round(h);	var height = Math.max(getWindowSize().height,h) + "px";	document.getElementById('content').style.height = height;}function sendAlert(t){	alert(t);}// get window size, accounting for browser stupidity (IE)function getWindowSize(){	if(typeof(window.innerHeight) == 'number')		return {height:window.innerHeight, width:window.innerWidth};	else{		if(document.documentElement && document.documentElement.clientHeight)			return {height:document.documentElement.clientHeight, width:document.documentElement.clientWidth}		else if(document.body && document.body.clientHeight)			return {height:document.body.clientHeight, width:document.body.clientWidth}	}}
