if (screen.width > 640) { if (screen.width > 800) 
{ document.styleSheets[0].href="1024.css"; }
else document.styleSheets[0].href="800.css"; }
else document.styleSheets[0].href="640.css"