function custom_tabs(selector)
{
	var current_tab = selector.find('ul.custom_tabs li.current');
	custom_tabs_hide(selector);
	/*selector.find('li.tab_list_item').bind({
		mouseenter:function(){
			custom_tabs_hover($(this));
		},
		mouseout:function(){
			custom_tabs_blur($(this));
		}
	});*/
	selector.find('ul.custom_tabs li a').bind({
		click:function(){
			custom_tabs_click($(this));
			return false;
		}
	});
}
/*function custom_tabs_hover(selector)
{
	if(!selector.hasClass('current_tab'))
	{
		selector.css('background-position', '0px -30px');
	}
}
function custom_tabs_blur(selector)
{
	if(!selector.hasClass('current_tab'))
	{
		selector.css('background-position', '0px 0px');
	}
}*/
function custom_tabs_click(selector)
{
	selector.parent().parent().find('li.current').removeClass('current');
	selector.parent().addClass('current');
	custom_tabs_hide(selector.parent().parent().parent());
}
function custom_tabs_hide(selector)
{
	var current_tab = selector.find('ul.custom_tabs li.current a').attr('href');
	selector.find('div.tab').each(function(){
		$(this).hide();
	});
	$(current_tab).show();
}
