

//configuration
OAS_url = 'http://oasc02063.247realmedia.com/RealMedia/ads/';
OAS_sitepage = encodeURI('www.tablethotels.com/Hotel');
OAS_listpos = encodeURI('Top,Right1');
OAS_query = encodeURI('lang_en&amp;New Zealand&amp;North Island&amp;Bay of Islands');
OAS_target = '_top';
//end of configuration

OAS_version = 10;
OAS_rn = '001234567890'; OAS_rns = '1234567890';
OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);

OAS_offload = true;
function OAS_NORMAL(pos) {
  document.write('<a href="' + OAS_url + 'click_nx.ads/' + 
      OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + 
      '" target=' + OAS_target + '>');
  document.write('<img src="' + OAS_url + 'adstream_nx.ads/' + 
      OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + 
      '" border=0></A>');
}

OAS_version = 11;
if ((navigator.userAgent.indexOf('Mozilla/3') != -1) || (navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1))
  OAS_version = 10;

var loadString = '<SCR' + 'IPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/SCRIPT>';
if (OAS_version >= 11) {
    if (OAS_offload) {
        Writes.waitingToWrite.push(function() {
            document.write(loadString);
        });
    } else {
        document.write(loadString);
    }
}
document.write('');
function OAS_AD(pos, id) {
  id = (id.constructor == String) ? document.getElementById(id):id;
  var richString = '<script type="text/javascript">OAS_RICH("' + pos + '");</script>';
  var normalString = '<script type="text/javascript">OAS_NORMAL("' + pos + '");</script>';
  if (OAS_offload) {
      if (OAS_version >= 11) {
        Writes.waitingToWrite.push(function() {
            document.write.apply(id, [richString]);
            id = null;
        });
      } else {
        Writes.waitingToWrite.push(function() {
            document.write.apply(id, [normalString]);
            id = null;
        });
      }
  } else {
      if (OAS_version >= 11) {
          document.write(richString);
      } else {
          document.write(normalString);
      }
  }
}
