function OAS_RICH(position) {
if (position == 'BannerTop') {
document.write ('<A HREF="http://ads7.udc.advance.net/RealMedia/ads/click_lx.ads/www.nj.com/books/ledger/index.ssf/1267968356/BannerTop/NJONLINE/WORLDWONDER03NJ03/worldwonder_bnr2.gif/34346131353865613433346632646130" target="_blank"><IMG SRC="http://ads7.udc.advance.net/RealMedia/ads/Creatives/NJONLINE/WORLDWONDER03NJ03/worldwonder_bnr2.gif"  WIDTH=468 HEIGHT=60 ALT=""  BORDER="0"></A>');
}
if (position == 'Popup') {
document.write ('<!-- NJONLINE/6THAVENUE01NJ04 -->\n');
document.write ('<SCRIPT LANGUAGE="JavaScript1.1" src="/cgi-bin/donotcount/formatp.cgi/dhtml/jspop/jspop.ata?NAME=PAIDPOP&EXP=1"></script>\n');
document.write ('<script type="text/javascript">\n');
document.write ('/* User-configurable globals */\n');
document.write ('var sl_animSteps=60;\n');
document.write ('var sl_msBetweenSteps=5;\n');
document.write ('var sl_timeToLive=10000;\n');
document.write ('var sl_bgImage=');
document.write ("'");
document.write ('http://ads.advance.net/RealMedia/ads/Creatives/ADVANCE/IMAGEHOLDER_SLIDER/slider_bg.gif');
document.write ("'");
document.write (';\n');
document.write ('var sl_bgImageWidth=329;\n');
document.write ('var sl_bgImageHeight=325;\n');
document.write ('var sl_closeImage=');
document.write ("'");
document.write ('http://ads.advance.net/RealMedia/ads/Creatives/ADVANCE/IMAGEHOLDER_SLIDER/slider_close.gif');
document.write ("'");
document.write (';\n');
document.write ('var sl_closeImageWidth=96;\n');
document.write ('var sl_closeImageHeight=21;\n');
document.write ('var sl_closeTop=6;\n');
document.write ('var sl_closeLeft=228;\n');
document.write ('var sl_topPad=230;\n');
document.write ('var sl_leftPad=0;\n');
document.write ('var sl_adTop=52;\n');
document.write ('var sl_adLeft=15;\n');
document.write ('\n');
document.write ('var sl_adContent=');
document.write ("'");
document.write ('<a target=_blank href=http://ads.advance.net/RealMedia/ads/click_lx.ads/www.nj.com/books/ledger/index.ssf/389249990/Popup/NJONLINE/6THAVENUE01NJ04/6THAVE0104SL_DLY.html/34346131353865613433346632646130?389249990><img src=http://ads.advance.net/RealMedia/ads/Creatives/NJONLINE/6THAVENUE01NJ04/in_story.jpg border=0></A>');
document.write ("'");
document.write (';\n');
document.write ('\n');
document.write ('/* Internal globals (don');
document.write ("'");
document.write ('t touch) */\n');
document.write ('var sl_adID=');
document.write ("'");
document.write ('sl_AdDiv');
document.write ("'");
document.write ('; \n');
document.write ('var sl_animCounter=1;\n');
document.write ('var sl_intervalHandle;\n');
document.write ('var sl_timeoutHandle;\n');
document.write ('var sl_hiddenElemsArray = new Array();\n');
document.write ('\n');
document.write ('function sl_init() {\n');
document.write ('	if (!document.getElementById) return;\n');
document.write ('	document.write(');
document.write ("'");
document.write ('<div id="');
document.write ("'");
document.write (' + sl_adID + ');
document.write ("'");
document.write ('" style="z-index: 150; position: absolute; left: -');
document.write ("'");
document.write (' + sl_bgImageWidth + ');
document.write ("'");
document.write ('px; top: ');
document.write ("'");
document.write (' + sl_topPad + ');
document.write ("'");
document.write ('px; width: ');
document.write ("'");
document.write (' + sl_bgImageWidth + ');
document.write ("'");
document.write ('px; height=');
document.write ("'");
document.write (' + sl_bgImageHeight + ');
document.write ("'");
document.write ('px;"><i');
document.write ("'");
document.write (' + ');
document.write ("'");
document.write ('mg src="');
document.write ("'");
document.write (' + sl_bgImage + ');
document.write ("'");
document.write ('" height=');
document.write ("'");
document.write (' + sl_bgImageHeight + ');
document.write ("'");
document.write (' width=');
document.write ("'");
document.write (' + sl_bgImageWidth + ');
document.write ("'");
document.write ('><div style="position: absolute; left: ');
document.write ("'");
document.write (' + sl_closeLeft + ');
document.write ("'");
document.write ('; top: ');
document.write ("'");
document.write (' + sl_closeTop + ');
document.write ("'");
document.write (';"><a href="#" onclick="return sl_clear()"><i');
document.write ("'");
document.write (' + ');
document.write ("'");
document.write ('mg src="');
document.write ("'");
document.write (' + sl_closeImage + ');
document.write ("'");
document.write ('" width=');
document.write ("'");
document.write (' + sl_closeImageWidth + ');
document.write ("'");
document.write (' height=');
document.write ("'");
document.write (' + sl_closeImageHeight + ');
document.write ("'");
document.write (' border=0></a></div><div style="position: absolute; top: ');
document.write ("'");
document.write (' + sl_adTop + ');
document.write ("'");
document.write ('; left: ');
document.write ("'");
document.write (' + sl_adLeft + ');
document.write ("'");
document.write (';">');
document.write ("'");
document.write (' + sl_adContent + ');
document.write ("'");
document.write ('</div></div>');
document.write ("'");
document.write (');\n');
document.write ('}\n');
document.write ('\n');
document.write ('function sl_animate() {\n');
document.write ('	var newLeft=Math.round(sl_animCounter * (sl_bgImageWidth  + sl_leftPad) / sl_animSteps - sl_bgImageWidth);\n');
document.write ('	document.getElementById(sl_adID).style.left = newLeft;\n');
document.write ('	sl_animCounter++;\n');
document.write ('	if (sl_animCounter > sl_animSteps) {\n');
document.write ('		window.clearInterval(sl_intervalHandle);\n');
document.write ('		sl_timeoutHandle=window.setTimeout(');
document.write ("'");
document.write ('sl_clear()');
document.write ("'");
document.write (',sl_timeToLive);\n');
document.write ('	}\n');
document.write ('}\n');
document.write ('\n');
document.write ('function sl_onload() {\n');
document.write ('	for (x=0; x<document.forms.length; x++) {\n');
document.write ('		for (y=0; y<document.forms[x].elements.length; y++) {\n');
document.write ('			var z = document.forms[x].elements[y];\n');
document.write ('			if (z.tagName == ');
document.write ("'");
document.write ('SELECT');
document.write ("'");
document.write (' || z.tagName == ');
document.write ("'");
document.write ('TEXTAREA');
document.write ("'");
document.write (') {\n');
document.write ('				var sl_BoxLeft=sl_getLeft(z);\n');
document.write ('				var sl_BoxTop=sl_getTop(z);\n');
document.write ('				var sl_BoxBottom=sl_BoxTop + z.offsetHeight;\n');
document.write ('				if (sl_BoxLeft<(sl_leftPad+sl_bgImageWidth) && sl_BoxBottom > sl_topPad && sl_BoxTop < (sl_topPad+sl_bgImageHeight)) {\n');
document.write ('					sl_hiddenElemsArray[sl_hiddenElemsArray.length]=new Array(z,z.style.visibility);\n');
document.write ('					z.style.visibility=');
document.write ("'");
document.write ('hidden');
document.write ("'");
document.write (';\n');
document.write ('				}\n');
document.write ('			}\n');
document.write ('		}\n');
document.write ('	}\n');
document.write ('	sl_intervalHandle=window.setInterval(');
document.write ("'");
document.write ('sl_animate()');
document.write ("'");
document.write (',sl_msBetweenSteps);\n');
document.write ('}\n');
document.write ('\n');
document.write ('function sl_clear() {\n');
document.write ('	var s=document.getElementById(sl_adID).style;\n');
document.write ('	s.left=-sl_bgImageWidth;\n');
document.write ('	s.visibility=');
document.write ("'");
document.write ('hidden');
document.write ("'");
document.write (';\n');
document.write ('	for (x=0; x<sl_hiddenElemsArray.length; x++) {\n');
document.write ('		sl_hiddenElemsArray[x][0].style.visibility=sl_hiddenElemsArray[x][1];\n');
document.write ('	}\n');
document.write ('	return false;\n');
document.write ('}\n');
document.write ('\n');
document.write ('function sl_getLeft(obj) {\n');
document.write ('        xPos = eval(obj).offsetLeft;\n');
document.write ('        tempEl = eval(obj).offsetParent;\n');
document.write ('        while (tempEl != null) {\n');
document.write ('                xPos += tempEl.offsetLeft;\n');
document.write ('                tempEl = tempEl.offsetParent;\n');
document.write ('        }\n');
document.write ('        return xPos;\n');
document.write ('}\n');
document.write ('\n');
document.write ('function sl_getTop(obj) {\n');
document.write ('        yPos = eval(obj).offsetTop;\n');
document.write ('        tempEl = eval(obj).offsetParent;\n');
document.write ('        while (tempEl != null) {\n');
document.write ('                yPos += tempEl.offsetTop;\n');
document.write ('                tempEl = tempEl.offsetParent;\n');
document.write ('        }\n');
document.write ('        return yPos;\n');
document.write ('}\n');
document.write ('\n');
document.write ('\n');
document.write ('sl_init();\n');
document.write ('if (window.onload) {\n');
document.write ('	window.onload+=');
document.write ("'");
document.write (';sl_onload');
document.write ("'");
document.write (';\n');
document.write ('} else {\n');
document.write ('	window.onload=sl_onload;\n');
document.write ('}\n');
document.write ('</script>');
}
if (position == 'Sponsor1') {
document.write ('<span name=NJONLINE/SPACER_MJX_NJ07_Sponsor1></span>');
}
if (position == 'Sponsor3') {
document.write ('<span name=NJONLINE/SPACER_MJX_NJ04_Sponsor3></span>');
}
if (position == 'SponsorLeft') {
document.write ('<A HREF="http://ads7.udc.advance.net/RealMedia/ads/click_lx.ads/www.nj.com/books/ledger/index.ssf/1919720467/SponsorLeft/NJONLINE/NJNETS07NJ08/Nets_BringIt_FullSeason_130x60.gif/34346131353865613433346632646130" target="_blank"><IMG SRC="http://ads7.udc.advance.net/RealMedia/ads/Creatives/NJONLINE/NJNETS07NJ08/Nets_BringIt_FullSeason_130x60.gif"  ALT="" width=130 height=60 BORDER="0"></A>');
}
if (position == 'Tile1') {
document.write ('<A HREF="http://ads7.udc.advance.net/RealMedia/ads/click_lx.ads/www.nj.com/books/ledger/index.ssf/275476362/Tile1/NJONLINE/STARLEDG66NJ01/HGtile2.gif/34346131353865613433346632646130" target="_blank"><IMG SRC="http://ads7.udc.advance.net/RealMedia/ads/Creatives/NJONLINE/STARLEDG66NJ01/HGtile2.gif"  ALT="" width=190 height=100 BORDER="0"></A>');
}
if (position == 'TxtLink1') {
document.write ('\n');
document.write ('<font face=arial,sans-serif size=1><FONT COLOR=#D00000><B>»</B></font>&nbsp;<A href="http://ads.advance.net/RealMedia/ads/click_lx.ads/www.nj.com/books/ledger/index.ssf/1392107397/TxtLink1/NJONLINE/NJTRAVEL03NJ07/njtourism_Txt.html/34346131353865613433346632646130?2005.10.14.04.01.51" target="_new">Explore a getaway weekend this fall. Click for info on an exciting NJ vacation.</a></font>');
}
if (position == 'TxtLink2') {
document.write ('<font face=arial,sans-serif size=1><FONT COLOR=#D00000><B>»</B></font>&nbsp;<A href="http://ads1.advance.net/RealMedia/ads/click_lx.ads/www.nj.com/books/ledger/index.ssf/1134311018/TxtLink2/NJONLINE/INDCOMBANK02NJ07/ICB_Txt.html/34346131353865613433346632646130?2005.10.14.04.01.51" target="_new">Independence Community Bank</a></font>');
}
if (position == 'TxtLink3') {
document.write ('<font face=arial,sans-serif size=1><FONT COLOR=#D00000><B>»</B></font>&nbsp;<A href="http://ads1.advance.net/RealMedia/ads/click_lx.ads/www.nj.com/books/ledger/index.ssf/1213344363/TxtLink3/NJONLINE/FREDMEYER01NJ17/pseg_furnace_TXT.html/34346131353865613433346632646130?2005.10.14.04.01.51" target="_new">Bridal Diamond and Anniversary Collection</a></font>');
}
}

