$(document).ready( function(){
	
	// Round
	 var settings = {
      tl: { radius: 10},
	  tr: { radius: 10}
    }
	
	// Footer links, animate them on hover, not the mail link
	$('#footer .subNav a').not("a[href^=mailto]").hover(
		function(){
			$(this).animate({'paddingLeft': '10px'}, 100);   
		},
		function(){  
			$(this).animate({'paddingLeft': '5px'}, 100);
		}
	);
	$('#footer .subNav').hover(
		function(){
			$(this).find('img').animate({'paddingTop': '25px'}, 200);   
		},
		function(){  
			$(this).find('img').animate({'paddingTop': '5px'}, 200);
		}
	);
	
	// References
	$("ul.thumb li").hover(function() {
	$(this).css({'z-index' : '100'}); /*Add a higher z-index value so this image stays on top*/ 
	$(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
		.animate({
			marginTop: '-85px', 
			marginLeft: '-85px',
			top: '50%',
			left: '50%',
			width: '125px', /* Set new width */
			height: '125px', /* Set new height */
			padding: '10px'
		}, 200); // Speed

	} , function() {
	$(this).css({'z-index' : '0'}); // Reset zindex
	$(this).find('img').removeClass("hover").stop()  /* Remove "hover" class , then stop animation queue buildup*/
		.animate({
			marginTop: '0', /* Set alignment back to default */
			marginLeft: '0',
			top: '0',
			left: '0',
			width: '75px', /* Set width back to default */
			height: '75px', /* Set height back to default */
			padding: '5px'
		}, 400);
	});
	
	// Reference detail
		if ( $("div.content ul.photogallery").length > 0 ) { // Check if the div exists
			$('div.content ul.photogallery li a').lightBox({
				fixedNavigation: true						
			});
		}
	
	// Preload
	webdesign = document.createElement('img');
	webdesign.src = 'images/buttons/hover/blue.png';
	referenties = document.createElement('img');
	referenties.src = 'images/buttons/hover/red.png';
	nieuws = document.createElement('img');
	nieuws.src = 'images/buttons/hover/green.png';
	contact = document.createElement('img'); 
	contact.src = 'images/buttons/hover/yellow.png';
});
