/* ----- slider header ----- */
$('#slider').cycle({ 
    fx:		'fade', 
    speed:	'2000'
});

/* ----- slider button ----- */
$('#date').cycle({ 
    fx:		'fade', 
    speed:	'2000'
});

/* ----- easing header ----- */
$(document).ready(function(){
	$("#header a").fadeTo("fast", 1.0);
	$("#header a").hover(function(){
	$(this).fadeTo("fast", 0.5);
	},function(){
		$(this).fadeTo("fast", 1.0);
	});
});

/* ----- slider lineup ----- */
$('#lineup').cycle({ 
    fx:		'scrollLeft', 
    speed:	'slow',
    pause:	1, 
    sync:	1
});

/* ----- slider hosts ----- */
$('#hosts').cycle({ 
    fx:		'scrollRight', 
    speed:	'slow',
    pause:	1, 
    sync:	1
});

/* ----- slider logos ----- */
$('#logos').cycle({ 
    fx:		'scrollRight', 
    speed:	'slow',
    pause:	1, 
    sync:	1
});

/* ----- carousel partner ----- */
/*
function mycarousel_initCallback(carousel)
{
    carousel.clip.hover(function() {
        carousel.stopAuto();
    },function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#logos').jcarousel({
        auto: 1,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
});
*/

/* ----- easing partner ----- */
$(document).ready(function(){
	$("#partner a").fadeTo("fast", 1.0);
	$("#partner a").hover(function(){
	$(this).fadeTo("fast", 0.5);
	},function(){
		$(this).fadeTo("fast", 1.0);
	});
});

/* ----- slider gallery ----- */
$('#gallery') 
.before('<div id="nav">') 
.cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    pager:  '#nav' 
});

/* ----- gallery ----- */
$(document).ready(function() {
	$(".gallery a").fancybox();
});

/* ----- easing gallery ----- */
$(document).ready(function(){
	$(".gallery a").fadeTo("fast", 1.0);
	$(".gallery a").hover(function(){
	$(this).fadeTo("fast", 0.5);
	},function(){
		$(this).fadeTo("fast", 1.0);
	});
});

/* ----- easing input ----- */
$(document).ready(function(){
	$(".input, .textarea, .antwort").fadeTo(0, 0.3);	
	$(".input, .textarea, .antwort").focus(function() {
		$(this).fadeTo("normal", 1.0);
	});		
	$(".input, .textarea, .antwort").blur(function() {
		$(this).fadeTo("normal", 0.3);
	});
});

/***** maps *****/
function initialize() {
	var myOptions = {
		zoom: 14,
		center: new google.maps.LatLng(53.627741, 11.392274),
		mapTypeControl: true,
    	mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR},
		navigationControl: true,
		navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
		mapTypeId: google.maps.MapTypeId.ROADMAP,
		streetViewControl: false   
	}
	var map = new google.maps.Map(document.getElementById("map"), myOptions);
	var image = 'img/icons/location.png';
	var myLatLng = new google.maps.LatLng(53.627741, 11.392274);
	var CityMarker = new google.maps.Marker({
		position: myLatLng,
		map: map,
		icon: image,
		title:"Osterhammer Schwerin"
	});                        
}
