(function($){
	$.fn.clicable = function(options){
		settings = $.extend({
			cursor:    true,
			overClass: null
		}, options);

		return this.each(function() {
			this.settings = settings;
			if ($(this).find('a').length == 1){
				if (settings.cursor) $(this).css('cursor','pointer');
				if (this.settings.overClass) {
					$(this).hover(
						function(){
							$(this).addClass(this.settings.overClass);
						},
						function(){
							$(this).removeClass(this.settings.overClass);
						}
					);
				}
				$(this).click(function(){
					if($(this).find('a').attr('target') == '_blank'){
						window.open(href=$(this).find('a').attr('href')).focus();
					} else {
						window.location=$(this).find('a').attr('href');
					}
					return false;
				});
			}
		});
		
		
	};
	
}) (jQuery)
