//http://www.search-this.com/examples/drop-down-menu/

$(document).ready(function(){
	var pg="#top" + $("body").attr("id");
	$(pg).css({"background-position" : "0 -30px"})
	$(pg + " span").css({"color" : "#009900"})
	//http://blog.darkhax.com/2010/01/17/making-nth-child-work-everywhere
//	$('.classBox:nth-child(3n+3)').addClass('lastClassBox');
//	$('.classBox:nth-child(3n+1)').addClass('clearClassBox');
    $('a.zoom').fancyZoom();
});

function entries(d) {
	$("#entry" + d + "LongDesc").slideToggle(100)
	currBG=$("#entry" + d + "Link").css("backgroundImage")
	if(currBG.indexOf("Minus") > 0) {
		$("#entry" + d + "Link").css({"backgroundImage" : "url(/nav/dayPlus.png)"})
	} else {
		$("#entry" + d + "Link").css({"backgroundImage" : "url(/nav/dayMinus.png)"})
	}
}

function tourList(r) {
	$("#regionTours" + r).slideToggle(250);
	currBG=$("#regionLink" + r).css("backgroundImage")
	if(currBG.indexOf("plus") > 0) {
		$("#regionLink" + r).addClass("regionLinkOn")
	} else {
		$("#regionLink" + r).removeClass("regionLinkOn")
	}
}

function tourListShow(r) {
	$("#regionTours" + r).show();
	$("#regionLink" + r).addClass("regionLinkOn");
}

function showAll() {
	$(".entryLong").show();
	$("#showLink").html("Einklappen");
	$("#showLink").attr({"href" : "javascript:hideAll()"});
	$(".entryLink").css({"backgroundImage" : "url(/nav/dayMinus.png)"});
}

function hideAll() {
	$(".entryLong").hide();
	$("#showLink").html("Zeige alle");
	$("#showLink").attr({"href" : "javascript:showAll()"});
	$(".entryLink").css({"backgroundImage" : "url(/nav/dayPlus.png)"});
}

