var oas='http://oascentral.bostonphoenix.com/RealMedia/ads/';
var sitepage = "www.bostonphoenix.com/" + strPageOrSection;
//var sitepage = document.sitenameform.sitename.value;
var RN = new String (Math.random());
var RNS = RN.substring (2, 11);

//Start OAS MJX Configuration Code


//configuration
OAS_url = 'http://oascentral.bostonphoenix.com/RealMedia/ads/';
//OAS_sitepage = window.location.hostname + window.location.pathname;
OAS_sitepage = 'www.bostonphoenix.com/' + strPageOrSection;
OAS_listpos = 'Top,Right1,Right2,Right3,x31,x32,x30,Position1,Position2,Position3,Position4,Middle1';
OAS_query = '';
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);
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;
if (OAS_version >= 11)
  document.write('<SCR' + 'IPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/SCRIPT>');//-->


document.write('');
function OAS_AD(pos) {
  if (OAS_version >= 11)
    OAS_RICH(pos);
  else
    OAS_NORMAL(pos);
}


//End OAS MJX Configuration Code

function DisplayAds (position, width, height)
{

if (position.indexOf("!") == -1 ) {
	OAS_AD(position);
} else {
	var positionArray = position.split("!");
	OAS_AD(positionArray[positionArray.length - 1]);
}

/*
var oaspage= sitepage + '/1' + RNS + '@' + position;
if (_version < 11) {
document.write ('<A HREF="' + oas + 'click_nx.cgi/'+ oaspage + '" TARGET="_top" ><IMG SRC="' + oas + 'adstream_nx.cgi/' + oaspage + '" BORDER="0" WIDTH="' + width + '" HEIGHT="' + height + '"></a>');
} else {
document.write ('<SCRIPT LANGUAGE="JavaScript1.1" SRC="' + oas + 'adstream_jx.cgi/' + oaspage + '">\<\/SCRIPT\>');
}
*/
}

