$(document).ready(function(){	

	/* easy framework inititialisation */
	
	$.easy.navigation();
	$.easy.tooltip();
	$.easy.popup();
	$.easy.external();
	$.easy.rotate();
	$.easy.forms();
	$.easy.showhide();
	$.easy.jump();
	
	
	/* Equal column heights */

	function equalHeight(group) {
		tallest = 0;
		group.each(function() {
			thisHeight = $(this).height();
			if(thisHeight > tallest) {
				tallest = thisHeight;
			}
		});
		group.height(tallest);
	}
	
	/*$(function() {
		equalHeight($(".column"));
	});*/
	
	/*$(function() {
		equalHeight($(".linkbox"));
	});*/
	
	$(function() {
		equalHeight($(".sub-set"));
	});
	
	
	/* legacy togglers */
	
	$('#toggleButton').click(function() {
	   if ($('#toggleSection').is(":hidden"))
	   {
	        $('#toggleSection').slideDown("slow");
	   } else {
	        $('#toggleSection').slideUp("slow");
	   }
	});
	
	
	$('#toggleCallbutton').click(function() {
	   if ($('#toggleCallback').is(":hidden"))
	   {
	        $('#toggleCallback').slideDown("slow");
	   } else {
	        $('#toggleCallback').slideUp("slow");
	   }
	});
	
	
	$('#toggleCallbuttonB').click(function() {
	   if ($('#toggleCallback').is(":hidden"))
	   {
	        $('#toggleCallback').slideDown("slow");
	   } else {
	        $('#toggleCallback').slideUp("slow");
	   }
	});
	
	
	/* scrollpane  */
	
	$('#postcodelists').jScrollPane({scrollbarWidth:14});
	
	$.easy.rotate({
		selector: '#tweets',
		pause: 5000,
		randomize:false
	});

});

