// If DOM is ready, this will be executed

$(document).ready(function ()
{

	// Fading Slideshow
	$('#slideshow').innerfade({		// Options
		speed: 'slow', 
		timeout: 5000, 
		type: 'sequence', 
		containerheight: '350px'
	});

	try
	{
		$("a[rel^='prettyPhoto']").prettyPhoto({
			animation_speed: 'fast', /* fast/slow/normal */
			opacity: 0.80, /* Value between 0 and 1 */
			show_title: true, /* true/false */
			allow_resize: true, /* Resize the photos bigger than viewport. true/false */
			counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
			theme: 'facebook', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
			hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
			overlay_gallery: false, /* If set to true, a gallery will overlay the fullscreen image on mouse over */
		});
	}
	catch (e) {}

	try
	{
		$('#karte').gMap({
	    log:                    false,
	    latitude:               52.521835,
	    longitude:              9.726028,
	    zoom:                   12,
			markers: [
	        {
	            latitude: 52.521835,
	            longitude: 9.726028,
	            html: "Der H&ouml;pershof<br/>Am Husalsberg 1<br/>30900 Wedemark<br/><br/>05130 - 5864290<br/>info@der-hoepershof.de",
	            popup: false,
	
	            icon: {
	                image: "files/images/marker_extra.png",
	                iconsize: [63, 59],
	                iconanchor: [15,58],
	                infowindowanchor: [10, 0]
	            }
	        }
	    ],
	    scrollwheel:            true,
	    mapTypeControl:         true,
	    zoomControl:            true,
	    panControl:             true,
	    scaleControl:           false,
	    streetViewControl:      false,
	    maptype:                google.maps.MapTypeId.ROADMAP
		});
	}
	catch (e) {}

});


