$(document).ready(function() {

//BOX1//					   
var $box1 = $('#box1 .expandboxhidden');
var box1height = $box1.height();
$box1.hide().css({ height : 0 });

$('h3#showbox1').click(function () {
  if ( $box1.is(':visible') ) {
    $box1.animate({ height: 0 }, { duration: 600, complete: function () {
        $box1.hide();
      } 
    });
  } else {
    $box1.show().animate({ height : box1height }, { duration: 600 });
  }
    
  return false;
});	

//BOX2//					   
var $box2 = $('#box2 .expandboxhidden');
var box2height = $box2.height();
$box2.hide().css({ height : 0 });

$('h3#showbox2').click(function () {
  if ( $box2.is(':visible') ) {
    $box2.animate({ height: 0 }, { duration: 600, complete: function () {
        $box2.hide();
      } 
    });
  } else {
    $box2.show().animate({ height : box2height }, { duration: 600 });
  }
    
  return false;
});	

//BOX3//					   
var $box3 = $('#box3 .expandboxhidden');
var box3height = $box3.height();
$box3.hide().css({ height : 0 });

$('h3#showbox3').click(function () {
  if ( $box3.is(':visible') ) {
    $box3.animate({ height: 0 }, { duration: 600, complete: function () {
        $box3.hide();
      } 
    });
  } else {
    $box3.show().animate({ height : box3height }, { duration: 600 });
  }
    
  return false;
});	

//BOX4//					   
var $box4 = $('#box4 .expandboxhidden');
var box4height = $box4.height();
$box4.hide().css({ height : 0 });

$('h3#showbox4').click(function () {
  if ( $box4.is(':visible') ) {
    $box4.animate({ height: 0 }, { duration: 600, complete: function () {
        $box4.hide();
      } 
    });
  } else {
    $box4.show().animate({ height : box4height }, { duration: 600 });
  }
    
  return false;
});	

//BOX5//					   
var $box5 = $('#box5 .expandboxhidden');
var box5height = $box5.height();
$box5.hide().css({ height : 0 });

$('h3#showbox5').click(function () {
  if ( $box5.is(':visible') ) {
    $box5.animate({ height: 0 }, { duration: 600, complete: function () {
        $box5.hide();
      } 
    });
  } else {
    $box5.show().animate({ height : box5height }, { duration: 600 });
  }
    
  return false;
});	

//BOX6//					   
var $box6 = $('#box6 .expandboxhidden');
var box6height = $box6.height();
$box6.hide().css({ height : 0 });

$('h3#showbox6').click(function () {
  if ( $box6.is(':visible') ) {
    $box6.animate({ height: 0 }, { duration: 600, complete: function () {
        $box6.hide();
      } 
    });
  } else {
    $box6.show().animate({ height : box6height }, { duration: 600 });
  }
    
  return false;
});	

//BOX7//					   
var $box7 = $('#box7 .expandboxhidden');
var box7height = $box7.height();
$box7.hide().css({ height : 0 });

$('h3#showbox7').click(function () {
  if ( $box7.is(':visible') ) {
    $box7.animate({ height: 0 }, { duration: 600, complete: function () {
        $box7.hide();
      } 
    });
  } else {
    $box7.show().animate({ height : box7height }, { duration: 600 });
  }
    
  return false;
});	

//BOX8//					   
var $box8 = $('#box8 .expandboxhidden');
var box8height = $box8.height();
$box8.hide().css({ height : 0 });

$('h3#showbox8').click(function () {
  if ( $box8.is(':visible') ) {
    $box8.animate({ height: 0 }, { duration: 600, complete: function () {
        $box8.hide();
      } 
    });
  } else {
    $box8.show().animate({ height : box8height }, { duration: 600 });
  }
    
  return false;
});	

//BOX9//					   
var $box9 = $('#box9 .expandboxhidden');
var box9height = $box9.height();
$box9.hide().css({ height : 0 });

$('h3#showbox9').click(function () {
  if ( $box9.is(':visible') ) {
    $box9.animate({ height: 0 }, { duration: 600, complete: function () {
        $box9.hide();
      } 
    });
  } else {
    $box9.show().animate({ height : box9height }, { duration: 600 });
  }
    
  return false;
});	

//BOX10//					   
var $box10 = $('#box10 .expandboxhidden');
var box10height = $box10.height();
$box10.hide().css({ height : 0 });

$('h3#showbox10').click(function () {
  if ( $box10.is(':visible') ) {
    $box10.animate({ height: 0 }, { duration: 600, complete: function () {
        $box10.hide();
      } 
    });
  } else {
    $box10.show().animate({ height : box10height }, { duration: 600 });
  }
    
  return false;
});	
});	