
 


// Scriptlets



	
	var footerURL="http://parenting.ivillage.com/javascript/ivrefresh/wrapperfooter/0,,12-0,00.js";
	var headerTop="http://parenting.ivillage.com/IVR_NewHeaderTop/0,,12,00.js";
	var headerBot="http://parenting.ivillage.com/IVR_NewHeaderBot/0,,12,00.js";
	var mbAdUnitIdMain = "8182";
	var mbAdUnitIdMsg = "6851";
	microsoft_adunit_keywordhints="parenting";
	var iv_contenttype = "Messageboards";
	var iv_section = "Parenting";



document.write("<scr"+"ipt type=\"text/javascript\" language=\"javascript\" src=\"http://www.ivillage.com/shared/js/scriptlets/0,,nbc,00.js\"></scr" + "ipt>");

if (typeof iv_scriptletIncluded_cta == "undefined") { document.write("<scr"+"ipt language=\"javascript\" type=\"text/javascript\" src=\"http://www.ivillage.com/shared/js/scriptlets/0,,cta,00.js\"></scr" + "ipt>"); var iv_scriptletIncluded_cta = 1; }
if (typeof iv_scriptletIncluded_utilities == "undefined") { document.write("<scr"+"ipt language=\"javascript\" type=\"text/javascript\" src=\"http://www.ivillage.com/shared/js/scriptlets/0,,utilities,00.js\"></scr" + "ipt>"); var iv_scriptletIncluded_utilities = 1; }
document.write("<scr"+"ipt language=\"javascript\" type=\"text/javascript\" src=\"http://www.ivillage.com/prospero/channel/js/0,,12,00.js\"></scr" + "ipt>");

function iv_cleanURL(url) {
    var fullURL = url.toString();
    var urlSplit = fullURL.split("?");
    var baseURL = urlSplit[0];
    baseURL = baseURL.replace(/\/*$/g,"");
    return(baseURL);
}

function cs_urlEscape(url) {
	var encodedURL=escape(url);
  	encodedURL=encodedURL.replace(/\//g, "%2F"); 
  	return encodedURL;
}

document.checkedPBA = (location.search == '')? true:false
                  if (!document.iv_arrival_pba) document.iv_arrival_pba = '';
                  if (!document.dartFTT) document.dartFTT = '';
                  if (!document.dartTData) document.dartTData = '';
                  if (!document.dartTid) document.dartTid = '';
                  if (!document.catid) document.catid = '';
                  if (!document.ivrtt) document.ivrtt = '';
                  if (typeof eTandomAd == "undefined") eTandomAd = "none";

                  document.iv_commonDARTJS = '';

                  if (typeof iv_showCobrand == 'string') {
	                if (iv_showCobrand == 'msnwomen' || iv_showCobrand == 'msndiet') {
                      document.iv_commonDARTJS = '!category=msn;'
                    }
                  }

                  if (!document.ivNPA) {
                    qs = location.search.substring(1).split('&');
                    document.ivNPA = '';
                    for (i = 0; i < qs.length; i++) {
                      valSplit = qs[i].split('=');
                      if (valSplit[0] == 'ivNPA') {
                        if (valSplit[1] == 1) {
                          document.iv_arrival_pba = '!category=nopopup;!category=nopopunder;';
                          break;
                        }
                      }
                    }
                  }

                  if (!document.checkedPBA) {
                    for (i = 0; i < qs.length; i++) {
                      pos = qs[i].indexOf('=');
                      if (qs[i].substring(0, pos) == 'pba') {
                        document.iv_arrival_pba = unescape(qs[i].substring(pos+1)+';!category=nopopup;!category=nopopunder;');
                        document.checkedPBA = 1;
                        break;
                      }
                    }
                  }

// s2f required variable
var iv_channelID = "d";

// DART required variables

var dartDateObj = new Date();
var dartDate = "" + dartDateObj.getMinutes() + dartDateObj.getSeconds() + dartDateObj.getHours() + dartDateObj.getMilliseconds();
// === CTA ===
// Setup needs to occur before anything happens. These are the urls for omniture data. Will be used later.
window.onload = function() {
	setImp('yahoo|preg');
}
var iv_cleanedURL = iv_cleanURL(window.location);
iv_cleanedURL = cs_urlEscape(iv_cleanedURL);

var iv_overtureSrcCTA = "http://cm.ivillage.overture.com/js_flat_1_0/?config=1431656892&ctxtId=preg&ctxtUrl=" + iv_cleanedURL + "&source=ivillage_us_preg_cpm_ctxt&type=preg_mb&maxCount=2&keywordCharEnc=latin1&cb=' + dartDate + '";

var iv_overtureSrcIL  = "http://cm.ivillage.overture.com/js_flat_1_0/?config=1431656892&ctxtId=preg_interlv&type=preg_mb&ctxtUrl=" + iv_cleanedURL + "&source=ivillage_us_interlv_preg_np_ctxt&maxCount=1&keywordCharEnc=latin1&cb=' + dartDate + '";

var iv_overtureSourceHS = "http://cmls.overture.com/ls_js_1_0/?config=3697471804&linkspotId=preg&NKw=10&NGrp=1&source=ivillage_us_preg_np_hs-search";

function iv_drawBoardCTA() {
    
    if (window.suppressAdFlag && suppressAdFlag == 1) { return; }
	// document.write("<scr"+"ipt language=\"javascript\" type=\"text/javascript\" src=\"http://cmhtml.overture.com/d/search/p/standard/jsflat/tracking/?Keywords=FPLinkSpot&Partner=ivillage_us_tracking&cb=' + dartDate + '\"></scr" + "ipt>");
    document.write("<scr"+"ipt language=\"javascript\" type=\"text/javascript\" src=\"http://xml.overture.com/d/search/p/standard/jsflat/tracking/?Keywords=FPLinkSpot&Partner=ivillage_us_hs-search_preg_tracking&cb=' + dartDate + '\"></scr" + "ipt>");
    iv_drawCTA2(""); 
    }
/*
function iv_drawMSN() {
	document.write('<scr'+'ipt type="text/javascript" src="http://choosers.ivillage.com/adsync/serveMbMSNbox.js?' + theMSNBoxRandom + '"></scr'+'ipt>'); 
}
*/

// === Header ===
function iv_drawHeaderImage() {
    }

// === DART ===

var iv_packageid="";

function iv_drawAd1 () {
    if (window.suppressAdFlag) { if (suppressAdFlag == 1) { return; } }
    document.write('<div id="pos1"><iframe name="frame1" id="frame1" src="http://messageboards.ivillage.com/dartad_refresh.html/?xtra=parenting_boards;chan=parenting;sect=boards;boardid=iv-ppwtafbabyls;cont=mb;sub=baby;!category=parenting;!category=mb;&size=970x66,728x90&key=&dartsite=nbcu.ivillage&pos=1" width=970 height=90 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor="#000000">');
	        	document.write('</iframe></div>');
				
}

function iv_drawAd7 () {
    if (window.suppressAdFlag) { if (suppressAdFlag == 1) { return; } }
    document.write('<div id="pos7"><iframe name="frame7" id="frame7" src="http://messageboards.ivillage.com/dartad_refresh.html/?xtra=parenting_boards;chan=parenting;sect=boards;boardid=iv-ppwtafbabyls;cont=mb;sub=baby;!category=parenting;!category=mb;&size=300x250,2x2&key=&dartsite=nbcu.ivillage&pos=7" width=300 height=250 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor="#000000">');
	        	document.write('</iframe></div>');
				
}

function iv_drawAd11 () {
    if (window.suppressAdFlag) { if (suppressAdFlag == 1) { return; } }
    document.write('<div id="pos11"><iframe name="frame11" id="frame11" src="http://messageboards.ivillage.com/dartad_refresh.html/?xtra=parenting_boards;chan=parenting;sect=boards;boardid=iv-ppwtafbabyls;cont=mb;sub=baby;!category=parenting;!category=mb;&size=468x60,728x90&key=&dartsite=nbcu.ivillage.b&pos=11" width=728 height=90 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor="#000000">');
	        	document.write('</iframe></div>');
				
}

function iv_drawAd13 () {
    if (window.suppressAdFlag) { if (suppressAdFlag == 1) { return; } }
    document.write('<div id="pos13"><iframe name="frame13" id="frame13" src="http://messageboards.ivillage.com/dartad_refresh.html/?xtra=parenting_boards;chan=parenting;sect=boards;boardid=iv-ppwtafbabyls;cont=mb;sub=baby;!category=parenting;!category=mb;&size=&key=&dartsite=nbcu.ivillage&pos=13" width=300 height=250 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor="#000000">');
	        	document.write('</iframe></div>');
				
}

function iv_drawAd14 () {
    if (window.suppressAdFlag) { if (suppressAdFlag == 1) { return; } }
    document.write('<div id="pos14"><iframe name="frame14" id="frame14" src="http://messageboards.ivillage.com/dartad_refresh.html/?xtra=parenting_boards;chan=parenting;sect=boards;boardid=iv-ppwtafbabyls;cont=mb;sub=baby;!category=parenting;!category=mb;&size=300x250,2x2&key=&dartsite=nbcu.ivillage&pos=14" width=300 height=250 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor="#000000">');
	        	document.write('</iframe></div>');
				
}

function iv_drawAd15 () {
    if (window.suppressAdFlag) { if (suppressAdFlag == 1) { return; } }
    document.write('<div id="pos15"><iframe name="frame15" id="frame15" src="http://messageboards.ivillage.com/dartad_refresh.html/?xtra=parenting_boards;chan=parenting;sect=boards;boardid=iv-ppwtafbabyls;cont=mb;sub=baby;!category=parenting;!category=mb;&size=300x250,2x2&key=&dartsite=nbcu.ivillage&pos=15" width=300 height=250 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor="#000000">');
	        	document.write('</iframe></div>');
				
}
function iv_drawMBP() {
    if (window.suppressAdFlag && suppressAdFlag == 1) { return; }
    document.write('<a href="http://www.ivillage.com/messageboardsplus?o=dcm,mbp,iv,bn,300x250,msgbds,tenancy"><img src="http://a820.g.akamai.net/f/820/822/1d/i.ivillage.com/messageboards/redesign/mbp.jpg" border="0" alt="" /></a>');
}

// === Back To Link ===
function iv_drawBack() {
    document.writeln("<span class=\"ts2\">return to <a href=\"http://parenting.ivillage.com/messageboards/\" class=\"ls1\">Pregnancy & Parenting's message boards</a></span>");
}

 //Browser detection code - quirks mode 
	var BrowserDetect = {
		init: function () {
			this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
			this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version";
			this.OS = this.searchString(this.dataOS) || "an unknown OS";
		},
		searchString: function (data) {
			for (var i=0;i<data.length;i++)	{
				var dataString = data[i].string;
				var dataProp = data[i].prop;
				this.versionSearchString = data[i].versionSearch || data[i].identity;
				if (dataString) {
					if (dataString.indexOf(data[i].subString) != -1)
						return data[i].identity;
				}
				else if (dataProp)
					return data[i].identity;
			}
		},
		searchVersion: function (dataString) {
			var index = dataString.indexOf(this.versionSearchString);
			if (index == -1) return;
			return 
	
			parseFloat(dataString.substring(index+this.versionSearchString.length+1));
		},
		dataBrowser: [
			{
				string: navigator.userAgent,
				subString: "Chrome",
				identity: "Chrome"
			},
			{ 	string: navigator.userAgent,
				subString: "OmniWeb",
				versionSearch: "OmniWeb",
				identity: "OmniWeb"
			},
			{
				string: navigator.vendor,
				subString: "Apple",
				identity: "Safari",
				versionSearch: "Version"
			},
			{
				prop: window.opera,
				identity: "Opera"
			},
			{
				string: navigator.vendor,
				subString: "iCab",
				identity: "iCab"
			},
			{
				string: navigator.vendor,
				subString: "KDE",
				identity: "Konqueror"
			},
			{
				string: navigator.userAgent,
				subString: "Firefox",
				identity: "Firefox"
			},
			{
				string: navigator.vendor,
				subString: "Camino",
				identity: "Camino"
			},
			{		// for newer Netscapes (6+)
				string: navigator.userAgent,
				subString: "Netscape",
				identity: "Netscape"
			},
			{
				string: navigator.userAgent,
				subString: "MSIE",
				identity: "Explorer",
				versionSearch: "MSIE"
			},
			{
				string: navigator.userAgent,
				subString: "Gecko",
				identity: "Mozilla",
				versionSearch: "rv"
			},
			{ 		// for older Netscapes (4-)
				string: navigator.userAgent,
				subString: "Mozilla",
				identity: "Netscape",
				versionSearch: "Mozilla"
			}
		],
		dataOS : [
			{
				string: navigator.platform,
				subString: "Win",
				identity: "Windows"
			},
			{
				string: navigator.platform,
				subString: "Mac",
				identity: "Mac"
			},
			{
				   string: navigator.userAgent,
				   subString: "iPhone",
				   identity: "iPhone/iPod"
		    },
			{
				string: navigator.platform,
				subString: "Linux",
				identity: "Linux"
			}
		]
	
	};
	BrowserDetect.init();
// Code for asynchronously loading MSN ads
	function ShowMSN(theUniqueID)
	{
	      var tDiv = document.getElementById("datadiv");
	        var FirstElement = tDiv.firstChild;
	        var v = FirstElement.nodeValue;
	        var tFrame = document.getElementById(theUniqueID);
	        var doc = tFrame.contentDocument;
	        if (doc == undefined || doc == null)
	          doc = tFrame.contentWindow.document;
	        doc.open();
			doc.write('<html><body style="margin:0px !important;">');
	        doc.write(v);
			doc.write('</body></html>');
	        doc.close();
	      tFrame.style.visibility="visible";
	}


// Code for testing the browser and calling different approach
	function iv_drawMSN() {
		if(BrowserDetect.browser != 'Explorer') {
				theUniqueID = "ivMSNBox1";
				document.write('<div style="position:absolute;left:0;top:0;visibility:hidden;" id="datadiv">');
				document.write('<!--');
				document.writeln('<scr'+'ipt type="text/javascript">');
				document.writeln("microsoft_adunitid= \"" + theMSNBoxAdUnit + "\";");
	 			document.writeln("microsoft_adunit_width= \"" + theMSNBoxWidth + "\";");
	 			document.writeln("microsoft_adunit_height= \"" + theMSNBoxHeight + "\";");
				document.writeln('microsoft_adunit_legacy = "false";')
				document.writeln('</scr'+'ipt>');
				document.writeln('<scr'+'ipt type=\"text/javascript\" src=\"http://adsyndication.msn.com/delivery/getads.js\"></scr'+'ipt>');
				document.write('-->');
				document.write('</div>');
				document.writeln('<iframe scrolling=\"no\" frameborder=\"no\" id=\"' + theUniqueID + '\" style=\"visibility:hidden; border: none; width:' + theMSNBoxWidth + 'px; height:' + theMSNBoxHeight + 'px;\" src=\"about:blank\"></iframe>');
				setTimeout("ShowMSN('" + theUniqueID + "')", 1000);
			} else {
					microsoft_adunitid	= theMSNBoxAdUnit;
					microsoft_adunit_width	= theMSNBoxWidth ;
					microsoft_adunit_height	= theMSNBoxHeight;
					microsoft_adunit_legacy	= "false";	
					document.writeln('<scr'+'ipt type=\"text/javascript\" src=\"http://adsyndication.msn.com/delivery/getads.js\"></scr'+'ipt>');
			}  
	}
	

