    function changeSubContent(trigger) {
      var loadurl = trigger.href;
        $.get(loadurl+'?type=59', function(data) {
          document.title = data;
        });
        $('#currentcontent').before('<div class="newcontainer" style="width:1px;height:324px;float:left;overflow:hidden;margin-left:-1px;"></div>');
        $('#scrollcontent').css('overflow','hidden');
        $('#langmenu').remove();
        $('#langmenucontainer').load(loadurl+' #langmenu');
        $('.newcontainer').load(loadurl+' #loadcontent', function() {
          $('#currentcontent').animate({width:1},634,'swing');
          $('.newcontainer').animate({width:635},634,'swing',function() {
            $('#currentcontent').remove();
            $('.newcontainer').attr('id','currentcontent').removeClass();
            $('#scrollcontent').css('overflow','auto');
          });
          $('.tooltipleft').mouseover(function() {
            this.h = $(this).text();
            this.t = this.title;
            this.title = '';
            $(this).parent().css('z-index','2');
            $(this).append('<div id="activetooltipleft"><span><h4><strong>'+this.h+'</strong></h4><p class="activetooltip">'+this.t+'</p></span></div>');
            return false;
          });
          $('.tooltipleft').mouseout(function() {
            this.title = this.t;
            $(this).parent().css('z-index','1');
            $('#activetooltipleft').remove();
            return false;
          });
          $('.tooltipleft').click(function() {
            this.title = this.t;
            var t = '';
            var a = $(this).attr('href');
            var g = '';
            $(this).parent().css('z-index','1');
           $('#activetooltipleft').remove();
            tb_show(t,a,g);
            return false;
          });
          $('.tooltipright').mouseover(function() {
            this.h = $(this).text();
            this.t = this.title;
            this.title = '';
            $(this).parent().css('z-index','2');
            $(this).append('<div id="activetooltipright"><span><h4><strong>'+this.h+'</strong></h4><p class="activetooltip">'+this.t+'</p></span></div>');
            return false;
          });
          $('.tooltipright').mouseout(function() {
            this.title = this.t;
            $(this).parent().css('z-index','1');
            $('#activetooltipright').remove();
            return false;
          });
          $('.tooltipright').click(function() {
            this.title = this.t;
            var t = '';
            var a = $(this).attr('href');
            var g = '';
            $(this).parent().css('z-index','1');
            $('#activetooltipright').remove();
            tb_show(t,a,g);
            return false;
          });
          $('.submenu').click(function() {
            changeSubContent(this);
            return false;
          });
        });
    }
      
    $(document).ready(function() {
      $('#scrollcontent').css('overflow','auto');
      $('.menu').click(function() {
        this.blur();
        $('.mainmenu').removeClass('mainmenuactive');        
        $(this).parent().addClass('mainmenuactive');        
        var loadurl=$(this).attr('href');
        $.get(loadurl+'?type=59', function(data) {
          document.title = data;
        });
          $(this).before('<div class="newcontainer" style="width:1px;height:324px;float:left;overflow:hidden;margin-left:-1px;"></div>');
          $('#scrollcontent').css('overflow','hidden');
          $('#langmenu').remove();
          $('#langmenucontainer').load(loadurl+' #langmenu');
          $('.newcontainer').load(loadurl+' #loadcontent', function() {
            $('#currentcontent').animate({width:1},634,'swing');
            $('.newcontainer').animate({width:635},634,'swing',function() {
              $('#currentcontent').remove();
              $('.newcontainer').attr('id','currentcontent').removeClass();
              $('#scrollcontent').css('overflow','auto');
            });
            $('.tooltipleft').mouseover(function() {
              this.h = $(this).text();
              this.t = this.title;
              this.title = '';
              $(this).parent().css('z-index','2');
              $(this).append('<div id="activetooltipleft"><span><h4><strong>'+this.h+'</strong></h4><p class="activetooltip">'+this.t+'</p></span></div>');
              return false;
            });
            $('.tooltipleft').mouseout(function() {
              $(this).parent().css('z-index','1');
              $('#activetooltipleft').remove();
              this.title = this.t;
              return false;
            });
            $('.tooltipleft').click(function() {
              this.title = this.t;
              var t = '';
              var a = $(this).attr('href');
              var g = '';
              $(this).parent().css('z-index','1');
              $('#activetooltipleft').remove();
              tb_show(t,a,g);
              return false;
            });
            $('.tooltipright').mouseover(function() {
              this.h = $(this).text();
              this.t = this.title;
              this.title = '';
              $(this).parent().css('z-index','2');
              $(this).append('<div id="activetooltipright"><span><h4><strong>'+this.h+'</strong></h4><p class="activetooltip">'+this.t+'</p></span></div>');
              return false;
            });
            $('.tooltipright').mouseout(function() {
              this.title = this.t;
              $(this).parent().css('z-index','1');
              $('#activetooltipright').remove();
              return false;
            });
            $('.tooltipright').click(function() {
              this.title = this.t;
              var t = '';
              var a = $(this).attr('href');
              var g = '';
              $(this).parent().css('z-index','1');
              $('#activetooltipright').remove();
              tb_show(t,a,g);
              return false;
            });
            $('.submenu').click(function() {
              changeSubContent(this);
              return false;
            });
          });
          return false;
        });
        $('.submenu').click(function() {
          changeSubContent(this);
          return false;
        });
    })
