function setFlashWidth(divid, newW){
	document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
	document.getElementById(divid).style.height = newH+"px";		
}
function setFlashSize(divid, newW, newH){
	setFlashWidth(divid, newW);
	setFlashHeight(divid, newH);
}
function canResizeFlash(){
	var ua = navigator.userAgent.toLowerCase();
	var opera = ua.indexOf("opera");
	if (document.getElementById ) {
		if (opera == -1) return true;
		else if (parseInt(ua.substr(opera+6, 1)) >= 7) return true;
	}
	return false;
}
function checkSize(){
	if (document.body.clientHeight > 775){
		setFlashHeight('flash', document.body.clientHeight);
	}
	else {
		setFlashHeight('flash', 775);
	}
	if (document.body.clientWidth > 950) {
		setFlashWidth('flash', document.body.clientWidth);
	}
	else {
		setFlashWidth('flash', 950);
	}
}

window.onload = checkSize;
window.onresize = checkSize;