LMI.LinkBehavior.add("ypWpTab",function(e){var $=LMI.Element.getOne,$D=YAHOO.util.Dom,tab=$D.getAncestorByTagName(this,"p"),mainCont=$D.getAncestorByClassName(this,"whiteYellow"),bucket=$("div.ngBucket",mainCont),thisClass=($D.hasClass(tab,"yp")?"yp":"wp"),otherClass=($D.hasClass(tab,"yp")?"wp":"yp"),otherTab=$("p."+otherClass,mainCont),oldBucketClass=(otherClass==='yp'?'ypc':'wp'),newBucketClass=(thisClass==='yp'?'ypc':'wp');tab.blur();if(!$D.hasClass(tab,"act")){$D.removeClass(otherTab,"act");$D.addClass(tab,"act");$D.addClass($("div.cont div."+otherClass,mainCont),"hid");$D.removeClass($("div.cont div."+thisClass,mainCont),"hid");LMI.Lang.forEach(LMI.Element.getAll("div.bt, div.bb",mainCont),function(o){var img=$("img",o);img.src=img.src.replace(oldBucketClass,newBucketClass);});if(thisClass==='yp'){$D.removeClass(bucket,"ngBucketWp");}else{$D.addClass(bucket,"ngBucketWp");}}
YAHOO.util.Event.stopEvent(e);});