function Args () {
  var caller = this.findCaller();
  var qString = caller.src.replace(/^[^\?]+\??/,'');
  if ( qString ) {
     this.queryString = qString;
     this.params = this.parseArgs();
  }
}

Args.prototype.findCaller = function () {
  var scripts = document.getElementsByTagName('script');
  return scripts[ scripts.length - 1 ];
}

Args.prototype.parseArgs = function () {
  var Params = new Object ();
  var query = this.queryString;
  if ( ! query ) return Params;
  var Pairs = query.split('&')
  for ( var i = 0; i < Pairs.length; i++ ) {
    var KeyVal = Pairs[i].split('=');
    if ( ! KeyVal.length == 2 ) continue;
    if ( ! ( KeyVal[0] || KeyVal[1] ) ) continue;
    var key = unescape( KeyVal[0] );
    var val = unescape( KeyVal[1] );
    val = val.replace(/\+/g, ' ');
    val = val.replace(/&/g, '&amp;');
    val = val.replace(/>/g, '&gt;');
    val = val.replace(/</g, '&lt;');
    Params[key] = val;
  }
  return Params;
}

// Now we can construct objects
var args = new Args();
var params = args.params;

var source = window.location.href;
var adHost = (("https:" == document.location.protocol) ? "https://" : "http://");
var dark   = ((params['dark'] == undefined) ? "" : "dark=1&");
var iframe_url = adHost + 'newleaders.com/zones/'+params['zone']+'/serve?'+ dark +'source=' + source;
document.write('<iframe src="'+iframe_url+'" name="NLad" id="NLad" width="196" height="150" frameborder="0" allowtransparency="0" style="border:none"></iframe>');