function reDo()
{
window.location.reload()
}
window.onresize = reDo;

var y;
var x;

if (self.innerHeight) // all except Explorer
{
y = self.innerHeight;
x = self.innerWidth
}
else if (document.documentElement && document.documentElement.clientHeight)
// Explorer 6 Strict Mode
{
y = document.documentElement.clientHeight;
x = document.documentElement.clientWidth;
}
else if (document.body) // other Explorers
{
y = document.body.clientHeight;
x = document.body.clientWidth;
}

// if height <820 add final stylesheet
if (x < 820)
{
document.write("<style type='text/css'>div.env{width: 800px;}</style>")
}