YAHOO.namespace("chr");
function init() {
    var overlay_position = [(YAHOO.util.Dom.getX("testimonial") - 248),(YAHOO.util.Dom.getY("testimonial"))];
    YAHOO.chr.testimonial_overlay = new YAHOO.widget.Overlay("testimonial_overlay", {
        xy:overlay_position,
        draggable:true,
        visible:false,
        width:"486px",
        zIndex:2,
        effect:{
            effect:YAHOO.widget.ContainerEffect.FADE,
            duration:0.25
        } 
    } );
    YAHOO.chr.testimonial_overlay.render();
    YAHOO.util.Event.addListener("testimonial", "click", YAHOO.chr.testimonial_overlay.show, YAHOO.chr.testimonial_overlay, true);
    YAHOO.util.Event.addListener("testimonial_overlay", "click", YAHOO.chr.testimonial_overlay.hide, YAHOO.chr.testimonial_overlay, true);
}
YAHOO.util.Event.onDOMReady(init);
/*
     Initialize and render the MenuBar when its elements are ready
     to be scripted.
*/
YAHOO.util.Event.onContentReady("topnavmenu", function () {
    /*
         Instantiate a MenuBar:  The first argument passed to the
         constructor is the id of the element in the page
         representing the MenuBar; the second is an object literal
         of configuration properties.
    */
    YAHOO.chr.oMenuBar = new YAHOO.widget.MenuBar("topnavmenu", {
        autosubmenudisplay: true,
        hidedelay: 750,
        lazyload: true
    });
    /*
         Call the "render" method with no arguments since the
         markup for this MenuBar instance is already exists in
         the page.
    */
    YAHOO.chr.oMenuBar.render();
});