// JavaScript Document



// Copyright 2001 by www.CodeBelly.com
// Do *not* remove this notice.

// INSTRUCTIONS

// Place this script in the <head> of the page you will use
// for redirection *only*.  It should *not* be placed in a
// regular (content) page.

// Set page destinations for the various screen sizes below.
// If the pages are in the same directory as the page with
// this script, only the page filename is needed; otherwise
// use the full, http://www.site.com/page.html address.

// If you have one page used for more than one size (say,
// both 1024 and Larger), then use the same page address
// in each of the associated variables.


pageFor768 = "index1.html";
pageFor800 = "index1.html";
pageFor864 = "index2.html";
pageFor960 = "index3.html";
pageFor1024 = "index4.html";
pageForLarger = "index4.html";

// Set showAlert to "yes" if you wish an alert box to appear
// when the visitor hits your referer page; otherwise, set
// it to "no"

showAlert  = "no";

// This is the message that will be seen if showAlert is
// used; alter it as needed.

sayOnAlert = "Ti invio alla pagina disegnata per la tua risoluzione video...";

// DO NOT EDIT BELOW THIS LINE.
// ----------------------------

var Wide = screen.height;

if (Wide <= 768){
  if (showAlert == "yes"){
    alert(sayOnAlert);
  }
  window.location = pageFor768;
}
else if (Wide <= 800){
  if (showAlert == "yes"){
    alert(sayOnAlert);
  }
  window.location = pageFor800;
}

else if (Wide <= 864){
  if (showAlert == "yes"){
    alert(sayOnAlert);
  }
  window.location = pageFor864;
}

else if (Wide <= 960){
  if (showAlert == "yes"){
    alert(sayOnAlert);
  }
  window.location = pageFor960;
}
else if (Wide <= 1024){
  if (showAlert == "yes"){
    alert(sayOnAlert);
  }
  window.location = pageFor1024;
}

else {
  if (showAlert == "yes"){
    alert(sayOnAlert);
  }
  window.location = pageForLarger;
}




