$(document).ready(function()
{
  var showGasContact = true;
  var showZbrContact = true;
  var showTransContact = true;
  var showSpawContact = true;
  var showLabContact = true;
  var showLabInfoContact = true;

  jQuery('.gas_link').live('click', function(e){
    if ( showGasContact == true ) {
      $('.gas_content').show('slow');
      showGasContact = false;
    } else {
      $('.gas_content').hide('slow');
      showGasContact = true;
    }
  })

  jQuery('.zbr_link').live('click', function(e){
    if ( showZbrContact == true ) {
      $('.zbr_content').show('slow');
      showZbrContact = false;
    } else {
      $('.zbr_content').hide('slow');
      showZbrContact = true;
    }
  })

  jQuery('.trans_link').live('click', function(e){
    if ( showTransContact == true ) {
      $('.trans_content').show('slow');
      showTransContact = false;
    } else {
      $('.trans_content').hide('slow');
      showTransContact = true;
    }
  })

  jQuery('.spaw_link').live('click', function(e){
    if ( showSpawContact == true ) {
      $('.spaw_content').show('slow');
      showSpawContact = false;
    } else {
      $('.spaw_content').hide('slow');
      showSpawContact = true;
    }
  })

  jQuery('.lab_info_link').live('click', function(e){
    if ( showLabInfoContact == true ) {
      $('.lab_info_content').show('slow');
      showLabInfoContact = false;
    } else {
      $('.lab_info_content').hide('slow');
      showLabInfoContact = true;
    }
  })

  jQuery('.men_pod').live('click', function(e){   
    if ( showLabContact == true ) {

      for (var i = 1; i < 100; i++)
      {
        $('.lab_content_'+i).hide();
      }

      $('.lab_content_'+$(this).attr('id')).show('slow');
      showLabContact = false;
    } else {
      for (var j = 1; j < 100; j++)
      {
        $('.lab_content_'+j).hide();
      }
      $('.lab_content_'+$(this).attr('id')).show('slow');
      showLabContact = true;
    }    
  })

});
