jQuery(document).ready(function() {	

	externalLinks();
	hideHiddenClass();	

	$('.picturemenu').mouseenter(
			function(){
				$(this).find('.caption').stop(true);
				$(this).find('.caption').animate({"opacity": "0.75"}, 400);
			});

	$('.picturemenu').mouseleave(
			function(){
				$(this).find('.caption').stop(true);
				$(this).find('.caption').animate({"opacity": "0"}, 400);
			});

});

function hideHiddenClass()  {

	if (!document.getElementsByTagName) return;
	var tags = document.getElementsByTagName("div");
	for (var i=0; i < tags.length; i++){
		var tag = tags[i];	
		if (tag.className == "hidden")
			tag.style.display = "none";
	}

}//End of hideHiddenClass

function externalLinks() {

	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") &&
				anchor.getAttribute("rel") == "external")
			anchor.target = "_blank";
	}

}
