Cufon.replace('h1'); // Works without a selector engine

$(init);

function init() {

	$("div#dropdowns .dropdown").each(function(i, dd){
		$("li", $(dd)).each(function(j, li){
			if (j % 2 == 0) $(li).addClass("even");
		});
	});
	
/*
	$("div#dropdowns .dropdown li a").click(
		function(){
			window.location.href = "list.html";
		}
	);
*/	
	$("div#dropdowns .dropdown a.switch").click(function(){
		
		var $this = $(this);
				
		var $ul = $("ul", $this.parent());

			if ( !$this.hasClass("open") ) {
			$this.html("LUK");
			$this.addClass("open");
			$ul.slideDown();
		} else {
			$this.html("&Aring;BEN");
			$this.removeClass("open");
			$ul.slideUp();			
		}
	});
	
	
	/* show category specific */
	$("a.switch").click(switchProfile);
	
	
}


function switchProfile() {
	var $this = $(this);
	
	
}
