// img-fades:

jQuery(function($) {
	$(".logo").hover(
		function()
		{
			$(this).children(".logo_over").fadeTo( "fast", 1.0 );
		},
		function()
		{
			$(this).children(".logo_over").fadeTo( "slow", 0.0 );
		}
	);
});


jQuery(function($) {
	$(".project").hover(
		function()
		{
			$(this).children(".thumb_over_home").fadeTo( "fast", 1.0 );
		},
		function()
		{
			$(this).children(".thumb_over_home").fadeTo( "slow", 0.0 );
		}
	);
});


jQuery(function($) {
	$(".project").hover(
		function()
		{
			$(this).children(".thumb_over").fadeTo( "fast", 1.0 );
		},
		function()
		{
			$(this).children(".thumb_over").fadeTo( "slow", 0.0 );
		}
	);
});


jQuery(function($) {
	$(".kollege_thumb").hover(
		function()
		{
			$(this).children(".thumb_kollege_over").fadeTo( "fast", 1.0 );
		},
		function()
		{
			$(this).children(".thumb_kollege_over").fadeTo( "slow", 0.0 );
		}
	);
});


// Ende img-fades


//fancybox in der projekt-ansicht (unter arbeiten)

$(document).ready(function() {

	$("a[rel=group]").fancybox({
		'transitionIn'		: '600',
		'transitionOut'		: '600',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
});



// Turn links with rel="external" into target="_blank" links

$(document).ready(function(){
   $("a[@title^='External Link:']").attr("rel","external");
   $("a[@rel*='external']").attr("target","_blank");
});


