<!--

function doit_window()
{

/* this actually tests the sized window */
if (document.all)
{
   w = document.body.clientWidth;
   h = document.body.clientHeight;
}
else
if (document.layers)
{
   w = window.innerWidth;
   h  = window.innerHeight;
}
else
return;

if (w < 400)
  {

   javascript:changeCSS(1)
  }
else if (w < 800)
 {

  javascript:changeCSS(2)
 }
else
 {

  javascript:changeCSS(3)
 }

}

doit_window();

/* doit_desktop */

/* this only test screen resolution */
function doit_desktop()
{

if (screen.width < 400)
  {

   javascript:changeCSS(1)
  }
else if (screen.width < 800)
 {

  javascript:changeCSS(2)
 }
else
 {
	
  javascript:changeCSS(3)
 }
}

//-->
