// custom jquery stuff
$(document).ready(function(){

	$(".fader").fadeTo("slow", 0.8); 
	$(".fader").hover(
		function(){
			$(this).fadeTo("slow", 1.0); 
		},
		function(){
			$(this).fadeTo("slow", 0.8); 
		});

	$(".filter").click(function () {
		$("#filter").toggle("slow");
		return false;
	}); 
	
	$(".about").click(function () {
		$("#overlaypage").toggle("slow");
		$("#about").toggle("slow");
		$("#close").toggle("slow");
		$("#navigation").toggle("slow");
		$("#aboutusblock").toggle("slow");
		$("#romboutblock").toggle("slow");
		$("#wouterblock").toggle("slow");
		$("#internblock").toggle("slow");
		$("#locationblock").toggle("slow");
		$("#contactblock").toggle("slow");
		//$('title').text('Media Five99 - About us and Contact');
		return false;
	}); 
	$(".information").click(function () {
		$("#overlaypage").toggle("slow");
		$("#information").toggle("slow");
		$("#navigation").toggle("slow");
		$("#informationblock").toggle("slow");
		$("#closeme").toggle("slow");
		$("#graphicblock").toggle("slow");
		$("#interactiveblock").toggle("slow");
		$("#workingonblock").toggle("slow");
		//$('title').text('Media Five99 - Information, Graphic design and Interactive design');
		return false;
	}); 
	$(".twitter").click(function () {
		$("#overlaypage").toggle("slow");
		$("#twitter").toggle("slow");
		$("#navigation").toggle("slow");
		$("#closetwit").toggle("slow");
		$("#followus").toggle("slow");
		$("#app").toggle("slow");
		//$('title').text('Media Five99 - Follow us on Twitter: @Mediafive99');
		return false;
	}); 
	$(".close").click(function () {
		$("#about").toggle("fast");
		$("#navigation").toggle("fast");
		$("#aboutusblock").toggle("fast");
		$("#close").toggle("fast");
		$("#locationblock").toggle("fast");
		$("#contactblock").toggle("fast");
		$("#romboutblock").toggle("fast");
		$("#wouterblock").toggle("fast");
		$("#internblock").toggle("fast");
		$("#overlaypage").toggle("slow");
		//$('title').text('Media Five99 - Creative Crossmedia: for all your graphic -, interactive -and web design');
		return false;
	});
	$(".closeme").click(function () {
		$("#information").toggle("fast");
		$("#navigation").toggle("fast");
		$("#informationblock").toggle("fast");
		$("#closeme").toggle("fast");
		$("#graphicblock").toggle("fast");
		$("#interactiveblock").toggle("fast");
		$("#workingonblock").toggle("fast");
		$("#overlaypage").toggle("slow");
		//$('title').text('Media Five99 - Creative Crossmedia: for all your graphic -, interactive -and web design');
		return false;
	}); 
	$(".closetwit").click(function () {
		$("#twitter").toggle("fast");
		$("#navigation").toggle("fast");
		$("#closetwit").toggle("fast");
		$("#followus").toggle("fast");
		$("#app").toggle("fast");
		$("#overlaypage").toggle("slow");
		//$('title').text('Media Five99 - Creative Crossmedia: for all your graphic -, interactive -and web design');
		return false;
	});  

	$('#scroller').css('height', '420px');
	$('#scroller a').bind('click', function(){
		$('#big-image img').attr('src', '');
		$('#big-image img').attr('src', $($(this).children()[0]).attr('src').replace('thumb_', ''));
		$('#project-info').html('<p>Loading content...</p>');
		$('#project-info').load('index.php?id='+$(this).attr('id').replace('thumb-', '')+' #project-info', set_fancybox);
		return false;
	});

});



