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