var searchString = 'MSIE ';
var browser      = navigator.appName;
var version      = navigator.appVersion;
var pos          = version.search(searchString);
var versionNr    = 7;
if (pos > 0) {
  newVersion = version.substr(pos + searchString.length);
  newPos     = newVersion.search(';');
  if (newPos > 0) {
    versionNr = newVersion.substr(0, newPos) * 1;
  }
}
if (((pos > 0) && (versionNr > 7)) || (pos < 0)) {
  var myWidth      = Math.round(document.documentElement.clientWidth);
  var myMarginLeft = -1 * Math.round(myWidth / 2);
  document.write('<style type="text/css">');
  document.write('  #container { position: absolute; width: ' + myWidth + 'px; left: 50%; margin: 0 0 0 ' + myMarginLeft + 'px; }');
  document.write('</style>');
}
	