// Code generated by Mathachan Joseph Kulathinal
// This code displays Ads on the web page from the
// ADSERVER using OPEN ADSTREAM from RealMedia, Inc.
//
function displayAd(sitepage,position)
{
  var _version=11;
  if (navigator.userAgent.indexOf('Mozilla/3') != -1){
    _version=10;}
  // IP Address of the ADSERVER
  var server = 'ad01.mediacorpsingapore.com';
  // var server = '202.172.236.75';
  if (! (RN)) {
    var RN = new String (Math.random());
    var RNS = RN.substring (2, 11);
  }
  var oas='http://' + server + '/RealMedia/ads/';
  var oaspage= sitepage + '/1' + RNS + '@' + position;
  if (_version < 11)
  {
    document.write ('<A HREF="' + oas + 'click_nx.ads/'+ oaspage + '" TARGET="_top" ><IMG SRC="' + oas + 'adstream_nx.ads/' + oaspage + '"  BORDER="0"  WIDTH="468" HEIGHT="60"  ALT="Click me......" ></a>');
  }
  else
  {
    document.write ('<SCRIPT LANGUAGE="JavaScript1.1" SRC="' + oas + 'adstream_jx.ads/' + oaspage + '">');
    document.write ('\<\!-- --\>');
    document.write ('\<\/SCRIPT\>');
    document.write ('\<\!-- --\>');
  }
} // end Function