$(document).ready(function(){
	$('#coda-slider-1').codaSlider({
		dynamicArrows: false
	});

	$(function() {
		$("#website #footer #socialmedia li a").css("opacity","0.5");
		$("#website #footer #socialmedia li a").hover(function () {
			$(this).stop().animate({
				opacity: 1
			}, "fast");
		},
	function () {
		$(this).stop().animate({
				opacity: 0.5
			}, "fast");
		});
	});

	$(function() {
		$("#website .portfolio #portfolio_content #portfolio_menu li a").css("opacity","0.5");
		$("#website .portfolio #portfolio_content #portfolio_menu li a").hover(function () {
			$(this).stop().animate({
				opacity: 1
			}, "fast");
		},
	function () {
		$(this).stop().animate({
				opacity: 0.5
			}, "fast");
		});
	});

	$(function() {
		$("#website .portfolio #portfolio_content .product img").css("opacity","0.8");
		$("#website .portfolio #portfolio_content .product img").hover(function () {
			$(this).stop().animate({
				opacity: 1
			}, "fast");
		},
	function () {
		$(this).stop().animate({
				opacity: 0.8
			}, "fast");
		});
	});

	$(function() {
		$("#website #content #portfolio_overview .post .project_intro").hover(function () {
			$(this).stop().animate({
				paddingTop: "0px"
			}, "fast");
		},
	function () {
		$(this).stop().animate({
				paddingTop: "260px"
			}, "fast");
		});
	});

	$("#website #footer #footer_menu li#terug a").click(function(event){		
		event.preventDefault();
		$('html,body').animate({scrollTop:$(this.hash).offset().top}, 500);
	});

	$("#website #content #comments #list #list_header a").click(function(event){		
		event.preventDefault();
		$('html,body').animate({scrollTop:$(this.hash).offset().top}, 500);
	});
	$("#website #content #portfolio_content #portfolio_menu .offerte a").click(function(event){		
		event.preventDefault();
		$('html,body').animate({scrollTop:$(this.hash).offset().top}, 500);
	});

	$.fn.slideFadeToggle = function(speed, easing, callback) {
		return this.animate({opacity: 'toggle', height: 'toggle'}, 350, easing, callback);  
	};
	$("#offerte_request").hide();
		$('#portfolio_menu .offerte').click(function() {
		$('#offerte_request').slideFadeToggle();
    return false;
	});

	$('.autoclear').autoclear();

});
