jQuery(document).ready(function() {
	$('a[href^="http://"]').attr("target", "_blank");
	
	if(!document.sliderTimeout) {
		document.sliderTimeout = 4000;
	}
	
	$("#slider").cycle({
		fx: 'scrollLeft',
		pager: '#sliderNav', 
		next: '#sliderNext', 
		prev: '#sliderPrev', 
    	pagerEvent: 'mouseover',
    	timeout: document.sliderTimeout,
		delay: 0,
		speed:  300
	});
	
	$('.rollover').rollover(true);
	
	var col4Height = $("#column4").height();
	var col5Height = $("#column5").height();
	
	if(col4Height != 0 && col5Height != 0) {
		if(col4Height < col5Height) {
			$("#column4").height('100%');
		} else {
			$("#column5").height('100%');
		}
	}
	
	if($('#shareEmail').length > 0) {
		$('#shareEmail').jqm();
		initEmailForm();
	}
	
	if($('#subscribe').length > 0) {
		$("input.phone").mask("999-999-9999");
		$('#submit').click(function() {
		    $(this).hide();
		    $('#loading').show();
		})
	}
		
});

