$(function() {

	/**
	 * sets pointer cursors for ul#stores
	 */
	$("ul#stores > li").css("cursor", "pointer");
	$("ul#stores li ul li:not(a)").css("cursor", "auto");
	
	/**
	 * dynamic slideDown and slideUp for ul#stores
	 */
	$("ul#stores li:has(ul)").click(function(event) {
		if (this == event.target) {
			if ($(this).children().is(":hidden")) {
				$(this).children().slideDown("fast");
				$(this).css("background-image", "url(images/arrow_d.gif)");
			} else {
				$(this).children().slideUp("fast");
				$(this).css("background-image", "url(images/arrow_r.gif)");
			}
		}	
	});
	
	$(this).css("background-image", "url(images/arrow_d.gif)");
	
});

