testing login and submit with youtube:
<!DOCTYPE html>
<html lang="en">
  <head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
  <title>Google Accounts</title>
<style type="text/css">
  html, body, div, h1, h2, h3, h4, h5, h6, p, img, dl,
  dt, dd, ol, ul, li, table, tr, td, form, object, embed,
  article, aside, canvas, command, details, fieldset,
  figcaption, figure, footer, group, header, hgroup, legend,
  mark, menu, meter, nav, output, progress, section, summary,
  time, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  }
  article, aside, details, figcaption, figure, footer,
  header, hgroup, menu, nav, section {
  display: block;
  }
  html {
  font: 81.25% arial, helvetica, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1;
  direction: ltr;
  }
  a {
  color: #15c;
  text-decoration: none;
  }
  a:active {
  color: #d14836;
  }
  a:hover {
  text-decoration: underline;
  }
  h1, h2, h3, h4, h5, h6 {
  color: #222;
  font-size: 1.54em;
  font-weight: normal;
  line-height: 24px;
  margin: 0 0 .46em;
  }
  p {
  line-height: 17px;
  margin: 0 0 1em;
  }
  ol, ul {
  list-style: none;
  line-height: 17px;
  margin: 0 0 1em;
  }
  li {
  margin: 0 0 .5em;
  }
  table {
  border-collapse: collapse;
  border-spacing: 0;
  }
  strong {
  color: #222;
  }
</style>
<style type="text/css">
  html, body {
  position: absolute;
  height: 100%;
  min-width: 100%;
  }
  .wrapper {
  position: relative;
  min-height: 100%;
  }
  .wrapper + style + iframe {
  display: none;
  }
  .content {
  padding: 0 44px;
  }
  .google-header-bar {
  height: 71px;
  background: #f1f1f1;
  border-bottom: 1px solid #e5e5e5;
  overflow: hidden;
  }
  .header .logo {
  margin: 17px 0 0;
  float: left;
  }
  .header .signin,
  .header .signup {
  margin: 28px 0 0;
  float: right;
  font-weight: bold;
  }
  .header .signin-button,
  .header .signup-button {
  margin: 22px 0 0;
  float: right;
  }
  .header .signin-button a {
  font-size: 13px;
  font-weight: normal;
  }
  .header .signup-button a {
  position: relative;
  top: -1px;
  margin: 0 0 0 1em;
  }
  .main {
  margin: 0 auto;
  width: 650px;
  padding-top: 23px;
  padding-bottom: 100px;
  }
  .main h1:first-child {
  margin: 0 0 .92em;
  }
  .google-footer-bar {
  position: absolute;
  bottom: 0;
  height: 35px;
  width: 100%;
  border-top: 1px solid #ebebeb;
  overflow: hidden;
  }
  .footer {
  padding-top: 9px;
  font-size: .85em;
  white-space: nowrap;
  line-height: 0;
  }
  .footer ul {
  color: #999;
  float: left;
  max-width: 80%;
  }
  .footer ul li {
  display: inline;
  padding: 0 1.5em 0 0;
  }
  .footer a {
  color: #333;
  }
  .footer form {
  text-align: right;
  }
  .footer form .lang-chooser {
  max-width: 20%;
  }
  .redtext {
  color: #dd4b39;
  }
  .greytext {
  color: #555;
  }
  .secondary {
  font-size: 11px;
  color: #666;
  }
  .source {
  color: #093;
  }
  .hidden {
  display: none;
  }
  .announce-bar {
  position: absolute;
  bottom: 35px;
  height: 33px;
  z-index: 2;
  width: 100%;
  background: #f9edbe;
  border-top: 1px solid #efe1ac;
  border-bottom: 1px solid #efe1ac;
  overflow: hidden;
  }
  .announce-bar .message {
  font-size: .85em;
  line-height: 33px;
  margin: 0;
  }
  .announce-bar .message .separated {
  margin-left: 1.5em;
  }
  .announce-bar-ac {
  background: #eee;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  }
  .clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: '.';
  clear: both;
  height: 0;
  }
  * html .clearfix {
  zoom: 1;
  }
  *:first-child+html .clearfix {
  zoom: 1;
  }
</style>
<style type="text/css">
  button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  }
  button::-moz-focus-inner,
  input::-moz-focus-inner {
  border: 0;
  }
  input[type=email],
  input[type=number],
  input[type=password],
  input[type=tel],
  input[type=text],
  input[type=url] {
  display: inline-block;
  height: 29px;
  margin: 0;
  padding: 0 8px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-top: 1px solid #c0c0c0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-border-radius: 1px;
  -moz-border-radius: 1px;
  border-radius: 1px;
  }
  input[type=email]:hover,
  input[type=number]:hover,
  input[type=password]:hover,
  input[type=tel]:hover,
  input[type=text]:hover,
  input[type=url]:hover {
  border: 1px solid #b9b9b9;
  border-top: 1px solid #a0a0a0;
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  }
  input[type=email]:focus,
  input[type=number]:focus,
  input[type=password]:focus,
  input[type=tel]:focus,
  input[type=text]:focus,
  input[type=url]:focus {
  outline: none;
  border: 1px solid #4d90fe;
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  }
  input[type=email][disabled=disabled],
  input[type=number][disabled=disabled],
  input[type=password][disabled=disabled],
  input[type=tel][disabled=disabled],
  input[type=text][disabled=disabled],
  input[type=url][disabled=disabled] {
  border: 1px solid #e5e5e5;
  background: #f1f1f1;
  }
  input[type=email][disabled=disabled]:hover,
  input[type=number][disabled=disabled]:hover,
  input[type=password][disabled=disabled]:hover,
  input[type=tel][disabled=disabled]:hover,
  input[type=text][disabled=disabled]:hover,
  input[type=url][disabled=disabled]:hover {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  }
  input[type=email][readonly=readonly],
  input[type=number][readonly=readonly],
  input[type=password][readonly=readonly],
  input[type=text][readonly=readonly],
  input[type=url][readonly=readonly] {
  border: 1px solid #d9d9d9;
  }
  input[type=email][readonly=readonly]:hover,
  input[type=number][readonly=readonly]:hover,
  input[type=password][readonly=readonly]:hover,
  input[type=text][readonly=readonly]:hover,
  input[type=url][readonly=readonly]:hover,
  input[type=email][readonly=readonly]:focus,
  input[type=number][readonly=readonly]:focus,
  input[type=password][readonly=readonly]:focus,
  input[type=text][readonly=readonly]:focus,
  input[type=url][readonly=readonly]:focus {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  }
  input[type=checkbox].form-error,
  input[type=email].form-error,
  input[type=number].form-error,
  input[type=password].form-error,
  input[type=text].form-error,
  input[type=url].form-error {
  border: 1px solid #dd4b39;
  }
  input[type=checkbox],
  input[type=radio] {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  margin: 0;
  cursor: pointer;
  vertical-align: bottom;
  background: #fff;
  border: 1px solid #dcdcdc;
  -webkit-border-radius: 1px;
  -moz-border-radius: 1px;
  border-radius: 1px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  }
  input[type=checkbox]:active,
  input[type=radio]:active {
  border-color: #c6c6c6;
  background: #ebebeb;
  }
  input[type=checkbox]:hover {
  border-color: #c6c6c6;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
  -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
  }
  input[type=radio] {
  -webkit-border-radius: 1em;
  -moz-border-radius: 1em;
  border-radius: 1em;
  width: 15px;
  height: 15px;
  }
  input[type=checkbox]:checked,
  input[type=radio]:checked {
  background: #fff;
  }
  input[type=radio]:checked::after {
  content: '';
  display: block;
  position: relative;
  top: 3px;
  left: 3px;
  width: 7px;
  height: 7px;
  background: #666;
  -webkit-border-radius: 1em;
  -moz-border-radius: 1em;
  border-radius: 1em;
  }
  input[type=checkbox]:checked::after {
  content: url(//ssl.gstatic.com/ui/v1/menu/checkmark.png);
  display: block;
  position: absolute;
  top: -6px;
  left: -5px;
  }
  input[type=checkbox]:focus {
  outline: none;
  border-color:#4d90fe;
  }
  .g-button {
  display: inline-block;
  min-width: 46px;
  text-align: center;
  color: #444;
  font-size: 11px;
  font-weight: bold;
  height: 27px;
  padding: 0 8px;
  line-height: 27px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  -webkit-transition: all 0.218s;
  -moz-transition: all 0.218s;
  -ms-transition: all 0.218s;
  -o-transition: all 0.218s;
  transition: all 0.218s;
  border: 1px solid #dcdcdc;
  background-color: #f5f5f5;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#f1f1f1));
  background-image: -webkit-linear-gradient(top,#f5f5f5,#f1f1f1);
  background-image: -moz-linear-gradient(top,#f5f5f5,#f1f1f1);
  background-image: -ms-linear-gradient(top,#f5f5f5,#f1f1f1);
  background-image: -o-linear-gradient(top,#f5f5f5,#f1f1f1);
  background-image: linear-gradient(top,#f5f5f5,#f1f1f1);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  cursor: default;
  }
  *+html .g-button {
  min-width: 70px;
  }
  button.g-button,
  input[type=submit].g-button {
  height: 29px;
  line-height: 29px;
  vertical-align: bottom;
  margin: 0;
  }
  *+html button.g-button,
  *+html input[type=submit].g-button {
  overflow: visible;
  }
  .g-button:hover {
  border: 1px solid #c6c6c6;
  color: #333;
  text-decoration: none;
  -webkit-transition: all 0.0s;
  -moz-transition: all 0.0s;
  -ms-transition: all 0.0s;
  -o-transition: all 0.0s;
  transition: all 0.0s;
  background-color: #f8f8f8;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#f8f8f8),to(#f1f1f1));
  background-image: -webkit-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: -moz-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: -ms-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: -o-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: linear-gradient(top,#f8f8f8,#f1f1f1);
  -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  }
  .g-button:active {
  background-color: #f6f6f6;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#f6f6f6),to(#f1f1f1));
  background-image: -webkit-linear-gradient(top,#f6f6f6,#f1f1f1);
  background-image: -moz-linear-gradient(top,#f6f6f6,#f1f1f1);
  background-image: -ms-linear-gradient(top,#f6f6f6,#f1f1f1);
  background-image: -o-linear-gradient(top,#f6f6f6,#f1f1f1);
  background-image: linear-gradient(top,#f6f6f6,#f1f1f1);
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  }
  .g-button:visited {
  color: #666;
  }
  .g-button-submit {
  border: 1px solid #3079ed;
  color: #fff;
  text-shadow: 0 1px rgba(0,0,0,0.1);
  background-color: #4d90fe;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#4d90fe),to(#4787ed));
  background-image: -webkit-linear-gradient(top,#4d90fe,#4787ed);
  background-image: -moz-linear-gradient(top,#4d90fe,#4787ed);
  background-image: -ms-linear-gradient(top,#4d90fe,#4787ed);
  background-image: -o-linear-gradient(top,#4d90fe,#4787ed);
  background-image: linear-gradient(top,#4d90fe,#4787ed);
  }
  .g-button-submit:hover {
  border: 1px solid #2f5bb7;
  color: #fff;
  text-shadow: 0 1px rgba(0,0,0,0.3);
  background-color: #357ae8;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#4d90fe),to(#357ae8));
  background-image: -webkit-linear-gradient(top,#4d90fe,#357ae8);
  background-image: -moz-linear-gradient(top,#4d90fe,#357ae8);
  background-image: -ms-linear-gradient(top,#4d90fe,#357ae8);
  background-image: -o-linear-gradient(top,#4d90fe,#357ae8);
  background-image: linear-gradient(top,#4d90fe,#357ae8);
  }
  .g-button-submit:active {
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  }
  .g-button-share {
  border: 1px solid #29691d;
  color: #fff;
  text-shadow: 0 1px rgba(0,0,0,0.1);
  background-color: #3d9400;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#3d9400),to(#398a00));
  background-image: -webkit-linear-gradient(top,#3d9400,#398a00);
  background-image: -moz-linear-gradient(top,#3d9400,#398a00);
  background-image: -ms-linear-gradient(top,#3d9400,#398a00);
  background-image: -o-linear-gradient(top,#3d9400,#398a00);
  background-image: linear-gradient(top,#3d9400,#398a00);
  }
  .g-button-share:hover {
  border: 1px solid #2d6200;
  color: #fff;
  text-shadow: 0 1px rgba(0,0,0,0.3);
  background-color: #368200;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#3d9400),to(#368200));
  background-image: -webkit-linear-gradient(top,#3d9400,#368200);
  background-image: -moz-linear-gradient(top,#3d9400,#368200);
  background-image: -ms-linear-gradient(top,#3d9400,#368200);
  background-image: -o-linear-gradient(top,#3d9400,#368200);
  background-image: linear-gradient(top,#3d9400,#368200);
  }
  .g-button-share:active {
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  }
  .g-button-red {
  border: 1px solid transparent;
  color: #fff;
  text-shadow: 0 1px rgba(0,0,0,0.1);
  text-transform: uppercase;
  background-color: #d14836;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#dd4b39),to(#d14836));
  background-image: -webkit-linear-gradient(top,#dd4b39,#d14836);
  background-image: -moz-linear-gradient(top,#dd4b39,#d14836);
  background-image: -ms-linear-gradient(top,#dd4b39,#d14836);
  background-image: -o-linear-gradient(top,#dd4b39,#d14836);
  background-image: linear-gradient(top,#dd4b39,#d14836);
  }
  .g-button-red:hover {
  border: 1px solid #b0281a;
  color: #fff;
  text-shadow: 0 1px rgba(0,0,0,0.3);
  background-color: #c53727;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#dd4b39),to(#c53727));
  background-image: -webkit-linear-gradient(top,#dd4b39,#c53727);
  background-image: -moz-linear-gradient(top,#dd4b39,#c53727);
  background-image: -ms-linear-gradient(top,#dd4b39,#c53727);
  background-image: -o-linear-gradient(top,#dd4b39,#c53727);
  background-image: linear-gradient(top,#dd4b39,#c53727);
  -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.2);
  -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.2);
  -ms-box-shadow: 0 1px 1px rgba(0,0,0,0.2);
  -o-box-shadow: 0 1px 1px rgba(0,0,0,0.2);
  box-shadow: 0 1px 1px rgba(0,0,0,0.2);
  }
  .g-button-red:active {
  border: 1px solid #992a1b;
  background-color: #b0281a;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#dd4b39),to(#b0281a));
  background-image: -webkit-linear-gradient(top,#dd4b39,#b0281a);
  background-image: -moz-linear-gradient(top,#dd4b39,#b0281a);
  background-image: -ms-linear-gradient(top,#dd4b39,#b0281a);
  background-image: -o-linear-gradient(top,#dd4b39,#b0281a);
  background-image: linear-gradient(top,#dd4b39,#b0281a);
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  }
  .g-button-white {
  border: 1px solid #dcdcdc;
  color: #666;
  background: #fff;
  }
  .g-button-white:hover {
  border: 1px solid #c6c6c6;
  color: #333;
  background: #fff;
  -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  }
  .g-button-white:active {
  background: #fff;
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  }
  .g-button-red:visited,
  .g-button-share:visited,
  .g-button-submit:visited {
  color: #fff;
  }
  .g-button-submit:focus,
  .g-button-share:focus,
  .g-button-red:focus {
  -webkit-box-shadow: inset 0 0 0 1px #fff;
  -moz-box-shadow: inset 0 0 0 1px #fff;
  box-shadow: inset 0 0 0 1px #fff;
  }
  .g-button-share:focus {
  border-color: #29691d;
  }
  .g-button-red:focus {
  border-color: #d14836;
  }
  .g-button-submit:focus:hover,
  .g-button-share:focus:hover,
  .g-button-red:focus:hover {
  -webkit-box-shadow: inset 0 0 0 1px #fff, 0 1px 1px rgba(0,0,0,0.1);
  -moz-box-shadow: inset 0 0 0 1px #fff, 0 1px 1px rgba(0,0,0,0.1);
  box-shadow: inset 0 0 0 1px #fff, 0 1px 1px rgba(0,0,0,0.1);
  }
  .g-button.selected {
  background-color: #eee;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#eee),to(#e0e0e0));
  background-image: -webkit-linear-gradient(top,#eee,#e0e0e0);
  background-image: -moz-linear-gradient(top,#eee,#e0e0e0);
  background-image: -ms-linear-gradient(top,#eee,#e0e0e0);
  background-image: -o-linear-gradient(top,#eee,#e0e0e0);
  background-image: linear-gradient(top,#eee,#e0e0e0);
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  border: 1px solid #ccc;
  color: #333;
  }
  .g-button img {
  display: inline-block;
  margin: -3px 0 0;
  opacity: .55;
  filter: alpha(opacity=55);
  vertical-align: middle;
  pointer-events: none;
  }
  *+html .g-button img {
  margin: 4px 0 0;
  }
  .g-button:hover img {
  opacity: .72;
  filter: alpha(opacity=72);
  }
  .g-button:active img {
  opacity: 1;
  filter: alpha(opacity=100);
  }
  .g-button.disabled img {
  opacity: .5;
  filter: alpha(opacity=50);
  }
  .g-button.disabled,
  .g-button.disabled:hover,
  .g-button.disabled:active,
  .g-button-submit.disabled,
  .g-button-submit.disabled:hover,
  .g-button-submit.disabled:active,
  .g-button-share.disabled,
  .g-button-share.disabled:hover,
  .g-button-share.disabled:active,
  .g-button-red.disabled,
  .g-button-red.disabled:hover,
  .g-button-red.disabled:active,
  input[type=submit][disabled=disabled].g-button {
  background-color: none;
  opacity: .5;
  filter: alpha(opacity=50);
  cursor: default;
  pointer-events: none;
  }
  .goog-menu {
  -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  -webkit-transition: opacity 0.218s;
  -moz-transition: opacity 0.218s;
  -ms-transition: opacity 0.218s;
  -o-transition: opacity 0.218s;
  transition: opacity 0.218s;
  background: #fff;
  border: 1px solid #ccc;
  border: 1px solid rgba(0,0,0,.2);
  cursor: default;
  font-size: 13px;
  margin: 0;
  outline: none;
  padding: 0 0 6px;
  position: absolute;
  z-index: 2;
  overflow: auto;
  }
  .goog-menuitem,
  .goog-tristatemenuitem,
  .goog-filterobsmenuitem {
  position: relative;
  color: #333;
  cursor: pointer;
  list-style: none;
  margin: 0;
  padding: 6px 7em 6px 30px;
  white-space: nowrap;
  }
  .goog-menuitem-highlight,
  .goog-menuitem-hover {
  background-color: #eee;
  border-color: #eee;
  border-style: dotted;
  border-width: 1px 0;
  padding-top: 5px;
  padding-bottom: 5px;
  }
  .goog-menuitem-highlight .goog-menuitem-content,
  .goog-menuitem-hover .goog-menuitem-content {
  color: #333;
  }
  .goog-menuseparator {
  border-top: 1px solid #ebebeb;
  margin-top: 9px;
  margin-bottom: 10px;
  }
  .goog-inline-block {
  position: relative;
  display: -moz-inline-box;
  display: inline-block;
  }
  * html .goog-inline-block {
  display: inline;
  }
  *:first-child+html .goog-inline-block {
  display: inline;
  }
  .dropdown-block {
  display: block;
  }
  .goog-flat-menu-button {
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  background-color: #f5f5f5;
  background-image: -webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#f1f1f1));
  background-image: -webkit-linear-gradient(top,#f5f5f5,#f1f1f1);
  background-image: -moz-linear-gradient(top,#f5f5f5,#f1f1f1);
  background-image: -ms-linear-gradient(top,#f5f5f5,#f1f1f1);
  background-image: -o-linear-gradient(top,#f5f5f5,#f1f1f1);
  background-image: linear-gradient(top,#f5f5f5,#f1f1f1);
  border: 1px solid #dcdcdc;
  color: #444;
  font-size: 11px;
  font-weight: bold;
  line-height: 27px;
  list-style: none;
  margin: 0 2px;
  min-width: 46px;
  outline: none;
  padding: 0 18px 0 6px;
  text-decoration: none;
  vertical-align: middle;
  }
  .goog-flat-menu-button-disabled {
  background-color: #fff;
  border-color: #f3f3f3;
  color: #b8b8b8;
  cursor: default;
  }
  .goog-flat-menu-button.goog-flat-menu-button-hover {
  background-color: #f8f8f8;
  background-image: -webkit-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: -moz-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: -ms-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: -o-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-image: linear-gradient(top,#f8f8f8,#f1f1f1);
  -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.1);
  -moz-box-shadow: 0 1px 1px rgba(0,0,0,.1);
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
  border-color: #c6c6c6;
  color: #333;
  }
  .goog-flat-menu-button.goog-flat-menu-button-focused {
  border-color: #4d90fe;
  }
  .form-error .goog-flat-menu-button {
  border: 1px solid #dd4b39;
  }
  .form-error .goog-flat-menu-button-focused {
  border-color: #4d90fe;
  }
  .goog-flat-menu-button.goog-flat-menu-button-open,
  .goog-flat-menu-button.goog-flat-menu-button-active {
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
  -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
  background-color: #eee;
  background-image: -webkit-linear-gradient(top,#eee,#e0e0e0);
  background-image: -moz-linear-gradient(top,#eee,#e0e0e0);
  background-image: -ms-linear-gradient(top,#eee,#e0e0e0);
  background-image: -o-linear-gradient(top,#eee,#e0e0e0);
  background-image: linear-gradient(top,#eee,#e0e0e0);
  border: 1px solid #ccc;
  color: #333;
  z-index: 2;
  }
  .goog-flat-menu-button-caption {
  vertical-align: top;
  white-space: nowrap;
  }
  .goog-flat-menu-button-dropdown {
  border-color: #777 transparent;
  border-style: solid;
  border-width: 4px 4px 0;
  height: 0;
  width: 0;
  position: absolute;
  right: 5px;
  top: 12px;
  }
  .jfk-select .goog-flat-menu-button-dropdown {
  background: url(//ssl.gstatic.com/ui/v1/disclosure/grey-disclosure-arrow-up-down.png) center no-repeat;
  border: none;
  height: 11px;
  margin-top: -4px;
  width: 7px;
  }
  .goog-menu-nocheckbox .goog-menuitem,
  .goog-menu-noicon .goog-menuitem {
  padding-left: 16px;
  vertical-align: middle;
  }
  body ::-webkit-scrollbar {
  height: 16px;
  width: 16px;
  overflow: visible;
  }
  body ::-webkit-scrollbar-button {
  height: 0;
  width: 0;
  }
  body ::-webkit-scrollbar-track {
  background-clip: padding-box;
  border: solid transparent;
  border-width: 0 0 0 7px;
  }
  body ::-webkit-scrollbar-track:horizontal {
  border-width: 7px 0 0;
  }
  body ::-webkit-scrollbar-track:hover {
  background-color: rgba(0,0,0,.05);
  -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1);
  box-shadow: inset 1px 0 0 rgba(0,0,0,.1);
  }
  body ::-webkit-scrollbar-track:horizontal:hover {
  -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
  }
  body ::-webkit-scrollbar-track:active {
  background-color: rgba(0,0,0,.05);
  -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.14),inset -1px 0 0 rgba(0,0,0,.07);
  box-shadow: inset 1px 0 0 rgba(0,0,0,.14),inset -1px 0 0 rgba(0,0,0,.07);
  }
  body ::-webkit-scrollbar-track:horizontal:active {
  -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.14),inset 0 -1px 0 rgba(0,0,0,.07);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.14),inset 0 -1px 0 rgba(0,0,0,.07);
  }
  .jfk-scrollbar-dark::-webkit-scrollbar-track:hover {
  background-color: rgba(255,255,255,.1);
  -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,.2);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.2);
  }
  .jfk-scrollbar-dark::-webkit-scrollbar-track:horizontal:hover {
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  }
  .jfk-scrollbar-dark::-webkit-scrollbar-track:active {
  background-color: rgba(255,255,255,.1);
  -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,.25),inset -1px 0 0 rgba(255,255,255,.15);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.25),inset -1px 0 0 rgba(255,255,255,.15);
  }
  .jfk-scrollbar-dark::-webkit-scrollbar-track:horizontal:active {
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25),inset 0 -1px 0 rgba(255,255,255,.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25),inset 0 -1px 0 rgba(255,255,255,.15);
  }
  body ::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,.2);
  background-clip: padding-box;
  border: solid transparent;
  border-width: 0 0 0 7px;
  min-height: 28px;
  padding: 100px 0 0;
  -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.07);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.07);
  }
  body ::-webkit-scrollbar-thumb:horizontal {
  border-width: 7px 0 0;
  padding: 0 0 0 100px;
  -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1),inset -1px 0 0 rgba(0,0,0,.07);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.1),inset -1px 0 0 rgba(0,0,0,.07);
  }
  body ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,.4);
  -webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,.25);
  box-shadow: inset 1px 1px 1px rgba(0,0,0,.25);
  }
  body ::-webkit-scrollbar-thumb:active {
  background-color: rgba(0,0,0,.5);
  -webkit-box-shadow: inset 1px 1px 3px rgba(0,0,0,.35);
  box-shadow: inset 1px 1px 3px rgba(0,0,0,.35);
  }
  .jfk-scrollbar-dark::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,.3);
  -webkit-box-shadow: inset 1px 1px 0 rgba(255,255,255,.15),inset 0 -1px 0 rgba(255,255,255,.1);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.15),inset 0 -1px 0 rgba(255,255,255,.1);
  }
  .jfk-scrollbar-dark::-webkit-scrollbar-thumb:horizontal {
  -webkit-box-shadow: inset 1px 1px 0 rgba(255,255,255,.15),inset -1px 0 0 rgba(255,255,255,.1);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.15),inset -1px 0 0 rgba(255,255,255,.1);
  }
  .jfk-scrollbar-dark::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255,255,255,.6);
  -webkit-box-shadow: inset 1px 1px 1px rgba(255,255,255,.37);
  box-shadow: inset 1px 1px 1px rgba(255,255,255,.37);
  }
  .jfk-scrollbar-dark::-webkit-scrollbar-thumb:active {
  background-color: rgba(255,255,255,.75);
  -webkit-box-shadow: inset 1px 1px 3px rgba(255,255,255,.5);
  box-shadow: inset 1px 1px 3px rgba(255,255,255,.5);
  }
  .jfk-scrollbar-borderless::-webkit-scrollbar-track {
  border-width: 0 1px 0 6px
  }
  .jfk-scrollbar-borderless::-webkit-scrollbar-track:horizontal {
  border-width: 6px 0 1px
  }
  .jfk-scrollbar-borderless::-webkit-scrollbar-track:hover {
  background-color: rgba(0,0,0,.035);
  -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.14),inset -1px -1px 0 rgba(0,0,0,.07);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.14),inset -1px -1px 0 rgba(0,0,0,.07);
  }
  .jfk-scrollbar-borderless.jfk-scrollbar-dark::-webkit-scrollbar-track:hover {
  background-color: rgba(255,255,255,.07);
  -webkit-box-shadow: inset 1px 1px 0 rgba(255,255,255,.25),inset -1px -1px 0 rgba(255,255,255,.15);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.25),inset -1px -1px 0 rgba(255,255,255,.15);
  }
  .jfk-scrollbar-borderless::-webkit-scrollbar-thumb {
  border-width: 0 1px 0 6px;
  }
  .jfk-scrollbar-borderless::-webkit-scrollbar-thumb:horizontal {
  border-width: 6px 0 1px;
  }
  body ::-webkit-scrollbar-corner {
  background: transparent;
  }
  body::-webkit-scrollbar-track-piece {
  background-clip: padding-box;
  background-color: #f1f1f1;
  border: solid #fff;
  border-width: 0 0 0 3px;
  -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.14),inset -1px 0 0 rgba(0,0,0,.07);
  box-shadow: inset 1px 0 0 rgba(0,0,0,.14),inset -1px 0 0 rgba(0,0,0,.07);
  }
  body::-webkit-scrollbar-track-piece:horizontal {
  border-width: 3px 0 0;
  -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.14),inset 0 -1px 0 rgba(0,0,0,.07);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.14),inset 0 -1px 0 rgba(0,0,0,.07);
  }
  body::-webkit-scrollbar-thumb {
  border-width: 1px 1px 1px 5px;
  }
  body::-webkit-scrollbar-thumb:horizontal {
  border-width: 5px 1px 1px;
  }
  body::-webkit-scrollbar-corner {
  background-clip: padding-box;
  background-color: #f1f1f1;
  border: solid #fff;
  border-width: 3px 0 0 3px;
  -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.14);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.14);
  }
  .jfk-scrollbar::-webkit-scrollbar {
  height: 16px;
  overflow: visible;
  width: 16px;
  }
  .jfk-scrollbar::-webkit-scrollbar-button {
  height: 0;
  width: 0;
  }
  .jfk-scrollbar::-webkit-scrollbar-track {
  background-clip: padding-box;
  border: solid transparent;
  border-width: 0 0 0 7px;
  }
  .jfk-scrollbar::-webkit-scrollbar-track:horizontal {
  border-width: 7px 0 0;
  }
  .jfk-scrollbar::-webkit-scrollbar-track:hover {
  background-color: rgba(0,0,0,.05);
  -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1);
  box-shadow: inset 1px 0 0 rgba(0,0,0,.1);
  }
  .jfk-scrollbar::-webkit-scrollbar-track:horizontal:hover {
  -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
  }
  .jfk-scrollbar::-webkit-scrollbar-track:active {
  background-color: rgba(0,0,0,.05);
  -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.14),inset -1px 0 0 rgba(0,0,0,.07);
  box-shadow: inset 1px 0 0 rgba(0,0,0,.14),inset -1px 0 0 rgba(0,0,0,.07);
  }
  .jfk-scrollbar::-webkit-scrollbar-track:horizontal:active {
  -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.14),inset 0 -1px 0 rgba(0,0,0,.07);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.14),inset 0 -1px 0 rgba(0,0,0,.07);
  }
  .jfk-scrollbar-dark.jfk-scrollbar::-webkit-scrollbar-track:hover {
  background-color: rgba(255,255,255,.1);
  -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,.2);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.2);
  }
  .jfk-scrollbar-dark.jfk-scrollbar::-webkit-scrollbar-track:horizontal:hover {
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  }
  .jfk-scrollbar-dark.jfk-scrollbar::-webkit-scrollbar-track:active {
  background-color: rgba(255,255,255,.1);
  -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,.25),inset -1px 0 0 rgba(255,255,255,.15);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.25),inset -1px 0 0 rgba(255,255,255,.15);
  }
  .jfk-scrollbar-dark.jfk-scrollbar::-webkit-scrollbar-track:horizontal:active {
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25),inset 0 -1px 0 rgba(255,255,255,.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25),inset 0 -1px 0 rgba(255,255,255,.15);
  }
  .jfk-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,.2);
  background-clip: padding-box;
  border: solid transparent;
  border-width: 0 0 0 7px;
  min-height: 28px;
  padding: 100px 0 0;
  -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.07);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.07);
  }
  .jfk-scrollbar::-webkit-scrollbar-thumb:horizontal {
  border-width: 7px 0 0;
  padding: 0 0 0 100px;
  -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1),inset -1px 0 0 rgba(0,0,0,.07);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.1),inset -1px 0 0 rgba(0,0,0,.07);
  }
  .jfk-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,.4);
  -webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,.25);
  box-shadow: inset 1px 1px 1px rgba(0,0,0,.25);
  }
  .jfk-scrollbar::-webkit-scrollbar-thumb:active {
  background-color: rgba(0,0,0,0.5);
  -webkit-box-shadow: inset 1px 1px 3px rgba(0,0,0,0.35);
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.35);
  }
  .jfk-scrollbar-dark.jfk-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,.3);
  -webkit-box-shadow: inset 1px 1px 0 rgba(255,255,255,.15),inset 0 -1px 0 rgba(255,255,255,.1);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.15),inset 0 -1px 0 rgba(255,255,255,.1);
  }
  .jfk-scrollbar-dark.jfk-scrollbar::-webkit-scrollbar-thumb:horizontal {
  -webkit-box-shadow: inset 1px 1px 0 rgba(255,255,255,.15),inset -1px 0 0 rgba(255,255,255,.1);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.15),inset -1px 0 0 rgba(255,255,255,.1);
  }
  .jfk-scrollbar-dark.jfk-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255,255,255,.6);
  -webkit-box-shadow: inset 1px 1px 1px rgba(255,255,255,.37);
  box-shadow: inset 1px 1px 1px rgba(255,255,255,.37);
  }
  .jfk-scrollbar-dark.jfk-scrollbar::-webkit-scrollbar-thumb:active {
  background-color: rgba(255,255,255,.75);
  -webkit-box-shadow: inset 1px 1px 3px rgba(255,255,255,.5);
  box-shadow: inset 1px 1px 3px rgba(255,255,255,.5);
  }
  .jfk-scrollbar-borderless.jfk-scrollbar::-webkit-scrollbar-track {
  border-width: 0 1px 0 6px;
  }
  .jfk-scrollbar-borderless.jfk-scrollbar::-webkit-scrollbar-track:horizontal {
  border-width: 6px 0 1px;
  }
  .jfk-scrollbar-borderless.jfk-scrollbar::-webkit-scrollbar-track:hover {
  background-color: rgba(0,0,0,.035);
  -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.14),inset -1px -1px 0 rgba(0,0,0,.07);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.14),inset -1px -1px 0 rgba(0,0,0,.07);
  }
  .jfk-scrollbar-borderless.jfk-scrollbar-dark.jfk-scrollbar::-webkit-scrollbar-track:hover {
  background-color: rgba(255,255,255,.07);
  -webkit-box-shadow: inset 1px 1px 0 rgba(255,255,255,.25),inset -1px -1px 0 rgba(255,255,255,.15);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.25),inset -1px -1px 0 rgba(255,255,255,.15);
  }
  .jfk-scrollbar-borderless.jfk-scrollbar::-webkit-scrollbar-thumb {
  border-width: 0 1px 0 6px;
  }
  .jfk-scrollbar-borderless.jfk-scrollbar::-webkit-scrollbar-thumb:horizontal {
  border-width: 6px 0 1px;
  }
  .jfk-scrollbar::-webkit-scrollbar-corner {
  background: transparent;
  }
  body.jfk-scrollbar::-webkit-scrollbar-track-piece {
  background-clip: padding-box;
  background-color: #f1f1f1;
  border: solid #fff;
  border-width: 0 0 0 3px;
  -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.14),inset -1px 0 0 rgba(0,0,0,.07);
  box-shadow: inset 1px 0 0 rgba(0,0,0,.14),inset -1px 0 0 rgba(0,0,0,.07);
  }
  body.jfk-scrollbar::-webkit-scrollbar-track-piece:horizontal {
  border-width: 3px 0 0;
  -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.14),inset 0 -1px 0 rgba(0,0,0,.07);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.14),inset 0 -1px 0 rgba(0,0,0,.07);
  }
  body.jfk-scrollbar::-webkit-scrollbar-thumb {
  border-width: 1px 1px 1px 5px;
  }
  body.jfk-scrollbar::-webkit-scrollbar-thumb:horizontal {
  border-width: 5px 1px 1px;
  }
  body.jfk-scrollbar::-webkit-scrollbar-corner {
  background-clip: padding-box;
  background-color: #f1f1f1;
  border: solid #fff;
  border-width: 3px 0 0 3px;
  -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.14);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.14);
  }
  .errormsg {
  margin: .5em 0 0;
  display: block;
  color: #dd4b39;
  line-height: 17px;
  }
  .help-link {
  background: #dd4b39;
  padding: 0 5px;
  color: #fff;
  font-weight: bold;
  display: inline-block;
  -webkit-border-radius: 1em;
  -moz-border-radius: 1em;
  border-radius: 1em;
  text-decoration: none;
  position: relative;
  top: 0px;
  }
  .help-link:visited {
  color: #fff;
  }
  .help-link:hover {
  color: #fff;
  background: #c03523;
  text-decoration: none;
  }
  .help-link:active {
  opacity: 1;
  background: #ae2817;
  }
</style>
<style type="text/css">
  .main {
  width: 950px;
  }
  .signup-steps.step-1 h1 {
  text-align: left;
  }
  .signup-steps.step-2 h1 {
  text-align: center;
  }
  .signup-steps.step-3 h1 {
  text-align: right;
  }
  .signup-steps ol {
  position: relative;
  margin: 0 0 45px;
  height: 13px;
  border-bottom: 1px solid #ebebeb;
  }
  .signup-steps ol li {
  position: absolute;
  display: inline-block;
  height: 25px;
  width: 25px;
  border: 1px solid #ebebeb;
  background: #fff;
  color: #666;
  line-height: 25px;
  text-align: center;
  font-weight: bold;
  -webkit-border-radius: 1em;
  -moz-border-radius: 1em;
  border-radius: 1em;
  }
  .signup-steps ol li.step-1 {
  left: 0;
  }
  .signup-steps ol li.step-2 {
  margin-left: -14px;
  left: 50%;
  }
  .signup-steps ol li.step-3 {
  right: 0;
  }
  .signup-steps ol li.selected {
  color: #fff;
  background: #dd4b39;
  border: 0;
  }
</style>
<style type="text/css">
  .signuponepage .sign-up {
  width: 362px;
  float: right;
  }
  .signuponepage .signup-box {
  margin: 0;
  padding: 25px;
  background: #f1f1f1;
  border: 1px solid #e5e5e5;
  }
  .signuponepage .side-content {
  margin: 0 420px 0 0;
  }
  .signuponepage .side-content .benefit {
  margin: 0 0 2.5em;
  overflow: hidden;
  }
  .signuponepage .side-content .benefit img:first-child {
  float: left;
  border: 1px solid #e5e5e5;
  }
  .signuponepage .side-content .benefit div {
  margin: 0 0 0 275px;
  }
  .signuponepage .side-content .benefit div h2 {
  color: #555;
  }
  .signuponepage .side-content .benefit div p {
  color: #999;
  line-height: 19px;
  }
  .signuponepage .side-content .benefit div p:last-child {
  margin: 0;
  }
  .signuponepage .why-information {
  margin: 1em 25px 0;
  color: #999;
  }
  .signuponepage input[type=text],
  .signuponepage input[type=password] {
  direction: ltr;
  }
  .signuponepage input[type=tel],
  .signuponepage input[type=text],
  .signuponepage input[type=password],
  .signuponepage select {
  width: 100%;
  }
  .signuponepage .form-element {
  position: relative;
  margin: 0 0 1.5em;
  }
  .signuponepage .form-element label {
  display: inline-block;
  width: 100%;
  position: relative;
  }
  .signuponepage .form-element strong {
  margin: 0 0 .5em;
  display: inline-block;
  width: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  }
  .signuponepage .form-element.multi-field label strong {
  display: none;
  }
  .signuponepage .form-element .placeholder-text {
  position: absolute;
  top: 8px;
  left: 10px;
  color: #999;
  display: none;
  }
  .signuponepage .form-element.name label.firstname {
  width: 150px;
  margin-right: 5px;
  }
  .signuponepage .form-element.name label.lastname {
  width: 150px;
  }
  .signuponepage .form-element.name label.firstname input,
  .signuponepage .form-element.name label.lastname input {
  direction: ltr;
  }
  .signuponepage .form-element.name .placeholder-text {
  left: 10px;
  }
  .signuponepage .form-element.birthday label {
  margin-right: 5px;
  }
  .signuponepage .form-element.birthday label.year {
  width: 97px;
  margin-right: 0;
  }
  .signuponepage .form-element.birthday label.month {
  width: 135px;
  }
  .signuponepage .form-element.birthday label.day {
  width: 60px;
  }
  .signuponepage .form-element.gmail-address input {
  direction: ltr;
  }
  .signuponepage .form-element .atgmail {
  position: absolute;
  top: 27px;
  right: 10px;
  color: #999;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  direction: ltr;
  }
  .signuponepage .username-suggestions {
  margin: .5em 0 0;
  color: #666;
  }
  .signuponepage .username-suggestions a {
  display: inline-block;
  cursor: pointer;
  margin-left: 1em;
  }
  .signuponepage .form-element.no-recovery-email label strong {
  color: #797979;
  }
  .signuponepage .form-element .set-homepage-explanation {
  margin-bottom: 20px;
  color: #797979;
  }
  .signuponepage .form-element.terms-of-service input[type=checkbox],
  .signuponepage .form-element.personalization input[type=checkbox],
  .signuponepage .form-element.recovery-email input[type=checkbox],
  .signuponepage .form-element.set-homepage input[type=checkbox] {
  float: left;
  margin: 2px 0 0;
  }
  .signuponepage .form-element.terms-of-service label strong,
  .signuponepage .form-element.personalization label strong,
  .signuponepage .form-element.no-recovery-email label strong,
  .signuponepage .form-element.set-homepage label .set-homepage-explanation strong {
  font-weight: normal;
  line-height: 17px;
  display: block;
  margin: 0 0 0 28px;
  width: 282px;
  }
  .signuponepage .form-element.nextstep-button {
  text-align: right;
  margin: 0;
  }
  .signuponepage .terms-of-service .errormsg {
  margin-left: 28px;
  }
  .signuponepage .infomsg {
  color: #797979;
  line-height: 17px;
  margin: 0.5em 0 0;
  display: none;
  }
  .jfk-bubble {
  -webkit-box-shadow: 0 1px 3px rgba(0,0,0,.2);
  -moz-box-shadow: 0 1px 3px rgba(0,0,0,.2);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  background-color: #fff;
  border: 1px solid;
  position: absolute;
  z-index: 1201 !important;
  border-color: #bbb #bbb #a8a8a8;
  padding: 16px;
  width: 255px;
  line-height: 17px;
  }
  .jfk-bubble-arrow {
  position: absolute
  }
  .jfk-bubble-arrow .jfk-bubble-arrowimplbefore,.jfk-bubble-arrow .jfk-bubble-arrowimplafter {
  display:block;
  height:0;
  position:absolute;
  width:0
  }
  .jfk-bubble-arrow .jfk-bubble-arrowimplbefore {
  border:9px solid
  }
  .jfk-bubble-arrow .jfk-bubble-arrowimplafter {
  border:8px solid
  }
  .jfk-bubble-arrowdown {
  bottom:0
  }
  .jfk-bubble-arrowup {
  top:-9px
  }
  .jfk-bubble-arrowleft {
  left:-9px
  }
  .jfk-bubble-arrowright {
  right:0
  }
  .jfk-bubble-arrowdown .jfk-bubble-arrowimplbefore,.jfk-bubble-arrowup .jfk-bubble-arrowimplbefore {
  border-color:#bbb transparent;
  left:-9px
  }
  .jfk-bubble-arrowdown .jfk-bubble-arrowimplbefore {
  border-color:#a8a8a8 transparent
  }
  .jfk-bubble-arrowdown .jfk-bubble-arrowimplafter,.jfk-bubble-arrowup .jfk-bubble-arrowimplafter {
  border-color:#fff transparent;
  left:-8px
  }
  .jfk-bubble-arrowdown .jfk-bubble-arrowimplbefore {
  border-bottom-width:0
  }
  .jfk-bubble-arrowdown .jfk-bubble-arrowimplafter {
  border-bottom-width:0
  }
  .jfk-bubble-arrowup .jfk-bubble-arrowimplbefore {
  border-top-width:0
  }
  .jfk-bubble-arrowup .jfk-bubble-arrowimplafter {
  border-top-width:0;
  top:1px
  }
  .jfk-bubble-arrowleft .jfk-bubble-arrowimplbefore,.jfk-bubble-arrowright .jfk-bubble-arrowimplbefore {
  border-color:transparent #bbb;
  top:-9px
  }
  .jfk-bubble-arrowleft .jfk-bubble-arrowimplafter,.jfk-bubble-arrowright .jfk-bubble-arrowimplafter {
  border-color:transparent #fff;
  top:-8px
  }
  .jfk-bubble-arrowleft .jfk-bubble-arrowimplbefore {
  border-left-width:0
  }
  .jfk-bubble-arrowleft .jfk-bubble-arrowimplafter {
  border-left-width:0;
  left:1px
  }
  .jfk-bubble-arrowright .jfk-bubble-arrowimplbefore {
  border-right-width:0
  }
  .jfk-bubble-arrowright .jfk-bubble-arrowimplafter {
  border-right-width:0
  }
  .jfk-bubble.jfk-bubble-promo {
  background-color:#f9edbe;
  border:1px solid #f0c36d
  }
  .jfk-bubble-promo .jfk-bubble-arrowdown .jfk-bubble-arrowimplbefore,.jfk-bubble-promo .jfk-bubble-arrowup .jfk-bubble-arrowimplbefore {
  border-color:#f0c36d transparent
  }
  .jfk-bubble-promo .jfk-bubble-arrowdown .jfk-bubble-arrowimplafter,.jfk-bubble-promo .jfk-bubble-arrowup .jfk-bubble-arrowimplafter {
  border-color:#f9edbe transparent
  }
  .jfk-bubble-promo .jfk-bubble-arrowleft .jfk-bubble-arrowimplbefore,.jfk-bubble-promo .jfk-bubble-arrowright .jfk-bubble-arrowimplbefore {
  border-color:transparent #f0c36d
  }
  .jfk-bubble-promo .jfk-bubble-arrowleft .jfk-bubble-arrowimplafter,.jfk-bubble-promo .jfk-bubble-arrowright .jfk-bubble-arrowimplafter {
  border-color:transparent #f9edbe
  }
  .password-strength p {
  margin: 0 0 4px;
  }
  .password-strength .meter {
  height: 5px;
  background: #f5f5f5;
  }
  .password-strength .meter #strength-bar {
  display: block;
  height: 100%;
  width: 0px;
  }
  .password-strength .meter .short {
  background: #a03;
  }
  .password-strength .meter .weak {
  background: #a03;
  }
  .password-strength .meter .fair {
  background: #fc3;
  }
  .password-strength .meter .good {
  background: #2d98f3;
  }
  .password-strength .meter .strong {
  background: #76c261;
  }
  .password-strength .meter .notRated {
  background: #666;
  }
  .talk_number_input {
  margin: 0;
  width: 100%;
  color: #333;
  text-decoration: none;
  list-style: none;
  vertical-align: top;
  cursor: pointer;
  outline: none;
  -moz-outline: none;
  background-color: #fff;
  border-collapse: collapse;
  padding: 0;
  }
  .talk_number_input th {
  border: 1px solid #d9d9d9;
  border-top: 1px solid #c0c0c0;
  border-right-width: 0;
  }
  .talk_number_input td {
  border: 1px solid #d9d9d9;
  border-top: 1px solid #c0c0c0;
  border-left-width: 0;
  vertical-align: middle;
  }
  .talk_number_input input {
  border-width: 0;
  margin: 0;
  padding-top: 4px;
  outline: none;
  }
  .talk_number_input-menu {
  padding: 0;
  outline: none;
  width: 40px;
  }
  .talk-select-country {
  padding: 8px 2px 0 5px;
  height: 21px;
  vertical-align: middle;
  outline: none;
  }
  *+html .talk-select-country {
  *height: 25px;
  *padding-top: 3px;
  }
  .talk-select-country-dropdown {
  background: no-repeat url(//ssl.gstatic.com/accounts/ui/phone-input-arrow.png) center center;
  width: 10px;
  margin-left: 3px;
  }
  .talk-select-country-hover {
  background-color: #eee;
  }
  div.talk-select-country-menu {
  height: 208px;
  overflow-y: auto;
  overflow-x: hidden;
  }
  .talk-select-country-menu .goog-menuitem {
  white-space: nowrap;
  }
  span.talk-select-country-name {
  margin: 0 5px 0 7px;
  }
  span.talk-select-country-code {
  color: #666;
  }
  .talk-flag {
  background: no-repeat url(//ssl.gstatic.com/accounts/ui/flags.gif) 0 0;
  width: 16px;
  height: 11px;
  overflow: hidden;
  margin-left: 4px;
  }
  .talk-select-country-focused {
  background-color: #eee;
  }
  #BirthMonth .goog-flat-menu-button {
  width: 108px;
  margin: -3px 0 0 0;
  }
  #Gender .goog-flat-menu-button {
  width: 285px;
  margin: 0;
  }
  #CountryCode {
  position: relative;
  }
  #CountryCode .goog-menu {
  height: 200px;
  overflow: auto;
  top: 0 !important;
  z-index: 1202;
  }
  #CountryCode .goog-flat-menu-button {
  width: 285px;
  margin: 0;
  overflow: hidden;
  }
</style>
<style type="text/css">
  .recaptcha-widget#recaptcha_widget {
  width: 310px;
  background: #fff;
  border: 1px solid #e5e5e5;
  }
  .recaptcha-widget #recaptcha_image {
  padding: 5px;
  height: 57px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  overflow: hidden;
  }
  .recaptcha-widget #recaptcha_image a {
  line-height: 17px;
  }
  .recaptcha-widget .recaptcha-main {
  position: relative;
  padding: 13px;
  }
  .recaptcha-widget .recaptcha-main .errormsg {
  margin: 0 0 .5em;
  }
  .recaptcha-widget .recaptcha-main label strong {
  color: #222;
  display: block;
  margin: 0 0 .4em;
  }
  .recaptcha-widget .recaptcha-main input[type=text] {
  width: 200px;
  }
  .recaptcha-widget .recaptcha-buttons {
  position: absolute;
  bottom: 16px;
  right: 11px;
  }
  .recaptcha-widget .recaptcha-buttons a {
  display: inline-block;
  height: 21px;
  width: 21px;
  margin-left: 2px;
  background: #fff;
  background-position: center center;
  background-repeat: no-repeat;
  line-height: 0;
  opacity: .55;
  }
  .recaptcha-widget .recaptcha-buttons a:hover {
  opacity: .8;
  }
  .recaptcha-widget #recaptcha_reload_btn {
  background: url(//ssl.gstatic.com/accounts/recaptcha-sprite.png) -63px;
  }
  .recaptcha-widget #recaptcha_switch_audio_btn {
  background: url(//ssl.gstatic.com/accounts/recaptcha-sprite.png) -42px;
  }
  .recaptcha-widget #recaptcha_switch_img_btn {
  background: url(//ssl.gstatic.com/accounts/recaptcha-sprite.png) -21px;
  }
  .recaptcha-widget #recaptcha_whatsthis_btn {
  background: url(//ssl.gstatic.com/accounts/recaptcha-sprite.png);
  }
  .recaptcha-widget .recaptcha-buttons span {
  position: absolute;
  left: -99999em;
  }
  .recaptcha-widget.recaptcha_is_showing_audio .recaptcha_only_if_image,
  .recaptcha-widget.recaptcha_isnot_showing_audio .recaptcha_only_if_audio {
  display: none !important;
  }
</style>
  <noscript>
  <style type="text/css">
  .signuponepage .infomsg {
  display: block;
  }
  </style>
  </noscript>
  </head>
  <body>
  <div class="wrapper">
  <div class="google-header-bar">
  <div class="header content clearfix">
  <img class="logo" src="//ssl.gstatic.com/images/logos/google_logo_41.png" alt="Google">
  <span class="signin-button">
  <a id="link-signin" class="g-button" href="https://accounts.google.com/ServiceLogin?continue=http%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26new%3Dtrue%26nomobiletemp%3D1%26hl%3Den_US%26next%3D%252Fmy_videos_upload&service=youtube&ltmpl=sso" >Sign in</a>
  </span>
  </div>
  </div>
  <div class="signuponepage main content clearfix">
  <div class="signup-steps step-1 clearfix">
  <h1 class="redtext">Create a new Google Account</h1>
  <ol>
  <li class="step-1 selected">1</li>
  <li class="step-2">2</li>
  <li class="step-3">3</li>
  </ol>
  </div>
  <div class="clearfix">
  <div class="sign-up">
  <div class="signup-box">
  <form class="createaccount-form" id="createaccount" name="createaccount" action="SignUp?dsh=3370503329864324728&amp;service=youtube" method="post">
  <input type="hidden" 
  
    
  name="service" id="service" value="youtube"

  
 >
  <input type="hidden" 
  
    
  name="hl" id="hl" value="en_US"

  
 >
  <input type="hidden" 
  
    
  name="continue" id="continue" value="http://www.youtube.com/signin?action_handle_signin=true&amp;new=true&amp;nomobiletemp=1&amp;hl=en_US&amp;next=%2Fmy_videos_upload"

  
 >
  <input type="hidden" 
  
    
  name="ltmpl" id="ltmpl" value="sso"

  
 >
  <input type="hidden" name="timeStmp" id="timeStmp"
       value='1337543612679'/>
<input type="hidden" name="secTok" id="secTok"
       value='.AG5fkS88gqIg3Dd-I3tzi8hZ9uRmKSFQZA=='/>
  <input type="hidden" 
  
    
  name="dsh" id="dsh" value="3370503329864324728"

  
 >
  <input type="hidden" name="ktl" id="ktl" value="">
  <input type="hidden" name="ktf" id="ktf">
<input type="hidden" id="_utf8" name="_utf8" value="&#9731;"/>
  <input type="hidden" name="bgresponse" id="bgresponse" value="js_disabled">
  <div class="form-element multi-field name" id="name-form-element">
  <fieldset>
  <legend><strong>Name</strong></legend>
  <label class="firstname">
  <strong>First name</strong>
  <input type="text" value=""  
  
    
  name="FirstName" id="FirstName" value=""

  
 spellcheck="false">
  <span class="placeholder-text" id="firstname-placeholder">First</span>
  </label>
  <label class="lastname">
  <strong>Last name</strong>
  <input type="text" value=""  
  
    
  name="LastName" id="LastName" value=""

  
 spellcheck="false">
  <span class="placeholder-text" id="lastname-placeholder">Last</span>
  </label>
  </fieldset>
  <div class="infomsg" id="name-infomessage">
  </div>
  <span role="alert" class="errormsg" id="errormsg_0_FirstName">
  </span>
  <span role="alert" class="errormsg" id="errormsg_0_LastName">
  </span>
  </div>
  <div class="form-element gmail-address" id="gmail-address-form-element">
  <label>
  <strong>
  Choose a Google username
  </strong>
  <input type="text" maxlength="30" autocomplete="off"  
  
    
  name="GmailAddress" id="GmailAddress" value=""

  
 spellcheck="false">
  <span class="atgmail">@gmail.com</span>
  </label>
  <div class="infomsg" id="gmail-address-infomessage">
  Choose your Google username. Later you’ll have a chance to choose your YouTube username. <a target="_blank" id="YoutubeGmailTip" href="http://www.google.com/support/youtube/bin/answer.py?answer=2381795&hl=en">Learn more</a><br><br>You can use letters, numbers, and periods.
  </div>
  <div id="username-errormsg-and-suggestions">
  <span class="errormsg" id="errormsg_0_GmailAddress">
  </span>
  <div class="username-suggestions" id="username-suggestions">
  </div>
  </div>
  </div>
  <div class="form-element" id="password-form-element">
  <label>
  <strong>Create a password</strong>
  <input type="password" name="Passwd" id="Passwd" >
  </label>
  <div class="infomsg" id="password-infomessage">
  Use at least 8 characters. Don’t use a password from another site, or something too obvious like your pet’s name. <a id="PasswdLink" target="_blank" href="http://www.google.com/support/accounts/bin/answer.py?answer=32040&hl=en">Why?</a>
  </div>
  <span role="alert" class="errormsg" id="errormsg_0_Passwd">
  </span>
  </div>
  <div class="form-element" id="confirm-password-form-element">
  <label>
  <strong>Confirm your password</strong>
  <input type="password" name="PasswdAgain" id="PasswdAgain" >
  </label>
  <span role="alert" class="errormsg" id="errormsg_0_PasswdAgain">
  </span>
  </div>
  <div class="form-element multi-field birthday" id="birthday-form-element">
  <fieldset>
  <legend><strong id="BirthdayLabel">Birthday</strong></legend>
  <label class="month">
  <span id="BirthMonthHolder" >
  <select id="BirthMonth" name="BirthMonth">
  <option value="">Month</option>
  <option value="01" >January</option>
  <option value="02" >February</option>
  <option value="03" >March</option>
  <option value="04" >April</option>
  <option value="05" >May</option>
  <option value="06" >June</option>
  <option value="07" >July</option>
  <option value="08" >August</option>
  <option value="09" >September</option>
  <option value="10" >October</option>
  <option value="11" >November</option>
  <option value="12" >December</option>
  </select>
  </span>
  </label>
  <label class="day">
  <strong>Day</strong>
  <input type="text" maxlength="2" value=""  
  
    
  name="BirthDay" id="BirthDay" value=""

  
>
  <span class="placeholder-text" id="birthday-placeholder">Day</span>
  </label>
  <label class="year">
  <strong>Year</strong>
  <input type="text" maxlength="4" value=""  
  
    
  name="BirthYear" id="BirthYear" value=""

  
>
  <span class="placeholder-text" id="birthyear-placeholder">Year</span>
  </label>
  </fieldset>
  <span role="alert" class="errormsg" id="errormsg_0_BirthMonth">
  </span>
  <span role="alert" class="errormsg" id="errormsg_0_BirthDay">
  </span>
  <span role="alert" class="errormsg" id="errormsg_0_BirthYear">
  </span>
  </div>
  <div class="form-element" id="gender-form-element">
  <label>
  <strong id="GenderLabel">Gender</strong>
  <div id="GenderHolder" >
  <select id="Gender" name="Gender">
  <option value="">I am...</option>
  <option value="FEMALE" >Female</option>
  <option value="MALE" >Male</option>
  <option value="OTHER" >Other</option>
  </select>
  </div>
  </label>
  <span role="alert" class="errormsg" id="errormsg_0_Gender">
  </span>
  </div>
  <div class="form-element" id="phone-form-element">
  <label for="RecoveryPhoneNumber">
  <strong id="RecoveryPhoneNumberLabel">Mobile phone</strong>
  </label>
  <input type="hidden" value="US" 
  
    
  name="RecoveryPhoneCountry" id="RecoveryPhoneCountry" value=""

  
>
  <input type="tel" tabindex="0" 
  
    
  name="RecoveryPhoneNumber" id="RecoveryPhoneNumber" value=""

  
 >
  <div class="infomsg" id="phone-infomessage">
  Your phone number helps us with things like keeping your account secure. For example, we can send you a text message to help you access your account if you ever forget your password.
  </div>
  <span role="alert" class="errormsg" id="errormsg_0_RecoveryPhoneNumber">
  </span>
  </div>
  <div class="form-element recovery-email" id="recovery-email-form-element">
  <label>
  <strong>Your current email address</strong>
  <input type="text" 
  
    
  name="RecoveryEmailAddress" id="RecoveryEmailAddress" value=""

  
   spellcheck="false">
  </label>
  <div class="infomsg" id="recovery-email-infomessage">
  We will use this address for things like keeping your account secure. For example, we can send you an email alert if we see unusual activity in your account.
  </div>
  <span role="alert" class="errormsg" id="errormsg_0_RecoveryEmailAddress">
  </span>
  </div>
  <div class="form-element">
  <strong>
  Prove you’re not a robot
  </strong>
<input type="hidden" id="signuptoken"
       name="signuptoken"
       value="03AHJ_VuuuITxT9lSeR7LGe7Mo8HZw1m2BqoNs90Eta6URTWTnc6MepOgO8JGUHXDGhUXy2nbUMFYKlyTACkBYE0TausL0YEL0QVMQf80vmBK8sAQVyLu5CwbZcGzE1NqVeAo7fj7D63XiRLCMiBA3RGG9nzWZBHTTqw">
<input type="hidden" id="signuptoken_audio"
       name="signuptoken_audio"
       value="03AHJ_VuvbhIoI7ZeuGuK4gF_tWc3WLQfLGHRoz1LBWHRmEJG8yx7RzWEL9J-7T6dtJbfrUdnZajSo5kiwh5QR_qEuve4K2Uzx3v9cgZEg4xXpqn1vzbBEM3phG8KW7NWjk5T8IzC3kUAgPDKNDUFu-aF8RJAgNeQv5pP-csIeE7s9_IhW3nggN7E">
<input type="hidden" name="signupcaptchaStats"
       value="_4xtGiALDXLA0vR2-IUy_XT_Lo24fSX-3Kg1yBkdTy0:2ZebwDwWmZpsD9AqJIqZXA">
<input type="hidden" name="recaptchaKeyVersion"
       value="0">
<span id="recaptcha_challenge_field_holder" style="display: none">
  <input type="hidden" name="recaptcha_challenge_field" id="recaptcha_challenge_field"
         value="03AHJ_VuuuITxT9lSeR7LGe7Mo8HZw1m2BqoNs90Eta6URTWTnc6MepOgO8JGUHXDGhUXy2nbUMFYKlyTACkBYE0TausL0YEL0QVMQf80vmBK8sAQVyLu5CwbZcGzE1NqVeAo7fj7D63XiRLCMiBA3RGG9nzWZBHTTqw">
</span>
<div id="recaptcha_widget" class="recaptcha-widget recaptcha_isnot_showing_audio recaptcha_is_building_widget">
  <div id="recaptcha_image">
  <img src="https://www.google.com/recaptcha/api/image?c=03AHJ_VuuuITxT9lSeR7LGe7Mo8HZw1m2BqoNs90Eta6URTWTnc6MepOgO8JGUHXDGhUXy2nbUMFYKlyTACkBYE0TausL0YEL0QVMQf80vmBK8sAQVyLu5CwbZcGzE1NqVeAo7fj7D63XiRLCMiBA3RGG9nzWZBHTTqw"
         width="300" height="57"
         alt="Visual verification">
  </div>
  <div class="recaptcha-main">
  <label>
  <strong>
  <span id="recaptcha_instructions_image" class="recaptcha_only_if_image">
  Type the two pieces of text:
  </span>
  <span id="recaptcha_instructions_audio" class="recaptcha_only_if_audio">
  Type what you hear:
  </span>
  </strong>
  <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" >
  </label>
  <div class="recaptcha-buttons">
  <a id="recaptcha_reload_btn" href="javascript:Recaptcha.reload()"
         title="Get a new challenge">
  <span>
  Get a new challenge
  </span>
  </a>
  <a id="recaptcha_switch_audio_btn" class="recaptcha_only_if_image"
         href="https://www.google.com/recaptcha/api/image?c=03AHJ_VuvbhIoI7ZeuGuK4gF_tWc3WLQfLGHRoz1LBWHRmEJG8yx7RzWEL9J-7T6dtJbfrUdnZajSo5kiwh5QR_qEuve4K2Uzx3v9cgZEg4xXpqn1vzbBEM3phG8KW7NWjk5T8IzC3kUAgPDKNDUFu-aF8RJAgNeQv5pP-csIeE7s9_IhW3nggN7E" target="_blank"
         title="Get an audio challenge">
  <span>
  Get an audio challenge
  "
  </span>
  </a>
  <a id="recaptcha_switch_img_btn" class="recaptcha_only_if_audio"
         href="javascript:Recaptcha.switch_type('image')"
         title="Get a visual challenge">
  <span>
  Get a visual challenge
  </span>
  </a>
  <a id="recaptcha_whatsthis_btn" target="_blank"
         href="https://www.google.com/recaptcha/help"
         title="Help">
  <span>Help</span>
  </a>
  </div>
  </div>
</div>
  </div>
  <div class="form-element" id="location-form-element">
  <label>
  <strong id="CountryCodeLabel">Location</strong>
  <div id="CountryCodeHolder" >
  <select id="CountryCode" name="CountryCode">
  <option value="AF"
                            
                            >
  Afghanistan (‫افغانستان‬‎)
  </option>
  <option value="AX"
                            
                            >
  Åland Islands
  </option>
  <option value="AL"
                            
                            >
  Albania (Shqipëria)
  </option>
  <option value="DZ"
                            
                            >
  Algeria (‫الجزائر‬‎)
  </option>
  <option value="AS"
                            
                            >
  American Samoa
  </option>
  <option value="AD"
                            
                            >
  Andorra
  </option>
  <option value="AO"
                            
                            >
  Angola
  </option>
  <option value="AI"
                            
                            >
  Anguilla
  </option>
  <option value="AQ"
                            
                            >
  Antarctica
  </option>
  <option value="AG"
                            
                            >
  Antigua and Barbuda
  </option>
  <option value="AR"
                            
                            >
  Argentina
  </option>
  <option value="AM"
                            
                            >
  Armenia (Հայաստան)
  </option>
  <option value="AW"
                            
                            >
  Aruba
  </option>
  <option value="AU"
                            
                            >
  Australia
  </option>
  <option value="AT"
                            
                            >
  Austria (Österreich)
  </option>
  <option value="AZ"
                            
                            >
  Azerbaijan (Azərbaycan)
  </option>
  <option value="BS"
                            
                            >
  Bahamas
  </option>
  <option value="BH"
                            
                            >
  Bahrain (‫البحرين‬‎)
  </option>
  <option value="BD"
                            
                            >
  Bangladesh (বাংলাদেশ)
  </option>
  <option value="BB"
                            
                            >
  Barbados
  </option>
  <option value="BY"
                            
                            >
  Belarus (Белару́сь)
  </option>
  <option value="BE"
                            
                            >
  Belgium (België)
  </option>
  <option value="BZ"
                            
                            >
  Belize
  </option>
  <option value="BJ"
                            
                            >
  Benin (Bénin)
  </option>
  <option value="BM"
                            
                            >
  Bermuda
  </option>
  <option value="BT"
                            
                            >
  Bhutan (འབྲུག་ཡུལ)
  </option>
  <option value="BO"
                            
                            >
  Bolivia
  </option>
  <option value="BA"
                            
                            >
  Bosnia and Herzegovina (Bosna i Hercegovina)
  </option>
  <option value="BW"
                            
                            >
  Botswana
  </option>
  <option value="BV"
                            
                            >
  Bouvet Island
  </option>
  <option value="BR"
                            
                            >
  Brazil (Brasil)
  </option>
  <option value="IO"
                            
                            >
  British Indian Ocean Territory
  </option>
  <option value="VG"
                            
                            >
  British Virgin Islands
  </option>
  <option value="BN"
                            
                            >
  Brunei (Brunei Darussalam)
  </option>
  <option value="BG"
                            
                            >
  Bulgaria (България)
  </option>
  <option value="BF"
                            
                            >
  Burkina Faso
  </option>
  <option value="BI"
                            
                            >
  Burundi (Uburundi)
  </option>
  <option value="KH"
                            
                            >
  Cambodia (Kampuchea)
  </option>
  <option value="CM"
                            
                            >
  Cameroon (Cameroun)
  </option>
  <option value="CA"
                            
                            >
  Canada
  </option>
  <option value="CV"
                            
                            >
  Cape Verde (Cabo Verde)
  </option>
  <option value="KY"
                            
                            >
  Cayman Islands
  </option>
  <option value="CF"
                            
                            >
  Central African Republic (République Centrafricaine)
  </option>
  <option value="TD"
                            
                            >
  Chad (Tchad)
  </option>
  <option value="CL"
                            
                            >
  Chile
  </option>
  <option value="CN"
                            
                            >
  China (中国)
  </option>
  <option value="CX"
                            
                            >
  Christmas Island
  </option>
  <option value="CC"
                            
                            >
  Cocos [Keeling] Islands
  </option>
  <option value="CO"
                            
                            >
  Colombia
  </option>
  <option value="KM"
                            
                            >
  Comoros (Comores)
  </option>
  <option value="CD"
                            
                            >
  Congo [DRC]
  </option>
  <option value="CG"
                            
                            >
  Congo [Republic]
  </option>
  <option value="CK"
                            
                            >
  Cook Islands
  </option>
  <option value="CR"
                            
                            >
  Costa Rica
  </option>
  <option value="CI"
                            
                            >
  Côte d’Ivoire
  </option>
  <option value="HR"
                            
                            >
  Croatia (Hrvatska)
  </option>
  <option value="CU"
                            
                            >
  Cuba
  </option>
  <option value="CY"
                            
                            >
  Cyprus (Κυπρος)
  </option>
  <option value="CZ"
                            
                            >
  Czech Republic (Česko)
  </option>
  <option value="DK"
                            
                            >
  Denmark (Danmark)
  </option>
  <option value="DJ"
                            
                            >
  Djibouti
  </option>
  <option value="DM"
                            
                            >
  Dominica
  </option>
  <option value="DO"
                            
                            >
  Dominican Republic
  </option>
  <option value="EC"
                            
                            >
  Ecuador
  </option>
  <option value="EG"
                            
                            >
  Egypt (‫مصر‬‎)
  </option>
  <option value="SV"
                            
                            >
  El Salvador
  </option>
  <option value="GQ"
                            
                            >
  Equatorial Guinea (Guinea Ecuatorial)
  </option>
  <option value="ER"
                            
                            >
  Eritrea (Ertra)
  </option>
  <option value="EE"
                            
                            >
  Estonia (Eesti)
  </option>
  <option value="ET"
                            
                            >
  Ethiopia (Ityop&#39;iya)
  </option>
  <option value="FK"
                            
                            >
  Falkland Islands [Islas Malvinas]
  </option>
  <option value="FO"
                            
                            >
  Faroe Islands
  </option>
  <option value="FJ"
                            
                            >
  Fiji
  </option>
  <option value="FI"
                            
                            >
  Finland (Suomi)
  </option>
  <option value="FR"
                            
                            >
  France
  </option>
  <option value="GF"
                            
                            >
  French Guiana
  </option>
  <option value="PF"
                            
                            >
  French Polynesia
  </option>
  <option value="TF"
                            
                            >
  French Southern Territories
  </option>
  <option value="GA"
                            
                            >
  Gabon
  </option>
  <option value="GM"
                            
                            >
  Gambia
  </option>
  <option value="GE"
                            
                            >
  Georgia (საქართველო)
  </option>
  <option value="DE"
                            
                            >
  Germany (Deutschland)
  </option>
  <option value="GH"
                            
                            >
  Ghana
  </option>
  <option value="GI"
                            
                            >
  Gibraltar
  </option>
  <option value="GR"
                            
                            >
  Greece (Ελλάς)
  </option>
  <option value="GL"
                            
                            >
  Greenland
  </option>
  <option value="GD"
                            
                            >
  Grenada
  </option>
  <option value="GP"
                            
                            >
  Guadeloupe
  </option>
  <option value="GU"
                            
                            >
  Guam
  </option>
  <option value="GT"
                            
                            >
  Guatemala
  </option>
  <option value="GG"
                            
                            >
  Guernsey
  </option>
  <option value="GN"
                            
                            >
  Guinea (Guinée)
  </option>
  <option value="GW"
                            
                            >
  Guinea-Bissau (Guiné-Bissau)
  </option>
  <option value="GY"
                            
                            >
  Guyana
  </option>
  <option value="HT"
                            
                            >
  Haiti (Haïti)
  </option>
  <option value="HM"
                            
                            >
  Heard Island and McDonald Islands
  </option>
  <option value="HN"
                            
                            >
  Honduras
  </option>
  <option value="HK"
                            
                            >
  Hong Kong
  </option>
  <option value="HU"
                            
                            >
  Hungary (Magyarország)
  </option>
  <option value="IS"
                            
                            >
  Iceland (Ísland)
  </option>
  <option value="IN"
                            
                            >
  India
  </option>
  <option value="ID"
                            
                            >
  Indonesia
  </option>
  <option value="IR"
                            
                            >
  Iran (‫ایران‬‎)
  </option>
  <option value="IQ"
                            
                            >
  Iraq (‫العراق‬‎)
  </option>
  <option value="IE"
                            
                            >
  Ireland
  </option>
  <option value="IM"
                            
                            >
  Isle of Man
  </option>
  <option value="IL"
                            
                            >
  Israel (‫ישראל‬‎)
  </option>
  <option value="IT"
                            
                            >
  Italy (Italia)
  </option>
  <option value="JM"
                            
                            >
  Jamaica
  </option>
  <option value="JP"
                            
                            >
  Japan (日本)
  </option>
  <option value="JE"
                            
                            >
  Jersey
  </option>
  <option value="JO"
                            
                            >
  Jordan (‫الاردن‬‎)
  </option>
  <option value="KZ"
                            
                            >
  Kazakhstan (Қазақстан)
  </option>
  <option value="KE"
                            
                            >
  Kenya
  </option>
  <option value="KI"
                            
                            >
  Kiribati
  </option>
  <option value="KW"
                            
                            >
  Kuwait (‫الكويت‬‎)
  </option>
  <option value="KG"
                            
                            >
  Kyrgyzstan (Кыргызстан)
  </option>
  <option value="LA"
                            
                            >
  Laos (ນລາວ)
  </option>
  <option value="LV"
                            
                            >
  Latvia (Latvija)
  </option>
  <option value="LB"
                            
                            >
  Lebanon (‫لبنان‬‎)
  </option>
  <option value="LS"
                            
                            >
  Lesotho
  </option>
  <option value="LR"
                            
                            >
  Liberia
  </option>
  <option value="LY"
                            
                            >
  Libya (‫ليبيا‬‎)
  </option>
  <option value="LI"
                            
                            >
  Liechtenstein
  </option>
  <option value="LT"
                            
                            >
  Lithuania (Lietuva)
  </option>
  <option value="LU"
                            
                            >
  Luxembourg (Lëtzebuerg)
  </option>
  <option value="MO"
                            
                            >
  Macau
  </option>
  <option value="MK"
                            
                            >
  Macedonia [FYROM] (Македонија)
  </option>
  <option value="MG"
                            
                            >
  Madagascar (Madagasikara)
  </option>
  <option value="MW"
                            
                            >
  Malawi
  </option>
  <option value="MY"
                            
                            >
  Malaysia
  </option>
  <option value="MV"
                            
                            >
  Maldives (‫ގުޖޭއްރާ ޔާއްރިހޫމްޖ‬‎)
  </option>
  <option value="ML"
                            
                            >
  Mali
  </option>
  <option value="MT"
                            
                            >
  Malta
  </option>
  <option value="MH"
                            
                            >
  Marshall Islands
  </option>
  <option value="MQ"
                            
                            >
  Martinique
  </option>
  <option value="MR"
                            
                            >
  Mauritania (‫موريتانيا‬‎)
  </option>
  <option value="MU"
                            
                            >
  Mauritius
  </option>
  <option value="YT"
                            
                            >
  Mayotte
  </option>
  <option value="MX"
                            
                            >
  Mexico (México)
  </option>
  <option value="FM"
                            
                            >
  Micronesia
  </option>
  <option value="MD"
                            
                            >
  Moldova
  </option>
  <option value="MC"
                            
                            >
  Monaco
  </option>
  <option value="MN"
                            
                            >
  Mongolia (Монгол Улс)
  </option>
  <option value="ME"
                            
                            >
  Montenegro (Црна Гора)
  </option>
  <option value="MS"
                            
                            >
  Montserrat
  </option>
  <option value="MA"
                            
                            >
  Morocco (‫المغرب‬‎)
  </option>
  <option value="MZ"
                            
                            >
  Mozambique (Moçambique)
  </option>
  <option value="MM"
                            
                            >
  Myanmar [Burma] (Myanmar (Burma))
  </option>
  <option value="NA"
                            
                            >
  Namibia
  </option>
  <option value="NR"
                            
                            >
  Nauru (Naoero)
  </option>
  <option value="NP"
                            
                            >
  Nepal (नेपाल)
  </option>
  <option value="NL"
                            
                            >
  Netherlands (Nederland)
  </option>
  <option value="AN"
                            
                            >
  Netherlands Antilles
  </option>
  <option value="NC"
                            
                            >
  New Caledonia
  </option>
  <option value="NZ"
                            
                            >
  New Zealand
  </option>
  <option value="NI"
                            
                            >
  Nicaragua
  </option>
  <option value="NE"
                            
                            >
  Niger
  </option>
  <option value="NG"
                            
                            >
  Nigeria
  </option>
  <option value="NU"
                            
                            >
  Niue
  </option>
  <option value="NF"
                            
                            >
  Norfolk Island
  </option>
  <option value="MP"
                            
                            >
  Northern Mariana Islands
  </option>
  <option value="KP"
                            
                            >
  North Korea (조선)
  </option>
  <option value="NO"
                            
                            >
  Norway (Norge)
  </option>
  <option value="OM"
                            
                            >
  Oman (‫عمان‬‎)
  </option>
  <option value="PK"
                            
                            >
  Pakistan (‫پاکستان‬‎)
  </option>
  <option value="PW"
                            
                            >
  Palau (Belau)
  </option>
  <option value="PS"
                            
                            >
  Palestinian Territories
  </option>
  <option value="PA"
                            
                            >
  Panama (Panamá)
  </option>
  <option value="PG"
                            
                            >
  Papua New Guinea
  </option>
  <option value="PY"
                            
                            >
  Paraguay
  </option>
  <option value="PE"
                            
                            >
  Peru (Perú)
  </option>
  <option value="PH"
                            
                            >
  Philippines (Pilipinas)
  </option>
  <option value="PN"
                            
                            >
  Pitcairn Islands
  </option>
  <option value="PL"
                            
                            >
  Poland (Polska)
  </option>
  <option value="PT"
                            
                            >
  Portugal
  </option>
  <option value="PR"
                            
                            >
  Puerto Rico
  </option>
  <option value="QA"
                            
                            >
  Qatar (‫قطر‬‎)
  </option>
  <option value="RE"
                            
                            >
  Réunion
  </option>
  <option value="RO"
                            
                            >
  Romania (România)
  </option>
  <option value="RU"
                            
                            >
  Russia (Россия)
  </option>
  <option value="RW"
                            
                            >
  Rwanda
  </option>
  <option value="SH"
                            
                            >
  Saint Helena
  </option>
  <option value="KN"
                            
                            >
  Saint Kitts and Nevis
  </option>
  <option value="LC"
                            
                            >
  Saint Lucia
  </option>
  <option value="PM"
                            
                            >
  Saint Pierre and Miquelon
  </option>
  <option value="VC"
                            
                            >
  Saint Vincent and the Grenadines
  </option>
  <option value="WS"
                            
                            >
  Samoa
  </option>
  <option value="SM"
                            
                            >
  San Marino
  </option>
  <option value="ST"
                            
                            >
  São Tomé and Príncipe
  </option>
  <option value="SA"
                            
                            >
  Saudi Arabia (‫المملكة العربية السعودية‬‎)
  </option>
  <option value="SN"
                            
                            >
  Senegal (Sénégal)
  </option>
  <option value="RS"
                            
                            >
  Serbia (Србија)
  </option>
  <option value="CS"
                            
                            >
  Serbia and Montenegro (Србија и Црна Гора)
  </option>
  <option value="SC"
                            
                            >
  Seychelles
  </option>
  <option value="SL"
                            
                            >
  Sierra Leone
  </option>
  <option value="SG"
                            
                            >
  Singapore (Singapura)
  </option>
  <option value="SK"
                            
                            >
  Slovakia (Slovensko)
  </option>
  <option value="SI"
                            
                            >
  Slovenia (Slovenija)
  </option>
  <option value="SB"
                            
                            >
  Solomon Islands
  </option>
  <option value="SO"
                            
                            >
  Somalia (Soomaaliya)
  </option>
  <option value="ZA"
                            
                            >
  South Africa
  </option>
  <option value="GS"
                            
                            >
  South Georgia and the South Sandwich Islands
  </option>
  <option value="KR"
                            
                            >
  South Korea (한국)
  </option>
  <option value="ES"
                            
                            >
  Spain (España)
  </option>
  <option value="LK"
                            
                            >
  Sri Lanka
  </option>
  <option value="SD"
                            
                            >
  Sudan (‫السودان‬‎)
  </option>
  <option value="SR"
                            
                            >
  Suriname
  </option>
  <option value="SJ"
                            
                            >
  Svalbard and Jan Mayen
  </option>
  <option value="SZ"
                            
                            >
  Swaziland
  </option>
  <option value="SE"
                            
                            >
  Sweden (Sverige)
  </option>
  <option value="CH"
                            
                            >
  Switzerland (Schweiz)
  </option>
  <option value="SY"
                            
                            >
  Syria (‫سوريا‬‎)
  </option>
  <option value="TW"
                            
                            >
  Taiwan (台灣)
  </option>
  <option value="TJ"
                            
                            >
  Tajikistan (Тоҷикистон)
  </option>
  <option value="TZ"
                            
                            >
  Tanzania
  </option>
  <option value="TH"
                            
                            >
  Thailand (ราชอาณาจักรไทย)
  </option>
  <option value="TL"
                            
                            >
  Timor-Leste
  </option>
  <option value="TG"
                            
                            >
  Togo
  </option>
  <option value="TK"
                            
                            >
  Tokelau
  </option>
  <option value="TO"
                            
                            >
  Tonga
  </option>
  <option value="TT"
                            
                            >
  Trinidad and Tobago
  </option>
  <option value="TN"
                            
                            >
  Tunisia (‫تونس‬‎)
  </option>
  <option value="TR"
                            
                            >
  Turkey (Türkiye)
  </option>
  <option value="TM"
                            
                            >
  Turkmenistan (Türkmenistan)
  </option>
  <option value="TC"
                            
                            >
  Turks and Caicos Islands
  </option>
  <option value="TV"
                            
                            >
  Tuvalu
  </option>
  <option value="UM"
                            
                            >
  U.S. Minor Outlying Islands
  </option>
  <option value="VI"
                            
                            >
  U.S. Virgin Islands
  </option>
  <option value="UG"
                            
                            >
  Uganda
  </option>
  <option value="UA"
                            
                            >
  Ukraine (Україна)
  </option>
  <option value="AE"
                            
                            >
  United Arab Emirates (‫الإمارات العربيّة المتّحدة‬‎)
  </option>
  <option value="GB"
                            
                            >
  United Kingdom
  </option>
  <option value="US"
                            
                              selected
                            
                            >
  United States
  </option>
  <option value="UY"
                            
                            >
  Uruguay
  </option>
  <option value="UZ"
                            
                            >
  Uzbekistan (O&#39;zbekiston)
  </option>
  <option value="VU"
                            
                            >
  Vanuatu
  </option>
  <option value="VA"
                            
                            >
  Vatican City (Città del Vaticano)
  </option>
  <option value="VE"
                            
                            >
  Venezuela
  </option>
  <option value="VN"
                            
                            >
  Vietnam (Việt Nam)
  </option>
  <option value="WF"
                            
                            >
  Wallis and Futuna
  </option>
  <option value="EH"
                            
                            >
  Western Sahara (‫الصحراء الغربية‬‎)
  </option>
  <option value="YE"
                            
                            >
  Yemen (‫اليمن‬‎)
  </option>
  <option value="ZM"
                            
                            >
  Zambia
  </option>
  <option value="ZW"
                            
                            >
  Zimbabwe
  </option>
  </select>
  </div>
  <div class="infomsg" id="location-infomessage">
  Your country or territory of residence.
  </div>
  <span role="alert" class="errormsg" id="errormsg_0_CountryCode">
  </span>
  </label>
  </div>
  <div class="form-element terms-of-service" id="termsofservice-form-element">
  <label>
  <input type="checkbox" value="yes" name="TermsOfService" id="TermsOfService"  >
  <span id="terms-of-service-label">
  <strong>I agree to the Google <a target="_blank" id="TosLink" href="https://accounts.google.com/TOS?loc=US&hl=en">Terms of Service</a> and <a target="_blank" id="PrivacyLink" href="https://accounts.google.com/TOS?loc=US&hl=en&privacy=true">Privacy Policy</a></strong>
  </span>
  </label>
  <span role="alert" class="errormsg" id="errormsg_0_TermsOfService">
  </span>
  </div>
  <div class="form-element personalization">
  <label>
  <input type="checkbox" value="yes" name="Personalization" id="Personalization" checked>
  <strong>Google may use my account information to personalize +1's on content and ads on non-Google websites. <a target="_blank" href="https://www.google.com/support/plus/bin/answer.py?hl=en&answer=1152622">About personalization</a>.</strong>
  </label>
  </div>
  <div class="form-element nextstep-button">
  <input id="submitbutton" name="submitbutton" type="submit" value="Next step" class="g-button g-button-submit">
  </div>
  </form>
  </div>
  <p class="why-information"><a target="_blank" href="http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=1733224">Learn more</a> about why we ask for this information.</p>
  </div>
  <div class="side-content">
<div class="benefit">
  <img src="//ssl.gstatic.com/accounts/signup/more-than.jpg" alt="" height="244" width="245">
  <div>
  <h2>
  Your Google Account is more than just YouTube.
</h2>
  <p class="greytext">Talk, chat, share, schedule, store, organize, collaborate, discover, and create. Use Google products from Gmail to Google+ to YouTube, view your search history, all with one username and password, all backed up all the time and easy to find at (you guessed it) Google.com.</p>
  </div>
</div>
<div class="benefit">
  <img src="//ssl.gstatic.com/accounts/signup/take-it-with-you.jpg" alt="" height="154" width="245">
  <div>
  <h2>Take it all with you.</h2>
  <p class="greytext">A Google Account lets you access all your stuff — Gmail, photos, and more — from any device. Search by taking pictures, or by voice. Get free turn-by-turn navigation, upload your pictures automatically, and soon even buy things with your phone using Google Wallet.</p>
  </div>
</div>
<div class="benefit">
  <img src="//ssl.gstatic.com/accounts/signup/share.jpg" alt="" height="154" width="245">
  <div>
  <h2>Share a little. Or share a lot.</h2>
  <p class="greytext">Share selectively with friends, family (maybe even your boss) on Google+. Start a video hangout with friends, text a group all at once, or just follow posts from people who fascinate you. Your call.</p>
  </div>
</div>
<div class="benefit">
  <img src="//ssl.gstatic.com/accounts/signup/work-in-the-future.jpg" alt="" height="154" width="245">
  <div>
  <h2>Work in the future.</h2>
  <p class="greytext">Get a jump on the next era of doing, well, everything. Watch as colleagues or partners drop in a photo, update a spreadsheet, or improve a paragraph, in real-time, from 1,000 miles away. Google Docs is free with a Google Account.</p>
  </div>
</div>
  </div>
  </div>
  </div>
<div class="google-footer-bar">
  <div class="footer content clearfix">
  <ul>
  <li><span dir="ltr">© 2012 Google</span></li>
  <li><a href="https://accounts.google.com/TOS?hl=en" >Terms of Service</a></li>
  <li><a href="http://www.google.com/intl/en/privacy/" >Privacy Policy</a></li>
  <li><a href="http://www.google.com/support/accounts?hl=en" >Help</a></li>
  </ul>
  <form>
  <select id="lang-chooser" class="lang-chooser" style="display: none;">
  <option value="af"
         >
  Afrikaans
  </option>
  <option value="ms"
         >
  Bahasa Malaysia
  </option>
  <option value="ca"
         >
  Català
  </option>
  <option value="da"
         >
  Dansk
  </option>
  <option value="de"
         >
  Deutsch
  </option>
  <option value="en"
        selected="selected" >
  English
  </option>
  <option value="en-GB"
         >
  English (UK)
  </option>
  <option value="es"
         >
  Español
  </option>
  <option value="es-419"
         >
  Español de Latinoamérica
  </option>
  <option value="eu"
         >
  Euskara
  </option>
  <option value="fil"
         >
  Filipino
  </option>
  <option value="fr"
         >
  Français
  </option>
  <option value="gl"
         >
  Galego
  </option>
  <option value="hr"
         >
  Hrvatski
  </option>
  <option value="in"
         >
  Indonesia
  </option>
  <option value="zu"
         >
  IsiZulu
  </option>
  <option value="it"
         >
  Italiano
  </option>
  <option value="sw"
         >
  Kiswahili
  </option>
  <option value="lv"
         >
  Latviešu valoda
  </option>
  <option value="lt"
         >
  Lietuvių
  </option>
  <option value="nl"
         >
  Nederlands
  </option>
  <option value="no"
         >
  Norsk
  </option>
  <option value="pt"
         >
  Português
  </option>
  <option value="pt-BR"
         >
  Português (Brasil)
  </option>
  <option value="pt-PT"
         >
  Português (Portugal)
  </option>
  <option value="ro"
         >
  Română
  </option>
  <option value="sk"
         >
  Slovenčina
  </option>
  <option value="sl"
         >
  Slovenščina
  </option>
  <option value="sv"
         >
  Svenska
  </option>
  <option value="tl"
         >
  Tagalog
  </option>
  <option value="vi"
         >
  Tiếng Việt
  </option>
  <option value="tr"
         >
  Türkçe
  </option>
  <option value="et"
         >
  eesti keel
  </option>
  <option value="fr-CA"
         >
  français
  </option>
  <option value="hu"
         >
  magyar
  </option>
  <option value="pl"
         >
  polski
  </option>
  <option value="fi"
         >
  suomi
  </option>
  <option value="is"
         >
  íslenska
  </option>
  <option value="cs"
         >
  čeština
  </option>
  <option value="el"
         >
  Ελληνικά
  </option>
  <option value="ru"
         >
  Русский
  </option>
  <option value="uk"
         >
  Українська
  </option>
  <option value="bg"
         >
  български
  </option>
  <option value="sr"
         >
  српски
  </option>
  <option value="iw"
         >
  עברית
  </option>
  <option value="ur"
         >
  اردو
  </option>
  <option value="ar"
         >
  العربية
  </option>
  <option value="fa"
         >
  فارسی
  </option>
  <option value="mr"
         >
  मराठी
  </option>
  <option value="hi"
         >
  हिंदी
  </option>
  <option value="bn"
         >
  বাংলা
  </option>
  <option value="gu"
         >
  ગુજરાતી
  </option>
  <option value="ta"
         >
  தமிழ்
  </option>
  <option value="te"
         >
  తెలుగు
  </option>
  <option value="kn"
         >
  ಕನ್ನಡ
  </option>
  <option value="ml"
         >
  മലയാളം
  </option>
  <option value="th"
         >
  ไทย
  </option>
  <option value="am"
         >
  አማርኛ
  </option>
  <option value="zh-TW"
         >
  中文 (繁體)
  </option>
  <option value="zh-HK"
         >
  中文 (香港)
  </option>
  <option value="zh-CN"
         >
  中文(简体)
  </option>
  <option value="ja"
         >
  日本語
  </option>
  <option value="ko"
         >
  한국어
  </option>
  </select>
  </form>
  </div>
</div>
  <div class="hidden" id="password-bar-html" role="alert">
  <div class="password-strength">
  <p>
  <strong>Password strength:</strong>
  <span id="passwdRating"></span>
  </p>
  <div class="meter" id="passwdBar">
  <span id="strength-bar"></span>
  </div>
  </div>
  </div>
  </div>
<script type="text/javascript">
  gaia_appendParam = function(url, name, value) {
  var param = encodeURIComponent(name) + '=' + encodeURIComponent(value);
  if (url.indexOf('?') >= 0) {
  return url + '&' + param;
  } else {
  return url + '?' + param;
  }
  };
  var langChooser = document.getElementById('lang-chooser');
  if (langChooser) {
  var langChooserParam = 'hl';
  var langChooserUrl = '\x2FSignUp?followup=http%3A%2F%2Fwww.youtube.com%2Femail_confirm\x26continue=http%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26new%3Dtrue%26nomobiletemp%3D1%26hl%3Den_US%26next%3D%252Fmy_videos_upload\x26ltmpl=sso\x26service=youtube';
  langChooser.style.display = '';
  langChooser.onchange = function() {
  window.location.href =
  gaia_appendParam(langChooserUrl, langChooserParam, this.value);
  };
  }
</script>
  <script type="text/javascript">/* Anti-spam. Want to say hello? Contact (base64) Ym90Z3VhcmQtY29udGFjdEBnb29nbGUuY29tCg== */(function(){eval('var g=void 0,i=true,j=null,n=false,o,p=this,r=function(a,b){var c=a.split("."),d=p;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&b!==g?d[e]=b:d=d[e]?d[e]:d[e]={}},s=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},u=function(a){var b=s(a);return"array"==b||"object"==b&&"number"==typeof a.length},w="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),x=0,aa=Date.now||function(){return+new Date},y=function(a,b){function c(){}c.prototype=b.prototype;a.ca=b.prototype;a.prototype=new c};var z=Array.prototype,ba=z.indexOf?function(a,b,c){return z.indexOf.call(a,b,c)}:function(a,b,c){c=c==j?0:0>c?Math.max(0,a.length+c):c;if("string"==typeof a)return"string"!=typeof b||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};var A="",B=/MSIE\\s+([^\\);]+)(\\)|;)/.exec(p.navigator?p.navigator.userAgent:j),A=B?B[1]:"",C,D=p.document;C=D?D.documentMode:g;var ca=C>parseFloat(A)?""+C:A,E={},F=function(a){var b;if(!(b=E[a])){b=0;for(var c=(""+ca).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,"").split("."),d=(""+a).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var h=c[f]||"",k=d[f]||"",l=RegExp("(\\\\d*)(\\\\D*)","g"),m=RegExp("(\\\\d*)(\\\\D*)","g");do{var t=l.exec(h)||["","",""],q=m.exec(k)||["","",""];if(0==t[0].length&&0==q[0].length)break;b=((0==t[1].length?0:parseInt(t[1],10))<(0==q[1].length?0:parseInt(q[1],10))?-1:(0==t[1].length?0:parseInt(t[1],10))>(0==q[1].length?0:parseInt(q[1],10))?1:0)||((0==t[2].length)<(0==q[2].length)?-1:(0==t[2].length)>(0==q[2].length)?1:0)||(t[2]<q[2]?-1:t[2]>q[2]?1:0)}while(0==b)}b=E[a]=0<=b}return b},da={},G=function(){return da[9]||(da[9]=!!document.documentMode&&9<=document.documentMode)};G();G();F("9");new function(){aa()};var H=function(a){for(var a=a.replace(/\\r\\n/g,"\\n"),b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};var I=j,J=j,K=j,ea=function(){if(!I){I={};J={};K={};for(var a=0;65>a;a++)I[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),J[I[a]]=a,K[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)}};G();var fa=G(),ga=!F("8");F("8");F("9");var M=function(){};M.prototype.da=n;M.prototype.t=function(){this.da||(this.da=i,this.u())};M.prototype.u=function(){this.Wa&&ha.apply(j,this.Wa);if(this.ea)for(;this.ea.length;)this.ea.shift()()};var ha=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];u(d)?ha.apply(j,d):d&&"function"==typeof d.t&&d.t()}};var N=function(a,b){this.type=a;this.currentTarget=this.target=b};y(N,M);N.prototype.u=function(){delete this.type;delete this.target;delete this.currentTarget};N.prototype.I=n;N.prototype.defaultPrevented=n;N.prototype.preventDefault=function(){this.defaultPrevented=i};var O=function(a,b){a&&this.r(a,b)};y(O,N);o=O.prototype;o.target=j;o.relatedTarget=j;o.offsetX=0;o.offsetY=0;o.clientX=0;o.clientY=0;o.screenX=0;o.screenY=0;o.button=0;o.keyCode=0;o.charCode=0;o.ctrlKey=n;o.altKey=n;o.shiftKey=n;o.metaKey=n;o.K=j;o.r=function(a,b){var c=this.type=a.type;N.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;d||("mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement));this.relatedTarget=d;this.offsetX=a.offsetX!==g?a.offsetX:a.layerX;this.offsetY=a.offsetY!==g?a.offsetY:a.layerY;this.clientX=a.clientX!==g?a.clientX:a.pageX;this.clientY=a.clientY!==g?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.K=a;a.defaultPrevented&&this.preventDefault();delete this.I};o.preventDefault=function(){O.ca.preventDefault.call(this);var a=this.K;if(a.preventDefault)a.preventDefault();else if(a.returnValue=n,ga)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};o.u=function(){O.ca.u.call(this);this.relatedTarget=this.currentTarget=this.target=this.K=j};var ia=function(){},ja=0;o=ia.prototype;o.key=0;o.l=n;o.$=n;o.r=function(a,b,c,d,e,f){if("function"==s(a))this.aa=i;else if(a&&a.handleEvent&&"function"==s(a.handleEvent))this.aa=n;else throw Error("Invalid listener argument");this.q=a;this.Y=b;this.src=c;this.type=d;this.capture=!!e;this.X=f;this.$=n;this.key=++ja;this.l=n};o.handleEvent=function(a){return this.aa?this.q.call(this.X||this.src,a):this.q.handleEvent.call(this.q,a)};var P={},Q={},R={},S={},T=function(a,b,c,d,e){if(b)if("array"==s(b))for(var f=0;f<b.length;f++)T(a,b[f],c,d,e);else{var d=!!d,h=Q;b in h||(h[b]={f:0,j:0});h=h[b];d in h||(h[d]={f:0,j:0},h.f++);var h=h[d],k=a[w]||(a[w]=++x),l;h.j++;if(h[k]){l=h[k];for(f=0;f<l.length;f++)if(h=l[f],h.q==c&&h.X==e){if(h.l)break;return}}else l=h[k]=[],h.f++;f=ka();f.src=a;h=new ia;h.r(c,f,a,b,d,e);c=h.key;f.key=c;l.push(h);P[c]=h;R[k]||(R[k]=[]);R[k].push(h);a.addEventListener?(a==p||!a.Ta)&&a.addEventListener(b,f,d):a.attachEvent(b in S?S[b]:S[b]="on"+b,f)}else throw Error("Invalid event type");},ka=function(){var a=la,b=fa?function(c){return a.call(b.src,b.key,c)}:function(c){c=a.call(b.src,b.key,c);if(!c)return c};return b},ma=function(a,b,c,d){if(!d.s&&d.Z){for(var e=0,f=0;e<d.length;e++)d[e].l?d[e].Y.src=j:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.Z=n;0==f&&(delete Q[a][b][c],Q[a][b].f--,0==Q[a][b].f&&(delete Q[a][b],Q[a].f--),0==Q[a].f&&delete Q[a])}},na=function(a,b,c,d,e){var f=1,b=b[w]||(b[w]=++x);if(a[b]){a.j--;a=a[b];a.s?a.s++:a.s=1;try{for(var h=a.length,k=0;k<h;k++){var l=a[k];l&&!l.l&&(f&=U(l,e)!==n)}}finally{a.s--,ma(c,d,b,a)}}return Boolean(f)},U=function(a,b){if(a.$){var c=a.key;if(P[c]){var d=P[c];if(!d.l){var e=d.src,f=d.type,h=d.Y,k=d.capture;e.removeEventListener?(e==p||!e.Ta)&&e.removeEventListener(f,h,k):e.detachEvent&&e.detachEvent(f in S?S[f]:S[f]="on"+f,h);e=e[w]||(e[w]=++x);h=Q[f][k][e];if(R[e]){var l=R[e],m=ba(l,d);0<=m&&z.splice.call(l,m,1);0==l.length&&delete R[e]}d.l=i;h.Z=i;ma(f,k,e,h);delete P[c]}}}return a.handleEvent(b)},la=function(a,b){if(!P[a])return i;var c=P[a],d=c.type,e=Q;if(!(d in e))return i;var e=e[d],f,h;if(!fa){var k;if(!(k=b))a:{k=["window","event"];for(var l=p;f=k.shift();)if(l[f]!=j)l=l[f];else{k=j;break a}k=l}f=k;k=i in e;l=n in e;if(k){if(0>f.keyCode||f.returnValue!=g)return i;a:{var m=n;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(t){m=i}if(m||f.returnValue==g)f.returnValue=i}}m=new O;m.r(f,this);f=i;try{if(k){for(var q=[],L=m.currentTarget;L;L=L.parentNode)q.push(L);h=e[i];h.j=h.f;for(var v=q.length-1;!m.I&&0<=v&&h.j;v--)m.currentTarget=q[v],f&=na(h,q[v],d,i,m);if(l){h=e[n];h.j=h.f;for(v=0;!m.I&&v<q.length&&h.j;v++)m.currentTarget=q[v],f&=na(h,q[v],d,n,m)}}else f=U(c,m)}finally{q&&(q.length=0),m.t()}return f}d=new O(b,this);try{f=U(c,d)}finally{d.t()}return f};var W=function(a){this.b=[];this.N=[];V(this,this.c,0);V(this,this.o,0);V(this,this.w,0);V(this,this.m,[]);V(this,this.g,[]);V(this,this.Q,{});V(this,this.P,"object"==typeof window?window:p);V(this,this.R,this);V(this,this.z,0);V(this,this.M,0);V(this,this.O,0);V(this,this.k,[Math.floor(255*Math.random())]);V(this,this.v,[]);V(this,this.n,{});this.L=[this.wa,this.va,this.Aa,this.ya,this.qa,this.Ea,this.na,this.ga,this.la,this.Da,this.sa,this.ua,this.ta,this.Ba,this.oa,this.fa,this.ra,this.ka,this.ma,this.Ca,this.xa,this.ha,this.za,this.pa,this.ja];if(a&&"!"==a[0])this.d=a;else{ea();for(var b=J,c=[],d=0;d<a.length;){var e=b[a.charAt(d++)],f=d<a.length?b[a.charAt(d)]:0;++d;var h=d<a.length?b[a.charAt(d)]:0;++d;var k=d<a.length?b[a.charAt(d)]:0;++d;if(e==j||f==j||h==j||k==j)throw Error();c.push(e<<2|f>>4);64!=h&&(c.push(f<<4&240|h>>2),64!=k&&c.push(h<<6&192|k))}this.e=c;!this.e||!this.e.length?this.i(this.ia):this.A()}};o=W.prototype;o.c=0;o.w=1;o.m=2;o.o=3;o.g=4;o.C=5;o.U=6;o.Q=7;o.T=8;o.P=9;o.R=10;o.z=11;o.M=12;o.O=13;o.k=14;o.v=15;o.n=16;o.La=17;o.Ga=15;o.Sa=12;o.Ha=10;o.Ia=13;o.Oa=0;o.Ma=1;o.Na=2;o.Pa=3;o.Ra=5;o.Qa=6;o.h=-1;o.p=-2;o.B=-3;o.ia=17;o.Fa=21;o.D=22;o.Ua=30;o.S={};o.J="caller";o.Va=0;var X=function(a,b){for(var c=[],d=b-1;0<=d;d--)c[b-1-d]=a>>8*d&255;return c},Y=function(a,b,c,d){var e=a.a(b),f=j,f=b==a.k?function(b){var c=e.length;e.push(b);b=a.a(a.O);e[c]=!c?0:e[c]^e[c-1]^255&b>>8*(3-c%4)}:function(a){e.push(a)};d&&f(d&255);for(b=0;b<c.length;b++)f(c[b])},oa=function(a,b){var c=function(){for(var a=d[e.J],h=a===b,a=a&&a[e.J],k=0;a&&a!=e.A&&a!=e.i&&a!=e.ba&&a!=W&&20>k;)k++,a=a[e.J];return c[!h+!a+(4<k)]},d=function(){return c()},e=W.prototype;c[e.Va]=a;a=g;return d},pa=function(a){var b=function(){return c()},c=function(){return a};b.Ja=function(b){a=b};return b},V=function(a,b,c){b==a.c||b==a.o?a.b[b]?a.b[b].Ja(c):a.b[b]=pa(c):a.b[b]=oa(c,a.a);b==a.w&&(a.F=g,V(a,a.c,a.a(a.c)+4))};W.prototype.a=function(a){var b=this.b[a];if(b===g)throw this.i(this.Ua,0,a),this.S;return b()};W.prototype.i=function(a,b,c){var d=this.a(this.o),a=[a,d>>8&255,d&255];c!=g&&a.push(c);V(this,this.m,a);b&&(c="",b.message&&(c=b.message.toString()),b.stack!=g&&(c+=": "+b.stack),c=c.substring(0,2048),c=H(c),Y(this,this.k,X(c.length,2).concat(c),this.Sa))};var Z=function(a){var b=a.a(a.c);a.F==g&&(a.F=a.e[b-4]<<24|a.e[b-3]<<16|a.e[b-2]<<8|a.e[b-1],a.G=g);if(a.G!=b>>3){a.G=b>>3;for(var c=[0,0,0,a.a(a.w)],d=[a.F,a.G],e=d[0],f=d[1],h=0;84941944608!=h;)e+=(f<<4^f>>>5)+f^h+c[h&3],h+=2654435769,f+=(e<<4^e>>>5)+e^h+c[h>>>11&3];d[0]=e^0;d[1]=f^0;a.Ka=[d[0]>>>24,d[0]>>16&255,d[0]>>8&255,d[0]&255,d[1]>>>24,d[1]>>16&255,d[1]>>8&255,d[1]&255]}V(a,a.c,b+1);return a.e[b]^a.Ka[b%8]};W.prototype.wa=function(){};W.prototype.va=function(){var a=Z(this),b=Z(this),c=this.a(a),a=$(this,a),d=$(this,b);d==this.h||d==this.p?c=""+c:0<a&&(1==a?c&=255:2==a?c&=65535:4==a&&(c&=4294967295));V(this,b,c)};var $=function(a,b){if(b<=a.La)return b==a.m||b==a.g||b==a.k||b==a.v?a.p:b==a.U||b==a.Q||b==a.P||b==a.R||b==a.n?a.B:b==a.C?a.h:4;var c=b%a.Qa;return c==a.Oa?1:c==a.Ma?2:c==a.Na?4:c==a.Ra?a.h:c==a.Pa?a.p:a.B};o=W.prototype;o.Aa=function(){var a=Z(this),b=$(this,a);if(0<b){for(var c=0,d=0;d<b;d++)c=c<<8|Z(this);V(this,a,c)}else if(b!=this.B){c=Z(this)<<8|Z(this);if(b==this.h)if(b="",this.b[this.C]!=g)for(var e=this.a(this.C),d=0;d<c;d++)var f=e[Z(this)<<8|Z(this)],b=b+f;else{b=Array(c);for(d=0;d<c;d++)b[d]=Z(this);d=b;c=[];for(e=b=0;b<d.length;)if(f=d[b++],128>f)c[e++]=String.fromCharCode(f);else if(191<f&&224>f){var h=d[b++];c[e++]=String.fromCharCode((f&31)<<6|h&63)}else{var h=d[b++],k=d[b++];c[e++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63)}b=c.join("")}else{b=Array(c);for(d=0;d<c;d++)b[d]=Z(this)}V(this,a,b)}};o.ya=function(){Z(this)};o.qa=function(){var a=Z(this),b=Z(this),c=Z(this),a=this.a(a),b=this.a(b);V(this,c,a[b])};o.Ea=function(){var a=Z(this),b=Z(this),a=this.a(a);V(this,b,s(a))};o.na=function(){var a=Z(this),b=Z(this),c=this.a(a);$(this,a)==this.h&&(c=H(c));a=qa(c);V(this,b,a)};var qa=function(a){function b(b){return a[b]|a[b+1]<<8|a[b+2]<<16|a[b+3]<<24}for(var c=0;12>c;c++)a.push(0);for(var d=2654435769,e=2654435769,f=314159265,c=0;c<a.length-11;c+=12)d+=b(c),e+=b(c+4),f+=b(c+8),d-=e,d-=f,d^=f>>>13,e-=f,e-=d,e^=d<<8,f-=d,f-=e,f^=e>>>13,-1>c&&alert(d+e+f),d-=e,d-=f,d^=f>>>12,e-=f,e-=d,e^=d<<16,f-=d,f-=e,f^=e>>>5,-1>c&&alert(d+e+f),d-=e,d-=f,d^=f>>>3,e-=f,e-=d,e^=d<<10,f-=d,f-=e,f^=e>>>15;return f+(0>f&&4294967296)};o=W.prototype;o.ga=function(){var a=Z(this),b=Z(this),c=$(this,a),d=$(this,b);c==this.h&&d==this.h?(this.b[b]==g&&V(this,b,""),V(this,b,this.a(b)+this.a(a))):d==this.p&&(0>c?(a=this.a(a),c==this.h&&(a=H(a)),(b==this.g||b==this.k||b==this.v)&&Y(this,b,X(a.length,2)),Y(this,b,a)):0<c&&(a=this.a(a),Y(this,b,X(a,c))))};o.la=function(){var a=Z(this),b=Z(this);V(this,b,eval(this.a(a)))};o.Da=function(){var a=Z(this),b=Z(this);V(this,b,this.a(b)-this.a(a))};o.fa=function(){var a=Z(this),b=Z(this);V(this,b,this.a(b)+this.a(a))};o.ua=function(){var a=Z(this),b=Z(this);V(this,b,this.a(b)%this.a(a))};o.ka=function(){var a=Z(this),b=Z(this),c=Z(this);this.a(a)==this.a(b)&&V(this,c,this.a(c)+1)};o.ma=function(){var a=Z(this),b=Z(this),c=Z(this);this.a(a)>this.a(b)&&V(this,c,this.a(c)+1)};o.Ca=function(){var a=Z(this),b=Z(this),c=Z(this);V(this,c,this.a(a)<<b)};o.xa=function(){var a=Z(this),b=Z(this),c=Z(this);V(this,c,this.a(a)|this.a(b))};o.ha=function(){var a=this.a(Z(this));this.N.push(this.b.slice());this.b[this.c]=g;V(this,this.c,a)};o.za=function(){var a=this.N.pop();if(a){for(var b=Z(this);0<b;b--){var c=Z(this);a[c]=this.b[c]}this.b=a}else V(this,this.c,this.e.length)};o.pa=function(){var a=Z(this),b=Z(this),c=Z(this);V(this,c,(this.a(a)in this.a(b))+0)};var ra=function(a){var b={};b.V=a.a(Z(a));b.W=Z(a);var c=Z(a)-1;b.self=a.a(Z(a));for(b.H=[];0<c;)c--,b.H.push(a.a(Z(a)));return b};W.prototype.sa=function(){var a=ra(this),b=a.V.apply(a.self,a.H);V(this,a.W,b)};W.prototype.oa=function(){var a=ra(this),b=a.H,c=a.self,d=a.V,e="";switch(b.length){case 0:e=c[d]();break;case 1:e=c[d](b[0]);break;case 2:e=c[d](b[0],b[1]);break;case 3:e=c[d](b[0],b[1],b[2]);break;default:this.i(this.D);return}V(this,a.W,e)};W.prototype.ja=function(){var a=Z(this),b=this.a(Z(this)),c=this.a(Z(this));V(this,a,sa(this,b,c))};W.prototype.ta=function(){var a=this.a(Z(this)),b=this.a(Z(this)),c=this.a(Z(this)),d=this.a(Z(this));T(a,b,sa(this,c,d))};var sa=function(a,b,c){return function(d){V(a,a.U,d);V(a,a.n,c);return ta(a,b)}};W.prototype.Ba=function(){var a=this.a(Z(this)),b=this.a(Z(this)),c=this.a(Z(this));a[b]=c};W.prototype.ra=function(){var a=Z(this),b=Z(this);0!=this.a(a)&&V(this,this.c,this.a(b))};var ta=function(a,b){V(a,a.c,b);return a.A()};W.prototype.A=function(){try{for(var a;(a=this.a(this.c))<this.e.length&&0==this.a(this.m).length;)try{V(this,this.o,a);var b=Z(this);b>=this.L.length?this.i(this.Fa,0,b):this.L[b].call(this)}catch(c){if(c!=this.S){var d=this.a(this.z);d?(V(this,d,c),V(this,this.z,0)):this.i(this.D,c)}}}catch(e){try{this.i(this.D,e)}catch(f){this.d=f.message+""}}return this.a(this.n)};W.prototype.ba=function(){if(this.d)return this.d;this.b[this.T]&&ta(this,this.a(this.T));var a=this.a(this.m);0<a.length&&Y(this,this.g,X(a.length,2).concat(a),this.Ga);var a=this.a(this.M),a=a-(this.a(this.g).length+4),b=this.a(this.k);1<b.length&&(a-=b.length+3);if(0<a){for(var c=Array(a),d=0;d<a;d++)c[d]=Math.floor(255*Math.random());Y(this,this.g,X(a,2).concat(c),this.Ha)}1<b.length&&Y(this,this.g,X(b.length,2).concat(b),this.Ia);a=[3].concat(this.a(this.g));if(!u(a))throw Error("encodeByteArray takes an array as a parameter");ea();d=K;b=[];for(c=0;c<a.length;c+=3){var e=a[c],f=c+1<a.length,h=f?a[c+1]:0,k=c+2<a.length,l=k?a[c+2]:0,m=e>>2,e=(e&3)<<4|h>>4,h=(h&15)<<2|l>>6,l=l&63;k||(l=64,f||(h=64));b.push(d[m],d[e],d[h],d[l])}d=b.join("");if(this.d=d=d.replace(/\\./g,""))this.d="!"+this.d;else{this.d="";for(d=0;d<a.length;d++)b=a[d].toString(16),1==b.length&&(b="0"+b),this.d+=b}return this.d};W.prototype.Xa=function(a){a(this.ba())};try{T(window,"unload",function(){})}catch(ua){}r("botguard.bg",W);r("botguard.bg.prototype.invoke",W.prototype.Xa);')})()</script>
<script type="text/javascript">
  var gaia_botguardSubmit = function() {
  if (document.bg) {
  document.bg.invoke(function(response) {
  document.getElementById('bgresponse').value = response;
  });
  }
  };
  try {
  document.bg = new botguard.bg('rrpTA/CI9FDi6UAG+Q8Ic+pO7VzZXOofb/npCgnLxP6TesQRusvB198l0KR2Nr2CBGuxOs72gN9sqBvnmeOoaGTfFmfUJ6tBtwWQyjtCJ5Yk522h+2HBSgcr4bYKm9lv48eL7TfqQx3UzSOw1UVHDsf0pH9FN4I2WODFQx4mXDn2/X5rOKiNqL6OyWVu5gUhZuBjgX+2rNg/WLyW5/aKKd6S6B53O4OTRMATc9FCXa4H+fAjVe97Np4tZKhcZB7mocGSLr73VtNuVsbdxgp47lCpWl5ltChQzpBi5HCjFwBh8QFbL7qX4y7Aj0/bmBxDZoMtz3zFsHicgV/EQuI+nPbAPb7nmF9n7e1tw/LXuFCa2JHXzGschyN3XUbBzLimJIB8z1H/6KpmLWAXKFxk1lFxt4KlPfVY+IUDtMddVVj7CDJ0Rdk+PuMqTe577Zg+Pgsl0Yc+thcr4OfZoMGlw8QNMkoJu9zGjsKKcKdaXg7N3k1BuTjqbH3AgGOXGCq+BggKyTerfiKI3+p+wdftBCGqY2NlTaW0E8vEjDTglDDls2DeL0IYhYIU8hP8HNqLD61vXE/qAg94V6XSTSXUbDZqzxF/LE+geI7LBFn9dMB3AQ+s1YSy+0V/6VKimLPxUV5ch1WbQ90Sjc2Rj8F530esOtHTBp9Xu7zGpTw6TkevJ9PD6Y5nh4IqVn4pIKLVn2e8NplSq6HzneLvGoM7rjtJZrTuh2B8ZHB+jzvxKMjFpLqy/ffcZnybxm83Gi9gpbWnhQdf4bFNzL6Tdbi7fZA6m1CH22eSkJVv1OZaFq/pVqen0LXAGo8/1QIPPea6wWNfMAFNfX11key5BKbfbzkdIK0dMRwB3QSd0W+6EVZA+ta2uxWuke8H4I9XxgcxBR7PHh6YoPbRA+XT36VK12p0UEnFoJNfB/190RMZVlCZAXDTMo1e8IdOoa4zgzjwJ7qDxjBhDG6Ojzu5K13aniYAUgZQIqgdvLlp+BkfN38sA1ElZy969p5hiflfdSWPjkq7zTfyxV4rfBzJeNb1440UWlaglzuu4SDvK07wYdId99ZPFtoRNogXvOT3pQYHvOVFHQe5m20w4lpJXlE63E11RHNKBr9F4C0QUqgHhrl8SLOPvdk2eJGGPIQwvK3+R4wfUFitMb80NYzaddST65Zs04Lxfje2vKKe6tSHozXQF2BBfcB3CqQqO1GVn6bAgS/0zeJByRg1MrcmYtjljtmGPuG/ODdmNINY7r7Vf6ORuCKch6vt5War9ZiDEAKi+2/3RB5IlvgIBV7+Mk/iMjTswywVYGqpxH03PcsTecNMopeanLShYttlqi/Pw02jGrWfFFwbTABewY/gsoVxMS24o0lMi4+5o34VTZIsslZBNMkxiGiDIObUoBFSKFZlBG7hHoNX29/Lynpdy3mZr31q3QdYr4pUnBJRDWnRtEQ4wBtK/80lNeh2OmJmGnRKYZU+C6rOH2Sy8uoSFRjlKNOnuWTmqZx5srxWsFYi0DDlP3esOywAMHQD0y2Hm3eqk3dg2AI/UjQgtaTPXElI34oJR+2/ELr76OD4VX0K8VmVapIoxWERY6d3vr83Xo2J+y6DNYATccwuhYEMYcmvlG253ikp1NLWFviVhe7SsarHDm5D5kg/ocBJbPRTK8+3gCU1+Es6XuwReba65wcQOe6b/wwLfno/EU3TJfAOUFObzamErO+mzR1CpOq5wS2r7wILMNeJPfTA7EMYAcNRTSUOSz71++7o2vqktjBUs2BsgSEuICUZw0IRRtGb/BzDUpKa5etf7TX8KkJmlTrnumVoevJNuuuttMlYE3Yn9JyKTpbaHYQhNQf5UNeRvmCo9flqqVYYOLkzbqtTVPcMNUR7eBz02P6dzM8H8QnD6yrAykNd0WSwkYlrGfyp3v4sowC52Uh0wzctSeZkz6YIckymzyGWrAmNu5AUx87g49RF3dEXv7bDCqHNgHQ2/u6sypMJeVtVkfq9OZhk5k6Ar+tg2eDLOxoLE+SuWsHg23V35y2Fdqumd846TM37HZtOYw+FSmRaH0zkxQxMuA9RcY7Q+WqBY6508euFq7DgW22fTdZA5E2Fr2xj5E1Z6S9Utw/qvjpg5QogtqZK/23JX+mq6qVJd+2C3VuSr3X6+jAEo1fIhBByJLcKJ11r9aMjOZWchxe4MwfqBmb689IpAyVLixjmT8EIpkXYDPHqiXYX/fqrbzGk9nKBMlQSvH29IxeRxQyNvI0LV8Mu2XHFClM/2dpg9yc+uq0MEJyrw9+lN5JH4bEpp9MWZ1/W+Y2EAnTLhbnkg9sGnGC0K0BxfticzRplaO6zpqh3OX4lY61T0ouAB6ykeALcsXNNjtrl8TgBK2OnD9Vei557E2nAM7sTrPawtQDX3sDJfI0fSdqJ/NqSUSzPob5n9vg7PreuhyurglvXbGa/0HkDZyGpG70THeIn8zo3J5Srhzo1FbuTRAIqMPT3Q1oIagVt8bvp+oiBngKjbmfvp+LGqmNb0dl+BwRxGYmMYiwmZ5TSSGXFza5du7iFvgJrlulGdl68lRKDUk0FbLQUyeHODLjAVXWLDhBM81MDMPWwFIOPteSi+348FVkKs0QgUMRMQSLaC551lcKiADbm89q9ePd3SDvAOjNLJHJEmiga6sLfqqCaG169sHhxIDmJU1T7JR+38IZqOvY6HwyUsxLrB2E7ew5U33fSo4ZAfPWt6/bv9moUTMOCgpjz9urQwUqMy/ud0syTifR0yCQKYT/pp+oVYReM4VfF6y/LNmvCVue+ln+wg/gfIip3RznjoLPKIAG4czjtvzht0RJxiCeDSCFbsbc6dKpw2YH60whKviaP/gB2LRJ89gIfYfG0LOs/HtnrK6zqYHOCP1Ojrh04gcKT+xMD/Dat+L0ec2vQGiUPHmebPb+WwSDZ5hHgFakrwpkUTYirZzyMbCXKxIWxiC7xsDfrdgzby+2ctzX9FQ+ov2+2syDBW/pfqs1ghunYE+FbcuRgcVmiXeNTUp1XJZkos58GBdUAoPqwilOe1uToZ75l0nsHU8NGscC4dTaupkSaWUU3ofZgEOzqZjeSEz42dVAm3yWrSSarLoOcn3tM0IB5y/2NI88DO/AX3FlYjqtMR+yZAWRWdAipA01r4Epq8pkBRJ6Fg1lfnjp0+vWjpm3yJlseWWaRdyl2veTfZpMdXSC7pda0zEXj9g6LTE1520s/VDCWe7LrYCvv3PpgJzFypayUVaXiuWWdw/VLit7lQmJOxmx8cnijp7ivOr0pOG9nCSwcRaFdGAV2KC437a+0Jb9ZXHQ7OEMuxWTBhVaP9iVMEzyWrtOsYwv1TIP7HeGyuMYQ2zdLgAdWmAUUqsljp+AMdYbbpCwZCBfQHotvqOvB2oerjTu65ncUCHpgjitANzGU9Jn4IzLWjl5r9ZqGxtViiyBYqHenj0c8lpHERTK8VdHOt2arxUOfwMUA8l2A+xE23yR5fFXSiM2QfKi+4EKcWGJda1u/JWt/DGqjlJuRAYg0IzTQD7qsI01EWURwZ4aSrye/IyvUZWGNQ2e2rSv4niRwA5b4VbJ500+ezUcC6b4xjLBhu2uZX6N0EtZGMu3AU7o5gkCpQWplNypD9GBNlmfL3mMfA8MSgBmE0IqL09Rl9r/6tcwK4MPmi3eMTJKsCxC2qNFWs8oJldEAT/xRloEmtae93M3LgT7p6pza4hQ94KJX8chxpx2ny3i/Gc7C2oOWRWaPD6NCNXdFUL5+ai7OkP4PPWKNgYgvLxk2XPOVrX7DTc7OjVzZHeW2efWWTPvDGXXTnK/Q+t733/AUO1IooeKRi6blL+/o2SKhSJK0vzIbQu6Dts9Wk6TKw2nU8O5hglM7vSh6czGpXozoJgFXWybkWhnWBL2DIF438I6hKfZ8aeYIdKOIoVuwfV9SQEdA1tHBTCzYEwillW3yJp/H1r6ZaPyRX6gcAmpal0W3O3UpJBaECOJFSVhIcnFN+mRglCPAIJWqo7KoTGm3sXqDHyEZvpMNJbw56mFDExB4DpEgOW1SCMF1yIRTNR6elMMzP3RdE7vFpxUZzZGnXBasNDVkotY8Xw9JOh9PQvB43sAXLaJbHHHlb/xyiWGdJK4Nlt73WEViMeQespUfo6c00B/vEdBf3nvpoM+PVqSUbPiNMHEioBBnRMBKNDox1CPtOZVXh0TeUdgjrpLaiWAz4Jh0TtGQKWgzDq4kYbV0gOsMvAY2kU9vkVyEFy1Fd7lp7g4KELbApoXCELrTqA+k8+DF1MnNVMmCqGSfzDxFLWIo2qS7w5WROvhqr7i+cdTbFGarM8FhWDpORPaocIi4y3ls0GBiFWcRtTmfAhhUIM7GeoRagP1U6yF26STvctlo652rBg4MlFrg0rENB8boOyzHqmlF4DJSsVY4fMIvrk2XWpgBZv6KISFe6sYRPrALn0+saPDlXj4RILKKwmyPH/d4PEMHb+fou42oRqOZ4qaXLf8rIOxg40z27QYFqNO1dw4SGkPcAw5ty93SJ0clL5JlsJDFy1/Wstrh/hv+j3qQBiQo4i5J45KfE+q0/4SErlius27ixGD5N5vRbQxaaoCKnvrNfjq+14DPek1WL0QqtAphGfF7AlzZh5onoLRO6F6J2BnJ//eZPIQBWzN4wvpHplFrzl6O/d9aJDc3teldNGI/T51aFIP7U5gwMOANFXLeRVJFlH55y+zGQUvXPJI/uTm9OiNtePD+Ibux258/lezV3MhX4/jjMBF1znqJSgOqL+xeuRPu5MYYwlUG6CfKyukZey92R3wOarNw/Z9b2M6pdw2f2KkDoGlqVTGHwglqQrY6tofj4e/D0wh3INnzFEyd6w8KV58HF4plq3u8x04+KJ+k5lCjKkHYZy/nKjO++tkGaCdyyCZBfuiLJTQehtU0pNu0kfiyjzoWZk+V+JcF6rsrQNddwQGLlHouI3apc/7+S4vkg6oEyDqrYxtbK7B3pM1vSXNGCCiGzkE41H1tg6nrJvgl6s5EEMcimuAeSJ6CRwPjAl3hKXpXe6KUFsC9piH/ioVtYZ9LmGnL1AaMfFSSLMeTfuLQ+idxe/ZBoUH70Gm8iGzblTckvKw6oNC6wiGDWbKoFHy9/lyhAOHstBVaafFTY/h6IST9xzCbcm9/Cz9yQHAxUjzYuKi9rFg/UqSXwhg6tQKm80m9ZkhgMYoE8ORbvHSLJIn+LE1FhuOF9E7I3ZkuMoarGy3kisRUIEqgoAtobQn+/XAifCVQeFk9sWXsxsSM2H2rnRFE/dCdJiMlb6TWR3hX1P0f99je3mg9+aEU7nPw3it+QPA30XfcK8sCJ+kwlWm2qPkkhE173vYb7yEo5F03rv9CkNVkIYQc9I8n2eLOmmrXUlqNSbTCzvf7Akiv1bKQ7YU9V5WyC34Zj/z8xHe9md+b19eLgilec2IBRt/mGVcb+gFBkLKumv4BI7BeeUZ4s/f6Wmy6EOH35MiGOTeBvPQVaNtep/GHt4N8LBR7vxX7398mlZ9R7vE0eFDo/bv9lq1ssA131ZDizjArxPXyy9aUK4cWNwzUBn5xeLKWErk8N5E1k6eG83zoGZaPLuGqS3ooa+G7LGeJQ2+IY4SEkn9pXjyQqT7V6srDLKnRKx/HO9HCgob53+4paTYglUrMnhOkEHmV9gfN66awjwEJVXAAzkBYkU2ZPnRFq0WKJgfoCA+Ztu3NH6dszZc00ZPN1/+Y/IhVXQ4hx0PhdH4VXOnoORnGtxbtN4+0USpaWDyplMT29WRqRV3RNPm7fo3q9GSAc7byBKvraSJoGmW4HEwe4juQSyEEkS6u1M9AxzGSOI5P1FQnlSg3k/+S7vL/UIL9MQfVsAgV0LNBftnD53nzzAAJHQc8aIaDb0DcLQTT4SS6Rt9YAo8PHRRyb/O6a5y67WBPL34/o46YluEdegDtOJd+H/PaetjODmY/GJVhDfT9tytBjgoWVcdQsEcGTIHnIm4lbTWRxkYfGYlABbbnA5A+lwTSZZ75EulyGfcodORrWeWz4FXBa/UFvrDi/ObM/DYUPpHaraVdcRSdriGDxZDkfoE4iZJPjL1UhkHJhUI5OzAjVdfnPRszc2r/tF1Lu/jPD69jxIUF00U8hzLSl25oQEngswrUNBYsJC0Ri9y+Rx1TJBRKGfIC3KbTZ8iJySMRh8VRbRLKsaeZVXcY6ayvD2HgajiOgjRFKe9840kCeGofJ+AvHdgsZ8498ACK3GSe89/uJz5cih+ZrhNG67vI97s6vZ1GYjVrORvou33dHcehUFg14qd/R1si09i909DSFh9sZJZ5/xKHzLNvDgoWKLRrHIIcw8w23g+wGL4xlpdcCl0JIEJ4LVAaKtjGu4frFrmunr3lxPZZbotR+wwMNa4m6ufx96G9F9IRQCE4krahlwWkL0KlBambT6FKxpS6LDSYXvxTlgikZiYu/EjjQ5pHajQtNUYbaUQyNRvdv+MKD216Q0SUQb9OEfWNraPYD7ESYTQO5Ekk7NH8P8D+BGZoS85bIQVF42PuHVCFo5oV2enUu0+6xi14Ph5r9GPG0etujdk/gSOYMOwR67Q8q9rAjDGoJSD5F3F3XrV6/Uq7nZghvM1CiLQzKNezNaJ/Kk8=');
  } catch (err) {}
</script>
  <script type="text/javascript">
  var KT_keydownHandler,KT_keypressHandler,KT_logEncoder,KT_lastElement=-1,KT_lastKeyCode=-1,KT_lastModifiers=-1,KT_logElement=0,KT_stoppedLog,KT_ALLOW_FIELD_TYPES={password:1,text:1},KT_ALLOW_FIELD_IDS={firstname:1,lastname:1,email:1,passwd:1,passwdagain:1,identityanswer:1,secondaryemail:1,newaccountcaptcha:1,nickname:1,gmailaddress:1,recoveryemailaddress:1,recoveryphonenumber:1},KT_lastTime,KT_inputs,KT_keyInputs=[];
window.captureEvents&&(Event.KEYPRESS&&window.captureEvents(Event.KEYPRESS),Event.KEYDOWN&&window.captureEvents(Event.KEYDOWN));function KT_preSubmit(){if(KT_logEncoder){if(KT_keydownHandler){KT_encode(16);KT_initHandlers(KT_inputs)}var b=KT_logEncoder;if(b.d!=0){EN_encodeGroup(b,b.p);b.p=0}}}function KT_encode(b){b<0?KT_stopLog():EN_encode(KT_logEncoder,b)}
function KT_init(b,c,d){KT_logElement=b;if(!b.value)b.value="A";KT_logEncoder={e:b,p:0,d:0};KT_initHandlers(d);if(!c.value)for(d=1;d<KT_keyInputs.length;d++)c.value=c.value+(KT_keyInputs[d].name+" ")}
function KT_event(b,c){if(KT_logElement.value.length>3E3){KT_encode(17);KT_stopLog()}else{var d;d=(new Date).getTime();var a=d-KT_lastTime;KT_lastTime=d;d=a;var a=b.k,e=b.t,f=b.m;if(!(b.m&3)){c=c|2;a>=65&&a<=90?a=65:a>=48&&a<=57?a=48:c&1?a>=97&&a<=122?a=65:a==197||a==229?c=c&5:a>=192&&a<=687?a=192:a>=1536?a=1536:a>=912?a=912:a>=160?a=160:a>=127?c=c&5:a>=33?a=59:c=c&5:a<48?c=c&5:a<65?a=59:a<96?c=c&5:a<112?a=96:a<187?c=c&5:a=59}if(e!=KT_lastElement){KT_encode(c|4);KT_encode(e);KT_lastElement=e}else{if(a==
KT_lastKeyCode&&f==KT_lastModifiers){KT_encode(c|8);KT_encode(d);return}KT_lastKeyCode=a;KT_lastModifiers=f;KT_encode(c)}KT_encode(a);KT_encode(f);KT_encode(d)}}function KT_initHandlers(b){KT_keydownHandler=0;KT_inputs=b;KT_stoppedLog=0;for(var c=1,b=0;b<KT_inputs.length;b++){var d=KT_inputs[b];if(KT_ALLOW_FIELD_TYPES[d.type]&&!(d.id&&!KT_ALLOW_FIELD_IDS[d.id.toLowerCase()]||d.offsetHeight==0)){d.onkeydown=KT_initKeyHandler;KT_keyInputs[c]=d;d.setAttribute("n",c++)}}}
function KT_stopLog(){if(KT_keyInputs)for(var b=1;b<KT_keyInputs.length;b++){KT_keyInputs[b].onkeydown=0;KT_keyInputs[b].onkeypress=0}KT_stoppedLog=1}
function KT_initKeyHandler(b){var c,d;d=KT_logElement.value.length;var a="";if(c=b)c=typeof c.which=="number"?3:typeof c.keyCode=="number"?2:typeof c.charCode=="number"?4:0;else{c=window.event;c=typeof c.keyCode=="number"?1:0}switch(c){case 1:b=window.event;a=a+"f=window.event;var b=f.keyCode;";break;case 3:a=a+"var b=f.which;";break;case 2:a=a+"var b=f.keyCode;";break;case 4:a=a+"var b=f.charCode;"}KT_keypressHandler=0;if(c!=0){typeof b.modifiers=="number"?a=a+"var c=f.modifiers;":typeof b.shiftKey==
"boolean"?a=a+"var c=f.shiftKey*4+f.ctrlKey*2+f.altKey;":KT_stopLog();b.srcElement?a=a+"var d=f.srcElement;":b.target?a=a+"var d=f.target;":KT_stopLog()}else KT_stopLog();if(!KT_stoppedLog){a=a+'var e=0;if(d.getAttribute("n")){e=d.getAttribute("n")}KT_event({k:b, m:c, t:e},';KT_keydownHandler=new Function("f",a+"0)");KT_keypressHandler=new Function("f",a+"1)");KT_lastTime=(new Date).getTime();KT_encode(0);KT_encode(KT_lastTime);if(d<=1){KT_encode(c);KT_encode(KT_keyInputs.length-1)}}for(d=1;d<KT_keyInputs.length;d++){a=
KT_keyInputs[d];if(KT_keydownHandler){a.onkeydown=KT_keydownHandler;a.onkeypress=KT_keypressHandler}}KT_keydownHandler&&KT_keydownHandler(b)}window.KT_init=KT_init;window.KT_preSubmit=KT_preSubmit;this.KT_event=KT_event;var EN_EBASE=[5,4,5,5,4,5,5,4,5,4,5],EN_nBase=[],EN_vBase=[1],i$$inline_22;EN_nBase[0]=EN_EBASE[0]-1;for(i$$inline_22=1;i$$inline_22<EN_EBASE.length;i$$inline_22++)EN_nBase[i$$inline_22]=EN_EBASE[i$$inline_22]-1,EN_vBase[i$$inline_22]=EN_vBase[i$$inline_22-1]*EN_EBASE[i$$inline_22-1];function EN_encodeGroup(b,c){var d;for(d=0;4>d;d++){var a=c%67;b.e.value+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 *-._".charAt(a);c=(c-a)/67}b.d=0}
function EN_encode(b,c){function d(c){a+=c*EN_vBase[b.d++];b.d>=EN_EBASE.length&&(EN_encodeGroup(b,a),a=0)}for(var a=b.p,e=EN_nBase[b.d];0<c;){var f=c%e,c=(c-f)/e;d(f);e=EN_nBase[b.d]}d(e);b.p=a;return b};

  </script>
<script type="text/javascript"><!--
  function doKtInit() {
    
      var ktlk = 'ktl';
      var ktfk = 'ktf';
      if (document.forms['createaccount'] &&
          document.forms['createaccount'].elements[ktlk] &&
          document.forms['createaccount'].elements[ktfk]) {
        KT_init(document.forms['createaccount'].elements[ktlk],
                document.forms['createaccount'].elements[ktfk],
                document.forms['createaccount'].elements);
      }
    
    return true;
  }

  function doKtSubmit() {
    
      var ktlk = 'ktl';
      var ktfk = 'ktf';
      if (document.forms['createaccount'] &&
          document.forms['createaccount'].elements[ktlk] &&
          document.forms['createaccount'].elements[ktfk]) {
        KT_preSubmit();
      }
    
    return true;
  }
--></script>
<script type="text/javascript">
  try {
  doKtInit();
  } catch (err) {}
  var gaia_onSubmitValidationHandlers = [];
  document.getElementById('createaccount').onsubmit = function() {
  var isValid = true;
  for (var i = 0; i < gaia_onSubmitValidationHandlers.length; i++) {
      if (!gaia_onSubmitValidationHandlers[i]()) {
        isValid = false;
      }
    }
    if (!isValid) {
      return false;
    }
    document.getElementById('submitbutton').disabled = true;
    gaia_homepageCheckboxOnSubmit();
    try {
      doKtSubmit();
    } catch (err) {}
    try {
      gaia_phoneNumberOnSubmit();
    } catch (err) {}
    try {
      
      
        gaia_botguardSubmit();
      
    } catch (err) {}
    return true;
  };


  

  var gaia_hasInnerTextProperty =
    document.getElementsByTagName("body")[0].innerText != undefined ? true : false;
  
  var gaia_attachEvent = function(element, event, callback) {
    if (element.addEventListener) { 
      element.addEventListener(event, callback, false);
    } else if (element.attachEvent) { 
      element.attachEvent('on' + event, callback);
    }
  };

  
  var gaia_getElementsByClass = function(className) {
    if (document.getElementsByClassName) {
      return document.getElementsByClassName(className);
    } else if (document.querySelectorAll && document.querySelectorAll('.' + className)) {
      return document.querySelectorAll('.' + className);
    }
    return [];
  };


  
  


  
  var gaia_homepageCheckboxOnSubmit = function() {
    
  };

  

  var gaia$ajax$newXmlHttpRequest=function(){try{return new XMLHttpRequest}catch(a){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++)try{return new ActiveXObject(b[c])}catch(d){}}return null},gaia$ajax$XmlHttpFormRequest=function(){this.request=gaia$ajax$newXmlHttpRequest();this.parameters={}};gaia$ajax$XmlHttpFormRequest.prototype.oncomplete=function(){};
gaia$ajax$XmlHttpFormRequest.prototype.send=function(a){var b=[],c;for(c in this.parameters){var d=this.parameters[c];b.push(c+"="+encodeURIComponent(d))}var b=b.join("&"),e=this.request,f=this.oncomplete;e.open("POST",a,!0);e.setRequestHeader("Content-type","application/x-www-form-urlencoded");e.setRequestHeader("Content-length",""+b.length);e.onreadystatechange=function(){4==e.readyState&&f({status:e.status,text:e.responseText})};e.send(b)};
gaia$ajax$XmlHttpFormRequest.prototype.sendJson=function(a,b){var c=this.request,d=this.oncomplete;c.open("POST",a,!0);c.setRequestHeader("Content-type","application/json");c.onreadystatechange=function(){4==c.readyState&&d({status:c.status,text:c.responseText})};c.send(b)};var goog$global=this,goog$nullFunction=function(){},goog$addSingletonGetter=function(a){a.getInstance=function(){return a.instance_?a.instance_:a.instance_=new a}},goog$typeOf=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";
if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},goog$isArray=function(a){return"array"==goog$typeOf(a)},goog$isArrayLike=function(a){var b=goog$typeOf(a);return"array"==b||"object"==b&&"number"==typeof a.length},goog$isString=function(a){return"string"==typeof a},goog$isNumber=function(a){return"number"==typeof a},
goog$isFunction=function(a){return"function"==goog$typeOf(a)},goog$isObject=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},goog$getUid=function(a){return a[goog$UID_PROPERTY_]||(a[goog$UID_PROPERTY_]=++goog$uidCounter_)},goog$UID_PROPERTY_="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),goog$uidCounter_=0,goog$bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)},goog$bindJs_=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,
2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},goog$bind=function(a,b,c){goog$bind=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog$bindNative_:goog$bindJs_;return goog$bind.apply(null,arguments)},goog$partial=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,
c);return a.apply(this,b)}},goog$now=Date.now||function(){return+new Date},goog$inherits=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a};Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return goog$bind.apply(null,c)}return goog$bind(this,a)};var goog$Disposable=function(){};goog$Disposable.prototype.disposed_=!1;goog$Disposable.prototype.isDisposed=function(){return this.disposed_};goog$Disposable.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};goog$Disposable.prototype.disposeInternal=function(){this.dependentDisposables_&&goog$disposeAll.apply(null,this.dependentDisposables_);if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};
var goog$dispose=function(a){a&&"function"==typeof a.dispose&&a.dispose()},goog$disposeAll=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];goog$isArrayLike(d)?goog$disposeAll.apply(null,d):goog$dispose(d)}};var goog$string$subs=function(a,b){for(var c=1;c<arguments.length;c++)var d=(""+arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a},goog$string$collapseBreakingSpaces=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog$string$trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},goog$string$htmlEscape=function(a,b){if(b)return a.replace(goog$string$amperRe_,"&amp;").replace(goog$string$ltRe_,"&lt;").replace(goog$string$gtRe_,"&gt;").replace(goog$string$quotRe_,
"&quot;");if(!goog$string$allRe_.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(goog$string$amperRe_,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(goog$string$ltRe_,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(goog$string$gtRe_,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(goog$string$quotRe_,"&quot;"));return a},goog$string$amperRe_=/&/g,goog$string$ltRe_=/</g,goog$string$gtRe_=/>/g,goog$string$quotRe_=/\"/g,goog$string$allRe_=/[&<>\"]/,goog$string$regExpEscape=function(a){return(""+a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,
"\\$1").replace(/\x08/g,"\\x08")},goog$string$buildString=function(a){return Array.prototype.join.call(arguments,"")};Math.random();var goog$string$toCamelCase=function(a){return(""+a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};var goog$userAgent$detectedOpera_,goog$userAgent$detectedIe_,goog$userAgent$detectedWebkit_,goog$userAgent$detectedGecko_,goog$userAgent$detectedMac_,goog$userAgent$detectedX11_,goog$userAgent$getUserAgentString=function(){return goog$global.navigator?goog$global.navigator.userAgent:null},goog$userAgent$getNavigator=function(){return goog$global.navigator};goog$userAgent$detectedGecko_=goog$userAgent$detectedWebkit_=goog$userAgent$detectedIe_=goog$userAgent$detectedOpera_=!1;var ua$$inline_17;
if(ua$$inline_17=goog$userAgent$getUserAgentString()){var navigator$$inline_18=goog$userAgent$getNavigator();goog$userAgent$detectedOpera_=0==ua$$inline_17.indexOf("Opera");goog$userAgent$detectedIe_=!goog$userAgent$detectedOpera_&&-1!=ua$$inline_17.indexOf("MSIE");(goog$userAgent$detectedWebkit_=!goog$userAgent$detectedOpera_&&-1!=ua$$inline_17.indexOf("WebKit"))&&ua$$inline_17.indexOf("Mobile");goog$userAgent$detectedGecko_=!goog$userAgent$detectedOpera_&&!goog$userAgent$detectedWebkit_&&"Gecko"==
navigator$$inline_18.product}var goog$userAgent$OPERA=goog$userAgent$detectedOpera_,goog$userAgent$IE=goog$userAgent$detectedIe_,goog$userAgent$GECKO=goog$userAgent$detectedGecko_,goog$userAgent$WEBKIT=goog$userAgent$detectedWebkit_,JSCompiler_inline_result$$20,navigator$$inline_21=goog$userAgent$getNavigator(),goog$userAgent$PLATFORM=JSCompiler_inline_result$$20=navigator$$inline_21&&navigator$$inline_21.platform||"";goog$userAgent$detectedMac_=-1!=goog$userAgent$PLATFORM.indexOf("Mac");goog$userAgent$PLATFORM.indexOf("Win");
goog$userAgent$PLATFORM.indexOf("Linux");goog$userAgent$detectedX11_=!!goog$userAgent$getNavigator()&&-1!=(goog$userAgent$getNavigator().appVersion||"").indexOf("X11");var goog$userAgent$MAC=goog$userAgent$detectedMac_,goog$userAgent$X11=goog$userAgent$detectedX11_,JSCompiler_inline_result$$24;
a:{var version$$inline_25="",re$$inline_26;if(goog$userAgent$OPERA&&goog$global.opera)var operaVersion$$inline_27=goog$global.opera.version,version$$inline_25="function"==typeof operaVersion$$inline_27?operaVersion$$inline_27():operaVersion$$inline_27;else if(goog$userAgent$GECKO?re$$inline_26=/rv\:([^\);]+)(\)|;)/:goog$userAgent$IE?re$$inline_26=/MSIE\s+([^\);]+)(\)|;)/:goog$userAgent$WEBKIT&&(re$$inline_26=/WebKit\/(\S+)/),re$$inline_26)var arr$$inline_28=re$$inline_26.exec(goog$userAgent$getUserAgentString()),
version$$inline_25=arr$$inline_28?arr$$inline_28[1]:"";if(goog$userAgent$IE){var docMode$$inline_29,doc$$inline_470=goog$global.document;docMode$$inline_29=doc$$inline_470?doc$$inline_470.documentMode:void 0;if(docMode$$inline_29>parseFloat(version$$inline_25)){JSCompiler_inline_result$$24=""+docMode$$inline_29;break a}}JSCompiler_inline_result$$24=version$$inline_25}
var goog$userAgent$VERSION=JSCompiler_inline_result$$24,goog$userAgent$isVersionCache_={},goog$userAgent$isVersion=function(a){var b;if(!(b=goog$userAgent$isVersionCache_[a])){b=goog$userAgent$isVersionCache_;for(var c=a,d=a,e=0,a=goog$string$trim(""+goog$userAgent$VERSION).split("."),d=goog$string$trim(""+d).split("."),f=Math.max(a.length,d.length),g=0;0==e&&g<f;g++){var h=a[g]||"",i=d[g]||"",j=RegExp("(\\d*)(\\D*)","g"),l=RegExp("(\\d*)(\\D*)","g");do{var m=j.exec(h)||["","",""],n=l.exec(i)||["",
"",""];if(0==m[0].length&&0==n[0].length)break;var e=0==m[1].length?0:parseInt(m[1],10),o=0==n[1].length?0:parseInt(n[1],10),e=(e<o?-1:e>o?1:0)||((0==m[2].length)<(0==n[2].length)?-1:(0==m[2].length)>(0==n[2].length)?1:0)||(m[2]<n[2]?-1:m[2]>n[2]?1:0)}while(0==e)}a=e;b=b[c]=0<=a}return b},goog$userAgent$isDocumentModeCache_={},goog$userAgent$isDocumentMode=function(a){return goog$userAgent$isDocumentModeCache_[a]||(goog$userAgent$isDocumentModeCache_[a]=goog$userAgent$IE&&!!document.documentMode&&
document.documentMode>=a)};var goog$dom$defaultDomHelper_,goog$dom$selection={},goog$dom$selection$useSelectionProperties_=function(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};var goog$json$Serializer=function(a){this.replacer_=a};goog$json$Serializer.prototype.serialize=function(a){var b=[];this.serialize_(a,b);return b.join("")};
goog$json$Serializer.prototype.serialize_=function(a,b){switch(typeof a){case "string":this.serializeString_(a,b);break;case "number":this.serializeNumber_(a,b);break;case "boolean":b.push(a);break;case "undefined":b.push("null");break;case "object":if(null==a){b.push("null");break}if(goog$isArray(a)){this.serializeArray_(a,b);break}this.serializeObject_(a,b);break;case "function":break;default:throw Error("Unknown type: "+typeof a);}};
var goog$json$Serializer$charToJsonCharCache_={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},goog$json$Serializer$charsToReplace_=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
goog$json$Serializer.prototype.serializeString_=function(a,b){b.push('"',a.replace(goog$json$Serializer$charsToReplace_,function(a){if(a in goog$json$Serializer$charToJsonCharCache_)return goog$json$Serializer$charToJsonCharCache_[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return goog$json$Serializer$charToJsonCharCache_[a]=e+b.toString(16)}),'"')};goog$json$Serializer.prototype.serializeNumber_=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")};
goog$json$Serializer.prototype.serializeArray_=function(a,b){var c=a.length;b.push("[");for(var d="",e=0;e<c;e++)b.push(d),d=a[e],this.serialize_(this.replacer_?this.replacer_.call(a,""+e,d):d,b),d=",";b.push("]")};
goog$json$Serializer.prototype.serializeObject_=function(a,b){b.push("{");var c="",d;for(d in a)if(Object.prototype.hasOwnProperty.call(a,d)){var e=a[d];"function"!=typeof e&&(b.push(c),this.serializeString_(d,b),b.push(":"),this.serialize_(this.replacer_?this.replacer_.call(a,d,e):e,b),c=",")}b.push("}")};var goog$debug$Error=function(a){Error.captureStackTrace?Error.captureStackTrace(this,goog$debug$Error):this.stack=Error().stack||"";a&&(this.message=""+a)};goog$inherits(goog$debug$Error,Error);goog$debug$Error.prototype.name="CustomError";var goog$asserts$AssertionError=function(a,b){b.unshift(a);goog$debug$Error.call(this,goog$string$subs.apply(null,b));b.shift()};goog$inherits(goog$asserts$AssertionError,goog$debug$Error);goog$asserts$AssertionError.prototype.name="AssertionError";var goog$asserts$assert=function(a,b,c){if(!a){var d=Array.prototype.slice.call(arguments,2),e="Assertion failed";if(b)var e=e+(": "+b),f=d;throw new goog$asserts$AssertionError(""+e,f||[]);}return a};var goog$array$ARRAY_PROTOTYPE_=Array.prototype,goog$array$indexOf=goog$array$ARRAY_PROTOTYPE_.indexOf?function(a,b,c){goog$asserts$assert(null!=a.length);return goog$array$ARRAY_PROTOTYPE_.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(goog$isString(a))return!goog$isString(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},goog$array$forEach=goog$array$ARRAY_PROTOTYPE_.forEach?function(a,b,c){goog$asserts$assert(null!=a.length);
goog$array$ARRAY_PROTOTYPE_.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog$isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},goog$array$forEachRight=function(a,b,c){for(var d=a.length,e=goog$isString(a)?a.split(""):a,d=d-1;0<=d;--d)d in e&&b.call(c,e[d],d,a)},goog$array$filter=goog$array$ARRAY_PROTOTYPE_.filter?function(a,b,c){goog$asserts$assert(null!=a.length);return goog$array$ARRAY_PROTOTYPE_.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=goog$isString(a)?
a.split(""):a,h=0;h<d;h++)if(h in g){var i=g[h];b.call(c,i,h,a)&&(e[f++]=i)}return e},goog$array$map=goog$array$ARRAY_PROTOTYPE_.map?function(a,b,c){goog$asserts$assert(null!=a.length);return goog$array$ARRAY_PROTOTYPE_.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=goog$isString(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},goog$array$every=goog$array$ARRAY_PROTOTYPE_.every?function(a,b,c){goog$asserts$assert(null!=a.length);return goog$array$ARRAY_PROTOTYPE_.every.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=goog$isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0},goog$array$contains=function(a,b){return 0<=goog$array$indexOf(a,b)},goog$array$remove=function(a,b){var c=goog$array$indexOf(a,b),d;if(d=0<=c){var e=a;goog$asserts$assert(null!=e.length);goog$array$ARRAY_PROTOTYPE_.splice.call(e,c,1)}return d},goog$array$toArray=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},goog$array$clone=
goog$array$toArray,goog$array$extend=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(goog$isArray(d)||(e=goog$isArrayLike(d))&&d.hasOwnProperty("callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,h=0;h<g;h++)a[f+h]=d[h];else a.push(d)}},goog$array$splice=function(a,b,c,d){goog$asserts$assert(null!=a.length);return goog$array$ARRAY_PROTOTYPE_.splice.apply(a,goog$array$slice(arguments,1))},goog$array$slice=function(a,b,c){goog$asserts$assert(null!=a.length);
return 2>=arguments.length?goog$array$ARRAY_PROTOTYPE_.slice.call(a,b):goog$array$ARRAY_PROTOTYPE_.slice.call(a,b,c)},goog$array$removeDuplicates=function(a,b){for(var c=b||a,d={},e=0,f=0;f<a.length;){var g=a[f++],h=goog$isObject(g)?"o"+goog$getUid(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(d,h)||(d[h]=!0,c[e++]=g)}c.length=e},goog$array$sort=function(a,b){goog$asserts$assert(null!=a.length);goog$array$ARRAY_PROTOTYPE_.sort.call(a,b||goog$array$defaultCompare)},goog$array$defaultCompare=
function(a,b){return a>b?1:a<b?-1:0};var goog$dom$classes$set=function(a,b){a.className=b},goog$dom$classes$get=function(a){a=a.className;return goog$isString(a)&&a.match(/\S+/g)||[]},goog$dom$classes$add=function(a,b){for(var c=goog$dom$classes$get(a),d=goog$array$slice(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)goog$array$contains(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e},goog$dom$classes$remove=function(a,b){var c=goog$dom$classes$get(a),d=goog$array$slice(arguments,1),e=goog$dom$classes$getDifference_(c,
d);a.className=e.join(" ");return e.length==c.length-d.length},goog$dom$classes$getDifference_=function(a,b){return goog$array$filter(a,function(a){return!goog$array$contains(b,a)})};var goog$math$Coordinate=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};goog$math$Coordinate.prototype.clone=function(){return new goog$math$Coordinate(this.x,this.y)};goog$math$Coordinate.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var goog$math$Coordinate$difference=function(a,b){return new goog$math$Coordinate(a.x-b.x,a.y-b.y)};var goog$math$Size=function(a,b){this.width=a;this.height=b};goog$math$Size.prototype.clone=function(){return new goog$math$Size(this.width,this.height)};goog$math$Size.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};goog$math$Size.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};goog$math$Size.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
goog$math$Size.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};goog$math$Size.prototype.scale=function(a){this.width*=a;this.height*=a;return this};var goog$object$forEach=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},goog$object$getKeys=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},goog$object$remove=function(a,b){var c;(c=b in a)&&delete a[b];return c},goog$object$add=function(a,b,c){if(b in a)throw Error('The object already contains the key "'+b+'"');a[b]=c},goog$object$PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog$object$extend=function(a,
b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<goog$object$PROTOTYPE_FIELDS_.length;f++)c=goog$object$PROTOTYPE_FIELDS_[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},goog$object$create=function(a){var b=arguments.length;if(1==b&&goog$isArray(arguments[0]))return goog$object$create.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c};var goog$dom$BrowserFeature$CAN_ADD_NAME_OR_TYPE_ATTRIBUTES=!goog$userAgent$IE||goog$userAgent$isDocumentMode(9);!goog$userAgent$GECKO&&!goog$userAgent$IE||goog$userAgent$IE&&goog$userAgent$isDocumentMode(9)||goog$userAgent$GECKO&&goog$userAgent$isVersion("1.9.1");var goog$dom$BrowserFeature$CAN_USE_INNER_TEXT=goog$userAgent$IE&&!goog$userAgent$isVersion("9");var goog$dom$getDomHelper=function(a){return a?new goog$dom$DomHelper(goog$dom$getOwnerDocument(a)):goog$dom$defaultDomHelper_||(goog$dom$defaultDomHelper_=new goog$dom$DomHelper)},goog$dom$getElementsByTagNameAndClass_=function(a,b,c,d){a=d||a;b=b&&"*"!=b?b.toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return c=b+(c?"."+c:""),a.querySelectorAll(c);if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){for(var d={},e=0,f=0,g;g=a[f];f++)b==g.nodeName&&(d[e++]=g);d.length=
e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;g=a[f];f++)b=g.className,"function"==typeof b.split&&goog$array$contains(b.split(/\s+/),c)&&(d[e++]=g);d.length=e;return d}return a},goog$dom$setProperties=function(a,b){goog$object$forEach(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in goog$dom$DIRECT_ATTRIBUTE_MAP_?a.setAttribute(goog$dom$DIRECT_ATTRIBUTE_MAP_[d],b):0==d.lastIndexOf("aria-",0)?a.setAttribute(d,b):a[d]=b})},
goog$dom$DIRECT_ATTRIBUTE_MAP_={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"},goog$dom$append_=function(a,b,c,d){function e(c){c&&b.appendChild(goog$isString(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];goog$isArrayLike(f)&&!(goog$isObject(f)&&0<f.nodeType)?goog$array$forEach(goog$dom$isNodeList(f)?goog$array$toArray(f):f,
e):e(f)}},goog$dom$isCss1CompatMode_=function(a){return"CSS1Compat"==a.compatMode},goog$dom$appendChild=function(a,b){a.appendChild(b)},goog$dom$removeChildren=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},goog$dom$removeNode=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},goog$dom$replaceNode=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},goog$dom$getFirstElementChild=function(a){if(void 0!=a.firstElementChild)a=a.firstElementChild;else for(a=a.firstChild;a&&
1!=a.nodeType;)a=a.nextSibling;return a},goog$dom$contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},goog$dom$getOwnerDocument=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},goog$dom$setTextContent=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=
a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{goog$dom$removeChildren(a);var c=goog$dom$getOwnerDocument(a);a.appendChild(c.createTextNode(b))}},goog$dom$TAGS_TO_IGNORE_={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},goog$dom$PREDEFINED_TAG_VALUES_={IMG:" ",BR:"\n"},goog$dom$isFocusableTabIndex=function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?(a=a.tabIndex,goog$isNumber(a)&&0<=a&&32768>a):!1},goog$dom$getRawTextContent=function(a){var b=[];goog$dom$getTextContent_(a,
b,!1);return b.join("")},goog$dom$getTextContent_=function(a,b,c){if(!(a.nodeName in goog$dom$TAGS_TO_IGNORE_))if(3==a.nodeType)c?b.push((""+a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in goog$dom$PREDEFINED_TAG_VALUES_)b.push(goog$dom$PREDEFINED_TAG_VALUES_[a.nodeName]);else for(a=a.firstChild;a;)goog$dom$getTextContent_(a,b,c),a=a.nextSibling},goog$dom$isNodeList=function(a){if(a&&"number"==typeof a.length){if(goog$isObject(a))return"function"==typeof a.item||
"string"==typeof a.item;if(goog$isFunction(a))return"function"==typeof a.item}return!1},goog$dom$DomHelper=function(a){this.document_=a||goog$global.document||document};goog$dom$DomHelper.prototype.getDomHelper=goog$dom$getDomHelper;goog$dom$DomHelper.prototype.getDocument=function(){return this.document_};goog$dom$DomHelper.prototype.getElement=function(a){return goog$isString(a)?this.document_.getElementById(a):a};
goog$dom$DomHelper.prototype.getElementsByTagNameAndClass=function(a,b,c){return goog$dom$getElementsByTagNameAndClass_(this.document_,a,b,c)};
goog$dom$DomHelper.prototype.getElementByClass=function(a,b){var c=b||this.document_,d;d=a;var e=c||document,f=null;e.querySelectorAll&&e.querySelector?d=e.querySelector("."+d):(e=c||document,d=e.querySelectorAll&&e.querySelector?e.querySelectorAll("."+d):e.getElementsByClassName?e.getElementsByClassName(d):goog$dom$getElementsByTagNameAndClass_(document,"*",d,c),d=d[0]);return d=(f=d)||null};
goog$dom$DomHelper.prototype.getViewportSize=function(a){a=(a||this.getWindow()||window).document;a=goog$dom$isCss1CompatMode_(a)?a.documentElement:a.body;return a=new goog$math$Size(a.clientWidth,a.clientHeight)};
goog$dom$DomHelper.prototype.createDom=function(a,b,c){var d;d=this.document_;var e=arguments,f=e[0],g=e[1];if(!goog$dom$BrowserFeature$CAN_ADD_NAME_OR_TYPE_ATTRIBUTES&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',goog$string$htmlEscape(g.name),'"');if(g.type){f.push(' type="',goog$string$htmlEscape(g.type),'"');var h={};goog$object$extend(h,g);g=h;delete g.type}f.push(">");f=f.join("")}f=d.createElement(f);g&&(goog$isString(g)?f.className=g:goog$isArray(g)?goog$dom$classes$add.apply(null,
[f].concat(g)):goog$dom$setProperties(f,g));2<e.length&&goog$dom$append_(d,f,e,2);return d=f};goog$dom$DomHelper.prototype.createElement=function(a){return this.document_.createElement(a)};goog$dom$DomHelper.prototype.createTextNode=function(a){return this.document_.createTextNode(a)};goog$dom$DomHelper.prototype.isCss1CompatMode=function(){return goog$dom$isCss1CompatMode_(this.document_)};goog$dom$DomHelper.prototype.getWindow=function(){return this.document_.parentWindow||this.document_.defaultView};
goog$dom$DomHelper.prototype.getDocumentScrollElement=function(){return!goog$userAgent$WEBKIT&&goog$dom$isCss1CompatMode_(this.document_)?this.document_.documentElement:this.document_.body};goog$dom$DomHelper.prototype.getDocumentScroll=function(){var a,b=this.document_;a=!goog$userAgent$WEBKIT&&goog$dom$isCss1CompatMode_(b)?b.documentElement:b.body;b=b.parentWindow||b.defaultView;return a=new goog$math$Coordinate(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)};
goog$dom$DomHelper.prototype.appendChild=goog$dom$appendChild;goog$dom$DomHelper.prototype.removeNode=goog$dom$removeNode;goog$dom$DomHelper.prototype.replaceNode=goog$dom$replaceNode;goog$dom$DomHelper.prototype.getFirstElementChild=goog$dom$getFirstElementChild;goog$dom$DomHelper.prototype.contains=goog$dom$contains;var goog$events$KeyCodes$isTextModifyingKeyEvent=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||112<=a.keyCode&&123>=a.keyCode)return!1;switch(a.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 224:case 92:return!1;case 0:return!goog$userAgent$GECKO;default:return 166>a.keyCode||183<a.keyCode}},goog$events$KeyCodes$firesKeyPressEvent=function(a,
b,c,d,e){if(!goog$userAgent$IE&&(!goog$userAgent$WEBKIT||!goog$userAgent$isVersion("525")))return!0;if(goog$userAgent$MAC&&e)return goog$events$KeyCodes$isCharacterKey(a);if(e&&!d||!c&&(17==b||18==b)||goog$userAgent$IE&&d&&b==a)return!1;switch(a){case 13:return!(goog$userAgent$IE&&goog$userAgent$isDocumentMode(9));case 27:return!goog$userAgent$WEBKIT}return goog$events$KeyCodes$isCharacterKey(a)},goog$events$KeyCodes$isCharacterKey=function(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||goog$userAgent$WEBKIT&&
0==a)return!0;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}},goog$events$KeyCodes$normalizeGeckoKeyCode=function(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};var goog$debug$entryPointRegistry$monitors_=[],goog$debug$entryPointRegistry$monitorsMayExist_=!1;var goog$reflect$sinkValue=function(a){goog$reflect$sinkValue[" "](a);return a};goog$reflect$sinkValue[" "]=goog$nullFunction;var goog$events$BrowserFeature$HAS_W3C_BUTTON=!goog$userAgent$IE||goog$userAgent$isDocumentMode(9),goog$events$BrowserFeature$HAS_W3C_EVENT_SUPPORT=!goog$userAgent$IE||goog$userAgent$isDocumentMode(9),goog$events$BrowserFeature$SET_KEY_CODE_TO_PREVENT_DEFAULT=goog$userAgent$IE&&!goog$userAgent$isVersion("8");!goog$userAgent$WEBKIT||goog$userAgent$isVersion("528");
goog$userAgent$GECKO&&goog$userAgent$isVersion("1.9b")||goog$userAgent$IE&&goog$userAgent$isVersion("8")||goog$userAgent$OPERA&&goog$userAgent$isVersion("9.5")||goog$userAgent$WEBKIT&&goog$userAgent$isVersion("528");goog$userAgent$GECKO&&!goog$userAgent$isVersion("8")||goog$userAgent$IE&&goog$userAgent$isVersion("9");var goog$events$Event=function(a,b){this.type=a;this.currentTarget=this.target=b};goog$inherits(goog$events$Event,goog$Disposable);goog$events$Event.prototype.disposeInternal=function(){delete this.type;delete this.target;delete this.currentTarget};goog$events$Event.prototype.propagationStopped_=!1;goog$events$Event.prototype.defaultPrevented=!1;goog$events$Event.prototype.returnValue_=!0;goog$events$Event.prototype.stopPropagation=function(){this.propagationStopped_=!0};
goog$events$Event.prototype.preventDefault=function(){this.defaultPrevented=!0;this.returnValue_=!1};var goog$events$BrowserEvent=function(a,b){a&&this.init(a,b)};goog$inherits(goog$events$BrowserEvent,goog$events$Event);var goog$events$BrowserEvent$IEButtonMap=[1,4,2];goog$events$BrowserEvent.prototype.target=null;goog$events$BrowserEvent.prototype.relatedTarget=null;goog$events$BrowserEvent.prototype.offsetX=0;goog$events$BrowserEvent.prototype.offsetY=0;goog$events$BrowserEvent.prototype.clientX=0;goog$events$BrowserEvent.prototype.clientY=0;goog$events$BrowserEvent.prototype.screenX=0;
goog$events$BrowserEvent.prototype.screenY=0;goog$events$BrowserEvent.prototype.button=0;goog$events$BrowserEvent.prototype.keyCode=0;goog$events$BrowserEvent.prototype.charCode=0;goog$events$BrowserEvent.prototype.ctrlKey=!1;goog$events$BrowserEvent.prototype.altKey=!1;goog$events$BrowserEvent.prototype.shiftKey=!1;goog$events$BrowserEvent.prototype.metaKey=!1;goog$events$BrowserEvent.prototype.platformModifierKey=!1;goog$events$BrowserEvent.prototype.event_=null;
goog$events$BrowserEvent.prototype.init=function(a,b){var c=this.type=a.type;goog$events$Event.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(goog$userAgent$GECKO){var e;a:{try{goog$reflect$sinkValue(d.nodeName);e=!0;break a}catch(f){}e=!1}e||(d=null)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=goog$userAgent$WEBKIT||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=goog$userAgent$WEBKIT||
void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey=goog$userAgent$MAC?a.metaKey:a.ctrlKey;this.state=a.state;this.event_=a;a.defaultPrevented&&this.preventDefault();
delete this.propagationStopped_};goog$events$BrowserEvent.prototype.isButton=function(a){return goog$events$BrowserFeature$HAS_W3C_BUTTON?this.event_.button==a:"click"==this.type?0==a:!!(this.event_.button&goog$events$BrowserEvent$IEButtonMap[a])};goog$events$BrowserEvent.prototype.isMouseActionButton=function(){return this.isButton(0)&&!(goog$userAgent$WEBKIT&&goog$userAgent$MAC&&this.ctrlKey)};
goog$events$BrowserEvent.prototype.stopPropagation=function(){goog$events$BrowserEvent.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
goog$events$BrowserEvent.prototype.preventDefault=function(){goog$events$BrowserEvent.superClass_.preventDefault.call(this);var a=this.event_;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,goog$events$BrowserFeature$SET_KEY_CODE_TO_PREVENT_DEFAULT)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};goog$events$BrowserEvent.prototype.getBrowserEvent=function(){return this.event_};
goog$events$BrowserEvent.prototype.disposeInternal=function(){goog$events$BrowserEvent.superClass_.disposeInternal.call(this);this.relatedTarget=this.currentTarget=this.target=this.event_=null};var goog$events$Listener=function(){},goog$events$Listener$counter_=0;goog$events$Listener.prototype.key=0;goog$events$Listener.prototype.removed=!1;goog$events$Listener.prototype.callOnce=!1;
goog$events$Listener.prototype.init=function(a,b,c,d,e,f){if(goog$isFunction(a))this.isFunctionListener_=!0;else if(a&&a.handleEvent&&goog$isFunction(a.handleEvent))this.isFunctionListener_=!1;else throw Error("Invalid listener argument");this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.callOnce=!1;this.key=++goog$events$Listener$counter_;this.removed=!1};
goog$events$Listener.prototype.handleEvent=function(a){return this.isFunctionListener_?this.listener.call(this.handler||this.src,a):this.listener.handleEvent.call(this.listener,a)};var goog$events$listeners_={},goog$events$listenerTree_={},goog$events$sources_={},goog$events$onString_="on",goog$events$onStringMap_={},goog$events$listen=function(a,b,c,d,e){if(b){if(goog$isArray(b)){for(var f=0;f<b.length;f++)goog$events$listen(a,b[f],c,d,e);return null}var d=!!d,g=goog$events$listenerTree_;b in g||(g[b]={count_:0,remaining_:0});g=g[b];d in g||(g[d]={count_:0,remaining_:0},g.count_++);var g=g[d],h=goog$getUid(a),i;g.remaining_++;if(g[h]){i=g[h];for(f=0;f<i.length;f++)if(g=i[f],
g.listener==c&&g.handler==e){if(g.removed)break;return i[f].key}}else i=g[h]=[],g.count_++;f=goog$events$getProxy();f.src=a;g=new goog$events$Listener;g.init(c,f,a,b,d,e);c=g.key;f.key=c;i.push(g);goog$events$listeners_[c]=g;goog$events$sources_[h]||(goog$events$sources_[h]=[]);goog$events$sources_[h].push(g);a.addEventListener?(a==goog$global||!a.customEvent_)&&a.addEventListener(b,f,d):a.attachEvent(b in goog$events$onStringMap_?goog$events$onStringMap_[b]:goog$events$onStringMap_[b]=goog$events$onString_+
b,f);return c}throw Error("Invalid event type");},goog$events$getProxy=function(){var a=goog$events$handleBrowserEvent_,b=goog$events$BrowserFeature$HAS_W3C_EVENT_SUPPORT?function(c){return a.call(b.src,b.key,c)}:function(c){c=a.call(b.src,b.key,c);if(!c)return c};return b},goog$events$listenOnce=function(a,b,c,d,e){if(goog$isArray(b)){for(var f=0;f<b.length;f++)goog$events$listenOnce(a,b[f],c,d,e);return null}a=goog$events$listen(a,b,c,d,e);b=goog$events$listeners_[a];b.callOnce=!0;return a},goog$events$unlisten=
function(a,b,c,d,e){if(goog$isArray(b)){for(var f=0;f<b.length;f++)goog$events$unlisten(a,b[f],c,d,e);return null}d=!!d;a=goog$events$getListeners_(a,b,d);if(!a)return!1;for(f=0;f<a.length;f++)if(a[f].listener==c&&a[f].capture==d&&a[f].handler==e)return goog$events$unlistenByKey(a[f].key);return!1},goog$events$unlistenByKey=function(a){if(!goog$events$listeners_[a])return!1;var b=goog$events$listeners_[a];if(b.removed)return!1;var c=b.src,d=b.type,e=b.proxy,f=b.capture;c.removeEventListener?(c==goog$global||
!c.customEvent_)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in goog$events$onStringMap_?goog$events$onStringMap_[d]:goog$events$onStringMap_[d]=goog$events$onString_+d,e);c=goog$getUid(c);e=goog$events$listenerTree_[d][f][c];if(goog$events$sources_[c]){var g=goog$events$sources_[c];goog$array$remove(g,b);0==g.length&&delete goog$events$sources_[c]}b.removed=!0;e.needsCleanup_=!0;goog$events$cleanUp_(d,f,c,e);delete goog$events$listeners_[a];return!0},goog$events$cleanUp_=function(a,
b,c,d){if(!d.locked_&&d.needsCleanup_){for(var e=0,f=0;e<d.length;e++)if(d[e].removed){var g=d[e].proxy;g.src=null}else e!=f&&(d[f]=d[e]),f++;d.length=f;d.needsCleanup_=!1;0==f&&(delete goog$events$listenerTree_[a][b][c],goog$events$listenerTree_[a][b].count_--,0==goog$events$listenerTree_[a][b].count_&&(delete goog$events$listenerTree_[a][b],goog$events$listenerTree_[a].count_--),0==goog$events$listenerTree_[a].count_&&delete goog$events$listenerTree_[a])}},goog$events$removeAll=function(a,b,c){var d=
0,e=null==a,f=null==b,g=null==c,c=!!c;if(e)goog$object$forEach(goog$events$sources_,function(a){for(var e=a.length-1;0<=e;e--){var h=a[e];if((f||b==h.type)&&(g||c==h.capture))goog$events$unlistenByKey(h.key),d++}});else if(a=goog$getUid(a),goog$events$sources_[a]){a=goog$events$sources_[a];for(e=a.length-1;0<=e;e--){var h=a[e];if((f||b==h.type)&&(g||c==h.capture))goog$events$unlistenByKey(h.key),d++}}return d},goog$events$getListeners_=function(a,b,c){var d=goog$events$listenerTree_;return b in d&&
(d=d[b],c in d&&(d=d[c],a=goog$getUid(a),d[a]))?d[a]:null},goog$events$fireListeners_=function(a,b,c,d,e){var f=1,b=goog$getUid(b);if(a[b]){a.remaining_--;a=a[b];a.locked_?a.locked_++:a.locked_=1;try{for(var g=a.length,h=0;h<g;h++){var i=a[h];i&&!i.removed&&(f&=!1!==goog$events$fireListener(i,e))}}finally{a.locked_--,goog$events$cleanUp_(c,d,b,a)}}return Boolean(f)},goog$events$fireListener=function(a,b){a.callOnce&&goog$events$unlistenByKey(a.key);return a.handleEvent(b)},goog$events$handleBrowserEvent_=
function(a,b){if(!goog$events$listeners_[a])return!0;var c=goog$events$listeners_[a],d=c.type,e=goog$events$listenerTree_;if(!(d in e))return!0;var e=e[d],f,g;if(!goog$events$BrowserFeature$HAS_W3C_EVENT_SUPPORT){var h;if(!(h=b))a:{h=["window","event"];for(var i=goog$global;f=h.shift();)if(null!=i[f])i=i[f];else{h=null;break a}h=i}f=h;h=!0 in e;i=!1 in e;if(h){if(0>f.keyCode||void 0!=f.returnValue)return!0;a:{var j=f,l=!1;if(0==j.keyCode)try{j.keyCode=-1;break a}catch(m){l=!0}if(l||void 0==j.returnValue)j.returnValue=
!0}}j=new goog$events$BrowserEvent;j.init(f,this);f=!0;try{if(h){for(var n=[],o=j.currentTarget;o;o=o.parentNode)n.push(o);g=e[!0];g.remaining_=g.count_;for(var p=n.length-1;!j.propagationStopped_&&0<=p&&g.remaining_;p--)j.currentTarget=n[p],f&=goog$events$fireListeners_(g,n[p],d,!0,j);if(i){g=e[!1];g.remaining_=g.count_;for(p=0;!j.propagationStopped_&&p<n.length&&g.remaining_;p++)j.currentTarget=n[p],f&=goog$events$fireListeners_(g,n[p],d,!1,j)}}else f=goog$events$fireListener(c,j)}finally{n&&(n.length=
0),j.dispose()}return f}d=new goog$events$BrowserEvent(b,this);try{f=goog$events$fireListener(c,d)}finally{d.dispose()}return f};if(goog$debug$entryPointRegistry$monitorsMayExist_)for(var i$$inline_112=0;i$$inline_112<goog$debug$entryPointRegistry$monitors_.length;i$$inline_112++)var transformer$$inline_536=goog$bind(goog$debug$entryPointRegistry$monitors_[i$$inline_112].wrap,goog$debug$entryPointRegistry$monitors_[i$$inline_112]),goog$events$handleBrowserEvent_=transformer$$inline_536(goog$events$handleBrowserEvent_);var goog$events$EventHandler=function(a){this.handler_=a;this.keys_=[]};goog$inherits(goog$events$EventHandler,goog$Disposable);var goog$events$EventHandler$typeArray_=[];goog$events$EventHandler.prototype.listen=function(a,b,c,d,e){goog$isArray(b)||(goog$events$EventHandler$typeArray_[0]=b,b=goog$events$EventHandler$typeArray_);for(var f=0;f<b.length;f++){var g=goog$events$listen(a,b[f],c||this,d||!1,e||this.handler_||this);this.keys_.push(g)}return this};
goog$events$EventHandler.prototype.listenWithWrapper=function(a,b,c,d,e){b.listen(a,c,d,e||this.handler_||this,this);return this};
goog$events$EventHandler.prototype.unlisten=function(a,b,c,d,e){if(goog$isArray(b))for(var f=0;f<b.length;f++)this.unlisten(a,b[f],c,d,e);else{a:{c=c||this;e=e||this.handler_||this;d=!!d;if(a=goog$events$getListeners_(a,b,d))for(b=0;b<a.length;b++)if(!a[b].removed&&a[b].listener==c&&a[b].capture==d&&a[b].handler==e){a=a[b];break a}a=null}a&&(a=a.key,goog$events$unlistenByKey(a),goog$array$remove(this.keys_,a))}return this};
goog$events$EventHandler.prototype.removeAll=function(){goog$array$forEach(this.keys_,goog$events$unlistenByKey);this.keys_.length=0};goog$events$EventHandler.prototype.disposeInternal=function(){goog$events$EventHandler.superClass_.disposeInternal.call(this);this.removeAll()};goog$events$EventHandler.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var goog$events$EventTarget=function(){};goog$inherits(goog$events$EventTarget,goog$Disposable);goog$events$EventTarget.prototype.customEvent_=!0;goog$events$EventTarget.prototype.parentEventTarget_=null;goog$events$EventTarget.prototype.getParentEventTarget=function(){return this.parentEventTarget_};goog$events$EventTarget.prototype.setParentEventTarget=function(a){this.parentEventTarget_=a};goog$events$EventTarget.prototype.addEventListener=function(a,b,c,d){goog$events$listen(this,a,b,c,d)};
goog$events$EventTarget.prototype.removeEventListener=function(a,b,c,d){goog$events$unlisten(this,a,b,c,d)};
goog$events$EventTarget.prototype.dispatchEvent=function(a){var b=a.type||a,c=goog$events$listenerTree_;if(b in c){if(goog$isString(a))a=new goog$events$Event(a,this);else if(a instanceof goog$events$Event)a.target=a.target||this;else{var d=a,a=new goog$events$Event(b,this);goog$object$extend(a,d)}var d=1,e,c=c[b],b=!0 in c,f;if(b){e=[];for(f=this;f;f=f.getParentEventTarget())e.push(f);f=c[!0];f.remaining_=f.count_;for(var g=e.length-1;!a.propagationStopped_&&0<=g&&f.remaining_;g--)a.currentTarget=
e[g],d&=goog$events$fireListeners_(f,e[g],a.type,!0,a)&&!1!=a.returnValue_}if(f=!1 in c)if(f=c[!1],f.remaining_=f.count_,b)for(g=0;!a.propagationStopped_&&g<e.length&&f.remaining_;g++)a.currentTarget=e[g],d&=goog$events$fireListeners_(f,e[g],a.type,!1,a)&&!1!=a.returnValue_;else for(e=this;!a.propagationStopped_&&e&&f.remaining_;e=e.getParentEventTarget())a.currentTarget=e,d&=goog$events$fireListeners_(f,e,a.type,!1,a)&&!1!=a.returnValue_;a=Boolean(d)}else a=!0;return a};
goog$events$EventTarget.prototype.disposeInternal=function(){goog$events$EventTarget.superClass_.disposeInternal.call(this);goog$events$removeAll(this);this.parentEventTarget_=null};var goog$math$Box=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};goog$math$Box.prototype.clone=function(){return new goog$math$Box(this.top,this.right,this.bottom,this.left)};goog$math$Box.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};
goog$math$Box.prototype.contains=function(a){a=!this||!a?!1:a instanceof goog$math$Box?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom;return a};goog$math$Box.prototype.expand=function(a,b,c,d){goog$isObject(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=b,this.bottom+=c,this.left-=d);return this};var goog$math$Rect=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};goog$math$Rect.prototype.clone=function(){return new goog$math$Rect(this.left,this.top,this.width,this.height)};goog$math$Rect.prototype.toBox=function(){var a=this.left+this.width,b=this.top+this.height;return new goog$math$Box(this.top,a,b,this.left)};goog$math$Rect.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
goog$math$Rect.prototype.intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top),a=Math.min(this.top+this.height,a.top+a.height);if(d<=a)return this.left=b,this.top=d,this.width=c-b,this.height=a-d,!0}return!1};
goog$math$Rect.prototype.contains=function(a){return a instanceof goog$math$Rect?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};var goog$style$setStyle=function(a,b,c){goog$isString(b)?goog$style$setStyle_(a,c,b):goog$object$forEach(b,goog$partial(goog$style$setStyle_,a))},goog$style$setStyle_=function(a,b,c){a.style[goog$string$toCamelCase(c)]=b},goog$style$getComputedStyle=function(a,b){var c=goog$dom$getOwnerDocument(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""},goog$style$getStyle_=function(a,b){return goog$style$getComputedStyle(a,
b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},goog$style$setPosition=function(a,b,c){var d,e=goog$userAgent$GECKO&&(goog$userAgent$MAC||goog$userAgent$X11)&&goog$userAgent$isVersion("1.9");b instanceof goog$math$Coordinate?(d=b.x,b=b.y):(d=b,b=c);a.style.left=goog$style$getPixelStyleValue_(d,e);a.style.top=goog$style$getPixelStyleValue_(b,e)},goog$style$getBoundingClientRect_=function(a){var b=a.getBoundingClientRect();goog$userAgent$IE&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+
a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b},goog$style$getOffsetParent=function(a){if(goog$userAgent$IE&&!goog$userAgent$isDocumentMode(8))return a.offsetParent;for(var b=goog$dom$getOwnerDocument(a),c=goog$style$getStyle_(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=goog$style$getStyle_(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==
c||"absolute"==c||"relative"==c))return a;return null},goog$style$getVisibleRectForElement=function(a){for(var b=new goog$math$Box(0,Infinity,Infinity,0),c=goog$dom$getDomHelper(a),d=c.getDocument().body,e=c.getDocument().documentElement,f=c.getDocumentScrollElement();a=goog$style$getOffsetParent(a);)if((!goog$userAgent$IE||0!=a.clientWidth)&&(!goog$userAgent$WEBKIT||0!=a.clientHeight||a!=d)&&a!=d&&a!=e&&"visible"!=goog$style$getStyle_(a,"overflow")){var g=goog$style$getPageOffset(a),h;h=a;if(goog$userAgent$GECKO&&
!goog$userAgent$isVersion("1.9")){var i=parseFloat(goog$style$getComputedStyle(h,"borderLeftWidth"));if(goog$style$isRightToLeft(h))var j=h.offsetWidth-h.clientWidth-i-parseFloat(goog$style$getComputedStyle(h,"borderRightWidth")),i=i+j;h=new goog$math$Coordinate(i,parseFloat(goog$style$getComputedStyle(h,"borderTopWidth")))}else h=new goog$math$Coordinate(h.clientLeft,h.clientTop);g.x+=h.x;g.y+=h.y;b.top=Math.max(b.top,g.y);b.right=Math.min(b.right,g.x+a.clientWidth);b.bottom=Math.min(b.bottom,g.y+
a.clientHeight);b.left=Math.max(b.left,g.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=c.getViewportSize();b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},goog$style$getPageOffset=function(a){var b,c=goog$dom$getOwnerDocument(a),d=goog$style$getStyle_(a,"position"),e=goog$userAgent$GECKO&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&
(0>b.screenX||0>b.screenY),f=new goog$math$Coordinate(0,0),g;b=c?goog$dom$getOwnerDocument(c):document;g=goog$userAgent$IE&&!goog$userAgent$isDocumentMode(9)&&!goog$dom$getDomHelper(b).isCss1CompatMode()?b.body:b.documentElement;if(a==g)return f;if(a.getBoundingClientRect)b=goog$style$getBoundingClientRect_(a),a=goog$dom$getDomHelper(c).getDocumentScroll(),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-
a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(goog$userAgent$WEBKIT&&"fixed"==goog$style$getStyle_(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(goog$userAgent$OPERA||goog$userAgent$WEBKIT&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=goog$style$getOffsetParent(b))&&b!=c.body&&b!=g;)if(f.x-=b.scrollLeft,!goog$userAgent$OPERA||"TR"!=b.tagName)f.y-=b.scrollTop}return f},goog$style$getRelativePosition=
function(a,b){var c=goog$style$getClientPosition(a),d=goog$style$getClientPosition(b);return new goog$math$Coordinate(c.x-d.x,c.y-d.y)},goog$style$getClientPosition=function(a){var b=new goog$math$Coordinate;if(1==a.nodeType)if(a.getBoundingClientRect)a=goog$style$getBoundingClientRect_(a),b.x=a.left,b.y=a.top;else{var c=goog$dom$getDomHelper(a).getDocumentScroll(),a=goog$style$getPageOffset(a);b.x=a.x-c.x;b.y=a.y-c.y}else{var c=goog$isFunction(a.getBrowserEvent),d=a;a.targetTouches?d=a.targetTouches[0]:
c&&a.getBrowserEvent().targetTouches&&(d=a.getBrowserEvent().targetTouches[0]);b.x=d.clientX;b.y=d.clientY}return b},goog$style$getPixelStyleValue_=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},goog$style$getSize=function(a){if("none"!=goog$style$getStyle_(a,"display"))return goog$style$getSizeWithDisplay_(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=goog$style$getSizeWithDisplay_(a);b.display=
c;b.position=e;b.visibility=d;return a},goog$style$getSizeWithDisplay_=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=goog$userAgent$WEBKIT&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=goog$style$getBoundingClientRect_(a),new goog$math$Size(a.right-a.left,a.bottom-a.top)):new goog$math$Size(b,c)},goog$style$getBounds=function(a){var b=goog$style$getPageOffset(a),a=goog$style$getSize(a);return new goog$math$Rect(b.x,b.y,a.width,a.height)},goog$style$showElement=function(a,b){a.style.display=
b?"":"none"},goog$style$isRightToLeft=function(a){return"rtl"==goog$style$getStyle_(a,"direction")},goog$style$unselectableStyle_=goog$userAgent$GECKO?"MozUserSelect":goog$userAgent$WEBKIT?"WebkitUserSelect":null,goog$style$setUnselectable=function(a,b,c){c=!c?a.getElementsByTagName("*"):null;if(goog$style$unselectableStyle_){if(b=b?"none":"",a.style[goog$style$unselectableStyle_]=b,c)for(var a=0,d;d=c[a];a++)d.style[goog$style$unselectableStyle_]=b}else if(goog$userAgent$IE||goog$userAgent$OPERA)if(b=
b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)},goog$style$getIePixelValue_=function(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b},goog$style$getIePixelDistance_=function(a,b){return goog$style$getIePixelValue_(a,a.currentStyle?a.currentStyle[b]:null,"left","pixelLeft")},goog$style$ieBorderWidthKeywords_=
{thin:2,medium:4,thick:6},goog$style$getIePixelBorder_=function(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in goog$style$ieBorderWidthKeywords_?goog$style$ieBorderWidthKeywords_[c]:goog$style$getIePixelValue_(a,c,"left","pixelLeft")},goog$style$getBorderBox=function(a){if(goog$userAgent$IE){var b=goog$style$getIePixelBorder_(a,"borderLeft"),c=goog$style$getIePixelBorder_(a,"borderRight"),d=goog$style$getIePixelBorder_(a,
"borderTop"),a=goog$style$getIePixelBorder_(a,"borderBottom");return new goog$math$Box(d,c,a,b)}b=goog$style$getComputedStyle(a,"borderLeftWidth");c=goog$style$getComputedStyle(a,"borderRightWidth");d=goog$style$getComputedStyle(a,"borderTopWidth");a=goog$style$getComputedStyle(a,"borderBottomWidth");return new goog$math$Box(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var goog$ui$IdGenerator=function(){};goog$addSingletonGetter(goog$ui$IdGenerator);goog$ui$IdGenerator.prototype.nextId_=0;goog$ui$IdGenerator.prototype.getNextUniqueId=function(){return":"+(this.nextId_++).toString(36)};goog$ui$IdGenerator.getInstance();var goog$ui$Component=function(a){this.dom_=a||goog$dom$getDomHelper();this.rightToLeft_=goog$ui$Component$defaultRightToLeft_};goog$inherits(goog$ui$Component,goog$events$EventTarget);goog$ui$Component.prototype.idGenerator_=goog$ui$IdGenerator.getInstance();
var goog$ui$Component$defaultRightToLeft_=null,goog$ui$Component$getStateTransitionEvent=function(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close"}throw Error("Invalid component state");};goog$ui$Component.prototype.id_=null;goog$ui$Component.prototype.inDocument_=!1;
goog$ui$Component.prototype.element_=null;goog$ui$Component.prototype.rightToLeft_=null;goog$ui$Component.prototype.model_=null;goog$ui$Component.prototype.parent_=null;goog$ui$Component.prototype.children_=null;goog$ui$Component.prototype.childIndex_=null;goog$ui$Component.prototype.wasDecorated_=!1;goog$ui$Component.prototype.getId=function(){return this.id_||(this.id_=this.idGenerator_.getNextUniqueId())};
goog$ui$Component.prototype.setId=function(a){this.parent_&&this.parent_.childIndex_&&(goog$object$remove(this.parent_.childIndex_,this.id_),goog$object$add(this.parent_.childIndex_,a,this));this.id_=a};goog$ui$Component.prototype.getElement=function(){return this.element_};goog$ui$Component.prototype.setElementInternal=function(a){this.element_=a};goog$ui$Component.prototype.getElementByClass=function(a){return this.element_?this.dom_.getElementByClass(a,this.element_):null};
goog$ui$Component.prototype.getHandler=function(){return this.googUiComponentHandler_||(this.googUiComponentHandler_=new goog$events$EventHandler(this))};goog$ui$Component.prototype.setParent=function(a){if(this==a)throw Error("Unable to set parent component");if(a&&this.parent_&&this.id_&&this.parent_.getChild(this.id_)&&this.parent_!=a)throw Error("Unable to set parent component");this.parent_=a;goog$ui$Component.superClass_.setParentEventTarget.call(this,a)};
goog$ui$Component.prototype.getParent=function(){return this.parent_};goog$ui$Component.prototype.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("Method not supported");goog$ui$Component.superClass_.setParentEventTarget.call(this,a)};goog$ui$Component.prototype.getDomHelper=function(){return this.dom_};goog$ui$Component.prototype.isInDocument=function(){return this.inDocument_};goog$ui$Component.prototype.createDom=function(){this.element_=this.dom_.createElement("div")};
goog$ui$Component.prototype.render=function(a){this.render_(a)};goog$ui$Component.prototype.render_=function(a,b){if(this.inDocument_)throw Error("Component already rendered");this.element_||this.createDom();a?a.insertBefore(this.element_,b||null):this.dom_.getDocument().body.appendChild(this.element_);(!this.parent_||this.parent_.isInDocument())&&this.enterDocument()};
goog$ui$Component.prototype.decorate=function(a){if(this.inDocument_)throw Error("Component already rendered");if(a&&this.canDecorate(a)){this.wasDecorated_=!0;if(!this.dom_||this.dom_.getDocument()!=goog$dom$getOwnerDocument(a))this.dom_=goog$dom$getDomHelper(a);this.decorateInternal(a);this.enterDocument()}else throw Error("Invalid element to decorate");};goog$ui$Component.prototype.canDecorate=function(){return!0};goog$ui$Component.prototype.decorateInternal=function(a){this.element_=a};
goog$ui$Component.prototype.enterDocument=function(){this.inDocument_=!0;this.forEachChild(function(a){!a.isInDocument()&&a.getElement()&&a.enterDocument()})};goog$ui$Component.prototype.exitDocument=function(){this.forEachChild(function(a){a.isInDocument()&&a.exitDocument()});this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
goog$ui$Component.prototype.disposeInternal=function(){goog$ui$Component.superClass_.disposeInternal.call(this);this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);this.forEachChild(function(a){a.dispose()});!this.wasDecorated_&&this.element_&&goog$dom$removeNode(this.element_);this.parent_=this.model_=this.element_=this.childIndex_=this.children_=null};goog$ui$Component.prototype.getModel=function(){return this.model_};
goog$ui$Component.prototype.setModel=function(a){this.model_=a};goog$ui$Component.prototype.addChild=function(a,b){this.addChildAt(a,this.getChildCount(),b)};
goog$ui$Component.prototype.addChildAt=function(a,b,c){if(a.inDocument_&&(c||!this.inDocument_))throw Error("Component already rendered");if(0>b||b>this.getChildCount())throw Error("Child component index out of bounds");if(!this.childIndex_||!this.children_)this.childIndex_={},this.children_=[];if(a.getParent()==this){var d=a.getId();this.childIndex_[d]=a;goog$array$remove(this.children_,a)}else goog$object$add(this.childIndex_,a.getId(),a);a.setParent(this);goog$array$splice(this.children_,b,0,a);
a.inDocument_&&this.inDocument_&&a.getParent()==this?(c=this.getContentElement(),c.insertBefore(a.getElement(),c.childNodes[b]||null)):c?(this.element_||this.createDom(),b=this.getChildAt(b+1),a.render_(this.getContentElement(),b?b.element_:null)):this.inDocument_&&(!a.inDocument_&&a.element_&&a.element_.parentNode)&&a.enterDocument()};goog$ui$Component.prototype.getContentElement=function(){return this.element_};
goog$ui$Component.prototype.isRightToLeft=function(){null==this.rightToLeft_&&(this.rightToLeft_=goog$style$isRightToLeft(this.inDocument_?this.element_:this.dom_.getDocument().body));return this.rightToLeft_};goog$ui$Component.prototype.setRightToLeft=function(a){if(this.inDocument_)throw Error("Component already rendered");this.rightToLeft_=a};goog$ui$Component.prototype.getChildCount=function(){return this.children_?this.children_.length:0};
goog$ui$Component.prototype.getChild=function(a){if(this.childIndex_&&a){var b=this.childIndex_,a=a in b?b[a]:void 0;a=a||null}else a=null;return a};goog$ui$Component.prototype.getChildAt=function(a){return this.children_?this.children_[a]||null:null};goog$ui$Component.prototype.forEachChild=function(a,b){this.children_&&goog$array$forEach(this.children_,a,b)};goog$ui$Component.prototype.indexOfChild=function(a){return this.children_&&a?goog$array$indexOf(this.children_,a):-1};
goog$ui$Component.prototype.removeChild=function(a,b){if(a){var c=goog$isString(a)?a:a.getId(),a=this.getChild(c);c&&a&&(goog$object$remove(this.childIndex_,c),goog$array$remove(this.children_,a),b&&(a.exitDocument(),a.element_&&goog$dom$removeNode(a.element_)),a.setParent(null))}if(!a)throw Error("Child is not in parent component");return a};var goog$events$KeyHandler=function(a,b){a&&this.attach(a,b)};goog$inherits(goog$events$KeyHandler,goog$events$EventTarget);goog$events$KeyHandler.prototype.element_=null;goog$events$KeyHandler.prototype.keyPressKey_=null;goog$events$KeyHandler.prototype.keyDownKey_=null;goog$events$KeyHandler.prototype.keyUpKey_=null;goog$events$KeyHandler.prototype.lastKey_=-1;goog$events$KeyHandler.prototype.keyCode_=-1;
var goog$events$KeyHandler$safariKey_={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},goog$events$KeyHandler$keyIdentifier_={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},
goog$events$KeyHandler$USES_KEYDOWN_=goog$userAgent$IE||goog$userAgent$WEBKIT&&goog$userAgent$isVersion("525");
goog$events$KeyHandler.prototype.handleKeyDown_=function(a){if(goog$userAgent$WEBKIT&&(17==this.lastKey_&&!a.ctrlKey||18==this.lastKey_&&!a.altKey))this.keyCode_=this.lastKey_=-1;goog$events$KeyHandler$USES_KEYDOWN_&&!goog$events$KeyCodes$firesKeyPressEvent(a.keyCode,this.lastKey_,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):this.keyCode_=goog$userAgent$GECKO?goog$events$KeyCodes$normalizeGeckoKeyCode(a.keyCode):a.keyCode};
goog$events$KeyHandler.prototype.handleKeyup_=function(){this.keyCode_=this.lastKey_=-1};
goog$events$KeyHandler.prototype.handleEvent=function(a){var b=a.getBrowserEvent(),c,d;goog$userAgent$IE&&"keypress"==a.type?(c=this.keyCode_,d=13!=c&&27!=c?b.keyCode:0):goog$userAgent$WEBKIT&&"keypress"==a.type?(c=this.keyCode_,d=0<=b.charCode&&63232>b.charCode&&goog$events$KeyCodes$isCharacterKey(c)?b.charCode:0):goog$userAgent$OPERA?(c=this.keyCode_,d=goog$events$KeyCodes$isCharacterKey(c)?b.keyCode:0):(c=b.keyCode||this.keyCode_,d=b.charCode||0,goog$userAgent$MAC&&(63==d&&224==c)&&(c=191));var e=
c,f=b.keyIdentifier;c?63232<=c&&c in goog$events$KeyHandler$safariKey_?e=goog$events$KeyHandler$safariKey_[c]:25==c&&a.shiftKey&&(e=9):f&&f in goog$events$KeyHandler$keyIdentifier_&&(e=goog$events$KeyHandler$keyIdentifier_[f]);a=e==this.lastKey_;this.lastKey_=e;b=new goog$events$KeyEvent(e,d,a,b);try{this.dispatchEvent(b)}finally{b.dispose()}};goog$events$KeyHandler.prototype.getElement=function(){return this.element_};
goog$events$KeyHandler.prototype.attach=function(a,b){this.keyUpKey_&&this.detach();this.element_=a;this.keyPressKey_=goog$events$listen(this.element_,"keypress",this,b);this.keyDownKey_=goog$events$listen(this.element_,"keydown",this.handleKeyDown_,b,this);this.keyUpKey_=goog$events$listen(this.element_,"keyup",this.handleKeyup_,b,this)};
goog$events$KeyHandler.prototype.detach=function(){this.keyPressKey_&&(goog$events$unlistenByKey(this.keyPressKey_),goog$events$unlistenByKey(this.keyDownKey_),goog$events$unlistenByKey(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.element_=null;this.keyCode_=this.lastKey_=-1};goog$events$KeyHandler.prototype.disposeInternal=function(){goog$events$KeyHandler.superClass_.disposeInternal.call(this);this.detach()};
var goog$events$KeyEvent=function(a,b,c,d){d&&this.init(d,void 0);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};goog$inherits(goog$events$KeyEvent,goog$events$BrowserEvent);var goog$dom$a11y$setState=function(a,b,c){a.setAttribute("aria-"+b,c)};var goog$ui$ControlRenderer=function(){},goog$ui$ControlRenderer$ARIA_STATE_MAP_;goog$addSingletonGetter(goog$ui$ControlRenderer);goog$ui$ControlRenderer.prototype.getAriaRole=function(){};goog$ui$ControlRenderer.prototype.createDom=function(a){var b=a.getDomHelper().createDom("div",this.getClassNames(a).join(" "),a.getContent());this.setAriaStates(a,b);return b};goog$ui$ControlRenderer.prototype.getContentElement=function(a){return a};
goog$ui$ControlRenderer.prototype.enableClassName=function(a,b,c){if(a=a.getElement?a.getElement():a)if(goog$userAgent$IE&&!goog$userAgent$isVersion("7")){var d=this.getAppliedCombinedClassNames_(goog$dom$classes$get(a),b);d.push(b);c=c?goog$dom$classes$add:goog$dom$classes$remove;goog$partial(c,a).apply(null,d)}else c?goog$dom$classes$add(a,b):goog$dom$classes$remove(a,b)};goog$ui$ControlRenderer.prototype.enableExtraClassName=function(a,b,c){this.enableClassName(a,b,c)};
goog$ui$ControlRenderer.prototype.canDecorate=function(){return!0};
goog$ui$ControlRenderer.prototype.decorate=function(a,b){b.id&&a.setId(b.id);var c=this.getContentElement(b);c&&c.firstChild?a.setContentInternal(c.firstChild.nextSibling?goog$array$clone(c.childNodes):c.firstChild):a.setContentInternal(null);var d=0,e=this.getCssClass(),f=this.getStructuralCssClass(),g=!1,h=!1,c=!1,i=goog$dom$classes$get(b);goog$array$forEach(i,function(a){!g&&a==e?(g=!0,f==e&&(h=!0)):!h&&a==f?h=!0:d|=this.getStateFromClass(a)},this);a.setStateInternal(d);g||(i.push(e),f==e&&(h=
!0));h||i.push(f);var j=a.getExtraClassNames();j&&i.push.apply(i,j);if(goog$userAgent$IE&&!goog$userAgent$isVersion("7")){var l=this.getAppliedCombinedClassNames_(i);0<l.length&&(i.push.apply(i,l),c=!0)}(!g||!h||j||c)&&goog$dom$classes$set(b,i.join(" "));this.setAriaStates(a,b);return b};goog$ui$ControlRenderer.prototype.initializeDom=function(a){a.isRightToLeft()&&this.setRightToLeft(a.getElement(),!0);a.isEnabled()&&this.setFocusable(a,a.isVisible())};
goog$ui$ControlRenderer.prototype.setAriaRole=function(a,b){var c=b||this.getAriaRole();c&&a.setAttribute("role",c)};goog$ui$ControlRenderer.prototype.setAriaStates=function(a,b){goog$asserts$assert(a);goog$asserts$assert(b);a.isEnabled()||this.updateAriaState(b,1,!0);a.isSelected()&&this.updateAriaState(b,8,!0);a.isSupportedState(16)&&this.updateAriaState(b,16,a.isChecked());a.isSupportedState(64)&&this.updateAriaState(b,64,a.isOpen())};
goog$ui$ControlRenderer.prototype.setAllowTextSelection=function(a,b){goog$style$setUnselectable(a,!b,!goog$userAgent$IE&&!goog$userAgent$OPERA)};goog$ui$ControlRenderer.prototype.setRightToLeft=function(a,b){this.enableClassName(a,this.getStructuralCssClass()+"-rtl",b)};goog$ui$ControlRenderer.prototype.isFocusable=function(a){var b;return a.isSupportedState(32)&&(b=a.getKeyEventTarget())?goog$dom$isFocusableTabIndex(b):!1};
goog$ui$ControlRenderer.prototype.setFocusable=function(a,b){var c;if(a.isSupportedState(32)&&(c=a.getKeyEventTarget())){if(!b&&a.isFocused()){try{c.blur()}catch(d){}a.isFocused()&&a.handleBlur(null)}goog$dom$isFocusableTabIndex(c)!=b&&(b?c.tabIndex=0:(c.tabIndex=-1,c.removeAttribute("tabIndex")))}};goog$ui$ControlRenderer.prototype.setVisible=function(a,b){goog$style$showElement(a,b)};
goog$ui$ControlRenderer.prototype.setState=function(a,b,c){var d=a.getElement();if(d){var e=this.getClassForState(b);e&&this.enableClassName(a,e,c);this.updateAriaState(d,b,c)}};goog$ui$ControlRenderer.prototype.updateAriaState=function(a,b,c){goog$ui$ControlRenderer$ARIA_STATE_MAP_||(goog$ui$ControlRenderer$ARIA_STATE_MAP_=goog$object$create(1,"disabled",8,"selected",16,"checked",64,"expanded"));(b=goog$ui$ControlRenderer$ARIA_STATE_MAP_[b])&&goog$dom$a11y$setState(a,b,c)};
goog$ui$ControlRenderer.prototype.setContent=function(a,b){var c=this.getContentElement(a);if(c&&(goog$dom$removeChildren(c),b))if(goog$isString(b))goog$dom$setTextContent(c,b);else{var d=function(a){if(a){var b=goog$dom$getOwnerDocument(c);c.appendChild(goog$isString(a)?b.createTextNode(a):a)}};goog$isArray(b)?goog$array$forEach(b,d):goog$isArrayLike(b)&&!("nodeType"in b)?goog$array$forEach(goog$array$clone(b),d):d(b)}};goog$ui$ControlRenderer.prototype.getKeyEventTarget=function(a){return a.getElement()};
goog$ui$ControlRenderer.prototype.getCssClass=function(){return"goog-control"};goog$ui$ControlRenderer.prototype.getIe6ClassCombinations=function(){return[]};goog$ui$ControlRenderer.prototype.getStructuralCssClass=function(){return this.getCssClass()};
goog$ui$ControlRenderer.prototype.getClassNames=function(a){var b=this.getCssClass(),c=[b],d=this.getStructuralCssClass();d!=b&&c.push(d);b=this.getClassNamesForState(a.getState());c.push.apply(c,b);(a=a.getExtraClassNames())&&c.push.apply(c,a);goog$userAgent$IE&&!goog$userAgent$isVersion("7")&&c.push.apply(c,this.getAppliedCombinedClassNames_(c));return c};
goog$ui$ControlRenderer.prototype.getAppliedCombinedClassNames_=function(a,b){var c=[];b&&(a=a.concat([b]));goog$array$forEach(this.getIe6ClassCombinations(),function(d){goog$array$every(d,goog$partial(goog$array$contains,a))&&(!b||goog$array$contains(d,b))&&c.push(d.join("_"))});return c};goog$ui$ControlRenderer.prototype.getClassNamesForState=function(a){for(var b=[];a;){var c=a&-a;b.push(this.getClassForState(c));a&=~c}return b};
goog$ui$ControlRenderer.prototype.getClassForState=function(a){this.classByState_||this.createClassByStateMap_();return this.classByState_[a]};goog$ui$ControlRenderer.prototype.getStateFromClass=function(a){this.stateByClass_||this.createStateByClassMap_();a=parseInt(this.stateByClass_[a],10);return isNaN(a)?0:a};
goog$ui$ControlRenderer.prototype.createClassByStateMap_=function(){var a=this.getStructuralCssClass();this.classByState_=goog$object$create(1,a+"-disabled",2,a+"-hover",4,a+"-active",8,a+"-selected",16,a+"-checked",32,a+"-focused",64,a+"-open")};goog$ui$ControlRenderer.prototype.createStateByClassMap_=function(){this.classByState_||this.createClassByStateMap_();var a;a=this.classByState_;var b={},c;for(c in a)b[a[c]]=c;this.stateByClass_=a=b};var goog$ui$registry$setDecoratorByClassName=function(a,b){if(!a)throw Error("Invalid class name "+a);if(!goog$isFunction(b))throw Error("Invalid decorator function "+b);goog$ui$registry$decoratorFunctions_[a]=b},goog$ui$registry$defaultRenderers_={},goog$ui$registry$decoratorFunctions_={};var goog$ui$Control=function(a,b,c){goog$ui$Component.call(this,c);if(!b){for(var b=this.constructor,d;b;){d=goog$getUid(b);if(d=goog$ui$registry$defaultRenderers_[d])break;b=b.superClass_?b.superClass_.constructor:null}b=d?goog$isFunction(d.getInstance)?d.getInstance():new d:null}this.renderer_=b;this.setContentInternal(a)};goog$inherits(goog$ui$Control,goog$ui$Component);goog$ui$Control.prototype.content_=null;goog$ui$Control.prototype.state_=0;goog$ui$Control.prototype.supportedStates_=39;
goog$ui$Control.prototype.autoStates_=255;goog$ui$Control.prototype.statesWithTransitionEvents_=0;goog$ui$Control.prototype.visible_=!0;goog$ui$Control.prototype.extraClassNames_=null;goog$ui$Control.prototype.handleMouseEvents_=!0;goog$ui$Control.prototype.allowTextSelection_=!1;goog$ui$Control.prototype.preferredAriaRole_=null;goog$ui$Control.prototype.isHandleMouseEvents=function(){return this.handleMouseEvents_};
goog$ui$Control.prototype.setHandleMouseEvents=function(a){this.isInDocument()&&a!=this.handleMouseEvents_&&this.enableMouseEventHandling_(a);this.handleMouseEvents_=a};goog$ui$Control.prototype.getKeyEventTarget=function(){return this.renderer_.getKeyEventTarget(this)};goog$ui$Control.prototype.getKeyHandler=function(){return this.keyHandler_||(this.keyHandler_=new goog$events$KeyHandler)};goog$ui$Control.prototype.getRenderer=function(){return this.renderer_};
goog$ui$Control.prototype.getExtraClassNames=function(){return this.extraClassNames_};goog$ui$Control.prototype.addClassName=function(a){a&&(this.extraClassNames_?goog$array$contains(this.extraClassNames_,a)||this.extraClassNames_.push(a):this.extraClassNames_=[a],this.renderer_.enableExtraClassName(this,a,!0))};
goog$ui$Control.prototype.removeClassName=function(a){a&&this.extraClassNames_&&(goog$array$remove(this.extraClassNames_,a),0==this.extraClassNames_.length&&(this.extraClassNames_=null),this.renderer_.enableExtraClassName(this,a,!1))};goog$ui$Control.prototype.enableClassName=function(a,b){b?this.addClassName(a):this.removeClassName(a)};
goog$ui$Control.prototype.createDom=function(){var a=this.renderer_.createDom(this);this.setElementInternal(a);this.renderer_.setAriaRole(a,this.getPreferredAriaRole());this.isAllowTextSelection()||this.renderer_.setAllowTextSelection(a,!1);this.isVisible()||this.renderer_.setVisible(a,!1)};goog$ui$Control.prototype.getPreferredAriaRole=function(){return this.preferredAriaRole_};goog$ui$Control.prototype.setPreferredAriaRole=function(a){this.preferredAriaRole_=a};
goog$ui$Control.prototype.getContentElement=function(){return this.renderer_.getContentElement(this.getElement())};goog$ui$Control.prototype.canDecorate=function(a){return this.renderer_.canDecorate(a)};goog$ui$Control.prototype.decorateInternal=function(a){a=this.renderer_.decorate(this,a);this.setElementInternal(a);this.renderer_.setAriaRole(a,this.getPreferredAriaRole());this.isAllowTextSelection()||this.renderer_.setAllowTextSelection(a,!1);this.visible_="none"!=a.style.display};
goog$ui$Control.prototype.enterDocument=function(){goog$ui$Control.superClass_.enterDocument.call(this);this.renderer_.initializeDom(this);if(this.supportedStates_&-2&&(this.isHandleMouseEvents()&&this.enableMouseEventHandling_(!0),this.isSupportedState(32))){var a=this.getKeyEventTarget();if(a){var b=this.getKeyHandler();b.attach(a);this.getHandler().listen(b,"key",this.handleKeyEvent).listen(a,"focus",this.handleFocus).listen(a,"blur",this.handleBlur)}}};
goog$ui$Control.prototype.enableMouseEventHandling_=function(a){var b=this.getHandler(),c=this.getElement();a?(b.listen(c,"mouseover",this.handleMouseOver).listen(c,"mousedown",this.handleMouseDown).listen(c,"mouseup",this.handleMouseUp).listen(c,"mouseout",this.handleMouseOut),goog$userAgent$IE&&b.listen(c,"dblclick",this.handleDblClick)):(b.unlisten(c,"mouseover",this.handleMouseOver).unlisten(c,"mousedown",this.handleMouseDown).unlisten(c,"mouseup",this.handleMouseUp).unlisten(c,"mouseout",this.handleMouseOut),
goog$userAgent$IE&&b.unlisten(c,"dblclick",this.handleDblClick))};goog$ui$Control.prototype.exitDocument=function(){goog$ui$Control.superClass_.exitDocument.call(this);this.keyHandler_&&this.keyHandler_.detach();this.isVisible()&&this.isEnabled()&&this.renderer_.setFocusable(this,!1)};
goog$ui$Control.prototype.disposeInternal=function(){goog$ui$Control.superClass_.disposeInternal.call(this);this.keyHandler_&&(this.keyHandler_.dispose(),delete this.keyHandler_);delete this.renderer_;this.extraClassNames_=this.content_=null};goog$ui$Control.prototype.getContent=function(){return this.content_};goog$ui$Control.prototype.setContent=function(a){this.renderer_.setContent(this.getElement(),a);this.setContentInternal(a)};
goog$ui$Control.prototype.setContentInternal=function(a){this.content_=a};
goog$ui$Control.prototype.getCaption=function(){var a=this.getContent();if(!a)return"";if(!goog$isString(a))if(goog$isArray(a))a=goog$array$map(a,goog$dom$getRawTextContent).join("");else{if(goog$dom$BrowserFeature$CAN_USE_INNER_TEXT&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];goog$dom$getTextContent_(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");goog$dom$BrowserFeature$CAN_USE_INNER_TEXT||(a=a.replace(/ +/g," "));" "!=
a&&(a=a.replace(/^\s*/,""))}return goog$string$collapseBreakingSpaces(a)};goog$ui$Control.prototype.setRightToLeft=function(a){goog$ui$Control.superClass_.setRightToLeft.call(this,a);var b=this.getElement();b&&this.renderer_.setRightToLeft(b,a)};goog$ui$Control.prototype.isAllowTextSelection=function(){return this.allowTextSelection_};goog$ui$Control.prototype.setAllowTextSelection=function(a){this.allowTextSelection_=a;var b=this.getElement();b&&this.renderer_.setAllowTextSelection(b,a)};
goog$ui$Control.prototype.isVisible=function(){return this.visible_};goog$ui$Control.prototype.setVisible=function(a,b){if(b||this.visible_!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.getElement();c&&this.renderer_.setVisible(c,a);this.isEnabled()&&this.renderer_.setFocusable(this,a);this.visible_=a;return!0}return!1};goog$ui$Control.prototype.isEnabled=function(){return!this.hasState(1)};
goog$ui$Control.prototype.isParentDisabled_=function(){var a=this.getParent();return!!a&&"function"==typeof a.isEnabled&&!a.isEnabled()};goog$ui$Control.prototype.setEnabled=function(a){!this.isParentDisabled_()&&this.isTransitionAllowed(1,!a)&&(a||(this.setActive(!1),this.setHighlighted(!1)),this.isVisible()&&this.renderer_.setFocusable(this,a),this.setState(1,!a))};goog$ui$Control.prototype.setHighlighted=function(a){this.isTransitionAllowed(2,a)&&this.setState(2,a)};
goog$ui$Control.prototype.isActive=function(){return this.hasState(4)};goog$ui$Control.prototype.setActive=function(a){this.isTransitionAllowed(4,a)&&this.setState(4,a)};goog$ui$Control.prototype.isSelected=function(){return this.hasState(8)};goog$ui$Control.prototype.setSelected=function(a){this.isTransitionAllowed(8,a)&&this.setState(8,a)};goog$ui$Control.prototype.isChecked=function(){return this.hasState(16)};
goog$ui$Control.prototype.setChecked=function(a){this.isTransitionAllowed(16,a)&&this.setState(16,a)};goog$ui$Control.prototype.isFocused=function(){return this.hasState(32)};goog$ui$Control.prototype.setFocused=function(a){this.isTransitionAllowed(32,a)&&this.setState(32,a)};goog$ui$Control.prototype.isOpen=function(){return this.hasState(64)};goog$ui$Control.prototype.setOpen=function(a){this.isTransitionAllowed(64,a)&&this.setState(64,a)};goog$ui$Control.prototype.getState=function(){return this.state_};
goog$ui$Control.prototype.hasState=function(a){return!!(this.state_&a)};goog$ui$Control.prototype.setState=function(a,b){this.isSupportedState(a)&&b!=this.hasState(a)&&(this.renderer_.setState(this,a,b),this.state_=b?this.state_|a:this.state_&~a)};goog$ui$Control.prototype.setStateInternal=function(a){this.state_=a};goog$ui$Control.prototype.isSupportedState=function(a){return!!(this.supportedStates_&a)};
goog$ui$Control.prototype.setSupportedState=function(a,b){if(this.isInDocument()&&this.hasState(a)&&!b)throw Error("Component already rendered");!b&&this.hasState(a)&&this.setState(a,!1);this.supportedStates_=b?this.supportedStates_|a:this.supportedStates_&~a};goog$ui$Control.prototype.isAutoState=function(a){return!!(this.autoStates_&a)&&this.isSupportedState(a)};goog$ui$Control.prototype.setAutoStates=function(a,b){this.autoStates_=b?this.autoStates_|a:this.autoStates_&~a};
goog$ui$Control.prototype.setDispatchTransitionEvents=function(a,b){this.statesWithTransitionEvents_=b?this.statesWithTransitionEvents_|a:this.statesWithTransitionEvents_&~a};goog$ui$Control.prototype.isTransitionAllowed=function(a,b){return this.isSupportedState(a)&&this.hasState(a)!=b&&(!(this.statesWithTransitionEvents_&a)||this.dispatchEvent(goog$ui$Component$getStateTransitionEvent(a,b)))&&!this.isDisposed()};
goog$ui$Control.prototype.handleMouseOver=function(a){!goog$ui$Control$isMouseEventWithinElement_(a,this.getElement())&&(this.dispatchEvent("enter")&&this.isEnabled()&&this.isAutoState(2))&&this.setHighlighted(!0)};goog$ui$Control.prototype.handleMouseOut=function(a){!goog$ui$Control$isMouseEventWithinElement_(a,this.getElement())&&this.dispatchEvent("leave")&&(this.isAutoState(4)&&this.setActive(!1),this.isAutoState(2)&&this.setHighlighted(!1))};
var goog$ui$Control$isMouseEventWithinElement_=function(a,b){return!!a.relatedTarget&&goog$dom$contains(b,a.relatedTarget)};goog$ui$Control.prototype.handleMouseDown=function(a){this.isEnabled()&&(this.isAutoState(2)&&this.setHighlighted(!0),a.isMouseActionButton()&&(this.isAutoState(4)&&this.setActive(!0),this.renderer_.isFocusable(this)&&this.getKeyEventTarget().focus()));!this.isAllowTextSelection()&&a.isMouseActionButton()&&a.preventDefault()};
goog$ui$Control.prototype.handleMouseUp=function(a){this.isEnabled()&&(this.isAutoState(2)&&this.setHighlighted(!0),this.isActive()&&(this.performActionInternal(a)&&this.isAutoState(4))&&this.setActive(!1))};goog$ui$Control.prototype.handleDblClick=function(a){this.isEnabled()&&this.performActionInternal(a)};
goog$ui$Control.prototype.performActionInternal=function(a){this.isAutoState(16)&&this.setChecked(!this.isChecked());this.isAutoState(8)&&this.setSelected(!0);this.isAutoState(64)&&this.setOpen(!this.isOpen());var b=new goog$events$Event("action",this);a&&(b.altKey=a.altKey,b.ctrlKey=a.ctrlKey,b.metaKey=a.metaKey,b.shiftKey=a.shiftKey,b.platformModifierKey=a.platformModifierKey);return this.dispatchEvent(b)};goog$ui$Control.prototype.handleFocus=function(){this.isAutoState(32)&&this.setFocused(!0)};
goog$ui$Control.prototype.handleBlur=function(){this.isAutoState(4)&&this.setActive(!1);this.isAutoState(32)&&this.setFocused(!1)};goog$ui$Control.prototype.handleKeyEvent=function(a){return this.isVisible()&&this.isEnabled()&&this.handleKeyEventInternal(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};goog$ui$Control.prototype.handleKeyEventInternal=function(a){return 13==a.keyCode&&this.performActionInternal(a)};var componentCtor$$inline_220=goog$ui$Control,rendererCtor$$inline_221=goog$ui$ControlRenderer;
if(!goog$isFunction(componentCtor$$inline_220))throw Error("Invalid component class "+componentCtor$$inline_220);if(!goog$isFunction(rendererCtor$$inline_221))throw Error("Invalid renderer class "+rendererCtor$$inline_221);var key$$inline_222=goog$getUid(componentCtor$$inline_220);goog$ui$registry$defaultRenderers_[key$$inline_222]=rendererCtor$$inline_221;goog$ui$registry$setDecoratorByClassName("goog-control",function(){return new goog$ui$Control(null)});var goog$ui$MenuItemRenderer=function(){this.classNameCache_=[]};goog$inherits(goog$ui$MenuItemRenderer,goog$ui$ControlRenderer);goog$addSingletonGetter(goog$ui$MenuItemRenderer);goog$ui$MenuItemRenderer.prototype.getCompositeCssClass_=function(a){var b=this.classNameCache_[a];if(!b){switch(a){case 0:b=this.getStructuralCssClass()+"-highlight";break;case 1:b=this.getStructuralCssClass()+"-checkbox";break;case 2:b=this.getStructuralCssClass()+"-content"}this.classNameCache_[a]=b}return b};
goog$ui$MenuItemRenderer.prototype.getAriaRole=function(){return"menuitem"};goog$ui$MenuItemRenderer.prototype.createDom=function(a){var b=a.getDomHelper().createDom("div",this.getClassNames(a).join(" "),this.createContent(a.getContent(),a.getDomHelper()));this.setEnableCheckBoxStructure(a,b,a.isSupportedState(8)||a.isSupportedState(16));return b};goog$ui$MenuItemRenderer.prototype.getContentElement=function(a){return a&&a.firstChild};
goog$ui$MenuItemRenderer.prototype.decorate=function(a,b){this.hasContentStructure(b)||b.appendChild(this.createContent(b.childNodes,a.getDomHelper()));goog$array$contains(goog$dom$classes$get(b),"goog-option")&&(a.setCheckable(!0),this.setCheckable(a,b,!0));return goog$ui$MenuItemRenderer.superClass_.decorate.call(this,a,b)};
goog$ui$MenuItemRenderer.prototype.setContent=function(a,b){var c=this.getContentElement(a),d=this.hasCheckBoxStructure(a)?c.firstChild:null;goog$ui$MenuItemRenderer.superClass_.setContent.call(this,a,b);d&&!this.hasCheckBoxStructure(a)&&c.insertBefore(d,c.firstChild||null)};goog$ui$MenuItemRenderer.prototype.hasContentStructure=function(a){var a=goog$dom$getFirstElementChild(a),b=this.getCompositeCssClass_(2);return!!a&&goog$array$contains(goog$dom$classes$get(a),b)};
goog$ui$MenuItemRenderer.prototype.createContent=function(a,b){var c=this.getCompositeCssClass_(2);return b.createDom("div",c,a)};goog$ui$MenuItemRenderer.prototype.setCheckable=function(a,b,c){b&&(b.setAttribute("role",c?"menuitemcheckbox":this.getAriaRole()),this.setEnableCheckBoxStructure(a,b,c))};
goog$ui$MenuItemRenderer.prototype.hasCheckBoxStructure=function(a){if(a=this.getContentElement(a)){var a=a.firstChild,b=this.getCompositeCssClass_(1);return!!a&&goog$array$contains(goog$dom$classes$get(a),b)}return!1};
goog$ui$MenuItemRenderer.prototype.setEnableCheckBoxStructure=function(a,b,c){if(c!=this.hasCheckBoxStructure(b)){var d=b,e="goog-option";c?goog$dom$classes$add(d,e):goog$dom$classes$remove(d,e);b=this.getContentElement(b);c?(c=this.getCompositeCssClass_(1),b.insertBefore(a.getDomHelper().createDom("div",c),b.firstChild||null)):b.removeChild(b.firstChild)}};
goog$ui$MenuItemRenderer.prototype.getClassForState=function(a){switch(a){case 2:return this.getCompositeCssClass_(0);case 16:case 8:return"goog-option-selected";default:return goog$ui$MenuItemRenderer.superClass_.getClassForState.call(this,a)}};goog$ui$MenuItemRenderer.prototype.getStateFromClass=function(a){var b=this.getCompositeCssClass_(0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return goog$ui$MenuItemRenderer.superClass_.getStateFromClass.call(this,a)}};
goog$ui$MenuItemRenderer.prototype.getCssClass=function(){return"goog-menuitem"};var goog$ui$MenuItem=function(a,b,c,d){goog$ui$Control.call(this,a,d||goog$ui$MenuItemRenderer.getInstance(),c);this.setValue(b)};goog$inherits(goog$ui$MenuItem,goog$ui$Control);goog$ui$MenuItem.prototype.getValue=function(){var a=this.getModel();return null!=a?a:this.getCaption()};goog$ui$MenuItem.prototype.setValue=function(a){this.setModel(a)};goog$ui$MenuItem.prototype.setCheckable=function(a){this.setSupportedState(16,a);var b=this.getElement();b&&this.getRenderer().setCheckable(this,b,a)};
goog$ui$MenuItem.prototype.getCaption=function(){var a=this.getContent();if(goog$isArray(a)){var b="goog-menuitem-accel",c="goog-menuitem-mnemonic-separator",a=goog$array$map(a,function(a){var e=goog$dom$classes$get(a);return goog$array$contains(e,b)||goog$array$contains(e,c)?"":goog$dom$getRawTextContent(a)}).join("");return goog$string$collapseBreakingSpaces(a)}return goog$ui$MenuItem.superClass_.getCaption.call(this)};
goog$ui$MenuItem.prototype.handleMouseUp=function(a){var b=this.getParent();if(b){var c=b.openingCoords;b.openingCoords=null;if(c&&goog$isNumber(a.clientX)&&(b=new goog$math$Coordinate(a.clientX,a.clientY),c=c==b?!0:!c||!b?!1:c.x==b.x&&c.y==b.y,c))return}goog$ui$MenuItem.superClass_.handleMouseUp.call(this,a)};
goog$ui$MenuItem.prototype.handleKeyEventInternal=function(a){return a.keyCode==this.getMnemonic()&&this.performActionInternal(a)?!0:goog$ui$MenuItem.superClass_.handleKeyEventInternal.call(this,a)};goog$ui$MenuItem.prototype.getMnemonic=function(){return this.mnemonicKey_};goog$ui$registry$setDecoratorByClassName("goog-menuitem",function(){return new goog$ui$MenuItem(null)});var goog$events$ActionEventWrapper_=function(){},goog$events$actionEventWrapper=new goog$events$ActionEventWrapper_,goog$events$ActionEventWrapper_$EVENT_TYPES_=["click",goog$userAgent$GECKO?"keypress":"keydown"];
goog$events$ActionEventWrapper_.prototype.listen=function(a,b,c,d,e){c=function(a){if("click"==a.type&&a.isMouseActionButton())b.call(d,a);else if(13==a.keyCode||3==a.keyCode)a.type="keypress",b.call(d,a)};c.listener_=b;c.scope_=d;e?e.listen(a,goog$events$ActionEventWrapper_$EVENT_TYPES_,c):goog$events$listen(a,goog$events$ActionEventWrapper_$EVENT_TYPES_,c)};
goog$events$ActionEventWrapper_.prototype.unlisten=function(a,b,c,d,e){for(var f=0;c=goog$events$ActionEventWrapper_$EVENT_TYPES_[f];f++)for(var g=goog$events$getListeners_(a,c,!1)||[],h,i=0;h=g[i];i++)if(h.listener.listener_==b&&h.listener.scope_==d){e?e.unlisten(a,c,h.listener):goog$events$unlisten(a,c,h.listener);break}};var goog$fx$TransitionBase=function(){this.state_=0};goog$inherits(goog$fx$TransitionBase,goog$events$EventTarget);goog$fx$TransitionBase.prototype.setStatePlaying=function(){this.state_=1};goog$fx$TransitionBase.prototype.setStateStopped=function(){this.state_=0};goog$fx$TransitionBase.prototype.isPlaying=function(){return 1==this.state_};goog$fx$TransitionBase.prototype.onBegin=function(){this.dispatchAnimationEvent("begin")};goog$fx$TransitionBase.prototype.onEnd=function(){this.dispatchAnimationEvent("end")};
goog$fx$TransitionBase.prototype.onFinish=function(){this.dispatchAnimationEvent("finish")};goog$fx$TransitionBase.prototype.onPlay=function(){this.dispatchAnimationEvent("play")};goog$fx$TransitionBase.prototype.onStop=function(){this.dispatchAnimationEvent("stop")};goog$fx$TransitionBase.prototype.dispatchAnimationEvent=function(a){this.dispatchEvent(a)};var goog$style$transition$css3TransitionSupported_,goog$style$transition$set=function(a,b){goog$isArray(b)||(b=[b]);goog$asserts$assert(0<b.length,"At least one Css3Property should be specified.");var c=goog$array$map(b,function(a){if(goog$isString(a))return a;goog$asserts$assert(a&&a.property&&goog$isNumber(a.duration)&&a.timing&&goog$isNumber(a.delay));return a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});goog$style$transition$setPropertyValue_(a,c.join(","))},goog$style$transition$setPropertyValue_=
function(a,b){a.style.WebkitTransition=b;a.style.MozTransition=b;a.style.OTransition=b};var goog$Timer=function(a,b){this.interval_=a||1;this.timerObject_=b||goog$Timer$defaultTimerObject;this.boundTick_=goog$bind(this.tick_,this);this.last_=goog$now()};goog$inherits(goog$Timer,goog$events$EventTarget);goog$Timer.prototype.enabled=!1;var goog$Timer$defaultTimerObject=goog$global.window,goog$Timer$intervalScale=0.8;goog$Timer.prototype.timer_=null;goog$Timer.prototype.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};
goog$Timer.prototype.tick_=function(){if(this.enabled){var a=goog$now()-this.last_;0<a&&a<this.interval_*goog$Timer$intervalScale?this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_-a):(this.dispatchTick(),this.enabled&&(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=goog$now()))}};goog$Timer.prototype.dispatchTick=function(){this.dispatchEvent("tick")};
goog$Timer.prototype.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=goog$now())};goog$Timer.prototype.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};goog$Timer.prototype.disposeInternal=function(){goog$Timer.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var goog$Timer$callOnce=function(a,b,c){if(goog$isFunction(a))c&&(a=goog$bind(a,c));else if(a&&"function"==typeof a.handleEvent)a=goog$bind(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:goog$Timer$defaultTimerObject.setTimeout(a,b||0)};var goog$fx$css3$Transition=function(a,b,c,d,e){this.state_=0;this.element_=a;this.duration_=b;this.initialStyle_=c;this.finalStyle_=d;this.transitions_=goog$isArray(e)?e:[e]};goog$inherits(goog$fx$css3$Transition,goog$fx$TransitionBase);
goog$fx$css3$Transition.prototype.play=function(){if(this.isPlaying())return!1;this.onBegin();this.onPlay();goog$now();this.setStatePlaying();var a;void 0===goog$style$transition$css3TransitionSupported_&&(a=document.createElement("div"),a.innerHTML='<div style="-webkit-transition:opacity 1s linear;-moz-transition:opacity 1s linear;-o-transition:opacity 1s linear">',a=a.firstChild,goog$style$transition$css3TransitionSupported_=void 0!==a.style.WebkitTransition||void 0!==a.style.MozTransition||void 0!==
a.style.OTransition);if(a=goog$style$transition$css3TransitionSupported_)return goog$style$setStyle(this.element_,this.initialStyle_),goog$Timer$callOnce(this.play_,void 0,this),!0;this.stop_(!1);return!1};goog$fx$css3$Transition.prototype.play_=function(){goog$style$transition$set(this.element_,this.transitions_);goog$style$setStyle(this.element_,this.finalStyle_);this.timerId_=goog$Timer$callOnce(goog$bind(this.stop_,this,!1),1E3*this.duration_)};
goog$fx$css3$Transition.prototype.stop=function(){this.isPlaying()&&(this.timerId_&&(goog$Timer$defaultTimerObject.clearTimeout(this.timerId_),this.timerId_=0),this.stop_(!0))};goog$fx$css3$Transition.prototype.stop_=function(a){goog$style$transition$setPropertyValue_(this.element_,"");goog$style$setStyle(this.element_,this.finalStyle_);goog$now();this.setStateStopped();if(a)this.onStop();else this.onFinish();this.onEnd()};goog$fx$css3$Transition.prototype.disposeInternal=function(){this.stop();goog$fx$css3$Transition.superClass_.disposeInternal.call(this)};
goog$fx$css3$Transition.prototype.pause=function(){goog$asserts$assert(!1,"Css3 transitions does not support pause action.")};var goog$fx$css3$fade=function(a,b,c,d,e){return new goog$fx$css3$Transition(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})},goog$fx$css3$fadeIn=function(a,b){return goog$fx$css3$fade(a,b,"ease-out",0,1)},goog$fx$css3$fadeOut=function(a,b){return goog$fx$css3$fade(a,b,"ease-in",1,0)};var goog$soy$renderAsElement=function(a,b,c,d){d=d||goog$dom$getDomHelper();d=d.createElement("DIV");d.innerHTML=a(b||goog$soy$defaultTemplateData_,void 0,c);return 1==d.childNodes.length&&(a=d.firstChild,1==a.nodeType)?a:d},goog$soy$defaultTemplateData_={};var goog$positioning$positionAtAnchor=function(a,b,c,d,e,f,g,h,i){goog$asserts$assert(c);var j,l;if(j=c.offsetParent){var m="HTML"==j.tagName||"BODY"==j.tagName;if(!m||"static"!=goog$style$getStyle_(j,"position"))if(l=goog$style$getPageOffset(j),!m){var m=j,n=goog$style$isRightToLeft(m),m=n&&goog$userAgent$GECKO?-m.scrollLeft:n&&(!goog$userAgent$IE||!goog$userAgent$isVersion("8"))?m.scrollWidth-m.clientWidth-m.scrollLeft:m.scrollLeft;l=goog$math$Coordinate$difference(l,new goog$math$Coordinate(m,
j.scrollTop))}}j=l||new goog$math$Coordinate;m=a;l=goog$style$getBounds(m);(m=goog$style$getVisibleRectForElement(m))&&l.intersection(new goog$math$Rect(m.left,m.top,m.right-m.left,m.bottom-m.top));var m=l,n=goog$dom$getDomHelper(a),o=goog$dom$getDomHelper(c);if(n.getDocument()!=o.getDocument()){var p=n.getDocument().body,o=o.getWindow(),r=new goog$math$Coordinate(0,0),q=goog$dom$getOwnerDocument(p)?goog$dom$getOwnerDocument(p).parentWindow||goog$dom$getOwnerDocument(p).defaultView:window,s=p;do{var t=
q==o?goog$style$getPageOffset(s):goog$style$getClientPosition(s);r.x+=t.x;r.y+=t.y}while(q&&q!=o&&(s=q.frameElement)&&(q=q.parent));o=r;o=goog$math$Coordinate$difference(o,goog$style$getPageOffset(p));goog$userAgent$IE&&!n.isCss1CompatMode()&&(o=goog$math$Coordinate$difference(o,n.getDocumentScroll()));m.left+=o.x;m.top+=o.y}a=(b&4&&goog$style$isRightToLeft(a)?b^2:b)&-5;b=new goog$math$Coordinate(a&2?l.left+l.width:l.left,a&1?l.top+l.height:l.top);b=goog$math$Coordinate$difference(b,j);e&&(b.x+=(a&
2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var k;if(g)if(i)k=i;else if(k=goog$style$getVisibleRectForElement(c))k.top-=j.y,k.right-=j.x,k.bottom-=j.y,k.left-=j.x;a:{e=b;a=d;i=f;f=k;d=g;g=h;e=e.clone();h=0;a=(a&4&&goog$style$isRightToLeft(c)?a^2:a)&-5;k=goog$style$getSize(c);g=g?g.clone():k.clone();if(i||0!=a)(a&2?e.x-=g.width+(i?i.right:0):i&&(e.x+=i.left),a&1)?e.y-=g.height+(i?i.bottom:0):i&&(e.y+=i.top);if(d){if(f){h=e;i=g;a=0;if(65==(d&65)&&(h.x<f.left||h.x>=f.right))d&=-2;if(132==(d&132)&&(h.y<f.top||h.y>=
f.bottom))d&=-5;h.x<f.left&&d&1&&(h.x=f.left,a|=1);h.x<f.left&&(h.x+i.width>f.right&&d&16)&&(i.width=Math.max(i.width-(h.x+i.width-f.right),0),a|=4);h.x+i.width>f.right&&d&1&&(h.x=Math.max(f.right-i.width,f.left),a|=1);d&2&&(a|=(h.x<f.left?16:0)|(h.x+i.width>f.right?32:0));h.y<f.top&&d&4&&(h.y=f.top,a|=2);h.y>=f.top&&(h.y+i.height>f.bottom&&d&32)&&(i.height=Math.max(i.height-(h.y+i.height-f.bottom),0),a|=8);h.y+i.height>f.bottom&&d&4&&(h.y=Math.max(f.bottom-i.height,f.top),a|=2);d&8&&(a|=(h.y<f.top?
64:0)|(h.y+i.height>f.bottom?128:0));h=a}else h=256;if(h&496)break a}goog$style$setPosition(c,e);k=k==g?!0:!k||!g?!1:k.width==g.width&&k.height==g.height;k||(k=c,f=goog$dom$getOwnerDocument(k),d=goog$dom$getDomHelper(f).isCss1CompatMode(),goog$userAgent$IE&&(!d||!goog$userAgent$isVersion("8"))?(f=k.style,d?(i=k,a="padding",goog$userAgent$IE?(d=goog$style$getIePixelDistance_(i,a+"Left"),c=goog$style$getIePixelDistance_(i,a+"Right"),e=goog$style$getIePixelDistance_(i,a+"Top"),i=goog$style$getIePixelDistance_(i,
a+"Bottom"),d=new goog$math$Box(e,c,i,d)):(d=goog$style$getComputedStyle(i,a+"Left"),c=goog$style$getComputedStyle(i,a+"Right"),e=goog$style$getComputedStyle(i,a+"Top"),i=goog$style$getComputedStyle(i,a+"Bottom"),d=new goog$math$Box(parseFloat(e),parseFloat(c),parseFloat(i),parseFloat(d))),k=goog$style$getBorderBox(k),f.pixelWidth=g.width-k.left-d.left-d.right-k.right,f.pixelHeight=g.height-k.top-d.top-d.bottom-k.bottom):(f.pixelWidth=g.width,f.pixelHeight=g.height)):(f="border-box",k=k.style,goog$userAgent$GECKO?
k.MozBoxSizing=f:goog$userAgent$WEBKIT?k.WebkitBoxSizing=f:k.boxSizing=f,k.width=Math.max(g.width,0)+"px",k.height=Math.max(g.height,0)+"px"))}return h};var goog$positioning$AbstractPosition=function(){};goog$positioning$AbstractPosition.prototype.reposition=function(){};var goog$positioning$AnchoredPosition=function(a,b,c){this.element=a;this.corner=b;this.overflow_=c};goog$inherits(goog$positioning$AnchoredPosition,goog$positioning$AbstractPosition);goog$positioning$AnchoredPosition.prototype.reposition=function(a,b,c){goog$positioning$positionAtAnchor(this.element,this.corner,a,b,void 0,c,this.overflow_)};var goog$positioning$AnchoredViewportPosition=function(a,b,c,d){goog$positioning$AnchoredPosition.call(this,a,b);this.lastResortOverflow_=c?5:0;this.overflowConstraint_=d||void 0};goog$inherits(goog$positioning$AnchoredViewportPosition,goog$positioning$AnchoredPosition);goog$positioning$AnchoredViewportPosition.prototype.getLastResortOverflow=function(){return this.lastResortOverflow_};goog$positioning$AnchoredViewportPosition.prototype.setLastResortOverflow=function(a){this.lastResortOverflow_=a};
goog$positioning$AnchoredViewportPosition.prototype.reposition=function(a,b,c,d){var e=goog$positioning$positionAtAnchor(this.element,this.corner,a,b,null,c,10,d,this.overflowConstraint_);if(e&496){var f=this.correctCorner_(e,this.corner),b=this.correctCorner_(e,b),e=goog$positioning$positionAtAnchor(this.element,f,a,b,null,c,10,d,this.overflowConstraint_);e&496&&(f=this.correctCorner_(e,f),b=this.correctCorner_(e,b),goog$positioning$positionAtAnchor(this.element,f,a,b,null,c,this.getLastResortOverflow(),
d,this.overflowConstraint_))}};goog$positioning$AnchoredViewportPosition.prototype.correctCorner_=function(a,b){a&48&&(b^=2);a&192&&(b^=1);return b};var goog$ui$PopupBase=function(a,b){this.handler_=new goog$events$EventHandler(this);this.setElement(a||null);b&&this.setType(b)};goog$inherits(goog$ui$PopupBase,goog$events$EventTarget);goog$ui$PopupBase.prototype.element_=null;goog$ui$PopupBase.prototype.autoHide_=!0;goog$ui$PopupBase.prototype.autoHideRegion_=null;goog$ui$PopupBase.prototype.isVisible_=!1;goog$ui$PopupBase.prototype.shouldHideAsync_=!1;goog$ui$PopupBase.prototype.lastShowTime_=-1;goog$ui$PopupBase.prototype.hideOnEscape_=!1;
goog$ui$PopupBase.prototype.enableCrossIframeDismissal_=!0;goog$ui$PopupBase.prototype.type_="toggle_display";goog$ui$PopupBase.prototype.getType=function(){return this.type_};goog$ui$PopupBase.prototype.setType=function(a){this.type_=a};goog$ui$PopupBase.prototype.getElement=function(){return this.element_};goog$ui$PopupBase.prototype.setElement=function(a){this.ensureNotVisible_();this.element_=a};
goog$ui$PopupBase.prototype.setTransition=function(a,b){this.showTransition_=a;this.hideTransition_=b};goog$ui$PopupBase.prototype.ensureNotVisible_=function(){if(this.isVisible_)throw Error("Can not change this state of the popup while showing.");};goog$ui$PopupBase.prototype.isVisible=function(){return this.isVisible_};goog$ui$PopupBase.prototype.setVisible=function(a){this.showTransition_&&this.showTransition_.stop();this.hideTransition_&&this.hideTransition_.stop();a?this.show_():this.hide_()};
goog$ui$PopupBase.prototype.reposition=goog$nullFunction;
goog$ui$PopupBase.prototype.show_=function(){if(!this.isVisible_&&this.onBeforeShow()){if(!this.element_)throw Error("Caller must call setElement before trying to show the popup");this.reposition();var a=goog$dom$getOwnerDocument(this.element_);this.hideOnEscape_&&this.handler_.listen(a,"keydown",this.onDocumentKeyDown_,!0);if(this.autoHide_)if(this.handler_.listen(a,"mousedown",this.onDocumentMouseDown_,!0),goog$userAgent$IE){var b;try{b=a.activeElement}catch(c){}for(;b&&"IFRAME"==b.nodeName;){try{var d,
e=b.contentDocument||b.contentWindow.document;d=e}catch(f){break}a=d;b=a.activeElement}this.handler_.listen(a,"mousedown",this.onDocumentMouseDown_,!0);this.handler_.listen(a,"deactivate",this.onDocumentBlur_)}else this.handler_.listen(a,"blur",this.onDocumentBlur_);"toggle_display"==this.type_?this.showPopupElement():"move_offscreen"==this.type_&&this.reposition();this.isVisible_=!0;if(this.showTransition_)goog$events$listenOnce(this.showTransition_,"end",this.onShow_,!1,this),this.showTransition_.play();
else this.onShow_()}};goog$ui$PopupBase.prototype.hide_=function(a){if(!this.isVisible_||!this.onBeforeHide_(a))return!1;this.handler_&&this.handler_.removeAll();this.isVisible_=!1;this.hideTransition_?(goog$events$listenOnce(this.hideTransition_,"end",goog$partial(this.continueHidingPopup_,a),!1,this),this.hideTransition_.play()):this.continueHidingPopup_(a);return!0};
goog$ui$PopupBase.prototype.continueHidingPopup_=function(a){"toggle_display"==this.type_?this.shouldHideAsync_?goog$Timer$callOnce(this.hidePopupElement_,0,this):this.hidePopupElement_():"move_offscreen"==this.type_&&this.moveOffscreen_();this.onHide_(a)};goog$ui$PopupBase.prototype.showPopupElement=function(){this.element_.style.visibility="visible";goog$style$showElement(this.element_,!0)};
goog$ui$PopupBase.prototype.hidePopupElement_=function(){this.element_.style.visibility="hidden";goog$style$showElement(this.element_,!1)};goog$ui$PopupBase.prototype.moveOffscreen_=function(){this.element_.style.left="-200px";this.element_.style.top="-200px"};goog$ui$PopupBase.prototype.onBeforeShow=function(){return this.dispatchEvent("beforeshow")};goog$ui$PopupBase.prototype.onShow_=function(){this.lastShowTime_=goog$now();this.dispatchEvent("show")};
goog$ui$PopupBase.prototype.onBeforeHide_=function(a){return this.dispatchEvent({type:"beforehide",target:a})};goog$ui$PopupBase.prototype.onHide_=function(a){goog$now();this.dispatchEvent({type:"hide",target:a})};goog$ui$PopupBase.prototype.onDocumentMouseDown_=function(a){a=a.target;!goog$dom$contains(this.element_,a)&&((!this.autoHideRegion_||goog$dom$contains(this.autoHideRegion_,a))&&!this.shouldDebounce_())&&this.hide_(a)};
goog$ui$PopupBase.prototype.onDocumentKeyDown_=function(a){27==a.keyCode&&this.hide_(a.target)&&(a.preventDefault(),a.stopPropagation())};goog$ui$PopupBase.prototype.onDocumentBlur_=function(a){if(this.enableCrossIframeDismissal_){var b=goog$dom$getOwnerDocument(this.element_);if(goog$userAgent$IE||goog$userAgent$OPERA){if(a=b.activeElement,!a||goog$dom$contains(this.element_,a)||"BODY"==a.tagName)return}else if(a.target!=b)return;this.shouldDebounce_()||this.hide_()}};
goog$ui$PopupBase.prototype.shouldDebounce_=function(){return 150>goog$now()-this.lastShowTime_};goog$ui$PopupBase.prototype.disposeInternal=function(){goog$ui$PopupBase.superClass_.disposeInternal.call(this);this.handler_.dispose();goog$dispose(this.showTransition_);goog$dispose(this.hideTransition_);delete this.element_;delete this.handler_};var goog$ui$Popup=function(a,b){this.popupCorner_=4;this.position_=b||void 0;goog$ui$PopupBase.call(this,a)};goog$inherits(goog$ui$Popup,goog$ui$PopupBase);goog$ui$Popup.prototype.setPosition=function(a){this.position_=a||void 0;this.isVisible()&&this.reposition()};
goog$ui$Popup.prototype.reposition=function(){if(this.position_){var a=!this.isVisible()&&"move_offscreen"!=this.getType(),b=this.getElement();a&&(b.style.visibility="hidden",goog$style$showElement(b,!0));this.position_.reposition(b,this.popupCorner_,this.margin_);a&&goog$style$showElement(b,!1)}};var jfk$ArrowPosition=function(a){this.className_=a;this.arrowClassMap_=goog$object$create(0,this.className_+"-arrowright",1,this.className_+"-arrowup",2,this.className_+"-arrowdown",3,this.className_+"-arrowleft")};goog$inherits(jfk$ArrowPosition,goog$positioning$AbstractPosition);jfk$ArrowPosition.prototype.isAutoReposition_=!1;jfk$ArrowPosition.prototype.arrowAlignment_=2;jfk$ArrowPosition.prototype.arrowOffset_=20;jfk$ArrowPosition.prototype.boxPosition_=3;
jfk$ArrowPosition.prototype.offsetFromAnchor_=-5;jfk$ArrowPosition.prototype.setAnchorElement=function(a){this.anchorElement_=a};jfk$ArrowPosition.prototype.setPosition=function(a,b,c,d){null!=a&&(this.boxPosition_=a);null!=b&&(this.arrowAlignment_=b);goog$isNumber(c)&&(this.arrowOffset_=Math.max(c,15));goog$isNumber(d)&&(this.offsetFromAnchor_=d)};jfk$ArrowPosition.prototype.setElements=function(a,b){this.boxElement_=a;this.arrowElement_=b};
jfk$ArrowPosition.prototype.reposition=function(a,b,c){goog$asserts$assert(this.arrowElement_,"Must call setElements first.");var a=this.boxPosition_,b=this.getEffectiveAlignment_(this.boxPosition_,this.arrowAlignment_),d=this.getEffectiveArrowOffset_();this.reposition_(a,b,d,c)};jfk$ArrowPosition.prototype.getEffectiveArrowOffset_=function(){return 2==this.arrowAlignment_?jfk$ArrowPosition$isLeftOrRight_(this.boxPosition_)?this.boxElement_.offsetHeight/2:this.boxElement_.offsetWidth/2:this.arrowOffset_};
jfk$ArrowPosition.prototype.getEffectiveAlignment_=function(a,b){2==b&&(b=0);return b};
jfk$ArrowPosition.prototype.reposition_=function(a,b,c,d,e){if(this.anchorElement_){var f=jfk$ArrowPosition$getCorner_(a,b),g,h=this.anchorElement_,i=a,j=c;g=f;var l=goog$style$getSize(h),l=jfk$ArrowPosition$isLeftOrRight_(i)?l.height/2:l.width/2,j=l-j;g=(g&4&&goog$style$isRightToLeft(h)?g^2:g)&-5;if(l=goog$style$getVisibleRectForElement(h))h=goog$style$getBounds(h).toBox(),jfk$ArrowPosition$isLeftOrRight_(i)?h.top<l.top&&!(g&1)?j-=l.top-h.top:h.bottom>l.bottom&&g&1&&(j-=h.bottom-l.bottom):h.left<
l.left&&!(g&2)?j-=l.left-h.left:h.right>l.right&&g&2&&(j-=h.right-l.right);g=j;g=jfk$ArrowPosition$isLeftOrRight_(a)?new goog$math$Coordinate(this.offsetFromAnchor_,g):new goog$math$Coordinate(g,this.offsetFromAnchor_);i=jfk$ArrowPosition$isLeftOrRight_(a)?6:9;j=a^3;f=goog$positioning$positionAtAnchor(this.anchorElement_,jfk$ArrowPosition$getCorner_(j,b),this.boxElement_,f,g,d,this.isAutoReposition_?i:0);if(!e&&f&496){this.reposition_(a^3,b,c,d,!0);return}}this.positionArrow_(a,b,c)};
jfk$ArrowPosition.prototype.positionArrow_=function(a,b,c){var d=this.arrowElement_;goog$object$forEach(this.arrowClassMap_,function(a){var b=d;goog$dom$classes$remove(b,a)},this);goog$dom$classes$add(d,this.arrowClassMap_[a]);d.style.top=d.style.left=d.style.right=d.style.bottom="";this.anchorElement_?(c=goog$style$getRelativePosition(this.anchorElement_,this.boxElement_),b=jfk$ArrowPosition$getAnchorPointOffsetFromAnchorTopLeft_(this.anchorElement_,a),jfk$ArrowPosition$isLeftOrRight_(a)?(a=Math.min(Math.max(c.y+
b.y,15),this.boxElement_.offsetHeight-15),d.style.top=a+"px"):(a=Math.min(Math.max(c.x+b.x,15),this.boxElement_.offsetWidth-15),d.style.left=a+"px")):(a=0==b?jfk$ArrowPosition$isLeftOrRight_(a)?"top":"left":jfk$ArrowPosition$isLeftOrRight_(a)?"bottom":"right",d.style[a]=c+"px")};
var jfk$ArrowPosition$getCorner_=function(a,b){switch(a){case 2:return 0==b?1:3;case 1:return 0==b?0:2;case 0:return 0==b?6:7;default:return 0==b?4:5}},jfk$ArrowPosition$getAnchorPointOffsetFromAnchorTopLeft_=function(a,b){var c=0,d=0,e=goog$style$getSize(a);switch(b){case 2:c=e.width/2;break;case 1:c=e.width/2;d=e.height;break;case 0:d=e.height/2;break;case 3:c=e.width,d=e.height/2}return new goog$math$Coordinate(c,d)},jfk$ArrowPosition$isLeftOrRight_=function(a){return 0==a||3==a};Math.pow(1024,-3);Math.pow(1024,-2);Math.pow(1024,2);Math.pow(1024,3);Math.pow(1024,4);Math.pow(1024,5);goog$userAgent$IE&&goog$userAgent$isVersion(8);var jfk$templates$bubble$main=function(a){var b='<div class="jfk-bubble"><div class="jfk-bubble-content-id"></div>';a.showCloseBox&&(b+='<div class="jfk-bubble-closebtn-id jfk-bubble-closebtn" aria-label="Close" role=button tabindex=0></div>');return b+='<div class="jfk-bubble-arrow-id jfk-bubble-arrow"><div class="jfk-bubble-arrowimplbefore"></div><div class="jfk-bubble-arrowimplafter"></div></div></div>'};var jfk$Bubble=function(a){goog$ui$Component.call(this,a);this.arrowPosition_=new jfk$ArrowPosition(this.className_);this.popup_=new goog$ui$Popup;this.hideYPosition_=0};goog$inherits(jfk$Bubble,goog$ui$Component);jfk$Bubble.prototype.className_="jfk-bubble";jfk$Bubble.prototype.showCloseButton_=!0;jfk$Bubble.prototype.disposeOnHide_=!1;jfk$Bubble.prototype.setAnchorElement=function(a){this.arrowPosition_.setAnchorElement(a);this.reposition()};
jfk$Bubble.prototype.setPosition=function(a,b,c,d){goog$asserts$assert(!this.isInDocument(),"Must call setPosition() before rendering");this.arrowPosition_.setPosition(a,b,c,d)};jfk$Bubble.prototype.showCloseButton=function(a){goog$asserts$assert(!this.isInDocument(),"Must call setShowClosebox() before rendering");this.showCloseButton_=a};jfk$Bubble.prototype.setContent=function(a){goog$asserts$assert(goog$isString(a)||a.nodeType,"Content must be a string or HTML.");this.content_=a;this.setContentInternal_(a)};
jfk$Bubble.prototype.setContentInternal_=function(a){var b=this.getContentElement();a&&b&&(goog$isString(a)?b.innerHTML=a:(b.innerHTML="",b.appendChild(a)))};jfk$Bubble.prototype.getContentElement=function(){return this.getElementByClass(this.className_+"-content-id")};
jfk$Bubble.prototype.createDom=function(){this.setElementInternal(goog$soy$renderAsElement(jfk$templates$bubble$main,{showCloseBox:this.showCloseButton_},void 0,this.getDomHelper()));this.setContentInternal_(this.content_);goog$style$showElement(this.getElement(),!1);this.popup_.setElement(this.getElement());this.popup_.setTransition(goog$fx$css3$fadeIn(this.getElement(),0.218),goog$fx$css3$fadeOut(this.getElement(),0.218))};
jfk$Bubble.prototype.enterDocument=function(){jfk$Bubble.superClass_.enterDocument.call(this);this.getHandler().listen(this.popup_,["beforeshow","show","beforehide","hide"],this.handlePopupEvent_);this.showCloseButton_&&this.getHandler().listenWithWrapper(this.getElementByClass(this.className_+"-closebtn-id"),goog$events$actionEventWrapper,goog$partial(this.setVisible,!1));var a=this.getElement();goog$asserts$assert(a,"getElement() returns null.");var b=this.getElementByClass(this.className_+"-arrow-id");
goog$asserts$assert(b,"No arrow element is found!");this.arrowPosition_.setElements(a,b);this.popup_.setPosition(this.arrowPosition_)};jfk$Bubble.prototype.setVisible=function(a){this.popup_.setVisible(a)};jfk$Bubble.prototype.isVisible=function(){return this.popup_.isVisible()};jfk$Bubble.prototype.reposition=function(){this.isVisible()&&this.popup_.reposition()};jfk$Bubble.prototype.disposeInternal=function(){this.popup_.dispose();delete this.popup_;jfk$Bubble.superClass_.disposeInternal.call(this)};
jfk$Bubble.prototype.handleScroll_=function(){var a=goog$style$getClientPosition(this.getElement());this.hideYPosition_&&a.y<this.hideYPosition_&&this.setVisible(!1);return!1};
jfk$Bubble.prototype.handlePopupEvent_=function(a){if("show"==a.type||"hide"==a.type){var b=this.getHandler(),c=this.getDomHelper(),c=goog$userAgent$IE?c.getWindow():c.getDocument();"show"==a.type?b.listen(c,"scroll",this.handleScroll_):b.unlisten(c,"scroll",this.handleScroll_)}b=this.dispatchEvent(a.type);this.disposeOnHide_&&"hide"==a.type&&this.dispose();return b};var goog$async$Delay=function(a,b,c){this.listener_=a;this.interval_=b||0;this.handler_=c;this.callback_=goog$bind(this.doAction_,this)};goog$inherits(goog$async$Delay,goog$Disposable);goog$async$Delay.prototype.id_=0;goog$async$Delay.prototype.disposeInternal=function(){goog$async$Delay.superClass_.disposeInternal.call(this);this.stop();delete this.listener_;delete this.handler_};goog$async$Delay.prototype.start=function(a){this.stop();this.id_=goog$Timer$callOnce(this.callback_,void 0!==a?a:this.interval_)};
goog$async$Delay.prototype.stop=function(){this.isActive()&&goog$Timer$defaultTimerObject.clearTimeout(this.id_);this.id_=0};goog$async$Delay.prototype.isActive=function(){return 0!=this.id_};goog$async$Delay.prototype.doAction_=function(){this.id_=0;this.listener_&&this.listener_.call(this.handler_)};var goog$events$KeyNames$1="backspace",goog$events$KeyNames$2="tab",goog$events$KeyNames$3="enter",goog$events$KeyNames$4="shift",goog$events$KeyNames$5="ctrl",goog$events$KeyNames$6="alt",goog$events$KeyNames$7="pause",goog$events$KeyNames$8="caps-lock",goog$events$KeyNames$9="esc",goog$events$KeyNames$10="space",goog$events$KeyNames$11="pg-up",goog$events$KeyNames$12="pg-down",goog$events$KeyNames$13="end",goog$events$KeyNames$14="home",goog$events$KeyNames$15="left",goog$events$KeyNames$16="up",
goog$events$KeyNames$17="right",goog$events$KeyNames$18="down",goog$events$KeyNames$19="insert",goog$events$KeyNames$20="delete",goog$events$KeyNames$21="0",goog$events$KeyNames$22="1",goog$events$KeyNames$23="2",goog$events$KeyNames$24="3",goog$events$KeyNames$25="4",goog$events$KeyNames$26="5",goog$events$KeyNames$27="6",goog$events$KeyNames$28="7",goog$events$KeyNames$29="8",goog$events$KeyNames$30="9",goog$events$KeyNames$31="semicolon",goog$events$KeyNames$32="equals",goog$events$KeyNames$33=
"a",goog$events$KeyNames$34="b",goog$events$KeyNames$35="c",goog$events$KeyNames$36="d",goog$events$KeyNames$37="e",goog$events$KeyNames$38="f",goog$events$KeyNames$39="g",goog$events$KeyNames$40="h",goog$events$KeyNames$41="i",goog$events$KeyNames$42="j",goog$events$KeyNames$43="k",goog$events$KeyNames$44="l",goog$events$KeyNames$45="m",goog$events$KeyNames$46="n",goog$events$KeyNames$47="o",goog$events$KeyNames$48="p",goog$events$KeyNames$49="q",goog$events$KeyNames$50="r",goog$events$KeyNames$51=
"s",goog$events$KeyNames$52="t",goog$events$KeyNames$53="u",goog$events$KeyNames$54="v",goog$events$KeyNames$55="w",goog$events$KeyNames$56="x",goog$events$KeyNames$57="y",goog$events$KeyNames$58="z",goog$events$KeyNames$59="context",goog$events$KeyNames$60="num-0",goog$events$KeyNames$61="num-1",goog$events$KeyNames$62="num-2",goog$events$KeyNames$63="num-3",goog$events$KeyNames$64="num-4",goog$events$KeyNames$65="num-5",goog$events$KeyNames$66="num-6",goog$events$KeyNames$67="num-7",goog$events$KeyNames$68=
"num-8",goog$events$KeyNames$69="num-9",goog$events$KeyNames$70="num-multiply",goog$events$KeyNames$71="num-plus",goog$events$KeyNames$72="num-minus",goog$events$KeyNames$73="num-period",goog$events$KeyNames$74="num-division",goog$events$KeyNames$75="f1",goog$events$KeyNames$76="f2",goog$events$KeyNames$77="f3",goog$events$KeyNames$78="f4",goog$events$KeyNames$79="f5",goog$events$KeyNames$80="f6",goog$events$KeyNames$81="f7",goog$events$KeyNames$82="f8",goog$events$KeyNames$83="f9",goog$events$KeyNames$84=
"f10",goog$events$KeyNames$85="f11",goog$events$KeyNames$86="f12",goog$events$KeyNames$87="semicolon",goog$events$KeyNames$88="equals",goog$events$KeyNames$89=",",goog$events$KeyNames$90=".",goog$events$KeyNames$91="/",goog$events$KeyNames$92="~",goog$events$KeyNames$93="open-square-bracket",goog$events$KeyNames$94="\\",goog$events$KeyNames$95="close-square-bracket",goog$events$KeyNames$96="single-quote",goog$events$KeyNames$97="win",goog$events$KeyNames={8:goog$events$KeyNames$1,9:goog$events$KeyNames$2,
13:goog$events$KeyNames$3,16:goog$events$KeyNames$4,17:goog$events$KeyNames$5,18:goog$events$KeyNames$6,19:goog$events$KeyNames$7,20:goog$events$KeyNames$8,27:goog$events$KeyNames$9,32:goog$events$KeyNames$10,33:goog$events$KeyNames$11,34:goog$events$KeyNames$12,35:goog$events$KeyNames$13,36:goog$events$KeyNames$14,37:goog$events$KeyNames$15,38:goog$events$KeyNames$16,39:goog$events$KeyNames$17,40:goog$events$KeyNames$18,45:goog$events$KeyNames$19,46:goog$events$KeyNames$20,48:goog$events$KeyNames$21,
49:goog$events$KeyNames$22,50:goog$events$KeyNames$23,51:goog$events$KeyNames$24,52:goog$events$KeyNames$25,53:goog$events$KeyNames$26,54:goog$events$KeyNames$27,55:goog$events$KeyNames$28,56:goog$events$KeyNames$29,57:goog$events$KeyNames$30,59:goog$events$KeyNames$31,61:goog$events$KeyNames$32,65:goog$events$KeyNames$33,66:goog$events$KeyNames$34,67:goog$events$KeyNames$35,68:goog$events$KeyNames$36,69:goog$events$KeyNames$37,70:goog$events$KeyNames$38,71:goog$events$KeyNames$39,72:goog$events$KeyNames$40,
73:goog$events$KeyNames$41,74:goog$events$KeyNames$42,75:goog$events$KeyNames$43,76:goog$events$KeyNames$44,77:goog$events$KeyNames$45,78:goog$events$KeyNames$46,79:goog$events$KeyNames$47,80:goog$events$KeyNames$48,81:goog$events$KeyNames$49,82:goog$events$KeyNames$50,83:goog$events$KeyNames$51,84:goog$events$KeyNames$52,85:goog$events$KeyNames$53,86:goog$events$KeyNames$54,87:goog$events$KeyNames$55,88:goog$events$KeyNames$56,89:goog$events$KeyNames$57,90:goog$events$KeyNames$58,93:goog$events$KeyNames$59,
96:goog$events$KeyNames$60,97:goog$events$KeyNames$61,98:goog$events$KeyNames$62,99:goog$events$KeyNames$63,100:goog$events$KeyNames$64,101:goog$events$KeyNames$65,102:goog$events$KeyNames$66,103:goog$events$KeyNames$67,104:goog$events$KeyNames$68,105:goog$events$KeyNames$69,106:goog$events$KeyNames$70,107:goog$events$KeyNames$71,109:goog$events$KeyNames$72,110:goog$events$KeyNames$73,111:goog$events$KeyNames$74,112:goog$events$KeyNames$75,113:goog$events$KeyNames$76,114:goog$events$KeyNames$77,115:goog$events$KeyNames$78,
116:goog$events$KeyNames$79,117:goog$events$KeyNames$80,118:goog$events$KeyNames$81,119:goog$events$KeyNames$82,120:goog$events$KeyNames$83,121:goog$events$KeyNames$84,122:goog$events$KeyNames$85,123:goog$events$KeyNames$86,186:goog$events$KeyNames$87,187:goog$events$KeyNames$88,188:goog$events$KeyNames$89,190:goog$events$KeyNames$90,191:goog$events$KeyNames$91,192:goog$events$KeyNames$92,219:goog$events$KeyNames$93,220:goog$events$KeyNames$94,221:goog$events$KeyNames$95,222:goog$events$KeyNames$96,
224:goog$events$KeyNames$97};var goog$ui$ButtonRenderer=function(){};goog$inherits(goog$ui$ButtonRenderer,goog$ui$ControlRenderer);goog$addSingletonGetter(goog$ui$ButtonRenderer);goog$ui$ButtonRenderer.prototype.getAriaRole=function(){return"button"};goog$ui$ButtonRenderer.prototype.updateAriaState=function(a,b,c){16==b?goog$dom$a11y$setState(a,"pressed",c):goog$ui$ButtonRenderer.superClass_.updateAriaState.call(this,a,b,c)};
goog$ui$ButtonRenderer.prototype.createDom=function(a){var b=goog$ui$ButtonRenderer.superClass_.createDom.call(this,a),c=a.getTooltip();c&&this.setTooltip(b,c);(c=a.getValue())&&this.setValue(b,c);a.isSupportedState(16)&&this.updateAriaState(b,16,a.isChecked());return b};
goog$ui$ButtonRenderer.prototype.decorate=function(a,b){b=goog$ui$ButtonRenderer.superClass_.decorate.call(this,a,b);a.setValueInternal(this.getValue(b));a.setTooltipInternal(this.getTooltip(b));a.isSupportedState(16)&&this.updateAriaState(b,16,a.isChecked());return b};goog$ui$ButtonRenderer.prototype.getValue=goog$nullFunction;goog$ui$ButtonRenderer.prototype.setValue=goog$nullFunction;goog$ui$ButtonRenderer.prototype.getTooltip=function(a){return a.title};
goog$ui$ButtonRenderer.prototype.setTooltip=function(a,b){a&&(a.title=b||"")};goog$ui$ButtonRenderer.prototype.getCssClass=function(){return"goog-button"};var goog$ui$NativeButtonRenderer=function(){};goog$inherits(goog$ui$NativeButtonRenderer,goog$ui$ButtonRenderer);goog$addSingletonGetter(goog$ui$NativeButtonRenderer);goog$ui$NativeButtonRenderer.prototype.getAriaRole=function(){};goog$ui$NativeButtonRenderer.prototype.createDom=function(a){this.setUpNativeButton_(a);return a.getDomHelper().createDom("button",{"class":this.getClassNames(a).join(" "),disabled:!a.isEnabled(),title:a.getTooltip()||"",value:a.getValue()||""},a.getCaption()||"")};
goog$ui$NativeButtonRenderer.prototype.canDecorate=function(a){return"BUTTON"==a.tagName||"INPUT"==a.tagName&&("button"==a.type||"submit"==a.type||"reset"==a.type)};goog$ui$NativeButtonRenderer.prototype.decorate=function(a,b){this.setUpNativeButton_(a);b.disabled&&goog$dom$classes$add(b,this.getClassForState(1));return goog$ui$NativeButtonRenderer.superClass_.decorate.call(this,a,b)};goog$ui$NativeButtonRenderer.prototype.initializeDom=function(a){a.getHandler().listen(a.getElement(),"click",a.performActionInternal)};
goog$ui$NativeButtonRenderer.prototype.setAllowTextSelection=goog$nullFunction;goog$ui$NativeButtonRenderer.prototype.setRightToLeft=goog$nullFunction;goog$ui$NativeButtonRenderer.prototype.isFocusable=function(a){return a.isEnabled()};goog$ui$NativeButtonRenderer.prototype.setFocusable=goog$nullFunction;goog$ui$NativeButtonRenderer.prototype.setState=function(a,b,c){goog$ui$NativeButtonRenderer.superClass_.setState.call(this,a,b,c);if((a=a.getElement())&&1==b)a.disabled=c};
goog$ui$NativeButtonRenderer.prototype.getValue=function(a){return a.value};goog$ui$NativeButtonRenderer.prototype.setValue=function(a,b){a&&(a.value=b)};goog$ui$NativeButtonRenderer.prototype.updateAriaState=goog$nullFunction;goog$ui$NativeButtonRenderer.prototype.setUpNativeButton_=function(a){a.setHandleMouseEvents(!1);a.setAutoStates(255,!1);a.setSupportedState(32,!1)};var goog$ui$Button=function(a,b,c){goog$ui$Control.call(this,a,b||goog$ui$NativeButtonRenderer.getInstance(),c)};goog$inherits(goog$ui$Button,goog$ui$Control);goog$ui$Button.prototype.getValue=function(){return this.value_};goog$ui$Button.prototype.setValue=function(a){this.value_=a;var b=this.getRenderer();b.setValue(this.getElement(),a)};goog$ui$Button.prototype.setValueInternal=function(a){this.value_=a};goog$ui$Button.prototype.getTooltip=function(){return this.tooltip_};
goog$ui$Button.prototype.setTooltip=function(a){this.tooltip_=a;this.getRenderer().setTooltip(this.getElement(),a)};goog$ui$Button.prototype.setTooltipInternal=function(a){this.tooltip_=a};goog$ui$Button.prototype.disposeInternal=function(){goog$ui$Button.superClass_.disposeInternal.call(this);delete this.value_;delete this.tooltip_};
goog$ui$Button.prototype.enterDocument=function(){goog$ui$Button.superClass_.enterDocument.call(this);if(this.isSupportedState(32)){var a=this.getKeyEventTarget();a&&this.getHandler().listen(a,"keyup",this.handleKeyEventInternal)}};goog$ui$Button.prototype.handleKeyEventInternal=function(a){return 13==a.keyCode&&"key"==a.type||32==a.keyCode&&"keyup"==a.type?this.performActionInternal(a):32==a.keyCode};goog$ui$registry$setDecoratorByClassName("goog-button",function(){return new goog$ui$Button(null)});var goog$ui$FlatButtonRenderer=function(){};goog$inherits(goog$ui$FlatButtonRenderer,goog$ui$ButtonRenderer);goog$addSingletonGetter(goog$ui$FlatButtonRenderer);goog$ui$FlatButtonRenderer.prototype.createDom=function(a){var b=this.getClassNames(a),b={"class":"goog-inline-block "+b.join(" "),title:a.getTooltip()||""};return a.getDomHelper().createDom("div",b,a.getContent())};goog$ui$FlatButtonRenderer.prototype.getAriaRole=function(){return"button"};
goog$ui$FlatButtonRenderer.prototype.canDecorate=function(a){return"DIV"==a.tagName};goog$ui$FlatButtonRenderer.prototype.decorate=function(a,b){goog$dom$classes$add(b,"goog-inline-block");return goog$ui$FlatButtonRenderer.superClass_.decorate.call(this,a,b)};goog$ui$FlatButtonRenderer.prototype.getValue=function(){return null};goog$ui$FlatButtonRenderer.prototype.getCssClass=function(){return"goog-flat-button"};
goog$ui$registry$setDecoratorByClassName("goog-flat-button",function(){return new goog$ui$Button(null,goog$ui$FlatButtonRenderer.getInstance())});var goog$ui$MenuSeparatorRenderer=function(){};goog$inherits(goog$ui$MenuSeparatorRenderer,goog$ui$ControlRenderer);goog$addSingletonGetter(goog$ui$MenuSeparatorRenderer);goog$ui$MenuSeparatorRenderer.prototype.createDom=function(a){return a.getDomHelper().createDom("div",this.getCssClass())};
goog$ui$MenuSeparatorRenderer.prototype.decorate=function(a,b){b.id&&a.setId(b.id);if("HR"==b.tagName){var c=b,b=this.createDom(a);c.parentNode&&c.parentNode.insertBefore(b,c);goog$dom$removeNode(c)}else goog$dom$classes$add(b,this.getCssClass());return b};goog$ui$MenuSeparatorRenderer.prototype.setContent=function(){};goog$ui$MenuSeparatorRenderer.prototype.getCssClass=function(){return"goog-menuseparator"};var goog$ui$Separator=function(a,b){goog$ui$Control.call(this,null,a||goog$ui$MenuSeparatorRenderer.getInstance(),b);this.setSupportedState(1,!1);this.setSupportedState(2,!1);this.setSupportedState(4,!1);this.setSupportedState(32,!1);this.setStateInternal(1)};goog$inherits(goog$ui$Separator,goog$ui$Control);goog$ui$Separator.prototype.enterDocument=function(){goog$ui$Separator.superClass_.enterDocument.call(this);var a=this.getElement();a.setAttribute("role","separator")};
goog$ui$registry$setDecoratorByClassName("goog-menuseparator",function(){return new goog$ui$Separator});var goog$ui$ContainerRenderer=function(){};goog$addSingletonGetter(goog$ui$ContainerRenderer);goog$ui$ContainerRenderer.prototype.getAriaRole=function(){};goog$ui$ContainerRenderer.prototype.enableTabIndex=function(a,b){a&&(a.tabIndex=b?0:-1)};goog$ui$ContainerRenderer.prototype.createDom=function(a){return a.getDomHelper().createDom("div",this.getClassNames(a).join(" "))};goog$ui$ContainerRenderer.prototype.getContentElement=function(a){return a};
goog$ui$ContainerRenderer.prototype.canDecorate=function(a){return"DIV"==a.tagName};goog$ui$ContainerRenderer.prototype.decorate=function(a,b){b.id&&a.setId(b.id);var c=this.getCssClass(),d=!1,e=goog$dom$classes$get(b);e&&goog$array$forEach(e,function(b){b==c?d=!0:b&&this.setStateFromClassName(a,b,c)},this);d||goog$dom$classes$add(b,c);this.decorateChildren(a,this.getContentElement(b));return b};
goog$ui$ContainerRenderer.prototype.setStateFromClassName=function(a,b,c){b==c+"-disabled"?a.setEnabled(!1):b==c+"-horizontal"?a.setOrientation("horizontal"):b==c+"-vertical"&&a.setOrientation("vertical")};
goog$ui$ContainerRenderer.prototype.decorateChildren=function(a,b,c){if(b)for(var c=c||b.firstChild,d;c&&c.parentNode==b;){d=c.nextSibling;if(1==c.nodeType){var e=this.getDecoratorForChild(c);e&&(e.setElementInternal(c),a.isEnabled()||e.setEnabled(!1),a.addChild(e),e.decorate(c))}else(!c.nodeValue||""==goog$string$trim(c.nodeValue))&&b.removeChild(c);c=d}};
goog$ui$ContainerRenderer.prototype.getDecoratorForChild=function(a){a:{for(var b=goog$dom$classes$get(a),c=0,d=b.length;c<d;c++)if(a=b[c]in goog$ui$registry$decoratorFunctions_?goog$ui$registry$decoratorFunctions_[b[c]]():null)break a;a=null}return a};goog$ui$ContainerRenderer.prototype.initializeDom=function(a){a=a.getElement();goog$style$setUnselectable(a,!0,goog$userAgent$GECKO);goog$userAgent$IE&&(a.hideFocus=!0);var b=this.getAriaRole();b&&a.setAttribute("role",b)};
goog$ui$ContainerRenderer.prototype.getKeyEventTarget=function(a){return a.getElement()};goog$ui$ContainerRenderer.prototype.getCssClass=function(){return"goog-container"};goog$ui$ContainerRenderer.prototype.getClassNames=function(a){var b=this.getCssClass(),c="horizontal"==a.getOrientation(),c=[b,c?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+"-disabled");return c};goog$ui$ContainerRenderer.prototype.getDefaultOrientation=function(){return"vertical"};var goog$ui$Container=function(a,b,c){goog$ui$Component.call(this,c);this.renderer_=b||goog$ui$ContainerRenderer.getInstance();this.orientation_=a||this.renderer_.getDefaultOrientation()};goog$inherits(goog$ui$Container,goog$ui$Component);goog$ui$Container.prototype.keyEventTarget_=null;goog$ui$Container.prototype.keyHandler_=null;goog$ui$Container.prototype.renderer_=null;goog$ui$Container.prototype.orientation_=null;goog$ui$Container.prototype.visible_=!0;goog$ui$Container.prototype.enabled_=!0;
goog$ui$Container.prototype.focusable_=!0;goog$ui$Container.prototype.highlightedIndex_=-1;goog$ui$Container.prototype.openItem_=null;goog$ui$Container.prototype.mouseButtonPressed_=!1;goog$ui$Container.prototype.allowFocusableChildren_=!1;goog$ui$Container.prototype.openFollowsHighlight_=!0;goog$ui$Container.prototype.childElementIdMap_=null;goog$ui$Container.prototype.getKeyEventTarget=function(){return this.keyEventTarget_||this.renderer_.getKeyEventTarget(this)};
goog$ui$Container.prototype.getKeyHandler=function(){return this.keyHandler_||(this.keyHandler_=new goog$events$KeyHandler(this.getKeyEventTarget()))};goog$ui$Container.prototype.getRenderer=function(){return this.renderer_};goog$ui$Container.prototype.createDom=function(){this.setElementInternal(this.renderer_.createDom(this))};goog$ui$Container.prototype.getContentElement=function(){return this.renderer_.getContentElement(this.getElement())};goog$ui$Container.prototype.canDecorate=function(a){return this.renderer_.canDecorate(a)};
goog$ui$Container.prototype.decorateInternal=function(a){this.setElementInternal(this.renderer_.decorate(this,a));"none"==a.style.display&&(this.visible_=!1)};
goog$ui$Container.prototype.enterDocument=function(){goog$ui$Container.superClass_.enterDocument.call(this);this.forEachChild(function(a){a.isInDocument()&&this.registerChildId_(a)},this);var a=this.getElement();this.renderer_.initializeDom(this);this.setVisible(this.visible_,!0);this.getHandler().listen(this,"enter",this.handleEnterItem).listen(this,"highlight",this.handleHighlightItem).listen(this,"unhighlight",this.handleUnHighlightItem).listen(this,"open",this.handleOpenItem).listen(this,"close",
this.handleCloseItem).listen(a,"mousedown",this.handleMouseDown).listen(goog$dom$getOwnerDocument(a),"mouseup",this.handleDocumentMouseUp).listen(a,["mousedown","mouseup","mouseover","mouseout"],this.handleChildMouseEvents);this.isFocusable()&&this.enableFocusHandling_(!0)};
goog$ui$Container.prototype.enableFocusHandling_=function(a){var b=this.getHandler(),c=this.getKeyEventTarget();a?b.listen(c,"focus",this.handleFocus).listen(c,"blur",this.handleBlur).listen(this.getKeyHandler(),"key",this.handleKeyEvent):b.unlisten(c,"focus",this.handleFocus).unlisten(c,"blur",this.handleBlur).unlisten(this.getKeyHandler(),"key",this.handleKeyEvent)};
goog$ui$Container.prototype.exitDocument=function(){this.setHighlightedIndex(-1);this.openItem_&&this.openItem_.setOpen(!1);this.mouseButtonPressed_=!1;goog$ui$Container.superClass_.exitDocument.call(this)};goog$ui$Container.prototype.disposeInternal=function(){goog$ui$Container.superClass_.disposeInternal.call(this);this.keyHandler_&&(this.keyHandler_.dispose(),this.keyHandler_=null);this.renderer_=this.openItem_=this.childElementIdMap_=this.keyEventTarget_=null};
goog$ui$Container.prototype.handleEnterItem=function(){return!0};
goog$ui$Container.prototype.handleHighlightItem=function(a){var b=this.indexOfChild(a.target);if(-1<b&&b!=this.highlightedIndex_){var c=this.getHighlighted();c&&c.setHighlighted(!1);this.highlightedIndex_=b;c=this.getHighlighted();this.isMouseButtonPressed()&&c.setActive(!0);this.openFollowsHighlight_&&(this.openItem_&&c!=this.openItem_)&&(c.isSupportedState(64)?c.setOpen(!0):this.openItem_.setOpen(!1))}goog$dom$a11y$setState(this.getElement(),"activedescendant",a.target.getElement().id)};
goog$ui$Container.prototype.handleUnHighlightItem=function(a){a.target==this.getHighlighted()&&(this.highlightedIndex_=-1);goog$dom$a11y$setState(this.getElement(),"activedescendant","")};goog$ui$Container.prototype.handleOpenItem=function(a){if((a=a.target)&&a!=this.openItem_&&a.getParent()==this)this.openItem_&&this.openItem_.setOpen(!1),this.openItem_=a};goog$ui$Container.prototype.handleCloseItem=function(a){a.target==this.openItem_&&(this.openItem_=null)};
goog$ui$Container.prototype.handleMouseDown=function(a){this.enabled_&&this.setMouseButtonPressed(!0);var b=this.getKeyEventTarget();b&&goog$dom$isFocusableTabIndex(b)?b.focus():a.preventDefault()};goog$ui$Container.prototype.handleDocumentMouseUp=function(){this.setMouseButtonPressed(!1)};
goog$ui$Container.prototype.handleChildMouseEvents=function(a){var b=this.getOwnerControl(a.target);if(b)switch(a.type){case "mousedown":b.handleMouseDown(a);break;case "mouseup":b.handleMouseUp(a);break;case "mouseover":b.handleMouseOver(a);break;case "mouseout":b.handleMouseOut(a)}};goog$ui$Container.prototype.getOwnerControl=function(a){if(this.childElementIdMap_)for(var b=this.getElement();a&&a!==b;){var c=a.id;if(c in this.childElementIdMap_)return this.childElementIdMap_[c];a=a.parentNode}return null};
goog$ui$Container.prototype.handleFocus=function(){};goog$ui$Container.prototype.handleBlur=function(){this.setHighlightedIndex(-1);this.setMouseButtonPressed(!1);this.openItem_&&this.openItem_.setOpen(!1)};goog$ui$Container.prototype.handleKeyEvent=function(a){return this.isEnabled()&&this.isVisible()&&(0!=this.getChildCount()||this.keyEventTarget_)&&this.handleKeyEventInternal(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};
goog$ui$Container.prototype.handleKeyEventInternal=function(a){var b=this.getHighlighted();if(b&&"function"==typeof b.handleKeyEvent&&b.handleKeyEvent(a)||this.openItem_&&this.openItem_!=b&&"function"==typeof this.openItem_.handleKeyEvent&&this.openItem_.handleKeyEvent(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case 27:if(this.isFocusable())this.getKeyEventTarget().blur();else return!1;break;case 36:this.highlightFirst();break;case 35:this.highlightLast();
break;case 38:if("vertical"==this.orientation_)this.highlightPrevious();else return!1;break;case 37:if("horizontal"==this.orientation_)this.isRightToLeft()?this.highlightNext():this.highlightPrevious();else return!1;break;case 40:if("vertical"==this.orientation_)this.highlightNext();else return!1;break;case 39:if("horizontal"==this.orientation_)this.isRightToLeft()?this.highlightPrevious():this.highlightNext();else return!1;break;default:return!1}return!0};
goog$ui$Container.prototype.registerChildId_=function(a){var b=a.getElement(),b=b.id||(b.id=a.getId());this.childElementIdMap_||(this.childElementIdMap_={});this.childElementIdMap_[b]=a};goog$ui$Container.prototype.addChild=function(a,b){goog$ui$Container.superClass_.addChild.call(this,a,b)};
goog$ui$Container.prototype.addChildAt=function(a,b,c){a.setDispatchTransitionEvents(2,!0);a.setDispatchTransitionEvents(64,!0);(this.isFocusable()||!this.isFocusableChildrenAllowed())&&a.setSupportedState(32,!1);a.setHandleMouseEvents(!1);goog$ui$Container.superClass_.addChildAt.call(this,a,b,c);a.isInDocument()&&this.isInDocument()&&this.registerChildId_(a);b<=this.highlightedIndex_&&this.highlightedIndex_++};
goog$ui$Container.prototype.removeChild=function(a,b){if(a=goog$isString(a)?this.getChild(a):a){var c=this.indexOfChild(a);-1!=c&&(c==this.highlightedIndex_?a.setHighlighted(!1):c<this.highlightedIndex_&&this.highlightedIndex_--);(c=a.getElement())&&(c.id&&this.childElementIdMap_)&&goog$object$remove(this.childElementIdMap_,c.id)}a=goog$ui$Container.superClass_.removeChild.call(this,a,b);a.setHandleMouseEvents(!0);return a};goog$ui$Container.prototype.getOrientation=function(){return this.orientation_};
goog$ui$Container.prototype.setOrientation=function(a){if(this.getElement())throw Error("Component already rendered");this.orientation_=a};goog$ui$Container.prototype.isVisible=function(){return this.visible_};
goog$ui$Container.prototype.setVisible=function(a,b){if(b||this.visible_!=a&&this.dispatchEvent(a?"show":"hide")){this.visible_=a;var c=this.getElement();c&&(goog$style$showElement(c,a),this.isFocusable()&&this.renderer_.enableTabIndex(this.getKeyEventTarget(),this.enabled_&&this.visible_),b||this.dispatchEvent(this.visible_?"aftershow":"afterhide"));return!0}return!1};goog$ui$Container.prototype.isEnabled=function(){return this.enabled_};
goog$ui$Container.prototype.setEnabled=function(a){if(this.enabled_!=a&&this.dispatchEvent(a?"enable":"disable"))a?(this.enabled_=!0,this.forEachChild(function(a){a.wasDisabled?delete a.wasDisabled:a.setEnabled(!0)})):(this.forEachChild(function(a){a.isEnabled()?a.setEnabled(!1):a.wasDisabled=!0}),this.enabled_=!1,this.setMouseButtonPressed(!1)),this.isFocusable()&&this.renderer_.enableTabIndex(this.getKeyEventTarget(),a&&this.visible_)};goog$ui$Container.prototype.isFocusable=function(){return this.focusable_};
goog$ui$Container.prototype.setFocusable=function(a){a!=this.focusable_&&this.isInDocument()&&this.enableFocusHandling_(a);this.focusable_=a;this.enabled_&&this.visible_&&this.renderer_.enableTabIndex(this.getKeyEventTarget(),a)};goog$ui$Container.prototype.isFocusableChildrenAllowed=function(){return this.allowFocusableChildren_};goog$ui$Container.prototype.getHighlightedIndex=function(){return this.highlightedIndex_};
goog$ui$Container.prototype.setHighlightedIndex=function(a){(a=this.getChildAt(a))?a.setHighlighted(!0):-1<this.highlightedIndex_&&this.getHighlighted().setHighlighted(!1)};goog$ui$Container.prototype.setHighlighted=function(a){this.setHighlightedIndex(this.indexOfChild(a))};goog$ui$Container.prototype.getHighlighted=function(){return this.getChildAt(this.highlightedIndex_)};
goog$ui$Container.prototype.highlightFirst=function(){this.highlightHelper(function(a,b){return(a+1)%b},this.getChildCount()-1)};goog$ui$Container.prototype.highlightLast=function(){this.highlightHelper(function(a,b){a--;return 0>a?b-1:a},0)};goog$ui$Container.prototype.highlightNext=function(){this.highlightHelper(function(a,b){return(a+1)%b},this.highlightedIndex_)};goog$ui$Container.prototype.highlightPrevious=function(){this.highlightHelper(function(a,b){a--;return 0>a?b-1:a},this.highlightedIndex_)};
goog$ui$Container.prototype.highlightHelper=function(a,b){for(var c=0>b?this.indexOfChild(this.openItem_):b,d=this.getChildCount(),c=a.call(this,c,d),e=0;e<=d;){var f=this.getChildAt(c);if(f&&this.canHighlightItem(f))return this.setHighlightedIndexFromKeyEvent(c),!0;e++;c=a.call(this,c,d)}return!1};goog$ui$Container.prototype.canHighlightItem=function(a){return a.isVisible()&&a.isEnabled()&&a.isSupportedState(2)};goog$ui$Container.prototype.setHighlightedIndexFromKeyEvent=function(a){this.setHighlightedIndex(a)};
goog$ui$Container.prototype.isMouseButtonPressed=function(){return this.mouseButtonPressed_};goog$ui$Container.prototype.setMouseButtonPressed=function(a){this.mouseButtonPressed_=a};var goog$ui$MenuHeaderRenderer=function(){};goog$inherits(goog$ui$MenuHeaderRenderer,goog$ui$ControlRenderer);goog$addSingletonGetter(goog$ui$MenuHeaderRenderer);goog$ui$MenuHeaderRenderer.prototype.getCssClass=function(){return"goog-menuheader"};var goog$ui$MenuHeader=function(a,b,c){goog$ui$Control.call(this,a,c||goog$ui$MenuHeaderRenderer.getInstance(),b);this.setSupportedState(1,!1);this.setSupportedState(2,!1);this.setSupportedState(4,!1);this.setSupportedState(32,!1);this.setStateInternal(1)};goog$inherits(goog$ui$MenuHeader,goog$ui$Control);goog$ui$registry$setDecoratorByClassName("goog-menuheader",function(){return new goog$ui$MenuHeader(null)});var goog$ui$MenuRenderer=function(){};goog$inherits(goog$ui$MenuRenderer,goog$ui$ContainerRenderer);goog$addSingletonGetter(goog$ui$MenuRenderer);goog$ui$MenuRenderer.prototype.getAriaRole=function(){return"menu"};goog$ui$MenuRenderer.prototype.canDecorate=function(a){return"UL"==a.tagName||goog$ui$MenuRenderer.superClass_.canDecorate.call(this,a)};
goog$ui$MenuRenderer.prototype.getDecoratorForChild=function(a){return"HR"==a.tagName?new goog$ui$Separator:goog$ui$MenuRenderer.superClass_.getDecoratorForChild.call(this,a)};goog$ui$MenuRenderer.prototype.containsElement=function(a,b){return goog$dom$contains(a.getElement(),b)};goog$ui$MenuRenderer.prototype.getCssClass=function(){return"goog-menu"};
goog$ui$MenuRenderer.prototype.initializeDom=function(a){goog$ui$MenuRenderer.superClass_.initializeDom.call(this,a);a=a.getElement();goog$dom$a11y$setState(a,"haspopup","true")};var goog$ui$MenuSeparator=function(a){goog$ui$Separator.call(this,goog$ui$MenuSeparatorRenderer.getInstance(),a)};goog$inherits(goog$ui$MenuSeparator,goog$ui$Separator);goog$ui$registry$setDecoratorByClassName("goog-menuseparator",function(){return new goog$ui$Separator});var goog$ui$Menu=function(a,b){goog$ui$Container.call(this,"vertical",b||goog$ui$MenuRenderer.getInstance(),a);this.setFocusable(!1)};goog$inherits(goog$ui$Menu,goog$ui$Container);goog$ui$Menu.prototype.allowAutoFocus_=!0;goog$ui$Menu.prototype.allowHighlightDisabled_=!1;goog$ui$Menu.prototype.getCssClass=function(){return this.getRenderer().getCssClass()};
goog$ui$Menu.prototype.containsElement=function(a){if(this.getRenderer().containsElement(this,a))return!0;for(var b=0,c=this.getChildCount();b<c;b++){var d=this.getChildAt(b);if("function"==typeof d.containsElement&&d.containsElement(a))return!0}return!1};goog$ui$Menu.prototype.addItem=function(a){this.addChild(a,!0)};goog$ui$Menu.prototype.addItemAt=function(a,b){this.addChildAt(a,b,!0)};goog$ui$Menu.prototype.removeItem=function(a){(a=this.removeChild(a,!0))&&a.dispose()};
goog$ui$Menu.prototype.getItemAt=function(a){return this.getChildAt(a)};goog$ui$Menu.prototype.getItemCount=function(){return this.getChildCount()};goog$ui$Menu.prototype.getItems=function(){var a=[];this.forEachChild(function(b){a.push(b)});return a};
goog$ui$Menu.prototype.setPosition=function(a,b){var c=this.isVisible();c||goog$style$showElement(this.getElement(),!0);var d=this.getElement(),e=a,f=b,g=goog$style$getPageOffset(d);e instanceof goog$math$Coordinate&&(f=e.y,e=e.x);e-=g.x;f-=g.y;goog$style$setPosition(d,d.offsetLeft+e,d.offsetTop+f);c||goog$style$showElement(this.getElement(),!1)};goog$ui$Menu.prototype.setAllowAutoFocus=function(a){(this.allowAutoFocus_=a)&&this.setFocusable(!0)};
goog$ui$Menu.prototype.setVisible=function(a,b,c){(b=goog$ui$Menu.superClass_.setVisible.call(this,a,b))&&(a&&this.isInDocument()&&this.allowAutoFocus_)&&this.getKeyEventTarget().focus();this.openingCoords=a&&c&&goog$isNumber(c.clientX)?new goog$math$Coordinate(c.clientX,c.clientY):null;return b};goog$ui$Menu.prototype.handleEnterItem=function(a){this.allowAutoFocus_&&this.getKeyEventTarget().focus();return goog$ui$Menu.superClass_.handleEnterItem.call(this,a)};
goog$ui$Menu.prototype.highlightNextPrefix=function(a){var b=RegExp("^"+goog$string$regExpEscape(a),"i");return this.highlightHelper(function(a,d){var e=0>a?0:a,f=!1;do{++a;a==d&&(a=0,f=!0);var g=this.getChildAt(a).getCaption();if(g&&g.match(b))return a}while(!f||a!=e);return this.getHighlightedIndex()},this.getHighlightedIndex())};goog$ui$Menu.prototype.canHighlightItem=function(a){return(this.allowHighlightDisabled_||a.isEnabled())&&a.isVisible()&&a.isSupportedState(2)};
goog$ui$Menu.prototype.decorateInternal=function(a){this.decorateContent(a);goog$ui$Menu.superClass_.decorateInternal.call(this,a)};goog$ui$Menu.prototype.handleKeyEventInternal=function(a){var b=goog$ui$Menu.superClass_.handleKeyEventInternal.call(this,a);b||this.forEachChild(function(c){!b&&(c.getMnemonic&&c.getMnemonic()==a.keyCode)&&(this.isEnabled()&&this.setHighlighted(c),b=c.handleKeyEvent(a))},this);return b};
goog$ui$Menu.prototype.decorateContent=function(a){for(var b=this.getRenderer(),a=this.getDomHelper().getElementsByTagNameAndClass("div",b.getCssClass()+"-content",a),c=a.length,d=0;d<c;d++)b.decorateChildren(this,a[d])};var goog$positioning$MenuAnchoredPosition=function(a,b,c,d){goog$positioning$AnchoredViewportPosition.call(this,a,b,c||d);if(c||d)a=65,d=d?32:132,this.setLastResortOverflow(a|d)};goog$inherits(goog$positioning$MenuAnchoredPosition,goog$positioning$AnchoredViewportPosition);var goog$userAgent$product$detectedIphone_,goog$userAgent$product$detectedIpad_;goog$userAgent$product$detectedIpad_=goog$userAgent$product$detectedIphone_=!1;var ua$$inline_420=goog$userAgent$getUserAgentString();
ua$$inline_420&&(-1==ua$$inline_420.indexOf("Firefox")&&-1==ua$$inline_420.indexOf("Camino"))&&(-1!=ua$$inline_420.indexOf("iPhone")||-1!=ua$$inline_420.indexOf("iPod")?goog$userAgent$product$detectedIphone_=!0:-1!=ua$$inline_420.indexOf("iPad")?goog$userAgent$product$detectedIpad_=!0:-1==ua$$inline_420.indexOf("Android")&&-1==ua$$inline_420.indexOf("Chrome")&&ua$$inline_420.indexOf("Safari"));var goog$userAgent$product$IPHONE=goog$userAgent$product$detectedIphone_,goog$userAgent$product$IPAD=goog$userAgent$product$detectedIpad_;var goog$ui$CustomButtonRenderer=function(){};goog$inherits(goog$ui$CustomButtonRenderer,goog$ui$ButtonRenderer);goog$addSingletonGetter(goog$ui$CustomButtonRenderer);goog$ui$CustomButtonRenderer.prototype.createDom=function(a){var b=this.getClassNames(a),b={"class":"goog-inline-block "+b.join(" "),title:a.getTooltip()||""},b=a.getDomHelper().createDom("div",b,this.createButton(a.getContent(),a.getDomHelper()));this.setAriaStates(a,b);return b};goog$ui$CustomButtonRenderer.prototype.getAriaRole=function(){return"button"};
goog$ui$CustomButtonRenderer.prototype.setAriaStates=function(a,b){goog$asserts$assert(a);goog$asserts$assert(b);a.isEnabled()||this.updateAriaState(b,1,!0);a.isSelected()&&this.updateAriaState(b,8,!0);a.isSupportedState(16)&&this.updateAriaState(b,16,!0);a.isOpen()&&this.updateAriaState(b,64,!0)};goog$ui$CustomButtonRenderer.prototype.getContentElement=function(a){return a&&a.firstChild.firstChild};
goog$ui$CustomButtonRenderer.prototype.createButton=function(a,b){return b.createDom("div","goog-inline-block "+(this.getCssClass()+"-outer-box"),b.createDom("div","goog-inline-block "+(this.getCssClass()+"-inner-box"),a))};goog$ui$CustomButtonRenderer.prototype.canDecorate=function(a){return"DIV"==a.tagName};
goog$ui$CustomButtonRenderer.prototype.hasBoxStructure=function(a,b){var c=a.getDomHelper().getFirstElementChild(b),d=this.getCssClass()+"-outer-box";return c&&goog$array$contains(goog$dom$classes$get(c),d)&&(c=a.getDomHelper().getFirstElementChild(c),d=this.getCssClass()+"-inner-box",c&&goog$array$contains(goog$dom$classes$get(c),d))?!0:!1};
goog$ui$CustomButtonRenderer.prototype.decorate=function(a,b){goog$ui$CustomButtonRenderer$trimTextNodes_(b,!0);goog$ui$CustomButtonRenderer$trimTextNodes_(b,!1);this.hasBoxStructure(a,b)||b.appendChild(this.createButton(b.childNodes,a.getDomHelper()));goog$dom$classes$add(b,"goog-inline-block",this.getCssClass());return goog$ui$CustomButtonRenderer.superClass_.decorate.call(this,a,b)};goog$ui$CustomButtonRenderer.prototype.getCssClass=function(){return"goog-custom-button"};
var goog$ui$CustomButtonRenderer$trimTextNodes_=function(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(3==c.nodeType){var e=c.nodeValue;if(""==goog$string$trim(e))a.removeChild(c);else{c.nodeValue=b?e.replace(/^[\s\xa0]+/,""):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};var goog$ui$MenuButtonRenderer=function(){};goog$inherits(goog$ui$MenuButtonRenderer,goog$ui$CustomButtonRenderer);goog$addSingletonGetter(goog$ui$MenuButtonRenderer);goog$userAgent$GECKO&&(goog$ui$MenuButtonRenderer.prototype.setContent=function(a,b){var c=goog$ui$MenuButtonRenderer.superClass_.getContentElement.call(this,a&&a.firstChild);c&&goog$dom$replaceNode(this.createCaption(b,goog$dom$getDomHelper(a)),c)});
goog$ui$MenuButtonRenderer.prototype.getContentElement=function(a){a=goog$ui$MenuButtonRenderer.superClass_.getContentElement.call(this,a&&a.firstChild);if(goog$userAgent$GECKO&&a&&a.__goog_wrapper_div)a=a.firstChild;return a};
goog$ui$MenuButtonRenderer.prototype.decorate=function(a,b){var c=goog$dom$getElementsByTagNameAndClass_(document,"*","goog-menu",b)[0];if(c){goog$style$showElement(c,false);goog$dom$getOwnerDocument(c).body.appendChild(c);var d=new goog$ui$Menu;d.decorate(c);a.setMenu(d)}return goog$ui$MenuButtonRenderer.superClass_.decorate.call(this,a,b)};
goog$ui$MenuButtonRenderer.prototype.createButton=function(a,b){return goog$ui$MenuButtonRenderer.superClass_.createButton.call(this,[this.createCaption(a,b),this.createDropdown(b)],b)};goog$ui$MenuButtonRenderer.prototype.createCaption=function(a,b){return b.createDom("div","goog-inline-block "+(this.getCssClass()+"-caption"),a)};goog$ui$MenuButtonRenderer.prototype.createDropdown=function(a){return a.createDom("div","goog-inline-block "+(this.getCssClass()+"-dropdown"),"\u00a0")};
goog$ui$MenuButtonRenderer.prototype.getCssClass=function(){return"goog-menu-button"};var goog$ui$MenuButton=function(a,b,c,d){goog$ui$Button.call(this,a,c||goog$ui$MenuButtonRenderer.getInstance(),d);this.setSupportedState(64,!0);this.menuPosition_=new goog$positioning$MenuAnchoredPosition(null,5);b&&this.setMenu(b);this.menuMargin_=null;this.timer_=new goog$Timer(500);(goog$userAgent$product$IPHONE||goog$userAgent$product$IPAD)&&!goog$userAgent$isVersion("533.17.9")&&this.setFocusablePopupMenu(!0)};goog$inherits(goog$ui$MenuButton,goog$ui$Button);
goog$ui$MenuButton.prototype.isFocusablePopupMenu_=!1;goog$ui$MenuButton.prototype.renderMenuAsSibling_=!1;goog$ui$MenuButton.prototype.enterDocument=function(){goog$ui$MenuButton.superClass_.enterDocument.call(this);this.menu_&&this.attachMenuEventListeners_(this.menu_,!0);goog$dom$a11y$setState(this.getElement(),"haspopup","true")};
goog$ui$MenuButton.prototype.exitDocument=function(){goog$ui$MenuButton.superClass_.exitDocument.call(this);if(this.menu_){this.setOpen(!1);this.menu_.exitDocument();this.attachMenuEventListeners_(this.menu_,!1);var a=this.menu_.getElement();a&&goog$dom$removeNode(a)}};goog$ui$MenuButton.prototype.disposeInternal=function(){goog$ui$MenuButton.superClass_.disposeInternal.call(this);this.menu_&&(this.menu_.dispose(),delete this.menu_);delete this.positionElement_;this.timer_.dispose()};
goog$ui$MenuButton.prototype.handleMouseDown=function(a){goog$ui$MenuButton.superClass_.handleMouseDown.call(this,a);this.isActive()&&(this.setOpen(!this.isOpen(),a),this.menu_&&this.menu_.setMouseButtonPressed(this.isOpen()))};goog$ui$MenuButton.prototype.handleMouseUp=function(a){goog$ui$MenuButton.superClass_.handleMouseUp.call(this,a);this.menu_&&!this.isActive()&&this.menu_.setMouseButtonPressed(!1)};goog$ui$MenuButton.prototype.performActionInternal=function(){this.setActive(!1);return!0};
goog$ui$MenuButton.prototype.handleDocumentMouseDown=function(a){this.menu_&&(this.menu_.isVisible()&&!this.containsElement(a.target))&&this.setOpen(!1)};goog$ui$MenuButton.prototype.containsElement=function(a){return a&&goog$dom$contains(this.getElement(),a)||this.menu_&&this.menu_.containsElement(a)||!1};
goog$ui$MenuButton.prototype.handleKeyEventInternal=function(a){if(32==a.keyCode){if(a.preventDefault(),"keyup"!=a.type)return!0}else if("key"!=a.type)return!1;if(this.menu_&&this.menu_.isVisible()){var b=this.menu_.handleKeyEvent(a);return 27==a.keyCode?(this.setOpen(!1),!0):b}return 40==a.keyCode||38==a.keyCode||32==a.keyCode?(this.setOpen(!0),!0):!1};goog$ui$MenuButton.prototype.handleMenuAction=function(){this.setOpen(!1)};
goog$ui$MenuButton.prototype.handleMenuBlur=function(){this.isActive()||this.setOpen(!1)};goog$ui$MenuButton.prototype.handleBlur=function(a){this.isFocusablePopupMenu()||this.setOpen(!1);goog$ui$MenuButton.superClass_.handleBlur.call(this,a)};goog$ui$MenuButton.prototype.getMenu=function(){this.menu_||this.setMenu(new goog$ui$Menu(this.getDomHelper()));return this.menu_||null};
goog$ui$MenuButton.prototype.setMenu=function(a){var b=this.menu_;if(a!=b&&(b&&(this.setOpen(!1),this.isInDocument()&&this.attachMenuEventListeners_(b,!1),delete this.menu_),a))this.menu_=a,a.setParent(this),a.setVisible(!1),a.setAllowAutoFocus(this.isFocusablePopupMenu()),this.isInDocument()&&this.attachMenuEventListeners_(a,!0);return b};goog$ui$MenuButton.prototype.addItem=function(a){this.getMenu().addChild(a,!0)};
goog$ui$MenuButton.prototype.addItemAt=function(a,b){this.getMenu().addChildAt(a,b,!0)};goog$ui$MenuButton.prototype.removeItem=function(a){(a=this.getMenu().removeChild(a,!0))&&a.dispose()};goog$ui$MenuButton.prototype.getItemAt=function(a){return this.menu_?this.menu_.getChildAt(a):null};goog$ui$MenuButton.prototype.getItemCount=function(){return this.menu_?this.menu_.getChildCount():0};
goog$ui$MenuButton.prototype.setVisible=function(a,b){var c=goog$ui$MenuButton.superClass_.setVisible.call(this,a,b);c&&!this.isVisible()&&this.setOpen(!1);return c};goog$ui$MenuButton.prototype.setEnabled=function(a){goog$ui$MenuButton.superClass_.setEnabled.call(this,a);this.isEnabled()||this.setOpen(!1)};goog$ui$MenuButton.prototype.isAlignMenuToStart=function(){var a=this.menuPosition_.corner;return 5==a||4==a};
goog$ui$MenuButton.prototype.isScrollOnOverflow=function(){return this.menuPosition_.getLastResortOverflow&&!!(this.menuPosition_.getLastResortOverflow()&32)};goog$ui$MenuButton.prototype.isFocusablePopupMenu=function(){return this.isFocusablePopupMenu_};goog$ui$MenuButton.prototype.setFocusablePopupMenu=function(a){this.isFocusablePopupMenu_=a};goog$ui$MenuButton.prototype.setRenderMenuAsSibling=function(a){this.renderMenuAsSibling_=a};
goog$ui$MenuButton.prototype.setOpen=function(a,b){goog$ui$MenuButton.superClass_.setOpen.call(this,a);if(this.menu_&&this.hasState(64)==a){if(a)this.menu_.isInDocument()||(this.renderMenuAsSibling_?this.menu_.render(this.getElement().parentNode):this.menu_.render()),this.viewportBox_=goog$style$getVisibleRectForElement(this.getElement()),this.buttonRect_=goog$style$getBounds(this.getElement()),this.positionMenu(),this.menu_.setHighlightedIndex(-1);else if(this.setActive(!1),this.menu_.setMouseButtonPressed(!1),
this.getElement()&&goog$dom$a11y$setState(this.getElement(),"activedescendant",""),null!=this.originalSize_){this.originalSize_=void 0;var c=this.menu_.getElement();if(c){var d="",e;d instanceof goog$math$Size?(e=d.height,d=d.width):e="";c.style.width=goog$style$getPixelStyleValue_(d,!0);c.style.height=goog$style$getPixelStyleValue_(e,!0)}}this.menu_.setVisible(a,!1,b);this.isDisposed()||this.attachPopupListeners_(a)}};
goog$ui$MenuButton.prototype.positionMenu=function(){if(this.menu_.isInDocument()){var a=this.positionElement_||this.getElement(),b=this.menuPosition_;this.menuPosition_.element=a;a=this.menu_.getElement();this.menu_.isVisible()||(a.style.visibility="hidden",goog$style$showElement(a,!0));!this.originalSize_&&this.isScrollOnOverflow()&&(this.originalSize_=goog$style$getSize(a));var c=b.corner^1;b.reposition(a,c,this.menuMargin_,this.originalSize_);this.menu_.isVisible()||(goog$style$showElement(a,
!1),a.style.visibility="visible")}};goog$ui$MenuButton.prototype.onTick_=function(){var a=goog$style$getBounds(this.getElement()),b=goog$style$getVisibleRectForElement(this.getElement()),c;c=this.buttonRect_;c=c==a?!0:!c||!a?!1:c.left==a.left&&c.width==a.width&&c.top==a.top&&c.height==a.height;if(!(c=!c))c=this.viewportBox_,c=c==b?!0:!c||!b?!1:c.top==b.top&&c.right==b.right&&c.bottom==b.bottom&&c.left==b.left,c=!c;c&&(this.buttonRect_=a,this.viewportBox_=b,this.positionMenu())};
goog$ui$MenuButton.prototype.attachMenuEventListeners_=function(a,b){var c=this.getHandler(),d=b?c.listen:c.unlisten;d.call(c,a,"action",this.handleMenuAction);d.call(c,a,"highlight",this.handleHighlightItem);d.call(c,a,"unhighlight",this.handleUnHighlightItem)};goog$ui$MenuButton.prototype.handleHighlightItem=function(a){goog$dom$a11y$setState(this.getElement(),"activedescendant",a.target.getElement().id)};
goog$ui$MenuButton.prototype.handleUnHighlightItem=function(){this.menu_.getHighlighted()||goog$dom$a11y$setState(this.getElement(),"activedescendant","")};goog$ui$MenuButton.prototype.attachPopupListeners_=function(a){var b=this.getHandler(),c=a?b.listen:b.unlisten;c.call(b,this.getDomHelper().getDocument(),"mousedown",this.handleDocumentMouseDown,!0);this.isFocusablePopupMenu()&&c.call(b,this.menu_,"blur",this.handleMenuBlur);c.call(b,this.timer_,"tick",this.onTick_);a?this.timer_.start():this.timer_.stop()};
goog$ui$registry$setDecoratorByClassName("goog-menu-button",function(){return new goog$ui$MenuButton(null)});var goog$ui$FlatMenuButtonRenderer=function(){};goog$inherits(goog$ui$FlatMenuButtonRenderer,goog$ui$FlatButtonRenderer);goog$addSingletonGetter(goog$ui$FlatMenuButtonRenderer);goog$ui$FlatMenuButtonRenderer.prototype.createDom=function(a){var b=this.getClassNames(a),b={"class":"goog-inline-block "+b.join(" "),title:a.getTooltip()||""};return a.getDomHelper().createDom("div",b,[this.createCaption(a.getContent(),a.getDomHelper()),this.createDropdown(a.getDomHelper())])};
goog$ui$FlatMenuButtonRenderer.prototype.getContentElement=function(a){return a&&a.firstChild};
goog$ui$FlatMenuButtonRenderer.prototype.decorate=function(a,b){var c=goog$dom$getElementsByTagNameAndClass_(document,"*","goog-menu",b)[0];if(c){goog$style$showElement(c,!1);a.getDomHelper().getDocument().body.appendChild(c);var d=new goog$ui$Menu;d.decorate(c);a.setMenu(d)}(c=goog$dom$getElementsByTagNameAndClass_(document,"*",this.getCssClass()+"-caption",b)[0])||b.appendChild(this.createCaption(b.childNodes,a.getDomHelper()));(c=goog$dom$getElementsByTagNameAndClass_(document,"*",this.getCssClass()+
"-dropdown",b)[0])||b.appendChild(this.createDropdown(a.getDomHelper()));return goog$ui$FlatMenuButtonRenderer.superClass_.decorate.call(this,a,b)};goog$ui$FlatMenuButtonRenderer.prototype.createCaption=function(a,b){return b.createDom("div","goog-inline-block "+(this.getCssClass()+"-caption"),a)};goog$ui$FlatMenuButtonRenderer.prototype.createDropdown=function(a){return a.createDom("div","goog-inline-block "+(this.getCssClass()+"-dropdown"),"\u00a0")};
goog$ui$FlatMenuButtonRenderer.prototype.getCssClass=function(){return"goog-flat-menu-button"};goog$ui$registry$setDecoratorByClassName("goog-flat-menu-button",function(){return new goog$ui$MenuButton(null,null,goog$ui$FlatMenuButtonRenderer.getInstance())});var goog$ui$SelectionModel=function(a){this.items_=[];this.addItems(a)};goog$inherits(goog$ui$SelectionModel,goog$events$EventTarget);goog$ui$SelectionModel.prototype.selectedItem_=null;goog$ui$SelectionModel.prototype.selectionHandler_=null;goog$ui$SelectionModel.prototype.getItemCount=function(){return this.items_.length};goog$ui$SelectionModel.prototype.indexOfItem=function(a){return a?goog$array$indexOf(this.items_,a):-1};
goog$ui$SelectionModel.prototype.getItemAt=function(a){return this.items_[a]||null};goog$ui$SelectionModel.prototype.addItems=function(a){a&&(goog$array$forEach(a,function(a){this.selectItem_(a,!1)},this),goog$array$extend(this.items_,a))};goog$ui$SelectionModel.prototype.addItem=function(a){this.addItemAt(a,this.getItemCount())};goog$ui$SelectionModel.prototype.addItemAt=function(a,b){a&&(this.selectItem_(a,!1),goog$array$splice(this.items_,b,0,a))};
goog$ui$SelectionModel.prototype.removeItem=function(a){a&&goog$array$remove(this.items_,a)&&a==this.selectedItem_&&(this.selectedItem_=null,this.dispatchEvent("select"))};goog$ui$SelectionModel.prototype.getSelectedItem=function(){return this.selectedItem_};goog$ui$SelectionModel.prototype.getItems=function(){return goog$array$clone(this.items_)};
goog$ui$SelectionModel.prototype.setSelectedItem=function(a){a!=this.selectedItem_&&(this.selectItem_(this.selectedItem_,!1),this.selectedItem_=a,this.selectItem_(a,!0));this.dispatchEvent("select")};goog$ui$SelectionModel.prototype.getSelectedIndex=function(){return this.indexOfItem(this.selectedItem_)};goog$ui$SelectionModel.prototype.setSelectedIndex=function(a){this.setSelectedItem(this.getItemAt(a))};
goog$ui$SelectionModel.prototype.clear=function(){var a=this.items_;if(!goog$isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0;this.selectedItem_=null};goog$ui$SelectionModel.prototype.disposeInternal=function(){goog$ui$SelectionModel.superClass_.disposeInternal.call(this);delete this.items_;this.selectedItem_=null};goog$ui$SelectionModel.prototype.selectItem_=function(a,b){a&&("function"==typeof this.selectionHandler_?this.selectionHandler_(a,b):"function"==typeof a.setSelected&&a.setSelected(b))};var goog$ui$Select=function(a,b,c,d){goog$ui$MenuButton.call(this,a,b,c,d);this.setDefaultCaption(a);this.setPreferredAriaRole("listbox")};goog$inherits(goog$ui$Select,goog$ui$MenuButton);goog$ui$Select.prototype.selectionModel_=null;goog$ui$Select.prototype.defaultCaption_=null;goog$ui$Select.prototype.enterDocument=function(){goog$ui$Select.superClass_.enterDocument.call(this);this.updateCaption();this.listenToSelectionModelEvents_();goog$dom$a11y$setState(this.getElement(),"haspopup","false")};
goog$ui$Select.prototype.decorateInternal=function(a){goog$ui$Select.superClass_.decorateInternal.call(this,a);(a=this.getCaption())?this.setDefaultCaption(a):this.setSelectedIndex(0)};goog$ui$Select.prototype.disposeInternal=function(){goog$ui$Select.superClass_.disposeInternal.call(this);this.selectionModel_&&(this.selectionModel_.dispose(),this.selectionModel_=null);this.defaultCaption_=null};
goog$ui$Select.prototype.handleMenuAction=function(a){this.setSelectedItem(a.target);goog$ui$Select.superClass_.handleMenuAction.call(this,a);a.stopPropagation();this.dispatchEvent("action")};goog$ui$Select.prototype.handleSelectionChange=function(){var a=this.getSelectedItem();goog$ui$Select.superClass_.setValue.call(this,a&&a.getValue());this.updateCaption()};
goog$ui$Select.prototype.setMenu=function(a){var b=goog$ui$Select.superClass_.setMenu.call(this,a);a!=b&&(this.selectionModel_&&this.selectionModel_.clear(),a&&(this.selectionModel_?a.forEachChild(function(a){this.setCorrectAriaRole_(a);this.selectionModel_.addItem(a)},this):this.createSelectionModel_(a)));return b};goog$ui$Select.prototype.getDefaultCaption=function(){return this.defaultCaption_};goog$ui$Select.prototype.setDefaultCaption=function(a){this.defaultCaption_=a;this.updateCaption()};
goog$ui$Select.prototype.addItem=function(a){this.setCorrectAriaRole_(a);goog$ui$Select.superClass_.addItem.call(this,a);this.selectionModel_?this.selectionModel_.addItem(a):this.createSelectionModel_(this.getMenu())};goog$ui$Select.prototype.addItemAt=function(a,b){this.setCorrectAriaRole_(a);goog$ui$Select.superClass_.addItemAt.call(this,a,b);this.selectionModel_?this.selectionModel_.addItemAt(a,b):this.createSelectionModel_(this.getMenu())};
goog$ui$Select.prototype.removeItem=function(a){goog$ui$Select.superClass_.removeItem.call(this,a);this.selectionModel_&&this.selectionModel_.removeItem(a)};goog$ui$Select.prototype.setSelectedItem=function(a){if(this.selectionModel_){var b=this.getSelectedItem();this.selectionModel_.setSelectedItem(a);a!=b&&this.dispatchEvent("change")}};goog$ui$Select.prototype.setSelectedIndex=function(a){this.selectionModel_&&this.setSelectedItem(this.selectionModel_.getItemAt(a))};
goog$ui$Select.prototype.setValue=function(a){if(null!=a&&this.selectionModel_)for(var b=0,c;c=this.selectionModel_.getItemAt(b);b++)if(c&&"function"==typeof c.getValue&&c.getValue()==a){this.setSelectedItem(c);return}this.setSelectedItem(null)};goog$ui$Select.prototype.getSelectedItem=function(){return this.selectionModel_?this.selectionModel_.getSelectedItem():null};goog$ui$Select.prototype.getSelectedIndex=function(){return this.selectionModel_?this.selectionModel_.getSelectedIndex():-1};
goog$ui$Select.prototype.createSelectionModel_=function(a){this.selectionModel_=new goog$ui$SelectionModel;a&&a.forEachChild(function(a){this.setCorrectAriaRole_(a);this.selectionModel_.addItem(a)},this);this.listenToSelectionModelEvents_()};goog$ui$Select.prototype.listenToSelectionModelEvents_=function(){this.selectionModel_&&this.getHandler().listen(this.selectionModel_,"select",this.handleSelectionChange)};
goog$ui$Select.prototype.updateCaption=function(){var a=this.getSelectedItem();this.setContent(a?a.getCaption():this.defaultCaption_)};goog$ui$Select.prototype.setCorrectAriaRole_=function(a){a.setPreferredAriaRole(a instanceof goog$ui$MenuItem?"option":"separator")};goog$ui$Select.prototype.setOpen=function(a,b){goog$ui$Select.superClass_.setOpen.call(this,a,b);this.isOpen()&&this.getMenu().setHighlightedIndex(this.getSelectedIndex())};goog$ui$registry$setDecoratorByClassName("goog-select",function(){return new goog$ui$Select(null)});var jfk$Select=function(a,b,c){goog$ui$Select.call(this,a,b,goog$ui$FlatMenuButtonRenderer.getInstance(),c);this.prefixTracker_=new jfk$Select$PrefixTracker_(1E3)};goog$inherits(jfk$Select,goog$ui$Select);jfk$Select.prototype.createDom=function(){jfk$Select.superClass_.createDom.call(this);goog$dom$classes$add(this.getElement(),"jfk-select")};
jfk$Select.prototype.positionMenu=function(){if(this.getMenu().isInDocument()){var a=this.getElement(),b=goog$style$getClientPosition(a),c=this.getDomHelper().getViewportSize(),d=this.isAlignMenuToStart()?4:6,e=this.getMenu().getElement();this.getMenu().isVisible()||(e.style.visibility="hidden",goog$style$showElement(e,!0));this.isScrollOnOverflow()&&(e.style.overflowY="visible",e.style.height="auto");var f=Math.max(this.getSelectedIndex(),0),g=(f=this.getMenu().getChildAt(f))?f.getElement().offsetTop:
0,g=b.y-g;Math.min(Math.max(b.y,0),c.height)==b.y&&(g=Math.min(Math.max(g,2),c.height-2));b=new goog$math$Coordinate(0,g-b.y);c=this.isAlignMenuToStart()?4:6;goog$positioning$positionAtAnchor(a,d,e,c,b,null,65|(this.isScrollOnOverflow()?32:132),null);this.isScrollOnOverflow()&&(e.style.overflowY="auto",a=e.scrollTop+(goog$style$getClientPosition(f.getElement()).y-goog$style$getClientPosition(this.getElement()).y),e.scrollTop=a);this.getMenu().isVisible()||(goog$style$showElement(e,!1),e.style.visibility=
"visible")}};
jfk$Select.prototype.handleKeyEventInternal=function(a){var b=jfk$Select.superClass_.handleKeyEventInternal.call(this,a);return"key"!=a.type||!this.getMenu()?b:!this.isOpen()&&32==a.keyCode?(this.prefixTracker_.resetPrefix(),b):b?(this.isOpen()&&(38==a.keyCode||40==a.keyCode)&&this.ensureHighlightedItemIsVisible_(),!0):(b=goog$events$KeyCodes$isCharacterKey(a.keyCode))?(b=goog$events$KeyNames[a.keyCode],32==a.keyCode&&(b=" "),this.prefixTracker_.add(b),a=this.prefixTracker_.getCurrentPrefix(),this.prefixTracker_.isCycling()?
this.findNextPrefix_(b,!1):(b=1<a.length,this.findNextPrefix_(a,b)),!0):!1};
jfk$Select.prototype.ensureHighlightedItemIsVisible_=function(){var a=this.getMenu().getHighlighted();if(a){var b=a.getElement(),a=this.getMenu().getContentElement(),c=b,d=a,e=goog$style$getPageOffset(c),f=goog$style$getPageOffset(d),g=goog$style$getBorderBox(d),b=e.x-f.x-g.left,e=e.y-f.y-g.top,f=d.clientWidth-c.offsetWidth,c=d.clientHeight-c.offsetHeight,g=d.scrollLeft,d=d.scrollTop,g=g+Math.min(b,Math.max(b-f,0)),d=d+Math.min(e,Math.max(e-c,0)),b=new goog$math$Coordinate(g,d);a.scrollLeft=b.x;a.scrollTop=
b.y}};jfk$Select.prototype.findNextPrefix_=function(a,b){var c=this.isOpen()?this.getMenu().getHighlightedIndex():this.getSelectedIndex(),d=RegExp("^"+goog$string$regExpEscape(a),"i");b||++c;for(var c=0>c?0:c,e=this.getMenu(),f=0,g=e.getChildCount();f<g;++f){var h=(c+f)%g,i=e.getChildAt(h),j=i.getCaption();if(i.isEnabled()&&j&&d.test(j)){this.setSelectedOrHighlightedIndex_(h);break}}};
jfk$Select.prototype.setSelectedOrHighlightedIndex_=function(a){this.isOpen()?(this.getMenu().setHighlightedIndex(a),this.ensureHighlightedItemIsVisible_()):this.setSelectedIndex(a)};var jfk$Select$PrefixTracker_=function(a){this.delay_=new goog$async$Delay(this.resetPrefix,a,this)};jfk$Select$PrefixTracker_.prototype.add=function(a){goog$asserts$assert(1==a.length,"nextLetter must be a single character");a==this.currentPrefix_?this.cycling_=!0:this.cycling_||(this.currentPrefix_+=a);this.delay_.start()};
jfk$Select$PrefixTracker_.prototype.getCurrentPrefix=function(){return this.currentPrefix_};jfk$Select$PrefixTracker_.prototype.isCycling=function(){return this.cycling_};jfk$Select$PrefixTracker_.prototype.resetPrefix=function(){this.currentPrefix_="";this.cycling_=!1};jfk$Select$PrefixTracker_.prototype.cycling_=!1;jfk$Select$PrefixTracker_.prototype.currentPrefix_="";G_bubble=null;G_showInfoBubble=function(a,b){G_bubble&&goog$dispose(G_bubble);G_bubble=new jfk$Bubble;G_bubble.setAnchorElement(a);G_bubble.showCloseButton(!1);G_bubble.setContent(b);G_bubble.setPosition(0,0,void 0,-15);G_bubble.render();G_bubble.setVisible(!0)};G_hideInfoBubble=function(){G_bubble&&(goog$dispose(G_bubble),G_bubble=null)};G_isBubbleVisible=function(){return G_bubble?G_bubble.isVisible():!1};
G_ratePasswdReq=function(a,b,c,d,e,f){var b=escape(b),g=new gaia$ajax$XmlHttpFormRequest;g.parameters.Passwd=b;g.parameters.Email=c;g.parameters.FirstName=d;g.parameters.LastName=e;g.parameters.Birthday=f;g.oncomplete=function(b){a(b.text)};g.send("RatePassword")};G_validateInput=function(a,b,c,d){var e=new gaia$ajax$XmlHttpFormRequest,f={},g="InputValidator?resource=signup";d&&(g=g+"&service="+d);f.input01=a;f.Locale=c||"en_US";e.oncomplete=b;e.sendJson(g,(new goog$json$Serializer(void 0)).serialize(f))};
G_renderJfkDropdown=function(a,b,c){var d=new jfk$Select(b);d.setRenderMenuAsSibling(!0);var e=document.createElement("input");e.type="hidden";e.name=c;e.id="Hidden"+c;d.render(a);a.appendChild(e);d.addEventListener("change",function(){e.value=d.getSelectedItem().getValue()},!1);return d};G_addMenuItem=function(a,b,c,d){b=a.addItem(new goog$ui$MenuItem(b,c));d&&a.setSelectedItem(b);return b};
G_setSelectedValue=function(a,b,c){for(var d=a.getMenu().getItems(),e=0;e<d.length;e++)if(d[e].getValue()==b){a.setSelectedIndex(e);var f=document.getElementById("Hidden"+c);f&&(f.value=d[e].getValue())}};var goog$events$InputHandler=function(a){this.element_=a;this.inputEventEmulation_=goog$userAgent$IE||goog$userAgent$WEBKIT&&!goog$userAgent$isVersion("531")&&"TEXTAREA"==a.tagName;this.eventHandler_=new goog$events$EventHandler(this);this.eventHandler_.listen(this.element_,this.inputEventEmulation_?["keydown","paste","cut","drop"]:"input",this)};goog$inherits(goog$events$InputHandler,goog$events$EventTarget);goog$events$InputHandler.prototype.timer_=null;
goog$events$InputHandler.prototype.handleEvent=function(a){if(this.inputEventEmulation_){if("keydown"!=a.type||goog$events$KeyCodes$isTextModifyingKeyEvent(a)){var b="keydown"==a.type?this.element_.value:null;goog$userAgent$IE&&229==a.keyCode&&(b=null);var c=this.createInputEvent_(a);this.cancelTimerIfSet_();this.timer_=goog$Timer$callOnce(function(){this.timer_=null;this.element_.value!=b&&this.dispatchAndDisposeEvent_(c)},0,this)}}else(!goog$userAgent$OPERA||this.element_==goog$dom$getOwnerDocument(this.element_).activeElement)&&
this.dispatchAndDisposeEvent_(this.createInputEvent_(a))};goog$events$InputHandler.prototype.cancelTimerIfSet_=function(){null!=this.timer_&&(goog$Timer$defaultTimerObject.clearTimeout(this.timer_),this.timer_=null)};goog$events$InputHandler.prototype.createInputEvent_=function(a){a=new goog$events$BrowserEvent(a.getBrowserEvent());a.type="input";return a};goog$events$InputHandler.prototype.dispatchAndDisposeEvent_=function(a){try{this.dispatchEvent(a)}finally{a.dispose()}};
goog$events$InputHandler.prototype.disposeInternal=function(){goog$events$InputHandler.superClass_.disposeInternal.call(this);this.eventHandler_.dispose();this.cancelTimerIfSet_();delete this.element_};var talk$media$phone$Countries$Country={af:{code:"93",name:"Afghanistan",imgPosition:"-2311px"},al:{code:"355",name:"Albania",imgPosition:"-1034px"},dz:{code:"213",name:"Algeria",imgPosition:"-528px"},as:{code:"1684",name:"American Samoa",imgPosition:"-1562px"},ad:{code:"376",name:"Andorra",imgPosition:"-594px"},ao:{code:"244",name:"Angola",imgPosition:"-1947px"},ai:{code:"1264",name:"Anguilla",imgPosition:"-1980px"},ag:{code:"1268",name:"Antigua and Barbuda",imgPosition:"-869px"},ar:{code:"54",name:"Argentina",
imgPosition:"-2377px"},am:{code:"374",name:"Armenia",imgPosition:"-176px"},aw:{code:"297",name:"Aruba",imgPosition:"-792px"},au:{code:"61",name:"Australia",imgPosition:"-1716px"},at:{code:"43",name:"Austria",imgPosition:"-1331px"},az:{code:"994",name:"Azerbaijan",imgPosition:"-1243px"},bs:{code:"1242",name:"Bahamas",imgPosition:"-363px"},bh:{code:"973",name:"Bahrain",imgPosition:"-1496px"},bd:{code:"880",name:"Bangladesh",imgPosition:"-1771px"},bb:{code:"1246",name:"Barbados",imgPosition:"-1573px"},
by:{code:"375",name:"Belarus",imgPosition:"-1100px"},be:{code:"32",name:"Belgium",imgPosition:"0"},bz:{code:"501",name:"Belize",imgPosition:"-484px"},bj:{code:"229",name:"Benin",imgPosition:"-1298px"},bm:{code:"1441",name:"Bermuda",imgPosition:"-1914px"},bt:{code:"975",name:"Bhutan",imgPosition:"-1848px"},bo:{code:"591",name:"Bolivia",imgPosition:"-1650px"},ba:{code:"387",name:"Bosnia and Herzegovina",imgPosition:"-1584px"},bw:{code:"267",name:"Botswana",imgPosition:"-2707px"},br:{code:"55",name:"Brazil",
imgPosition:"-770px"},bn:{code:"673",name:"Brunei",imgPosition:"-1683px"},bg:{code:"359",name:"Bulgaria",imgPosition:"-2586px"},bf:{code:"226",name:"Burkina Faso",imgPosition:"-726px"},bi:{code:"257",name:"Burundi",imgPosition:"-1892px"},kh:{code:"855",name:"Cambodia",imgPosition:"-242px"},cm:{code:"237",name:"Cameroon",imgPosition:"-2057px"},ca:{code:"1",name:"Canada",imgPosition:"-1375px"},cv:{code:"238",name:"Cape Verde",imgPosition:"-2652px"},ky:{code:"1345",name:"Cayman Islands",imgPosition:"-308px"},
cf:{code:"236",name:"Central African Republic",imgPosition:"-1837px"},td:{code:"235",name:"Chad",imgPosition:"-814px"},cl:{code:"56",name:"Chile",imgPosition:"-1342px"},cn:{code:"86",name:"China",imgPosition:"-825px"},co:{code:"57",name:"Colombia",imgPosition:"-330px"},km:{code:"269",name:"Comoros and Mayotte",imgPosition:"-1430px"},cg:{code:"242",name:"Congo",imgPosition:"-1793px"},cd:{code:"243",name:"Congo Dem Rep",imgPosition:"-1518px"},cr:{code:"506",name:"Costa Rica",imgPosition:"-2090px"},
ci:{code:"225",name:"Cote d'Ivoire",imgPosition:"-1661px"},hr:{code:"385",name:"Croatia",imgPosition:"-902px"},cu:{code:"53",name:"Cuba",imgPosition:"-748px"},cy:{code:"357",name:"Cyprus",imgPosition:"-561px"},cz:{code:"420",name:"Czech Republic",imgPosition:"-2256px"},dk:{code:"45",name:"Denmark",imgPosition:"-1386px"},dj:{code:"253",name:"Djibouti",imgPosition:"-2101px"},dm:{code:"1767",name:"Dominica",imgPosition:"-2432px"},"do":{code:"1809",name:"Dominican Republic",imgPosition:"-1529px"},ec:{code:"593",
name:"Ecuador",imgPosition:"-1188px"},eg:{code:"20",name:"Egypt",imgPosition:"-2201px"},sv:{code:"503",name:"El Salvador",imgPosition:"-1639px"},gq:{code:"240",name:"Equatorial Guinea",imgPosition:"-1507px"},er:{code:"291",name:"Eritrea",imgPosition:"-715px"},ee:{code:"372",name:"Estonia",imgPosition:"-2410px"},et:{code:"251",name:"Ethiopia",imgPosition:"-2443px"},fo:{code:"298",name:"Faroe Islands",imgPosition:"-1111px"},fj:{code:"679",name:"Fiji",imgPosition:"-1859px"},fi:{code:"358",name:"Finland",
imgPosition:"-1903px"},fr:{code:"33",name:"France",imgPosition:"-1012px"},gf:{code:"594",name:"French Guiana",imgPosition:"-2234px"},pf:{code:"689",name:"French Polynesia",imgPosition:"-1705px"},ga:{code:"241",name:"Gabon",imgPosition:"-880px"},gm:{code:"220",name:"Gambia",imgPosition:"-627px"},ge:{code:"995",name:"Georgia",imgPosition:"-858px"},de:{code:"49",name:"Germany",imgPosition:"-2509px"},gh:{code:"233",name:"Ghana",imgPosition:"-2112px"},gi:{code:"350",name:"Gibraltar",imgPosition:"-275px"},
gr:{code:"30",name:"Greece",imgPosition:"-165px"},gl:{code:"299",name:"Greenland",imgPosition:"-1760px"},gd:{code:"1473",name:"Grenada",imgPosition:"-2399px"},gp:{code:"590",name:"Guadeloupe",imgPosition:"-407px"},gu:{code:"1671",name:"Guam",imgPosition:"-2366px"},gt:{code:"502",name:"Guatemala",imgPosition:"-935px"},gn:{code:"224",name:"Guinea",imgPosition:"-2575px"},gw:{code:"245",name:"Guinea Bissau",imgPosition:"-1925px"},gy:{code:"592",name:"Guyana",imgPosition:"-803px"},ht:{code:"509",name:"Haiti",
imgPosition:"-319px"},hn:{code:"504",name:"Honduras",imgPosition:"-2156px"},hk:{code:"852",name:"Hong Kong",imgPosition:"-2696px"},hu:{code:"36",name:"Hungary",imgPosition:"-682px"},is:{code:"354",name:"Iceland",imgPosition:"-1991px"},"in":{code:"91",name:"India",imgPosition:"-1694px"},id:{code:"62",name:"Indonesia",imgPosition:"-1958px"},ir:{code:"98",name:"Iran",imgPosition:"-2013px"},iq:{code:"964",name:"Iraq",imgPosition:"-649px"},ie:{code:"353",name:"Ireland",imgPosition:"-1969px"},il:{code:"972",
name:"Israel",imgPosition:"-341px"},it:{code:"39",name:"Italy",imgPosition:"-143px"},jm:{code:"1876",name:"Jamaica",imgPosition:"-1727px"},jp:{code:"81",name:"Japan",imgPosition:"-429px"},jo:{code:"962",name:"Jordan",imgPosition:"-1463px"},kz:{code:"7",name:"Kazakhstan",imgPosition:"-1210px"},ke:{code:"254",name:"Kenya",imgPosition:"-2630px"},kp:{code:"82",name:"Korea, North",imgPosition:"-1804px"},kr:{code:"82",name:"Korea, South",imgPosition:"-2245px"},kw:{code:"965",name:"Kuwait",imgPosition:"-2487px"},
kg:{code:"996",name:"Kyrgyzstan",imgPosition:"-1617px"},la:{code:"856",name:"Laos",imgPosition:"-451px"},lv:{code:"371",name:"Latvia",imgPosition:"-1936px"},lb:{code:"961",name:"Lebanon",imgPosition:"-1254px"},ls:{code:"266",name:"Lesotho",imgPosition:"-2190px"},lr:{code:"231",name:"Liberia",imgPosition:"-2068px"},ly:{code:"218",name:"Libya",imgPosition:"-132px"},li:{code:"423",name:"Liechtenstein",imgPosition:"-979px"},lt:{code:"370",name:"Lithuania",imgPosition:"-1122px"},lu:{code:"352",name:"Luxembourg",
imgPosition:"-1474px"},mo:{code:"853",name:"Macao",imgPosition:"-2597px"},mk:{code:"389",name:"Macedonia",imgPosition:"-1353px"},mg:{code:"261",name:"Madagascar",imgPosition:"-1287px"},mw:{code:"265",name:"Malawi",imgPosition:"-2145px"},my:{code:"60",name:"Malaysia",imgPosition:"-1870px"},mv:{code:"960",name:"Maldives",imgPosition:"-616px"},ml:{code:"223",name:"Mali",imgPosition:"-2520px"},mt:{code:"356",name:"Malta",imgPosition:"-1551px"},mh:{code:"692",name:"Marshall Islands",imgPosition:"-1144px"},
mq:{code:"596",name:"Martinique",imgPosition:"-198px"},mr:{code:"222",name:"Mauritania",imgPosition:"-253px"},mu:{code:"230",name:"Mauritius",imgPosition:"-2179px"},mx:{code:"52",name:"Mexico",imgPosition:"-2024px"},fm:{code:"691",name:"Micronesia",imgPosition:"-1738px"},md:{code:"373",name:"Moldova",imgPosition:"-2685px"},mc:{code:"377",name:"Monaco",imgPosition:"-913px"},mn:{code:"976",name:"Mongolia",imgPosition:"-2553px"},me:{code:"382",name:"Montenegro",imgPosition:"-2167px"},ms:{code:"1664",
name:"Montserrat",imgPosition:"-583px"},ma:{code:"212",name:"Morocco",imgPosition:"-2333px"},mz:{code:"258",name:"Mozambique",imgPosition:"-638px"},mm:{code:"95",name:"Myanmar",imgPosition:"-11px"},na:{code:"264",name:"Namibia",imgPosition:"-1881px"},nr:{code:"674",name:"Nauru",imgPosition:"-1749px"},np:{code:"977",name:"Nepal",imgPosition:"-110px"},nl:{code:"31",name:"Netherlands",imgPosition:"-1441px"},an:{code:"599",name:"Netherlands Antilles",imgPosition:"-220px"},nc:{code:"687",name:"New Caledonia",
imgPosition:"-1276px"},nz:{code:"64",name:"New Zealand",imgPosition:"-1540px"},ni:{code:"505",name:"Nicaragua",imgPosition:"-154px"},ne:{code:"227",name:"Niger",imgPosition:"-550px"},ng:{code:"234",name:"Nigeria",imgPosition:"-2476px"},nf:{code:"6723",name:"Norfolk Island",imgPosition:"-209px"},mp:{code:"1",name:"Northern Mariana Islands",imgPosition:"-704px"},no:{code:"47",name:"Norway",imgPosition:"-836px"},om:{code:"968",name:"Oman",imgPosition:"-2454px"},pk:{code:"92",name:"Pakistan",imgPosition:"-2035px"},
pw:{code:"680",name:"Palau",imgPosition:"-231px"},ps:{code:"970",name:"Palestinian Territories",imgPosition:"-1199px"},pa:{code:"507",name:"Panama",imgPosition:"-847px"},py:{code:"595",name:"Paraguay",imgPosition:"-2344px"},pe:{code:"51",name:"Peru",imgPosition:"-946px"},pg:{code:"63",name:"Papua New Guinea",imgPosition:"-1485px"},ph:{code:"63",name:"Philippines",imgPosition:"-1815px"},pl:{code:"48",name:"Poland",imgPosition:"-1177px"},pt:{code:"351",name:"Portugal",imgPosition:"-517px"},pr:{code:"1787",
name:"Puerto Rico",imgPosition:"-473px"},qa:{code:"974",name:"Qatar",imgPosition:"-462px"},re:{code:"262",name:"Reunion",imgPosition:"-264px"},ro:{code:"40",name:"Romania",imgPosition:"-671px"},ru:{code:"7",name:"Russia",imgPosition:"-660px"},rw:{code:"250",name:"Rwanda",imgPosition:"-2674px"},kn:{code:"1869",name:"Saint Kitts and Nevis",imgPosition:"-99px"},lc:{code:"1758",name:"Saint Lucia",imgPosition:"-1397px"},pm:{code:"508",name:"Saint Pierre and Miquelon",imgPosition:"-1078px"},vc:{code:"1784",
name:"Saint Vincent Grenadines",imgPosition:"-2619px"},sm:{code:"378",name:"San Marino",imgPosition:"-2123px"},sa:{code:"966",name:"Saudi Arabia",imgPosition:"-33px"},sn:{code:"221",name:"Senegal",imgPosition:"-2134px"},rs:{code:"381",name:"Serbia",imgPosition:"-2465px"},sc:{code:"248",name:"Seychelles",imgPosition:"-1045px"},sl:{code:"232",name:"Sierra Leone",imgPosition:"-737px"},sg:{code:"65",name:"Singapore",imgPosition:"-22px"},sk:{code:"421",name:"Slovakia",imgPosition:"-2212px"},si:{code:"386",
name:"Slovenia",imgPosition:"-1221px"},so:{code:"252",name:"Somalia",imgPosition:"-1364px"},za:{code:"27",name:"South Africa",imgPosition:"-2355px"},es:{code:"34",name:"Spain",imgPosition:"-1155px"},lk:{code:"94",name:"Sri Lanka",imgPosition:"-2641px"},sd:{code:"249",name:"Sudan",imgPosition:"-352px"},sr:{code:"597",name:"Suriname",imgPosition:"-2663px"},sz:{code:"268",name:"Swaziland",imgPosition:"-2278px"},se:{code:"46",name:"Sweden",imgPosition:"-385px"},ch:{code:"41",name:"Switzerland",imgPosition:"-1320px"},
sy:{code:"963",name:"Syria",imgPosition:"-1826px"},tw:{code:"886",name:"Taiwan",imgPosition:"-506px"},tj:{code:"992",name:"Tajikistan",imgPosition:"-187px"},tz:{code:"255",name:"Tanzania",imgPosition:"-2289px"},th:{code:"66",name:"Thailand",imgPosition:"-957px"},tg:{code:"228",name:"Togo",imgPosition:"-605px"},to:{code:"676",name:"Tonga",imgPosition:"-1089px"},tt:{code:"1868",name:"Trinidad and Tobago",imgPosition:"-440px"},tn:{code:"216",name:"Tunisia",imgPosition:"-539px"},tr:{code:"90",name:"Turkey",
imgPosition:"-1606px"},tm:{code:"993",name:"Turkmenistan",imgPosition:"-2542px"},tc:{code:"1649",name:"Turks and Caicos",imgPosition:"-1309px"},tv:{code:"688",name:"Tuvalu",imgPosition:"-286px"},ug:{code:"256",name:"Uganda",imgPosition:"-1166px"},ua:{code:"380",name:"Ukraine",imgPosition:"-2002px"},ae:{code:"971",name:"United Arab Emirates",imgPosition:"-2223px"},gb:{code:"44",name:"United Kingdom",imgPosition:"-55px"},uy:{code:"598",name:"Uruguay",imgPosition:"-2608px"},us:{code:"1",name:"United States",
imgPosition:"-44px"},uz:{code:"998",name:"Uzbekistan",imgPosition:"-1001px"},vu:{code:"678",name:"Vanuatu",imgPosition:"-1265px"},ve:{code:"58",name:"Venezuela",imgPosition:"-1056px"},vn:{code:"84",name:"Vietnam",imgPosition:"-968px"},vg:{code:"1284",name:"Virgin Islands, British",imgPosition:"-1408px"},vi:{code:"1340",name:"Virgin Islands, US",imgPosition:"-1782px"},ws:{code:"685",name:"Samoa",imgPosition:"-2300px"},ye:{code:"967",name:"Yemen",imgPosition:"-1672px"},zm:{code:"260",name:"Zambia",
imgPosition:"-1595px"},zw:{code:"263",name:"Zimbabwe",imgPosition:"-2046px"}},talk$media$phone$Countries$makeCountryData=function(a){for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.countryCode.toLowerCase(),f=talk$media$phone$Countries$Country[e];f&&(b[e]={code:f.code,imgPosition:f.imgPosition,name:d.name||f.name,label:d.label})}return b};var talk$media$phone$SelectCountry=function(a,b,c,d){goog$ui$Select.call(this,"",void 0,talk$media$phone$SelectCountryRenderer.getInstance(),b);this.countryData_=c||talk$media$phone$Countries$Country;this.sortedCountryCodes_=d;this.frequentlyCalledCountries_=this.sanitize_(a||[]);this.defaultCountry_=this.frequentlyCalledCountries_[0]||"us";this.callCodes_={};this.menuSeparator_=new goog$ui$MenuSeparator(this.dom_);this.init_(this.frequentlyCalledCountries_)};
goog$inherits(talk$media$phone$SelectCountry,goog$ui$Select);talk$media$phone$SelectCountry.prototype.sanitize_=function(a){if(null==a)return[];var b=this.countryData_;return(a=goog$array$filter(a,function(a){return!!b[a]}))||[]};
talk$media$phone$SelectCountry.prototype.enterDocument=function(){talk$media$phone$SelectCountry.superClass_.enterDocument.call(this);var a=this.getRenderer().getCssClass()+"-menu";goog$dom$classes$add(this.getMenu().getElement(),a);this.getHandler().listen(this,"show",function(){this.getHandler().listen(this.getElement(),"keydown",this.handleKeyDown_)});this.getHandler().listen(this,"hide",function(){this.getHandler().unlisten(this.getElement(),"keydown",this.handleKeyDown_)});this.updateCountryTitle()};
talk$media$phone$SelectCountry.prototype.handleKeyDown_=function(a){if(13!=a.keyCode){var b=goog$events$KeyNames[a.keyCode];this.getMenu().highlightNextPrefix(b);b=this.getMenu().getHighlighted();this.getMenu().getElement().scrollTop=b.getElement().offsetTop;a.stopPropagation();a.preventDefault()}};talk$media$phone$SelectCountry.prototype.getDefaultCountry=function(){return this.defaultCountry_};
talk$media$phone$SelectCountry.prototype.updateCaption=function(){var a=this.getSelectedItem();if(a=a?a.getValue():this.getDefaultCaption()){var a=this.countryData_[a].imgPosition,b=this.dom_.createDom("div",{"class":"talk-flag"});b.style.backgroundPosition="0 "+a;this.setContent(b)}};talk$media$phone$SelectCountry.prototype.getCallingCode=function(){var a=this.getValue(),a=this.countryData_[a];return a.code};talk$media$phone$SelectCountry.prototype.getCountryCode=function(){return this.getValue()};
talk$media$phone$SelectCountry.prototype.getCallingCodeFor=function(a){var b=/\+((((\d)\d?)\d?)\d?)/;if(a=b.exec(a)){if(this.callCodes_[a[1]])return a[1];if(this.callCodes_[a[2]])return a[2];if(this.callCodes_[a[3]])return a[3];if(this.callCodes_[a[4]])return a[4]}return null};
talk$media$phone$SelectCountry.prototype.init_=function(a){this.addItem(this.menuSeparator_);this.updateFrequentlyCalledCountries(a);a=this.sortedCountryCodes_;if(!a){var b=this.countryData_,a=goog$object$getKeys(b);goog$array$sort(a,function(a,d){var e=b[a],f=b[d];return e.name>f.name?1:-1})}goog$array$forEach(a,function(a){var b=this.addMenuItem_(a);b&&(this.callCodes_[b.code]=a)},this);this.callCodes_["1"]="us";a=this.countryData_[this.defaultCountry_];this.callCodes_[a.code]=this.defaultCountry_;
this.setValue(this.defaultCountry_)};talk$media$phone$SelectCountry.prototype.handleSelectionChange=function(a){talk$media$phone$SelectCountry.superClass_.handleSelectionChange.call(this,a);this.updateCountryTitle()};talk$media$phone$SelectCountry.prototype.updateCountryTitle=function(){if(this.getValue()){var a=this.countryData_[this.getValue()],b=this.getElement();b&&(a.label?b.title=a.label:(a="Country Code: "+(a.name+(" (+"+(a.code+")"))),b.title=a))}};
talk$media$phone$SelectCountry.prototype.addMenuItem_=function(a,b){var c=this.countryData_[a];if(!c)return null;var d=this.createMenuItem_(a,c);void 0!==b?this.addItemAt(d,b):this.addItem(d);return c};
talk$media$phone$SelectCountry.prototype.createMenuItem_=function(a,b){var c=this.getRenderer().getCssClass(),d=this.dom_.createDom("div",{"class":"talk-flag"});d.style.backgroundPosition="0 "+b.imgPosition;c=this.dom_.createDom("div",{},this.dom_.createDom("div",{"class":"goog-inline-block"},d),this.dom_.createDom("span",{"class":c+"-name"},b.name),this.dom_.createDom("span",{"class":c+"-code",dir:"ltr"},"+"+b.code));return c=new goog$ui$MenuItem(c,a,this.dom_)};
talk$media$phone$SelectCountry.prototype.updateFrequentlyCalledCountries=function(a){if(a){var b=this.getSelectedItem(),c;c=b&&b.getValue()?b.getValue():this.defaultCountry_;this.frequentlyCalledCountries_=this.sanitize_(a);for(b=this.getItemAt(0);b&&b!=this.menuSeparator_;)this.removeItem(b),b=this.getItemAt(0);a=this.frequentlyCalledCountries_;a.unshift(this.defaultCountry_);goog$array$removeDuplicates(a);goog$array$forEachRight(a,function(a){this.addMenuItem_(a,0)},this);this.setValue(c)}};
talk$media$phone$SelectCountry.prototype.updateDisplayForCallingCode=function(a){null!=a?a!=this.getCallingCode()&&(a=this.callCodes_[a],this.setValue(a),this.updateCountryTitle()):(this.setValue(this.getDefaultCountry()),this.updateCountryTitle())};var talk$media$phone$SelectCountryRenderer=function(){};goog$inherits(talk$media$phone$SelectCountryRenderer,goog$ui$FlatMenuButtonRenderer);goog$addSingletonGetter(talk$media$phone$SelectCountryRenderer);
talk$media$phone$SelectCountryRenderer.prototype.getCssClass=function(){return"talk-select-country"};var talk$media$phone$NumberInput=function(a,b,c,d){goog$ui$Component.call(this,b);this.countrySelect_=new talk$media$phone$SelectCountry(a,this.getDomHelper(),c,d)};goog$inherits(talk$media$phone$NumberInput,goog$ui$Component);talk$media$phone$NumberInput.prototype.disposeInternal=function(){talk$media$phone$NumberInput.superClass_.dispose.call(this);goog$dispose(this.countrySelect_);goog$dispose(this.inputHandler_);this.numberInput_=null};
talk$media$phone$NumberInput.prototype.decorateInternal=function(a){this.numberInput_=a;var b=this.dom_.createDom("th",{"class":"talk_number_input-menu"}),c=this.dom_.createDom("td",{"class":"talk_number_input-input"}),d=this.dom_.createDom("table",{"class":"talk_number_input"},this.dom_.createDom("tbody",{},this.dom_.createDom("tr",{},b,c)));talk$media$phone$NumberInput.superClass_.decorateInternal.call(this,d);this.dom_.replaceNode(d,a);this.dom_.appendChild(c,a);this.countrySelect_.render(b)};
talk$media$phone$NumberInput.prototype.enterDocument=function(){talk$media$phone$NumberInput.superClass_.enterDocument.call(this);this.inputHandler_=new goog$events$InputHandler(this.numberInput_);this.getHandler().listen(this.countrySelect_,"action",this.handleCountrySelect_);this.getHandler().listen(this.inputHandler_,"input",function(){this.checkInputCountry()})};
talk$media$phone$NumberInput.prototype.handleCountrySelect_=function(){this.updateCountryTitle();var a=this.getEnteredCode_(),b=this.numberInput_.value,c=goog$string$buildString("+",this.getCallingCode());null==a?this.getCountryCode()!=this.countrySelect_.getDefaultCountry()&&(this.numberInput_.value=goog$string$buildString(c," ",b)):this.numberInput_.value=this.getCountryCode()==this.countrySelect_.getDefaultCountry()?goog$string$trim(b.replace("+"+a,"")):b.replace("+"+a,c);this.numberInput_.focus();
if(a=goog$dom$selection){a:{a=this.numberInput_;c=b=0;if(goog$dom$selection$useSelectionProperties_(a))b=a.selectionStart,c=a.selectionEnd;else if(goog$userAgent$IE){var d;d=a;var e=d.ownerDocument||d.document,f=e.selection.createRange();"textarea"==d.type?(e=e.body.createTextRange(),e.moveToElementText(d)):e=d.createTextRange();d=[e,f];f=d[0];d=d[1];if(f.inRange(d)){f.setEndPoint("EndToStart",d);if("textarea"==a.type){var a=f,b=!1,c=d.duplicate(),g=a.text;d=g;for(var e=f=c.text,h=!1;!h;)0==a.compareEndPoints("StartToEnd",
a)?h=!0:(a.moveEnd("character",-1),a.text==g?d+="\r\n":h=!0);if(b)a=[d.length,-1];else{for(a=!1;!a;)0==c.compareEndPoints("StartToEnd",c)?a=!0:(c.moveEnd("character",-1),c.text==f?e+="\r\n":a=!0);a=[d.length,d.length+e.length]}break a}b=f.text.length;c=f.text.length+d.text.length}}a=[b,c]}a=0==a[1]&&goog$userAgent$IE}a&&(a=this.numberInput_,b=this.numberInput_.value.length,goog$dom$selection$useSelectionProperties_(a)?(a.selectionStart=b,a.selectionEnd=b):goog$userAgent$IE&&("textarea"==a.type&&(b=
a.value.substring(0,b),b=b.replace(/(\r\n|\r|\n)/g,"\n").length),a=a.createTextRange(),a.collapse(!0),a.move("character",b),a.select()))};talk$media$phone$NumberInput.prototype.updateCountryTitle=function(){this.countrySelect_.updateCountryTitle()};talk$media$phone$NumberInput.prototype.getCallingCode=function(){return this.countrySelect_.getCallingCode()};talk$media$phone$NumberInput.prototype.getCountryCode=function(){return this.countrySelect_.getCountryCode()};
talk$media$phone$NumberInput.prototype.getEnteredCode_=function(){return this.countrySelect_.getCallingCodeFor(this.numberInput_.value)};talk$media$phone$NumberInput.prototype.checkInputCountry=function(){this.numberInput_&&this.countrySelect_.updateDisplayForCallingCode(this.getEnteredCode_())};G_numberInputWidget=null;G_renderPhoneNumberInput=function(a,b,c){var d,e,f;void 0!==c&&(e=talk$media$phone$Countries$makeCountryData(c),f=goog$array$map(c,function(a){return a.countryCode.toLowerCase()}));G_numberInputWidget=new talk$media$phone$NumberInput(b?[b]:void 0,d,e,f);G_numberInputWidget.decorate(a);G_numberInputWidget.checkInputCountry();return G_numberInputWidget.getCallingCode()};G_getPhoneCountryCode=function(){if(G_numberInputWidget)return G_numberInputWidget.getCountryCode()};
G_getPhoneCallingCode=function(){if(G_numberInputWidget)return G_numberInputWidget.getCallingCode()};G_getCountryData=function(a){return talk$media$phone$Countries$makeCountryData(a)};
  var birthMonthMenu, genderMenu, countryCodeMenu;
  function updateTosPrivacyLink(countryValue) {
  var labelElement = document.getElementById('terms-of-service-label');
  if(countryValue == "DE") {
  labelElement.innerHTML = '<strong>I agree to the Google \x3Ca target=\x22_blank\x22 id=\x22TosLink\x22 href=\x22https:\x2F\x2Faccounts.google.com\x2FTOS?loc=\x3C?cs var:GA.Request.inferredCountry ?\x3E\x26hl=\x3C?cs var:GA.Request.locale ?\x3E\x22\x3ETerms of Service\x3C\x2Fa\x3E and have read the \x3Ca target=\x22_blank\x22 id=\x22PrivacyLink\x22 href=\x22https:\x2F\x2Faccounts.google.com\x2FTOS?loc=\x3C?cs var:GA.Request.inferredCountry ?\x3E\x26hl=\x3C?cs var:GA.Request.locale ?\x3E\x26privacy=true\x22\x3EPrivacy Policy\x3C\x2Fa\x3E.</strong>';
  } else {
  labelElement.innerHTML = '<strong>I agree to the Google \x3Ca target=\x22_blank\x22 id=\x22TosLink\x22 href=\x22https:\x2F\x2Faccounts.google.com\x2FTOS?loc=\x3C?cs var:GA.Request.inferredCountry ?\x3E\x26hl=\x3C?cs var:GA.Request.locale ?\x3E\x22\x3ETerms of Service\x3C\x2Fa\x3E and \x3Ca target=\x22_blank\x22 id=\x22PrivacyLink\x22 href=\x22https:\x2F\x2Faccounts.google.com\x2FTOS?loc=\x3C?cs var:GA.Request.inferredCountry ?\x3E\x26hl=\x3C?cs var:GA.Request.locale ?\x3E\x26privacy=true\x22\x3EPrivacy Policy\x3C\x2Fa\x3E</strong>';
  }
  var tosLinkAnchor = document.getElementById('TosLink');
  tosLinkAnchor.href = "https://accounts.google.com/TOS?loc=" + countryValue
  + "&hl=en";
  var privacyLinkAnchor = document.getElementById('PrivacyLink');
  privacyLinkAnchor.href = "http://www.google.com/intl/en/privacy/";
  privacyLinkAnchor.href = tosLinkAnchor.href + "&privacy=true";
  }
  function setJfkAccessibleTitle(element, titleId) {
  var title = document.getElementById(titleId).innerHTML;
  element.title = title;
  element.onmouseover = function() {
  element.title = '';
  };
  element.onmouseout = function() {
  element.title = title;
  };
  }
  function renderJfkDropdown(id, titleId) {
  var holder = document.getElementById(id + 'Holder');
  var label = document.getElementById(id).options[0].text;
  holder.innerHTML = '';
  holder.id = id;
  var menu = G_renderJfkDropdown(holder, label, id);
  setJfkAccessibleTitle(menu.getElement(), titleId);
  return menu;
  }
  birthMonthMenu = renderJfkDropdown('BirthMonth', 'BirthdayLabel');
  G_addMenuItem(birthMonthMenu, 'January', '01');
  G_addMenuItem(birthMonthMenu, 'February', '02');
  G_addMenuItem(birthMonthMenu, 'March', '03');
  G_addMenuItem(birthMonthMenu, 'April', '04');
  G_addMenuItem(birthMonthMenu, 'May', '05');
  G_addMenuItem(birthMonthMenu, 'June', '06');
  G_addMenuItem(birthMonthMenu, 'July', '07');
  G_addMenuItem(birthMonthMenu, 'August', '08');
  G_addMenuItem(birthMonthMenu, 'September', '09');
  G_addMenuItem(birthMonthMenu, 'October', '10');
  G_addMenuItem(birthMonthMenu, 'November', '11');
  G_addMenuItem(birthMonthMenu, 'December', '12');
  G_setSelectedValue(birthMonthMenu, '', 'BirthMonth');
  genderMenu = renderJfkDropdown('Gender', 'GenderLabel');
  G_addMenuItem(genderMenu, 'Male', 'MALE');
  G_addMenuItem(genderMenu, 'Female', 'FEMALE');
  G_addMenuItem(genderMenu, 'Other', 'OTHER');
  G_setSelectedValue(genderMenu, '', 'Gender');
  countryCodeMenu = renderJfkDropdown('CountryCode', 'CountryCodeLabel');
  G_addMenuItem(countryCodeMenu, 'Afghanistan (‫افغانستان‬‎)', 'AF');
  G_addMenuItem(countryCodeMenu, 'Åland Islands', 'AX');
  G_addMenuItem(countryCodeMenu, 'Albania (Shqipëria)', 'AL');
  G_addMenuItem(countryCodeMenu, 'Algeria (‫الجزائر‬‎)', 'DZ');
  G_addMenuItem(countryCodeMenu, 'American Samoa', 'AS');
  G_addMenuItem(countryCodeMenu, 'Andorra', 'AD');
  G_addMenuItem(countryCodeMenu, 'Angola', 'AO');
  G_addMenuItem(countryCodeMenu, 'Anguilla', 'AI');
  G_addMenuItem(countryCodeMenu, 'Antarctica', 'AQ');
  G_addMenuItem(countryCodeMenu, 'Antigua and Barbuda', 'AG');
  G_addMenuItem(countryCodeMenu, 'Argentina', 'AR');
  G_addMenuItem(countryCodeMenu, 'Armenia (Հայաստան)', 'AM');
  G_addMenuItem(countryCodeMenu, 'Aruba', 'AW');
  G_addMenuItem(countryCodeMenu, 'Australia', 'AU');
  G_addMenuItem(countryCodeMenu, 'Austria (Österreich)', 'AT');
  G_addMenuItem(countryCodeMenu, 'Azerbaijan (Azərbaycan)', 'AZ');
  G_addMenuItem(countryCodeMenu, 'Bahamas', 'BS');
  G_addMenuItem(countryCodeMenu, 'Bahrain (‫البحرين‬‎)', 'BH');
  G_addMenuItem(countryCodeMenu, 'Bangladesh (বাংলাদেশ)', 'BD');
  G_addMenuItem(countryCodeMenu, 'Barbados', 'BB');
  G_addMenuItem(countryCodeMenu, 'Belarus (Белару́сь)', 'BY');
  G_addMenuItem(countryCodeMenu, 'Belgium (België)', 'BE');
  G_addMenuItem(countryCodeMenu, 'Belize', 'BZ');
  G_addMenuItem(countryCodeMenu, 'Benin (Bénin)', 'BJ');
  G_addMenuItem(countryCodeMenu, 'Bermuda', 'BM');
  G_addMenuItem(countryCodeMenu, 'Bhutan (འབྲུག་ཡུལ)', 'BT');
  G_addMenuItem(countryCodeMenu, 'Bolivia', 'BO');
  G_addMenuItem(countryCodeMenu, 'Bosnia and Herzegovina (Bosna i Hercegovina)', 'BA');
  G_addMenuItem(countryCodeMenu, 'Botswana', 'BW');
  G_addMenuItem(countryCodeMenu, 'Bouvet Island', 'BV');
  G_addMenuItem(countryCodeMenu, 'Brazil (Brasil)', 'BR');
  G_addMenuItem(countryCodeMenu, 'British Indian Ocean Territory', 'IO');
  G_addMenuItem(countryCodeMenu, 'British Virgin Islands', 'VG');
  G_addMenuItem(countryCodeMenu, 'Brunei (Brunei Darussalam)', 'BN');
  G_addMenuItem(countryCodeMenu, 'Bulgaria (България)', 'BG');
  G_addMenuItem(countryCodeMenu, 'Burkina Faso', 'BF');
  G_addMenuItem(countryCodeMenu, 'Burundi (Uburundi)', 'BI');
  G_addMenuItem(countryCodeMenu, 'Cambodia (Kampuchea)', 'KH');
  G_addMenuItem(countryCodeMenu, 'Cameroon (Cameroun)', 'CM');
  G_addMenuItem(countryCodeMenu, 'Canada', 'CA');
  G_addMenuItem(countryCodeMenu, 'Cape Verde (Cabo Verde)', 'CV');
  G_addMenuItem(countryCodeMenu, 'Cayman Islands', 'KY');
  G_addMenuItem(countryCodeMenu, 'Central African Republic (République Centrafricaine)', 'CF');
  G_addMenuItem(countryCodeMenu, 'Chad (Tchad)', 'TD');
  G_addMenuItem(countryCodeMenu, 'Chile', 'CL');
  G_addMenuItem(countryCodeMenu, 'China (中国)', 'CN');
  G_addMenuItem(countryCodeMenu, 'Christmas Island', 'CX');
  G_addMenuItem(countryCodeMenu, 'Cocos [Keeling] Islands', 'CC');
  G_addMenuItem(countryCodeMenu, 'Colombia', 'CO');
  G_addMenuItem(countryCodeMenu, 'Comoros (Comores)', 'KM');
  G_addMenuItem(countryCodeMenu, 'Congo [DRC]', 'CD');
  G_addMenuItem(countryCodeMenu, 'Congo [Republic]', 'CG');
  G_addMenuItem(countryCodeMenu, 'Cook Islands', 'CK');
  G_addMenuItem(countryCodeMenu, 'Costa Rica', 'CR');
  G_addMenuItem(countryCodeMenu, 'Côte d’Ivoire', 'CI');
  G_addMenuItem(countryCodeMenu, 'Croatia (Hrvatska)', 'HR');
  G_addMenuItem(countryCodeMenu, 'Cuba', 'CU');
  G_addMenuItem(countryCodeMenu, 'Cyprus (Κυπρος)', 'CY');
  G_addMenuItem(countryCodeMenu, 'Czech Republic (Česko)', 'CZ');
  G_addMenuItem(countryCodeMenu, 'Denmark (Danmark)', 'DK');
  G_addMenuItem(countryCodeMenu, 'Djibouti', 'DJ');
  G_addMenuItem(countryCodeMenu, 'Dominica', 'DM');
  G_addMenuItem(countryCodeMenu, 'Dominican Republic', 'DO');
  G_addMenuItem(countryCodeMenu, 'Ecuador', 'EC');
  G_addMenuItem(countryCodeMenu, 'Egypt (‫مصر‬‎)', 'EG');
  G_addMenuItem(countryCodeMenu, 'El Salvador', 'SV');
  G_addMenuItem(countryCodeMenu, 'Equatorial Guinea (Guinea Ecuatorial)', 'GQ');
  G_addMenuItem(countryCodeMenu, 'Eritrea (Ertra)', 'ER');
  G_addMenuItem(countryCodeMenu, 'Estonia (Eesti)', 'EE');
  G_addMenuItem(countryCodeMenu, 'Ethiopia (Ityop\x27iya)', 'ET');
  G_addMenuItem(countryCodeMenu, 'Falkland Islands [Islas Malvinas]', 'FK');
  G_addMenuItem(countryCodeMenu, 'Faroe Islands', 'FO');
  G_addMenuItem(countryCodeMenu, 'Fiji', 'FJ');
  G_addMenuItem(countryCodeMenu, 'Finland (Suomi)', 'FI');
  G_addMenuItem(countryCodeMenu, 'France', 'FR');
  G_addMenuItem(countryCodeMenu, 'French Guiana', 'GF');
  G_addMenuItem(countryCodeMenu, 'French Polynesia', 'PF');
  G_addMenuItem(countryCodeMenu, 'French Southern Territories', 'TF');
  G_addMenuItem(countryCodeMenu, 'Gabon', 'GA');
  G_addMenuItem(countryCodeMenu, 'Gambia', 'GM');
  G_addMenuItem(countryCodeMenu, 'Georgia (საქართველო)', 'GE');
  G_addMenuItem(countryCodeMenu, 'Germany (Deutschland)', 'DE');
  G_addMenuItem(countryCodeMenu, 'Ghana', 'GH');
  G_addMenuItem(countryCodeMenu, 'Gibraltar', 'GI');
  G_addMenuItem(countryCodeMenu, 'Greece (Ελλάς)', 'GR');
  G_addMenuItem(countryCodeMenu, 'Greenland', 'GL');
  G_addMenuItem(countryCodeMenu, 'Grenada', 'GD');
  G_addMenuItem(countryCodeMenu, 'Guadeloupe', 'GP');
  G_addMenuItem(countryCodeMenu, 'Guam', 'GU');
  G_addMenuItem(countryCodeMenu, 'Guatemala', 'GT');
  G_addMenuItem(countryCodeMenu, 'Guernsey', 'GG');
  G_addMenuItem(countryCodeMenu, 'Guinea (Guinée)', 'GN');
  G_addMenuItem(countryCodeMenu, 'Guinea-Bissau (Guiné-Bissau)', 'GW');
  G_addMenuItem(countryCodeMenu, 'Guyana', 'GY');
  G_addMenuItem(countryCodeMenu, 'Haiti (Haïti)', 'HT');
  G_addMenuItem(countryCodeMenu, 'Heard Island and McDonald Islands', 'HM');
  G_addMenuItem(countryCodeMenu, 'Honduras', 'HN');
  G_addMenuItem(countryCodeMenu, 'Hong Kong', 'HK');
  G_addMenuItem(countryCodeMenu, 'Hungary (Magyarország)', 'HU');
  G_addMenuItem(countryCodeMenu, 'Iceland (Ísland)', 'IS');
  G_addMenuItem(countryCodeMenu, 'India', 'IN');
  G_addMenuItem(countryCodeMenu, 'Indonesia', 'ID');
  G_addMenuItem(countryCodeMenu, 'Iran (‫ایران‬‎)', 'IR');
  G_addMenuItem(countryCodeMenu, 'Iraq (‫العراق‬‎)', 'IQ');
  G_addMenuItem(countryCodeMenu, 'Ireland', 'IE');
  G_addMenuItem(countryCodeMenu, 'Isle of Man', 'IM');
  G_addMenuItem(countryCodeMenu, 'Israel (‫ישראל‬‎)', 'IL');
  G_addMenuItem(countryCodeMenu, 'Italy (Italia)', 'IT');
  G_addMenuItem(countryCodeMenu, 'Jamaica', 'JM');
  G_addMenuItem(countryCodeMenu, 'Japan (日本)', 'JP');
  G_addMenuItem(countryCodeMenu, 'Jersey', 'JE');
  G_addMenuItem(countryCodeMenu, 'Jordan (‫الاردن‬‎)', 'JO');
  G_addMenuItem(countryCodeMenu, 'Kazakhstan (Қазақстан)', 'KZ');
  G_addMenuItem(countryCodeMenu, 'Kenya', 'KE');
  G_addMenuItem(countryCodeMenu, 'Kiribati', 'KI');
  G_addMenuItem(countryCodeMenu, 'Kuwait (‫الكويت‬‎)', 'KW');
  G_addMenuItem(countryCodeMenu, 'Kyrgyzstan (Кыргызстан)', 'KG');
  G_addMenuItem(countryCodeMenu, 'Laos (ນລາວ)', 'LA');
  G_addMenuItem(countryCodeMenu, 'Latvia (Latvija)', 'LV');
  G_addMenuItem(countryCodeMenu, 'Lebanon (‫لبنان‬‎)', 'LB');
  G_addMenuItem(countryCodeMenu, 'Lesotho', 'LS');
  G_addMenuItem(countryCodeMenu, 'Liberia', 'LR');
  G_addMenuItem(countryCodeMenu, 'Libya (‫ليبيا‬‎)', 'LY');
  G_addMenuItem(countryCodeMenu, 'Liechtenstein', 'LI');
  G_addMenuItem(countryCodeMenu, 'Lithuania (Lietuva)', 'LT');
  G_addMenuItem(countryCodeMenu, 'Luxembourg (Lëtzebuerg)', 'LU');
  G_addMenuItem(countryCodeMenu, 'Macau', 'MO');
  G_addMenuItem(countryCodeMenu, 'Macedonia [FYROM] (Македонија)', 'MK');
  G_addMenuItem(countryCodeMenu, 'Madagascar (Madagasikara)', 'MG');
  G_addMenuItem(countryCodeMenu, 'Malawi', 'MW');
  G_addMenuItem(countryCodeMenu, 'Malaysia', 'MY');
  G_addMenuItem(countryCodeMenu, 'Maldives (‫ގުޖޭއްރާ ޔާއްރިހޫމްޖ‬‎)', 'MV');
  G_addMenuItem(countryCodeMenu, 'Mali', 'ML');
  G_addMenuItem(countryCodeMenu, 'Malta', 'MT');
  G_addMenuItem(countryCodeMenu, 'Marshall Islands', 'MH');
  G_addMenuItem(countryCodeMenu, 'Martinique', 'MQ');
  G_addMenuItem(countryCodeMenu, 'Mauritania (‫موريتانيا‬‎)', 'MR');
  G_addMenuItem(countryCodeMenu, 'Mauritius', 'MU');
  G_addMenuItem(countryCodeMenu, 'Mayotte', 'YT');
  G_addMenuItem(countryCodeMenu, 'Mexico (México)', 'MX');
  G_addMenuItem(countryCodeMenu, 'Micronesia', 'FM');
  G_addMenuItem(countryCodeMenu, 'Moldova', 'MD');
  G_addMenuItem(countryCodeMenu, 'Monaco', 'MC');
  G_addMenuItem(countryCodeMenu, 'Mongolia (Монгол Улс)', 'MN');
  G_addMenuItem(countryCodeMenu, 'Montenegro (Црна Гора)', 'ME');
  G_addMenuItem(countryCodeMenu, 'Montserrat', 'MS');
  G_addMenuItem(countryCodeMenu, 'Morocco (‫المغرب‬‎)', 'MA');
  G_addMenuItem(countryCodeMenu, 'Mozambique (Moçambique)', 'MZ');
  G_addMenuItem(countryCodeMenu, 'Myanmar [Burma] (Myanmar (Burma))', 'MM');
  G_addMenuItem(countryCodeMenu, 'Namibia', 'NA');
  G_addMenuItem(countryCodeMenu, 'Nauru (Naoero)', 'NR');
  G_addMenuItem(countryCodeMenu, 'Nepal (नेपाल)', 'NP');
  G_addMenuItem(countryCodeMenu, 'Netherlands (Nederland)', 'NL');
  G_addMenuItem(countryCodeMenu, 'Netherlands Antilles', 'AN');
  G_addMenuItem(countryCodeMenu, 'New Caledonia', 'NC');
  G_addMenuItem(countryCodeMenu, 'New Zealand', 'NZ');
  G_addMenuItem(countryCodeMenu, 'Nicaragua', 'NI');
  G_addMenuItem(countryCodeMenu, 'Niger', 'NE');
  G_addMenuItem(countryCodeMenu, 'Nigeria', 'NG');
  G_addMenuItem(countryCodeMenu, 'Niue', 'NU');
  G_addMenuItem(countryCodeMenu, 'Norfolk Island', 'NF');
  G_addMenuItem(countryCodeMenu, 'Northern Mariana Islands', 'MP');
  G_addMenuItem(countryCodeMenu, 'North Korea (조선)', 'KP');
  G_addMenuItem(countryCodeMenu, 'Norway (Norge)', 'NO');
  G_addMenuItem(countryCodeMenu, 'Oman (‫عمان‬‎)', 'OM');
  G_addMenuItem(countryCodeMenu, 'Pakistan (‫پاکستان‬‎)', 'PK');
  G_addMenuItem(countryCodeMenu, 'Palau (Belau)', 'PW');
  G_addMenuItem(countryCodeMenu, 'Palestinian Territories', 'PS');
  G_addMenuItem(countryCodeMenu, 'Panama (Panamá)', 'PA');
  G_addMenuItem(countryCodeMenu, 'Papua New Guinea', 'PG');
  G_addMenuItem(countryCodeMenu, 'Paraguay', 'PY');
  G_addMenuItem(countryCodeMenu, 'Peru (Perú)', 'PE');
  G_addMenuItem(countryCodeMenu, 'Philippines (Pilipinas)', 'PH');
  G_addMenuItem(countryCodeMenu, 'Pitcairn Islands', 'PN');
  G_addMenuItem(countryCodeMenu, 'Poland (Polska)', 'PL');
  G_addMenuItem(countryCodeMenu, 'Portugal', 'PT');
  G_addMenuItem(countryCodeMenu, 'Puerto Rico', 'PR');
  G_addMenuItem(countryCodeMenu, 'Qatar (‫قطر‬‎)', 'QA');
  G_addMenuItem(countryCodeMenu, 'Réunion', 'RE');
  G_addMenuItem(countryCodeMenu, 'Romania (România)', 'RO');
  G_addMenuItem(countryCodeMenu, 'Russia (Россия)', 'RU');
  G_addMenuItem(countryCodeMenu, 'Rwanda', 'RW');
  G_addMenuItem(countryCodeMenu, 'Saint Helena', 'SH');
  G_addMenuItem(countryCodeMenu, 'Saint Kitts and Nevis', 'KN');
  G_addMenuItem(countryCodeMenu, 'Saint Lucia', 'LC');
  G_addMenuItem(countryCodeMenu, 'Saint Pierre and Miquelon', 'PM');
  G_addMenuItem(countryCodeMenu, 'Saint Vincent and the Grenadines', 'VC');
  G_addMenuItem(countryCodeMenu, 'Samoa', 'WS');
  G_addMenuItem(countryCodeMenu, 'San Marino', 'SM');
  G_addMenuItem(countryCodeMenu, 'São Tomé and Príncipe', 'ST');
  G_addMenuItem(countryCodeMenu, 'Saudi Arabia (‫المملكة العربية السعودية‬‎)', 'SA');
  G_addMenuItem(countryCodeMenu, 'Senegal (Sénégal)', 'SN');
  G_addMenuItem(countryCodeMenu, 'Serbia (Србија)', 'RS');
  G_addMenuItem(countryCodeMenu, 'Serbia and Montenegro (Србија и Црна Гора)', 'CS');
  G_addMenuItem(countryCodeMenu, 'Seychelles', 'SC');
  G_addMenuItem(countryCodeMenu, 'Sierra Leone', 'SL');
  G_addMenuItem(countryCodeMenu, 'Singapore (Singapura)', 'SG');
  G_addMenuItem(countryCodeMenu, 'Slovakia (Slovensko)', 'SK');
  G_addMenuItem(countryCodeMenu, 'Slovenia (Slovenija)', 'SI');
  G_addMenuItem(countryCodeMenu, 'Solomon Islands', 'SB');
  G_addMenuItem(countryCodeMenu, 'Somalia (Soomaaliya)', 'SO');
  G_addMenuItem(countryCodeMenu, 'South Africa', 'ZA');
  G_addMenuItem(countryCodeMenu, 'South Georgia and the South Sandwich Islands', 'GS');
  G_addMenuItem(countryCodeMenu, 'South Korea (한국)', 'KR');
  G_addMenuItem(countryCodeMenu, 'Spain (España)', 'ES');
  G_addMenuItem(countryCodeMenu, 'Sri Lanka', 'LK');
  G_addMenuItem(countryCodeMenu, 'Sudan (‫السودان‬‎)', 'SD');
  G_addMenuItem(countryCodeMenu, 'Suriname', 'SR');
  G_addMenuItem(countryCodeMenu, 'Svalbard and Jan Mayen', 'SJ');
  G_addMenuItem(countryCodeMenu, 'Swaziland', 'SZ');
  G_addMenuItem(countryCodeMenu, 'Sweden (Sverige)', 'SE');
  G_addMenuItem(countryCodeMenu, 'Switzerland (Schweiz)', 'CH');
  G_addMenuItem(countryCodeMenu, 'Syria (‫سوريا‬‎)', 'SY');
  G_addMenuItem(countryCodeMenu, 'Taiwan (台灣)', 'TW');
  G_addMenuItem(countryCodeMenu, 'Tajikistan (Тоҷикистон)', 'TJ');
  G_addMenuItem(countryCodeMenu, 'Tanzania', 'TZ');
  G_addMenuItem(countryCodeMenu, 'Thailand (ราชอาณาจักรไทย)', 'TH');
  G_addMenuItem(countryCodeMenu, 'Timor-Leste', 'TL');
  G_addMenuItem(countryCodeMenu, 'Togo', 'TG');
  G_addMenuItem(countryCodeMenu, 'Tokelau', 'TK');
  G_addMenuItem(countryCodeMenu, 'Tonga', 'TO');
  G_addMenuItem(countryCodeMenu, 'Trinidad and Tobago', 'TT');
  G_addMenuItem(countryCodeMenu, 'Tunisia (‫تونس‬‎)', 'TN');
  G_addMenuItem(countryCodeMenu, 'Turkey (Türkiye)', 'TR');
  G_addMenuItem(countryCodeMenu, 'Turkmenistan (Türkmenistan)', 'TM');
  G_addMenuItem(countryCodeMenu, 'Turks and Caicos Islands', 'TC');
  G_addMenuItem(countryCodeMenu, 'Tuvalu', 'TV');
  G_addMenuItem(countryCodeMenu, 'U.S. Minor Outlying Islands', 'UM');
  G_addMenuItem(countryCodeMenu, 'U.S. Virgin Islands', 'VI');
  G_addMenuItem(countryCodeMenu, 'Uganda', 'UG');
  G_addMenuItem(countryCodeMenu, 'Ukraine (Україна)', 'UA');
  G_addMenuItem(countryCodeMenu, 'United Arab Emirates (‫الإمارات العربيّة المتّحدة‬‎)', 'AE');
  G_addMenuItem(countryCodeMenu, 'United Kingdom', 'GB');
  G_addMenuItem(countryCodeMenu, 'United States', 'US');
  G_addMenuItem(countryCodeMenu, 'Uruguay', 'UY');
  G_addMenuItem(countryCodeMenu, 'Uzbekistan (O\x27zbekiston)', 'UZ');
  G_addMenuItem(countryCodeMenu, 'Vanuatu', 'VU');
  G_addMenuItem(countryCodeMenu, 'Vatican City (Città del Vaticano)', 'VA');
  G_addMenuItem(countryCodeMenu, 'Venezuela', 'VE');
  G_addMenuItem(countryCodeMenu, 'Vietnam (Việt Nam)', 'VN');
  G_addMenuItem(countryCodeMenu, 'Wallis and Futuna', 'WF');
  G_addMenuItem(countryCodeMenu, 'Western Sahara (‫الصحراء الغربية‬‎)', 'EH');
  G_addMenuItem(countryCodeMenu, 'Yemen (‫اليمن‬‎)', 'YE');
  G_addMenuItem(countryCodeMenu, 'Zambia', 'ZM');
  G_addMenuItem(countryCodeMenu, 'Zimbabwe', 'ZW');
  G_setSelectedValue(countryCodeMenu, 'US', 'CountryCode');
  gaia_attachEvent(countryCodeMenu, 'change', function() {
  updateTosPrivacyLink(document.getElementById('HiddenCountryCode').value);
  });
  var InputHolder = function(id, jfkInput) {
  var input = document.getElementById(id);
  this.inputForId = input;
  if (jfkInput) {
  this.inputForValue = document.getElementById('Hidden' + id);
  this.inputForEvents = jfkInput.getElement();
  } else {
  this.inputForValue = input;
  this.inputForEvents = input;
  }
  this.error = document.getElementById('errormsg_0_' + id);
  var inputHolder = this;
  this.attachRemoveErrorHandler(function() {
  inputHolder.clearErrorMessage();
  });
  }
  InputHolder.prototype.id = function() {
  return this.inputForId.id;
  };
  InputHolder.prototype.value = function() {
  return this.inputForValue.value;
  };
  InputHolder.prototype.attachEvent = function(event, handler) {
  gaia_attachEvent(this.inputForEvents, event, handler, false);
  };
  InputHolder.prototype.attachValidationHandler = function(handler) {
  this.attachEvent('blur', handler);
  };
  InputHolder.prototype.attachRemoveErrorHandler = function(handler) {
  this.attachEvent('focus', handler);
  this.attachEvent('keydown', handler);
  this.attachEvent('click', handler);
  };
  InputHolder.prototype.attachRemoveDuplicateErrorsHandler = function(handler) {
  this.removeDuplicateErrorsHandler = handler;
  };
  InputHolder.prototype.setInfoMessage = function(messageId) {
  var message = document.getElementById(messageId);
  if (message && message.innerHTML.replace(/\s+/g, '')) {
  var anchor = this.inputForEvents.parentNode;
  this.attachEvent('focus', function() {
  G_showInfoBubble(anchor, message.innerHTML)
  });
  if (message.getElementsByTagName('a').length == 0) {
  this.attachEvent('blur', G_hideInfoBubble);
  }
  }
  };
  InputHolder.prototype.setHandler = function(handler) {
  gaia_attachEvent(this.inputForEvents, 'blur', handler, false);
  };
  InputHolder.prototype.hasErrorMessage = function() {
  if (gaia_hasInnerTextProperty) {
  return this.error.innerText.replace(/\s*/, '').length > 0;
  } else {
  return this.error.textContent.replace(/\s*/, '').length > 0;
  }
  };
  InputHolder.prototype.getErrorMessage = function() {
  return this.error.innerHTML;
  };
  InputHolder.prototype.setErrorMessage = function(message) {
  this.inputForId.className = this.inputForId.className + ' form-error';
  this.error.style.display = '';
  this.error.innerHTML = message;
  if (this.removeDuplicateErrorsHandler) {
  this.removeDuplicateErrorsHandler(this);
  }
  };
  InputHolder.prototype.clearErrorMessage = function() {
  this.error.innerHTML = '';
  var input = this.inputForId;
  if (input.className) {
  var indexOfFormError = input.className.indexOf('form-error');
  if (indexOfFormError >= 0) {
  input.className = input.className.substring(0, indexOfFormError);
  }
  }
  };
  InputHolder.prototype.isNullOrEmpty = function() {
  return (this.inputForValue.value == null || this.inputForValue.value == "");
  };
  var inputHolders = new function() {
  this.firstName = new InputHolder('FirstName');
  this.lastName = new InputHolder('LastName');
  this.gmailAddress = new InputHolder('GmailAddress');
  this.passwd = new InputHolder('Passwd');
  this.passwdAgain = new InputHolder('PasswdAgain');
  this.birthMonth = new InputHolder('BirthMonth', birthMonthMenu);
  this.birthDay = new InputHolder('BirthDay');
  this.birthYear = new InputHolder('BirthYear');
  this.gender = new InputHolder('Gender', genderMenu);
  this.recoveryPhone = new InputHolder('RecoveryPhoneNumber');
  this.recoveryEmail = new InputHolder('RecoveryEmailAddress');
  this.countryCode = new InputHolder('CountryCode', countryCodeMenu);
  this.termsOfService = new InputHolder('TermsOfService');
  };
  function gaia_parseFragment() {
  var hash = location.hash;
  var params = {};
  if (!hash) {
  return params;
  }
  var paramStrs = decodeURIComponent(hash.substring(1)).split('&');
  for (var i = 0; i < paramStrs.length; i++) {
      var param = paramStrs[i].split('=');
      params[param[0]] = param[1];
    }
    return params;
  }

  function gaia_prefillFields() {
    var hashParams = gaia_parseFragment();
    if (inputHolders.recoveryEmail.isNullOrEmpty() &&
        hashParams[inputHolders.recoveryEmail.id()]) {
      inputHolders.recoveryEmail.inputForValue.value =
          hashParams[inputHolders.recoveryEmail.id()];
    }

    if (inputHolders.gmailAddress.isNullOrEmpty() &&
        hashParams[inputHolders.gmailAddress.id()]) {
      inputHolders.gmailAddress.inputForValue.value =
          hashParams[inputHolders.gmailAddress.id()];
    }
  }

  
  try {
    gaia_prefillFields();
  } catch (e) {
  }

  

  var gaia_initPlaceholders = function() {
    addPlaceholderText(inputHolders.firstName, 'firstname-placeholder');
    addPlaceholderText(inputHolders.lastName, 'lastname-placeholder');
    addPlaceholderText(inputHolders.birthDay, 'birthday-placeholder');
    addPlaceholderText(inputHolders.birthYear, 'birthyear-placeholder');

    function addPlaceholderText(input, placeholderId) {
      if (!input.value()) {
        showPlaceholder(placeholderId);
      }
      input.attachEvent('keydown', function() {
        hidePlaceholder(placeholderId);
      });
      input.attachEvent('blur', function() {
        if (!input.value()) {
          showPlaceholder(placeholderId);
        }
      });
    }

    function showPlaceholder(id) {
      var element = document.getElementById(id);
      element.style.display = 'block';
    }

    function hidePlaceholder(id) {
      var element = document.getElementById(id);
      element.style.display = 'none';
    }
  }

  gaia_initPlaceholders();


  

  var gaia_initInfoMessages = function() {
    
      inputHolders.firstName.setInfoMessage('name-infomessage');
    
    inputHolders.gmailAddress.setInfoMessage('gmail-address-infomessage');
    inputHolders.recoveryPhone.setInfoMessage('phone-infomessage');
    inputHolders.recoveryEmail.setInfoMessage('recovery-email-infomessage');
    inputHolders.countryCode.setInfoMessage('location-infomessage');
  };

  gaia_initInfoMessages();

  

  var gaia_initPasswordBar = function() {
    var passwordBar = document.getElementById('password-bar-html');
    inputHolders.passwd.previousValue = '';

    
    passwordBar.parentNode.removeChild(passwordBar);
    var passwordFormElement = document.getElementById('password-form-element');
    var passwordInfoMessage = document.getElementById('password-infomessage');
    inputHolders.passwd.attachEvent('keyup', inputHandler);
    inputHolders.passwd.attachEvent('focus', inputHandler);
    
    inputHolders.passwdAgain.attachEvent('focus', G_hideInfoBubble);

    function inputHandler() {
      
        if (!G_isBubbleVisible() ||
            G_bubble.arrowPosition_.anchorElement_ != passwordFormElement) {
          G_showInfoBubble(passwordFormElement,
              passwordBar.innerHTML + '<br>' + passwordInfoMessage.innerHTML);
  }
  if (inputHolders.passwd.value().length < 8) {
        updatePasswordBar(0);
      } else if (inputHolders.passwd.value() != inputHolders.passwd.previousValue) {
        G_ratePasswdReq(updatePasswordBar, inputHolders.passwd.value(), inputHolders.gmailAddress.value(),
            inputHolders.firstName.value(), inputHolders.lastName.value());
        inputHolders.passwd.previousValue = inputHolders.passwd.value();
      }
    }

    function updatePasswordBar(rating) {
      var ratingMsgs = new Array(6);
      var ratingClasses = new Array(6);
      ratingMsgs[0] = "Too short";
      ratingMsgs[1] = "Weak";
      ratingMsgs[2] = "Fair";
      ratingMsgs[3] = "Good";
      ratingMsgs[4] = "Strong";
      ratingMsgs[5] = "Not rated";
      ratingClasses[0] = 'short';
      ratingClasses[1] = 'weak';
      ratingClasses[2] = 'fair';
      ratingClasses[3] = 'good';
      ratingClasses[4] = 'strong';
      ratingClasses[5] = 'notRated';

      var bar = document.getElementById('strength-bar');
      if (bar) { 
        var message = document.getElementById('passwdRating');
        var barLength = document.getElementById('passwdBar').clientWidth;
        bar.className = ratingClasses[rating];
        if (rating >= 0 && rating <= 4) {  
          bar.style.width  = (barLength * (parseInt(rating) + 1.0) / 5.0) + 'px';
          message.innerHTML = ratingMsgs[rating];
        } else {
          bar.style.width = 0;
          rating = 5; 
        }
      }
    }
  };

  gaia_initPasswordBar();


  
  
  var gaia_renderPhoneInput = function() {
    var countryCode = '';
    if (!countryCode) {
      countryCode = 'US';
    }
    var recoveryPhone = document.getElementById('RecoveryPhoneNumber');
    var recoveryPhoneCountry = document.getElementById('RecoveryPhoneCountry');
    var callingCode = G_renderPhoneNumberInput(
        recoveryPhone, countryCode.toLowerCase(),
        [
          {countryCode: 'AF',
           name: 'Afghanistan (‫افغانستان‬‎)',
           label: 'Afghanistan (‫افغانستان‬‎)'
          },
         
          {countryCode: 'AX',
           name: 'Åland Islands',
           label: 'Åland Islands'
          },
         
          {countryCode: 'AL',
           name: 'Albania (Shqipëria)',
           label: 'Albania (Shqipëria)'
          },
         
          {countryCode: 'DZ',
           name: 'Algeria (‫الجزائر‬‎)',
           label: 'Algeria (‫الجزائر‬‎)'
          },
         
          {countryCode: 'AS',
           name: 'American Samoa',
           label: 'American Samoa'
          },
         
          {countryCode: 'AD',
           name: 'Andorra',
           label: 'Andorra'
          },
         
          {countryCode: 'AO',
           name: 'Angola',
           label: 'Angola'
          },
         
          {countryCode: 'AI',
           name: 'Anguilla',
           label: 'Anguilla'
          },
         
          {countryCode: 'AQ',
           name: 'Antarctica',
           label: 'Antarctica'
          },
         
          {countryCode: 'AG',
           name: 'Antigua and Barbuda',
           label: 'Antigua and Barbuda'
          },
         
          {countryCode: 'AR',
           name: 'Argentina',
           label: 'Argentina'
          },
         
          {countryCode: 'AM',
           name: 'Armenia (Հայաստան)',
           label: 'Armenia (Հայաստան)'
          },
         
          {countryCode: 'AW',
           name: 'Aruba',
           label: 'Aruba'
          },
         
          {countryCode: 'AU',
           name: 'Australia',
           label: 'Australia'
          },
         
          {countryCode: 'AT',
           name: 'Austria (Österreich)',
           label: 'Austria (Österreich)'
          },
         
          {countryCode: 'AZ',
           name: 'Azerbaijan (Azərbaycan)',
           label: 'Azerbaijan (Azərbaycan)'
          },
         
          {countryCode: 'BS',
           name: 'Bahamas',
           label: 'Bahamas'
          },
         
          {countryCode: 'BH',
           name: 'Bahrain (‫البحرين‬‎)',
           label: 'Bahrain (‫البحرين‬‎)'
          },
         
          {countryCode: 'BD',
           name: 'Bangladesh (বাংলাদেশ)',
           label: 'Bangladesh (বাংলাদেশ)'
          },
         
          {countryCode: 'BB',
           name: 'Barbados',
           label: 'Barbados'
          },
         
          {countryCode: 'BY',
           name: 'Belarus (Белару́сь)',
           label: 'Belarus (Белару́сь)'
          },
         
          {countryCode: 'BE',
           name: 'Belgium (België)',
           label: 'Belgium (België)'
          },
         
          {countryCode: 'BZ',
           name: 'Belize',
           label: 'Belize'
          },
         
          {countryCode: 'BJ',
           name: 'Benin (Bénin)',
           label: 'Benin (Bénin)'
          },
         
          {countryCode: 'BM',
           name: 'Bermuda',
           label: 'Bermuda'
          },
         
          {countryCode: 'BT',
           name: 'Bhutan (འབྲུག་ཡུལ)',
           label: 'Bhutan (འབྲུག་ཡུལ)'
          },
         
          {countryCode: 'BO',
           name: 'Bolivia',
           label: 'Bolivia'
          },
         
          {countryCode: 'BA',
           name: 'Bosnia and Herzegovina (Bosna i Hercegovina)',
           label: 'Bosnia and Herzegovina (Bosna i Hercegovina)'
          },
         
          {countryCode: 'BW',
           name: 'Botswana',
           label: 'Botswana'
          },
         
          {countryCode: 'BV',
           name: 'Bouvet Island',
           label: 'Bouvet Island'
          },
         
          {countryCode: 'BR',
           name: 'Brazil (Brasil)',
           label: 'Brazil (Brasil)'
          },
         
          {countryCode: 'IO',
           name: 'British Indian Ocean Territory',
           label: 'British Indian Ocean Territory'
          },
         
          {countryCode: 'VG',
           name: 'British Virgin Islands',
           label: 'British Virgin Islands'
          },
         
          {countryCode: 'BN',
           name: 'Brunei (Brunei Darussalam)',
           label: 'Brunei (Brunei Darussalam)'
          },
         
          {countryCode: 'BG',
           name: 'Bulgaria (България)',
           label: 'Bulgaria (България)'
          },
         
          {countryCode: 'BF',
           name: 'Burkina Faso',
           label: 'Burkina Faso'
          },
         
          {countryCode: 'BI',
           name: 'Burundi (Uburundi)',
           label: 'Burundi (Uburundi)'
          },
         
          {countryCode: 'KH',
           name: 'Cambodia (Kampuchea)',
           label: 'Cambodia (Kampuchea)'
          },
         
          {countryCode: 'CM',
           name: 'Cameroon (Cameroun)',
           label: 'Cameroon (Cameroun)'
          },
         
          {countryCode: 'CA',
           name: 'Canada',
           label: 'Canada'
          },
         
          {countryCode: 'CV',
           name: 'Cape Verde (Cabo Verde)',
           label: 'Cape Verde (Cabo Verde)'
          },
         
          {countryCode: 'KY',
           name: 'Cayman Islands',
           label: 'Cayman Islands'
          },
         
          {countryCode: 'CF',
           name: 'Central African Republic (République Centrafricaine)',
           label: 'Central African Republic (République Centrafricaine)'
          },
         
          {countryCode: 'TD',
           name: 'Chad (Tchad)',
           label: 'Chad (Tchad)'
          },
         
          {countryCode: 'CL',
           name: 'Chile',
           label: 'Chile'
          },
         
          {countryCode: 'CN',
           name: 'China (中国)',
           label: 'China (中国)'
          },
         
          {countryCode: 'CX',
           name: 'Christmas Island',
           label: 'Christmas Island'
          },
         
          {countryCode: 'CC',
           name: 'Cocos [Keeling] Islands',
           label: 'Cocos [Keeling] Islands'
          },
         
          {countryCode: 'CO',
           name: 'Colombia',
           label: 'Colombia'
          },
         
          {countryCode: 'KM',
           name: 'Comoros (Comores)',
           label: 'Comoros (Comores)'
          },
         
          {countryCode: 'CD',
           name: 'Congo [DRC]',
           label: 'Congo [DRC]'
          },
         
          {countryCode: 'CG',
           name: 'Congo [Republic]',
           label: 'Congo [Republic]'
          },
         
          {countryCode: 'CK',
           name: 'Cook Islands',
           label: 'Cook Islands'
          },
         
          {countryCode: 'CR',
           name: 'Costa Rica',
           label: 'Costa Rica'
          },
         
          {countryCode: 'CI',
           name: 'Côte d’Ivoire',
           label: 'Côte d’Ivoire'
          },
         
          {countryCode: 'HR',
           name: 'Croatia (Hrvatska)',
           label: 'Croatia (Hrvatska)'
          },
         
          {countryCode: 'CU',
           name: 'Cuba',
           label: 'Cuba'
          },
         
          {countryCode: 'CY',
           name: 'Cyprus (Κυπρος)',
           label: 'Cyprus (Κυπρος)'
          },
         
          {countryCode: 'CZ',
           name: 'Czech Republic (Česko)',
           label: 'Czech Republic (Česko)'
          },
         
          {countryCode: 'DK',
           name: 'Denmark (Danmark)',
           label: 'Denmark (Danmark)'
          },
         
          {countryCode: 'DJ',
           name: 'Djibouti',
           label: 'Djibouti'
          },
         
          {countryCode: 'DM',
           name: 'Dominica',
           label: 'Dominica'
          },
         
          {countryCode: 'DO',
           name: 'Dominican Republic',
           label: 'Dominican Republic'
          },
         
          {countryCode: 'EC',
           name: 'Ecuador',
           label: 'Ecuador'
          },
         
          {countryCode: 'EG',
           name: 'Egypt (‫مصر‬‎)',
           label: 'Egypt (‫مصر‬‎)'
          },
         
          {countryCode: 'SV',
           name: 'El Salvador',
           label: 'El Salvador'
          },
         
          {countryCode: 'GQ',
           name: 'Equatorial Guinea (Guinea Ecuatorial)',
           label: 'Equatorial Guinea (Guinea Ecuatorial)'
          },
         
          {countryCode: 'ER',
           name: 'Eritrea (Ertra)',
           label: 'Eritrea (Ertra)'
          },
         
          {countryCode: 'EE',
           name: 'Estonia (Eesti)',
           label: 'Estonia (Eesti)'
          },
         
          {countryCode: 'ET',
           name: 'Ethiopia (Ityop\x27iya)',
           label: 'Ethiopia (Ityop\x27iya)'
          },
         
          {countryCode: 'FK',
           name: 'Falkland Islands [Islas Malvinas]',
           label: 'Falkland Islands [Islas Malvinas]'
          },
         
          {countryCode: 'FO',
           name: 'Faroe Islands',
           label: 'Faroe Islands'
          },
         
          {countryCode: 'FJ',
           name: 'Fiji',
           label: 'Fiji'
          },
         
          {countryCode: 'FI',
           name: 'Finland (Suomi)',
           label: 'Finland (Suomi)'
          },
         
          {countryCode: 'FR',
           name: 'France',
           label: 'France'
          },
         
          {countryCode: 'GF',
           name: 'French Guiana',
           label: 'French Guiana'
          },
         
          {countryCode: 'PF',
           name: 'French Polynesia',
           label: 'French Polynesia'
          },
         
          {countryCode: 'TF',
           name: 'French Southern Territories',
           label: 'French Southern Territories'
          },
         
          {countryCode: 'GA',
           name: 'Gabon',
           label: 'Gabon'
          },
         
          {countryCode: 'GM',
           name: 'Gambia',
           label: 'Gambia'
          },
         
          {countryCode: 'GE',
           name: 'Georgia (საქართველო)',
           label: 'Georgia (საქართველო)'
          },
         
          {countryCode: 'DE',
           name: 'Germany (Deutschland)',
           label: 'Germany (Deutschland)'
          },
         
          {countryCode: 'GH',
           name: 'Ghana',
           label: 'Ghana'
          },
         
          {countryCode: 'GI',
           name: 'Gibraltar',
           label: 'Gibraltar'
          },
         
          {countryCode: 'GR',
           name: 'Greece (Ελλάς)',
           label: 'Greece (Ελλάς)'
          },
         
          {countryCode: 'GL',
           name: 'Greenland',
           label: 'Greenland'
          },
         
          {countryCode: 'GD',
           name: 'Grenada',
           label: 'Grenada'
          },
         
          {countryCode: 'GP',
           name: 'Guadeloupe',
           label: 'Guadeloupe'
          },
         
          {countryCode: 'GU',
           name: 'Guam',
           label: 'Guam'
          },
         
          {countryCode: 'GT',
           name: 'Guatemala',
           label: 'Guatemala'
          },
         
          {countryCode: 'GG',
           name: 'Guernsey',
           label: 'Guernsey'
          },
         
          {countryCode: 'GN',
           name: 'Guinea (Guinée)',
           label: 'Guinea (Guinée)'
          },
         
          {countryCode: 'GW',
           name: 'Guinea-Bissau (Guiné-Bissau)',
           label: 'Guinea-Bissau (Guiné-Bissau)'
          },
         
          {countryCode: 'GY',
           name: 'Guyana',
           label: 'Guyana'
          },
         
          {countryCode: 'HT',
           name: 'Haiti (Haïti)',
           label: 'Haiti (Haïti)'
          },
         
          {countryCode: 'HM',
           name: 'Heard Island and McDonald Islands',
           label: 'Heard Island and McDonald Islands'
          },
         
          {countryCode: 'HN',
           name: 'Honduras',
           label: 'Honduras'
          },
         
          {countryCode: 'HK',
           name: 'Hong Kong',
           label: 'Hong Kong'
          },
         
          {countryCode: 'HU',
           name: 'Hungary (Magyarország)',
           label: 'Hungary (Magyarország)'
          },
         
          {countryCode: 'IS',
           name: 'Iceland (Ísland)',
           label: 'Iceland (Ísland)'
          },
         
          {countryCode: 'IN',
           name: 'India',
           label: 'India'
          },
         
          {countryCode: 'ID',
           name: 'Indonesia',
           label: 'Indonesia'
          },
         
          {countryCode: 'IR',
           name: 'Iran (‫ایران‬‎)',
           label: 'Iran (‫ایران‬‎)'
          },
         
          {countryCode: 'IQ',
           name: 'Iraq (‫العراق‬‎)',
           label: 'Iraq (‫العراق‬‎)'
          },
         
          {countryCode: 'IE',
           name: 'Ireland',
           label: 'Ireland'
          },
         
          {countryCode: 'IM',
           name: 'Isle of Man',
           label: 'Isle of Man'
          },
         
          {countryCode: 'IL',
           name: 'Israel (‫ישראל‬‎)',
           label: 'Israel (‫ישראל‬‎)'
          },
         
          {countryCode: 'IT',
           name: 'Italy (Italia)',
           label: 'Italy (Italia)'
          },
         
          {countryCode: 'JM',
           name: 'Jamaica',
           label: 'Jamaica'
          },
         
          {countryCode: 'JP',
           name: 'Japan (日本)',
           label: 'Japan (日本)'
          },
         
          {countryCode: 'JE',
           name: 'Jersey',
           label: 'Jersey'
          },
         
          {countryCode: 'JO',
           name: 'Jordan (‫الاردن‬‎)',
           label: 'Jordan (‫الاردن‬‎)'
          },
         
          {countryCode: 'KZ',
           name: 'Kazakhstan (Қазақстан)',
           label: 'Kazakhstan (Қазақстан)'
          },
         
          {countryCode: 'KE',
           name: 'Kenya',
           label: 'Kenya'
          },
         
          {countryCode: 'KI',
           name: 'Kiribati',
           label: 'Kiribati'
          },
         
          {countryCode: 'KW',
           name: 'Kuwait (‫الكويت‬‎)',
           label: 'Kuwait (‫الكويت‬‎)'
          },
         
          {countryCode: 'KG',
           name: 'Kyrgyzstan (Кыргызстан)',
           label: 'Kyrgyzstan (Кыргызстан)'
          },
         
          {countryCode: 'LA',
           name: 'Laos (ນລາວ)',
           label: 'Laos (ນລາວ)'
          },
         
          {countryCode: 'LV',
           name: 'Latvia (Latvija)',
           label: 'Latvia (Latvija)'
          },
         
          {countryCode: 'LB',
           name: 'Lebanon (‫لبنان‬‎)',
           label: 'Lebanon (‫لبنان‬‎)'
          },
         
          {countryCode: 'LS',
           name: 'Lesotho',
           label: 'Lesotho'
          },
         
          {countryCode: 'LR',
           name: 'Liberia',
           label: 'Liberia'
          },
         
          {countryCode: 'LY',
           name: 'Libya (‫ليبيا‬‎)',
           label: 'Libya (‫ليبيا‬‎)'
          },
         
          {countryCode: 'LI',
           name: 'Liechtenstein',
           label: 'Liechtenstein'
          },
         
          {countryCode: 'LT',
           name: 'Lithuania (Lietuva)',
           label: 'Lithuania (Lietuva)'
          },
         
          {countryCode: 'LU',
           name: 'Luxembourg (Lëtzebuerg)',
           label: 'Luxembourg (Lëtzebuerg)'
          },
         
          {countryCode: 'MO',
           name: 'Macau',
           label: 'Macau'
          },
         
          {countryCode: 'MK',
           name: 'Macedonia [FYROM] (Македонија)',
           label: 'Macedonia [FYROM] (Македонија)'
          },
         
          {countryCode: 'MG',
           name: 'Madagascar (Madagasikara)',
           label: 'Madagascar (Madagasikara)'
          },
         
          {countryCode: 'MW',
           name: 'Malawi',
           label: 'Malawi'
          },
         
          {countryCode: 'MY',
           name: 'Malaysia',
           label: 'Malaysia'
          },
         
          {countryCode: 'MV',
           name: 'Maldives (‫ގުޖޭއްރާ ޔާއްރިހޫމްޖ‬‎)',
           label: 'Maldives (‫ގުޖޭއްރާ ޔާއްރިހޫމްޖ‬‎)'
          },
         
          {countryCode: 'ML',
           name: 'Mali',
           label: 'Mali'
          },
         
          {countryCode: 'MT',
           name: 'Malta',
           label: 'Malta'
          },
         
          {countryCode: 'MH',
           name: 'Marshall Islands',
           label: 'Marshall Islands'
          },
         
          {countryCode: 'MQ',
           name: 'Martinique',
           label: 'Martinique'
          },
         
          {countryCode: 'MR',
           name: 'Mauritania (‫موريتانيا‬‎)',
           label: 'Mauritania (‫موريتانيا‬‎)'
          },
         
          {countryCode: 'MU',
           name: 'Mauritius',
           label: 'Mauritius'
          },
         
          {countryCode: 'YT',
           name: 'Mayotte',
           label: 'Mayotte'
          },
         
          {countryCode: 'MX',
           name: 'Mexico (México)',
           label: 'Mexico (México)'
          },
         
          {countryCode: 'FM',
           name: 'Micronesia',
           label: 'Micronesia'
          },
         
          {countryCode: 'MD',
           name: 'Moldova',
           label: 'Moldova'
          },
         
          {countryCode: 'MC',
           name: 'Monaco',
           label: 'Monaco'
          },
         
          {countryCode: 'MN',
           name: 'Mongolia (Монгол Улс)',
           label: 'Mongolia (Монгол Улс)'
          },
         
          {countryCode: 'ME',
           name: 'Montenegro (Црна Гора)',
           label: 'Montenegro (Црна Гора)'
          },
         
          {countryCode: 'MS',
           name: 'Montserrat',
           label: 'Montserrat'
          },
         
          {countryCode: 'MA',
           name: 'Morocco (‫المغرب‬‎)',
           label: 'Morocco (‫المغرب‬‎)'
          },
         
          {countryCode: 'MZ',
           name: 'Mozambique (Moçambique)',
           label: 'Mozambique (Moçambique)'
          },
         
          {countryCode: 'MM',
           name: 'Myanmar [Burma] (Myanmar (Burma))',
           label: 'Myanmar [Burma] (Myanmar (Burma))'
          },
         
          {countryCode: 'NA',
           name: 'Namibia',
           label: 'Namibia'
          },
         
          {countryCode: 'NR',
           name: 'Nauru (Naoero)',
           label: 'Nauru (Naoero)'
          },
         
          {countryCode: 'NP',
           name: 'Nepal (नेपाल)',
           label: 'Nepal (नेपाल)'
          },
         
          {countryCode: 'NL',
           name: 'Netherlands (Nederland)',
           label: 'Netherlands (Nederland)'
          },
         
          {countryCode: 'AN',
           name: 'Netherlands Antilles',
           label: 'Netherlands Antilles'
          },
         
          {countryCode: 'NC',
           name: 'New Caledonia',
           label: 'New Caledonia'
          },
         
          {countryCode: 'NZ',
           name: 'New Zealand',
           label: 'New Zealand'
          },
         
          {countryCode: 'NI',
           name: 'Nicaragua',
           label: 'Nicaragua'
          },
         
          {countryCode: 'NE',
           name: 'Niger',
           label: 'Niger'
          },
         
          {countryCode: 'NG',
           name: 'Nigeria',
           label: 'Nigeria'
          },
         
          {countryCode: 'NU',
           name: 'Niue',
           label: 'Niue'
          },
         
          {countryCode: 'NF',
           name: 'Norfolk Island',
           label: 'Norfolk Island'
          },
         
          {countryCode: 'MP',
           name: 'Northern Mariana Islands',
           label: 'Northern Mariana Islands'
          },
         
          {countryCode: 'KP',
           name: 'North Korea (조선)',
           label: 'North Korea (조선)'
          },
         
          {countryCode: 'NO',
           name: 'Norway (Norge)',
           label: 'Norway (Norge)'
          },
         
          {countryCode: 'OM',
           name: 'Oman (‫عمان‬‎)',
           label: 'Oman (‫عمان‬‎)'
          },
         
          {countryCode: 'PK',
           name: 'Pakistan (‫پاکستان‬‎)',
           label: 'Pakistan (‫پاکستان‬‎)'
          },
         
          {countryCode: 'PW',
           name: 'Palau (Belau)',
           label: 'Palau (Belau)'
          },
         
          {countryCode: 'PS',
           name: 'Palestinian Territories',
           label: 'Palestinian Territories'
          },
         
          {countryCode: 'PA',
           name: 'Panama (Panamá)',
           label: 'Panama (Panamá)'
          },
         
          {countryCode: 'PG',
           name: 'Papua New Guinea',
           label: 'Papua New Guinea'
          },
         
          {countryCode: 'PY',
           name: 'Paraguay',
           label: 'Paraguay'
          },
         
          {countryCode: 'PE',
           name: 'Peru (Perú)',
           label: 'Peru (Perú)'
          },
         
          {countryCode: 'PH',
           name: 'Philippines (Pilipinas)',
           label: 'Philippines (Pilipinas)'
          },
         
          {countryCode: 'PN',
           name: 'Pitcairn Islands',
           label: 'Pitcairn Islands'
          },
         
          {countryCode: 'PL',
           name: 'Poland (Polska)',
           label: 'Poland (Polska)'
          },
         
          {countryCode: 'PT',
           name: 'Portugal',
           label: 'Portugal'
          },
         
          {countryCode: 'PR',
           name: 'Puerto Rico',
           label: 'Puerto Rico'
          },
         
          {countryCode: 'QA',
           name: 'Qatar (‫قطر‬‎)',
           label: 'Qatar (‫قطر‬‎)'
          },
         
          {countryCode: 'RE',
           name: 'Réunion',
           label: 'Réunion'
          },
         
          {countryCode: 'RO',
           name: 'Romania (România)',
           label: 'Romania (România)'
          },
         
          {countryCode: 'RU',
           name: 'Russia (Россия)',
           label: 'Russia (Россия)'
          },
         
          {countryCode: 'RW',
           name: 'Rwanda',
           label: 'Rwanda'
          },
         
          {countryCode: 'SH',
           name: 'Saint Helena',
           label: 'Saint Helena'
          },
         
          {countryCode: 'KN',
           name: 'Saint Kitts and Nevis',
           label: 'Saint Kitts and Nevis'
          },
         
          {countryCode: 'LC',
           name: 'Saint Lucia',
           label: 'Saint Lucia'
          },
         
          {countryCode: 'PM',
           name: 'Saint Pierre and Miquelon',
           label: 'Saint Pierre and Miquelon'
          },
         
          {countryCode: 'VC',
           name: 'Saint Vincent and the Grenadines',
           label: 'Saint Vincent and the Grenadines'
          },
         
          {countryCode: 'WS',
           name: 'Samoa',
           label: 'Samoa'
          },
         
          {countryCode: 'SM',
           name: 'San Marino',
           label: 'San Marino'
          },
         
          {countryCode: 'ST',
           name: 'São Tomé and Príncipe',
           label: 'São Tomé and Príncipe'
          },
         
          {countryCode: 'SA',
           name: 'Saudi Arabia (‫المملكة العربية السعودية‬‎)',
           label: 'Saudi Arabia (‫المملكة العربية السعودية‬‎)'
          },
         
          {countryCode: 'SN',
           name: 'Senegal (Sénégal)',
           label: 'Senegal (Sénégal)'
          },
         
          {countryCode: 'RS',
           name: 'Serbia (Србија)',
           label: 'Serbia (Србија)'
          },
         
          {countryCode: 'CS',
           name: 'Serbia and Montenegro (Србија и Црна Гора)',
           label: 'Serbia and Montenegro (Србија и Црна Гора)'
          },
         
          {countryCode: 'SC',
           name: 'Seychelles',
           label: 'Seychelles'
          },
         
          {countryCode: 'SL',
           name: 'Sierra Leone',
           label: 'Sierra Leone'
          },
         
          {countryCode: 'SG',
           name: 'Singapore (Singapura)',
           label: 'Singapore (Singapura)'
          },
         
          {countryCode: 'SK',
           name: 'Slovakia (Slovensko)',
           label: 'Slovakia (Slovensko)'
          },
         
          {countryCode: 'SI',
           name: 'Slovenia (Slovenija)',
           label: 'Slovenia (Slovenija)'
          },
         
          {countryCode: 'SB',
           name: 'Solomon Islands',
           label: 'Solomon Islands'
          },
         
          {countryCode: 'SO',
           name: 'Somalia (Soomaaliya)',
           label: 'Somalia (Soomaaliya)'
          },
         
          {countryCode: 'ZA',
           name: 'South Africa',
           label: 'South Africa'
          },
         
          {countryCode: 'GS',
           name: 'South Georgia and the South Sandwich Islands',
           label: 'South Georgia and the South Sandwich Islands'
          },
         
          {countryCode: 'KR',
           name: 'South Korea (한국)',
           label: 'South Korea (한국)'
          },
         
          {countryCode: 'ES',
           name: 'Spain (España)',
           label: 'Spain (España)'
          },
         
          {countryCode: 'LK',
           name: 'Sri Lanka',
           label: 'Sri Lanka'
          },
         
          {countryCode: 'SD',
           name: 'Sudan (‫السودان‬‎)',
           label: 'Sudan (‫السودان‬‎)'
          },
         
          {countryCode: 'SR',
           name: 'Suriname',
           label: 'Suriname'
          },
         
          {countryCode: 'SJ',
           name: 'Svalbard and Jan Mayen',
           label: 'Svalbard and Jan Mayen'
          },
         
          {countryCode: 'SZ',
           name: 'Swaziland',
           label: 'Swaziland'
          },
         
          {countryCode: 'SE',
           name: 'Sweden (Sverige)',
           label: 'Sweden (Sverige)'
          },
         
          {countryCode: 'CH',
           name: 'Switzerland (Schweiz)',
           label: 'Switzerland (Schweiz)'
          },
         
          {countryCode: 'SY',
           name: 'Syria (‫سوريا‬‎)',
           label: 'Syria (‫سوريا‬‎)'
          },
         
          {countryCode: 'TW',
           name: 'Taiwan (台灣)',
           label: 'Taiwan (台灣)'
          },
         
          {countryCode: 'TJ',
           name: 'Tajikistan (Тоҷикистон)',
           label: 'Tajikistan (Тоҷикистон)'
          },
         
          {countryCode: 'TZ',
           name: 'Tanzania',
           label: 'Tanzania'
          },
         
          {countryCode: 'TH',
           name: 'Thailand (ราชอาณาจักรไทย)',
           label: 'Thailand (ราชอาณาจักรไทย)'
          },
         
          {countryCode: 'TL',
           name: 'Timor-Leste',
           label: 'Timor-Leste'
          },
         
          {countryCode: 'TG',
           name: 'Togo',
           label: 'Togo'
          },
         
          {countryCode: 'TK',
           name: 'Tokelau',
           label: 'Tokelau'
          },
         
          {countryCode: 'TO',
           name: 'Tonga',
           label: 'Tonga'
          },
         
          {countryCode: 'TT',
           name: 'Trinidad and Tobago',
           label: 'Trinidad and Tobago'
          },
         
          {countryCode: 'TN',
           name: 'Tunisia (‫تونس‬‎)',
           label: 'Tunisia (‫تونس‬‎)'
          },
         
          {countryCode: 'TR',
           name: 'Turkey (Türkiye)',
           label: 'Turkey (Türkiye)'
          },
         
          {countryCode: 'TM',
           name: 'Turkmenistan (Türkmenistan)',
           label: 'Turkmenistan (Türkmenistan)'
          },
         
          {countryCode: 'TC',
           name: 'Turks and Caicos Islands',
           label: 'Turks and Caicos Islands'
          },
         
          {countryCode: 'TV',
           name: 'Tuvalu',
           label: 'Tuvalu'
          },
         
          {countryCode: 'UM',
           name: 'U.S. Minor Outlying Islands',
           label: 'U.S. Minor Outlying Islands'
          },
         
          {countryCode: 'VI',
           name: 'U.S. Virgin Islands',
           label: 'U.S. Virgin Islands'
          },
         
          {countryCode: 'UG',
           name: 'Uganda',
           label: 'Uganda'
          },
         
          {countryCode: 'UA',
           name: 'Ukraine (Україна)',
           label: 'Ukraine (Україна)'
          },
         
          {countryCode: 'AE',
           name: 'United Arab Emirates (‫الإمارات العربيّة المتّحدة‬‎)',
           label: 'United Arab Emirates (‫الإمارات العربيّة المتّحدة‬‎)'
          },
         
          {countryCode: 'GB',
           name: 'United Kingdom',
           label: 'United Kingdom'
          },
         
          {countryCode: 'US',
           name: 'United States',
           label: 'United States'
          },
         
          {countryCode: 'UY',
           name: 'Uruguay',
           label: 'Uruguay'
          },
         
          {countryCode: 'UZ',
           name: 'Uzbekistan (O\x27zbekiston)',
           label: 'Uzbekistan (O\x27zbekiston)'
          },
         
          {countryCode: 'VU',
           name: 'Vanuatu',
           label: 'Vanuatu'
          },
         
          {countryCode: 'VA',
           name: 'Vatican City (Città del Vaticano)',
           label: 'Vatican City (Città del Vaticano)'
          },
         
          {countryCode: 'VE',
           name: 'Venezuela',
           label: 'Venezuela'
          },
         
          {countryCode: 'VN',
           name: 'Vietnam (Việt Nam)',
           label: 'Vietnam (Việt Nam)'
          },
         
          {countryCode: 'WF',
           name: 'Wallis and Futuna',
           label: 'Wallis and Futuna'
          },
         
          {countryCode: 'EH',
           name: 'Western Sahara (‫الصحراء الغربية‬‎)',
           label: 'Western Sahara (‫الصحراء الغربية‬‎)'
          },
         
          {countryCode: 'YE',
           name: 'Yemen (‫اليمن‬‎)',
           label: 'Yemen (‫اليمن‬‎)'
          },
         
          {countryCode: 'ZM',
           name: 'Zambia',
           label: 'Zambia'
          },
         
          {countryCode: 'ZW',
           name: 'Zimbabwe',
           label: 'Zimbabwe'
          }
         ]);
    if (!recoveryPhone.value && callingCode != 1) {
      recoveryPhone.value = '+' + callingCode;
    }

    var countryCodeDropDownElement = G_numberInputWidget.getElement()
        .getElementsByTagName('th')[0]
        .getElementsByTagName('div')[0];
    setJfkAccessibleTitle(countryCodeDropDownElement, 'RecoveryPhoneNumberLabel');

    
    recoveryPhoneCountry.value = G_getPhoneCountryCode().toUpperCase();
    gaia_attachEvent(recoveryPhone, 'blur', function() {
      recoveryPhoneCountry.value = G_getPhoneCountryCode().toUpperCase();
    });
  };

  gaia_renderPhoneInput();
  

  var gaia_getNonDefaultPhoneInputValue = function() {
    var defaultValue = '+' + G_getPhoneCallingCode();
    var value = inputHolders.recoveryPhone.value().replace(/\s+/g, '');
    if (defaultValue == value) {
      return '';
    } else {
      return value;
    }
  };

  var gaia_phoneNumberOnSubmit = function() {
    inputHolders.recoveryPhone.inputForValue.value =
        gaia_getNonDefaultPhoneInputValue();
  };

  

  function registerValidationHandler(inputs,
                                     validateInputFunction,
                                     getValuesAsJsonFunction,
                                     handleValidationErrorDataFunction) {

    function handleValidationResponse(response, input) {
      if (response.status == 200) {
        var data = eval('(' + response.text + ')');
        if (data.input01.Valid == 'false') {
          input.setErrorMessage(data.input01.ErrorMessage);
          if (handleValidationErrorDataFunction) {
            handleValidationErrorDataFunction(data.input01.ErrorData);
          }
        }
      }
    }

    function validate(input) {
      return function() {
        if (!validateInputFunction(input)) {
          return;
        }
        for (var i = 0; i < inputs.length; i++) {
          if (inputs[i].isNullOrEmpty()) {
            return;
          }
        }
        if (getValuesAsJsonFunction) {
          var valuesAsJson = getValuesAsJsonFunction();
          if (valuesAsJson) {
            G_validateInput(valuesAsJson, function(response) {
                handleValidationResponse(response, input);
              }, 'en', 'youtube');
          }
        }
      };
    }

    for (var i = 0; i < inputs.length; i++) {
      var input = inputs[i];
      input.attachValidationHandler(validate(input));
    }

  }

  function getFirstInputWithError(inputs) {
    for (var i = 0; i < inputs.length; i++) {
      if (inputs[i].hasErrorMessage()) {
        return inputs[i];
      }
    }
  }

  function removeDuplicateErrorMessages(input, inputs) {
    if (input && input.hasErrorMessage()) {
      var thisErrorMessage = input.getErrorMessage();
      for (var i = 0; i < inputs.length; i++) {
        if (inputs[i].id() != input.id()) {
          if (thisErrorMessage == inputs[i].getErrorMessage()) {
            inputs[i].error.style.display = 'none';
          }
        }
      }
    }
  }

  function registerRemoveDuplicateErrorMessagesHandler(inputs) {
    for (var i = 0; i < inputs.length; i++) {
      inputs[i].attachRemoveDuplicateErrorsHandler(function(input) {
        removeDuplicateErrorMessages(input, inputs);
      });
    }
  }


  var gaia_initValidation = function() {
    var inputEmptyErrorMessage =
        'You can\x27t leave this empty.';

    function defaultValidateInputFunction() {
      return function(input) {
        if (input.isNullOrEmpty()) {
          input.setErrorMessage(inputEmptyErrorMessage);
          return false;
        }
        return true;
      };
    }

    var nameFormats = {'firstname' : inputHolders.firstName, 'lastname' : inputHolders.lastName };
    var nameInputs = [
        nameFormats['firstname'],
        nameFormats['lastname']];
    registerValidationHandler(
        nameInputs,
        defaultValidateInputFunction());
    registerRemoveDuplicateErrorMessagesHandler(nameInputs);
    removeDuplicateErrorMessages(getFirstInputWithError(nameInputs), nameInputs)

    registerValidationHandler(
        [inputHolders.passwd],
        defaultValidateInputFunction(),
        function() {
          var json = {};
          json['Input'] = 'Passwd';
          json['Passwd'] = inputHolders.passwd.value();
          json['PasswdAgain'] = inputHolders.passwd.value();
          if (inputHolders.firstName.isNullOrEmpty()) {
            json['FirstName'] = inputHolders.firstName.value();
          }
          if (inputHolders.lastName.isNullOrEmpty()) {
            json['LastName'] = inputHolders.lastName.value();
          }
          if (inputHolders.gmailAddress.isNullOrEmpty()) {
            json['GmailAddress'] = inputHolders.gmailAddress.value();
          }
          return json;
        });

    registerValidationHandler(
        [inputHolders.passwdAgain],
        function(input) {
          if (inputHolders.passwd.isNullOrEmpty() && inputHolders.passwdAgain.isNullOrEmpty()) {
            inputHolders.passwdAgain.setErrorMessage(inputEmptyErrorMessage);
            return false;
          }
          if (inputHolders.passwd.value() != inputHolders.passwdAgain.value()) {
            inputHolders.passwdAgain.setErrorMessage('These passwords don\x27t match. Try again?');
            return false;
          }
          return true;
        });

    
    inputHolders.passwd.attachEvent('keydown',
      function() {
        inputHolders.passwdAgain.clearErrorMessage();
        inputHolders.passwdAgain.inputForValue.value = '';
      });

    var birthDateFormats = {
        'day' : inputHolders.birthDay,
        'month' : inputHolders.birthMonth,
        'year' : inputHolders.birthYear};
    var birthDateInputs = [
        birthDateFormats['month'],
        birthDateFormats['day'],
        birthDateFormats['year']];
    registerValidationHandler(
        birthDateInputs,
        defaultValidateInputFunction(),
        function() {
          return {
            'Input' : 'Birthday',
            'BirthDay' : inputHolders.birthDay.value(),
            'BirthMonth' : inputHolders.birthMonth.value(),
            'BirthYear' : inputHolders.birthYear.value()
          }
        });
    registerRemoveDuplicateErrorMessagesHandler(birthDateInputs);
    removeDuplicateErrorMessages(getFirstInputWithError(birthDateInputs), birthDateInputs);

    registerValidationHandler(
        [inputHolders.gender],
        defaultValidateInputFunction());

    registerValidationHandler(
        [inputHolders.recoveryPhone],
        function(input) {
          return gaia_getNonDefaultPhoneInputValue() ? true : false;
        },
        function() {
          var countryInput = document.getElementById('RecoveryPhoneCountry');
          return {
            'Input' : 'RecoveryPhoneNumber',
            'RecoveryPhoneNumber' : gaia_getNonDefaultPhoneInputValue(),
            'RecoveryPhoneCountry' : countryInput.value
          }
        });

    registerValidationHandler(
        [inputHolders.recoveryEmail],
        function(input) {
          return !input.isNullOrEmpty();
        },
        function() {
          return {
            'Input' : 'RecoveryEmailAddress',
            'RecoveryEmailAddress' : inputHolders.recoveryEmail.value(),
            'GmailAddress' : inputHolders.gmailAddress.value()
          }
        });

    var gmailAddressErrormsgAndSuggestionsDiv = document.getElementById('username-errormsg-and-suggestions');
    var gmailAddressSuggestionsDiv = document.getElementById('username-suggestions');
    registerValidationHandler(
        [inputHolders.gmailAddress],
        defaultValidateInputFunction(),
        function() {
          return {
            'Input' : 'GmailAddress',
            'GmailAddress' : inputHolders.gmailAddress.value(),
            'FirstName' : inputHolders.firstName.value(),
            'LastName' : inputHolders.lastName.value()
          }
        },
        function(errorData) {
          gmailAddressErrormsgAndSuggestionsDiv.style.display = '';
          gmailAddressErrormsgAndSuggestionsDiv.setAttribute('role', 'alert');
          var suggestions = eval('(' + errorData + ')');
          if (suggestions.length > 0) {
  gmailAddressSuggestionsDiv.style.display = 'block';
  gmailAddressSuggestionsDiv.innerHTML = 'Available: ';
  for (var i = 0; i < Math.min(suggestions.length, 3); i++) {
              var anchor = document.createElement('a');
              anchor.innerHTML = suggestions[i];
              anchor.href = '';
              anchor.onclick = selectUsernameSuggestionFunction(suggestions[i]);
              gmailAddressSuggestionsDiv.appendChild(anchor);
            }
          }
        });

    function selectUsernameSuggestionFunction(username) {
      return function() {
        inputHolders.gmailAddress.inputForValue.focus();
        inputHolders.gmailAddress.inputForValue.value = username;
        gmailAddressErrormsgAndSuggestionsDiv.style.display = 'none';
        return false;
      };
    }

    inputHolders.gmailAddress.attachRemoveErrorHandler(function() {
        gmailAddressSuggestionsDiv.style.display = 'none';
    });
    inputHolders.gmailAddress.attachEvent('blur', function() {
      var username = inputHolders.gmailAddress.inputForValue.value;
      if (username && username.indexOf('@gmail.com') > 0) {
  inputHolders.gmailAddress.inputForValue.value =
  username.substring(0, username.indexOf('@gmail.com'));
  }
  });
  var gmailAddressSuggestions = gmailAddressSuggestionsDiv.getElementsByTagName('a');
  if (gmailAddressSuggestions) {
  for (var i = 0; i < gmailAddressSuggestions.length; i++) {
        gmailAddressSuggestions[i].onclick =
            selectUsernameSuggestionFunction(gmailAddressSuggestions[i].innerHTML);
      }
    }

    var validateTermsOfService = function() {
      if (inputHolders.termsOfService.inputForId.checked) {
        inputHolders.termsOfService.clearErrorMessage();
        return true;
      } else {
        inputHolders.termsOfService.setErrorMessage(
            'In order to use our services, you must agree to Google\x27s Terms of Service.');
        return false;
      }
    };
    registerValidationHandler(
        [inputHolders.termsOfService], validateTermsOfService);
    inputHolders.termsOfService.attachEvent('click', validateTermsOfService);
    
    gaia_onSubmitValidationHandlers.push(validateTermsOfService);

  };

  
  gaia_initValidation();
  

</script>
<script type="text/javascript">
  document.getElementsByTagName('body')[0].appendChild(function() {
  var styleTag = document.createElement('style');
  styleTag.type = 'text/css';
  styleTag.cssText = '.recaptcha_is_building_widget {display: none;}';
  return styleTag;
  }());
  var RecaptchaOptions = {
  lang: 'en',
  theme: 'custom',
  custom_theme_widget: 'recaptcha_widget',
  callback: function() {
  try {
  var toAudio = document.getElementById('recaptcha_switch_audio_btn');
  if (toAudio) {
  toAudio.href = 'javascript:Recaptcha.switch_type(\'audio\');';
  toAudio.removeAttribute('target');
  }
  var toImage = document.getElementById('recaptcha_switch_img_btn');
  if (toImage) {
  toImage.href = 'javascript:Recaptcha.switch_type(\'image\');';
  }
  var help = document.getElementById('recaptcha_whatsthis_btn');
  if (help) {
  help.href = 'javascript:Recaptcha.showhelp()';
  help.removeAttribute('target');
  }
  Recaptcha._css_toggle('recaptcha_is_building_widget', '', 0);
  } catch (err) {}
  }
  };
</script>
<script type="text/javascript">
  var RecaptchaState = {site:'6LeHF8USAAAAAOa_HdcHcf3ZR_-kUoehaUFfOcZW',challenge:'03AHJ_VuuuITxT9lSeR7LGe7Mo8HZw1m2BqoNs90Eta6URTWTnc6MepOgO8JGUHXDGhUXy2nbUMFYKlyTACkBYE0TausL0YEL0QVMQf80vmBK8sAQVyLu5CwbZcGzE1NqVeAo7fj7D63XiRLCMiBA3RGG9nzWZBHTTqw',is_incorrect:false,programming_error:'',error_message:'error_message_value',server:'https://www.google.com/recaptcha/api/',timeout:1800};
</script>
<script src="//www.google.com/recaptcha/api/js/recaptcha.js" type="text/javascript"></script>
  <script type="text/javascript">
  var gaia_initCaptchaErrorRemoval = function() {
  var recaptcha = document.getElementById('recaptcha_response_field');
  var gaia_removeCaptchaErrorMessage = function() {
  var recaptchaErrorMessage = document.getElementById('errormsg_0_signupcaptcha');
  if (recaptchaErrorMessage) {
  while (recaptchaErrorMessage.childNodes.length > 0) {
  recaptchaErrorMessage.removeChild(recaptchaErrorMessage.firstChild);
  }
  }
  recaptcha.className = recaptcha.className.substring(0, recaptcha.className.indexOf('form-error'));
  };
  gaia_attachEvent(recaptcha, 'focus', function(){ gaia_removeCaptchaErrorMessage() });
  gaia_attachEvent(recaptcha, 'keydown', function(){ gaia_removeCaptchaErrorMessage() });
  gaia_attachEvent(recaptcha, 'click', function(){ gaia_removeCaptchaErrorMessage() });
  };
  gaia_initCaptchaErrorRemoval();
  </script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-992684-1']);
  _gaq.push(['_setDomainName', 'accounts.google.com']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_addIgnoredRef', 'mail.google.com']);
  _gaq.push(['_setAllowAnchor', true]);
  _gaq.push(['_trackPageview', '/SignUp']);
  (function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
  })();
</script>
  </body>
</html>
error logging in