function fotoPage(sFoto) {
	sFoto = sFoto.replace(new RegExp(this.location.protocol+'//'+this.location.host, 'gi'), '');
	fotoWin = window.open("/foto"+sFoto, 'fotoWin','width=640, height=480, top=0, left=0,location=no,menubar=no,toolbar=no,scrollbars=yes,status=no,resizable=yes',false);
	if (window.focus) {fotoWin.focus()}
	return false;
}
function routePage(sMap) {
	routeWin = window.open("/popup/route"+sMap, 'routeWin','width=640, height=480, top=0, left=0,location=no,menubar=no,toolbar=no,scrollbars=yes,status=no,resizable=yes',false);
	routeWin.focus();
}

$(document).ready(function(){
	//$("#nav>ul").accordion({ event: 'mouseover', active: '.current', header: '.head' });

	/*if ($('#gallery').length)
	{
		var gallery = $('#gallery').galleriffic('#navigation', {
			delay:                3000,
			numThumbs:            5,
			imageContainerSel:    '#slideshow',
			controlsContainerSel: '#controls',
			preloadAhead:         10, // Set to -1 to preload all images
			enableTopPager:       false,
			enableBottomPager:    true,
			renderSSControls:     true,
			renderNavControls:    true,
			playLinkText:         'Afspelen',
			pauseLinkText:        'Pause',
			prevLinkText:         'Vorige',
			nextLinkText:         'Volgende',
			nextPageLinkText:     'Volgende &rsaquo;',
			prevPageLinkText:     '&lsaquo; Vorige'
		});
	}*/
	
	$.Lightbox.construct({
		"show_linkback":	false,
		"text": {
			"image":		"Foto",
			"of":			"van",
			"close":		"Sluiten X",
			"closeInfo":	"Je kan ook ergens buiten de foto klikken om te sluiten.",
			"download":		"Download.",
			"help": {
				"close":	"Klik om te sluiten",
				"interact":	"Beweeg over de foto"
			},
			"about": {
				"text": 	"jQuery Lightbox Plugin (balupton edition)",
				"title":	"Licenced under the GNU Affero General Public License.",
				"link":		"http://www.balupton.com/projects/jquery-lightbox"
			}
		}

	});
});

