$(document).ready(function(){
	
	/* * * * * * * * * * 
	
		Condurra behaviourial corrections :-)
		
		* * * * * * * * * * */
		
	// GLOBAL PAGE
	
	$("img.hover")
		.mouseenter(function(){ $(this).attr({"src":$(this).attr("src").replace(".png", "-over.png")});	})
		.mouseleave(function(){ $(this).attr({"src":$(this).attr("src").replace("-over.png", ".png")});	})

		
	// class oneCol is set on pages without the #mainContent element (=> pt only in setup template) 
	var isContentOneCol = $("#mainContent");
	if (!isContentOneCol.length > 0) {
		$("#bodyContainer").addClass("oneCol")
	}
	
	$("a img").each(function(){
			$(this).parent("a").addClass("hasImage");
		})

	// NEWS 

	$(".clickable").click(function(){window.location.href = $(this).find("a").attr("href");})

	$("#frontRow2 #newsList li")
		.mouseenter(function(){
			$(this).addClass("hover");
		})
		.mouseleave(function(){
			$(this).removeClass("hover");
		})

	
								
}) // document ready
