// handle initial load and page resize, set the size of the flash movie
// used to mix fixed size with a fluid layout.

$(document).ready(setFlashSize);
$(window).resize(setFlashSize);

function setFlashSize()
{
	// if it's an iphone, boot it out of here!
	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
	{
		return;
	}
	
	var height = 0;
	
	if(typeof(window.innerWidth) == 'number') {
		//Non-IE
		height = window.innerHeight;
	} else {
		if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
			//IE 6+ in 'standards compliant mode'
			height = document.documentElement.clientHeight;
		} else {
			if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				height = document.body.clientHeight;
			}
		}
	}

	document.getElementById("content-scroll-wrapper").style.height = (height - 50) + "px";
}