function theresize(bwidth,bheight) {

    var ymax=screen.availHeight;
    var xmax=screen.availWidth;
    self.moveTo(0,0);
    window.resizeTo(xmax,ymax);
//
	var x,y;
    if (self.innerHeight) // all except Explorer
	{
				x = self.innerWidth;
				y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
				// Explorer 6 Strict Mode
	{
				x = document.documentElement.clientWidth;
				y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
				x = document.body.clientWidth;
				y = document.body.clientHeight;
	}
//
    xyarrays = new Array();
    xyarrays[0] =  x;
    xyarrays[1] =  y;
    xyarrays[2] =  xmax;
    xyarrays[3] =  ymax;
/*
    flashnaviy=Math.round(y/2-250);
    document.write('<style type="text/css">');
    document.write('#background {margin:0; top:'+ flashnaviy +'px; left:0; width: ' + x + 'px; position: absolute;}');
    document.write('</style>');		
*/
    return xyarrays;
}