(function ($) {
	$.fn.clickableDiv = function (options) {  
		var settings = {
			'link_selector': 'a:first',
			'hover_class': 'clickable-div-hover'
		};
		return this.each(function () {        
			// If options exist, lets merge them
			// with our default settings
			if (options) { 
				$.extend(settings, options);
			}
			// Tooltip plugin code here
			var href = $(settings.link_selector, this).attr('href');
			if (href !== undefined){
				$(this).css('cursor', 'pointer').hover(function () {
					$(this).addClass(settings.hover_class);
				}, function () {
					$(this).removeClass(settings.hover_class);
				}).click(function () {
					window.location = href;
				});
				
			}
		});
	};
}(jQuery));
