$(function(){  
  Cufon.replace(".first.corner", { fontFamily: 'SwitzerlandCondensed' });
  Cufon.replace(".medium", { fontFamily: 'SwitzerlandCondensed' });
  Cufon.replace(".top", { fontFamily: 'SwitzerlandCondensed' });
  Cufon.replace(".noitalic", { fontFamily: 'Switzerland Condensedi' });
  
//  Cufon.replace("#main_menu");
  Cufon.replace("#content h2");
  $('#er .item .description').hide();
 
 
  $('#er .toggle a').click(function(e) {
    var target = $(e.target);
    e.preventDefault();
    var description = target.parent().parent().find('.description');
    if(description.is(':visible')) {
      description.fadeOut('fast', function() {
        target.parent().removeClass('current');
      });
    }
    else {
      description.fadeIn('fast', function() {
        target.parent().addClass('current');
      });
    }
    return false;
  });
  
  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.2;
  $('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.8;
  $('html').css('font-size', newFontSize);
  return false;
  });
  
 	$(".extraimages").fancybox({
		'titlePosition'	: 'over',
		'showActivity':true,
		'cyclic':true,
		'autoScale':true,
		'width':700

	});
  
  
});  
