codice:
if (screen.width > 800) {
 location.href = "index1024.htm";
}
else {
 location.href = index800.htm";
}