// This preset configures to recognise any link to a jpeg, png or gif file
// in the page as a link that it should expand. In addition the old method
// of classifying unobtrusive links (via rel="highslide") also works.

hs.isUnobtrusiveAnchorOldExt = hs.isUnobtrusiveAnchor;
hs.isUnobtrusiveAnchor = function(el) {
	//if (el.href && /\.jpg$/.test(el.href)) return 'image';
	if (el.href && /\.jpg|\.jpeg|\.png|\.gif/.test(el.href)) return 'image';
	return hs.isUnobtrusiveAnchorOldExt(el);
}
