u=document;w=window;cd=true;ce=false;cp=top;AccordionMenu=new function(){var o=cp.window.YAHOO.util.Dom||ch.util.Dom;var ck=cp.window.YAHOO.util.Event||ch.util.Event;var gg=cp.window.YAHOO.util.Anim||ch.util.Anim;var cx=cp.window.YAHOO.util.Easing||ch.util.Easing;var hh={};var cb={};var dLastHoverTitle;var isBetween=0;o.addClass(u.documentElement,'accordion-menu-js');function cu(e){var dEl=e.srcElement||e.target;if((e.tagName+'').toUpperCase()=='DD'){var dt=e.previousSibling;while(dt){if(dt.tagName&&dt.tagName.toUpperCase()=='DT'){break};dt=dt.previousSibling};if(!dt||dt.tagName.toUpperCase()!='DT'){return}else{return dt}}else if(e.clientX){var found=ce;while(dEl.parentNode){if(o.hasClass(dEl,'a-m-t')){found=cd;break};dEl=dEl.parentNode};if(!found){return null}else{return dEl}}};function cv(dt){if(!dt){return null};var dd=dt.nextSibling;while(dd){if(dd.tagName&&dd.tagName.toUpperCase()=='DD'){break};dd=dd.nextSibling};if(!dd||dd.tagName.toUpperCase()!='DD'){return}else{return dd}};function expand(dl,dt,dd){dl.hasAnimation++;o.addClass(dd,'a-m-d-before-expand');var ga={height:{from:0,to:dd.offsetHeight}};o.removeClass(dd,'a-m-d-before-expand');var onComplete=function(){oAnim.onComplete.unsubscribe(onComplete);oAnim.stop();o.removeClass(dd,'a-m-d-anim');o.addClass(dd,'a-m-d-expand');onComplete=null;dl.hasAnimation--;var dt=cu(dd);o.addClass(dt,'a-m-t-expand');if(cb[dl.id]&&cb[dl.id].onOpen&&dd.style.height!=''){cb[dl.id].onOpen({dl:dl,dt:dt,dd:dd});};dd.style.height='';if (dt && $(dt.id+"-open")){$(dt.id+"-open").style.display="none";};if (dt && $(dt.id+"-after")){$(dt.id+"-after").style.display="";$(dt.id+"-before").style.display="none";window.frameElement.height = window.frameElement.contentWindow.document.body.scrollHeight;};var module=dt.id;module=module.substr(0,module.indexOf("-"));cp.window.adjustIframeView('module_'+module+'_content');};var onTween=function(){if(dd.style.height){o.addClass(dd,'a-m-d-anim');oAnim.onTween.unsubscribe(onTween);onTween=null;dd.oAnim=null}};if(dd.oAnim){dd.oAnim.stop();dd.oAnim=null;dl.hasAnimation--};var cr=cx.easeOut;var seconds=0.01;if(cb[dl.id]){cr=cb[dl.id]['easeOut']?cr:cx.easeIn;seconds=cb[dl.id]['seconds'];if(!cb[dl.id]['animation']){var oAnim={onComplete:{unsubscribe:function(){}},stop:function(){}};onComplete();return}};var oAnim=new gg(dd,ga,seconds,cr);oAnim.onComplete.subscribe(onComplete);oAnim.onTween.subscribe(onTween);oAnim.animate();dd.oAnim=oAnim};function gb(dl,dt,dd){dl.hasAnimation++;o.addClass(dd,'a-m-d-anim');var ga={height:{from:dd.offsetHeight,to:0}};var onComplete=function(){oAnim.onComplete.unsubscribe(onComplete);o.removeClass(dd,'a-m-d-anim');o.removeClass(dd,'a-m-d-expand');dd.style.height='';dd.oAnim=null;onComplete=null;dl.hasAnimation--;var dt=cu(dd);o.removeClass(dt,'a-m-t-expand');if(cb[dl.id]&&cb[dl.id].onOpen){cb[dl.id].onClose({dl:dl,dt:dt,dd:dd});};if (dt && $(dt.id+"-open")){$(dt.id+"-open").style.display="block";top.window.adjustIframeView('module_myidx_content');};if (dt && $(dt.id+"-after")){$(dt.id+"-before").style.display="";$(dt.id+"-after").style.display="none";window.frameElement.height = window.frameElement.contentWindow.document.body.scrollHeight;};var module=dt.id;module=module.substr(0,module.indexOf("-"));cp.window.adjustIframeView('module_'+module+'_content');};if(dd.oAnim){dd.oAnim.stop();dd.oAnim=null;dl.hasAnimation--};var cr=cx.easeOut;if(AccordionMenu.isBetween==1){var seconds=0.01;AccordionMenu.isBetween=0}else{var seconds=0.6}if(cb[dl.id]){cr=cb[dl.id]['easeOut']?cr:cx.easeIn;if(!cb[dl.id]['animation']){var oAnim={onComplete:{unsubscribe:function(){}},stop:function(){}};onComplete();return}};var oAnim=new gg(dd,ga,seconds,cr);oAnim.onComplete.subscribe(onComplete);oAnim.animate();dd.oAnim=oAnim};function gh(dl,dt,dd){var aOtherDD=o.getElementsByClassName('a-m-d-expand','dd',dl);for(var i=0;i<aOtherDD.length;i++){var cy=aOtherDD[i];if(cy!=dd){gb(dl,null,cy);}}}var go=function(e){var dMenuTitle=cu(e);if(!dMenuTitle){return};if(dLastHoverTitle){o.removeClass(dLastHoverTitle,'a-m-t-hover');};o.addClass(dMenuTitle,'a-m-t-hover');dLastHoverTitle=dMenuTitle;ck.stopEvent(e);return ce};var gp=function(e){var dMenuTitle=cu(e);if(!dMenuTitle){return};if(dLastHoverTitle&&dLastHoverTitle!=dMenuTitle){o.removeClass(dLastHoverTitle,'a-m-t-hover');o.removeClass(dLastHoverTitle,'a-m-t-down');};o.removeClass(dMenuTitle,'a-m-t-down');o.removeClass(dMenuTitle,'a-m-t-hover');dLastHoverTitle=null;ck.stopEvent(e);return ce};var gq=function(e){var dMenuTitle=cu(e);if(!dMenuTitle){return};o.addClass(dMenuTitle,'a-m-t-down');ck.stopEvent(e);return ce};var gr=function(e){var dt=cu(e);if(!dt){return};var dd=cv(dt);if(!dd){return};var dl=dt.parentNode;if(dl.hasAnimation==null){dl.hasAnimation=0}if(dl.hasAnimation>0){return};o.removeClass(dt,'a-m-t-down');if(o.hasClass(dd,'a-m-d-expand')){gb(dl,dt,dd);}else{if(cb[dl.id]&&cb[dl.id].dependent==ce){}else{var aOtherDD=o.getElementsByClassName('a-m-d-expand','dd',dl);AccordionMenu.isBetween=0;for(var i=0;i<aOtherDD.length;i++){var cy=aOtherDD[i];if(cy!=dd){AccordionMenu.isBetween=1}};gh(dl,dt,dd);}expand(dl,dt,dd);};ck.stopEvent(e);return ce};ck.addListener(u,'mouseover',go);ck.addListener(u,'mouseout',gp);ck.addListener(u,'mousedown',gq);if (navigator.userAgent.indexOf("Safari") > 0){ck.addListener(w,'click',gr);}else{ck.addListener(u,'click',gr);}this.openDtById=function(sId){var dt=u.getElementById(sId);if(!dt){return};if(!o.hasClass(dt,'a-m-t')){return};var dl=dt.parentNode;var dd=cv(dt);if(dl.hasAnimation==null){dl.hasAnimation=0};if(dl.hasAnimation>0){return};if(o.hasClass(dd,'a-m-d-expand')){return};if(cb[dl.id]&&cb[dl.id].dependent==ce){}else{gh(dl,dt,dd);}expand(dl,dt,dd);};this.closeDtById=function(sId){var dt=u.getElementById(sId);if(!dt){return};if(!o.hasClass(dt,'a-m-t')){return};var dl=dt.parentNode;var dd=cv(dt);if(dl.hasAnimation==null){dl.hasAnimation=0};if(dl.hasAnimation>0){return};if(!o.hasClass(dd,'a-m-d-expand')){return};gb(dl,dt,dd);};this.setting=function(id,cg){if(!cg){return};if(typeof(id)!='string'){return};var setMunu=function(dl){dl=dl||this;dl.hasAnimation=0;cb[dl.id]={element:dl,dependent:cd,onOpen:function(){},onClose:function(){},seconds:0.01,easeOut:cd,openedIds:[],animation:cd};cm=cb[dl.id];if(typeof(cg['animation'])=='boolean'){cm['animation']=!!cg['animation']};if(typeof(cg['dependent'])=='boolean'){cm['dependent']=!!cg['dependent']};if(typeof(cg['easeOut'])=='boolean'){cm['easeOut']=!!cg['easeOut']};if(typeof(cg['seconds'])=='number'){cm['seconds']=Math.max(0,cg['seconds']);};if(typeof(cg['onOpen'])=='function'){cm['onOpen']=cg['onOpen']};if(typeof(cg['onClose'])=='function'){cm['onClose']=cg['onClose']};if(cg['openedIds'].shift){cm['openedIds']=cg['openedIds']};for(var i=0;i<cm['openedIds'].length;i++){var sId=cm['openedIds'][i];var dt=u.getElementById(sId);if(dt&&dt.tagName.toUpperCase()=='DT'){var dl=dt.parentNode;var dd=cv(dt);expand(dl,dt,dd);}else if(!dt){;function gs(){var dt=this;if(dt.tagName.toUpperCase()=='DT'){var dl=dt.parentNode;var dd=cv(dt);expand(dl,dt,dd);}};ck.onAvailable(sId,gs);}}};if(u.getElementById(id)){setMunu(u.getElementById(id))}else{ck.onAvailable(id,setMunu);}}};
