/**
 * Initiallisiert die Mouseover events für die Navigations Leiste
 */
function initMenu(){
	//Menu-Fade
	jQuery('.page_item').mouseover(function(){
		jQuery(this).children('ul').fadeIn('fast');
	});
	jQuery('.page_item').mouseleave(function(){
		jQuery(this).children('ul').fadeOut('fast');
	});	
}

/**
 * Initiallisiert die Mouseover events für die Flickr Gallerie
 */
function initFlickrGallery(){
	//Flickr Animations
	jQuery('.flickr-thumb').mouseover(function(){
		// jQuery(this).css({
			// 'position' : 'relative'
		// });
		
		jQuery(this).animate({
			'opacity' : '1'
			// 'top' : '-5px'
		}, 'fast');
	})
	
	jQuery('.flickr-thumb').mouseleave(function(){
		jQuery(this).animate({
			'opacity' : '0.4'
			// 'top' : '0px'
		}, 'fast', function(){
			// jQuery(this).css({
				// 'position' : 'inherit'
			// });			
		});
	})		
}

function initMediaPictures(){
	jQuery('.mediaImg').mouseover(function(){
		jQuery(this).css({
			'position' : 'relative'
		});
		
		jQuery(this).animate({
			'opacity' : '1',
			'top' : '-15px'
		}, 'fast');
	})
	
	jQuery('.mediaImg').mouseleave(function(){
		jQuery(this).animate({
			'opacity' : '0.4',
			'top' : '0px'
		}, 'fast', function(){
			jQuery(this).css({
				'position' : 'inherit'
			});			
		});
	})		
}

/**
 * Initiallisiert die Mouseover events für die Flickr Gallerie
 */
function initSponsors(){
	//Flickr Animations
	jQuery('.sponsor').mouseover(function(){
		jQuery(this).css({
			'position' : 'relative'
		});
		
		jQuery(this).animate({
			'opacity' : '1',
			 'top' : '-5px'
		}, 'fast');
	})
	
	jQuery('.sponsor').mouseleave(function(){
		jQuery(this).animate({
			'opacity' : '0.6',
			 'top' : '0px'
		}, 'fast', function(){
			jQuery(this).css({
				'position' : 'inherit'
			});			
		});
	})		
}

/**
 * Initiallisiert die Mouseover events für die Flickr Gallerie
 */
function initSideButtons(){
	//Flickr Animations
	jQuery('.sb').mouseover(function(){
		jQuery(this).css({
			'position' : 'relative'
		});
		
		jQuery(this).animate({
			'opacity' : '1',
			 'right' : '-20px'
		}, 'fast');
	})
	
	jQuery('.sb').mouseleave(function(){
		jQuery(this).animate({
			'opacity' : '0.6',
			 'right' : '0px'
		}, 'fast', function(){
			jQuery(this).css({
				// 'position' : 'inherit'
			});			
		});
	})		
}

function intSponsors(){
	jQuery('.sponsor').mouseover(function(){
		jQuery(this).css({
			'position' : 'relative'
		});
		
		jQuery(this).animate({
			'opacity' : '1',
			'top' : '-5px'
		}, 'fast');
	})
	
	jQuery('.sponsor').mouseleave(function(){
		jQuery(this).animate({
			'opacity' : '0.6',
			'top' : '0px'
		}, 'fast', function(){
			jQuery(this).css({
				'position' : 'inherit'
			});			
		});
	})				
}

