$(document).ready(function(){

  $("#verbs li span").hide();
  
  $("#iphone").text("Please turn your iPhone to landscape.");
  
  $("#verbs li").hover(
  
    function(){
      $(this).find("span").show();
    },
    
    function(){
      $(this).find("span").hide();
    }
  
  );
  
  $("#verbs li a").focus(
  
    function(){
      $(this).find("span").show();
    }
  
  );
  
  $("#verbs li a").blur(
  
    function(){
      $(this).find("span").hide();
    }
  
  );
  
  iphoneOrientationChange();

});

function iphoneOrientationChange() {

  switch (window.orientation) {
  
    case 0:
    case 180:
      $("#verbs li span").hide();
      $("#iphone").show();
      break;
    
    case 90:
    case -90:
      $("#verbs li span").show();
      $("#iphone").hide();
      break;
  
  }
  
  setTimeout (function(){window.scrollTo(0,1);}, 200);

}