$(document).ready(function(){ 
	$(document).pngFix(); 
	
	$("#annelies").css('cursor','pointer');
	$("#annelies").click( function() {
		document.location.href = '/nl/contact';
	});
	
}); 

// JavaScript Document
function historyPage() {
	$(".history-left img").bind('click',function() {
		var left = $(".items").css('margin-left');
		$(".history-right").css('opacity','1.0');
		var numberOfItems = $(".items .history-item").size();
	
		maxLeft = numberOfItems * 330;
	
		if ( ((left.replace('px','')*-1)+660) < maxLeft) {
			$(".items").animate( {
				marginLeft: "-=330px"
			},800, function() {
				left = $(".items").css('margin-left');
				if ( ((left.replace('px','')*-1)+660) >= maxLeft) { $(".history-left").css('opacity','0.1'); };
			});
		}	   
	
	});
	
	$(".history-right img").bind('click',function() {
		$(".history-left").css('opacity','1.0');
		var left = $(".items").css('margin-left');
		if (left!='0px') {
			$(".items").animate( {
				marginLeft: "+=330px"
			},800, function() {
				left = $(".items").css('margin-left');
				if (left=='0px') {
					$(".history-right").css('opacity','0.1');
				}
			});
		};
	});
	
	
	$("div.close-history").bind('click',function() {
		alert('Demo');
	});
}

function personPage() {
	$("#sub-left-menu ul li a").bind('click',function() {
		$("#sub-left-content").css('opacity','0.4');
		$(".person").css('display','block');
	});
	$("div.close").bind('click',function() {
		$(".person").css('display','none');
		$("#sub-left-content").css('opacity','1.0');
	});
}
// JavaScript Document