//detect the browser
function getBrowser()  // get the browser program name
  {
  if (navigator.appName == null || navigator.appName == "")
    return "mobile";
  else if (navigator.appName == "Blackberry")
    return "blackberry";
  else if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
	return "mobile" 
  else if ((screen.width<=500) && (screen.height<=600))    
    return "mobile";
  else
    return "full";
  }

//Select appropriate stylesheet  
styleurl='<link rel="stylesheet" href="http://showtime.arkansasonline.com/e/static/style/mobile/';
if (getBrowser() == "blackberry")
    styleurl += "mobilewml" ;
else if (getBrowser() == "full")
    styleurl += "fullversion" ;
else styleurl += "mobilexhtml";
styleurl += '.css" type="text/css">'
//alert (styleurl);

document.write(styleurl);


