$(document).ready(function() {
	var fm = new FeedMenu('link' + String.fromCharCode(91) + 'type*=rss' + String.fromCharCode(93));
	fm.write('#rss_feed_menu');	
	var fm_hot = new FeedMenu('link' + String.fromCharCode(91) + 'type*=rss' + String.fromCharCode(93));
	fm_hot.write('#rss_feed_menu_hot');	

	var highestCol = Math.max($('#main').height(),$('#sidebar').height());
	$('#main,#sidebar').height(highestCol);

	$('#cbox').height(highestCol-$('#cbox').position().top);
	$('#btn-signup,#btn-close').click(function() {
		var $lefty = $('#signup');
		$('#slider').css('display','block');
		$lefty.animate(
			{left: parseInt($lefty.css('left'),10) == 0 ? -$lefty.outerWidth() : 0},"normal", "linear", 
			function(){if (parseInt($lefty.css('left'),10) != 0) {$('#slider').css('display','none');}}
		);
		return false;
	});
	$('#slider').css('top',$('#cbox').position().top);
  
});
function validateSignup() {
    var alertTxt = "";
    if ($("#fname").val() == "")  {alertTxt+="Please enter your First Name<br />";}
    if ($("#lname").val() == "")  {alertTxt+="Please enter your Last Name<br />";}
    if ($("#emailaddr").val() == "")  {alertTxt+="Please enter your Email Address";}
    if (alertTxt == "") { return true; } 
    else { $.modal("<h3>Error</h3><p>"+alertTxt+"</p>"); return false; }
}

var addthis_config = {
	ui_cobrand: "Ingersoll Rand",
	ui_header_color: "#ffffff",
	ui_header_background: "#d52b1e"
}
