$(document).ready(function(){
	$('.client-login-a').toggle(function(){
		$('.client-login').slideDown("slow");
	}, function() {
		$('.client-login').slideUp('slow');	
	});
	

	$('.pricingheader a').toggle(function() {
		var theContent = $(this).attr('href');
		var subItem = $(this).attr('rel');
		var toOpen = '#'+subItem
		$('.pricing-categories a').removeClass('open');
		$(this).addClass('open');
		$('.hiddencontent').hide();
		$(toOpen).slideDown();
		return false;
	}, function() {
		var subItem = $(this).attr('rel');
		var toClose = '#'+subItem
		$(toClose).slideUp();
		$(this).removeClass('open');
		return false;
	});
	$('.pricingheader a').click(function() {
		var theContent = $(this).attr('href');
		var subItem = $(this).attr('rel');
		var toOpen = '#'+subItem
		$(toOpen).load(theContent);
		return false;
	});
	
	$('.hiddencontent p a').live('click', function() {
		var theContent = $(this).attr('href');
		$('.snooki .theContent').load(theContent);
		$('.snooki').addClass('loading');
		$('.snooki').show();
		return false;
	});
	$('a.internal').live('click',function() {
		var theContent = $(this).attr('href');
		$('.snooki .theContent').load(theContent);
		return false;
	});
	$('.snooki .nosnooki').click(function() {
		$('.theContent').html('');
		$('.snooki').hide();
		return false;
	});
	//$('.showform').click(function() {
	//	$('.theform').fadeIn();
	//	return false;
	//});
	//$('.closethis').click(function() {
	//	$('.theform').fadeOut();
	//	return false;
	//});
	
});
