function simpleTabs(container)
{
	var container  = $(container);
	var tabs       = $(container).find('.tabs');
	var pages      = $(container).find('.pages');

	var n = 1;
	tabs.find('li').each(function(){
		$(this).attr('number', n);
		$(this).click(function(){goToPage($(this).attr('number'))});
		n++;
	});

	n = 1;
	pages.find('.page').each(function(){
		$(this).attr('number', n);
		n++;
	});

	current = 1;

	tabs.find('li[number='+current+']').addClass('active');
	pages.find('.page[number='+current+']').addClass('active').show();

	function goToPage(pagenum)
	{
		if(pagenum != current){
			tabs.find('li.active').removeClass('active');
			tabs.find('li[number='+pagenum+']').addClass('active');
			pages.find('.page[number='+current+']').hide();
			pages.find('.page[number='+pagenum+']').show();
			current = pagenum;
		}
	}
}
