$(document).ready(function(){
	resetFields();
	menu();
	vacatureCycle();
});
function vacatureCycle(){
	$('#right .vacatures_container').cycle({
		fx: 'blindX',
		timeout: 9000
	});
}
function resetFields() {
	$('input.reset').each(function() {
		$(this).focus(function() {
			if(this.value == this.defaultValue) {
				this.value = '';
			}
		}).blur(function() {
			if(!this.value.length) {
				this.value = this.defaultValue;
			}
		});
	});
}
function menu(){
	$('#menu ul li').hover(function(){
		$(this).children('ul.sub').show();
		$(this).children('a').addClass('hover');
	},function(){
		$(this).children('ul.sub').hide();
		$(this).children('a').removeClass('hover');
	});
}
