var swfWidth = 1057;
var swfHeight = 797;

function setSwfSize ( p_swfWidth, p_swfHeight  ) {
	swfWidth = p_swfWidth;
	swfHeight = p_swfHeight;
	resizeFlash();
}

function resizeFlash() {
	p_swfWidth = swfWidth;
	p_swfHeight = swfHeight;
	
	p_idFlash = "swf_marcelweb_0707";
	var scenWidth = 0;
	var sceneHeight = 0;
	
	
	if (self.innerWidth) {
		sceneWidth = self.innerWidth;
		sceneHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientWidth) {
		sceneWidth = document.documentElement.clientWidth;
		sceneHeight = document.documentElement.clientHeight;
	} else if (document.body) {
		sceneWidth = document.body.clientWidth;
		sceneHeight = document.body.clientHeight;
	}
	
	// alert(p_swfHeight + ": " + sceneWidth);
	if (p_swfWidth < sceneWidth || p_swfWidth==null) p_swfWidth = "100%";
	if (p_swfHeight < sceneHeight || p_swfHeight==null) p_swfHeight = "100%";
	// alert(p_swfWidth);
	
	
	if (document.all && !document.getElementById) {
		document.all[p_idFlash].style.pixelWidth = p_swfWidth;
		document.all[p_idFlash].style.pixelHeight = p_swfHeight;
	} else {
		if ( p_swfWidth != "100%" ) p_swfWidth += "px";
		if ( p_swfHeight != "100%" ) p_swfHeight += "px";
		document.getElementById(p_idFlash).style.width = p_swfWidth;
		document.getElementById(p_idFlash).style.height = p_swfHeight;
	}
	//alert("resizeFlash: " + p_idFlash + ": " + p_swfWidth + ", " + p_swfHeight + " - " + sceneWidth + ", " + sceneHeight+"("+document.getElementById(p_idFlash)+")");
}