var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring,hires;

if (screen.width >= 1020 )
{
  hires=1;
  topClass="tagHi";
  padClass="padTextHi";
}
else
{
  hires=0; 
  topClass="tagLow";
  padClass="padTextLo";
}

if (checkIt('msie'))
{
  if (hires){ fadeW=933; } else {fadeW=711;}
}
else
{
  if (hires){ fadeW=958; } else {fadeW=736;}
}

function checkIt(string)
{
  place = detect.indexOf(string) + 1;
  thestring = string;
  return place;
}
