//start config

//Check for SSL connection & set OAS_Url to secure connection if needed (avoids popup dialog for unsecure item when serving from SSL)
if(window.location.protocol == 'http:')
{OAS_url ='http://oascentral.blackbox.com/RealMedia/ads/';}
else
{OAS_url ='https://oasc05.247Realmedia.com/RealMedia/ads/';}

//Totally static - these will never change
OAS_version = 10;
OAS_rn = '001234567890'; OAS_rns = '1234567890';
OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);

//other config information: OAS_sitepage, OAS_listpos, OAS_query must be created and assigned value BEFORE this script inserted

//end config

//Simpler function to support browsers with out-of-date JavaScript
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>');
}

//check for Javascript version and write a java script tag with src to RealMedia (This is their function)
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>');}
		

function OAS_AD(pos) {
  if (OAS_version >= 11)
    {OAS_RICH(pos);}
  else
    {OAS_NORMAL(pos);}
}