function tabInit(id) {
//     tabId = id;
    $('a[rel="switchTab"]').bind('click', tabClick);

}

function tabClick() {
    $('#tabs > li').removeClass('active');
    $('#tabs a').each(function() {
        var e = $(this).attr('href');
        $(e).hide();
    });
		$(this).parent().parent().parent().parent().parent().addClass('active');
    var id = $(this).attr('href');
    $(id).show();
    return false;
}
/*
function tabClick() {
	$(tabId + ' li.mainButtonWrapper a').removeClass('selected');
	$(tabId + ' a').each(function() {
		var e = $(this).attr('href');
		$(e).hide();
	});
		$(this).addClass('selected');
		var id = $(this).attr('href');
		$(id).show();
		return false;
}
*/
$(document).ready(function() { $(".p-inner div.inner-tabs td").click(function() { window.location.href = $(this).children('a').attr('href'); }); });
$(document).ready(function() { $(".p-home div.inner-tabs td").click(function() { $(this).children('a').click(); }); });

$(document).ready(function() {
	$('#tabsWrapper ul li:even').addClass ('even');
	$('#tabsWrapper ul li:odd').addClass ('odd');
});

