ScreenRes = screen.width;

res = "normal";

if (ScreenRes <= "800") {
  res = "reduced";
} else if(ScreenRes >= "1024") {
  res = "extrawidth";
}


if (res == "reduced") {
  document.writeln(
	"<link rel='stylesheet' type='text/css' href='./styles/reduced.css'  title='Reduzierte Version' />");
} else if (res == "normal") {
  document.writeln(
	"<link rel='stylesheet' type='text/css' href='./styles/default.css' title='Normale Version' />");
} else if (res == "extrawidth") {
  document.writeln(
	"<link rel='stylesheet' type='text/css' href='./styles/default.css' title='Breitbild Version' />");

}
