
$(function() {
	
	
		$(".corner5").corner("5px");

		$('a').click(function() {
			  this.blur();
		});
		
		
		
		//$(".fd").fadeTo("",0.9);
		
		$(".fd").hover(function(){
			$(this).fadeTo("fast", 0.8); // This sets the opacity to 100% on hover
		},function(){
   			$(this).fadeTo("fast", 1); // This sets the opacity back to 95% on mouseout
		});
		
		/* NEWSSLIDES */ 
		$('#newsslides').cycle({ 
		    fx: 'scrollUp' ,
			timeout:  8000 
		});
		
		$("#newsslides").hover(function(){
			$(this).cycle('pause');
		},function(){
   			$(this).cycle('resume');
		});
		
		
		$("a[rel=gallery]").fancybox({		
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">' + title + '</span>';
		},
		'onComplete'	:	function() {
			$("#fancybox-wrap").hover(function() {
				$("#fancybox-title").show();
			}, function() {
				$("#fancybox-title").hide();
			});
		}
		
	});
		
		
		
		
		
	});
	
	

