function goTeam(ixi){
  animTeam = true;
  var ixLeft = ixTeam - 1;
  if(ixLeft < 1)ixLeft = $('#team .member').length;
  var ixRight = ixTeam + 1;
  if(ixRight > $('#team .member').length)ixRight = 1;
  $('#team .member' + ixLeft).css({
    left : -1 * $('#team .member1').width()
  });
  $('#team .member' + ixRight).css({
    left : 1 * $('#team .member1').width()
  });  
  if(ixi>0){
    $('#team .member' + ixTeam).animate({
      left : -1 * $('#team .member1').width()
    }, 1500);
    $('#team .member' + ixRight).animate({
      left : 0
    }, 1500, function(){
      animTeam = false;
    });
  }else{
    $('#team .member' + ixTeam).animate({
      left : 1 * $('#team .member1').width()
    }, 1500);
    $('#team .member' + ixLeft).animate({
      left : 0
    }, 1500, function(){
      animTeam = false;
    });
  }
  ixTeam += ixi;
  if(ixTeam < 1)ixTeam = $('#team .member').length;
  if(ixTeam > $('#team .member').length)ixTeam = 1;
}

function goClients(ixi){
  animClients = true;
  var ixLeft = ixClients - 1;
  if(ixLeft < 1)ixLeft = $('#clients .clients').length;
  var ixRight = ixClients + 1;
  if(ixRight > $('#clients .clients').length)ixRight = 1;
  $('#clients .clients' + ixLeft).css({
    left : -1 * $('#clients .clients1').width()
  });
  $('#clients .clients' + ixRight).css({
    left : 1 * $('#clients .clients1').width()
  });  
  if(ixi>0){
    $('#clients .clients' + ixClients).animate({
      left : -1 * $('#clients .clients1').width()
    }, 1500);
    $('#clients .clients' + ixRight).animate({
      left : 0
    }, 1500, function(){
      animClients = false;
    });
  }else{
    $('#clients .clients' + ixClients).animate({
      left : 1 * $('#clients .clients1').width()
    }, 1500);
    $('#clients .clients' + ixLeft).animate({
      left : 0
    }, 1500, function(){
      animClients = false;
    });
  }
  ixClients += ixi;
  if(ixClients < 1)ixClients = $('#clients .clients').length;
  if(ixClients > $('#clients .clients').length)ixClients = 1;
}

function showMessage(maintitle,subtitle){
  $('#message').html('<h1>' + maintitle + '</h1><div class="source">' + subtitle + '</div>');
  Cufon.replace('#message h1', { fontFamily: 'DIN-Light' });
  Cufon.replace('#message div.source', { fontFamily: 'DIN-Regular' });
  $('#overlay').css({
    top : 0
  });
  $('#overlay').animate({
    opacity : 0.7
  },1000);  
}
