<script type="text/javascript">
  var temp = location.host.split('.').reverse();
  var root_domain = temp[1] + '.' + temp[0];
</script >