var oas='http://ads1.sptimes.com/RealMedia/ads/';
//var sitepage = "www.sptimes.com/homepage2.shtml";
var RN = new String (Math.random());
var RNS = RN.substring (2, 11);
var _version = 10;

<!-- here is the ad insertion function -->
function DisplayAds (position, width, height, sitepage) {
//	var oaspage= sitepage + '/1' + RNS + '@' + position;
	var oaspage= sitepage + '@' + position;
	if (_version < 11) {
		document.write ('<A HREF="' + oas + 'click_nx.cgi/'+ oaspage + '" TARGET="_top" ><IMG SRC="' + oas + 'adstream_nx.cgi/' + oaspage + '" BORDER="0"></a>');
	} else {
		document.write ('<SCRIPT LANGUAGE="JavaScript1.1" SRC="' + oas + 'adstream_jx.ads/' + oaspage + '" border=0>');
		document.write ('\<\!-- --\>');
		document.write ('\<\/SCRIPT\>');
		document.write ('\<\!-- --\>');
	}
}
