// JavaScript Document

function toggleCart(id, toggler) {
				var queue = Effect.Queues.get(id+'_scope'); // get the scope of this elements effects
				queue.each(function(effect) { effect.cancel(); }); // cancel them all and continue on to newest effect
				switch (toggler) {
					case 1:
						new Effect.Appear(id, { delay: 0.2, duration: 0.5, queue: { position:'end', scope: id+'_scope', limit: 2 } });
					break;
					case 0:
						new Effect.Fade(id, { delay: 0.2, duration: 0.5, queue: { position:'end', scope: id+'_scope', limit: 2 } });
					break;
				}
			}
			
function toggleDiv(id, toggler) {
				var queue = Effect.Queues.get(id+'_scope'); // get the scope of this elements effects
				queue.each(function(effect) { effect.cancel(); }); // cancel them all and continue on to newest effect
				switch (toggler) {
					case 1:
						new Effect.SlideDown(id, { delay: 0.2, duration: 0.5, queue: { position:'end', scope: id+'_scope', limit: 2 } });
					break;
					case 0:
						new Effect.SlideUp(id, { delay: 0.2, duration: 0.5, queue: { position:'end', scope: id+'_scope', limit: 2 } });
					break;
				}
			}
	
