/* ##### Menubar (d) - actionbar (f) #### */

$(function(){
	$('#d a')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0 -250px)"}, {duration:400})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:400})
		})
});

$(function(){
	$('#navcontainer a')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0 -250px)"}, {duration:200})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:400})
		})
});

/* ##### form #### */

$(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 : '');
		}
	});
});			


/* ##### Image Preloader #### */


var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}


//Enter path of images to be preloaded inside parenthesis. Extend list as desired.
preloadimages("http://www.zzp-adviescafe.nl/img/ts-workshops-o.jpg","http://www.zzp-adviescafe.nl/img/ts-succesvol-acquireren-o.jpg","http://www.zzp-adviescafe.nl/img/ts-profilerend-schrijven-o.jpg","http://www.zzp-adviescafe.nl/img/ts-de-eerste-indruk-o.jpg","http://www.zzp-adviescafe.nl/img/ts-doelgericht-netwerken-o.jpg","http://www.zzp-adviescafe.nl/img/ts-tafel-voor-twee-o.jpg","http://www.zzp-adviescafe.nl/img/ts-marketingadvies-o.jpg","http://www.zzp-adviescafe.nl/img/ts-coaching-o.jpg")

