var base_url="http://www.baby-gaga.com/";var static_url="http://i.baby-gaga.com/";var members_url="http://members.baby-gaga.com/";var forums_url="http://forum.baby-gaga.com/";var pregnancy_url="http://pregnancy.baby-gaga.com/";var strollers_url="http://strollers.baby-gaga.com/";var tickers_url="http://tickers.baby-gaga.com/";var this_url=document.URL;if(this_url.toLowerCase().indexOf("babygaga.com")>0){this_url=this_url.replace(/babygaga\.com/i,"baby-gaga.com");window.location.href=this_url}function $(){var C=new Array();for(var B=0;B<arguments.length;B++){var A=arguments[B];if(typeof A=="string"){A=document.getElementById(A)}if(arguments.length==1){return A}C.push(A)}return C}function el(A){return document.getElementById(A)}function enc(A){return encodeURIComponent(A)}var endPageCalls=Array();var windowResizeCalls=Array();function endPageCall(){for(var i=0;i<endPageCalls.length;i++){eval(endPageCalls[i])}}function addEndPageCall(A){endPageCalls[endPageCalls.length]=A}function getHTTPObject(){var A=false;if(window.XMLHttpRequest){A=new XMLHttpRequest()}else{if(window.ActiveXObject){A=new ActiveXObject("Microsoft.XMLHTTP")}}return A}var http=getHTTPObject();function jxFormPost(B,A){var G="";var F;var C="";for(i=0;i<B.elements.length;i++){F=B.elements[i];switch(F.type){case"text":case"hidden":case"password":case"textarea":case"select-one":G+=F.name+"="+encodeURI(F.value).replace(/&/g,"$amp;")+"&";break;case"radio":if(F.checked){G+=F.name+"="+encodeURI(F.value).replace(/&/g,"$amp;")+"&"}break;case"checkbox":if(F.checked){if(F.name==C){if(G.lastIndexOf("&")==G.length-1){G=G.substr(0,G.length-1)}G+=","+encodeURI(F.value).replace(/&/g,"$amp;")}else{G+=F.name+"="+encodeURI(F.value).replace(/&/g,"$amp;")}G+="&";C=F.name}break;case"submit":if(A==null){F.value="sending...";F.onclick=function(){waitPop("sending form");return false}}break}}G=G.substr(0,G.length-1);var D=B.action;var E=D.indexOf("?");if(E>0){if(G.length>0){G+="&"}G+=D.substr(E+1);D=D.substr(0,E)}jxCall(D,G,A);return false}function jxResponse(){if(http.readyState==4){jxAction(http.responseText)}}function jxAction(response){if(response.charAt(1)=="|"){if(response.charAt(0)=="j"){newchild=createElement("div");newchild.innerHTML=response.substr(2);document.body.appendChild(newchild)}else{var results=response.split("\n");for(var i=0;i<results.length;i++){result=results[i].split("|");switch(result[0]){case"h":if($(result[1])){$(result[1]).innerHTML=result[2]}break;case"v":$(result[1]).value=result[2];break;case"c":els=getElementsByClass(result[1]);for(var j=0;j<els.length;j++){els[j].innerHTML=result[2]}break;case"f":eval(result[1]);break}}}}}function jxCall(B,C,A){if(A!=null){waitPop(A)}if(!http){alert("Sorry. Your browser does not support our technology. Please update your browser.");return false}http.open("POST",B,true);if(C.length==0){C="jxcall=true"}else{C=C+"&jxcall=true"}http.onreadystatechange=jxResponse;http.setRequestHeader("Content-type","application/x-www-form-urlencoded");http.setRequestHeader("Content-length",C.length);http.setRequestHeader("Connection","close");http.send(C)}function getStyle(B,A){if(!document.getElementById){return }var C=B.style[toCamelCase(A)];if(!C){if(document.defaultView){C=document.defaultView.getComputedStyle(B,"").getPropertyValue(A)}else{if(B.currentStyle){C=B.currentStyle[toCamelCase(A)]}}}return C}function toCamelCase(A){for(var B=toCamelCase.exp;B.test(A);A=A.replace(B,RegExp.$1.toUpperCase())){}return A}toCamelCase.exp=/-([a-z])/;function createElement(A){if(typeof document.createElementNS!="undefined"){return document.createElementNS("http://www.w3.org/1999/xhtml",A)}if(typeof document.createElement!="undefined"){return document.createElement(A)}return false}function getElementsByClass(F,B,I){var H=new Array();if(B==null){B=document}if(I==null){I="*"}var D=B.getElementsByTagName(I);var A=D.length;var G=new RegExp("(^|\\s)"+F+"(\\s|$)");var E=0;var C=0;for(E=0,C=0;E<A;E++){if(G.test(D[E].className)){H[C]=D[E];C++}}return H}var menupos=0;var menuopenpos=190;var desiredmenupos=menupos;var actualmenupos=menupos;var submenucontent=new Array('<a class="first" href="'+members_url+'register.php">register</a><a href="'+members_url+'search.php?pg=forum">search forum</a><a href="'+members_url+'search.php?pg=members">search members</a><a class="last" href="'+forums_url+'forum-5.html">FAQ</a>','<br /><a href="'+tickers_url+'pregnancy.php" class="first">pregnancy tickers</a><a class="last" href="'+tickers_url+'birthday.php">birthday tickers</a>','<a class="first" href="'+pregnancy_url+'calendar/">pregnancy calendar</a><a href="'+pregnancy_url+'photos/">pregnancy models</a><a href="'+pregnancy_url+'books/">top 40 books</a><a class="last" href="'+pregnancy_url+'cartoons/">week by week cartoons</a>','<a class="first" href="'+strollers_url+'">strollers</a><a href="'+strollers_url+'double-strollers.php">double strollers</a><a href="'+strollers_url+'reviews.php">stroller reviews</a><a class="last" href="'+strollers_url+'reviews/strollers-by-brand.php">compare brands</a>','<a class="first" href="'+members_url+'search.php">search site</a><a href="'+members_url+'search.php?pg=forum">search forum</a><a href="'+members_url+'search.php?pg=members">member search</a><a class="last" href="'+members_url+'search.php?pg=online">members online</a>');function movemenu(){if(actualmenupos!=desiredmenupos){togo=Math.abs(desiredmenupos-actualmenupos);if(togo<5){if((desiredmenupos-actualmenupos)>0){actualmenupos+=1}else{actualmenupos-=1}}else{actualmenupos+=Math.round((desiredmenupos-actualmenupos)/2)}submenu.style.visibility="hidden";submenu.innerHTML=""}if(actualmenupos==menuopenpos){desiredmenupos=actualmenupos;if(smid<=0){smid=lastvalidsmid}submenu.innerHTML=submenucontent[smid];submenu.style.visibility="visible"}eggmenu.style.width=actualmenupos+"px";if(actualmenupos!=desiredmenupos){setTimeout("movemenu()",50)}}var smtimerid;var smid=-1;var oldsmid=-1;var lastvalidsmid=-1;function sm(A){smid=A;if(smtimerid){clearTimeout(smtimerid)}smtimerid=setTimeout("viewsm()",500);if(A>=0){lastvalidsmid=A}}function viewsm(){if(oldsmid==smid){return }if(smid>=0){desiredmenupos=menuopenpos;movemenu()}else{if(smid==-1){desiredmenupos=menupos;movemenu()}}oldsmid=smid}function findPos(A){var B=curtop=0;if(A.offsetParent){B=A.offsetLeft;curtop=A.offsetTop;while(A=A.offsetParent){B+=A.offsetLeft;curtop+=A.offsetTop}}return[B,curtop]}function getScroll(){var B,A;if(document.all){if(document.documentElement.scrollTop){A=document.documentElement.scrollTop}else{A=document.body.scrollTop}if(document.documentElement.scrollLeft){B=document.documentElement.scrollLeft}else{B=document.body.scrollLeft}}else{B=window.pageXOffset;A=window.pageYOffset}return[B,A]}var eggmenu;var submenu;var dropmenu;var childdropmenu;var ddmtimerid;var ddmd="";var ddmid=-1;var oldddmid=-1;var ddmprefix="";function setupmenus(){eggmenu=$("menuslide");submenu=$("submenu");dropmenu=$("dropmenu");var C=0;for(C=1;C<=5;C++){attachsm("megg"+C,C-1)}attachsm("menuslide",-9);attachddm("dropmenu",-9);if($("toptabs")){var B=$("toptabs").getElementsByTagName("a");for(var A=0;A<B.length;A++){obj=B[A];obj.id="ttab"+A;attachddm("ttab"+A,A);obj.href="javascript:viewddm("+C+");"}}}addEndPageCall("setupmenus()");function ddm(A){ddmid=A;if(ddmtimerid){clearTimeout(ddmtimerid)}ddmtimerid=setTimeout("viewddm()",500)}function viewddm(){if(oldddmid==ddmid){return }if(ddmid>=0){if(!$("ttab"+ddmid)){alert("could not get tab"+ddmid)}pos=findPos($("ttab"+ddmid));if(childdropmenu){childdropmenu.style.display="none"}if(dropmenu.getElementsByTagName("div")[ddmid]){childdropmenu=dropmenu.getElementsByTagName("div")[ddmid]}else{return false}$("dropmenu").style.top=(31+pos[1])+"px";$("dropmenu").style.left=pos[0]+"px";childdropmenu.style.display="block";dropmenu.style.display="block";if($("topgoogad")){$("topgoogad").style.display="none"}}else{if(ddmid==-1){dropmenu.style.display="none";if($("topgoogad")){$("topgoogad").style.display="block"}}}oldddmid=ddmid}function attachsm(D,A){if(!$(D)){alert("could not find "+D);return false}obj=$(D);obj.onmouseover=function C(E){return sm(A)};obj.onmouseout=function B(E){return sm(-1)}}function attachddm(D,A){if(!$(D)){alert("could not find "+D);return false}obj=$(D);obj.onmouseover=function C(E){return ddm(A)};obj.onmouseout=function B(E){return ddm(-1)}}function tell(){return"mailto:your@friend.com?subject=Your friend has invited you to visit baby-gaga.com!&body=You have been invited to visit the page "+encodeURIComponent('"'+document.title+'"')+" at "+enc(location.href)}function popW(A){window.open(A,1,"toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=400")}var pop_panel;function viewportHeight(){return self.innerHeight||(document.documentElement.clientHeight||document.body.clientHeight)}function showPop(A){if(!$("pop_panel")){pop_panel=createElement("div");pop_panel.id="pop_panel";pop_panel.className="pop_panel";document.body.appendChild(pop_panel);window.onscroll=updatePopY}else{pop_panel=$("pop_panel")}pop_panel.innerHTML='<a class="closepop" href="javascript:hidePop()">close <b>X</b></a>'+A;if(pop_panel.style.display!="block"){fadePage(1);pop_panel.style.top="-1000px";pop_panel.style.display="block";updatePopY()}}function updatePopY(){wh=self.innerHeight||(document.documentElement.clientHeight||document.body.clientHeight);ypos=getScroll()[1]+(wh/2)-(pop_panel.offsetHeight/2);if(ypos>=getScroll()[1]){pop_panel.style.top=ypos+"px"}}function hidePop(){window.onscroll=null;pop_panel.style.display="none";fadePage(0)}function confirmPop(D,A,C,B){C=C||"confirm";B=B||"cancel";A="<h1>"+A+"</h1>";A+='<table><tr><td><a class="sobutton" href="javascript:eval(\''+D+"');\">"+C+'</a></td><td><a class="sobutton" href="javascript:hidePop()">'+B+"</a></td></tr></table>";showPop(A)}function alertPop(A){A+='<a class="sobutton" style="margin:10px auto;float:none;display:block;" href="javascript:hidePop()">ok</a>';showPop(A)}function fadePage(A){var B;if(!document.getElementById("page_screen")){var B=createElement("div");B.id="page_screen";B.innerHTML="&nbsp;";document.body.appendChild(B);B.onclick=hidePop}else{B=document.getElementById("page_screen")}if(A==1){B.style.height=document.body.parentNode.scrollHeight+"px";B.style.display="block"}else{B.style.display="none"}}function clr(A){$(A).innerHTML=""}function ptAdd(C,B,A){var D="<h1>Add <i>"+B+"</i> to my Parentank now</h1>";var E="jxCall('editparentank.php','method=add&vm="+C+"','adding member...')";if((A!=null)&&(A==0)){E="loginForm()"}D+='<table><tr><td><a class="sobutton" href="javascript:'+E+'">confirm</a></td><td><a class="sobutton" href="javascript:hidePop()">cancel</a></td></tr></table>';D+="<h2>adding "+B+' to your parentank allows you to:</h2><ul><li>receive their news &amp; announcements</li><li>filter all the forum boards for their topics</li><li>pre-approves their comments on your profile and albums</li><li>let them know you\'re interested in them</li><li>increase their motivation to add YOU to their Parentank</li></ul><a class="end" href="'+forums_url+'faq-2.html">FAQ: more about Parentanking a member</a>';showPop(D)}function igAdd(C,B,A){var D="<h1>Ignore posts from <i>"+B+"</i>?</h1>";var E="jxCall('editignored.php','pg=add&vm="+C+"','ignoring member...')";if((A!=null)&&(A==0)){E="loginForm()"}D+='<table><tr><td><a class="sobutton" href="javascript:'+E+'">confirm</a></td><td><a class="sobutton" href="javascript:hidePop()">cancel</a></td></tr></table>';D+="<h2>when you ignore "+B+':</h2><ul><li>their posts will be subtly hidden in topics</li><li>they will not know that you are ignoring them</li><li>you can still read their posts by clicking on the "view anyway" links</li><li>you can un-ignore them at any time</li></ul><a class="end" href="'+forums_url+'faq-6.html#ignore">FAQ: more about ignoring a member</a>';showPop(D)}function blAdd(C,B,A){var D="<h1>Block <i>"+B+"</i> from contacting you?</h1>";var E="jxCall('editblocked.php','pg=add&vm="+C+"','blocking member...')";if((A!=null)&&(A==0)){E="loginForm()"}D+='<table><tr><td><a class="sobutton" href="javascript:'+E+'">confirm</a></td><td><a class="sobutton" href="javascript:hidePop()">cancel</a></td></tr></table>';D+="<h2>when you block "+B+':</h2><ul><li>they will not be able to private message you or post comments on your profile</li><li>they will not know that you are blocking them</li><li>you can un-block them at any time by editing your blocked list (accessible from your messages area)</li></ul><a class="end" href="'+forums_url+'faq-6.html#block">FAQ: more about blocking a member</a>';showPop(D)}function loginForm(A){if(document.cookie){if((document.cookie.indexOf("bgmid=s")!=-1)||(document.cookie.indexOf("bgmid=r")!=-1)){if(A){window.location.href=A}else{window.reload(true)}return }}var B="<h1>You must be logged in to do that!</h1>";B+='<form name="login" action="login.php" onsubmit="return jxFormPost(this,\'logging in\');" method="post"><input type="hidden" name="fhind" value="login" /><div style="width:140px;float:right;margin:20px -10px 0 -84px;"><b>Not a member yet?<br /><a href="'+members_url+'register.php">REGISTER FOR FREE!!!</a></b></div><table class="login"><tr><th>email</th><td><input type="text" name="email" size="25" maxlength="64" /></td></tr><tr><th>password</th><td><input style="padding:0;margin:0;" type="password" name="password" size="25" maxlength="16" minlength="6" /><a style="margin-top:-5px;" href="'+members_url+'forgot.php">forgot your password?</a></td></tr></table><div style="text-align:center;font-size:11px;"><input type="checkbox" name="remember" CHECKED /> log me in automatically</div><input type="submit" class="big" style="margin-top:8px;" value="login" />';if(A){B+='<input type="hidden" name="desired_url" value="'+A+'" />'}B+="</form>";showPop(B)}function waitPop(A){var B='<div class="indicator">';if(A!=null){B+=A+"..."}B+="one moment please...</div>";showPop(B)}function flagspam(B){var A="<h1>Flag this post as spam?</h1>";A+='<table><tr><td><a class="sobutton" href="javascript:cflagspam('+B+')">confirm</a></td><td><a class="sobutton" href="javascript:hidePop()">cancel</a></td></tr></table>';A+='<h2>Posts should only be report as SPAM if they:</h2><ul><li>link to other sites without contributing meaningfully to the thread or forum</li><li>claim to offer online employment or chances to make money</li><li>contain pornographic, commercial, or pharmaceutical drug-related content</li></ul><a class="end" target="_blank" href="faq-7.html#spam">FAQ: more about Spam</a>';showPop(A)}function cflagspam(A){hidePop();jxCall("editbbspam.php","pg=flag&post_id="+A+"&h=paper"+A);waitPop("flagging spam")}function votespam(B,A){jxCall("editbbspam.php","pg=vote&post_id="+B+"&h=votespam"+B+"&vote="+A);$("votespam"+B).innerHTML="voting..."}function flagdrama(A){showPop('<h1>Are you sure you want to flag this topic as drama?</h1><table><tr><td><a class="sobutton" href="javascript:cflagdrama('+A+')">flag it!</a></td><td><a class="sobutton" href="javascript:hidePop()">oops, no</a></td></tr></table><h2>A topic should only be flagged as drama if:</h2><ul><li>The conversation should be moved out of the main forums and into <a href="http://forum.baby-gaga.com/forum-28.html" target="_blank">The Drama Corner</a> because it has deteriorated into name-calling, verbal abuse, accusations of faking an identity, and/or other forms of cat-fighting</li></ul><a class="end" target="_blank" href="faq-7.html#drama">FAQ: more about Drama</a>')}function cflagdrama(A){hidePop();$("topicdrama").innerHTML="voting...";jxCall("editbbdrama.php","pg=flag&topic_id="+A+"&h=topicdrama")}function votedrama(B,A){$("votedrama").innerHTML="voting...";jxCall("editbbdrama.php","pg=vote&topic_id="+B+"&h=votedrama&vote="+A)}function renderPregnancyMeter(A,E){var D=createElement("div");D.id="pregmeter";var C='<div style="padding:0 0 0 2px;">';if(E==0){C+='<i>my</i><a class="edit" href="'+members_url+'register.php">due<br />&nbsp;date</a>'}else{C+='<i>my</i><br />due<br />&nbsp;date<br /><a class="edit" href="'+members_url+'editfamily.php">'+E+"</a>"}C+="</div>";var F;for(var B=40;B>0;B--){if(B<A){F="passed"}else{if(B>A){F="future"}else{F="selected"}}C+='<a class="'+F+'" href="'+pregnancy_url+"calendar/week"+B+'">'+B+"</a>"}D.innerHTML=C;document.body.appendChild(D)}var topcontentpos=70;function updateTopContentPos(){if($("topcontent")){width=self.innerWidth||(document.documentElement.clientWidth||document.body.clientWidth);var A=0;if(width<926){A=120}else{A=70}if(topcontentpos!=A){$("topcontent").style.margin=A+"px auto 0 auto";topcontentpos=A}}}window.onresize=updateTopContentPos;function removeCheckBoxBorders(){var B=document.getElementsByTagName("input");for(i=0;i<B.length;i++){var A=B[i].getAttribute("type");if((A=="checkbox")||(A=="radio")){B[i].style.border="none"}}}addEndPageCall("removeCheckBoxBorders()")