/* header tabulation function created by ajay */
var onselected = '';

function showtab() {
	$(onselected).find('a.tab-caption').eq(0).removeClass('onselect');
	$(onselected).find('.tab-content').eq(0).hide();
	$(this).find('a.tab-caption').eq(0).addClass('onselect');
	$(this).find('.tab-content').eq(0).show();
	onselected = $(this);
}
function initHeadertabs() {
	$('a.tab-caption').click(
		function() {
			return false;
		}
	);
	$('.tab-content').hide();
	$('.header-tab ul li:first').find('a.tab-caption').eq(0).addClass('onselect');
	$('.header-tab ul li:first').find('.tab-content').eq(0).show();
	onselected = $('.header-tab ul li:first')
}

$(document).ready(function() {
	$('.header-tab ul li').bind('mouseover', showtab);
	initHeadertabs();
});
