
/* No queremos que pete el programa por un mensaje de depuración olvidado... */
if(typeof(console) == 'undefined' || console == null) {
	console = {};
      console.log = function () {return;}
	
}

$(document).ready(function() {
         var items = $("#menu ul li.section-title").siblings();
		 
		 // ponemos borde con puntos en la sección "shop"...
		 $('#menu .container ul').eq(3).find('li').eq(0).addClass('punteado');
		 // ... y quitamos el enlace en el copyright
		$('#menu .container ul').eq(3).
								find('li').
								eq(1).
								find('a').
								contents().
								unwrap();
								
		$('#menu .container ul').eq(3).
								find('li').
								eq(1).
								addClass('copyright-blancucha');
											
         // on load hide all, then show active
         items.hide();
         $(this).find("#menu ul li.active").siblings().siblings().show();
         // add pointer to title, on click hide all, show clicked menu-items if they were hidden before
         $("#menu ul li.section-title").css({cursor:"pointer"}).click(function() {
                 var viewable = $(this).next().css("display");
                 items.slideUp();
                if (viewable == 'none')
                     $(this).siblings().slideDown();
             });
     });


