
jQuery(document).ready(function() {
	// SLIDER	
	if($('div.trigger').length > 0) {
		$('div.trigger').click(function() {
			if ($(this).hasClass('open')) {
				$(this).removeClass('open');
				$(this).addClass('close');
				$(this).next().slideDown(400);
				return false;
			} else {
				$(this).removeClass('close');
				$(this).addClass('open');
				$(this).next().slideUp(400);
				return false;
			}			
		});
	}

	
	//Hide the tooglebox when page load
	jQuery(".wpsc_top_level_categories li ul").hide();
	
	//slide up and down when click over heading 2
	jQuery(".wpsc_top_level_categories li a.wpsc_category_link").click(function(){
		// slide toggle effect set to slow you can set it to fast too.
		jQuery(this).next(".wpsc_top_level_categories li ul").slideToggle("slow");
		return true;
	});

/*
	//Hide the tooglebox when page load
	jQuery(".send_to_other_form").hide();
	
	//slide up and down when click over heading 2
	jQuery("#send_to_other_link").click(function(){
		jQuery(this).next("form.send_to_other_form").slideToggle("slow");
		return true;
	});
	
	/*
	jQuery('.l').click(function() {
		jQuery('.send_to_other_form').toggle('slow', function() {
		// Animation complete.
		});
	});
	*/
	
	jQuery(".send_to_other_toggle").click(function() {
		jQuery("#send_calc_form").slideToggle("slow");
		return true;
	});
	
	jQuery(".send_to_other_toggle .make_purchase").click(function() {
		jQuery("#send_confirmation").slideDown("slow");
		return true;
	});
	
});
