function equalHeight(group) {
var tallest = 0;
group.each(function() {
var thisHeight = $(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}

$(document).ready(function(){
	$('#footerSubscribe').hover(
		function() { $(this).addClass('subscribeOver').removeClass('subscribe'); },				   
		function() { $(this).removeClass('subscribeOver').addClass('subscribe'); }					   
	);
	
	$('.banner').cycle({
		fx: 'fade'
	});
	$('a.popUp').colorbox({iframe:true,width:350, height:470});
	$(".trl").colorbox({iframe:true, innerWidth:600, innerHeight:400, title:" "});
	$('#featuresBox').after('<div id="pager">').cycle({ 
    	fx:     'fade', 
    	speed:  'fast', 
    	timeout: 6000, 
    	pause: 	 true,
		pauseOnPagerHover: true,
    	pager:  '#pager'
	});
	
	$('#slideshow').cycle({ 
    	fx:     'fade', 
    	speed:   450, 
    	timeout: 4500, 
    	pause: 	 true,
		pauseOnPagerHover: true,
    	pager:  '#slideshownav'
	});

equalHeight($('.equal'));

});
