(function(){var a=function(c){a.superclass.constructor.call(this,c);this.timers={};this.init()};var b={init:function(){a.superclass.init.call(this);this.navigationInit();this.presentationInit();this.testimonialsInit();if(typeof YAHOO.com.webucator.Popup!="undefined"){this.popup=new YAHOO.com.webucator.Popup()}if(typeof YAHOO.com.webucator.Accordion!="undefined"){this.rightAccordion=new YAHOO.com.webucator.Accordion("rightContainer","rightPodContainer","rightPodHeader","rightPodContent")}},setOptions:function(c){var d={testimonialsDelay:6000,navigationTopHideDelay:300,navigationSubShowDelay:300};YAHOO.lang.augmentObject(d,c||{},true);a.superclass.setOptions.call(this,d)},navigationAttachEvents:function(d){var e=YAHOO.util.Dom.generateId(d);var c=e+"-subNav";if(typeof this.navigationSubNavs=="undefined"){this.navigationSubNavs={}}if($(c)){YAHOO.util.Event.on(d,"mouseover",function(g){YAHOO.util.Event.stopPropagation(g);var f=YAHOO.util.Event.getTarget(g);var h=f.id;if(typeof this.navigationSubNavs[h]=="undefined"){this.navigationSubNavs[h]=new YAHOO.widget.Panel(c,{visible:false,draggable:false,constraintoviewport:false,close:false,context:[h,"tl","bl"]});$(c).style.display="block";this.navigationSubNavs[h].render()}this.navigationClearHover();YAHOO.util.Dom.addClass(h,"hover");this.navigationClearTimeouts();this.navigationSetTimer("SHOWTOP",{id:h})},this,true);YAHOO.util.Event.on(d,"mouseout",this.navigationHide,this,true);YAHOO.util.Event.on(c,"mouseover",this.navigationClearTimeouts,this,true);YAHOO.util.Event.on(c,"mouseout",this.navigationHide,this,true)}else{YAHOO.util.Event.on(d,"mouseover",function(f){YAHOO.util.Event.stopPropagation(f);this.navigationClearHover();YAHOO.util.Dom.addClass(e,"hover");this.navigationClearTimeouts()},this,true);YAHOO.util.Event.on(d,"mouseout",this.navigationHide,this,true)}},navigationClearHover:function(){var d=YAHOO.util.Selector.query("div#topNavBarContainer ol.level1 li div.level1heading");for(var c=0;c<d.length;c++){if(YAHOO.util.Dom.hasClass(d[c],"hover")){YAHOO.util.Dom.removeClass(d[c],"hover");if(typeof window.webucator.navigationSubNavs[d[c].id]!="undefined"){window.webucator.navigationSubNavs[d[c].id].hide()}}}},navigationClearTimeouts:function(){if(this.timers[this.HIDETOP]!=null){window.clearTimeout(this.timers[this.HIDETOP])}},navigationHide:function(){this.navigationClearTimeouts();this.navigationSetTimer("HIDETOP")},navigationInit:function(){this.HIDETOP=1;this.SHOWTOP=2;var g=YAHOO.util.Dom.getElementsByClassName("level1heading");for(var e=0;e<g.length;e++){var d=g[e];while(d.childNodes.length>=1){var f=d.firstChild.innerHTML;var c=d.firstChild.href;if(typeof c!="undefined"&&c!=null){YAHOO.util.Event.on(d,"click",function(h,i){window.location.href=i.href},{href:c})}d.removeChild(d.firstChild)}d.innerHTML=f;this.navigationAttachEvents(d)}},navigationSetTimer:function(c,d){switch(c.toUpperCase()){case"HIDETOP":this.timers[this[c]]=window.setTimeout(this.navigationClearHover,this.options.navigationTopHideDelay);break;case"SHOWTOP":var e="window.webucator.navigationSubNavs['"+d.id+"'].show()";this.timers[this[c]]=window.setTimeout(e,this.options.navigationSubShowDelay);break}},presentationInit:function(){var c=YAHOO.util.Dom.getElementsByClassName("presentationlink");YAHOO.util.Event.addListener(c,"click",this.presentationShow,this,true);var e=YAHOO.util.Dom.getElementsByClassName("presentationlink-degrade");for(var d=0;d<e.length;d++){e[d].href="javascript:void(0);"}},presentationShow:function(){var c='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="720" height="426" id="webucator_wb" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/assets/ilo/webucator_wb.swf" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><embed src="/assets/ilo/webucator_wb.swf" menu="false" quality="best" bgcolor="#ffffff" width="720" height="426" name="webucator_wb" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';if(typeof this.presentationDialog=="undefined"){this.presentationDialog=new YAHOO.widget.SimpleDialog("presentationDialog",{visible:false,width:"740px",close:true,fixedcenter:true,modal:true,draggable:false});this.presentationDialog.setHeader("Benefits of Instructor-led Online Classes");this.presentationDialog.setBody('<div id="presentationContainer"></div');this.presentationDialog.render(document.body);this.presentationDialog.beforeHideEvent.subscribe(function(){this.purge($("presentationContainer"))},this,true)}$("presentationContainer").innerHTML=c;this.presentationDialog.show();if(typeof _gaq!="undefined"){_gaq.push(["_trackEvent","Videos","Open","ILO Presentation"])}this.presentationDialog.hideEvent.subscribe(function(){if(typeof _gaq!="undefined"){_gaq.push(["_trackEvent","Videos","Close","ILO Presentation"])}})},toggleOverview:function(h,c,e){var f=YAHOO.util.Dom.getElementsByClassName(c,null,h);var g=YAHOO.util.Dom.getElementsByClassName(e,null,h);for(var d=0;d<f.length;++d){f[d].style.display=""}for(var d=0;d<g.length;++d){g[d].style.display="none"}},testimonialsInit:function(){this.setTestimonials(window.testimonials||[]);if($("testimonial")&&this.testimonials.length>0){this.testimonialsCount=0;var c=this;window.setInterval(function(){c.testimonialsCallback()},this.options.testimonialsDelay)}},testimonialsCallback:function(){var c=this.testimonials[this.testimonialsCount];if(YAHOO.env.ua.ie>0){$("testimonial").innerHTML=c}else{var d=new YAHOO.widget.Effects.Fade("testimonialsContainer",{delay:true,seconds:this.options.testimonialsDuration});d.onEffectComplete.subscribe(function(){var e=new YAHOO.widget.Effects.Appear("testimonialsContainer",{delay:true,seconds:this.options.testimonialsDuration});$("testimonial").innerHTML=c;e.onEffectComplete.subscribe(function(){$("testimonialsContainer").style.filter=""});e.animate()},this,true);d.animate()}if(this.testimonialsCount+1==this.testimonials.length){this.testimonialsCount=0}else{this.testimonialsCount++}},setTestimonials:function(c){this.testimonials=c}};YAHOO.lang.extend(a,YAHOO.com.webucator.Base,b);YAHOO.com.webucator.Base=a})();