function header(domain) {
	
	if ( domain == 'nytimes.theknot.com' ) {

		document.writeln('<table width="780" bgcolor="ffffff"><tr><td>');
		
		document.writeln('<script src="http://www.nytimes.com/adx/bin/adx_remote.html?type=fastscript&page=listings.nytimes.com/weddings/listings&posall=Top5,Bottom7,Bottom8,Inv1,Inv2,Inv3,TopLeft,Middle1,TopAd&query=qstring&keywords=?"><\/script>');
		document.writeln('<script type="text/javascript" src="http://www.nytimes.com/js/goToURL2.js"><\/script>');
		document.writeln('<!-- begin site-wide js functions -->');
		document.writeln('<script src="http://www.nytimes.com/js/common.js"><\/script>');
		document.writeln('<script src="http://www.nytimes.com/js/todays_date.js" type="text/javascript" language="JavaScript"><\/script>');
		document.writeln('<!-- end site-wide js functions -->');
		document.writeln('<script type="text/JavaScript">');
		document.writeln('<!--');
		document.writeln('//this is javascript');
		document.writeln('function nameIt() {');
		document.writeln('window.name = \'nytimesmain\';');
		document.writeln('}');
		document.writeln('function pop_me_up2(pURL,name,features){');
		document.writeln('new_window = window.open(pURL,name,features);');
		document.writeln('new_window.focus();');
		document.writeln('}');
		document.writeln('function changeImage(image_name,image_src) {');
		document.writeln('document.images[image_name].src = image_src;');
		document.writeln('}');
		document.writeln('function goToURL(obj){');
		document.writeln('var f = (obj.section) ? obj : obj.form;');
		document.writeln('var selected = f.section.selectedIndex;');
		document.writeln('var URL = f.section.options[selected].value;');
		document.writeln('if (URL != "") document.location = URL;');
		document.writeln('return false;');
		document.writeln('}');
		document.writeln('if (window.self != window.top) {');
		document.writeln('top.location.replace(window.location.href);');
		document.writeln('}');
		document.writeln('//-->');
		document.writeln('<\/script>');
		document.writeln('<!-- the following code checks for version 6.+ of the Macromedia Flash player  -->');
		document.writeln('<!-- begin VBScript Flash Detect for IE/PC -->');
		document.writeln('<script language="vbscript">');
		document.writeln('on error resume next');
		document.writeln('var gotFlash');
		document.writeln('gotFlash = False');
		document.writeln('gotFlash = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))');
		document.writeln('<\/script>');
		document.writeln('<!-- end VBScript Flash Detect for IE/PC -->');
		document.writeln('<!-- begin javascript plugin detect functions -->');
		document.writeln('<script language="javascript">');
		document.writeln('var targetVersion = 6;');
		document.writeln('//Look for correct version of Flash plugin. If found, then launch window.');
		document.writeln('if ((navigator.plugins) && (navigator.plugins["Shockwave Flash"])) {');
		document.writeln('var d = navigator.plugins["Shockwave Flash"].description;');
		document.writeln('var v = parseInt(d.charAt(d.indexOf(".") - 1));');
		document.writeln('//if the player is version 6 or above then set flag');
		document.writeln('gotFlash = (v >= targetVersion)	? true : false;');
		document.writeln('}');
		document.writeln('<\/script>');
		document.writeln('<!-- end javascript plugin detect functions -->');
		document.writeln('<script language="javascript">');
		document.writeln('function openHelp(baseURL) {');
		document.writeln('window.open(baseURL,"", "width=420,height=480,toolbar=no,status=no,directories=no,menubar=no,resizable=no,scrollbars=yes");');
		document.writeln('}');
		document.writeln('//-------------------------------------------------------------------------');
		document.writeln('<\/script>');
		document.writeln('<link rel="stylesheet" href="http://images.theknot.com/nytimes/nyt_uls.css" type="text/css" />');
		document.writeln('<script>');
		document.writeln('<!--');
		document.writeln('if (typeof adxpos_Top5 != "undefined")');
		document.writeln('document.write(adxads[adxpos_Top5]);');
		document.writeln('// -->');
		document.writeln('<\/script>');
		document.writeln('<noscript>');
		document.writeln('<a href="http://www.nytimes.com/adx/bin/adx_click.html?type=cookie&pos=Top5">');
		document.writeln('<img src="http://www.nytimes.com/adx/bin/adx_remote.html?type=noscript&page=listings.nytimes.com/weddings/listings&posall=Top5,Bottom7,Bottom8,Inv1,Inv2,Inv3,TopLeft,Middle1,TopAd&pos=Top5&query=qstring&keywords=?">');
		document.writeln('</a></noscript>');
		document.writeln('<TABLE WIDTH="780" BORDER="0" CELLSPACING="0" CELLPADDING="0">');
		document.writeln('<TR>');
		document.writeln('<TD ALIGN="left" width="180"><a href="http://www.nytimes.com/index.html"><IMG src="http://images.theknot.com/nytimes/logo_nyt.gif" border="0"></a></TD>');
		document.writeln('<TD ALIGN="center" valign="bottom" width="420"><a href="http://listings.nytimes.com/weddings/searchindex.asp"><IMG src="http://images.theknot.com/nytimes/logo_big_interior.gif" border="0"></a></TD>');
		document.writeln('<TD ALIGN="right" width="180" class="text_headersmall">&nbsp;</TD>');
		document.writeln('</TR>');
		document.writeln('<tr>');
		document.writeln('<td colspan="3"><IMG src="http://images.theknot.com/nytimes/spacer.gif" width="1" height="4"></td>');
		document.writeln('</TR>');
		document.writeln('</TABLE>');
	
		document.writeln('</td></tr></table>');
		document.writeln('<TABLE WIDTH="780" BORDER="0" CELLSPACING="0" CELLPADDING="0">');
		document.writeln('<TR>');
		document.writeln('<TD bgcolor="#000000"><img src="http://images.theknot.com/nytimes/spacer.gif" width="1" height="3"></TD>');
		document.writeln('</TR>');
		document.writeln('</TABLE>');
	}
	
	if ( domain == 'theknot.planetout.com' ) {
		document.writeln('<TABLE WIDTH=640 CELLSPACING=0 CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD valign=top bgcolor=ffffff><TABLE CELLSPACING=2 CELLPADDING=2 CELLSPACING=0 BORDER=0 WIDTH=640><TR><TD WIDTH=144 bgcolor=ffffff><IMG SRC=http://a676.g.akamaitech.net/7/676/806/72e040039c5a29/images.theknot.com/images/wedding.gif WIDTH=12 HEIGHT=5 BORDER=0><IMG SRC=http://a1976.g.akamaitech.net/7/1976/806/a1fbce85a023ec/images.theknot.com/planetout/branding.gif></TD></TR></TABLE></TD></TR><TR><TD valign=top bgcolor=ffffff><TABLE CELLSPACING=0 CELLPADDING=0 CELLSPACING=0 BORDER=0>');
		document.writeln('<TR><TD valign=top bgcolor=ffffff><IMG SRC=http://a1976.g.akamaitech.net/7/1976/806/ce9a80e832d573/images.theknot.com/planetout/thetabs.gif width=515 HEIGHT=51 usemap=#tabs ismap alt=Tabs border=0><map name=tabs><area shape=rect coords=426,7,504,29 href=http://www.planetout.com/search/ TARGET=_top><area shape=rect coords=342,7,421,28 href=http://www.planetout.com/shopping/ TARGET=_top><area shape=rect coords=257,7,337,28 href=http://www.planetout.com/myplanet/ TARGET=_top><area shape=rect coords=174,7,252,29 href=http://www.planetout.com/personals/ TARGET=_top><area shape=rect coords=90,7,169,28 href=http://www.planetout.com/people/ TARGET=_top><area shape=rect coords=6,8,85,28 href=http://www.planetout.com/homepage/ TARGET=_top><AREA SHAPE=DEFAULT NOHREF></map></TD><TD valign=top bgcolor=ffffff><IMG SRC=http://a1976.g.akamaitech.net/7/1976/806/5e15673b46d457/images.theknot.com/planetout/bookend.gif width=125 HEIGHT=51></TD></TR></TABLE></td></tr></table>');
	}

	if ( domain == 'theknot.compuserve.com' ) {
		document.writeln('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>');
		document.writeln('  <tr>');
		document.writeln('	<td>');
		document.writeln('	  <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=640>');
		document.writeln('	    <TR>');
		document.writeln('		  <TD valign=top><SCRIPT LANGUAGE="JavaScript1.1" src="http://hat.compuserve.com/header/theknot/csheader.js"><\/script></td>');
		document.writeln('		</TR>');
		document.writeln('	  </TABLE>');
		document.writeln('    </TD>');
		document.writeln('  </TR>');
		document.writeln('</TABLE>');
		document.writeln('<br>');
	}

	if ( domain == 'theknot.netscape.com' ) {
		document.writeln('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>');
		document.writeln('  <tr>');
		document.writeln('	<td>');
		document.writeln('	  <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=640>');
		document.writeln('	    <TR>');
		document.writeln('		  <TD valign=top><SCRIPT LANGUAGE="JavaScript1.1" src="http://hat.netscape.com/header/ns/theknot/nsheader.js"><\/script></td>');
		document.writeln('		</TR>');
		document.writeln('	  </TABLE>');
		document.writeln('    </TD>');
		document.writeln('  </TR>');
		document.writeln('</TABLE>');
		document.writeln('<br>');
	}
	
	if ( domain == 'theknot.lifetimetv.com' ) {
		document.writeln('<TABLE WIDTH=640 BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor=FFFFFF><tr><td><img src=http://www.lifetimetv.com/shows/woal/images/theknot_header.gif width=640 height=40 useMap=#nav_bar border=0><br><img src=http://a220.g.akamaitech.net/7/220/806/0001/images.theknot.com/images/wedding.gif width=1 height=20></td></tr></TABLE><MAP NAME="nav_bar"><AREA shape=rect COORDS="7,4,90,33" HREF="http://www.lifetimetv.com"><AREA shape=rect COORDS="128,2,340,30" HREF="http://www.lifetimetv.com/shows/woal/index.shtml"><AREA shape=rect COORDS="404,8,521,19"  HREF="http://www.lifetimetv.com/shows/woal/everything_weddings/everything_weddings.shtml"><AREA shape=rect COORDS="527,8,617,19" HREF="http://www.lifetimetv.com/boards/weddings.html"><AREA shape=rect COORDS="575,26,616,37" HREF="http://www.lifetimetv.com/shows/woal/index.shtml"></MAP>');
	}

	
	if ( ( domain == 'theknot.msn.com' ) || ( domain == 'womencentral.theknot.com' ) || ( domain == 'women.theknot.com' ) || ( domain == 'womencentral.msn.com' ) || ( domain == 'women.msn.com' ) || ( domain == 'g.msn.com' )) {
		
		document.writeln('<link rel="stylesheet" type="text/css" href="http://sc.msn.com/global/css/ptnr/dkblue.css" />');
		document.writeln('<style>body{background-color:#FFFFFF}</style>');
		document.writeln('<script language="javascript">');
		document.writeln('function gotosite(site, activeSelect) {');
		document.writeln('if (site != "") {');
		document.writeln('activeSelect.selectedIndex=0;');
		document.writeln('self.location=site;'); 
		document.writeln('}');
		document.writeln('}');
		document.writeln('<\/script>');
		document.writeln('<script language="javascript">');
		document.writeln('if (navigator.appName.indexOf(\'WebTV\') != -1) {');
		document.writeln('document.write(\'<embed src="wtv-tricks:/msndispatch?type=tv-navbar-insert&amp;loc=top-navbar" height="33" width="544"><\/embed>\');');
		document.writeln('} else {');
		document.writeln('document.write(\'<div class="dMSNME_1"><table width="100%" height="30" cellpadding="0" cellspacing="0" class="big7" border="0"><form id="form1" name="form1" method="get" action="http://g.msn.com/0nwenus0/AM/16"><input type="hidden" name="cp" value="1252" /><tr><td align="left" valign="middle" width="450">&nbsp;&nbsp;<a href="http://g.msn.com/0nwenus0/AM/00">MSN&nbsp;Home</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://g.msn.com/0nwenus0/AM/01">My&nbsp;MSN</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://g.msn.com/0nwenus0/AM/02">Hotmail</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://g.msn.com/0nwenus0/AM/04">Shopping</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://g.msn.com/0nwenus0/AM/05">Money</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://g.msn.com/0nwenus0/AM/06">People&nbsp;&amp;&nbsp;Chat</a></td><td width="66"></td><td width="*" align="right" nowrap>Web&nbsp;Search:&nbsp;&nbsp;<input type="text" name="q" size="14" maxlength="150" style="width:46%;font: 12px tahoma, sans-serif;" /><input type="submit" id="submit1" name="submit1" size="4" class="GoBtn" value="Go" /></td></tr><input type="hidden" name="FORM" value="AM" /></form></table></div>\');');
		document.writeln('}');
		document.writeln('<\/script>');
		document.writeln('<table width="100%" cellpadding="0" cellspacing="0" class="sf" border="0">');
		document.writeln('<tr>');
		document.writeln('<td width="118"><a href="http://g.msn.com/0nwenus0/AM/22" target="_top"><img src="http://logo.msn.com/en-us/dark/logo35.gif" width="118" height="35" border="0" alt="go to MSN.com" title="go to MSN.com" align="ABSMIDDLE"/></a></td>');
		document.writeln('<td width="*" class="sflptrn" valign="bottom"><a href="http://g.msn.com/US17/1?http://women.msn.com/&&DI=577&PI=7327&PS=10189&CM=cobrand&HL=TheKnot">Women</a></td>');
		document.writeln('<form>');
		document.writeln('<td width="100%" class="sflrptrn" valign="bottom" height="30" nowrap>');
		document.writeln('<a href="http://g.msn.com/US17/1?http://women.msn.com/weddingguide.armx&&DI=577&PI=7327&PS=10189&CM=cobrand&HL=TheKnot">Wedding Guide</a>&nbsp;&nbsp;|&nbsp;&nbsp;');
		document.writeln('<a href="http://g.msn.com/US17/1?http://women.msn.com/beauty.armx&&DI=577&PI=7327&PS=10189&CM=cobrand&HL=TheKnot">Beauty</a>&nbsp;&nbsp;|&nbsp;&nbsp;');
		document.writeln('<select class="sfdd" onchange="javascript:gotosite(this.options[this.selectedIndex].value, this);" id="Select2" name=select2>');
		document.writeln('<option value="">More...</option>');
		document.writeln('<option value="http://g.msn.com/US17/1?http://women.msn.com/fashionstyle.armx&&DI=577&PI=7327&PS=10189&CM=cobrand&HL=TheKnot">Fashion & Style</option>');
		document.writeln('<option value="http://g.msn.com/US17/1?http://women.msn.com/relationships.armx&&DI=577&PI=7327&PS=10189&CM=cobrand&HL=TheKnot">Relationships</option>');
		document.writeln('<option value="http://g.msn.com/US17/1?http://women.msn.com/healthwellness.armx&&DI=577&PI=7327&PS=10189&CM=cobrand&HL=TheKnot">Health & Wellness</option>');
		document.writeln('<option value="http://g.msn.com/US17/1?http://women.msn.com/homefood.armx&&DI=577&PI=7327&PS=10189&CM=cobrand&HL=TheKnot">Home & Food</option>');
		document.writeln('<option value="http://g.msn.com/US17/1?http://women.msn.com/careermoney.armx&&DI=577&PI=7327&PS=10189&CM=cobrand&HL=TheKnot">Career & Money</option>');
		document.writeln('</select><br>');
		document.writeln('<div style="width:1;height:4;"><spacer type="block" height="4" /></div>');
		document.writeln('</td>');
		document.writeln('</form></td>');
		document.writeln('</tr>');
		document.writeln('</table>');

	}


	if ( domain == 'theknot.aol.com' ) {
		document.writeln('<script language=javascript src=http://www.aol.com/partnercode/button2.adp><\/script><table width=585 cellpadding=0 cellspacing=0 border=0><tr><td width=249 height=54 bgcolor=FFFFFF rowspan=2 valign=bottom><a href=http://dynamic.aol.com/cgi/redir?http://www.aol.com/><img src=http://www.aol.com/partnercode/gr/aolanywhere.gif width=249 height=43 alt="AOL Anywhere" border=0 valign=abstop></a></td><td align=right valign=bottom width=336 bgcolor=FFFFFF><a href=\"http://www.aol.com\"><img src=\"http://www.aol.com/redesign10_00/gr/signin80.gif\" width=80 height=31 border=0 alt=\"Sign In\"></a></td></tr><tr><td valign=bottom bgcolor=FFFFFF><img src=http://www.aol.com/partnercode/gr/greypixelheader.gif width=336 height=4 border=0></td></tr></table><table width=585 cellpadding=0 cellspacing=0 border=0><tr><td height=2 bgcolor=#ffffff><spacer type=block height=2></td></tr><tr><td bgcolor=FFFFFF valign=bottom><img src=http://www.aol.com/partnercode/gr/Tabs.gif width=585 height=18 border=0 valign=bottom usemap=#navbar><map name=navbar><area shape=rect coords=0,0,64,18 href=http://dynamic.aol.com/cgi/redir?http://www.aol.com/ alt=Main><area shape=rect coords=66,0,143,18 href=http://dynamic.aol.com/cgi/redir?http://my.aol.com/ alt="My AOL"><area shape=rect coords=145,0,206,18 href=http://dynamic.aol.com/cgi/redir?http://aolmail.aol.com/ alt="AOL Mail"><area shape=rect coords=208,0,278,18 href=http://dynamic.aol.com/cgi/redir?http://www.aol.com/community/directory.html alt=People><area shape=rect coords=280,0,350,18 href=http://dynamic.aol.com/cgi/redir?http://search.aol.com/ alt=Search><area shape=rect coords=352,0,417,18 href=http://dynamic.aol.com/cgi/redir?http://shop.aol.com/ alt=Shop@AOL><area shape=rect coords=419,0,504,18 href=http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/home.adp alt="Web Channels"><area shape=rect coords=506,0,585,18 href=http://dynamic.aol.com/cgi/redir?http://www.aol.com/anywhere/home.adp alt=Devices></map></td></tr><tr><td bgcolor=FFFFFF height=10><spacer type=block height=10></td></tr></table>');
	}

}

function footer(domain) {
	
	if ( domain == 'nytimes.theknot.com' ) {
		document.writeln('<table width="780" bgcolor="ffffff"><tr><td>');
		document.writeln('<TABLE WIDTH="780" BORDER="0" CELLSPACING="0" CELLPADDING="0">');
		document.writeln('<tr>');
		document.writeln('<td width="780" align="center" class="footer">');
		document.writeln('<a class="footerlink" href="http://www.nytimes.com/classifieds/">Classifieds Marketplace</a> |');
		document.writeln('<a class="footerlink" href="http://listings.nytimes.com/weddings/searchindex.asp">Weddings Directory Home</a> |');
		document.writeln('<a class="footerlink" href="http://www.legacy.com/nytimes/celebrations.asp?Page=SearchResults">Paid Announcements</a> |');
		document.writeln('<a class="footerlink" href="http://listings.nytimes.com/weddings/List_listings.asp">Weddings Directory</a> |');
		document.writeln('<a class="footerlink" href="https://placead.nytimes.com/default.asp?CategoryID=NYTWED">Place an Ad</a>');
		document.writeln('</td>');
		document.writeln('</TR>');
		document.writeln('</TABLE>');
		document.writeln('<!-- BEGIN COPYRIGHT -->');
		document.writeln('<TABLE WIDTH="780" BORDER="0" CELLSPACING="0" CELLPADDING="0">');
		document.writeln('<tr>');
		document.writeln('<td colspan="2"><img src="http://images.theknot.com/nytimes/spacer.gif" width="1" height="10" border="0" /></td>');
		document.writeln('</TR>');
		document.writeln('<tr>');
		document.writeln('<td colspan="2" bgcolor="#CCCCCC"><img src="http://images.theknot.com/nytimes/spacer.gif" width="1" height="1" border="0" /></td>');
		document.writeln('</TR>');
		document.writeln('<tr bgcolor="#EBEBEB">');
		document.writeln('<td width="14"><img src="http://images.theknot.com/nytimes/spacer.gif" width="14" height="27" border="0" /></td>');
		document.writeln('<td width="764" valign="middle" class="footer">');
		document.writeln('<a href="http://nytimes.com/ref/membercenter/help/copyright.html" class="footerlink">Copyright The New York Times Company</a> |');
		document.writeln('<a href="http://www.nytimes.com/ref/membercenter/help/privacy.html" class="footerlink">Privacy Policy</a> |');
		document.writeln('<a href="http://nytimes.com/ref/membercenter/help/infoservdirectory.html" class="footerlink">Contact Us</a> |');
		document.writeln('<a href="http://www.nytimes.com/membercenter/sitehelp.html" class="footerlink">Help</a>');
		document.writeln('</td>');
		document.writeln('</tr>');
		document.writeln('</TABLE>');
		document.writeln('<!--Bottom7 position-->');
		document.writeln('<script>');
		document.writeln('<!--');
		document.writeln('if (typeof adxpos_Bottom7 != "undefined")');
		document.writeln('document.write(adxads[adxpos_Bottom7]);');
		document.writeln('// -->');
		document.writeln('<\/script>');
		document.writeln('<noscript>');
		document.writeln('<a href="http://www.nytimes.com/adx/bin/adx_click.html?type=cookie&pos=Bottom7">');
		document.writeln('<img src="http://www.nytimes.com/adx/bin/adx_remote.html?type=noscript&page=<%=AdString%>&pos=Bottom7&query=qstring&keywords=?">');
		document.writeln('</a></noscript>');
		document.writeln('<!--Bottom8 position-->');
		document.writeln('<script>');
		document.writeln('<!--');
		document.writeln('if (typeof adxpos_Bottom8 != "undefined")');
		document.writeln('document.write(adxads[adxpos_Bottom8]);');
		document.writeln('// -->');
		document.writeln('<\/script>');
		document.writeln('<noscript>');
		document.writeln('<a href="http://www.nytimes.com/adx/bin/adx_click.html?type=cookie&pos=Bottom8">');
		document.writeln('<img src="http://www.nytimes.com/adx/bin/adx_remote.html?type=noscript&page=<%=AdString%>&pos=Bottom8&query=qstring&keywords=?">');
		document.writeln('</a></noscript>');
		document.writeln('<!--Inv1 position-->');
		document.writeln('<script>');
		document.writeln('<!--');
		document.writeln('if (typeof adxpos_Inv1 != "undefined")');
		document.writeln('document.write(adxads[adxpos_Inv1]);');
		document.writeln('// -->');
		document.writeln('<\/script>');
		document.writeln('<noscript>');
		document.writeln('<a href="http://www.nytimes.com/adx/bin/adx_click.html?type=cookie&pos=Inv1">');
		document.writeln('<img src="http://www.nytimes.com/adx/bin/adx_remote.html?type=noscript&page=<%=AdString%>&pos=Inv1&query=qstring&keywords=?">');
		document.writeln('</a></noscript>');
		document.writeln('<!--Inv2 position-->');
		document.writeln('<script>');
		document.writeln('<!--');
		document.writeln('if (typeof adxpos_Inv2 != "undefined")');
		document.writeln('document.write(adxads[adxpos_Inv2]);');
		document.writeln('// -->');
		document.writeln('<\/script>');
		document.writeln('<noscript>');
		document.writeln('<a href="http://www.nytimes.com/adx/bin/adx_click.html?type=cookie&pos=Inv2">');
		document.writeln('<img src="http://www.nytimes.com/adx/bin/adx_remote.html?type=noscript&page=<%=AdString%>&pos=Inv2&query=qstring&keywords=?">');
		document.writeln('<!--Inv3 position-->');
		document.writeln('<script>');
		document.writeln('<!--');
		document.writeln('if (typeof adxpos_Inv3 != "undefined")');
		document.writeln('document.write(adxads[adxpos_Inv3]);');
		document.writeln('// -->');
		document.writeln('<\/script>');
		document.writeln('<noscript>');
		document.writeln('<a href="http://www.nytimes.com/adx/bin/adx_click.html?type=cookie&pos=Inv3">');
		document.writeln('<img src="http://www.nytimes.com/adx/bin/adx_remote.html?type=noscript&page=<%=AdString%>&pos=Inv3&query=qstring&keywords=?">');
		document.writeln('</a></noscript>');
		document.writeln('</td></tr></table>');
	}
		
	
	if ( ( domain == 'theknot.msn.com' ) || ( domain == 'womencentral.theknot.com' ) || ( domain == 'womencentral.msn.com' ) || ( domain == 'women.msn.com' ) || ( domain == 'g.msn.com')) {
		document.writeln('<br>');
	}

	if ( domain == 'theknot.aol.com' ) {
		document.writeln('<TABLE WIDTH=585 CELLPADDING=0 CELLSPACING=0 BORDER=0>');
		document.writeln('  <tr>');
		document.writeln('	<td bgcolor=FFFFFF colspan=8 height=10><spacer type=block height=10></td>');
		document.writeln('  </tr>');
		document.writeln('  <TR>');
		document.writeln('	<TD bgcolor=FFFFFF ALIGN="CENTER" COLSPAN=8><FONT FACE=verdana,arial,geneva SIZE=1><A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/info/feedback.html" STYLE="COLOR:#0000CC">Feedback</A>');
		document.writeln('| <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/info/siteindex.html" STYLE="COLOR:#0000CC">Site Index</A>');
		document.writeln('| <A HREF="http://dynamic.aol.com/cgi/redir?http://mediaspace.aol.com/" STYLE="COLOR:#0000CC">Advertise With Us</A>');
		document.writeln('| <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/info/link.html" STYLE="COLOR:#0000CC">Link to Us</A></FONT></TD>');
		document.writeln(' </TR>');
		document.writeln(' <TR>');
		document.writeln('	<TD bgcolor=FFFFFF HEIGHT=5 COLSPAN=8> </TD><!-- One blank space, with no code -->');
		document.writeln(' </TR>');
		document.writeln(' <TR>');
		document.writeln('	<TD BGCOLOR="#CC0000" COLSPAN=8><FONT FACE=verdana,arial,geneva COLOR="#FFFFFF" SIZE=2> <B>Web Channels</B></FONT></TD>');
		document.writeln(' </TR>');
		document.writeln(' <TR>');
		document.writeln('	<TD bgcolor=FFFFFF WIDTH=6> </TD><!-- One blank space, with no code -->');
		document.writeln('	<TD bgcolor=FFFFFF WIDTH=135 VALIGN="top"><FONT FACE=verdana,arial,geneva SIZE=1><A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/autos/home.adp" STYLE="COLOR:#0000CC">Autos</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/workplace/home.adp" STYLE="COLOR:#0000CC">Business & Careers</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/computing/home.adp" STYLE="COLOR:#0000CC">Computing</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/entertainment/home.adp" STYLE="COLOR:#0000CC">Entertainment</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/food/home.adp" STYLE="COLOR:#0000CC">Food & Cooking</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://aolcom.ea.com/home/home.jsp" STYLE="COLOR:#0000CC">Games</A><BR></FONT>');
		document.writeln('	</TD>');
		document.writeln('	<TD bgcolor=FFFFFF WIDTH=7> </TD><!-- One blank space, with no code -->');
		document.writeln('	<TD bgcolor=FFFFFF WIDTH=141 VALIGN="top"><FONT FACE=verdana,arial,geneva SIZE=1>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.governmentguide.com/?type=aolcom" STYLE="COLOR:#0000CC">Government</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/health/home.adp" STYLE="COLOR:#0000CC">Health & Fitness</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/homegarden/home.adp" STYLE="COLOR:#0000CC">Home & Garden</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/international/home.adp" STYLE="COLOR:#0000CC">International</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/legal/home.adp" STYLE="COLOR:#0000CC">Legal</A><BR></FONT>');
		document.writeln('	</TD>');
		document.writeln('	<TD bgcolor=FFFFFF WIDTH=7> </TD><!-- One blank space, with no code -->');
		document.writeln('	<TD bgcolor=FFFFFF WIDTH=141 VALIGN="top"><FONT FACE=verdana,arial,geneva SIZE=1>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://digitalcity.aol.com" STYLE="COLOR:#0000CC">Local</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://my.aol.com/" STYLE="COLOR:#0000CC">News</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/parenting/home.adp" STYLE="COLOR:#0000CC">Parenting</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://quicken.aol.com/" STYLE="COLOR:#0000CC">Personal Finance</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/pictures/home.adp" STYLE="COLOR:#0000CC">Pictures & Albums</A><BR></FONT>');
		document.writeln('	</TD>');
		document.writeln('	<TD bgcolor=FFFFFF WIDTH=7> </TD><!-- One blank space, with no code -->');
		document.writeln('	<TD bgcolor=FFFFFF WIDTH=141 VALIGN="top"><FONT FACE=verdana,arial,geneva SIZE=1>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/realestate/home.adp" STYLE="COLOR:#0000CC">Real Estate</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/research/home.adp" STYLE="COLOR:#0000CC">Research & Learn</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/sports/home.adp" STYLE="COLOR:#0000CC">Sports</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/travel/home.adp" STYLE="COLOR:#0000CC">Travel</A><BR>');
		document.writeln('	  <A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/webcenters/women/home.adp" STYLE="COLOR:#0000CC">Women</A><BR></FONT>');
		document.writeln('	</TD>');
		document.writeln(' </TR>');
		document.writeln(' <TR>');
		document.writeln('	<TD bgcolor=FFFFFF ALIGN="CENTER" COLSPAN=8><FONT FACE=verdana,arial,geneva SIZE=1><BR>');
		document.writeln('<A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/copyright.html" STYLE="COLOR:#0000CC">Copyright</A> © 2000 America Online, Inc.<BR>All rights reserved. ');
		document.writeln('<A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/copyright.html" STYLE="COLOR:#0000CC">Legal Notices</A><BR>');
		document.writeln('<A HREF="http://dynamic.aol.com/cgi/redir?http://free.aol.com/tryaolfree/index.adp?121421" STYLE="COLOR:#0000CC">Try AOL 6.0</A><BR>');
		document.writeln('<A HREF="http://dynamic.aol.com/cgi/redir?http://www.aol.com/info/privacy.html" STYLE="COLOR:#0000CC">Privacy Policy</A><BR></FONT></TD>');
		document.writeln(' </TR>');
		document.writeln(' <TR>');
		document.writeln('	<TD bgcolor=FFFFFF COLSPAN=8> </TD><!-- One blank space, with no code -->');
		document.writeln(' </TR>');
		document.writeln('</TABLE>');
	}

	if ( domain == 'theknot.planetout.com' ) {
		document.writeln('<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 width=640>');
		document.writeln('  <TR>');
		document.writeln('	<TD ALIGN=center nowrap bgcolor=FFFFFF><FONT SIZE="1" COLOR="#666666" FACE=VERDANA,ARIAL,HELVETICA>&nbsp;');
		document.writeln('<br><A HREF="http://www.planetout.com/feedback/" target=_top><FONT SIZE="1" COLOR="#666666" FACE=VERDANA,ARIAL,HELVETICA>Write Us</font></A>');
		document.writeln('| <A HREF="http://www.planetout.com/about/privacy/" target=_top><FONT SIZE="1" COLOR="#666666" FACE=VERDANA,ARIAL,HELVETICA>Privacy Policy</font></A>');
		document.writeln('| <A HREF="http://www.planetout.com/about/" target=_top><FONT SIZE="1" COLOR="#666666" FACE=VERDANA,ARIAL,HELVETICA>About PlanetOut</font></A><br>');
		document.writeln('	&copy; 1995-2001 PlanetOut Corporation.  All <A HREF="http://www.planetout.com/about/copyright/" target=_top><FONT SIZE="1" COLOR="#666666" FACE=VERDANA,ARIAL,HELVETICA>copyright</font></A> &amp; trademark rights reserved.<br>&nbsp;</font></TD>');
		document.writeln('  </TR>');
		document.writeln('</TABLE>');
	}

	if ( domain == 'theknot.compuserve.com' ) {
		document.writeln('<br>');
	}
	
	if ( domain == 'theknot.netscape.com' ) {
		document.writeln('<br>');
	}

	if ( domain == 'theknot.lifetimetv.com' ) {
		document.writeln('<script language=JavaScript>');
		document.writeln('  function tvschedule() {');
		document.writeln('   myWindow =');
		document.writeln('     window.open("http://www.lifetimetv.com/cgi/tvschedule.pl","","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=714,height=400");');
		document.writeln('  }');
		document.writeln('<\/script>');
		document.writeln('<TABLE WIDTH=640 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD COLSPAN=8 HEIGHT=6 valign=top><img src=http://a220.g.akamaitech.net/7/220/806/0001/images.theknot.com/images/wedding.gif width=1 height=20><br><img src="http://www.lifetimetv.com/shows/woal/images/theknot_footer_topline.gif" width=640 height=5 border=0></TD></TR><TR><TD ROWSPAN=2 width=161 height=54><a href="http://www.lifetimetv.com"><img src="http://www.lifetimetv.com/shows/woal/images/theknot_footer_lifetimelogo.gif" width=120 height=46 border=0></a></TD><TD width=40 valign=bottom><font face=arial,helvetica,sans-serif color="#095A98" size=1><a href="http://www.lifetimetv.com/shows/shows_index.html"><font color="#095A98">Shows</font></a>&nbsp;|&nbsp;</font></TD><TD width=42 valign=bottom><font face=arial,helvetica,sans-serif color="#095A98" size=1><a href="http://www.lifetimetv.com/movies/movies_index.html"><font color="#095A98">Movies</font></a>&nbsp;|&nbsp;</font></TD><TD width=59 valign=bottom><font face=arial,helvetica,sans-serif color="#095A98" size=1><a href="http://www.lifetimetv.com/astrology/index.html"><font color="#095A98">Horoscope</font></a>&nbsp;|&nbsp;</font></TD><TD width=74 valign=bottom><font face=arial,helvetica,sans-serif color="#095A98" size=1><a href="http://209.10.169.92/games/index.html"><font color="#095A98">Fun&nbsp;&&nbsp;Games</font></a>&nbsp;|&nbsp;</font></TD><TD width=69 valign=bottom><font face=arial,helvetica,sans-serif color="#095A98" size=1><a href="http://www.lifetimetv.com/sweeps/index.shtml"><font color="#095A98">Sweepstakes</font></a>&nbsp;|&nbsp;</font></TD>');
		document.writeln('<TD width=72 valign=bottom><font face=arial,helvetica,sans-serif color="#095A98" size=1><a href="http://www.lifetimetv.com/relationships/relships_index.html"><font color="#095A98">Relationships</font></a>&nbsp;|&nbsp;</font></TD><TD width=123 valign=bottom><font face=arial,helvetica,sans-serif color="#095A98" size=1><a href="javascript:tvschedule()"><font color="#095A98">TV Schedule</font></a></font></TD></TR><TR><TD COLSPAN=7 height=16><font face=arial,helvetica,sans-serif color="#999999" size=1>&copy; 2001 Lifetime Entertainment Services. All rights reserved.</font></TD></TR><TR><TD COLSPAN=8 height=4 valign=top><img src="http://www.lifetimetv.com/shows/woal/images/theknot_footer_bottomline.gif" width=640 height=3 border=0></TD></TR></TABLE>');
	}

}
