jQuery(document).ready(function() {
  jQuery(".side").hide();
  jQuery(".content").hide();
  jQuery(".content1").show();
  jQuery(".heading").click(function()
  {
    jQuery(this).next(".content").slideToggle(750);
	jQuery(this).next(".content1").slideToggle(750);
	jQuery(this).next(".side").slideToggle(750);
  });
});


function initMenu() {
  $('#menu li a').click(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
        return false;
        }
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('#menu ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
 }

//$(document).ready(function() {initMenu();});

$(document).ready(function(){
 	initMenu();
  });


$(function() {
	$('#gallery a').lightBox({fixedNavigation:true});
});

$(document).ready(function(){
  // Reset Font Size
  var originalFontSize = $('html').css('font-size');
    $(".resetFont").click(function(){
    $('html').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.1;
    $('html').css('font-size', newFontSize);
    return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.9;
	$('html').css('font-size', newFontSize);
    return false;
  });
});


