var	w = 640;
var	h = 480;

function measurewindow()
{
	if (self.innerHeight)
	// all except Explorer
	{
		w = self.innerWidth;
		h = self.innerHeight;
	}

	else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
	{
		w = document.documentElement.clientWidth;
		h = document.documentElement.clientHeight;
	}

	else if (document.body)
	// other Explorers
	{
		w = document.body.clientWidth;
		h = document.body.clientHeight;
	}
}

function getWidth()
{
	return w;
}

function getHeight()
{
	return h;
}

function setMovieDimension()
{
	measurewindow();
	if (document.getElementById) {
        var obj = document.getElementById('psnz');
        obj.setAttribute('width', getWidth());
        obj.setAttribute('height', getHeight());
	}
}

window.onresize = setMovieDimension;

