Upon construction this extension inserts the passed icon & text in to the relevant selection panels with css classes set to 'juiceXInactiveIcon' and 'juiceXInactiveText'. Once initialized thes are changed to 'juiceXActiveIcon' and 'juiceXActiveText', and they become clickable. Once clicked, a window of the passed type is launched to display the site.
juice.loadJs("http://{MyServer}/extensions/WorldCat.js");
var div = '<div id="worldcatframe" style="display: block; height: 600px; width: 100%; border: 1px solid #EAEADC; "></div>';
var insert = new JuiceInsert(div,"#details .table","after");
new worldcatJuice( juice,
'http://{myserver}/images/worldcat.jpg',
'Search WorldCat',
null,
"iframe-ovelay",
insert
);