$(function() {
	$("#menu > li:eq(0) > a").click(function() {
		if ($("#menu > li:eq(0) > ul").css("display")=="none") {
			$("#menu > li:eq(0) > ul").show("slow");
			$(this).find("img").attr("src","images/down.png");
		} else {
			if (!($("#menu > li:eq(0) > ul").hasClass("open"))) {
				$("#menu > li:eq(0) > ul").hide("slow");
				$(this).find("img").attr("src","images/right.png");
			}
		}
	});
	$("a[rel^='prettyPhoto']").prettyPhoto({
		social_tools: "",
		overlay_gallery: false
	});
	
	$("div.fourth").each(function(i,item) {
		var l = $(item).find("a").attr("href");
		$(item).css("cursor","pointer");
		$(item).click(function() {
			window.location.href = l;
		});
	})
})

