$(document).ready(function() {

//	// jQuery tabs
//	// http://papermashup.com/simple-jquery-tabs/
//
//	$('#mini_tabs > .tab_content').hide();
//	$('#mini_tabs > .tab_content:first').show();
//	$('#mini_tabs .navigation ul li:first').addClass('active');
//	
//	$('#mini_tabs .navigation li a').click(function(){
//	$('#mini_tabs .navigation li').removeClass('active');
//	$(this).parent().addClass('active');
//	var currentTab = $(this).attr('href');
//		$('#mini_tabs > .tab_content').hide();
//		$(currentTab).show();
//		return false;
//	});
	
	
	// --------------------------------------------------------------
	
	// Accordion menu
	// http://jqueryfordesigners.com/slide-out-and-drawer-effect/
	
	$('#sidebar dd:not(:first)').hide(); 
		$('#sidebar dd:first').addClass('open');
		
		$('#sidebar dt').click(function () {
		$('#sidebar dd:visible').hide();
		
		$('#sidebar dt.open').removeClass('open');
		$('#sidebar dd.open').removeClass('open');
		
		$(this).next().show();
		
		$(this).addClass('open');
	});
	

	
	// --------------------------------------------------------------
	
	// Text resizing
	// http://www.shopdev.co.uk/blog/text-resizing-with-jquery/

	// 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, 12);
		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, 12);
		var newFontSize = currentFontSizeNum*0.9;
		$('html').css('font-size', newFontSize);
		return false;
	});
	
	// --------------------------------------------------------------
	
//	// jEqual height columns
//	// http://www.cssnewbie.com/equal-height-columns-with-jquery/
//	
//	function equalHeight(group) {
//		var tallest = 0;
//		group.each(function() {
//			var thisHeight = $(this).height();
//			if(thisHeight > tallest) {
//				tallest = thisHeight;
//			}
//		});
//		group.height(tallest);
//	}
//	
//	equalHeight($(".columns > .col"));
});

