// from http://shadowbox-js.com/forum.html#nabble-td3004085
function moveCloseLink() {
	cb=document.getElementById( 'sb-nav-close' ); 
	tb=document.getElementById( 'sb-title' ); 
	if( tb ) 
		tb.appendChild(cb); 
	}

// initialize shadowboxShadowbox.init({
	// skip the automatic setup, we do it manually below
	skipSetup:				true,
	onOpen:					moveCloseLink,
	overlayOpacity:	0.7,
//	overlayColor:			"#1b251a",
	animSequence:	"wh"
	});

window.onload = function() {
	// skip setting up the links on Safari Mobile (else the iphone redirect won't work)
	if (!(navigator.userAgent.match(/iPhone/i)) && !(navigator.userAgent.match(/iPod/i))) {
		// set up all anchor elements with a "pano" class to work with Shadowbox
		// (requires a CSS-enabled version of Shadowbox
		Shadowbox.setup("a.pano", {
			width:							1280,
			height:						720
			});
		};
	};
