window.addEvent('domready', function(){
	/* thumbnails example , div containers */
	new SlideItMoo({itemsVisible:6, // the number of thumbnails that are visible
		currentElement: 0, // the current element. starts from 0. If you want to start the display with a specific thumbnail, change this
		thumbsContainer: 'thumbs2',
		elementScrolled: 'thumb_container2',
		overallContainer: 'gallery_container2'});
	});
	
window.addEvent("domready", function() {
		if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
			$$("a").filter(function(el) {
				return el.href && !el.href.indexOf("http://www.flickr.com/photos/") && el.firstChild && el.firstChild.src;
			}).slimbox({
				loop: true,
				initialWidth: 1024,
				initialHeight: 768,
				overlayOpacity: 0.6,
				overlayFadeDuration: 200,
				resizeDuration: 1000,
				resizeTransition: Fx.Transitions.Elastic.easeOut,
				counterText: "This is image <strong>{x}</strong> on a total of <strong>{y}</strong> in this fabulous Flickr image gallery",
				previousKeys: [37, 80, 16],
				nextKeys: [39, 78, 17],
			}, function(el) {
				return [el.firstChild.src.replace(/_[mts]\.(\w+)$/, ".$1"),
					(el.title || el.firstChild.alt) + '<br />Visit the <a href="' + el.href + '">Flickr page</a> for this picture.'];
			});
		}
		try {
			_gat._getTracker("UA-760577-1")._trackPageview();
		} catch(e) {}
	});
