function wc()
{
	if(window.console)
	{
		for(var i = 0; i < arguments.length; i++)
		{
			window.console.log(arguments[i]);
		}
	}
}
$(document).ready(function()
{
	
	var active_color = '#000'; // Colour of user provided text
	var inactive_color = '#ccc'; // Colour of default text

	$("input.default-value").css("color", inactive_color);
  		var default_values = new Array();
		$("input.default-value").focus(function() {
			if (!default_values[this.id]) {
			  default_values[this.id] = this.value;
			}
			if (this.value == default_values[this.id]) {
			  this.value = '';
			  this.style.color = active_color;
			}
			$(this).blur(function() {
			  if (this.value == '') {
			this.style.color = inactive_color;
			this.value = default_values[this.id];
			}
			});
  	});

	
	$("#navigation ul li").hover(
	
		function(){
			
			$(this).addClass('sfhover');
			
		},		
		function(){ 

			$(this).removeClass('sfhover');
			
		}
	);
	
	
	$("#navigation ul li a._blank").click(
		
		function()
		{
			//alert(this.href);
			
			window.open(this.href);
			
			return false;
		}
	);
	
	
	 var i = 0;		
	 
	/* 
		deposito toevoegen
	*/
	$("p.add_deposito").click(
		
		function()
		{
			
			i++;
			
			var html = $('div.duplicate:first').clone();
			
			var attr = $("input[name^='deposito']",$(html));
			
				
			
			$('input,select',$(html).insertBefore(".add_deposito").removeClass('duplicate'))
			.each(function()
			{
			
				$(this).attr('name',$(this).attr('name').replace('deposito[0','deposito['+ i));
			});
			
			wc(attr);
			
			
			
			
		}
	);
	

});

