FLYG.ready(function(){

	var img=new FLYG.ImageViewer(
		'imgViewer',																// the ID of the container DIV
		'imgViewerNext',															// the ID of the Next button
		'imgViewerPrev',															// the ID of the Previous button
		['images/1.jpg','images/2.jpg','images/3.jpg'],							// an array of image files
		['&copy; Croatian National Tourist Board','&copy; Croatian National Tourist Board','&copy; Croatian National Tourist Board']						// an array of copyright info
		);
	
	if (FLYG.GMap){
		FLYG.GMap.getLocations({group:'DBV'},function(){
			(new FLYG.GMap.Display('mapouter','maplayer')).load('*',function(map,loc,marker){
				GEvent.addListener(marker,"click",function(point){
					if (point){
						var html=(loc.category.toLowerCase()=='hotel') ? '<a href="'+FLYG.Info.rootURL+'hotels.asp?atop='+loc.id+'">'+loc.label+'</a>' : loc.label;
						var overlay=new FLYG.GMap.CustomOverlays.Label(html,point,loc.id);
						if (overlay && overlay.point) map.addOverlay(overlay);
						}
					});
				});
			});
		}	

	});