$(document).ready(function(){
//	$("#s_box_content").scroll({
//		parentHeight: 200,
//		childHeight: 120 + 18,
//		delay: 50
//	});
	startTabs();
        showSearchOptions();
});

function startTabs() {
	$('.tabs div').hide();
	$('.tabs div.first').show();
	$('.tabs ul li:first').addClass('active');
	$('.tabs ul li a.tab').click(function() {
		currentTabsMainDivId = '#' + $(this).parents('div.tabs').attr('id');
		$(currentTabsMainDivId + ' ul li').removeClass('active');
		$(this).parent().addClass('active');
		var currentTab = $(this).attr('href');
		$(currentTabsMainDivId + ' div').hide();
		$(currentTabsMainDivId + ' ' + currentTab).show();
		return false;
	});
}

function showSearchOptions() {
	var m = $('#search_options');
	var p = $('#show_search_options');
	p.click(function() {
		if(m.is(":hidden"))
                    m.slideDown('slow');
                else
                    m.slideUp('slow');
		return false;
	});
}
