';
d.setAttribute('style', 'font-size: 22px; font-family: "helvetica neue", arial, sans-serif; line-height:1; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); color: #000; padding: 7px 0 2px 0; border-bottom: 1px solid rgb(120, 159, 44); margin-top: -1px; background: #c5deed; background:-webkit-gradient(linear, left top, left bottom, from(#d5eefd), to(#a1c6dd)); background:-moz-linear-gradient(center top, #c5deed, #91b6cd); z-index:1000;');
d.id = "campaignBanner";
d.innerHTML = ''+ href +'
'+ href +'“'+ banners[i][2] +'” — Read More
— '+ banners[i][3] +'
';
mainContent.parentNode.insertBefore(d, mainContent);
}
/*
if (typeof window.addEventListener !== 'undefined') {
window.addEventListener('load', thundercats, false);
} else {
window.attachEvent('onload', thundercats);
}
*/
YAHOO.namespace("cc.help");
// convenience function for creating help tool tips
YAHOO.cc.help.init_help_item = function(help_anchor) {
var link_id = help_anchor.id;
var help_id = 'help_' + link_id;
// create the new panel and position it
var new_panel = new YAHOO.widget.Panel(help_id,
{close: true,
visible: false,
draggable: false,
width:'350px',
context:[help_anchor.id,'bl','tl',['beforeShow']],
constraintoviewport: true
} );
new_panel.rendered = false;
var item_idx = YAHOO.cc.help.help_panels.push(new_panel) - 1;
// remove the initial class (used to keep the panel hidden)
YAHOO.util.Dom.removeClass(help_id, "help_panel");
// connect the event handlers
// show the panel on click
YAHOO.util.Event.addListener(link_id, "click",
function(e) {
YAHOO.cc.help.help_panels[item_idx].show();
YAHOO.util.Event.stopEvent(e);
});
// we subscribe to beforeShow to handle rendering;
// rendering at load time causes the final panel to be skipped (wtf?)
new_panel.beforeShowEvent.subscribe(
function(e) {
if (!this.rendered) {
this.render();
this.rendered = true;
}
});
} // init_help_text
// initialization for help pop-ups
YAHOO.cc.help.init = function() {
// initialize a container for the panels
YAHOO.cc.help.help_panels = new Array();
// find helpLinks and initialize them
YAHOO.util.Dom.getElementsByClassName('helpLink', 'a', null,
YAHOO.cc.help.init_help_item);
} // init
YAHOO.util.Event.onDOMReady(YAHOO.cc.help.init);