real_aspect = 900/600;

function getWindowWidth() {
	if (document.all) return document.body.clientWidth; 
	if (document.layers) return innerWidth; 
	return document.body.clientWidth;
}
function getWindowHeight() {
	if (document.all) return document.body.clientHeight; 
	if (document.layers) return innerHeight; 
	return document.body.clientHeight;
}
function updateSize() {
	obj = document.getElementById('flash');
	real_w = w = getWindowWidth();
	real_h = h = getWindowHeight()-90;
	cur_aspect = w/h;
	if (cur_aspect>real_aspect) 
		real_w = real_aspect*h;
	else real_h = w/real_aspect;
	obj.style.width  = Math.round(real_w) + "px";
	obj.style.height = Math.round(real_h) + "px";
}


<script type="text/javascript"><!--
var ya_cid=104587;
//--></script>
<script src="http://bs.yandex.ru/resource/watch.js" type="text/javascript"></script>
<noscript><div style="display: inline;"><img src="http://bs.yandex.ru/watch/104587" width="1" height="1" alt=""></div></noscript>

