
jQuery(document).ready(function(){  
	// Universal Openers
	$('.open').click(function() {
	  $(this).next(".inside").toggle(0, function() {
	  	$(this).parent("li").toggleClass('opened');
	  });
	});

	// Harmen Liemburg categories openers
	$('#cats > li > a').click(function() {
	  $(this).next(".children").toggle(0, function() {
	  	$(this).parent().toggleClass('opened');
	  });
	});

	$('#cats > li > a').click(function() { return false; });
	
	// Show current page group
	$('.current-cat').parent('.children').show(); 

	// Badge drag
	$( "#badge" ).draggable();
		
	// Shop opener
	$('.page-item-2675 a').addClass('open');

	// Title hide
	$('a').removeAttr('title');

	// Email hider
	$('a.email').each(function(){
		e = this.rel.replace('/','@');
		this.href = 'mailto:' + e;
		$(this).text(e);
	});

});

