/*

sqLinkify: make a parent item link to anchor contained within

(c)2010 Sqoo Media Ltd.

http://sqoo.co.uk

*/

jQuery.fn.sqLinkify = function(options)
{

	//construct settings from defaults and options

	var defaults = 
	{
			scan 		: 'a.linkify'
	};

	var settings = $.extend({}, defaults, options);

	return this.each
	(
		function(options) 
		{
			var $to_link = $(this);
			var link_href = $('a', $to_link).attr('href');
			$to_link
				.click(function(){window.location = link_href; return false;})
				.css({"cursor":"pointer"});
		}
	)
}