// JavaScript Document
  $(function() {
    $('img.image1').data('ad-desc', 'Happiness of the children affected by HIV / AIDS ');
    $('img.image1').data('ad-title', 'Children affected by HIV/AIDS (CHAHA)');
    $('img.image2').data('ad-desc', 'Transformation of Trangenders');
	$('img.image2').data('ad-title', 'Tamilnadu AIDS Initiative (TAI)');
    $('img.image3').data('ad-desc', 'Livelihood Development Initiatives for the Tribals.');
	$('img.image3').data('ad-title', 'Adivasi Development Initiative (ADI)');
	$('img.image7').data('ad-desc', 'Economic uplift through Scientific Innovations to the rural poor.');
	$('img.image7').data('ad-title', 'Integrated Bio Technological Intervention (MCRC)');
	$('img.image5').data('ad-desc', 'Care Home for the HIV affected and underprivileged children.');
	$('img.image5').data('ad-title', 'Abhaya Students Shelter');
	$('img.image4').data('ad-desc', 'Liberation of the Women under the below poverty line.');
	$('img.image4').data('ad-title', 'VIMUKTHA Womens Federation');
	$('img.image6').data('ad-desc', 'Bunch of roses born from thorns as a forum of Children for their rights.');
	$('img.image6').data('ad-title', 'Rojakootam Forum');
    var galleries = $('.ad-gallery').adGallery();
    $('#switch-effect').change(
      function() {
        galleries[0].settings.effect = $(this).val();
        return false;
      }
    );
    $('#toggle-slideshow').click(
      function() {
        galleries[0].slideshow.toggle();
        return false;
      }
    );
    $('#toggle-description').click(
      function() {
        if(!galleries[0].settings.description_wrapper) {
          galleries[0].settings.description_wrapper = $('#descriptions');
        } else {
          galleries[0].settings.description_wrapper = false;
        }
        return false;
      }
    );
  });
