function OAS_RICH(position) {
if (position == 'TOP') {
document.write ('<!-- -------------- Advertising.com ------ Boston.com - Boston.com 728x90 Tier 1-730412 ------------ -->\n');
document.write ('\n');
document.write ('<SCRIPT TYPE=');
document.write ("'");
document.write ('text/javascript');
document.write ("'");
document.write ('>\n');
document.write ('\n');
document.write ('var ACE_AR = {Site: ');
document.write ("'");
document.write ('730412');
document.write ("'");
document.write (', Size: ');
document.write ("'");
document.write ('728090');
document.write ("'");
document.write ('};\n');
document.write ('\n');
document.write ('</SCRIPT>\n');
document.write ('\n');
document.write ('<SCRIPT TYPE=');
document.write ("'");
document.write ('text/javascript');
document.write ("'");
document.write (' SRC=');
document.write ("'");
document.write ('http://uac.advertising.com/wrapper/aceUAC.js');
document.write ("'");
document.write ('></SCRIPT>\n');
document.write ('\n');
document.write ('\n');
document.write ('\n');
document.write ('<!-- ---------- Copyright 2007, Advertising.com ---------- -->\n');
}
if (position == 'INTRO') {
document.write ('<A HREF="http://rmedia.boston.com/RealMedia/ads/click_lx.ads/www.boston.com/ae/movies/981067767/INTRO/default/empty.gif/514e353830556973544855414242724d" target="_top"><IMG SRC="http://cache.boston.com/RealMedia/ads/Creatives/default/empty.gif"  WIDTH=1 HEIGHT=1 ALT="" BORDER=0 BORDER="0"></A>');
}
if (position == 'BOTTOM') {
document.write ('<div class="padTop10"></div>\n');
document.write ('<script type="text/javascript" language="JavaScript"\n');
document.write ('src="http://cache.boston.com/bonzai-fba/File-Based_File_Resource/google_ad_setup_060704a.js"></script>\n');
document.write ('<script language="JavaScript"><!--\n');
document.write ('function google_ad_request_done(ads){var s=');
document.write ("'");
document.write ('');
document.write ("'");
document.write (';if(ads.length==0)return;s+=');
document.write ("'");
document.write ('<center><table cellspacing="0" cellpadding="0" width="100%" border="0" bgcolor="#9da3ad" style="border-top:;border-bottom:;border-left:;border-right:;"><tr><td border="0"><table cellspacing="0" cellpadding="1" width="100%" border="0" bgcolor="#9da3ad"><tr valign="top"><td style="border-bottom:;" bgcolor="#9da3ad" border="0" align="left" width="65%"><font style="font-size:12px;color:#ffffff;"><b>&nbsp;&nbsp;Ads by Google</b></font></td><td style="border-bottom:;padding-right:;" width="35%" height="18" align="right" bgcolor="#9da3ad"><a style="font-size:11px;color:#ffffff;font-family:arial,sans-serif;" href="http://www.boston.com/help/linksqa_text/" onClick="window.open(\\');
document.write ('');
document.write ("'");
document.write ('\\');
document.write ('');
document.write ("'");
document.write (',\\');
document.write ('');
document.write ("'");
document.write ('popupad\\');
document.write ('');
document.write ("'");
document.write (',\\');
document.write ('');
document.write ("'");
document.write ('width=400,height=350,resizable=yes,scrollbars=yes,toolbar=no,location=no,menubar=no,status=no\\');
document.write ('');
document.write ("'");
document.write (')" target="popupad" class="et">what\\');
document.write ('');
document.write ("'");
document.write ('s this?</a></td></tr></table> </td></tr><tr><td><table border="0" cellspacing="1" cellpadding="0" width="100%"><tr valign="top"><td id="taw0" class="ch" align="left" bgcolor="#ffffff" border="0">');
document.write ("'");
document.write (';\n');
document.write ('for(var i=0;i<ads.length;++i){s+=');
document.write ("'");
document.write ('<div style="word-wrap:break-word;overflow:hidden;padding:8px 8px;"><a id="aw0" style="font-size:14px;color:#000066;" target="_blank" href="');
document.write ("'");
document.write ('+ads[i].url+');
document.write ("'");
document.write ('"><b>');
document.write ("'");
document.write ('+ads[i].line1+');
document.write ("'");
document.write ('</b></a></font><br><font style="font-size:12px;" color="#333333">');
document.write ("'");
document.write ('+ads[i].line2+');
document.write ("'");
document.write (' ');
document.write ("'");
document.write ('+ads[i].line3+');
document.write ("'");
document.write ('</font><br><font style="font-size:10px;" color="#000066">');
document.write ("'");
document.write ('+ads[i].visible_url+');
document.write ("'");
document.write ('</font></div>');
document.write ("'");
document.write (';}s+=');
document.write ("'");
document.write ('</td></tr></table></td></tr></table></center>');
document.write ("'");
document.write (';document.write(s);return;}\n');
document.write ('google_ad_output=');
document.write ("'");
document.write ('js');
document.write ("'");
document.write (',google_max_num_ads=');
document.write ("'");
document.write ('3');
document.write ("'");
document.write (',google_ad_client=');
document.write ("'");
document.write ('boston_js');
document.write ("'");
document.write (',google_safe=');
document.write ("'");
document.write ('high');
document.write ("'");
document.write (';\n');
document.write ('//--></script>\n');
document.write ('<script type="text/javascript" language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>\n');
}
if (position == 'POPUP') {
document.write ('<A HREF="http://rmedia.boston.com/RealMedia/ads/click_lx.ads/www.boston.com/ae/movies/1790414943/POPUP/default/empty.gif/514e353830556973544855414242724d" target="_top"><IMG SRC="http://cache.boston.com/RealMedia/ads/Creatives/default/empty.gif"  WIDTH=1 HEIGHT=1 ALT="" BORDER=0 BORDER="0"></A>');
}
if (position == 'POPUN') {
document.write ('<script language"javascript">\n');
document.write ('s_pop=window.open("http://www.boston.com/images/ads/orbitz_popun.html","as","width=720,height=300,top=200,left=200,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,location=no")\n');
document.write ('s_pop.blur();\n');
document.write ('</script>\n');
document.write ('<script language=JavaScript\n');
document.write ('src="http://rmedia.boston.com/RealMedia/ads/adstream.cap/1021540829?c=sessionpop&dv=1&date=&s=1">\n');
document.write ('</script>');
}
if (position == 'EXTRA') {
document.write ('<A HREF="http://rmedia.boston.com/RealMedia/ads/click_lx.ads/www.boston.com/ae/movies/545740163/EXTRA/default/empty.gif/514e353830556973544855414242724d" target="_top"><IMG SRC="http://cache.boston.com/RealMedia/ads/Creatives/default/empty.gif"  WIDTH=1 HEIGHT=1 ALT="" BORDER=0 BORDER="0"></A>');
}
if (position == 'BILLBOARD') {
document.write ('<A HREF="http://rmedia.boston.com/RealMedia/ads/click_lx.ads/www.boston.com/ae/movies/1866102890/BILLBOARD/default/empty.gif/514e353830556973544855414242724d" target="_top"><IMG SRC="http://cache.boston.com/RealMedia/ads/Creatives/default/empty.gif"  WIDTH=1 HEIGHT=1 ALT="" BORDER=0 BORDER="0"></A>');
}
if (position == 'SPONSOR1') {
document.write ('<A HREF="http://rmedia.boston.com/RealMedia/ads/click_lx.ads/www.boston.com/ae/movies/L24/2088785949/SPONSOR1/boston/m_sturbridge0708_trav_LINK-vaca/m_sturbridge0507_ene_LINK.html/514e353830556973544855414242724d" target="_blank"><IMG SRC="http://cache.boston.com/images/ads/OSV_75x35.jpg" BORDER=0 WIDTH=75 HEIGHT=35 VSPACE=2><br>Click here for Old Sturbridge Village discounts.</a>\n');
}
if (position == 'SPONSOR2') {
document.write ('<A HREF="http://rmedia.boston.com/RealMedia/ads/click_lx.ads/www.boston.com/ae/movies/L24/1671958783/SPONSOR2/boston/m_bayferries0508_rosx_LINK/bayferries0508_rosx_LINK.html/514e353830556973544855414242724d" target="_blank"><IMG SRC="http://cache.boston.com/images/ads/bayferries/may08/sponsored.gif" BORDER=0 WIDTH=75 HEIGHT=35 VSPACE=2><br>Maine & Nova Scotia on One of the World');
document.write ("'");
document.write ('s Super Ships</a>');
}
if (position == 'SPONSOR3') {
document.write ('<A HREF="http://rmedia.boston.com/RealMedia/ads/click_lx.ads/www.boston.com/ae/movies/L17/1941573565/SPONSOR3/boston/g_2008globe_rosx_LINK-house/GS_StormsBook_10.07_sponsorlink.gif.html/514e353830556973544855414242724d" target="_blank"><IMG SRC="http://cache.boston.com/images/ads/GS_StormsBook_10.07_sponsorlink.gif" BORDER=0 WIDTH=75 HEIGHT=35 VSPACE=2><br>Over 150 EXTREME<br>N.E. weather photos. Buy the book!</a>\n');
}
if (position == 'SPONSOR4') {
document.write ('<A HREF="http://rmedia.boston.com/RealMedia/ads/click_lx.ads/www.boston.com/ae/movies/L17/939923677/SPONSOR4/boston/r_real_rore_LINK-house/real_rore_LINK-house.html/514e353830556973544855414242724d" target="_blank"><IMG SRC="http://cache.boston.com/images/ads/realestate/re_email_sponslink.gif" BORDER=0 WIDTH=75 HEIGHT=35 VSPACE=2><br>Let your new home find you with email alerts</a>\n');
}
if (position == 'SPONSOR5') {
document.write ('<A HREF="http://rmedia.boston.com/RealMedia/ads/click_lx.ads/www.boston.com/ae/movies/368910618/SPONSOR5/default/empty.gif/514e353830556973544855414242724d" target="_top"><IMG SRC="http://cache.boston.com/RealMedia/ads/Creatives/default/empty.gif"  WIDTH=1 HEIGHT=1 ALT="" BORDER=0 BORDER="0"></A>');
}
if (position == 'SPONSOR6') {
document.write ('<A HREF="http://rmedia.boston.com/RealMedia/ads/click_lx.ads/www.boston.com/ae/movies/118772413/SPONSOR6/default/empty.gif/514e353830556973544855414242724d" target="_top"><IMG SRC="http://cache.boston.com/RealMedia/ads/Creatives/default/empty.gif"  WIDTH=1 HEIGHT=1 ALT="" BORDER=0 BORDER="0"></A>');
}
if (position == 'FOOTER') {
document.write ('<SCRIPT LANGUAGE="JavaScript">var tcdacmd="sa=a;sz=2;ad";</SCRIPT>\n');
document.write ('<SCRIPT SRC="http://an.tacoda.net/an/13651/slf.js" LANGUAGE="JavaScript"></SCRIPT>\n');
}
if (position == 'ARTICLE') {
document.write ('<script language="JavaScript1.1">\n');
document.write ('<!--\n');
document.write ('var TFSMFlash_VERSION=6;\n');
document.write ('var TFSMFlash_WMODE="transparent";\n');
document.write ('var TFSMFlash_OASCLICK="http://rmedia.boston.com/RealMedia/ads/click_lx.ads/www.boston.com/ae/movies/L24/1628504384/ARTICLE/boston/m_royalsonesta1207b_aexx_BIGAD/378302.html/514e353830556973544855414242724d";\n');
document.write ('var TFSMFlash_SWFCLICKVARIABLE="?clickTAG=http://rmedia.boston.com/RealMedia/ads/click_lx.ads/www.boston.com/ae/movies/L24/1628504384/ARTICLE/boston/m_royalsonesta1207b_aexx_BIGAD/378302.html/514e353830556973544855414242724d?http://www.sonesta.com/Boston/index.cfm?fa=misc.page&pageID=14631&t=SummerSizzle&medium=banner&source=Bostoncom&src=nonTIGGSL_Bostoncom-SummerFest_RSB_08  ";\n');
document.write ('var TFSMFlash_SWFFILE="http://cache.boston.com/images/ads/royalsonesta/61674_boston_summerfest_bigad.swf"+TFSMFlash_SWFCLICKVARIABLE;\n');
document.write ('var TFSMFlash_IMAGEALTERNATE="";\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 ('336');
document.write ("'");
document.write (' HEIGHT=');
document.write ("'");
document.write ('280');
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://rmedia.boston.com/RealMedia/ads/Creatives/boston/m_royalsonesta1207b_aexx_BIGAD/TFSMFlashWrapper201.js"></scr');
document.write ("'");
document.write ('+');
document.write ("'");
document.write ('ipt>');
document.write ("'");
document.write (');\n');
document.write ('-->\n');
document.write ('</script>');
}
if (position == 'RIGHT1') {
document.write ('<!-- -------------- Advertising.com ------ Boston.com - Boston.com 160x600 Tier 1-730411 ------------ -->\n');
document.write ('\n');
document.write ('<SCRIPT TYPE=');
document.write ("'");
document.write ('text/javascript');
document.write ("'");
document.write ('>\n');
document.write ('\n');
document.write ('var ACE_AR = {Site: ');
document.write ("'");
document.write ('730411');
document.write ("'");
document.write (', Size: ');
document.write ("'");
document.write ('160600');
document.write ("'");
document.write ('};\n');
document.write ('\n');
document.write ('</SCRIPT>\n');
document.write ('\n');
document.write ('<SCRIPT TYPE=');
document.write ("'");
document.write ('text/javascript');
document.write ("'");
document.write (' SRC=');
document.write ("'");
document.write ('http://uac.advertising.com/wrapper/aceUAC.js');
document.write ("'");
document.write ('></SCRIPT>\n');
document.write ('\n');
document.write ('\n');
document.write ('\n');
document.write ('<!-- ---------- Copyright 2007, Advertising.com ---------- -->\n');
}
}
