    jQuery.fn.doc2docWidget.setOptions({
      source: {
        url: "http://doc2doc.bmj.com/server/open.js",
        callback: "displayDiscussions"
      },
      extraCSSRules: ".doc2docwidget{font-size:12px !important;} .d2dw-link img{float:none !important;margin:0 !important;}",
      maxItems: 10
    });


$(function() {

populateElement('#search', 'Search BMJ Group site');


/* Latest from BMJ.com widget displaying drug related headlines */
var widget1 = new widget(
{

	'widget'	:	"feeds-widget1",
	'url'	:	"feed://careers.bmj.com/careers/rss.html?searchId=20000898", 
	'track'	:	"w_oem_careers",
	'widget_title'	:	"BMJ Careers - Latest General Practice jobs",	
	'style'	:	"bmjjournals",	
	'num_itmes':	"5"
}
)


var panel1 = new tabbedwidget(
{
	'widget'	:	"panel-1",
	'url'	:	"http://oem.bmj.com/rss/ahead.xml",
	'track'	:	"w_oem_ahead_tab",
	'widget_title'	:	"Online first",
	'style'	:	"bmjjournals",
	'num_items':	"20"
})

var panel2 = new tabbedwidget(
{
	'widget'	:	"panel-2",
	'url'	:	"http://oem.bmj.com/rss/current.xml",
	'track'	:	"w_oem_current_tab",
	'widget_title'	:	"Current issue",
	'style'	:	"bmjjournals",
	'num_items':	"20"
})

var panel3 = new tabbedwidget(
{
	'widget'	:	"panel-3",
	'url'	:	"http://oem.bmj.com/rss/mfr.xml",
	'track'	:	"w_oem_top10_tab",
	'widget_title'	:	"Top ten articles last month",
	'style'	:	"bmjjournals",
	'num_items':	"20"
})

var panel4 = new tabbedwidget(
{
	'widget'	:	"panel-4",
	'url'	:	"http://casereports.bmj.com/cgi/collection/occupational_and_environmental_medicine",
	'track'	:	"w_casereports_current_tab",
	'widget_title'	:	"Current issue",
	'style'	:	"bmjjournals",
	'num_items':	"20"
})

var panel5 = new tabbedwidget(
{
	'widget'	:	"panel-5",
	'url'	:	"http://blogs.bmj.com/oem/feed/",
	'track'	:	"w_oem_blog_tab",
	'widget_title'	:	"Blog",
	'style'	:	"bmjjournals",
	'num_items':	"20"
})


$("#tabbed-widget").tabs();


})
