function resizeFlash() {
	foo = document.getElementById('swfcontent');
	if (document.body.clientWidth >= 1000) {
		foo.width = "100%";
	} else foo.width = "1000";
	if (document.body.clientHeight >= 580) {
		foo.height = "100%";
	} else foo.height = "580";
}
window.onresize = resizeFlash;
window.onload = resizeFlash;