//	window.addEvent("domready", function() {
//	});


/*
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
	jQuery(function($) {
		$("a[href^='http://www.flickr.com/photos/'] > img:first-child[src]").parent().slimbox({}, function(el) {
			return [el.firstChild.src.replace(/_[mts]\.(\w+)$/, ".$1"),
				(el.title || el.firstChild.alt) + '<br /><a href="' + el.href + '">Flickr page</a>'];
		});
	});
}
*/



if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
	jQuery(function($) {
		$("a[href^='http://wirres.net/imagecatalogue'] > img:first-child[src]").parent().slimbox({
			loop: true,
			initialWidth: 520,
			initialHeight: 250,
			overlayOpacity: 0.6,
			overlayFadeDuration: 200,
			resizeDuration: 1000,
			captionAnimationDuration: 200,
			counterText: "bild {x} von {y}",
			closeKeys: [27, 88, 67],		// Array of keycodes to close Slimbox, default: Esc (27), 'x' (88), 'c' (67)
//			previousKeys: [37, 80],			// Array of keycodes to navigate to the previous image, default: Left arrow (37), 'p' (80)
//			nextKeys: [39, 78]				// Array of keycodes to navigate to the next image, default: Right arrow (39), 'n' (78)
			previousKeys: [37],			// Array of keycodes to navigate to the previous image, default: Left arrow (37), 'p' (80)
			nextKeys: [39]				// Array of keycodes to navigate to the next image, default: Right arrow (39), 'n' (78)
		}, function(el) {
//			return [el.firstChild.src,
//			return [el.id,
			return [el.firstChild.src.replace(/-(?:100x100|200x200)/, "-500x500"),
				(el.title || el.firstChild.alt) 
				+ ' [<a href="' + el.href + '">bild-permalink</a>]'
				];
		});

/*
		$("a[href^='http://wirres.net/imagecatalogue'] > img:first-child[src]").parent().click(function(){
			shortcut.remove("p");
			shortcut.remove("n");
		});
		
//		$($(center).hide())
*/

	});


}
