$(document).ready(
	function() {
		$('#suche input').focus(function(){
			if($(this).val() == "Suche") {
				$(this).val("");
			}
		});

		$("#suche input").blur(function(){
			if($(this).val() == "") {
				$(this).val("Suche");
			}
		});

		$('.video').each(function() {
			$(this).flash({
				swf: '/workspace/assets/mediaplayer/player.swf',
				width: 600,
				height: $(this).hasClass('4-3') ? '450': '337',
				allowfullscreen: true,
				flashvars: {
					file: $(this).attr('href'),
					title: $(this).text(),
					skin: '/workspace/assets/mediaplayer/overlay.swf',
					controlbar: 'over',
					image: $(this).find('img').attr('src'),
					frontcolor: '999999',
					lightcolor: '5F819C',
					wmode: 'opaque'
				}
			});
		});
		
		$('.audio').each(function() {
			$(this).flash({
				swf: '/workspace/assets/mediaplayer/player.swf',
				width: 600,
				height: 60,
				allowfullscreen: true,
				flashvars: {
					file: $(this).attr('href'),
					title: $(this).html(),
					skin: '/workspace/assets/mediaplayer/overlay.swf',
					frontcolor: '999999',
					lightcolor: '5F819C',
					wmode: 'transparent'
				}
			});
		});
		
		$('a[rel*=lightbox]').lightBox();
		
		$('#grid div:not(.gridizg)').hover(
			function() {
				$(this).find("h2").animate({maxHeight: '100px'},200);
			},
			function() {
				$(this).find("h2").animate({maxHeight:"33px"},200);
			}
		);
	}
);


