/***** gallery *****/
$(document).ready(function() {
	$(".gallery a").fancybox();
});

/***** gallery programm *****/
$(document).ready(function() {
	$(".promis").fancybox();
});

/***** slider *****/
$('#slider').cycle({ 
    fx:      'scrollHorz', 
    speed:    300, 
    timeout:  5000 
});

/***** google maps *****/
function initialize() {
if(GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
		map.setCenter(new GLatLng(53.493803, 10.199175), 14);
		var baseIcon = new GIcon(G_DEFAULT_ICON);
		baseIcon.shadow = null;
		baseIcon.iconSize = new GSize(80, 60);
		baseIcon.shadowSize = null;
		baseIcon.iconAnchor = new GPoint(40, 60);
		baseIcon.infoWindowAnchor = new GPoint(40, 60);
		baseIcon.image = "http://www.lilabe.de/img/icons/location.png";
		markerOptions = { icon:baseIcon };			
		map.addOverlay(new GMarker(new GLatLng(53.493803, 10.199175), markerOptions));
		var topLeft = new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(20,40));
		map.addControl( new GSmallMapControl(), topLeft);
		map.setMapType(G_NORMAL_MAP);
	}
}

/* ----- slider gallery ----- */
$('#gallery') 
.before('<div id="nav">') 
.cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    pager:  '#nav' 
});

/* ----- gallery ----- */
$(document).ready(function() {
	$(".gallery li").fancybox();
});

/* ----- easing gallery ----- */
$(document).ready(function(){
	$(".gallery li").fadeTo("fast", 1.0);
	$(".gallery li").hover(function(){
	$(this).fadeTo("fast", 0.5);
	},function(){
		$(this).fadeTo("fast", 1.0);
	});
});

/* ----- easing input ----- */
/*
$(document).ready(function(){
	$(".input, .textarea").fadeTo(0, 0.3);	
	$(".input, .textarea").focus(function() {
		$(this).fadeTo("normal", 1.0);
	});		
	$(".input, .textarea").blur(function() {
		$(this).fadeTo("normal", 0.3);
	});
});
*/
