var width;

function getWidth()
{
 if (window.innerWidth) return window.innerWidth;
 else if (document.body && document.body.clientWidth) return document.body.clientWidth;
 else return 0;
}

function refresh()
{



 if (width != getWidth())
 {
  document.getElementsByTagName("h1")[0].style.fontSize =
  getWidth() / 4 +"%";
  document.getElementsByTagName("p")[0].style.fontSize =
  getWidth() / 8 +"%";
  document.getElementsByTagName("p")[1].style.fontSize =
  getWidth() / 8 +"%";
  }
}

window.onresize = refresh;
