function popupWindow(href, page, width, height) {
	setTimeout("popupWindow2('" + href + "','" + page + "'," + width + "," + height + ")", 1);
}
function popupWindow2(href, page, width, height) {
	var winName = (page.length > 0) ? page : "_blank";
	var leftVal = (screen.width - width) >> 1;
	var topVal = (screen.height - height) >> 2;
	var options = "channelmode=no,directories=no,height=" + height + ",innerHeight=" + height + ",innerWidth="
	            + width + ",left=" + leftVal + ",location=no,menuBar=no,resizable=yeys,scrollbars=yes,status=no,toolbar=no,top="
	            + topVal + ",width=" + width;
	var win = window.open(href, winName, options);
	win.focus();
	return true;
}
function resizeFlashContent() {
	var innerHeight = 600;
	if (typeof(window.innerHeight) == "number") {
		//Non-IE
		innerHeight = window.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		//IE 6+ in 'standards compliant mode'
		innerHeight = document.documentElement.clientHeight;
	} else if (document.body && document.body.clientHeight) {
		//IE 4 compatible
		innerHeight = document.body.clientHeight;
	}
	var flashContent = document.getElementById("flashContent");
	if (flashContent) {
		if (innerHeight < 600) {
			flashContent.style.height = "740px";
			document.body.style.overflow = "scroll";
		} else {
			flashContent.style.height = "100%";
			document.body.style.overflow = "hidden";
		}
	}
}

