$(document).ready(function() {
	$(document).pngFix();
	
	$('.butterfly').appendTo('.mediumleft:first');
	
	/*$('.mediumBeschriftung').each(function() {
		$(this).parent().prev('a').attr('title', $(this).text());
	});*/
	
	$('#col3_content .mediumHintergrund').hide();
	
	// FancyBox starten
	$("div.text a[rel='lytebox[group]']").fancybox();
	$("a[rel='fancybox']").fancybox({
		'titlePosition': 'over',
		'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
			var titleText = arrPhotoList[currentIndex+1];
			return '<span id="fancybox-title-over" style="text-align: left;">' + titleText + '</span>';
		}
	});
	
	
	$('label:not(.required)').next('input[type=text][value=""]').attr('value', 'Optional').css('color', '#AAA').focus(function() {
		if(this.value === 'Optional') {
			this.value = '';
			$(this).css('color', '#333');
		}
	}).blur(function() {
		if(this.value === '') {
			this.value = 'Optional';
			$(this).css('color', '#AAAAAA');
		}
	});
});
