$(document).ready(function(){

	$("a#streams_lb").fancybox({
		'padding'		: 20,
		'overlayColor'	: '#000',
		'centerOnScroll': true,
		'transitionIn'	: 'fade',
		'transitionOut'	: 'fade',
		'type'			: 'inline',
		'titleFormat'	: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="streams_title">Stream ausw&auml;hlen</span>';
		}

	});

	$('.opa, .opa-off').css('opacity', 0.4);

	$('.opa').hover(function() {
		$(this).animate({ opacity: 1 }, 200);
	}, function() {
		$(this).animate({ opacity: 0.4 }, 200);
	});

	$('.section').hover(function() {
		$(this).find('p.headline').animate({ opacity: 1 }, 200);
	}, function() {
		$(this).find('p.headline').animate({ opacity: 0.4 }, 200);
	});

	$('.secondary .post, #streams li').hover(function() {
		$(this).addClass('on');
	}, function() {
		$(this).removeClass('on');
	});

	$(".secondary .post, #streams li").click(function(){
		window.location=$(this).find("a").attr("href");
		return false;
	});

	$('.cform, .wpcf7').focus(function() {
			inputValue = $(this).val();
			if($(this).val() == "Name" || $(this).val() == "E-Mail" ||$(this).val() == "Nachricht" || $(this).val() == "E-Mail (erforderlich, wird nicht angezeigt)" || $(this).val() == "Kommentar") {
					$(this).attr("value","");
			}
	});

	$('.cform').blur(function() {
		if($(this).val()==="") {
			$(this).val(inputValue);
		}

	});

});

