/* Author: Matt Banks */

// Equal height columns
var highestCol = Math.max($('.enterprise .block .col1').height(),$('.enterprise .block .col2').height(),$('.enterprise .block .col3').height());
$('.enterprise .block .column').height(highestCol);

// Fancybox for Enterprise Screenshot links
$(".fancybox").fancybox();

// Field Computing pages set first link to current
$(".fieldcontent li a").first().addClass('active');

// Field Computing pages show hide
$(".fieldcontent li a").click(function(){
	el = $(this);
	$(el).removeClass('active');
	currentlink = $(el).attr('class');
	$(".fieldcontent li a").removeClass('active');
	$(".fieldapps-text").hide();
	$(".block").hide();
	$("."+currentlink).show('slow');
	$(el).addClass('active');
});
