
function resizeFlash(w,h){
var s_w = document.body.clientWidth;
var s_h = document.body.clientHeight;

if(w <= 1)
	w = s_w;
if(h <= 1)
	h = s_h;

var wLimit = 1200;
var hLimit = 800;

//alert("resizing: " + w + " : " + h);//DEBUGGING
	if(w < wLimit-1)
		window.document["mainFlash"].setAttribute('width', wLimit + "px");
	else
		window.document["mainFlash"].setAttribute('width', "100%");
	
	if(h < hLimit-1)
		window.document["mainFlash"].setAttribute('height', hLimit + 'px');
	else
		window.document["mainFlash"].setAttribute('height', Math.floor(h) + 'px');
		
}
