/*
 * Copyright (c) 2009, The Walt Disney Company All Rights Reserved.
 */

function wdig_show(_1){wdig_getObj(_1).style.display="block";};function wdig_hide(_2){wdig_getObj(_2).style.display="none";};function wdig_getObj(_3){if(typeof _3=="string"||_3 instanceof String){return document.getElementById(_3);}return _3;};function Accordian(_4){typeof _4=="object"?this.element=_4:this.element=document.getElementById(_4);if(!this.element){return false;}this.div=this.element.getElementsByTagName("div")[0];this.tabs=this.div.getElementsByTagName("a");this.tabContent=this.getTabContent();this.bind();};Accordian.prototype.getTabContent=function(){tabContent=new Array();this.divs=this.element.getElementsByTagName("div");for(var i=0;i<this.divs.length;i++){if(this.divs[i].id){tabContent.push(this.divs[i]);}}return tabContent;};Accordian.prototype.bind=function(){var o=this;for(var i=0;i<this.tabs.length;i++){this.tabs[i].onclick=function(){var _8=this.className.split("_");if(_8[1]!="_active"){o.open(this);return false;var a=this.getElementsByTagName("a")[0];if(a){a.onclick=function(){return false;};}}};}};Accordian.prototype.open=function(_a){for(var i=0;i<this.tabs.length;i++){var _c=this.tabs[i];var _d=this.tabs[i].className.split("_");if(_c==_a){this.collapse();_c.className=_d[0]+"_active";this.tabContent[i].style.display="block";}}};Accordian.prototype.collapse=function(){for(var i=0;i<this.tabs.length;i++){var _f=this.tabs[i].className.split("_");this.tabs[i].className=_f[0];this.tabContent[i].style.display="none";}};function ShowNext(_10,_11,_12){this.container=document.getElementById(_10);if(this.container==null){return;}this.elements=document.getElementsByClassName(_11,_10);this.prev=document.getElementsByClassName("prev",_12)[0];this.next=document.getElementsByClassName("next",_12)[0];this.create();};ShowNext.prototype.create=function(){var _13=this.next;var _14=this.prev;var _15=this.elements;var _16=this.getShown();for(var i=0;i<_15.length;i++){if(i>0){this.elements[i].style.display="none";}}_13.onclick=function(){_15[_16].style.display="none";_16=(_16+1);if(_16>=_15.length){_16=0;}_15[_16].style.display="block";return false;};_14.onclick=function(){_15[_16].style.display="none";if(_16==0){_16=_15.length;}_16=(_16-1);_15[_16].style.display="block";return false;};};ShowNext.prototype.getShown=function(){var _18=this.elements;for(var i=0;i<_18.length;i++){if(_18[i].style.display==""||_18[i].style.display=="block"){return i;}}};function PpSearch(_1a,_1b){this.field=document.getElementById(_1a);this.field.onfocus=function(){if(this.value==_1b){this.value="";}};};function HeaderSearch(id){this.form=document.getElementById(id);if(this.form.elements["defaultURL"]==null){return;}this.rootURL="http://family.go.com/";if(location.href.indexOf("beta.family.go.com")>-1){this.rootURL="http://beta.family.go.com/";}if(location.href.indexOf("family.go.com:9080")>-1){this.rootURL="http://family.go.com:9080/";}this.f1kURL="http://family1000.family.go.com/";this.defaultURL=this.form.elements["defaultURL"].value;this.defaultValue=this.form.elements["searchKeyword"].value;this.URL=this.defaultURL;this.bindControls();};HeaderSearch.prototype.bindControls=function(){var o=this;var _1e=this.form.getElementsByTagName("input");for(i=0;i<_1e.length;i++){switch(_1e[i].type){case "text":_1e[i].onfocus=function(){o.URL=o.defaultURL;if(this.value=="Enter a search term"){this.value="";}};break;case "image":_1e[i].onfocus=function(){o.URL=this.value;};break;}}};HeaderSearch.prototype.submit=function(){var _1f="";if(this.URL=="family1000"){_1f=encodeURIComponent(this.form.elements["searchKeyword"].value.replace(/\//g," ")).replace(/%20/g,"+");}else{if(this.form.elements["searchKeyword"]!=null){_1f=encodeURIComponent(encodeURIComponent(this.form.elements["searchKeyword"].value));_1f=_1f.replace(/%252F/gi,"");}else{return;}}if(this.form.elements["searchKeyword"].value!=this.defaultValue){switch(this.URL){case "web":url=this.rootURL+"websearch/"+_1f+"/";break;default:case "internal":url=this.rootURL+"search-familycom/"+_1f+"/";break;case "family.com":url=this.rootURL+"search-familycom/"+_1f+"/";break;case "family1000":if(_1f.length>0){url=this.f1kURL+_1f+"/";}else{url=this.f1kURL;}break;}top.document.location.href=url;return false;}};function deliverPopDisclaimer(_20){var _21=window.open("","disclaimer","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=370,height=210,top=100,left=150,screenX=180,screenY=100");_21.document.write("<html><head><title>Family.go.com - Disclaimer</title>");_21.document.write("<SCR"+"IPT TYPE=\"text/javascript\" LANGUAGE=\"JavaScript\">");_21.document.write("sendTimer = setTi"+"meout(\"sendToClientSide()\",1500);closeTimer = setT"+"imeout(\"window.close()\",15000);");_21.document.write("func"+"tion sendToCl"+"ientSide(){window.op"+"en(\""+_20+"\"); this.focus();}");_21.document.write("</scr"+"ipt>");_21.document.write("</head><body bgcolor=\"#FFFFFF\" text=\"#0065CE\" link=\"#FFFF80\" vlink=\"#FFFF80\" alink=\"#FFFF80\" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");_21.document.write("<table width=\"370\" height=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><td><table width=\"330\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tr><td><br><FONT FACE=\"Verdana,sans-serif\" SIZE=\"2\" COLOR=\"#0065CE\"><b>The web site you are about to link to is not controlled by Family.go.com and different terms of use and privacy policy will apply. By proceeding you agree and understand that Family.go.com is not responsible for the site you are about to access.</b></FONT><br><br></td></tr></table>");_21.document.write("</td></tr><tr bgcolor=\"#ffffff\"><td align=\"center\" height=\"20\"><a href=\"javascript:window.close();\"><FONT FACE=\"Verdana,sans-serif\" SIZE=\"1\" COLOR=\"#006699\"><b>Close this window</b></font></a><BR></td></tr></table>");_21.document.write("</body></html>");_21.document.close();};function _findPosX(obj){var _23=0;if(obj.offsetParent){while(obj.offsetParent){_23+=obj.offsetLeft;obj=obj.offsetParent;}}else{if(obj.x){_23+=obj.x;}}return _23;};function _findPosY(obj){var _25=0;if(obj.offsetParent){while(obj.offsetParent){_25+=obj.offsetTop;obj=obj.offsetParent;}}else{if(obj.y){_25+=obj.y;}}return _25;};function com_wdig_style_any(obj,_27){if(obj.style[_27]!=null&&obj.style[_27].length>0){return obj.style[_27];}if(obj.currentStyle!=null&&obj.currentStyle[_27]!=null&&obj.currentStyle[_27].length>0){return obj.currentStyle[_27];}if(obj.computedStyle!=null){return obj.computedStyle[_27];}if(obj.currentStyle){return obj.currentStyle[_27];}if(document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(obj,null).getPropertyValue(_27);}return null;};function com_wdig_wh_styleWHSet(obj,w,h,_2b){if(w!=null){obj.style.width=w+(_2b==null?"px":_2b);}if(h!=null){obj.style.height=h+(_2b==null?"px":_2b);}};function com_wdig_wh_styleWH(obj){var _2d=com_wdig_style_any(obj,"width");var _2e=com_wdig_style_any(obj,"height");if(isNaN(_2d)||isNaN(_2e)){return null;}if(_2d!=null||_2e!=null){return [parseInt(_2d),parseInt(_2e)];}return null;};function com_wdig_wh_windowInnerWHSS(){if(document.all&&!window.opera){var src=document.compatMode=="CSS1Compat"?document.documentElement:document.body;return [src.clientWidth,src.clientHeight,src.scrollLeft,src.scrollTop];}return [window.innerWidth,window.innerHeight,window.pageXOffset,window.pageYOffset];};function com_wdig_wh_WH(obj){if(obj.getImageWidth){return [obj.getImageWidth,obj.getImageHeight];}if(obj.offsetWidth){return [obj.offsetWidth,obj.offsetHeight];}if(obj.clip&&obj.clip.width){return [obj.clip.width,obj.clip.height];}return null;};function wdig_fadeOut(id,_32){if(_32==null){setTimeout("document.getElementById('"+id+"').style.display='none';",110);_32=90;}else{_32=_32-10;}wdig_setOpacity(id,_32);if(_32>0){var foo="wdig_fadeOut('"+id+"',"+_32+");";window.setTimeout(foo,10);}};function wdig_fadeIn(id,_35){document.getElementById(id).style.display="block";_35=(_35==null)?10:(_35+10);wdig_setOpacity(id,_35);if(_35<100){window.setTimeout("wdig_fadeIn('"+id+"',"+_35+");",10);}};function wdig_setOpacity(id,_37){var obj=document.getElementById(id);obj.src=obj.src;};function wdig_addMSFilterValue(obj,_3a,_3b,_3c){if(obj.filters){if(obj.filters[_3a]){obj.filters[_3a][_3b]=_3c;}else{var _3d=_3a+"."+_3b;switch(_3a){case "alpha":_3c="progid:DXImageTransform.Microsoft.Alpha("+_3b+"="+_3c+")";break;default:throw "filter ("+_3a+") not handled by wdig_addMSFilterValue()";}if(obj.msBrowserFilterStorage==null){obj.msBrowserFilters=new Object();obj.msBrowserFilterStorage=new Array();if(obj.style.filter.length>0){obj.msBrowserFilters["original"]=obj.msBrowserFilterStorage.length;obj.msBrowserFilterStorage[obj.msBrowserFilters["original"]]=obj.style.filter;}}if(obj.msBrowserFilters[_3d]==null){obj.msBrowserFilters[_3d]=obj.msBrowserFilterStorage.length;}obj.msBrowserFilterStorage[obj.msBrowserFilters[_3d]]=_3c;obj.style.filter=obj.msBrowserFilterStorage.join(" ");}}};function showCouponInstructions(_3e){var _3f="id-couponInstructionDiv";var _40=document.getElementById(_3e);var _41=document.getElementById(_3f);if(_41==null){var _42=document.getElementsByTagName("body")[0];var req=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");if(document.all){_42.insertAdjacentHTML("beforeEnd","<div id=\""+_3f+"\"></div>");_41=document.getElementById(_3f);}else{_41=document.createElement("div");_41.setAttribute("id",_3f);}req.open("GET","/html/coupons/instructionsDiv.html",false);req.send(null);_41.innerHTML=req.responseText;_41.className="couponPositionalDiv";_42.appendChild(_41);}_41.style.top=_findPosY(_40)+"px";_41.style.left=_findPosX(_40)+"px";var _44=_41.getElementsByTagName("*");for(var rat in _44){var ele=_44[rat];if(ele.id!=null){var foo=ele.id.split("-");if(foo[1]=="couponData"){switch(foo[2]){case "Image":ele.src=_40.getAttribute("cImage");ele.alt=_40.getAttribute("cTitle");break;default:ele.innerHTML=_40.getAttribute("c"+foo[2]);break;}}}}wdig_fadeIn(_3f);wdig_slideFullyOn(_3f);};function wdig_slideFullyOn(_48){var _49=document.getElementById(_48);var _4a=com_wdig_wh_windowInnerWHSS();var _4b=false;var hei=com_wdig_style_any(_49,"maxHeight");hei=hei==null?com_wdig_style_any(_49,"height"):hei;hei=hei==null?0:parseInt(hei);var wid=com_wdig_style_any(_49,"maxWidth");wid=wid==null?com_wdig_style_any(_49,"width"):wid;wid=wid==null?0:parseInt(wid);var x=_findPosX(_49);var y=_findPosY(_49);if((x-_4a[2])<10){_49.style.left=(parseInt(_49.style.left)+16)+"px";_4b=true;}else{if((_4a[0]-(x-_4a[2])-wid)<10){_49.style.left=(parseInt(_49.style.left)-16)+"px";_4b=true;}}if((y-_4a[3])<10){_49.style.top=(parseInt(_49.style.top)+16)+"px";_4b=true;}else{if((_4a[1]-(y-_4a[3])-hei)<10){_49.style.top=(parseInt(_49.style.top)-16)+"px";_4b=true;}}if(_4b){setTimeout("wdig_slideFullyOn('"+_48+"')",25);}};function wdig_collectIdGroup(_50,_51,_52){var arr=new Array();for(var i=_51;i<=_52;i++){arr[arr.length]=document.getElementById(_50+i);}return arr;};function wdig_firstElementByClassName(_55,_56){var _57=(_56||document.body).getElementsByTagName("*");for(var i=0,_59=_57.length;i<_59;i++){var _5a=_57[i];if(Element.hasClassName(_5a,_55)){return _5a;}}return null;};function wdig_sorryMessage(_5b,_5c){var _5d=document.getElementById(_5b==undefined?"sorryMessage":_5b);if(_5c!=null){_5c.appendChild(_5d);}_5d.style.display="block";};function rating_submit(_5e,_5f){var _60="/"+_5e.categoryId+"/"+_5e.articleTitle;if(_5e.loggedin){_5e.disabled=true;_5e.rated.innerHTML=_5e.rater.innerHTML;_5e.rated.className=_5e.rater.className;_5e.rating=_5f;var str="ratingValue="+_5f+"&contentRefId="+_5e.id+"&contentType="+_5e.type;AJAXRequest("POST","/createRating.do",str,function(){});_dolWAObjSubmitLink("ratingThanks",_60,null);}else{wdig_sorryMessage(_5e.sorryMsgId,wdig_firstElementByClassName(_5e.loginMsgCN,_5e.container));_dolWAObjSubmitLink("ratingSorry",_60,null);}};function rating_attachOver(_62){rating_attach(_62);if(!_62.disabled){Element.show(_62.rater);Element.hide(_62.rated);}};function rating_attach(_63){_63.container=document.getElementById(_63.containerId);_63.stars=wdig_collectIdGroup(_63.starsIdBase,1,5);_63.starSpan=document.getElementById(_63.starSpanId);_63.rated=wdig_firstElementByClassName("rated",_63.container);_63.rater=wdig_firstElementByClassName("rater",_63.container);_63.disabled=false;for(var i=1;i<=_63.stars.length;i++){var img=_63.stars[i-1];img.name=_63.loggedin?_63.loggedInImgName:_63.loggedOutImgName;img.src=(_63.rating>=i)?_63.imageFresh:_63.imageRotten;img.value=i;img.ratingInfo=_63;img.onmouseover=function(){if(!_63.disabled){rating_setStars(this.ratingInfo,this.value,this.ratingInfo.ratingPhrases[this.value-1]);}};img.onmouseout=function(){rating_setStars(this.ratingInfo,this.ratingInfo.rating,this.ratingInfo.defaultText);};img.onclick=function(){rating_submit(this.ratingInfo,this.value);};}_63.container.ratingInfo=_63;_63.container.onmouseout=function(){Element.show(this.ratingInfo.rated);Element.hide(this.ratingInfo.rater);};_63.container.onmouseover=function(){if(!this.ratingInfo.disabled){Element.show(this.ratingInfo.rater);Element.hide(this.ratingInfo.rated);}};};function rating_setStars(_66,_67,_68){for(var i=1;i<=_66.stars.length;i++){img=_66.stars[i-1].src=(i<=_67)?_66.imageFresh:_66.imageRotten;}_66.lastValueSet=_67;_66.starSpan.innerHTML=_68;};function createLoginPopups(_6a,_6b){var _6c=YAHOO.util.Dom.getElementsByClassName(_6b,null,document.getElementById(_6a));var _6d="sorryMsg";for(var i=0;i<_6c.length;i++){YAHOO.util.Event.addListener(_6c[i],"click",function(){document.getElementById(_6d).style.display="block";document.getElementById(_6d).style.left=_findPosX(this)-10+"px";document.getElementById(_6d).style.top=_findPosY(this)-40+"px";return false;});}};function closeLogin(){document.getElementById("sorryMsg").style.display="none";};try{YAHOO.util.Event.onContentReady("navBar_container",function(){var _6f=new FamilyNav("navBar_container");});}catch(e){}function FamilyNav(id){this.element=document.getElementById(id);if(document.getElementById("navBar")){this.navElements=document.getElementById("navBar").getElementsByTagName("li");}this.createNavObjects();};FamilyNav.prototype.createNavObjects=function(){this.navObjects=new Array();if(this.navElements){for(var i=0;i<this.navElements.length;i++){if(i==0){YAHOO.util.Dom.addClass(this.navElements[i],"first");}else{if(i==(this.navElements.length-1)){YAHOO.util.Dom.addClass(this.navElements[i],"last");}}this.navObjects[i]=new FamilyNavItem(this.navElements[i],i,this);}}};FamilyNav.prototype.deactivateAllOtherNavItems=function(_72){for(var i=0;i<this.navObjects.length;i++){if(i==_72){continue;}this.navObjects[i].deactivate();}};function FamilyNavItem(_74,_75,_76){this.element=_74;this.index=_75;this.navManager=_76;if(YAHOO.util.Dom.hasClass(this.element,"first")){this.hoverClass="first_hover";}else{if(YAHOO.util.Dom.hasClass(this.element,"last")){this.hoverClass="last_hover";}else{this.hoverClass="li_hover";}}this.mouseOverDelay=50;this.mouseOutDelay=1000;this.subNavElement=null;var _77=YAHOO.util.Dom.getElementsByClassName("navBar_subNav",null,"navContainerContent")[this.index];if(_77!=undefined){var _78=_77.getElementsByTagName("a");if(_78.length>0){this.subNavElement=_77;}}this.setUpActiveStates();this.createMouseBehavior();};FamilyNavItem.prototype.setUpActiveStates=function(){if(this.subNavElement!=null){if(YAHOO.util.Dom.hasClass(this.element,"first")){this.hoverClass="first_hover";}else{if(YAHOO.util.Dom.hasClass(this.element,"last")){this.hoverClass="last_hover";}else{this.hoverClass="li_hover";}}}else{if(YAHOO.util.Dom.hasClass(this.element,"first")){this.hoverClass="selected_first";}else{if(YAHOO.util.Dom.hasClass(this.element,"last")){this.hoverClass="selected_last";}else{this.hoverClass="selected";}}}};FamilyNavItem.prototype.createMouseBehavior=function(){YAHOO.util.Event.addListener(this.element,"mouseover",function(){this.mouseOver();},this,true);if(YAHOO.util.Dom.hasClass(this.element,this.hoverClass)){YAHOO.util.Event.addListener(this.element,"mouseout",function(){this.currentCategoryMouseOut();},this,true);}else{YAHOO.util.Event.addListener(this.element,"mouseout",function(){this.mouseOut();},this,true);}if(this.subNavElement!=null){YAHOO.util.Event.addListener(this.subNavElement,"mouseover",function(){this.mouseOver();},this,true);YAHOO.util.Event.addListener(this.subNavElement,"mouseout",function(){this.mouseOut();},this,true);}};FamilyNavItem.prototype.mouseOver=function(){this.navManager.deactivateAllOtherNavItems(this.index);var _79=this;clearTimeout(this.mouseOutTimeout);this.mouseOverTimeout=setTimeout(function(){YAHOO.util.Dom.addClass(_79.element,_79.hoverClass);if(_79.subNavElement!=null){document.getElementById("breadcrumbs").style.display="none";_79.subNavElement.style.display="block";}},this.mouseOverDelay);};FamilyNavItem.prototype.mouseOut=function(){var _7a=this;clearTimeout(this.mouseOverTimeout);this.mouseOutTimeout=setTimeout(function(){_7a.deactivate();},this.mouseOutDelay);};FamilyNavItem.prototype.deactivate=function(){YAHOO.util.Dom.removeClass(this.element,this.hoverClass);if(this.subNavElement!=null){this.subNavElement.style.display="none";document.getElementById("breadcrumbs").style.display="block";}};FamilyNavItem.prototype.currentCategoryMouseOut=function(){var _7b=this;clearTimeout(this.mouseOverTimeout);this.mouseOutTimeout=setTimeout(function(){document.getElementById("breadcrumbs").style.display="block";if(_7b.subNavElement!=null){YAHOO.util.Dom.removeClass(_7b.element,_7b.hoverClass);_7b.subNavElement.style.display="none";}},this.mouseOverDelay);};function Tab(_7c,_7d){this.navigation=_7c;this.content=_7d;return this;};Tab.prototype.select=function(){if(!this.isSelected()){YAHOO.util.Dom.addClass(this.navigation,"selected");YAHOO.util.Dom.addClass(this.content,"selected");}return this;};Tab.prototype.unselect=function(){if(this.isSelected()){YAHOO.util.Dom.removeClass(this.navigation,"selected");YAHOO.util.Dom.removeClass(this.content,"selected");}};Tab.prototype.isSelected=function(){return YAHOO.util.Dom.hasClass(this.navigation,"selected");};function TabGroup(_7e,_7f){var _80=YAHOO.util.Dom.getElementsByClassName(_7e);var _81=YAHOO.util.Dom.getElementsByClassName(_7f);this.change=new YAHOO.util.CustomEvent("change",this);this.collection=new Array();this.selectedIndex=-1;this.selectedTab=null;if(_80.length==_81.length){for(var i=0;i<_80.length;i++){this.collection[i]=new Tab(_81[i],_80[i]);}}};TabGroup.prototype.setSelectedTab=function(_83){var _84=-1;if(this.collection.length>=(parseInt(_83)+1)){if(this.selectedTab!=null){this.selectedTab.unselect();}this.selectedTab=this.collection[_83].select();this.selectedIndex=_83;_84=_83;this.change.fire(new TabGroupEvent("change",_83));}return _84;};TabGroup.prototype.getTab=function(_85){return this.collection[_85];};function TabGroupEvent(_86,_87){this.name=_86;this.selectedIndex=_87;};if(window.location.href.indexOf("/contests/cake-recipes/")==-1){if(window.location.href.substring(0,7).indexOf("https")!=-1){document.write("<script type=\"text/javascript\" src=\"https://family.go.com/js/cookies.js\"></script>");document.write("<script type=\"text/javascript\" src=\"https://family.go.com/js/survey.js\"></script>");}else{document.write("<script type=\"text/javascript\" src=\"http://family.go.com/js/cookies.js\"></script>");document.write("<script type=\"text/javascript\" src=\"http://family.go.com/js/survey.js\"></script>");}}document.write("<script type=\"text/javascript\" src=\"http://tredir.go.com/capmon/GetDE/?set=j&param=connection&param=metrocode&param=domain&param=country\"></script>");var checkCountry=setInterval("ukRedirect()",50);function ukRedirect(){if(typeof country!="undefined"){if(country=="united kingdom"&&window.location.href.length==21){window.location.href="http://ukfamily.co.uk";}clearInterval(checkCountry);}};function trackLink(lid,_89,obj){try{if(obj!=undefined){cto.linkObj=obj;}cto.linkId=lid;cto.linkPosition=_89;cto.linkType="o";cto.trackLink();}catch(e){}};function showBubble(_8b,_8c,_8d,_8e){var _8b=document.getElementById(_8b);var x=YAHOO.util.Dom.getX(_8b);var y=YAHOO.util.Dom.getY(_8b);var _91=x+_8d;var _92=y+_8e;var _8c=document.getElementById(_8c);_8c.style.display="block";YAHOO.util.Dom.setX(_8c,_91);YAHOO.util.Dom.setY(_8c,_92);};function showHide(obj){obj=document.getElementById(obj);obj.style.display=(obj.style.display=="block")?"none":"block";};function showHideClassSwap(obj,_95){var obj=document.getElementById(obj);var _96=document.getElementById(_95);obj.style.display=(obj.style.display=="block")?"none":"block";if(obj.style.display=="block"){_96.className=_95+"_open";}else{_96.className=_95+"_closed";}};function forceLineBreaks(_97,_98){var _99=YAHOO.util.Dom.getElementsByClassName(_97);for(var i=0;i<_99.length;i++){var _9b="";var _9c=_99[i].innerHTML.split(" ");for(var j=0;j<_9c.length;j++){if(_9c[j].length>_98){var _9e=Math.floor(_9c[j].length/_98);for(var k=0;k<_9e;k++){var _a0=_98*k;var _a1=_98*(k+1);var _a2=_9c[j].slice(_a0,_a1)+"-<br /> ";_9b+=_a2;}var _a3=_9c[j].slice(_9e*_98);_9b+=_a3+" ";}else{_9b+=_9c[j]+" ";}}_99[i].innerHTML=_9b;}};function defaultVideoThumb(){var _a4=YAHOO.util.Dom.getElementsByClassName("video_feed_single")[0];if(typeof _a4!="undefined"){var _a5=_a4.getElementsByTagName("img");for(var i=0;i<_a5.length;i++){var _a7=_a5[i].getAttribute("src");_a7=_a7.replace(/\s/g,"");if(_a7==""||_a7==location.href){_a5[i].src="http://family.go.com/images/video/img/video_generic.png";}}}};if(typeof YAHOO!="undefined"){YAHOO.util.Event.onContentReady("main_container_wrapper_videos",defaultVideoThumb);}function checkForEmptyCsarAd(_a8,_a9){if(_a8=="TextBox1"){if((digAdData["TextBox1"]!=undefined&&digAdData["TextBox1"]["creative"]["text"]!="<!-- Blank -->")||(digAdData["TextBox2"]!=undefined&&digAdData["TextBox2"]["creative"]["text"]!="<!-- Blank -->")||(digAdData["TextBox3"]!=undefined&&digAdData["TextBox3"]["creative"]["text"]!="<!-- Blank -->")){document.getElementById(_a9).style.display="block";}}else{if(digAdData[_a8]!=undefined&&digAdData[_a8]["creative"]["text"]!="<!-- Blank -->"){document.getElementById(_a9).style.display="block";}}};