    $(function() {
        $('.tabBoxNav').find('a').removeAttr('href');

        /* tabBoxArea */
        $('.tabBoxNav li:first a').addClass('on');
        $('.tabBox').hide();
        $('.tabBox01').show();
        $('.tabBoxArea').each(function(){
            var thisArea = $(this);
            if($(thisArea).attr('id') == 'indexTabMenu'){
                true;
            }else{
                // tab max width
                var liMaxWidth = $(this).find('.tabBoxNav').width() / 3 -32;
                $(this).find('.tabBoxNav').find('li').find('a').each(function(){
                    var liThisWidth = $(this).width();
                    if(liThisWidth >= liMaxWidth){
                        $(this).width(liMaxWidth);
                    } else {
                        $(this).width('auto');
                    }
                });
                // tab max height
//!?                $('.tabBoxNav li a').height($('.tabBoxNav li a').maxHeight());
				if (typeof OCMS !== 'undefined') {
					OCMS.consoleMsg('attempt to set maxHeight for .tabBoxNav li a');
				}
            }
            // tab click
            $(this).find('.tabBoxNav').find('a').each(function(){
                var thisRel = $(this).attr('rel');
                var showBlock = '.tabBox' + thisRel;
                $(this).hover(
                    function(){
                        $(this).addClass('hover');
                    },
                    function(){
                        $(this).removeClass('hover');
                    }
                );
                $(this).one('click',function(){
                    $(this).addClass('visited');
                });
                $(this).click(function(){
                    $(thisArea)
                        .find('.tabBoxNav')
                            .find('a')
                                .removeClass('on')
                            .end()
                        .end()
                    .end();
                    $(this).addClass('on');
                    $('.tabBox').hide();
                    $(showBlock).show();
                    if($(thisArea).attr('id') == 'indexTabMenu'){
                        $('.tabBoxNav li a').removeClass('else');
                        if(thisRel == 1) {
                            $('li#tabPress').find('a').removeClass('else');
                        }
                        if(thisRel == 2) {
                            $('li#tabLatest').find('a').addClass('else');
                        }
                        if(thisRel == 3) {
                            $('li#tabPress').find('a').addClass('else');
                        }
                    }
                });
            });
        });
    });
