YAHOO.namespace("cris.container"); function initBucketRollovers() { YAHOO.cris.container.overlay1 = new YAHOO.widget.Overlay("overlay1", { context:["buckets", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"472px" } ); YAHOO.cris.container.overlay1.render(); YAHOO.util.Event.addListener("bucket1", "mouseover", YAHOO.cris.container.overlay1.show, YAHOO.cris.container.overlay1, true); YAHOO.util.Event.addListener("bucket1", "mouseout", YAHOO.cris.container.overlay1.hide, YAHOO.cris.container.overlay1, true); YAHOO.util.Event.addListener("div1", "focus", YAHOO.cris.container.overlay1.show, YAHOO.cris.container.overlay1, true); YAHOO.util.Event.addListener("div1", "blur", YAHOO.cris.container.overlay1.hide, YAHOO.cris.container.overlay1, true); YAHOO.cris.container.linkoverlay1 = new YAHOO.widget.Overlay("linkoverlay1", { context:["link1", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"300px", align:"left"} ); YAHOO.cris.container.linkoverlay1.render(); YAHOO.util.Event.addListener("link1", "focus", YAHOO.cris.container.linkoverlay1.show, YAHOO.cris.container.linkoverlay1, true); YAHOO.util.Event.addListener("link1", "blur", YAHOO.cris.container.linkoverlay1.hide, YAHOO.cris.container.linkoverlay1, true); YAHOO.cris.container.overlay2 = new YAHOO.widget.Overlay("overlay2", { context:["buckets", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"472px" } ); YAHOO.cris.container.overlay2.render(); YAHOO.util.Event.addListener("bucket2", "mouseover", YAHOO.cris.container.overlay2.show, YAHOO.cris.container.overlay2, true); YAHOO.util.Event.addListener("bucket2", "mouseout", YAHOO.cris.container.overlay2.hide, YAHOO.cris.container.overlay2, true); YAHOO.util.Event.addListener("div2", "focus", YAHOO.cris.container.overlay2.show, YAHOO.cris.container.overlay2, true); YAHOO.util.Event.addListener("div2", "blur", YAHOO.cris.container.overlay2.hide, YAHOO.cris.container.overlay2, true); YAHOO.cris.container.linkoverlay2 = new YAHOO.widget.Overlay("linkoverlay2", { context:["link2", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"300px", align:"left"} ); YAHOO.cris.container.linkoverlay2.render(); YAHOO.util.Event.addListener("link2", "focus", YAHOO.cris.container.linkoverlay2.show, YAHOO.cris.container.linkoverlay2, true); YAHOO.util.Event.addListener("link2", "blur", YAHOO.cris.container.linkoverlay2.hide, YAHOO.cris.container.linkoverlay2, true); YAHOO.cris.container.overlay3 = new YAHOO.widget.Overlay("overlay3", { context:["buckets", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"472px" } ); YAHOO.cris.container.overlay3.render(); YAHOO.util.Event.addListener("bucket3", "mouseover", YAHOO.cris.container.overlay3.show, YAHOO.cris.container.overlay3, true); YAHOO.util.Event.addListener("bucket3", "mouseout", YAHOO.cris.container.overlay3.hide, YAHOO.cris.container.overlay3, true); YAHOO.util.Event.addListener("div3", "focus", YAHOO.cris.container.overlay3.show, YAHOO.cris.container.overlay3, true); YAHOO.util.Event.addListener("div3", "blur", YAHOO.cris.container.overlay3.hide, YAHOO.cris.container.overlay3, true); YAHOO.cris.container.linkoverlay3 = new YAHOO.widget.Overlay("linkoverlay3", { context:["link3", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"300px", align:"left"} ); YAHOO.cris.container.linkoverlay3.render(); YAHOO.util.Event.addListener("link3", "focus", YAHOO.cris.container.linkoverlay3.show, YAHOO.cris.container.linkoverlay3, true); YAHOO.util.Event.addListener("link3", "blur", YAHOO.cris.container.linkoverlay3.hide, YAHOO.cris.container.linkoverlay3, true); YAHOO.cris.container.overlay8 = new YAHOO.widget.Overlay("overlay8", { context:["buckets", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"472px" } ); YAHOO.cris.container.overlay8.render(); YAHOO.util.Event.addListener("bucket8", "mouseover", YAHOO.cris.container.overlay8.show, YAHOO.cris.container.overlay8, true); YAHOO.util.Event.addListener("bucket8", "mouseout", YAHOO.cris.container.overlay8.hide, YAHOO.cris.container.overlay8, true); YAHOO.util.Event.addListener("div8", "focus", YAHOO.cris.container.overlay8.show, YAHOO.cris.container.overlay8, true); YAHOO.util.Event.addListener("div8", "blur", YAHOO.cris.container.overlay8.hide, YAHOO.cris.container.overlay8, true); YAHOO.cris.container.linkoverlay8 = new YAHOO.widget.Overlay("linkoverlay8", { context:["link8", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"300px", align:"left"} ); YAHOO.cris.container.linkoverlay8.render(); YAHOO.util.Event.addListener("link8", "focus", YAHOO.cris.container.linkoverlay8.show, YAHOO.cris.container.linkoverlay8, true); YAHOO.util.Event.addListener("link8", "blur", YAHOO.cris.container.linkoverlay8.hide, YAHOO.cris.container.linkoverlay8, true); YAHOO.cris.container.overlay4 = new YAHOO.widget.Overlay("overlay4", { context:["buckets", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"472px" } ); YAHOO.cris.container.overlay4.render(); YAHOO.util.Event.addListener("bucket4", "mouseover", YAHOO.cris.container.overlay4.show, YAHOO.cris.container.overlay4, true); YAHOO.util.Event.addListener("bucket4", "mouseout", YAHOO.cris.container.overlay4.hide, YAHOO.cris.container.overlay4, true); YAHOO.util.Event.addListener("div4", "focus", YAHOO.cris.container.overlay4.show, YAHOO.cris.container.overlay4, true); YAHOO.util.Event.addListener("div4", "blur", YAHOO.cris.container.overlay4.hide, YAHOO.cris.container.overlay4, true); YAHOO.cris.container.linkoverlay4 = new YAHOO.widget.Overlay("linkoverlay4", { context:["link4", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"300px", align:"left"} ); YAHOO.cris.container.linkoverlay4.render(); YAHOO.util.Event.addListener("link4", "focus", YAHOO.cris.container.linkoverlay4.show, YAHOO.cris.container.linkoverlay4, true); YAHOO.util.Event.addListener("link4", "blur", YAHOO.cris.container.linkoverlay4.hide, YAHOO.cris.container.linkoverlay4, true); YAHOO.cris.container.overlay5 = new YAHOO.widget.Overlay("overlay5", { context:["buckets", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"472px" } ); YAHOO.cris.container.overlay5.render(); YAHOO.util.Event.addListener("bucket5", "mouseover", YAHOO.cris.container.overlay5.show, YAHOO.cris.container.overlay5, true); YAHOO.util.Event.addListener("bucket5", "mouseout", YAHOO.cris.container.overlay5.hide, YAHOO.cris.container.overlay5, true); YAHOO.util.Event.addListener("div5", "focus", YAHOO.cris.container.overlay5.show, YAHOO.cris.container.overlay5, true); YAHOO.util.Event.addListener("div5", "blur", YAHOO.cris.container.overlay5.hide, YAHOO.cris.container.overlay5, true); YAHOO.cris.container.linkoverlay5 = new YAHOO.widget.Overlay("linkoverlay5", { context:["link5", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"300px", align:"left"} ); YAHOO.cris.container.linkoverlay5.render(); YAHOO.util.Event.addListener("link5", "focus", YAHOO.cris.container.linkoverlay5.show, YAHOO.cris.container.linkoverlay5, true); YAHOO.util.Event.addListener("link5", "blur", YAHOO.cris.container.linkoverlay5.hide, YAHOO.cris.container.linkoverlay5, true); YAHOO.cris.container.overlay6 = new YAHOO.widget.Overlay("overlay6", { context:["buckets", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"472px" } ); YAHOO.cris.container.overlay6.render(); YAHOO.util.Event.addListener("bucket6", "mouseover", YAHOO.cris.container.overlay6.show, YAHOO.cris.container.overlay6, true); YAHOO.util.Event.addListener("bucket6", "mouseout", YAHOO.cris.container.overlay6.hide, YAHOO.cris.container.overlay6, true); YAHOO.util.Event.addListener("div6", "focus", YAHOO.cris.container.overlay6.show, YAHOO.cris.container.overlay6, true); YAHOO.util.Event.addListener("div6", "blur", YAHOO.cris.container.overlay6.hide, YAHOO.cris.container.overlay6, true); YAHOO.cris.container.linkoverlay6 = new YAHOO.widget.Overlay("linkoverlay6", { context:["link6", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"300px", align:"left"} ); YAHOO.cris.container.linkoverlay6.render(); YAHOO.util.Event.addListener("link6", "focus", YAHOO.cris.container.linkoverlay6.show, YAHOO.cris.container.linkoverlay6, true); YAHOO.util.Event.addListener("link6", "blur", YAHOO.cris.container.linkoverlay6.hide, YAHOO.cris.container.linkoverlay6, true); YAHOO.cris.container.overlay7 = new YAHOO.widget.Overlay("overlay7", { context:["buckets", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"472px" } ); YAHOO.cris.container.overlay7.render(); YAHOO.util.Event.addListener("bucket7", "mouseover", YAHOO.cris.container.overlay7.show, YAHOO.cris.container.overlay7, true); YAHOO.util.Event.addListener("bucket7", "mouseout", YAHOO.cris.container.overlay7.hide, YAHOO.cris.container.overlay7, true); YAHOO.util.Event.addListener("div7", "focus", YAHOO.cris.container.overlay7.show, YAHOO.cris.container.overlay7, true); YAHOO.util.Event.addListener("div7", "blur", YAHOO.cris.container.overlay7.hide, YAHOO.cris.container.overlay7, true); YAHOO.cris.container.linkoverlay7 = new YAHOO.widget.Overlay("linkoverlay7", { context:["link7", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"300px", align:"left"} ); YAHOO.cris.container.linkoverlay7.render(); YAHOO.util.Event.addListener("link7", "focus", YAHOO.cris.container.linkoverlay7.show, YAHOO.cris.container.linkoverlay7, true); YAHOO.util.Event.addListener("link7", "blur", YAHOO.cris.container.linkoverlay7.hide, YAHOO.cris.container.linkoverlay7, true); YAHOO.cris.container.overlay9 = new YAHOO.widget.Overlay("overlay9", { context:["buckets", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"472px" } ); YAHOO.cris.container.overlay9.render(); YAHOO.util.Event.addListener("bucket9", "mouseover", YAHOO.cris.container.overlay9.show, YAHOO.cris.container.overlay9, true); YAHOO.util.Event.addListener("bucket9", "mouseout", YAHOO.cris.container.overlay9.hide, YAHOO.cris.container.overlay9, true); YAHOO.util.Event.addListener("div9", "focus", YAHOO.cris.container.overlay9.show, YAHOO.cris.container.overlay9, true); YAHOO.util.Event.addListener("div9", "blur", YAHOO.cris.container.overlay9.hide, YAHOO.cris.container.overlay9, true); YAHOO.cris.container.linkoverlay9 = new YAHOO.widget.Overlay("linkoverlay9", { context:["link9", "tl", "bl", ["beforeShow"]], visible:false, monitorresize:false, width:"300px", align:"left"} ); YAHOO.cris.container.linkoverlay9.render(); YAHOO.util.Event.addListener("link9", "focus", YAHOO.cris.container.linkoverlay9.show, YAHOO.cris.container.linkoverlay9, true); YAHOO.util.Event.addListener("link9", "blur", YAHOO.cris.container.linkoverlay9.hide, YAHOO.cris.container.linkoverlay9, true); } function initBucketPopupLinks() { var popupLinks = YAHOO.util.Dom.getElementsByClassName( "bucketDescPopup" ); YAHOO.util.Event.addListener( popupLinks, "click", bucketPopup ); } function initBucketDescriptionsClose() { var closeLinks = YAHOO.util.Dom.getElementsByClassName( "closeWindowLink" ); YAHOO.util.Event.addListener( closeLinks, "click", closePopup ); } function bucketPopup( e ) { eventEl = YAHOO.util.Event.getTarget( e ); /* In an 'active' bucket, click target may have been an element inside an * anchor. If so, get the parent which should be an Anchor. */ if( 'A' != eventEl.tagName ) { eventEl = eventEl.parentNode; } // If the target is an Anchor, override default behavior by creating a popup. if( 'A' == eventEl.tagName ) { newWindow = window.open( eventEl.href, 'bucketDescriptions', 'height=450,width=600,scrollbars=yes,menubar=yes' ); YAHOO.util.Event.preventDefault( e ); } // If target wasn't an Anchor, we do nothing and the link should behave normally. } function closePopup( e ) { window.close(); YAHOO.util.Event.preventDefault( e ); } YAHOO.util.Event.onDOMReady(initBucketRollovers); YAHOO.util.Event.onDOMReady(initBucketPopupLinks);