(function ($) {
	
	function makeParentDivClickable() {
		
	  // Looks for any anchor classed "makeParentClickable" and attaches the contained URL to the parent div. 
	  // It also makes the parent div look "clickable" by changing the cursor to a pointer.
	  // Author: Adriel Henderson
	  // Date: January, 2010
	
		$(".makeParentDivClickable").closest("div").css("cursor","pointer")
			.each(function() {
				_goToURL = $('.makeParentDivClickable', this).attr('href');
				_goToTitle = $('.makeParentDivClickable', this).attr('title');
				$(this).attr({title: _goToTitle});
				$(this).bind("click", function(){
					redirect($('.makeParentDivClickable', this).attr('href'));
				})
			});			
		};	
	
		
	// Functions to run once DOM has loaded:	
	$(makeParentDivClickable);
					
}(jQuery));

function redirect(href) {
	location.href=href;
}