function getWindowWidth() {
    var windowWidth = 0;
    if (typeof(window.innerWidth) == 'number') {
        windowWidth = window.innerWidth;
    }
    else {
        if (document.documentElement && document.documentElement.clientWidth) {
            windowWidth = document.documentElement.clientWidth;
        }
        else {
            if (document.body && document.body.clientWidth) {
                windowWidth = document.body.clientWidth;
            }
        }
    }
    return windowWidth;
}
function winResize()
{
  var mW=getWindowWidth();
  if (document.getElementsByTagName('body')[0])
  {
    var bodystyle = (mW>1200)?'normal':'small';
    document.body.className=bodystyle;
  }
}

window.onresize=winResize;
window.onload=winResize;


