var margin_left = 15;
//self.moveTo(0, 0);
if(navigator.userAgent.match(/MSIE /) || navigator.userAgent.match(/Firefox/)) {
  if(self.screen.availWidth > 1024) {
    self.resizeTo(1024, 768);
  }
  else {
    self.moveTo(0, 0);
    self.resizeTo(self.screen.availWidth, self.screen.availHeight);
  }
}

document.write("    <style type=\"text/css\">\n");
document.write("      /*<![CDATA[*/\n");
document.write("      #wrapper {\n");
document.write("        left: " + margin_left + "px !important;\n");
document.write("      }\n");
//alert(navigator.userAgent);
if(navigator.userAgent.match(/^Mozilla\/4\.0 \(compatible; MSIE 6/) ||
   navigator.userAgent.match(/^Mozilla\/4\.0 \(compatible; MSIE 5/) ||
   navigator.userAgent.match(/^Mozilla\/4\.0 \(compatible; MSIE 4/)) {
  document.write("      #source {\n");
  document.write("        width: 531px !important;\n");
  document.write("        height: 342px !important;\n");
  document.write("      }\n");
  document.write("      #stat {\n");
  document.write("        width: 508px !important;\n");
  document.write("        height: 443px !important;\n");
  document.write("      }\n");
  document.write("      #survey {\n");
  document.write("        width: 129px !important;\n");
  document.write("        height: 204px !important;\n");
  document.write("      }\n");
  document.write("      #menu_banner {\n");
  document.write("        width: 127px !important;\n");
  document.write("        height: 127px !important;\n");
  document.write("      }\n");
}
if(navigator.userAgent.indexOf('Safari') != -1) {
  document.write("      #survey {\n");
  document.write("        width: 125px !important;\n");
  document.write("        height: 194px !important;\n");
  document.write("      }\n");
}
document.write("      /*]]>*/\n");
document.write("    </style>\n");