function OAS_RICH(position) {
if (position == 'Top2') {
document.write ('<A HREF="http://oascentral.suntimes.com/RealMedia/ads/click_lx.ads/www.suntimes.com/entertainment/nance/index.html/1398264721/Top2/default/empty.gif/524b51465745634f6b2f4d4142696964" target="_top"><IMG SRC="http://imagec05.247realmedia.com/RealMedia/ads/Creatives/default/empty.gif/0"  WIDTH=2 HEIGHT=2 ALT="" BORDER=0 BORDER="0"></A>');
}
if (position == 'Frame1') {
document.write ('<HTML>\n');
document.write ('<head>\n');
document.write ('<SCRIPT language="Javascript">\n');
document.write ('var expDays = 1; \n');
document.write ('var page = "http://ad.doubleclick.net/adi/N2870.sun/B2095193;sz=720x300;ord=1905906314?";\n');
document.write ('var windowprops = "width=720,height=300,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no";\n');
document.write ('function GetCookie (name) {  \n');
document.write ('var arg = name + "=";  \n');
document.write ('var alen = arg.length;  \n');
document.write ('var clen = document.cookie.length;  \n');
document.write ('var i = 0;  \n');
document.write ('while (i < clen) {    \n');
document.write ('var j = i + alen;    \n');
document.write ('if (document.cookie.substring(i, j) == arg)      \n');
document.write ('return getCookieVal (j);    \n');
document.write ('i = document.cookie.indexOf(" ", i) + 1;    \n');
document.write ('if (i == 0) break;   \n');
document.write ('}  \n');
document.write ('return null;\n');
document.write ('}\n');
document.write ('function SetCookie (name, value) {  \n');
document.write ('var argv = SetCookie.arguments;  \n');
document.write ('var argc = SetCookie.arguments.length;  \n');
document.write ('var expires = (argc > 2) ? argv[2] : null;  \n');
document.write ('var path = (argc > 3) ? argv[3] : null;  \n');
document.write ('var domain = (argc > 4) ? argv[4] : null;  \n');
document.write ('var secure = (argc > 5) ? argv[5] : false;  \n');
document.write ('document.cookie = name + "=" + escape (value) + \n');
document.write ('((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + \n');
document.write ('((path == null) ? "" : ("; path=" + path)) +  \n');
document.write ('((domain == null) ? "" : ("; domain=" + domain)) +    \n');
document.write ('((secure == true) ? "; secure" : "");\n');
document.write ('}\n');
document.write ('function DeleteCookie (name) {  \n');
document.write ('var exp = new Date();  \n');
document.write ('exp.setTime (exp.getTime() - 1);  \n');
document.write ('var cval = GetCookie (name);  \n');
document.write ('document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();\n');
document.write ('}\n');
document.write ('var exp = new Date(); \n');
document.write ('exp.setTime(exp.getTime() + (expDays*24*60*60*1000));\n');
document.write ('function amt(){\n');
document.write ('var count = GetCookie(');
document.write ("'");
document.write ('count');
document.write ("'");
document.write (')\n');
document.write ('if(count == null) {\n');
document.write ('SetCookie(');
document.write ("'");
document.write ('count');
document.write ("'");
document.write (',');
document.write ("'");
document.write ('1');
document.write ("'");
document.write (')\n');
document.write ('return 1\n');
document.write ('}\n');
document.write ('else {\n');
document.write ('var newcount = parseInt(count) + 1;\n');
document.write ('DeleteCookie(');
document.write ("'");
document.write ('count');
document.write ("'");
document.write (')\n');
document.write ('SetCookie(');
document.write ("'");
document.write ('count');
document.write ("'");
document.write (',newcount,exp)\n');
document.write ('return count\n');
document.write ('}\n');
document.write ('}\n');
document.write ('function getCookieVal(offset) {\n');
document.write ('var endstr = document.cookie.indexOf (";", offset);\n');
document.write ('if (endstr == -1)\n');
document.write ('endstr = document.cookie.length;\n');
document.write ('return unescape(document.cookie.substring(offset, endstr));\n');
document.write ('}\n');
document.write ('function checkCount() { \n');
document.write ('var count = GetCookie(');
document.write ("'");
document.write ('count');
document.write ("'");
document.write (');\n');
document.write ('if (count == null) {\n');
document.write ('count=1;\n');
document.write ('SetCookie(');
document.write ("'");
document.write ('count');
document.write ("'");
document.write (', count, exp);\n');
document.write ('window.open(page, "", windowprops);\n');
document.write ('}\n');
document.write ('else {\n');
document.write ('count++;\n');
document.write ('SetCookie(');
document.write ("'");
document.write ('count');
document.write ("'");
document.write (', count, exp);\n');
document.write ('}\n');
document.write ('}\n');
document.write ('checkCount();\n');
document.write ('self.focus(); \n');
document.write ('</SCRIPT>\n');
document.write ('</html>');
}
if (position == 'Top1') {
document.write ('<A HREF="http://oascentral.suntimes.com/RealMedia/ads/click_lx.ads/www.suntimes.com/entertainment/nance/index.html/L47/125362832/Top1/SunTimes/chicagowolves.entertain.10.10.07/leaderboard-HOMEOPENER9.26.gif/524b51465745634f6b2f4d4142696964" target="_top"><IMG SRC="http://imagec05.247realmedia.com/RealMedia/ads/Creatives/SunTimes/chicagowolves.entertain.10.10.07/leaderboard-HOMEOPENER9.26.gif/1192007441"  ALT=""  BORDER="0"></A>');
}
if (position == 'Middle') {
document.write ('<A HREF="http://oascentral.suntimes.com/RealMedia/ads/click_lx.ads/www.suntimes.com/entertainment/nance/index.html/L47/1700348355/Middle/SunTimes/navypier.cube.entertain.oct07/FF-300x250.gif/524b51465745634f6b2f4d4142696964" target="_top"><IMG SRC="http://imagec05.247realmedia.com/RealMedia/ads/Creatives/SunTimes/navypier.cube.entertain.oct07/FF-300x250.gif/1190713147"  ALT=""  BORDER="0"></A>');
}
if (position == 'TopLeft') {
document.write ('<A HREF="http://oascentral.suntimes.com/RealMedia/ads/click_lx.ads/www.suntimes.com/entertainment/nance/index.html/2087248119/TopLeft/default/empty.gif/524b51465745634f6b2f4d4142696964" target="_top"><IMG SRC="http://imagec05.247realmedia.com/RealMedia/ads/Creatives/default/empty.gif/0"  WIDTH=2 HEIGHT=2 ALT="" BORDER=0 BORDER="0"></A>');
}
if (position == 'x01') {
document.write ('<script language="JavaScript1.1">\n');
document.write ('<!--\n');
document.write ('var TFSMFlash_VERSION=6;\n');
document.write ('var TFSMFlash_WMODE="window";\n');
document.write ('var TFSMFlash_OASCLICK="http://oascentral.suntimes.com/RealMedia/ads/click_lx.ads/www.suntimes.com/entertainment/nance/index.html/L47/1360440173/x01/SunTimes/mariotti.promos/9.19jmsky.html/524b51465745634f6b2f4d4142696964?http://www.suntimes.com/sports/mariottiweb/index.html";\n');
document.write ('var TFSMFlash_SWFCLICKVARIABLE="?clickTAG=http://oascentral.suntimes.com/RealMedia/ads/click_lx.ads/www.suntimes.com/entertainment/nance/index.html/L47/1360440173/x01/SunTimes/mariotti.promos/9.19jmsky.html/524b51465745634f6b2f4d4142696964?http://www.suntimes.com/sports/mariottiweb/index.html";\n');
document.write ('var TFSMFlash_SWFFILE="http://imagec05.247realmedia.com/RealMedia/ads/Creatives/SunTimes/mariotti.promos/sky_919.swf/1190123900"+TFSMFlash_SWFCLICKVARIABLE;\n');
document.write ('var TFSMFlash_IMAGEALTERNATE="http://imagec05.247realmedia.com/RealMedia/ads/Creatives/SunTimes/mariotti.promos//1190123900";\n');
document.write ('var TFSMFlash_OASALTTEXT="Click Here";\n');
document.write ('var TFSMFlash_OASTARGET="_blank";\n');
document.write ('var TFSMFlash_OASPROTOCOL="http://";\n');
document.write ('var TFSMFlash_OASDIM="WIDTH=');
document.write ("'");
document.write ('160');
document.write ("'");
document.write (' HEIGHT=');
document.write ("'");
document.write ('600');
document.write ("'");
document.write ('";\n');
document.write ('var TFSMFlash_OASADID="ad_banner";\n');
document.write ('\n');
document.write ('document.write(');
document.write ("'");
document.write ('<scr');
document.write ("'");
document.write ('+');
document.write ("'");
document.write ('ipt src="http://imagec05.247realmedia.com/RealMedia/ads/Creatives/SunTimes/mariotti.promos/TFSMFlashWrapper201.js/1190123900"></scr');
document.write ("'");
document.write ('+');
document.write ("'");
document.write ('ipt>');
document.write ("'");
document.write (');\n');
document.write ('-->\n');
document.write ('</script>\n');
document.write ('\n');
document.write ('<noscript>\n');
document.write ('<a href="http://oascentral.suntimes.com/RealMedia/ads/click_lx.ads/www.suntimes.com/entertainment/nance/index.html/L47/1360440173/x01/SunTimes/mariotti.promos/9.19jmsky.html/524b51465745634f6b2f4d4142696964?http://www.suntimes.com/sports/mariottiweb/index.html" target="_blank"><img src="http://imagec05.247realmedia.com/RealMedia/ads/Creatives/SunTimes/mariotti.promos//1190123900" alt="Click Here" border=0></a>\n');
document.write ('</noscript>');
}
if (position == 'Bottom') {
document.write ('<A HREF="http://oascentral.suntimes.com/RealMedia/ads/click_lx.ads/www.suntimes.com/entertainment/nance/index.html/1842846355/Bottom/default/empty.gif/524b51465745634f6b2f4d4142696964" target="_top"><IMG SRC="http://imagec05.247realmedia.com/RealMedia/ads/Creatives/default/empty.gif/0"  WIDTH=2 HEIGHT=2 ALT="" BORDER=0 BORDER="0"></A>');
}
if (position == 'Left1') {
document.write ('<A HREF="http://oascentral.suntimes.com/RealMedia/ads/click_lx.ads/www.suntimes.com/entertainment/nance/index.html/1790252933/Left1/default/empty.gif/524b51465745634f6b2f4d4142696964" target="_top"><IMG SRC="http://imagec05.247realmedia.com/RealMedia/ads/Creatives/default/empty.gif/0"  WIDTH=2 HEIGHT=2 ALT="" BORDER=0 BORDER="0"></A>');
}
if (position == 'Left2') {
document.write ('<A HREF="http://oascentral.suntimes.com/RealMedia/ads/click_lx.ads/www.suntimes.com/entertainment/nance/index.html/1909161198/Left2/default/empty.gif/524b51465745634f6b2f4d4142696964" target="_top"><IMG SRC="http://imagec05.247realmedia.com/RealMedia/ads/Creatives/default/empty.gif/0"  WIDTH=2 HEIGHT=2 ALT="" BORDER=0 BORDER="0"></A>');
}
}

