// JavaScript Document

$(document).ready(function () {
	
	$('input.host_add').hover(
		function () {
			$(this).addClass('hover');
		},
		function () {
			$(this).removeClass('hover');
		});
	
	$('div.features table').attr('cellpadding', '0').attr('cellspacing', '0');
	$('table tr td').addClass('col1');
	$('table tr td + td').removeClass('col1').addClass('col2');
	$('table tr td + td + td').removeClass('col2').addClass('col3');
	$('table tr td + td + td + td').removeClass('col3').addClass('col4');
	
	$('div.pick-plan').children('div:first').hide();
	$('div.pick-plan h3:first').css('cursor', 'pointer').append('<span>Let us help</span>').click( function() {
		if ($(this).next('div').is(":hidden")) {
			$(this).children('span').html('Hide Information');
			$(this).next('div').slideDown();
		} else {
			$(this).children('span').html('Let us help');
			$(this).next('div').slideUp();
		}
	}); 
	
	$('.compact').hide().after('<a href="javascript:void(0)" class="showmore">More Features</a>');
	
	$('.showmore').click( function() {
		if ($(this).prev('div.compact').is(":hidden")) {
			$(this).html('Hide Features');
			$(this).prev('div.compact').slideDown();
		} else {
			$(this).prev('div.compact').slideUp();
			$(this).html('More Features');
		}
	});

	
});

