$(function() {

populateElement('#search', 'Search BMJ Group site');

var widget1 = new widget(
{

	'widget'	:	"feeds-widget1",
	'url'	:	"feed://careers.bmj.com/careers/rss.html?searchId=20000893", 
	'track'	:	"w_jcp_careers",
	'widget_title'	:	"BMJ Careers - Latest pathology jobs",	
	'style'	:	"bmjjournals",	
	'num_itmes':	"5"
}
)


var panel1 = new tabbedwidget(
{
	'widget'	:	"panel-1",
	'url'	:	"http://jcp.bmj.com/rss/ahead.xml",
	'track'	:	"w_jcp_ahead_tab",
	'widget_title'	:	"Latest from Journal of Clinical Pathology:",
	'style'	:	"bmjjournals",
	'num_items':	"20"
})

var panel2 = new tabbedwidget(
{
	'widget'	:	"panel-2",
	'url'	:	"http://jcp.bmj.com/rss/current.xml",
	'track'	:	"w_jcp_current_tab",
	'widget_title'	:	"Current issue from Journal of Clinical Pathology:",
	'style'	:	"bmjjournals",
	'num_items':	"20"
})

var panel3 = new tabbedwidget(
{
	'widget'	:	"panel-3",
	'url'	:	"http://jcp.bmj.com/rss/mfr.xml",
	'track'	:	"w_jcp_current_tab",
	'widget_title'	:	"Top Ten articles last month",
	'style'	:	"bmjjournals",
	'num_items':	"20"
})



$("#tabbed-widget").tabs();


})

