{
  function startsWith( s, prefix )
  {
    return s.substring( 0, prefix.length ) == prefix;
  }

  var url = window.location.href;
  var child=-1;

  var prefixes = {
    "http://dsc.discovery.com/?clik=www_nav_dsc":3481,
    "http://tlc.discovery.com/?clik=www_nav_tlc":3482,
    "http://animal.discovery.com/?clik=www_nav_apl":3483,
    "http://health.discovery.com/?clik=www_nav_dhc":3484,
    "http://health.discovery.com/?clik=www_nav_dhc":3485,
    "http://science.discovery.com/?clik=www_nav_sci":3486,
    "http://times.discovery.com/?clik=www_nav_dtc":3501,
    "http://kids.discovery.com/?clik=www_nav_kids":3502
  };

  for (nurl in prefixes) {
    if (startsWith( url, nurl )) {
      child = prefixes[nurl];
      break;
    }
  }

  if (child!=-1) {
    document.write( '<scr'+'ipt src="http://content.dl-rms.com/rms/'+child+'/nodetag.js"></scr'+'ipt>' );
  }
}
