$(document).ready(function() {
						   
		$('input[type="text"]').addClass("idleField");
       	$('input[type="text"]').focus(function() {
       			$(this).removeClass("idleField").addClass("focusField");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    	$('input[type="text"]').blur(function() {
    			$(this).removeClass("focusField").addClass("idleField");
    		    if ($.trim(this.value) == ''){
			    	this.value = (this.defaultValue ? this.defaultValue : '');
				}
    	});
			
		//phone jazz
		jQuery("#content-call").hide();	
		$('#content-call').css('width','800px');
		$('input#call').attr('checked', false); 
 		
		$('#slick-toggle').click(function() {
			$('#content-call').toggle(400);
			$('#content-call').css('background','#000');
			$('#content-call').css('margin','15px');
			$('#content-call').css('padding','20px');
			//$('#content-call').css('border','dotted #000 2px');
		
		});
		
		jQuery("#phoneForm").submit(function (){

	    	jQuery.post("assets/phonemail.php", { phone: jQuery("#phone").val(), name: jQuery("#name").val() },
			function (data, textStatus, request)
			{
				
				jQuery("#slick-toggle").hide();	
			 	jQuery("#phoneForm").replaceWith("<p class='thankyou'>Bedankt voor uw belangstelling. We bellen zo snel mogelijk. </p>");
	
			});
			return false;
	});
		
		
		
		
			
});	

