var currentTab = 2;

function getKeyCode(e) {
		code = -1;
		if (window.event)
			code = e.keyCode;
		else if (e.which)
			code = e.which;
		return code;
}

function underConstruction() {
    /*
    $('body').keypress(function(e){
        var keypass = getKeyCode(e);
        $('.under').click(function(){
           if(keypass == 96) {
               $('#overlay').remove();
           }
        });
            
        
    });
    */
}

function tbtab() {
	$(".tableTab").click(function(){
		var idt = this.id.substring(2);
		$("#tb"+currentTab).addClass("tableTab").removeClass("tableTab_a").bind('mouseenter',function(){tbtab()});
		$(this).addClass("tableTab_a").removeClass("tableTab").unbind("click");
		$("#tbc"+currentTab).hide();
		$("#tbc"+idt).show();
		currentTab = idt;
	});
}

$(document).ready(function() {
	$("#menuHbtn1").css("background","url(../images/header/m1_a.gif)");
	$("#menuHbtn1").unbind();
	tbtab();
	$("#tbc2").show();
    //underConstruction()
});

