
jQuery(function($) {
var options = {
			loop: false,
			overlayOpacity: 0.8,
			overlayFadeDuration: 700,
			resizeDuration: 700,
			resizeEasing: "swing",
			initialWidth: 700,
			initialHeight: 700,
			imageFadeDuration: 700,
			captionAnimationDuration: 700,
			counterText: "Bild {x} von {y}",
			closeKeys: [27, 88, 67],
			previousKeys: [37, 90],
			nextKeys: [39, 86]
		}
$("#lbOverlay").css("background-color","#000000");
$("#lbPrevLink").hover(
	function () {
		$(this).css("background-image","url('http://www.hawaii.hooip.com/wp-content/plugins/wp-slimbox2/images/de_DE/prevlabel-de.gif')");
	},
	function () {
		$(this).css("background-image","");
	}
);
$("#lbNextLink").hover(
	function () {
		$(this).css("background-image","url('http://www.hawaii.hooip.com/wp-content/plugins/wp-slimbox2/images/de_DE/nextlabel-de.gif')");
	},
	function () {
		$(this).css("background-image","");
	}
);
$("#lbCloseLink").css("background","transparent url('http://www.hawaii.hooip.com/wp-content/plugins/wp-slimbox2/images/de_DE/closelabel-de.gif') no-repeat center");
$("a[href]").filter(function() {
		return /\.(jpg|png|gif)(\?[\d\w=&]*)?$/i.test(this.href);
	}).slimbox(options, null, function(el) {
		return (this == el) || ($(this).parents("div.post, div#page")[0] && ($(this).parents("div.post, div#page")[0] == $(el).parents("div.post, div#page")[0]));
	});
$("a[href^='http://picasaweb.google.'] > img:first-child[src]").parent().slimbox(options, function(el) {
	return [el.firstChild.src.replace(/\/s\d+(?:\-c)?\/([^\/]+)$/, "/s640/$2"),
		(el.title || el.firstChild.alt) + '<br /><a href="' + el.href + '">Picasa Web Albums page</a>'];
});

});