$(document).ready(function(){
	var linkLocation;
	function redirectPage() {
		window.location = linkLocation;
	}	
	$('#splash').css({opacity:0.1});
	$('#splash').fadeTo(1000, 1.0);
	$('.w90').css({opacity:0.9});
	$(".prj_item .archiv_ill a img").css({opacity:0.4});
	$(".prj_item .archiv_ill a img").hover(function(){
		$(this).fadeTo("fast", 1.0);
	},function(){
   		$(this).fadeTo("fast", 0.4);
	});
	
	/* the fade out effect
	$('a').click( function( event ){
		if( this.href == "" || this.href == null ) { event.preventDefault(); return; }
		if( (this.href.indexOf("#") == -1) && (this.href.indexOf("mailto:") == -1) && (this.href.indexOf("javascript:") == -1) && (this.target != "_blank") ) {
			event.preventDefault();
			linkLocation = this.href;
			$("body").fadeOut(600, redirectPage);
		}
	});
	*/
	
	$('#more_news a').click(function(){
		var start = $('.news_item').length - 1;
		$.get('/index.php/news/more/'+start, function(data){
			$("#more_news").before(data);
		});
	});	
	
	/* the fade in effect 
	$("body").css("display", "none");   			
	$("body").fadeIn( 600,function () {} );	
	*/
});
