// JavaScript Document

$start = {
	
	strokes: 0,
	bodywidth: 0,
	
	calculate: function() {
		
		$start.bodywidth = $(document).width();
		$start.strokes = Math.floor($start.bodywidth / 9);
	},

	start: function(){
		
		for(i=0; i<= $start.strokes; i++) {
			
			$('<div/>').insertBefore('body .logo-start')
					   .addClass('stroke')
					   .click(function(){
							window.location = '/nl/handtassen';   
					   });
					   
			if(i == $start.strokes ) {
				$start.animate();
			}
		}
		
		
	},
	
	animate: function() {
		
		setInterval ( "$start.remove()", 30 );

		
	},
	
	remove: function(){
		
		$('.stroke:last').remove();
	},
	
	init: function(){
		
		$start.calculate();
		$start.start();
		$('body') .click(function(){ window.location = '/nl/handtassen';   });
	}
}


$(function() {

	$start.init();	
});


